/* Reference Nexus home, concept "After Hours". Chambers fonts and palette; new composition.
   2026-10-22 (approved changes 16-23, A2-A4): below the hero, one object from top to bottom. The hero's five
   cards cross the seam and land on the 9:47 to 10:02 timeline; the ground runs Night, Ink, then Bone as the
   clock advances; rendered stills of RN's own objects; square buttons everywhere. Motion: assets/js/home.js.
   Without JavaScript, or with reduced motion, every scene is drawn in its final frame. */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(fonts/newsreader-latin.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-latin.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-400-latin.woff2) format('woff2'); }

:root {
  /* Same values as brand/final/tokens.css (--rn-c-*, --rn-step-*); the home page does not load tokens.css.
     The ground ladder: Night (the hero), Ink, Ink-deep (the footer), Bone. Night here is the hero's own
     ground (hero3d.css --hbg), so the seam under the 3D scene shows no step. */
  --night: #0B0D11;
  --brass-glow: rgb(196 165 108 / .16);
  --step-1: clamp(3.5rem, 1.5rem + 6.67vw, 7.5rem);
  --step-3: clamp(2.5rem, 2.4rem + 2.2vw, 4.0625rem);
  --step-5: clamp(1.375rem, 1rem + .8vw, 1.6875rem);
  --ink: #171A21;
  --ink-deep: #111318;
  --bone: #F1EFEA;
  --letter: #F4F2EE;
  --vellum: #E4E1D9;
  --brass: #A5844B;
  --brass-lit: #C4A56C;
  --brass-shade: #7A5E2C;
  --slate: #575A5E;
  --mist: #ADA9A1;
  --rule: #CFCAC0;
  --rule-dark: #3A3E47;
  --groove: #E3DED4;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'Cascadia Mono', Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --cols: repeat(12, minmax(0, 1fr));
  --col-gap: clamp(16px, 3.3vw, 48px);

  --grain-ink: url(texture/grain-on-ink.svg);
  --grain-paper: url(texture/grain-on-paper.svg);

  /* depth: light from the upper left; one soft shadow per object, nothing else */
  --shadow-paper: 0 1px 2px rgb(23 26 33 / .10), 10px 18px 32px -18px rgb(23 26 33 / .34);
  --shadow-dark: 0 1px 1px rgb(0 0 0 / .2), 12px 26px 48px -24px rgb(0 0 0 / .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: #3A3E47 #111318; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--ink) var(--grain-ink);
  color: var(--bone);
  font: 400 17px/28px var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  caret-color: var(--brass);
}
::selection { background: var(--brass); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass-lit); outline-offset: 3px; }
:is(.morning, .paper) :focus-visible { outline-color: var(--brass-shade); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums slashed-zero; letter-spacing: 0; }
.nowrap { white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.rn-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 12px 16px; background: var(--bone); color: var(--ink); }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ----------
   Transparent while the hero is under it (html.in-hero, set by hero.js), so it never slices the scene;
   frosted Ink after. With the hero drawn as a static still (reduced motion, no WebGL) it frosts as before. */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--nav-h); color: var(--bone); transition: background-color 240ms var(--ease), box-shadow 240ms var(--ease); }
.site-header.is-scrolled { background: rgb(17 19 24 / .97); box-shadow: 0 1px 0 rgb(58 62 71 / .6); }
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background: rgb(17 19 24 / .86); backdrop-filter: saturate(1.4) blur(16px); }
}
html.in-hero:not(.h3d-static):not(.hero-leaving) .site-header.is-scrolled { background: transparent; box-shadow: none; backdrop-filter: none; }
.header-bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 196px; height: auto; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav-list { display: flex; align-items: center; gap: 28px; font: 400 14px/20px var(--sans); }
.nav-list a { text-decoration: none; padding-block: 12px; }
.nav-list a:hover { text-decoration: underline; }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px !important; box-shadow: inset 0 0 0 1px var(--bone); font-weight: 500; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.nav-cta:hover { background: var(--bone); color: var(--ink); text-decoration: none !important; }
.nav-toggle { display: none; }
/* The phone "Inquire" button beside Menu, for when layout.js adds <a class="nav-inquire"> to the header */
.nav-inquire { display: none; }

/* ---------- Shared type ---------- */
.h2-xl {
  font: 300 var(--step-3)/1.04 var(--serif);
  font-variation-settings: 'opsz' 72;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h2-giant {
  font: 300 var(--step-1)/.96 var(--serif);
  font-variation-settings: 'opsz' 72;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lede { font: 400 21px/32px var(--sans); max-width: 40ch; color: var(--bone); text-wrap: pretty; }
.body { font: 400 17px/28px var(--sans); max-width: 62ch; text-wrap: pretty; }
.cap { font: 400 14px/20px var(--sans); color: var(--mist); max-width: 52ch; text-wrap: pretty; }
p { text-wrap: pretty; }
.tag { display: inline-block; font: 500 12px/1.3 var(--sans); padding: .3em .55em; box-shadow: inset 0 0 0 1px currentColor; white-space: nowrap; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 500 17px/24px var(--sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.link-arrow::after { content: ""; width: 22px; height: 10px; background: currentColor; clip-path: polygon(0 45%, 78% 45%, 78% 0, 100% 50%, 78% 100%, 78% 55%, 0 55%); transition: transform 160ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover::after { transform: translateX(4px); } }

/* headings rise word by word (home.js wraps each word; the words are in the page from the start) */
.wr { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wr > span { display: inline-block; }

/* status squares: words, weight and a square glyph, never a coloured pill */
.status { display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; }
.status::before { content: ""; flex: none; width: .72em; height: .72em; border: 1.5px solid currentColor; }
.status[data-state="ok"]::before { background: currentColor; }
.status[data-state="attention"]::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* footnotes: the brass node */
.fn { position: relative; top: -.62em; display: inline-flex; margin-left: .12em; line-height: 0; text-decoration: none; }
.fn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); }
.fn-node { display: inline-block; width: clamp(6px, .3em, 11px); height: clamp(6px, .3em, 11px); border-radius: 50%; background: var(--brass); }
.notes { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--rule-dark); max-width: 62ch; font: 400 14px/24px var(--sans); color: var(--mist); }
.notes li { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
.notes li + li { margin-top: 8px; }
.note-back { position: relative; display: inline-flex; text-decoration: none; }
.note-back::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); }
.note-back .fn-node { width: 7px; height: 7px; transform: translateY(-.1em); }

/* ---------- Buttons: square, 56px, one arrow (the hero's .h3d-btn, same rules) ----------
   .btn          secondary: a 2px outline in the current colour
   .btn-fill     primary: Bone on Ink grounds; with .btn-on-bone, Ink on Bone grounds */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 0 26px; border-radius: 0; font: 500 17px/24px var(--sans); text-decoration: none;
  color: var(--bone); background: transparent; box-shadow: inset 0 0 0 2px currentColor;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease-out);
}
.btn-arrow { width: 22px; height: 10px; background: currentColor; clip-path: polygon(0 45%, 78% 45%, 78% 0, 100% 50%, 78% 100%, 78% 55%, 0 55%); transition: transform 160ms var(--ease); }
.btn-fill { background: var(--bone); color: var(--ink); box-shadow: inset 0 0 0 2px var(--bone); }
.btn-on-bone { color: var(--ink); }
.btn-fill.btn-on-bone { background: var(--ink); color: var(--bone); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-on-bone:focus-visible { outline-color: var(--brass-shade); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--bone); color: var(--ink); }
  .btn-fill:hover { background: var(--brass-lit); color: var(--ink); box-shadow: inset 0 0 0 2px var(--brass-lit); }
  .btn-on-bone:hover { background: var(--ink); color: var(--bone); }
  .btn-fill.btn-on-bone:hover { background: var(--brass-shade); color: var(--bone); box-shadow: inset 0 0 0 2px var(--brass-shade); }
  .btn:hover .btn-arrow { transform: translateX(4px); }
}
.btn:active { transform: scale(.97); }

/* ---------- 2. Night: the five cards land on the timeline ---------- */
.night { position: relative; z-index: 2; overflow-x: clip; padding: clamp(176px, 15vw, 232px) 0 clamp(48px, 5vw, 72px); background: var(--night); }
/* the ground turns from Night to Ink as the clock runs (home.js scrubs its opacity; static: fully on) */
.night-dusk { position: absolute; inset: 0; background: var(--ink) var(--grain-ink); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%); mask-image: linear-gradient(to bottom, transparent, #000 34%); pointer-events: none; }
.night > .wrap { position: relative; }
/* Where the cards wait, still, until the section holds and they land (never across the divider; Daniel
   2026-10-22). Positions only; home.js reads them.
   .relay-deck (1024px and up): a small deck resting on the timeline, centred between 9:47 and 10:02 and
   clear of the tick labels, so the deck and the whole timeline fit one screen. Zero height: it marks
   the deck's bottom edge. .relay-hold (under 1024px): the stack above the clock, as the list version. */
.relay { position: absolute; width: var(--relay-w); height: 300px; pointer-events: none; --relay-w: 392px; }
.relay-hold { right: 0; bottom: calc(100% + 40px); }
.relay-deck { --relay-w: 220px; height: 0; left: calc(50% - var(--relay-w) / 2); bottom: calc(100% + 46px); }

.night-head { display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); row-gap: 32px; }
.night-head .h2-xl { grid-column: 1 / span 8; }
.night-head .lede { grid-column: 1 / span 6; color: var(--mist); }
.night-head .lede .fn { color: var(--bone); }

.clock { position: relative; margin-top: clamp(96px, 9vw, 136px); }
.clock-ends { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.clock-end {
  font: 300 clamp(64px, .5rem + 10.4vw, 172px)/.78 var(--serif);
  font-variation-settings: 'opsz' 72;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.04em;
  white-space: nowrap;
  margin-left: -.04em;
}
.clock-end-r { margin-left: 0; margin-right: -.02em; }
.clock-pm { font-size: .22em; letter-spacing: 0; margin-left: .3em; vertical-align: .2em; font-weight: 400; color: var(--mist); }
.clock-span { flex: 1; align-self: center; display: flex; align-items: center; gap: 16px; font: italic 400 21px/28px var(--serif); color: var(--brass-lit); padding-bottom: 8px; }
.clock-span::before, .clock-span::after { content: ""; flex: 1; height: 1px; background: var(--rule-dark); }

.axis { position: relative; height: 18px; margin-top: 64px; }
.axis-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--mist); transform-origin: 0 50%; }
.tick { position: absolute; top: 0; left: calc(var(--t) / 15 * 100%); width: 1px; height: 8px; }
.tick::before { content: ""; position: absolute; inset: 0; background: var(--mist); }
.tick.major { height: 16px; }
.tick.major::before { background: var(--bone); }
.tick b { position: absolute; bottom: 16px; left: 0; transform: translateX(-50%); font: 400 13px/20px var(--mono); color: var(--mist); white-space: nowrap; }
.node { position: absolute; z-index: 2; top: -6px; left: calc(var(--t) / 15 * 100%); width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: var(--brass-lit); box-shadow: 0 0 0 4px var(--ink), 0 0 18px 4px var(--brass-glow); }
.leads { width: 100%; height: clamp(64px, 6vw, 96px); overflow: visible; }
.leads line { stroke: rgb(173 169 161 / .5); stroke-width: 1; vector-effect: non-scaling-stroke; }

.events { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
/* each stop is one of the hero's glass cards */
.event {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px;
  background: linear-gradient(165deg, #222630, #101217);
  box-shadow: inset 0 0 0 1px rgb(196 165 108 / .34), inset 0 1px 0 rgb(230 198 134 / .4), var(--shadow-dark);
  border-radius: 6px;
  transform-origin: 0 0;
}
.ev-when { font: 400 13px/20px var(--mono); color: var(--brass-lit); }
.ev-name { font: 400 21px/26px var(--serif); font-variation-settings: 'opsz' 24; color: var(--bone); text-wrap: balance; }
.ev-note { margin-top: auto; padding-top: 6px; font: 400 14px/20px var(--sans); color: var(--mist); text-wrap: pretty; }
.ev-gap { display: none; }
.track-notes { display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); margin-top: 40px; }
.track-notes .cap { grid-column: 1 / span 5; }
.track-notes .notes { grid-column: 7 / span 6; margin-top: 0; }

/* ---------- 2b. Two doors, in the light style of the earlier home page (Daniel, 2026-10-23) ----------
   Bone ground with ink type; each door carries a page sample (a firm's website with its search result and
   AI answer; the practice dashboard), and the samples cross a seam into the Ink band below, as the laptop and
   phone samples did on the first home page. --seam is how far the Ink rises behind the samples. */
.doors { --seam: clamp(120px, 12vw, 190px); position: relative; z-index: 3; color: var(--ink); padding: clamp(96px, 9vw, 144px) 0 0;
  background: linear-gradient(to bottom, transparent calc(100% - var(--seam)), var(--vellum) calc(100% - var(--seam))), var(--bone) var(--grain-paper); }
.eyebrow { font: 400 13px/20px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brass-lit); }
.doors .eyebrow { color: var(--brass-shade); }
.doors-head { display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); row-gap: 28px; align-items: end; }
.doors-head-a { grid-column: 1 / span 7; display: grid; gap: 20px; }
.doors-head .h2-xl { max-width: 17ch; color: var(--ink); }
.doors-lede { grid-column: 8 / span 5; color: var(--ink); padding-bottom: 10px; }
.doors-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: var(--col-gap); row-gap: clamp(40px, 4vw, 56px); margin-top: clamp(56px, 6vw, 88px); }
.door { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: inherit; min-width: 0; }
.door-text { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.door-n { font: 400 13px/20px var(--mono); color: var(--brass-shade); }
.door-name { font: 300 var(--step-3)/1 var(--serif); font-variation-settings: 'opsz' 72; letter-spacing: -0.025em; color: var(--ink); }
.door-sub { font: italic 400 23px/30px var(--serif); font-variation-settings: 'opsz' 24; color: var(--brass-shade); }
.door-p { font: 400 17px/28px var(--sans); color: var(--ink); max-width: 46ch; text-wrap: pretty; }
.door-list { margin: 6px 0 4px; border-top: 1px solid var(--rule); }
.door-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); font: 400 17px/24px var(--sans); color: var(--ink); }
.door-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.door .link-arrow { align-self: flex-start; color: var(--ink); }

/* the page samples: a dark frame, a Bone page inside, one soft shadow */
.pg { position: relative; z-index: 1; margin: 0; display: flex; }
.pg-frame { padding: 10px; border-radius: 10px; background: #1C1F26; box-shadow: inset 0 0 0 1px #3A3E47, 0 2px 2px rgb(23 26 33 / .14), 24px 44px 80px -36px rgb(0 0 0 / .55); }
.pg-bar { display: flex; align-items: center; gap: 14px; padding: 4px 6px 12px; }
.pg-dots { display: flex; gap: 6px; }
.pg-dots i { width: 8px; height: 8px; border-radius: 50%; background: #3A3E47; }
.pg-url { flex: 1; min-width: 0; padding: 4px 12px; border-radius: 4px; background: #262A32; font: 400 12px/18px var(--mono); color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-bar .tag { flex: none; padding: 2px 8px; border: 1px solid #5A5E66; font: 400 11px/16px var(--sans); color: var(--mist); }
.pg-screen { background: var(--letter); color: var(--ink); border-radius: 3px; overflow: hidden; }

/* Visibility: the firm's site, its search result and an AI answer */
.st-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--rule); }
.st-brand { font: 400 17px/22px var(--serif); }
.st-links { display: flex; gap: 16px; font: 400 12px/16px var(--sans); color: var(--slate); }
.st-hero { padding: 26px 22px 22px; background: linear-gradient(160deg, #EFEBE2, #E6E1D6); }
.st-kicker { font: 400 11px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brass-shade); }
.st-h { margin-top: 8px; font: 300 clamp(22px, 2.1vw, 30px)/1.08 var(--serif); font-variation-settings: 'opsz' 48; letter-spacing: -0.015em; max-width: 16ch; }
.st-p { margin-top: 8px; font: 400 13px/20px var(--sans); color: var(--slate); max-width: 36ch; }
.st-btn { display: inline-block; margin-top: 14px; padding: 7px 12px; background: var(--ink); color: var(--bone); font: 500 12px/16px var(--sans); }
.st-found { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); }
.st-serp, .st-ai { background: var(--letter); padding: 14px 18px 16px; }
.st-ai { background: #EDEAE3; }
.st-label { font: 400 10px/14px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.st-url { margin-top: 6px; font: 400 11px/16px var(--sans); color: var(--slate); }
.st-title { margin-top: 2px; font: 400 15px/20px var(--serif); color: #1F3A68; }
.st-desc { margin-top: 4px; font: 400 12px/18px var(--sans); color: var(--ink); }

/* Operations: the practice dashboard */
.ap-main { display: grid; grid-template-columns: 130px minmax(0, 1fr); }
.ap-rail { background: var(--vellum); padding: 18px 12px; font: 400 13px/18px var(--sans); color: var(--slate); }
.ap-rail li { padding: 7px 10px; }
.ap-rail .is-current { color: var(--ink); font-weight: 500; box-shadow: inset 2px 0 0 var(--ink); }
.ap-content { padding: 20px 24px 22px; }
.ap-h { font: 400 24px/30px var(--serif); font-variation-settings: 'opsz' 36; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.ap-steps li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.ap-steps li:last-child { border-bottom: 0; }
.ap-when { font: 400 12px/18px var(--mono); color: var(--slate); }
.ap-name { font: 400 16px/22px var(--serif); }
.ap-steps .status { font: 500 12px/18px var(--sans); }
.ap-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 14px; padding: 12px 14px; background: #EDEAE3; font: 400 15px/22px var(--serif); }
.ap-next .status { font: 500 12px/18px var(--sans); }
.ap-who { margin-left: auto; font: 400 12px/18px var(--sans); color: var(--slate); }
/* both samples the same height, so the seam crosses them at the same place */
.pg-frame { flex: 1; display: flex; flex-direction: column; }
.pg-screen { flex: 1; }

/* ---------- 2c. Already established? An audit report (change list item 2, 2026-10-23) ----------
   Vellum, one step warmer than the doors' Bone, so the two light sections read as two; the report is a sheet of
   RN paper like the stage documents further down, and its three Fixed stamps land as it comes into view. */
.audit { position: relative; background: var(--vellum) var(--grain-paper); color: var(--ink); padding: clamp(80px, 8vw, 128px) 0 clamp(96px, 9vw, 144px); }
.audit-grid { display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); row-gap: 48px; align-items: center; }
.audit-text { grid-column: 1 / span 5; display: grid; gap: 22px; align-content: start; }
.audit .eyebrow { color: var(--brass-shade); }
.audit-text .h2-xl { color: var(--ink); }
.audit-text .lede { color: var(--ink); max-width: 34ch; }
.audit-text .body { color: var(--ink); max-width: 46ch; }
.audit-text .fn { color: var(--ink); }
.audit-text .notes { margin-top: 0; border-top-color: var(--rule); color: #4A4D52; }
.audit-fig { grid-column: 7 / span 6; margin: 0; }
.report { container-type: inline-size; width: min(100%, 560px); margin-left: auto; transform: rotate(1.2deg); }
.report-in { display: flex; flex-direction: column; padding: 7cqw 7.5cqw 6cqw; background: var(--letter) var(--grain-paper); color: var(--ink); box-shadow: var(--shadow-paper), 30px 50px 80px -40px rgb(23 26 33 / .45); }
.rp-rows { margin-top: 1cqw; }
.rp-rows li { display: grid; grid-template-columns: 7cqw minmax(0, 1fr) auto; align-items: center; column-gap: 3cqw; padding: 3cqw 0; border-bottom: 1px solid var(--rule); }
.rp-n { font-size: max(11px, 2.6cqw); color: var(--slate); }
.rp-what { display: grid; gap: .6cqw; font: 400 max(13px, 3.3cqw)/1.35 var(--serif); }
.rp-what b { font: 500 max(12px, 2.9cqw)/1.3 var(--sans); }
.rp-stamp { padding: .8cqw 2.4cqw; border: 1.5px solid var(--brass-shade); color: var(--brass-shade); font: 500 max(11px, 2.6cqw)/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-4deg); }
html.home-motion .rp-rows.is-waiting .rp-stamp { opacity: 0; transform: rotate(-4deg) scale(1.6); }
html.home-motion .rp-rows.is-stamping .rp-stamp { animation: stamp 420ms var(--ease-out) both; }
html.home-motion .rp-rows.is-stamping li:nth-child(2) .rp-stamp { animation-delay: 260ms; }
html.home-motion .rp-rows.is-stamping li:nth-child(3) .rp-stamp { animation-delay: 520ms; }
@keyframes stamp { from { opacity: 0; transform: rotate(-4deg) scale(1.6); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
.report .sh-spec { margin-top: 5cqw; }
.audit-fig .cap { margin-top: 24px; color: #4A4D52; max-width: 46ch; margin-left: auto; }

/* ---------- 3. Proof ---------- */
.proof { position: relative; background: var(--ink) var(--grain-ink); padding: clamp(56px, 6vw, 96px) 0 clamp(96px, 9vw, 144px); }
.proof-head { display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); row-gap: 20px; align-items: end; }
.proof-head .h2-xl { grid-column: 1 / span 6; }
.proof-head .proof-lede { grid-column: 8 / span 5; margin-top: 0; padding-bottom: 8px; }
.proof-grid { display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); align-items: start; margin-top: clamp(48px, 5vw, 72px); }
.proof-fig { grid-column: 1 / span 6; position: sticky; top: calc(var(--nav-h) + 32px); }
.proof-fig img { width: 100%; height: auto; background: var(--night); }
.proof-fig .cap { margin-top: 16px; }
.proof-text { grid-column: 8 / span 5; }
.proof-text .proof-list { margin-top: 0; }
.proof-lede { margin-top: 20px; font: 400 17px/28px var(--sans); color: var(--mist); max-width: 44ch; text-wrap: pretty; }
.proof-list { margin-top: 40px; }
.proof-list li { padding: 20px 0 22px; border-top: 1px solid var(--rule-dark); }
.proof-big { font: 400 var(--step-5)/1.2 var(--serif); font-variation-settings: 'opsz' 36; letter-spacing: -0.01em; color: var(--bone); }
.proof-p { margin-top: 6px; font: 400 17px/28px var(--sans); color: var(--mist); max-width: 44ch; }
.proof-p a { color: var(--bone); }
.proof-act { margin-top: 36px; }
.proof-text .notes { margin-top: 32px; }

/* ---------- 4. Dawn: the same desk, night to morning ----------
   Static (no JavaScript, reduced motion): the two stills one after the other, each on its own ground.
   With motion (html.home-motion): pinned for about two screens while morning rises from below. */
/* The same desk through one night (2026-10-22): five rendered moments (night 10:01 pm, late 12:10 am,
   predawn 6:00 am, sunrise 6:55 am, morning 8:30 am). Each layer's ground matches its picture's top and bottom
   edge so the picture's faded edges melt into it. Each moment's message sits in a soft panel so it reads over
   anything behind it: dark panels at night, light ones by day. home.js blends the moments and the sky on scroll. */
.dawn { position: relative; overflow-x: clip; background: var(--ink) var(--grain-ink); }
.dawn-layer { position: relative; overflow: clip; display: grid; place-items: center; padding: clamp(24px, 4vw, 56px) 0; }
.dawn-night   { background: linear-gradient(#020408 0 50%, #1f2024 50%); }
.dawn-late    { background: linear-gradient(#010102 0 50%, #1e2023 50%); }
.dawn-predawn { background: linear-gradient(#181c2d 0 50%, #252528 50%); }
.dawn-sunrise { background: linear-gradient(#d59f7c 0 50%, #3c3432 50%); }
.dawn-morning { background: linear-gradient(#e6e1da 0 50%, #4b4340 50%); }
.dawn-layer picture, .dawn-layer img { display: block; width: 100%; height: auto; }
.dawn-layer img { -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); }
.dawn-mid { display: none; }
.dawn-say { position: absolute; z-index: 2; left: var(--edge); top: clamp(88px, 11vw, 140px); max-width: min(30rem, calc(100% - 2 * var(--edge))); padding: clamp(18px, 2vw, 28px) clamp(20px, 2.2vw, 32px); border-radius: 6px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.is-dark .dawn-say { background: rgb(12 14 19 / .72); box-shadow: inset 0 0 0 1px rgb(241 239 234 / .1); color: var(--bone); }
.is-light .dawn-say { background: rgb(247 244 238 / .8); box-shadow: inset 0 0 0 1px rgb(23 26 33 / .1); color: var(--ink); }
.dawn-when { margin: 0; display: flex; flex-direction: column; gap: 6px; font: 400 15px/20px var(--sans); color: var(--mist); }
.is-light .dawn-when { color: var(--slate); }
.dawn-when b { font: 300 clamp(48px, 1rem + 4.4vw, 88px)/.9 var(--serif); font-variation-settings: 'opsz' 72; letter-spacing: -0.03em; color: currentColor; }
.is-dark .dawn-when b { color: var(--bone); }
.is-light .dawn-when b { color: var(--ink); }
.dawn-msg { margin: 16px 0 0; font: 400 clamp(19px, 1rem + .45vw, 24px)/1.45 var(--sans); text-wrap: pretty; }
.dawn-sky { display: none; }
.dawn-gl { display: none; }
.dawn-cap { position: relative; padding: 16px var(--edge) 24px; font: 400 14px/20px var(--sans); color: var(--slate); background: var(--bone) var(--grain-paper); }

html.home-motion .dawn { height: 480vh; }
html.home-motion .dawn-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
html.home-motion .dawn-fig { position: absolute; inset: 0; }
html.home-motion .dawn-layer { position: absolute; inset: 0; padding: 0; }
html.home-motion .dawn-mid { display: grid; }
html.home-motion .dawn-layer + .dawn-layer { opacity: 0; }
/* the sky over the desk: a cold dawn glow, then the sun, both from the window side (upper left) */
/* the live desk (home.js adds .dawn-live once it has drawn): the stills step aside, the panels stay */
html.home-motion .dawn-live .dawn-gl { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
html.home-motion .dawn-live .dawn-layer { background: none; }
html.home-motion .dawn-live .dawn-layer picture { visibility: hidden; }
html.home-motion .dawn-sky { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.dawn-sky i { position: absolute; inset: 0; opacity: 0; }
.sky-dawn { background: radial-gradient(120% 90% at 8% 0%, rgb(126 116 196 / .55), rgb(196 120 150 / .22) 45%, transparent 75%); mix-blend-mode: screen; }
.sky-sun { background: radial-gradient(110% 95% at 4% 6%, rgb(255 164 84 / .75), rgb(255 196 128 / .32) 38%, rgb(255 220 170 / .1) 60%, transparent 80%), linear-gradient(180deg, rgb(255 150 90 / .18), transparent 55%); mix-blend-mode: soft-light; }
html.home-motion .dawn-cap { position: absolute; z-index: 3; left: var(--edge); bottom: 20px; padding: 6px 10px; color: var(--bone); background: rgb(17 19 24 / .82); }

/* ---------- 5. Morning ---------- */
.morning { position: relative; overflow-x: clip; background: var(--bone) var(--grain-paper); color: var(--ink); padding: clamp(80px, 8vw, 128px) 0 clamp(96px, 10vw, 160px); }
.morning-grid { display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); }
.morning-text { grid-column: 1 / -1; display: grid; grid-template-columns: var(--cols); column-gap: inherit; }
.morning-text .h2-xl { grid-column: 1 / span 7; }
.morning-body { grid-column: 8 / span 5; padding-top: 12px; }
.morning-text .body { color: var(--ink); }
.screen { grid-column: 1 / -1; margin-top: clamp(56px, 6vw, 96px); }
.screen-body {
  padding: 10px; border-radius: 12px;
  background: #0C0D10;
  box-shadow: inset 0 0 0 1px #4A4E57, 0 2px 2px rgb(23 26 33 / .12), 20px 40px 80px -40px rgb(23 26 33 / .5);
}
.screen-body > * { background: var(--bone); color: var(--ink); }
.sc-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--rule); border-radius: 4px 4px 0 0; }
.sc-firm { font: 500 14px/20px var(--sans); }
.sc-sep { margin: 0 6px; color: var(--slate); }
.sc-main { display: grid; grid-template-columns: 170px minmax(0, 1.35fr) minmax(0, 1fr); min-height: 360px; border-radius: 0 0 4px 4px; overflow: hidden; }
.sc-rail { background: var(--vellum); padding: 20px 16px; font: 400 14px/20px var(--sans); color: var(--slate); }
.sc-rail li { padding: 8px 10px; }
.sc-rail .is-current { color: var(--ink); font-weight: 500; box-shadow: inset 2px 0 0 var(--ink); }
.sc-col { padding: 24px 28px; }
.sc-night { border-left: 1px solid var(--rule); background: #EDEAE3; }
.sc-h { font: 400 27px/32px var(--serif); font-variation-settings: 'opsz' 36; letter-spacing: -0.01em; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.sc-tasks li { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "s t" "s w"; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.sc-tasks .status { grid-area: s; align-self: start; padding-top: 2px; font: 500 14px/20px var(--sans); }
.sc-task { grid-area: t; font: 400 19px/26px var(--serif); }
.sc-who { grid-area: w; font: 400 14px/20px var(--sans); color: var(--slate); }
.sc-big { margin-top: 20px; font: 300 44px/1 var(--serif); font-variation-settings: 'opsz' 72; letter-spacing: -0.02em; }
.sc-sub { margin-top: 10px; font: 400 14px/20px var(--sans); color: var(--slate); }
.sc-squares { display: flex; gap: 10px; margin-top: 22px; font-size: 22px; color: var(--ink); }
.sc-squares .status { gap: 0; }
.sq-0 { --i: 0; } .sq-1 { --i: 1; } .sq-2 { --i: 2; } .sq-3 { --i: 3; } .sq-4 { --i: 4; }
html.home-motion .sc-squares.is-waiting .status::before { background: transparent; }
html.home-motion .sc-squares.is-filling .status::before { animation: fillsq 260ms var(--ease-out) calc(var(--i) * 120ms) both; }
@keyframes fillsq { from { background-color: transparent; transform: scale(.7); } }
.screen .cap { color: #4A4D52; margin-top: 32px; }

/* ---------- 5b. Where we started (law as the proof) ---------- */
.started { position: relative; background: var(--bone) var(--grain-paper); color: var(--ink); padding: clamp(8px, 1vw, 16px) 0 clamp(96px, 9vw, 144px); }
.started-grid { display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); row-gap: 28px; padding-top: clamp(48px, 5vw, 72px); border-top: 1.5px solid var(--ink); }
.started-grid .h2-xl { grid-column: 1 / span 7; }
.started-body { grid-column: 8 / span 5; padding-top: 12px; }
.started-body .body { color: var(--ink); }

/* ---------- 6. The paper ---------- */
.paper { position: relative; overflow-x: clip; background: var(--bone) var(--grain-paper); color: var(--ink); padding: clamp(24px, 3vw, 48px) 0 clamp(160px, 14vw, 208px); }
.paper-grid { display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); align-items: start; }
.paper-text { grid-column: 1 / span 5; }
.paper-stop { margin-top: 24px; font: italic 400 27px/36px var(--serif); font-variation-settings: 'opsz' 24; color: var(--brass-shade); }
.paper-more { margin-top: 16px; font: 400 17px/28px var(--sans); color: var(--ink); max-width: 46ch; text-wrap: pretty; }
.stages { margin-top: 48px; border-top: 1.5px solid var(--ink); }
.stage { padding: 20px 0 22px; border-bottom: 1px solid var(--rule); transition: opacity 300ms var(--ease); }
.stage-name { display: flex; align-items: baseline; gap: 14px; font: 400 27px/32px var(--serif); font-variation-settings: 'opsz' 36; letter-spacing: -0.01em; }
.stage-n { font: 400 15px/1 var(--sans); color: var(--brass-shade); width: 14px; font-variant-numeric: lining-nums; }
.stage p { margin-top: 8px; padding-left: 28px; font: 400 17px/28px var(--sans); color: var(--ink); max-width: 52ch; }
.paper-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }

.desk { grid-column: 7 / span 6; position: sticky; top: 112px; }
.sheets { position: relative; height: clamp(560px, 50vw, 700px); }
.sheet { position: absolute; width: 60%; aspect-ratio: 8.5 / 11; container-type: inline-size; }
.sheet-in {
  height: 100%; overflow: hidden; padding: 8cqw 8cqw 6cqw; font-size: 3.4cqw; line-height: 1.45; display: flex; flex-direction: column;
  background: var(--letter) var(--grain-paper); color: var(--ink); box-shadow: var(--shadow-paper);
  transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
}
.sheet-a { left: 0; top: 10%; transform: rotate(-6deg); z-index: 1; }
.sheet-c { right: 0; top: 16%; transform: rotate(5.5deg); z-index: 2; }
.sheet-b { left: 21%; top: 0; transform: rotate(.8deg); z-index: 3; }
.sheet.is-front { z-index: 5; }
.sheet.is-front .sheet-in { transform: translateY(-14px) scale(1.025); box-shadow: 0 2px 3px rgb(23 26 33 / .12), 16px 30px 48px -22px rgb(23 26 33 / .42); }
.sh-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 4cqw; border-bottom: 1px solid var(--ink); }
.sh-head img { width: 44cqw; height: auto; }
.sh-ref { font-size: max(11px, 3cqw); color: var(--slate); }
.sh-kind { margin-top: 5.5cqw; font: 500 max(12px, 3.2cqw)/1.3 var(--sans); color: var(--brass-shade); }
.sh-title { font: 300 8.4cqw/1.05 var(--serif); font-variation-settings: 'opsz' 48; letter-spacing: -0.02em; margin-top: 1.5cqw; }
.sh-sub { margin-top: 2.4cqw; font: 400 3.8cqw/1.35 var(--serif); }
.sh-h { margin-top: 4.6cqw; font: 500 3.2cqw/1.3 var(--sans); padding-bottom: 1.6cqw; border-bottom: 1px solid var(--rule); }
.sh-p { margin-top: 2cqw; font: 400 3.4cqw/1.45 var(--serif); }
.sh-table { width: 100%; border-collapse: collapse; margin-top: 1cqw; font: 400 3.3cqw/1.3 var(--serif); }
.sh-table td { padding: 1.7cqw 0; border-bottom: 1px solid var(--rule); }
.sh-table td + td { text-align: right; font: 500 3cqw/1.3 var(--sans); }
.sh-checks { margin-top: 3cqw; }
.sh-checks li { display: flex; align-items: center; gap: 2.6cqw; padding: 1.7cqw 0; border-bottom: 1px solid var(--rule); font: 400 3.4cqw/1.3 var(--serif); }
.sh-checks .status { font-size: 3.2cqw; gap: 0; }
.sh-sign { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6cqw; font: 400 2.8cqw/1.3 var(--sans); color: var(--slate); }
.sh-sign span { padding-top: 1.6cqw; border-top: 1px solid var(--ink); }
/* the one test-data label on each specimen: readable (12px floor, 7:1 on the paper) */
.sh-spec { margin-top: 4cqw; font: 500 max(12px, 2.9cqw)/1.3 var(--sans); color: #4A4D52; }
.sheet-a .sh-spec, .sheet-c .sh-spec { margin-top: auto; padding-top: 3cqw; }
.desk .cap { color: #4A4D52; margin-top: 24px; margin-left: auto; }

/* ---------- 7. Private: the statement beside the letter ---------- */
.private { position: relative; overflow-x: clip; padding: clamp(120px, 11vw, 168px) 0 clamp(72px, 7vw, 112px); background: var(--ink) var(--grain-ink); }
.private-grid { display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); align-items: start; }
.private-text { grid-column: 1 / span 6; }
.private-text .lede { margin-top: 40px; max-width: 30ch; }
.private-text .body { margin-top: 20px; color: var(--mist); max-width: 46ch; }
.private-text .notes { max-width: 52ch; }
/* the letter crosses the seam from the paper above */
.letter { grid-column: 8 / span 5; position: relative; z-index: 2; margin-top: calc(-1 * clamp(250px, 21vw, 300px)); }
.letter-stage { position: relative; padding-bottom: 24%; }
.letter-sheet {
  position: relative; z-index: 1;
  container-type: inline-size;
  aspect-ratio: 8.5 / 11;
  background: var(--letter) var(--grain-paper);
  color: var(--ink);
  transform: rotate(2.2deg);
  box-shadow: var(--shadow-paper), 24px 48px 80px -40px rgb(0 0 0 / .5);
}
.lt-in { padding: 10cqw; font: 400 3.1cqw/1.55 var(--serif); font-variation-settings: 'opsz' 18; }
.lt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 4cqw; }
.lt-head img { width: 42cqw; height: auto; }
.lt-from { text-align: right; font-size: 2.5cqw; line-height: 1.5; }
.lt-from .mono { font-size: 2.3cqw; }
.lt-rule { display: flex; align-items: center; gap: 1.6cqw; margin-top: 5cqw; }
.lt-rule span { flex: 1; height: 1px; background: var(--ink); }
.lt-rule::after { content: ""; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: var(--brass); }
.lt-ref { margin-top: 6cqw; font-size: 2.6cqw; }
.lt-conf { font-size: 2.6cqw; margin-bottom: 4cqw; }
.lt-p + .lt-p { margin-top: 3cqw; }
.letter .cap { position: relative; z-index: 4; margin-top: 28px; }

/* the business card, landing on the letter (home.js: from x+120, 12deg to 3.5deg) */
.card { position: absolute; z-index: 2; width: 66%; aspect-ratio: 3.5 / 2; container-type: inline-size; color: var(--ink); }
.card::before { content: ""; position: absolute; inset: 0; z-index: 0; background: #0B0C0F; transform: translate(2px, 3px); box-shadow: inset 0 1px 0 #3A3E47, 0 1px 1px rgb(0 0 0 / .25), 10px 20px 30px -14px rgb(0 0 0 / .55); }
.card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--bone) var(--grain-paper); box-shadow: inset 0 0 0 .5px rgb(23 26 33 / .1); }
.cd-in, .card-seal { position: relative; z-index: 2; }
.card-back { left: 20%; bottom: 8%; transform: rotate(-7deg); display: grid; place-items: center; }
.card-front { left: -10%; bottom: 0; z-index: 3; transform: rotate(3.5deg); }
.cd-in { height: 100%; padding: 6.2cqw 6.6cqw; display: flex; flex-direction: column; }
.card-seal { width: 34cqw; height: 34cqw; }
.card-seal .foil { fill: var(--brass); }
.cd-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4cqw; font: 400 5.4cqw/1 var(--serif); font-variation-settings: 'opsz' 36; }
.cd-top em { font-size: 3.3cqw; }
.cd-rule { display: flex; align-items: center; gap: 1.4cqw; margin-top: 4cqw; }
.cd-rule span { flex: 1; height: 1.5px; background: var(--ink); }
.foil-dot { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--brass); }
.cd-person { margin-top: auto; font: 400 7.2cqw/1 var(--serif); font-variation-settings: 'opsz' 48; letter-spacing: -0.01em; }
.cd-title { font: 400 4.4cqw/1.3 var(--serif); margin-top: 1cqw; }
.cd-contact { margin-top: 3.6cqw; font-size: 3.6cqw; line-height: 1.5; }

/* ---------- 8. The close ---------- */
.close { background: var(--ink) var(--grain-ink); padding: clamp(40px, 5vw, 72px) 0 clamp(96px, 10vw, 160px); }
.close-grid { display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); align-items: start; padding-top: clamp(72px, 7vw, 104px); border-top: 1px solid var(--rule-dark); }
.close-head { grid-column: 1 / span 8; }
.close-head .h2-giant { font-size: clamp(50px, 1.5rem + 5.2vw, 108px); letter-spacing: -0.032em; max-width: 13ch; }
.close-where { margin-top: 24px; font: 400 15px/20px var(--sans); color: var(--mist); }
.close-fig { grid-column: 1 / span 7; grid-row: 2; margin-top: clamp(40px, 4vw, 64px); }
.close-fig img { width: 100%; height: auto; background: #2a2620; }
.close-body { grid-column: 9 / span 4; grid-row: 1 / span 2; padding-top: 16px; }
.close-body .lede { max-width: 34ch; }
.close-actions { margin-top: 32px; }
.close-letter { margin-top: 40px; max-width: 52ch; font: 400 17px/28px var(--sans); color: var(--mist); }
.close-letter strong { font-weight: 500; color: var(--bone); }
.close-letter a { color: var(--bone); }

/* ---------- Footer (Ink-deep) ---------- */
.site-footer { background: var(--ink-deep) var(--grain-ink); padding: clamp(64px, 8vw, 112px) 0 48px; }
/* the wordmark is sized from the width it has, so it never runs off a 320px screen */
.footer-word {
  font: 300 min(184px, calc((min(100vw, 1320px) - 2 * var(--gutter)) / 6.9))/.9 var(--serif);
  font-variation-settings: 'opsz' 72;
  letter-spacing: -0.035em;
  color: var(--bone);
  white-space: nowrap;
  margin-left: -.05em;
}
.footer-grid { display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); row-gap: 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule-dark); font: 400 14px/24px var(--sans); color: var(--mist); }
.footer-tag { grid-column: 1 / span 4; font: 400 21px/28px var(--serif); color: var(--bone); }
.footer-grid address { grid-column: 5 / span 8; font-style: normal; }
.footer-grid nav { grid-column: 5 / span 8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { color: var(--bone); display: inline-block; padding-block: 2px; }
.footer-legal { grid-column: 5 / span 8; }
.contact-line a { color: var(--bone); }

/* page-to-page: a short cross-fade, as on the inner pages */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn-arrow, .link-arrow::after, .site-header, .sheet-in, .nav-cta { transition: none; }
  .btn:active { transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1099px) {
  .nav-list { gap: 20px; }
  .night-head .h2-xl { grid-column: 1 / -1; }
  .night-head .lede { grid-column: 1 / span 7; }
  .paper-text { grid-column: 1 / span 6; }
  .desk { grid-column: 7 / span 6; }
  .proof-fig { grid-column: 1 / span 6; }
  .proof-text { grid-column: 7 / span 6; }
  .close-head, .close-fig { grid-column: 1 / span 7; }
  .close-body { grid-column: 8 / span 5; }
}

/* the timeline as a list (tablet and phone): the cards hang from one vertical line */
@media (max-width: 1023px) {
  .doors-head-a, .doors-lede { grid-column: 1 / -1; }
  .doors-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .door { grid-row: auto; grid-template-rows: none; row-gap: 32px; }
  .door + .door { margin-top: 24px; }
  .audit-text, .audit-fig, .proof-head .h2-xl, .proof-head .proof-lede, .started-grid .h2-xl, .started-body { grid-column: 1 / -1; }
  .report { margin: 0 auto; transform: none; }
  .audit-fig .cap { margin-left: 0; }
  .proof-fig { position: relative; top: auto; }
  .relay { --relay-w: 300px; height: 230px; }
  .clock-span { display: none; }
  .axis, .leads { display: none; }
  .events { display: block; margin-top: 48px; margin-left: 6px; padding-left: 24px; border-left: 1px solid var(--mist); }
  .event { margin-top: 28px; max-width: 520px; }
  .event:first-child { margin-top: 0; }
  .event::before { content: ""; position: absolute; left: -31px; top: 22px; width: 13px; height: 13px; border-radius: 50%; background: var(--brass-lit); box-shadow: 0 0 0 4px var(--ink); }
  .ev-gap { display: block; position: absolute; left: 0; top: -22px; font: 400 13px/18px var(--sans); color: var(--mist); }
  .event { margin-top: 44px; }
  .event:first-child { margin-top: 0; }
  .event:first-child .ev-gap { display: none; }
  .track-notes { display: block; }
  .track-notes .notes { margin-top: 24px; }
  .relay-hold { bottom: calc(100% + 24px); }
  .clock { margin-top: 300px; }
}

/* ---------- Phone ---------- */
@media (max-width: 860px) {
  .st-links, .ap-rail, .pg-url { display: none; }
  .pg-bar .tag { margin-left: auto; }
  .st-found { grid-template-columns: minmax(0, 1fr); }
  .ap-main { grid-template-columns: minmax(0, 1fr); }
  .ap-steps li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "w s" "n s"; }
  .ap-when { grid-area: w; } .ap-name { grid-area: n; } .ap-steps .status { grid-area: s; align-self: center; }
  :root { --nav-h: 64px; }
  .brand img { width: 168px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: none; border: 0; color: var(--bone); font: 500 14px/20px var(--sans); box-shadow: inset 0 0 0 1px var(--bone); cursor: pointer; }
  .nav-toggle-icon { width: 16px; height: 8px; border-block: 1.5px solid currentColor; }
  .nav-inquire { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: var(--bone); color: var(--ink); font: 500 14px/20px var(--sans); text-decoration: none; }
  .nav-list { display: none; position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--ink-deep); border-top: 1px solid var(--rule-dark); font-size: 17px; }
  .nav[data-open="true"] .nav-list { display: flex; }
  .nav-list a { display: block; padding-block: 14px; border-bottom: 1px solid var(--rule-dark); }
  .nav-cta-item { margin-top: 16px; }
  .nav-cta { justify-content: center; }

  .lede { font-size: 19px; line-height: 28px; }
  .night { padding-top: 120px; }
  .relay { --relay-w: 220px; height: 170px; }
  .night-head .lede { grid-column: 1 / -1; }
  .clock { margin-top: 230px; }
  .clock-ends { gap: 8px; }
  .clock-end { font-size: clamp(48px, 15vw, 76px); }

  .proof-fig, .proof-text { grid-column: 1 / -1; }
  .proof-text { margin-top: 48px; }
  .proof-act .btn, .close-actions .btn, .paper-act .btn { width: 100%; justify-content: space-between; }

  html.home-motion .dawn { height: 420vh; }
  .dawn-say { top: 84px; }
  html.home-motion .dawn-layer { place-items: end center; padding-bottom: 56px; }

  .morning-text .h2-xl, .morning-body { grid-column: 1 / -1; }
  .morning-body { padding-top: 24px; }
  .screen { margin-inline: calc(-1 * var(--gutter) + 8px); }
  .sc-main { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .sc-rail { display: none; }
  .sc-bar { padding: 10px 14px; flex-wrap: wrap; gap: 6px 12px; }
  .sc-col { padding: 16px 16px 18px; }
  .sc-night { border-left: 0; border-top: 1px solid var(--rule); }
  .sc-h { font-size: 21px; line-height: 28px; }
  .sc-big { font-size: 34px; }
  .screen .cap { padding-inline: calc(var(--gutter) - 8px); }

  .paper { padding-top: 16px; padding-bottom: 200px; }
  .paper-text, .desk { grid-column: 1 / -1; }
  .desk { margin-top: 64px; position: relative; top: auto; }
  .sheets { height: 112vw; }
  .sheet { width: 64%; }

  .private-text, .letter { grid-column: 1 / -1; }
  .letter { order: -1; margin-top: -150px; padding-inline: 2vw 6vw; }
  .private-text { margin-top: 72px; }
  .card { width: 78%; }
  .card-front { left: -2%; }

  .close-head, .close-fig, .close-body { grid-column: 1 / -1; grid-row: auto; }
  .close-body { margin-top: 32px; padding-top: 0; }
  .close-fig { margin-inline: calc(-1 * var(--gutter)); }

  .footer-grid > * { grid-column: 1 / -1 !important; }
}
@media (max-width: 400px) {
  .brand img { width: 152px; }
  .nav-toggle { padding: 0 12px; }
}


/* CSP: positions for the timeline ticks, set by class instead of inline style */
.tk-0{--t:0}.tk-1{--t:1}.tk-2{--t:2}.tk-3{--t:3}.tk-4{--t:4}.tk-5{--t:5}.tk-6{--t:6}.tk-7{--t:7}.tk-8{--t:8}.tk-9{--t:9}.tk-10{--t:10}.tk-11{--t:11}.tk-12{--t:12}.tk-13{--t:13}.tk-14{--t:14}.tk-15{--t:15}
