/* ==========================================================================
   joinery.css  ::  TMLZEE GROUP LTD
   Naming universe: the joiner's workshop. Blocks are named for the parts of a
   bench and the parts of a joint. BEM: block__element, block--modifier.
   Surface: dark. Display: sans. Decoration: soft, generously rounded.
   No monospace anywhere by design.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   Contrast ratios below are computed, not estimated. WCAG AA needs 4.5:1 for
   body text and 3:1 for large text and non-text indicators.
   -------------------------------------------------------------------------- */
:root {
  /* surfaces */
  --pitch:      #14100D;  /* page base            */
  --bench:      #1D1713;  /* raised panel         */
  --sunk:       #29211B;  /* highest panel, table stripe */
  --edge:       #3A2F27;  /* hairline rule        */
  --edge-soft:  #2E2620;  /* quieter hairline     */
  --scrim:      #0E0B09;  /* photo scrim base     */

  /* ink   ratio on --pitch / --bench / --sunk */
  --chalk:      #F6EFE7;  /* 16.60 / 15.55 / 13.87 */
  --linen:      #D3C5B7;  /* 11.21 / 10.50 /  9.37 */
  --ash:        #A8988A;  /*  6.78 /  6.35 /  5.67 */

  /* accent */
  --brass:      #F2A65A;  /*  9.35 / 8.76 / 7.82 on dark; --pitch on --brass is 9.35 */
  --brass-dim:  #7A5326;
  --verdigris:  #7FC8B0;  /*  9.72 / 9.11 */

  /* rounding: one system, generous */
  --r-xs:  10px;
  --r-sm:  16px;
  --r-md:  24px;
  --r-lg:  36px;
  --r-xl:  52px;
  --r-pill: 999px;

  /* rhythm */
  --step:   clamp(3.5rem, 2.4rem + 4.4vw, 7rem);
  --step-sm: clamp(2.25rem, 1.7rem + 2.2vw, 3.75rem);
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);

  /* type */
  --face-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --face-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --t-mega:  clamp(2.55rem, 1.5rem + 4.4vw, 5.1rem);
  --t-major: clamp(2.05rem, 1.5rem + 2.5vw, 3.5rem);
  --t-head:  clamp(1.65rem, 1.32rem + 1.5vw, 2.5rem);
  --t-sub:   clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --t-bearing: clamp(1.08rem, 1.01rem + 0.42vw, 1.3rem);
  --t-body:  1.0625rem;
  --t-small: 0.9375rem;
  --t-contour:  0.75rem;

  --shadow-soft: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --shadow-deep: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. RESET AND BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--pitch);
  color: var(--linen);
  font-family: var(--face-text);
  font-size: var(--t-body);
  line-height: 1.72;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--face-display);
  color: var(--chalk);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--t-major); }
h2 { font-size: var(--t-head); }
h3 { font-size: var(--t-sub); font-weight: 600; letter-spacing: -0.008em; line-height: 1.25; }
h4 { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; line-height: 1.35; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--chalk); }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li { margin-bottom: 0.5em; }
li:last-child { margin-bottom: 0; }

strong { color: var(--chalk); font-weight: 600; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.2em; }
hr { border: 0; border-top: 1px solid var(--edge); margin: var(--step-sm) 0; }

::selection { background: var(--brass); color: var(--pitch); }

/* Visible focus, everywhere, at all times. */
:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* --------------------------------------------------------------------------
   3. SHELL
   -------------------------------------------------------------------------- */
.fieldbook {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.fieldbook--close { max-width: 760px; }
.fieldbook--broad { max-width: 1320px; }

.unplotted {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.offset {
  position: absolute;
  left: 1rem;
  top: -100vh;
  z-index: 200;
  background: var(--chalk);
  color: var(--pitch);
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-pill);
  text-decoration: none;
}
.offset:focus {
  top: 1rem;
  color: var(--pitch);
}

/* --------------------------------------------------------------------------
   4. TOOLROOM  ::  the site header
   -------------------------------------------------------------------------- */
.survey {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(20, 16, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.survey--sunk {
  background: rgba(20, 16, 13, 0.96);
  border-bottom-color: var(--edge-soft);
}
.survey__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
}
.survey__peg {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--chalk);
  border-radius: var(--r-sm);
  padding: 0.3rem 0.15rem;
}
.survey__peg:hover { color: var(--chalk); }
.survey__glyph { flex: none; border-radius: 7px; }
.survey__word {
  font-family: var(--face-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.09em;
}
.survey__batten {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.35rem;
  align-items: center;
}
.survey__batten a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-pill);
  color: var(--linen);
  text-decoration: none;
  font-size: var(--t-small);
  font-weight: 500;
  transition: background 0.22s ease, color 0.22s ease;
}
.survey__batten a:hover { background: var(--bench); color: var(--chalk); }
.survey__batten a[aria-current="page"] { color: var(--chalk); background: var(--sunk); }

.survey__tail { display: flex; align-items: center; gap: 0.6rem; }

.survey__latch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bench);
  color: var(--chalk);
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  padding: 0.6rem 1rem;
  font: inherit;
  font-size: var(--t-small);
  font-weight: 600;
  cursor: pointer;
}
.survey__latch:hover { background: var(--sunk); }

@media (min-width: 62rem) {
  .survey__batten { display: flex; }
  .survey__latch { display: none; }
}

/* mobile drawer */
.survey__veil {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 5, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
  z-index: 100;
}
.survey__veil--open { opacity: 1; visibility: visible; }

.survey__cubby {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(21rem, 88vw);
  background: var(--bench);
  border-left: 1px solid var(--edge);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  padding: 1.35rem;
  z-index: 110;
  transform: translateX(103%);
  transition: transform 0.3s cubic-bezier(0.3, 0.8, 0.35, 1);
  overflow-y: auto;
}
.survey__cubby--open { transform: translateX(0); }
.is-held, .is-held body { overflow: hidden; }
.survey__cubby-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.survey__cubby-title {
  font-family: var(--face-display);
  font-size: var(--t-contour);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}
.survey__shut {
  background: none;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  color: var(--chalk);
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  cursor: pointer;
}
.survey__shut:hover { background: var(--sunk); }
.survey__cubby ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.survey__cubby li { margin: 0; border-bottom: 1px solid var(--edge-soft); }
.survey__cubby li a {
  display: block;
  padding: 0.95rem 0.25rem;
  color: var(--chalk);
  text-decoration: none;
  font-family: var(--face-display);
  font-size: 1.1rem;
  font-weight: 500;
}
.survey__cubby li a:hover { color: var(--brass); }
@media (prefers-reduced-motion: reduce) {
  .survey__cubby, .survey__veil, .survey { transition: none; }
}

/* --------------------------------------------------------------------------
   5. CHISEL  ::  actions
   -------------------------------------------------------------------------- */
.traverse {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--r-pill);
  font-family: var(--face-text);
  font-weight: 600;
  font-size: var(--t-small);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}
.traverse--fill {
  background: var(--brass);
  color: var(--pitch);
  box-shadow: 0 0 0 rgba(242, 166, 90, 0);
}
.traverse--fill:hover {
  background: #FFBC77;
  color: var(--pitch);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -14px rgba(242, 166, 90, 0.7);
}
.traverse--hollow {
  border-color: var(--edge);
  color: var(--chalk);
  background: rgba(246, 239, 231, 0.03);
}
.traverse--hollow:hover {
  border-color: var(--ash);
  background: rgba(246, 239, 231, 0.09);
  color: var(--chalk);
  transform: translateY(-2px);
}
.traverse--bare {
  padding-inline: 0;
  color: var(--brass);
  text-decoration: underline;
  text-decoration-color: rgba(242, 166, 90, 0.4);
  text-underline-offset: 0.3em;
}
.traverse--bare:hover { text-decoration-color: var(--brass); color: var(--brass); }
.traverse__tip { flex: none; transition: transform 0.2s ease; }
.traverse:hover .traverse__tip { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .traverse, .traverse__tip { transition: none; }
  .traverse:hover { transform: none; }
}

.traverse-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   6. SHARED TYPE PARTS
   -------------------------------------------------------------------------- */
.contour {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--face-display);
  font-size: var(--t-contour);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.1rem;
}
.contour::before {
  content: "";
  width: 1.7rem;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--brass);
  flex: none;
}
.contour--quiet { color: var(--ash); }
.contour--quiet::before { background: var(--ash); }

.bearing {
  font-size: var(--t-bearing);
  line-height: 1.6;
  color: var(--linen);
  max-width: 60ch;
}
.bearing--wide { max-width: 72ch; }

.saddle { max-width: 62ch; margin-bottom: var(--step-sm); }
.saddle--mid { margin-inline: auto; text-align: center; }
.saddle--mid .contour { justify-content: center; }

.outlier {
  font-size: var(--t-small);
  color: var(--ash);
  border-left: 2px solid var(--edge);
  padding-left: 1rem;
  max-width: 62ch;
}

.swatch {
  display: inline-block;
  padding: 0.32rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--sunk);
  border: 1px solid var(--edge);
  color: var(--linen);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.swatch-set { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.swatch-set li { margin: 0; }

.tbc {
  display: inline-block;
  background: rgba(127, 200, 176, 0.14);
  border: 1px dashed var(--verdigris);
  color: var(--verdigris);
  border-radius: var(--r-xs);
  padding: 0.12rem 0.5rem;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   7. LAYOUT FAMILY A  ::  MAQUETTE, the full bleed photographic opener
   -------------------------------------------------------------------------- */
.plotting {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--edge-soft);
}
.plotting__plate {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.plotting__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 55%;
}
.plotting__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Measured over the decoded WebP: brightest pixel under the text block after
     this wash is rgb(77,66,51). Chalk 8.61:1, linen 5.81:1, brass 4.85:1. */
  background:
    linear-gradient(100deg,
      rgba(14, 11, 9, 0.94) 0%,
      rgba(14, 11, 9, 0.86) 46%,
      rgba(14, 11, 9, 0.42) 78%,
      rgba(14, 11, 9, 0.30) 100%);
}
.plotting__wash::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, var(--pitch), rgba(20, 16, 13, 0));
}
.plotting__body {
  position: relative;
  padding-block: clamp(4.5rem, 3rem + 9vw, 9.5rem);
  max-width: 40rem;
}
.plotting__title {
  font-size: var(--t-mega);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.plotting__title em {
  font-style: normal;
  color: var(--brass);
}
.plotting__foot {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}
.plotting__stamp {
  font-size: var(--t-small);
  color: var(--ash);
}
@media (max-width: 61.99rem) {
  /* Uniform heavier wash: brightest pixel anywhere is then well inside AA.
     Measured worst case at alpha 0.88: chalk 13.47, linen 9.09, brass 7.59. */
  .plotting__wash {
    background: linear-gradient(180deg, rgba(14, 11, 9, 0.88), rgba(14, 11, 9, 0.9));
  }
}

/* opener without photography, for the inner pages */
.plotting--plain { background: var(--pitch); border-bottom: 1px solid var(--edge-soft); }
.plotting--plain .plotting__body { max-width: 48rem; padding-block: clamp(3.5rem, 2.5rem + 6vw, 7rem); }
.plotting--plain::before {
  content: "";
  position: absolute;
  top: -34%;
  left: 50%;
  width: min(60rem, 130%);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(242, 166, 90, 0.16), rgba(242, 166, 90, 0) 66%);
  z-index: -1;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   8. LAYOUT FAMILY B  ::  CALIPER, the measured register strip
   Wrapping key/value pairs divided by hairlines. Deliberately not a card grid.
   -------------------------------------------------------------------------- */
.transit {
  background: var(--bench);
  border-block: 1px solid var(--edge-soft);
}
.transit__strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-block: var(--step-sm);
}
.transit__notch {
  padding: 1.15rem 0;
  border-top: 1px solid var(--edge-soft);
}
.transit__notch:first-child { border-top: 0; }
.transit__term {
  display: block;
  font-family: var(--face-display);
  font-size: var(--t-contour);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 0.4rem;
}
.transit__value {
  display: block;
  color: var(--chalk);
  font-family: var(--face-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
}
.transit__value--long {
  font-size: 1rem;
  font-family: var(--face-text);
  font-weight: 500;
  line-height: 1.55;
}
@media (min-width: 40rem) {
  .transit__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
  .transit__notch { border-top: 1px solid var(--edge-soft); }
  .transit__notch:nth-child(-n + 2) { border-top: 0; }
}
@media (min-width: 64rem) {
  .transit__strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .transit__notch {
    border-top: 0;
    border-left: 1px solid var(--edge-soft);
    padding: 0.35rem 0 0.35rem 1.5rem;
  }
  .transit__notch:nth-child(-n + 2) { border-top: 0; }
  .transit__notch:nth-child(4n + 1) { border-left: 0; padding-left: 0; }
  .transit__strip--six { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .transit__strip--six .transit__notch:nth-child(4n + 1) { border-left: 1px solid var(--edge-soft); padding-left: 1.5rem; }
  .transit__strip--six .transit__notch:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
}

/* --------------------------------------------------------------------------
   9. LAYOUT FAMILY C  ::  DOVETAIL, the interlocked media and prose split
   Used at most twice per page, never back to back.
   -------------------------------------------------------------------------- */
.cairn { padding-block: var(--step); }
.cairn__pair {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.cairn__plate {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--edge-soft);
}
.cairn__plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cairn__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 90px 10px rgba(14, 11, 9, 0.55);
  pointer-events: none;
}
.cairn__prose > :last-child { margin-bottom: 0; }
.cairn__lines {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}
.cairn__lines li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.85rem;
  color: var(--linen);
}
.cairn__lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: var(--brass);
  opacity: 0.85;
}
@media (min-width: 56rem) {
  .cairn__pair { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .cairn--turned .cairn__plate { order: 2; }
  .cairn--turned .cairn__pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

/* -------------------------------------------------------------------------
   10. LAYOUT FAMILY D  ::  JIG, the numbered ladder with a soft spine
   Single column. No cards, no columns, no grid of equal boxes.
   ------------------------------------------------------------------------- */
.datum {
  padding-block: var(--step);
  background: var(--bench);
  border-block: 1px solid var(--edge-soft);
}
.datum__ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 54rem;
}
.datum__ladder::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 1.6rem;
  bottom: 2.6rem;
  width: 2px;
  border-radius: var(--r-pill);
  background: linear-gradient(to bottom, var(--brass-dim), var(--edge) 70%, transparent);
}
.datum__rung {
  position: relative;
  margin: 0 0 2.35rem;
  padding-left: 4.1rem;
}
.datum__rung:last-child { margin-bottom: 0; }
.datum__pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--sunk);
  border: 1px solid var(--edge);
  color: var(--brass);
  font-family: var(--face-display);
  font-weight: 600;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.datum__name { margin-bottom: 0.45rem; }
.datum__rung p { color: var(--linen); max-width: 56ch; }
@media (min-width: 48rem) {
  .datum__ladder::before { left: 1.6rem; }
  .datum__rung { padding-left: 4.75rem; }
  .datum__pin { width: 3.25rem; height: 3.25rem; font-size: 1.15rem; }
}

/* -------------------------------------------------------------------------
   11. LAYOUT FAMILY E  ::  MORTISE, the sticky heading with a disclosure list
   Asymmetric two column. The left rail sticks while the right list scrolls.
   ------------------------------------------------------------------------- */
.scarp { padding-block: var(--step); }
.scarp__frame {
  display: grid;
  gap: clamp(2rem, 1rem + 3.5vw, 4rem);
}
.scarp__rail > :last-child { margin-bottom: 0; }
.scarp__list { margin: 0; }
.scarp__entry {
  border-top: 1px solid var(--edge-soft);
  padding: 1.65rem 0;
}
.scarp__entry:first-of-type { border-top: 0; padding-top: 0; }
.scarp__entry:last-of-type { padding-bottom: 0; }
.scarp__term {
  font-family: var(--face-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--chalk);
  margin: 0 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem;
}
.scarp__flag {
  font-family: var(--face-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--verdigris);
  border: 1px solid rgba(127, 200, 176, 0.4);
  border-radius: var(--r-pill);
  padding: 0.18rem 0.6rem;
  line-height: 1.5;
}
.scarp__flag--none { color: var(--ash); border-color: var(--edge); }
.scarp__detail { margin: 0; color: var(--linen); max-width: 62ch; }
.scarp__detail + .scarp__detail { margin-top: 0.7rem; }
@media (min-width: 58rem) {
  .scarp__frame { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .scarp__rail { position: sticky; top: 7rem; align-self: start; }
}

/* -------------------------------------------------------------------------
   12. LAYOUT FAMILY F  ::  BURNISH, the closing band
   ------------------------------------------------------------------------- */
.relief {
  position: relative;
  isolation: isolate;
  padding-block: var(--step);
  border-top: 1px solid var(--edge-soft);
  overflow: hidden;
}
.relief::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -55%;
  width: min(64rem, 140%);
  aspect-ratio: 1.7 / 1;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(242, 166, 90, 0.2), rgba(242, 166, 90, 0) 65%);
  z-index: -1;
  pointer-events: none;
}
.relief__core {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}
.relief__core .traverse-set { justify-content: center; margin-top: 2rem; }
.relief__core .bearing { margin-inline: auto; }
.relief__note {
  margin-top: 1.6rem;
  font-size: var(--t-small);
  color: var(--ash);
}

/* -------------------------------------------------------------------------
   13. LAYOUT FAMILY G  ::  GRAIN, the quiet quoted statement
   ------------------------------------------------------------------------- */
.stratum {
  padding-block: var(--step);
  background: var(--bench);
  border-block: 1px solid var(--edge-soft);
}
.stratum__slab {
  background: var(--sunk);
  border: 1px solid var(--edge);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 1.2rem + 3.5vw, 4rem);
  max-width: 56rem;
  margin-inline: auto;
  box-shadow: var(--shadow-soft);
}
.stratum__voice {
  font-family: var(--face-display);
  font-size: var(--t-sub);
  font-weight: 300;
  line-height: 1.5;
  color: var(--chalk);
  letter-spacing: -0.005em;
  margin: 0;
}
.stratum__voice strong { font-weight: 500; color: var(--brass); }
.stratum__source {
  margin-top: 1.5rem;
  font-size: var(--t-small);
  color: var(--ash);
}

/* -------------------------------------------------------------------------
   14. LAYOUT FAMILY H  ::  BEVEL, the two up contact routes
   Deliberately two, never three equal boxes.
   ------------------------------------------------------------------------- */
.gradient { padding-block: var(--step); }
.gradient__pair {
  display: grid;
  gap: var(--gutter);
}
.gradient__face {
  background: var(--bench);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.gradient__face h3 { margin-bottom: 0; }
.gradient__face p { margin-bottom: 0; }
.gradient__face .traverse { align-self: flex-start; margin-top: auto; }
.gradient__span {
  font-family: var(--face-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--chalk);
  line-height: 1.6;
}
.gradient__span a { color: var(--brass); }
@media (min-width: 50rem) {
  .gradient__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* -------------------------------------------------------------------------
   15. TENON  ::  the legal document body
   ------------------------------------------------------------------------- */
.spur { padding-block: var(--step-sm) var(--step); }
.spur__frame { display: grid; gap: var(--step-sm); }

.meridian {
  align-self: start;
  background: var(--bench);
  border: 1px solid var(--edge-soft);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.35rem;
}
.meridian__title {
  font-family: var(--face-display);
  font-size: var(--t-contour);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0 0 1rem;
}
.meridian ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: plumb;
}
.meridian li { margin: 0; counter-increment: plumb; }
.meridian a {
  display: flex;
  gap: 0.6rem;
  padding: 0.42rem 0.55rem;
  border-radius: var(--r-xs);
  color: var(--linen);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.45;
  transition: background 0.2s ease, color 0.2s ease;
}
.meridian a::before {
  content: counter(plumb) ".";
  color: var(--ash);
  font-variant-numeric: tabular-nums;
  flex: none;
  min-width: 1.5rem;
}
.meridian a:hover { background: var(--sunk); color: var(--chalk); }
.meridian a.meridian--here { background: var(--sunk); color: var(--brass); }
.meridian a.meridian--here::before { color: var(--brass); }

.spur__sheet { max-width: 74ch; }
.spur__sheet h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.85vw, 1.85rem);
  margin-top: var(--step-sm);
  padding-top: 1.5rem;
  border-top: 1px solid var(--edge-soft);
  scroll-margin-top: 7rem;
}
.spur__sheet h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.spur__sheet h3 {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--chalk);
  scroll-margin-top: 7rem;
}
.spur__sheet h4 { margin-top: 1.5rem; color: var(--brass); }
.spur__sheet p, .spur__sheet li { color: var(--linen); }
.spur__sheet ul, .spur__sheet ol { padding-left: 1.35em; }
.spur__sheet li { margin-bottom: 0.55em; }
.spur__meta {
  background: var(--bench);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem;
  margin-bottom: var(--step-sm);
  font-size: var(--t-small);
}
.spur__meta p { margin-bottom: 0.5rem; }
.spur__meta p:last-child { margin-bottom: 0; }
.spur__num {
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  margin-right: 0.5rem;
}
/* Role marker. Every section that describes downstream processing states
   whether we act as controller or as processor for that processing. */
.spur__role {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--face-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--verdigris);
  border: 1px solid rgba(127, 200, 176, 0.35);
  background: rgba(127, 200, 176, 0.08);
  border-radius: var(--r-pill);
  padding: 0.25rem 0.75rem;
  margin: -0.35rem 0 1.15rem;
}
.spur__role--ctrl { color: var(--brass); border-color: rgba(242, 166, 90, 0.35); background: rgba(242, 166, 90, 0.08); }
.spur__role--both { color: var(--linen); border-color: var(--edge); background: var(--sunk); }
.spur__back {
  display: inline-block;
  margin-top: var(--step-sm);
  font-size: var(--t-small);
}
@media (min-width: 64rem) {
  .spur__frame { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 3.5rem; }
  .meridian { position: sticky; top: 6.5rem; max-height: calc(100vh - 9rem); overflow-y: auto; }
}

/* tables inside the legal documents */
.scarp-well {
  overflow-x: auto;
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  margin: 1.5rem 0 1.9rem;
  -webkit-overflow-scrolling: touch;
}
.scarp-well table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.6;
}
.scarp-well caption {
  caption-side: top;
  text-align: left;
  padding: 0.9rem 1rem 0.75rem;
  color: var(--ash);
  font-size: var(--t-contour);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-family: var(--face-display);
  background: var(--sunk);
}
.scarp-well th, .scarp-well td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--edge-soft);
}
.scarp-well thead th {
  background: var(--sunk);
  color: var(--chalk);
  font-family: var(--face-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.scarp-well tbody th { color: var(--chalk); font-weight: 600; }
.scarp-well td { color: var(--linen); }
.scarp-well tbody tr:nth-child(even) td,
.scarp-well tbody tr:nth-child(even) th { background: rgba(41, 33, 27, 0.45); }
.scarp-well__hint {
  font-size: var(--t-small);
  color: var(--ash);
  margin: -1.2rem 0 1.9rem;
}

/* -------------------------------------------------------------------------
   16. PLINTH  ::  the footer and the statutory disclosure
   ------------------------------------------------------------------------- */
.basement {
  background: var(--bench);
  border-top: 1px solid var(--edge);
  padding-block: var(--step-sm) 2rem;
  margin-top: 0;
}
.basement__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--edge-soft);
}
.basement__peg {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--chalk);
  text-decoration: none;
  font-family: var(--face-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.09em;
  margin-bottom: 0.9rem;
}
.basement__blurb { font-size: var(--t-small); color: var(--ash); max-width: 34ch; }
.basement__head {
  font-family: var(--face-display);
  font-size: var(--t-contour);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0 0 0.9rem;
}
.basement__set { list-style: none; margin: 0; padding: 0; }
.basement__set li { margin-bottom: 0.55rem; }
.basement__set a {
  color: var(--linen);
  text-decoration: none;
  font-size: var(--t-small);
}
.basement__set a:hover { color: var(--brass); text-decoration: underline; text-underline-offset: 0.25em; }
.basement__where {
  font-size: var(--t-small);
  color: var(--linen);
  font-style: normal;
  line-height: 1.7;
}
.basement__where a { color: var(--brass); }
.basement__disclosure {
  padding-top: 1.75rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--ash);
  max-width: 78ch;
}
.basement__disclosure a { color: var(--linen); }
.basement__disclosure a:hover { color: var(--brass); }
.basement__base {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--ash);
}
@media (min-width: 46rem) {
  .basement__grid { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
}
@media (min-width: 64rem) {
  .basement__grid { grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); }
}

/* -------------------------------------------------------------------------
   17. MOTION
   Inventory, with the reason each one exists:
   a) .salient reveal   : a long dark page arrives in readable pieces rather
                        than all at once, which keeps the eye moving down one
                        column instead of scanning for an entry point.
   b) .survey--sunk : the bar gains an opaque backing once it leaves the
                        photograph, so the links never sit on moving imagery.
   c) cubby slide     : the drawer enters from the edge it will return to, so
                        its origin and exit are obvious without a label.
   d) traverse lift     : on a dark surface a colour shift alone is easy to
                        miss, so actions also move 2px on hover.
   Everything above is cancelled under prefers-reduced-motion.
   ------------------------------------------------------------------------- */
.is-lit .salient {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 0.8, 0.3, 1);
  will-change: opacity, transform;
}
.is-lit .salient--set { opacity: 1; transform: none; }
.is-lit .salient:nth-child(2) { transition-delay: 0.07s; }
.is-lit .salient:nth-child(3) { transition-delay: 0.14s; }
.is-lit .salient:nth-child(4) { transition-delay: 0.21s; }
.is-lit .salient:nth-child(5) { transition-delay: 0.28s; }
.is-lit .salient:nth-child(6) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .is-lit .salient {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0s;
  }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* -------------------------------------------------------------------------
   18. PRINT
   ------------------------------------------------------------------------- */
@media print {
  .survey, .survey__cubby, .survey__veil, .meridian, .offset, .relief { display: none; }
  body { background: #fff; color: #000; }
  .spur__sheet, .spur__sheet p, .spur__sheet li, h1, h2, h3, h4 { color: #000; }
  .scarp-well { border-color: #999; }
  a { color: #000; }
}
