/* ============================================================================
   oculus · site.css
   Light, editorial, chaptered. Grounds are painted per chapter on a hard edge.
   Everything continuous moves by transform, opacity or clip-path only.
   ========================================================================== */

:root {
  --sc-canvas:     #F3F2EE;
  --sc-surface:    #FFFFFF;
  --sc-ink:        #16161A;
  --sc-ink-soft:   #5F5E67;
  --sc-accent:     #1F3AE6;
  --sc-accent-ink: #FFFFFF;

  --sc-font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sc-font-text:    "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sc-font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --paper-0: #F3F2EE;   /* title page, II, V, VII */
  --paper-1: #EEEDE7;   /* I */
  --paper-2: #FFFFFF;   /* III, VI */
  --paper-3: #EBEAE4;   /* IV */
  --beam:    #F6E3B4;

  /* Light ground: the edge highlight inverts to white, the shadow alphas halve
     and re-tint toward the ink's hue. */
  --sc-edge: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --sc-shadow-color: 240 8% 14%;
  --sc-e1: 0 1px 2px hsl(var(--sc-shadow-color) / 0.12),
           0 2px 6px -1px hsl(var(--sc-shadow-color) / 0.10);
  --sc-e2: 0 2px 4px hsl(var(--sc-shadow-color) / 0.11),
           0 8px 18px -4px hsl(var(--sc-shadow-color) / 0.15);
  --sc-e3: 0 4px 8px hsl(var(--sc-shadow-color) / 0.10),
           0 18px 40px -8px hsl(var(--sc-shadow-color) / 0.19),
           0 48px 90px -24px hsl(var(--sc-shadow-color) / 0.15);

  --sc-r-sm: 2px; --sc-r-md: 3px; --sc-r-lg: 4px;
  --sc-section: clamp(4rem, 8vw, 9rem);
  --sc-measure: 58ch;
  --sc-maxw: 82rem;
  --sc-z-chrome: 60;
  --folio-h: 44px;
}

html { background: var(--paper-0); }
body { background: var(--sc-canvas); color: var(--sc-ink); }

/* Fraunces at its soft, low-contrast setting. Weight 400; italic for emphasis. */
.sc-display {
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-optical-sizing: auto;
  letter-spacing: -0.012em;
}
em, i { font-style: italic; }

/* ------------------------------------------------------------- utilities -- */
.skip {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 70;
  padding: 0.7rem 1rem; background: var(--sc-ink); color: var(--sc-accent-ink);
  font-size: var(--sc-t-sm); text-decoration: none; border-radius: var(--sc-r-sm);
  transform: translateY(-160%); opacity: 0;
  transition: transform var(--sc-d-fast) var(--sc-ease-out), opacity var(--sc-d-fast) var(--sc-ease-out);
}
.skip:focus-visible { transform: none; opacity: 1; }

.copy p { max-width: var(--sc-measure); text-wrap: pretty; margin-block: 0; color: var(--sc-ink); }
.copy p + p { margin-top: var(--sc-4); }
.copy h2 + p { margin-top: var(--sc-4); }
.copy .sc-lede { color: var(--sc-ink); max-width: 30ch; font-family: var(--sc-font-display); font-variation-settings: "SOFT" 50, "WONK" 0; font-size: var(--sc-t-xl); line-height: 1.22; letter-spacing: -0.008em; }
.copy--small p { font-size: var(--sc-t-sm); line-height: 1.6; max-width: 46ch; }

.link {
  display: inline-block;
  /* 44px tap target: a plain fallback first, then the lh version where the unit exists */
  padding-block: 0.6rem; margin-block: -0.6rem;
  padding-block: calc((44px - 1lh) / 2); margin-block: calc((1lh - 44px) / 2);
  color: var(--sc-ink);
  text-decoration: underline;
  text-decoration-color: var(--sc-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--sc-d-fast) var(--sc-ease-out), text-decoration-color var(--sc-d-fast) var(--sc-ease-out);
}
.link:hover { color: var(--sc-accent); text-decoration-thickness: 2px; }
.link:active { color: var(--sc-accent); text-decoration-thickness: 3px; transform: translateY(1px); }
.link--strong { font-family: var(--sc-font-display); font-style: italic; font-size: var(--sc-t-lg); font-variation-settings: "SOFT" 50, "WONK" 0; text-decoration-thickness: 1.5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.7rem 1.35rem;
  background: var(--sc-ink); color: var(--sc-accent-ink);
  font-family: var(--sc-font-text); font-weight: 500; font-size: var(--sc-t-sm); letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid var(--sc-ink); border-radius: var(--sc-r-sm);
  white-space: nowrap; cursor: pointer;
  box-shadow: var(--sc-e1);
  transition: background-color var(--sc-d-fast) var(--sc-ease-out), color var(--sc-d-fast) var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn:hover { background: var(--sc-accent); border-color: var(--sc-accent); box-shadow: var(--sc-e2); }
.btn:active { transform: scale(0.97); box-shadow: none; }
.btn--ghost { background: transparent; color: var(--sc-ink); border-color: var(--sc-ink); box-shadow: none; }
.btn--ghost:hover { background: var(--sc-ink); color: var(--sc-accent-ink); border-color: var(--sc-ink); box-shadow: var(--sc-e1); }

.cta-line { margin-top: var(--sc-7) !important; }

/* ---------------------------------------------------------------- beam -- */
.beam {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none;
  z-index: 30; mix-blend-mode: multiply;
}
.beam__disc {
  position: absolute; left: 0; top: 0;
  width: 64vmin; height: 64vmin; margin: -32vmin 0 0 -32vmin;
  border-radius: 50%;
  /* umbra: a plateau to 54% and a fast edge by 74%; penumbra: a faint ring outside it */
  background:
    radial-gradient(closest-side, rgba(246, 227, 180, 0.64) 0%, rgba(246, 227, 180, 0.64) 54%, rgba(246, 227, 180, 0.54) 61%, rgba(246, 227, 180, 0.14) 68%, rgba(246, 227, 180, 0) 74%),
    radial-gradient(closest-side, rgba(246, 227, 180, 0) 70%, rgba(246, 227, 180, 0.11) 80%, rgba(246, 227, 180, 0) 92%);
  transform: translate3d(80vw, 24vh, 0) rotate(-28deg) scale(1.35, 0.8);
  will-change: transform;
  transition: opacity 600ms var(--sc-ease-out);
}
/* over the light table and the white cards the paper warms but the cards do not yellow;
   over bare paper the disc is penumbra rather than a stain */
.beam.is-soft .beam__disc { opacity: 0.45; }
.beam.is-bare .beam__disc { opacity: 0.22; }
/* every white surface carries the paper's warmth so the multiply tints card and paper alike */
.plate__card, .tip__card, .pull, .slate, .clip__cap { --sc-surface: #FCFBF8; }

/* Every media plate carries a paper veil; the beam masks it away. */
.veil {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: #fff; opacity: 0.55;
  --vx: -300px; --vy: -300px; --vr: 380px;
  -webkit-mask-image: radial-gradient(circle var(--vr) at var(--vx) var(--vy), transparent 0, transparent 46%, #000 100%);
          mask-image: radial-gradient(circle var(--vr) at var(--vx) var(--vy), transparent 0, transparent 46%, #000 100%);
}
.veil.is-developed { opacity: 0; transition: opacity 1400ms var(--sc-ease-out); }

/* --------------------------------------------------------------- folio -- */
.folio {
  position: fixed; z-index: var(--sc-z-chrome); pointer-events: none;
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--sc-ink-soft);
  font-family: var(--sc-font-text); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.folio__glyph { width: 40px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; overflow: visible; }
.folio__sun { stroke: var(--sc-accent); stroke-width: 1.4; transform-origin: 20px 7px; transform: rotate(40deg); will-change: transform; }
.folio__text { display: inline-flex; gap: 0.6em; white-space: nowrap; transition: opacity 140ms var(--sc-ease-out); }
.folio__num { font-family: var(--sc-font-display); font-style: italic; font-variation-settings: "SOFT" 50, "WONK" 0; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--sc-ink); line-height: 1; }
.folio.is-swapping .folio__text { opacity: 0; }
.folio.is-blank .folio__text { opacity: 0; }

@media (min-width: 1100px) {
  .folio { left: 1.6rem; top: 50%; flex-direction: column; align-items: flex-start; gap: 1rem; transform: translateY(-50%); }
  .folio__text { writing-mode: vertical-rl; flex-direction: column; gap: 0.5em; }
  .folio__num { writing-mode: horizontal-tb; }
}
/* The gutter is 5vw, so under 1440px (72px) it is narrower than the rail, which
   reaches x 71 with a numeral like VII, and the rail sat on the page margin. A
   smaller glyph, numeral and offset keep it inside the gutter from 1100px (55px) up.
   The numeral rule is three classes deep to beat post.css's .is-post .folio__num. */
@media (min-width: 1100px) and (max-width: 1439.98px) {
  .folio { left: 0.6rem; }
  .folio__glyph { width: 30px; height: 20px; }
  .folio .folio__text .folio__num { font-size: 0.8rem; }
}
@media (max-width: 1099.98px) {
  .folio {
    left: 0; right: 0; top: 0; height: var(--folio-h);
    padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
    background: var(--folio-paper, var(--paper-0));
    border-bottom: 1px solid var(--sc-hairline);
    transition: background-color 200ms var(--sc-ease-out), border-color 200ms var(--sc-ease-out);
  }
  /* on the title page only the glyph sits in the corner: no empty bar */
  .folio.is-blank { background: transparent; border-color: transparent; }
  .folio__glyph { width: 30px; height: 20px; }
}

/* ------------------------------------------------------------ chapters -- */
.ch { position: relative; padding-block: var(--sc-section); color: var(--sc-ink); }
.ch--0  { background: var(--paper-0); }
.ch--i  { background: var(--paper-1); }
.ch--ii { background: var(--paper-0); }
.ch--iii{ background: var(--paper-2); padding-top: calc(var(--sc-section) * 0.72); }
.ch--iv { background: var(--paper-3); padding-block: 0; }
.ch--v  { background: var(--paper-0); }
/* the drawing's grid runs on under the clip and the paintings; the drawing's own stage paints over it */
.ch--vi { background-color: var(--paper-2); padding-block: 0; --grid-ink: rgba(2, 48, 71, 0.08);
  background-image: linear-gradient(to right, var(--grid-ink) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-ink) 1px, transparent 1px);
  background-size: 48px 48px; }
.ch--vii{ background: var(--paper-0); padding-block: var(--sc-section) 0; }

.ch__title {
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.4rem);
  line-height: 1.02;
  text-wrap: balance;
}
.ch__title--sm { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); max-width: 22ch; }
.ch__num {
  font-style: italic; color: var(--sc-ink-soft);
  font-size: 0.7em; margin-right: 0.12em;
}
/* VI's heading is cued in two spans (numeral, words) so the line mask never swallows the numeral's style */
.draw__copy .ch__num, .ch__words { display: inline-block; }
.ch__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sc-6); row-gap: var(--sc-8); align-items: start; }
.ch__copy { grid-column: 1 / 7; }
.ch__narrow { max-width: 44rem; margin-left: clamp(0px, 6vw, 6rem); }
.sc-stack > .sc-lede + p { margin-top: var(--sc-6); }

/* ------------------------------------------------------------- plates -- */
.plate { margin: 0; position: relative; }
.plate__frame {
  position: relative; overflow: hidden; border-radius: var(--sc-r-sm);
  background: var(--paper-1);
  box-shadow: var(--sc-e2), var(--sc-edge);
}
.plate__frame > img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* An image drifting inside its window: taller than the frame so the travel never shows an edge. */
.plate__frame--drift { aspect-ratio: 3 / 4; }
.plate__frame--drift > img { position: absolute; left: 0; top: -7%; width: 100%; height: 114%; max-width: none; }
.plate__cap {
  margin-top: var(--sc-3); font-size: var(--sc-t-xs); line-height: 1.5; color: var(--sc-ink-soft);
  letter-spacing: 0.01em; max-width: 40ch;
}
.nobr { white-space: nowrap; }
.fpo {
  display: inline-block; margin-left: 0.4em; padding: 0.05em 0.4em; vertical-align: 0.1em;
  font-family: var(--sc-font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  color: var(--sc-ink-soft); border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-sm);
}

/* caption card overlapping a plate's corner */
.plate__card {
  position: absolute; z-index: 3;
  left: -2.5rem; bottom: 2rem; width: min(17rem, 78%);
  padding: var(--sc-4) var(--sc-5);
  background: var(--sc-surface); color: var(--sc-ink-soft);
  font-size: var(--sc-t-xs); line-height: 1.5;
  border-radius: var(--sc-r-sm); box-shadow: var(--sc-e2), var(--sc-edge);
}
.plate__cap--above { margin: 0 0 var(--sc-3); }
.plate__fig {
  display: block; margin-bottom: 0.35rem;
  font-family: var(--sc-font-display); font-style: italic; font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: 0.95rem; color: var(--sc-ink);
}

/* ------------------------------------------------------- 0 · title page -- */
.ch--0 {
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto;
  padding: 0; overflow: hidden;
}
.grid-layer {
  position: absolute; inset: -140px 0; z-index: 0; pointer-events: none;
  --grid-ink: rgba(22, 22, 26, 0.045);
  background-image:
    linear-gradient(to right, var(--grid-ink) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-ink) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: calc(var(--sc-gutter) - 1px) 0;
}
.mast, .hero, .contents { position: relative; z-index: 1; }
.mast {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sc-4);
  padding: var(--sc-5) var(--sc-gutter) 0;
}
.mast__mark {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  color: var(--sc-ink); border-radius: var(--sc-r-sm);
  transition: color 120ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.mast__mark img { width: 34px; height: 34px; transition: opacity 120ms var(--sc-ease-out); }
.mast__mark:hover { color: var(--sc-accent); }
.mast__mark:hover img { opacity: 0.72; }
.mast__mark:active { transform: scale(0.96); }
.mast__nav { display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
.mast__nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 0.7rem;
  font-size: var(--sc-t-sm); color: var(--sc-ink); text-decoration: none; border-radius: var(--sc-r-sm);
  transition: color var(--sc-d-fast) var(--sc-ease-out);
}
.mast__nav a:hover { color: var(--sc-accent); text-decoration: underline; text-decoration-color: var(--sc-accent); text-underline-offset: 0.22em; }
.mast__nav a:active { color: var(--sc-ink); }

.hero { width: 100%; max-width: var(--sc-maxw); margin-inline: auto; align-self: center; padding: clamp(3rem, 17vh, 12rem) var(--sc-gutter) clamp(1.5rem, 3vh, 3rem); }
.hero__inner { margin-left: clamp(0px, 7vw, 8rem); max-width: 70rem; }
.hero__h {
  font-size: clamp(2rem, 1rem + 3.1vw, 3.75rem);
  line-height: 1.04; letter-spacing: -0.014em;
}
.hero__deck { font-size: var(--sc-t-lg); line-height: 1.4; max-width: 34ch; margin-top: var(--sc-6) !important; color: var(--sc-ink); text-wrap: pretty; }
.hero__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-4) var(--sc-6); margin-top: var(--sc-7) !important; }
.hero__links .link { font-size: var(--sc-t-base); }

.contents {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1.25rem;
  padding: var(--sc-5) var(--sc-gutter) var(--sc-6);
  border-top: 1px solid var(--sc-hairline);
  font-size: var(--sc-t-sm); color: var(--sc-ink-soft);
}
.contents__label { font-family: var(--sc-font-display); font-style: italic; font-variation-settings: "SOFT" 50, "WONK" 0; font-size: 1rem; color: var(--sc-ink); }
.contents__list { display: flex; flex-wrap: wrap; gap: 0.35rem 0; list-style: none; margin: 0; padding: 0; min-width: 0; }
.contents__list li { display: inline-flex; align-items: baseline; white-space: nowrap; }
.contents__list li + li::before { content: "·"; margin: 0 0.7em; color: var(--sc-ink-soft); }
.contents__list a { display: inline-block; color: var(--sc-ink); text-decoration: none; padding-block: 0.6rem; margin-block: -0.6rem; padding-block: calc((44px - 1lh) / 2); margin-block: calc((1lh - 44px) / 2); transition: color var(--sc-d-fast) var(--sc-ease-out); }
.contents__list a i { font-family: var(--sc-font-display); font-variation-settings: "SOFT" 50, "WONK" 0; color: var(--sc-ink-soft); margin-right: 0.15em; }
.contents__list a:hover { color: var(--sc-accent); text-decoration: underline; text-decoration-color: var(--sc-accent); text-underline-offset: 0.22em; }
.contents__list a:active { color: var(--sc-accent); text-decoration: underline; text-decoration-thickness: 2px; }

/* --------------------------------------------------------- I · stakes -- */
.plate--room { grid-column: 8 / 13; margin-top: var(--sc-6); }
.plate--room .plate__frame { aspect-ratio: 4 / 5; }
.plate--room .plate__card { left: -4.5rem; bottom: 2.5rem; width: min(19rem, 90%); }
.ch--i .ch__copy { align-self: center; }
/* One display line per column after the h2: the lede carries it, the cost line is the turn, set small and italic. */
.stakes__cost {
  margin-top: var(--sc-6) !important; max-width: 26ch;
  font-style: italic; font-size: var(--sc-t-lg); line-height: 1.3; letter-spacing: -0.005em;
}
.stakes__cost em { color: var(--sc-accent); }

/* --------------------------------------------------------- II · get -- */
.tips__intro { margin-top: var(--sc-4) !important; max-width: 40ch; }
/* The three deliverables are the chapter's display: numbered heads at display size on the tipped-in cards. */
.tips {
  list-style: none; margin: var(--sc-8) 0 0; padding: 0 0 3rem; counter-reset: tip;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sc-6); align-items: start;
}
.tip { position: relative; counter-increment: tip; }
.tip--1 { grid-column: 1 / 5; }
.tip--2 { grid-column: 5 / 9; margin-top: 6rem; }
.tip--3 { grid-column: 9 / 13; margin-top: 12rem; }
.tip__card {
  position: absolute; z-index: 3; left: 22%; right: -1.25rem; bottom: -3.5rem;
  padding: var(--sc-5); margin: 0;
  background: var(--sc-surface); color: var(--sc-ink); font-size: var(--sc-t-sm); line-height: 1.55;
  border-radius: var(--sc-r-sm); box-shadow: var(--sc-e2), var(--sc-edge);
}
.tip--2 .tip__card { left: 30%; right: -1.25rem; bottom: -3.5rem; }
.tip--3 .tip__card { top: -3.25rem; bottom: auto; left: -1.25rem; right: 26%; }
/* the numeral behind the card, on paper: below the plate for 1 and 2, above plate 3 */
.tip__card::before {
  content: counter(tip);
  position: absolute; left: -0.42em; bottom: -0.55em; z-index: -1; pointer-events: none;
  font-family: var(--sc-font-display); font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: 5.5rem; line-height: 1; color: rgba(22, 22, 26, 0.06);
}
.tip--3 .tip__card::before { left: 0; bottom: auto; top: -0.55em; }
.tip__card strong { display: block; margin-bottom: 0.5rem; font-family: var(--sc-font-display); font-weight: 400; font-variation-settings: "SOFT" 50, "WONK" 0; font-size: var(--sc-t-lg); line-height: 1.15; letter-spacing: -0.008em; text-wrap: balance; }

/* --------------------------------------------------------- III · guide -- */
.spread {
  position: relative; margin-top: var(--sc-8);
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sc-6); align-items: start;
  padding-bottom: 4rem;
}
.plate--stage .plate__frame, .plate--hall .plate__frame { aspect-ratio: 16 / 9; }
.plate--hall { margin-top: 5rem; }
.plate--stage .plate__cap { max-width: 24ch; }
.pull {
  position: absolute; z-index: 3; left: 27%; right: 30%; bottom: 3rem;
  margin: 0; padding: var(--sc-6);
  background: var(--sc-surface); color: var(--sc-ink);
  font-family: var(--sc-font-display); font-style: italic; font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.32; text-wrap: pretty;
  border-radius: var(--sc-r-sm); box-shadow: var(--sc-e3), var(--sc-edge);
}
/* the three slots as one quiet strip: small caps between hairlines, no glyphs */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--sc-6); margin-top: var(--sc-7); border-top: 1px solid var(--sc-hairline-strong); border-bottom: 1px solid var(--sc-hairline); }
.quote { margin: 0; padding: var(--sc-4) var(--sc-5) var(--sc-4) 0; position: relative; }
.quote + .quote { border-left: 1px solid var(--sc-hairline); padding-left: var(--sc-5); }
.quote p { margin: 0; font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sc-ink-soft); line-height: 1.6; }

/* -------------------------------------------------------- IV · record -- */
.table {
  display: flex; flex-direction: column;
  padding: clamp(2rem, 5vh, 3.25rem) var(--sc-gutter) 13.5rem;
  max-width: var(--sc-maxw); margin-inline: auto; width: 100%;
  background: var(--paper-3);
}
.table__head { position: relative; z-index: 5; flex: 0 0 auto; margin-bottom: var(--sc-5); }
.table__head .ch__title { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
.record { margin-top: var(--sc-3) !important; font-size: var(--sc-t-sm); max-width: 70ch; color: var(--sc-ink); }
.record strong { font-family: var(--sc-font-display); font-style: italic; font-weight: 400; font-variation-settings: "SOFT" 50, "WONK" 0; font-size: 1.1em; }

.slates {
  position: relative; z-index: 3; flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr);
  gap: 6px; list-style: none; margin: 0; padding: 8px;
  background: #F0EFEA; border: 1px solid var(--sc-hairline); border-radius: var(--sc-r-md);
}
.slate {
  min-width: 0; min-height: 0; padding: 0.5rem 0.6rem;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--sc-surface); border-radius: var(--sc-r-sm);
  box-shadow: var(--sc-e1), var(--sc-edge); will-change: transform;
  overflow: hidden;
}
.slate.w2 { grid-column: span 2; }
.slate.w3 { grid-column: span 3; }
.slate--lead { grid-column: span 4; grid-row: span 2; justify-content: flex-end; padding: 0.7rem 0.9rem; position: relative; z-index: 2; }
.slate__year { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; color: var(--sc-ink-soft); line-height: 1; }
.slate__title {
  font-family: var(--sc-font-display); font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: clamp(0.78rem, 0.5rem + 0.5vw, 1rem); line-height: 1.12; letter-spacing: -0.005em;
  color: var(--sc-ink); text-wrap: balance; overflow-wrap: anywhere;
}
.slate__count { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 4.2rem); line-height: 0.95; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.slate__label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-ink-soft); margin-top: 0.4rem; }

.table__bionic {
  position: absolute; z-index: 1; left: var(--sc-gutter); right: var(--sc-gutter); bottom: 3rem;
  display: flex; align-items: flex-end; gap: var(--sc-5);
  will-change: transform;
}
.bionic__credit { flex: 0 0 9.5rem; margin: 0 0 1.4rem; font-size: 0.72rem; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-ink-soft); }
.bionic { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; list-style: none; margin: 0; padding: 0; }
.bionic figure { margin: 0; }
.bionic .plate__frame { aspect-ratio: 16 / 9; box-shadow: var(--sc-e1), var(--sc-edge); }
.bionic figcaption { margin-top: 0.35rem; font-size: 0.72rem; color: var(--sc-ink-soft); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table__vignette {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(120% 92% at 50% 52%, transparent 66%, rgba(235, 234, 228, 0.78) 100%);
}

/* ----------------------------------------------------------- V · plan -- */
.plan { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.plan__step { position: relative; counter-increment: step; padding: var(--sc-6) 0 var(--sc-6) 5.5rem; border-bottom: 1px solid var(--sc-hairline); }
.plan__step:last-child { border-bottom: 0; }
.plan__step::before {
  content: counter(step);
  position: absolute; left: -1.25rem; top: -0.5rem; z-index: 0; pointer-events: none;
  font-family: var(--sc-font-display); font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: clamp(6rem, 4rem + 6vw, 10rem); line-height: 1; color: rgba(22, 22, 26, 0.06);
}
.plan__step p { position: relative; z-index: 1; font-size: var(--sc-t-base); max-width: 44ch; }
.plan__step strong { display: block; font-family: var(--sc-font-display); font-weight: 500; font-variation-settings: "SOFT" 50, "WONK" 0; font-size: var(--sc-t-xl); line-height: 1.15; margin-bottom: 0.35rem; letter-spacing: -0.008em; }

/* --------------------------------------------------------- VI · beauty -- */
.draw__stage, .clip__stage {
  display: grid; align-items: center; column-gap: var(--sc-6);
  max-width: var(--sc-maxw); margin-inline: auto; width: 100%;
  padding: clamp(2rem, 6vh, 4.5rem) var(--sc-gutter);
  background: var(--paper-2);
}
/* The copy sits in the drawing's sky, top-left; the section fills the rest of the stage. */
.draw__stage { display: block; }
/* the printed grid is the drawing's second plane: visible ink, riding at its own rate behind the section */
.grid-layer--draw { background-size: 48px 48px; --grid-ink: rgba(22, 22, 26, 0.08); }
.draw__copy { position: relative; z-index: 2; max-width: 31rem; padding-top: clamp(0.5rem, 3vh, 2rem); }
.draw__copy .draw__lede { margin-top: var(--sc-5); max-width: 30rem; font-size: clamp(1.14rem, 0.96rem + 0.62vw, 1.42rem); line-height: 1.34; }
/* Anchored bottom-right. Its height is capped against the stage so the copy
   zone above the portico's roof line stays clear at any viewport height. */
.draw__fig {
  position: absolute; z-index: 1; margin: 0; color: var(--sc-ink);
  right: var(--sc-gutter); bottom: clamp(1.5rem, 4vh, 3rem);
  width: min(calc(100% - 2 * var(--sc-gutter)), 84%, calc((100svh - 22rem) * 1.72));
}
.dw__box { position: relative; }
.dw { display: block; width: 100%; height: auto; aspect-ratio: 1100 / 640; overflow: hidden; }
/* Dimension labels are HTML, so they hold their size at every width; site.js places them from the viewBox. */
.dw__labels { position: absolute; inset: 0; pointer-events: none; }
.dw__label {
  position: absolute; white-space: nowrap; opacity: 0;
  font-family: var(--sc-font-text); font-size: var(--sc-t-xs); line-height: 1; letter-spacing: 0.02em; color: var(--sc-ink-soft);
}
.dw__label--span { transform: translateX(-50%); }
.dw__label--h { transform: translate(-50%, -50%) rotate(-90deg); }
.dw__ink path, .dw__ink circle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.dw__light { will-change: opacity; }
.dw__floor { transform-box: view-box; transform-origin: 367.5px 556px; will-change: transform; } /* the pool at SUN_FROM: scripts/bake-pantheon.mjs */
.draw__cap { margin-top: var(--sc-4); font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }

/* The frame owns the stage's height: it runs from the top padding to the bottom padding, the copy centred beside it.
   The stage paints no ground of its own so the paintings can tuck under the frame's lower edge on the slide. */
.clip__stage { grid-template-columns: 8fr 4fr; align-items: stretch; padding-top: 5rem; padding-bottom: 3.5rem; background: transparent; }
.clip__fig { margin: 0; position: relative; min-height: 0; }
.clip__frame {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--sc-r-sm);
  background: var(--paper-1); box-shadow: var(--sc-e3), var(--sc-edge);
  will-change: transform;
}
.clip__poster { display: contents; }
.clip__frame img, .clip__frame video { object-position: 45% 30%; }
/* the caption as a card over the frame's lower-left corner, the copy beside the frame at 1x */
.clip__cap {
  position: absolute; z-index: 3; left: -2rem; bottom: 2.5rem; width: min(17rem, 70%);
  padding: var(--sc-4) var(--sc-5); margin: 0;
  background: var(--sc-surface); color: var(--sc-ink-soft); font-size: var(--sc-t-xs); line-height: 1.5;
  border-radius: var(--sc-r-sm); box-shadow: var(--sc-e2), var(--sc-edge);
}
.clip__copy { align-self: center; padding-top: 0; }
.clip__copy p + p { margin-top: var(--sc-4); }
/* Zack's story on the blueprint surface, set over the photograph's right edge and off it (BRAND_LINEAGE: the
   blueprint ground with sheet text, hard edges, no shadow) */
.story-card { position: relative; z-index: 4; margin-left: -5.5rem; padding: clamp(1.4rem, 1rem + 1.2vw, 2.25rem); background: var(--blueprint, #023047); }
.story-card p { color: var(--sheet, #f7f8f8); max-width: none; font-size: clamp(1.08rem, 0.92rem + 0.5vw, 1.32rem); line-height: 1.5; }

/* The paintings tuck 3rem under the frame's lower edge: the handoff out of the peak is an overlap, not a gap. */
/* The paintings sit just under the clip's photograph: the gap closes to the row's own gap (1.5rem) where it is
   tightest, as the first painting's parallax carries it up, and they sit above the clip's stage so that parallax can
   never slide one under the photograph. */
.art { position: relative; z-index: calc(var(--sc-z-stage) + 1); padding: 0 0 var(--sc-section); margin-top: -3rem; background: transparent; }
.art__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sc-5); list-style: none; margin: 0 auto; padding-block: 0; align-items: start; }
.art__row li:nth-child(even) { margin-top: 3.5rem; }
.plate--art .plate__frame { will-change: transform; }
.plate--art .plate__frame { aspect-ratio: 1 / 1; box-shadow: var(--sc-e1), var(--sc-edge); }

/* --------------------------------------------------- VII · thirty years -- */
/* the manifesto closes on the chapter CTA, set a step tighter than the Plan's so the page stays under 14vh on short screens */
.ch--vii .cta-line { margin-top: var(--sc-6) !important; }
.colophon { margin-top: 5rem; padding-bottom: clamp(2rem, 5vh, 3.5rem); }
.colophon__grid { display: grid; grid-template-columns: 10rem 1fr; column-gap: var(--sc-7); align-items: start; padding-top: var(--sc-7); }
.plate--guide { margin-top: -4.75rem; }
.plate--guide .plate__frame { aspect-ratio: 3 / 4; box-shadow: var(--sc-e2), var(--sc-edge); will-change: transform; }
.guide__h { margin: 0; font-family: var(--sc-font-display); font-weight: 400; font-variation-settings: "SOFT" 50, "WONK" 0; font-size: 1.1rem; font-style: italic; color: var(--sc-ink-soft); text-wrap: balance; }
.guide__title { margin-top: var(--sc-3) !important; font-size: var(--sc-t-lg) !important; line-height: 1.25 !important; max-width: 30ch !important; }
.guide__title strong { font-family: var(--sc-font-display); font-weight: 500; font-variation-settings: "SOFT" 50, "WONK" 0; letter-spacing: -0.005em; }
.guide p + p { margin-top: var(--sc-3); }
.guide__form { margin-top: var(--sc-5); max-width: 32rem; }
.guide__label { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); margin-bottom: 0.4rem; }
.guide__row { display: flex; gap: var(--sc-3); flex-wrap: wrap; }
.guide__input {
  flex: 1 1 14rem; min-height: 44px; padding: 0.6rem 0.8rem;
  background: var(--sc-surface); border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-sm);
  font-size: var(--sc-t-sm); color: var(--sc-ink);
  transition: border-color var(--sc-d-fast) var(--sc-ease-out);
}
.guide__input:hover { border-color: var(--sc-ink-soft); }
.guide__input:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; border-color: var(--sc-accent); }

.foot { margin-top: var(--sc-8); padding-top: var(--sc-5); border-top: 1px solid var(--sc-hairline); }
.foot p { margin: 0; }
.foot__line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.foot__mark { width: 66px; height: 24px; margin-right: 0.5rem; }
.foot__dot { color: var(--sc-ink-soft); opacity: 0.7; }
.foot__group { display: inline-flex; align-items: center; gap: 0.5rem; }
.foot__line a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: 0.75rem; margin-inline: -0.75rem; color: var(--sc-ink); text-decoration: none; transition: color var(--sc-d-fast) var(--sc-ease-out); }
.foot__line a:hover { color: var(--sc-accent); text-decoration: underline; text-decoration-color: var(--sc-accent); text-underline-offset: 0.22em; }
.foot__line a:active { color: var(--sc-accent); text-decoration: underline; text-decoration-thickness: 2px; }
.foot__cta { margin-top: var(--sc-6) !important; }
.foot__cta a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.1em 0;
  font-family: var(--sc-font-display); font-style: italic; font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.1; letter-spacing: -0.01em;
  color: var(--sc-ink); text-decoration: underline; text-decoration-color: var(--sc-accent);
  text-decoration-thickness: 2px; text-underline-offset: 0.14em;
  transition: color var(--sc-d-fast) var(--sc-ease-out);
}
.foot__cta a:hover { color: var(--sc-accent); }
.foot__cta a:active { color: var(--sc-accent); transform: translateY(1px); }
.foot__small { margin-top: var(--sc-5) !important; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; align-items: center; }
.slot { border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-sm); padding: 0.25rem 0.5rem; }

/* ------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .beam__disc { transform: translate3d(80vw, 22vh, 0) rotate(-28deg) scale(1.2, 0.8) !important; }
  .veil { opacity: 0 !important; }
  .dw__ink path, .dw__ink circle { stroke-dashoffset: 0 !important; }
  .dw__labels, .dw__label { opacity: 1 !important; }
  .veil.is-developed { transition: none; }
  .dw__light { opacity: 0.75 !important; }
  .slate { transform: none !important; }
  .folio__sun { transform: rotate(-12deg) !important; }
  .btn, .link, .skip { transition: none; }
}

/* ------------------------------------------------------------- 1100 -- */
@media (max-width: 1099.98px) {
  .ch--0 { padding-top: var(--folio-h); }
  .ch__narrow { margin-left: 0; }
  .hero__inner { margin-left: clamp(0px, 4vw, 4rem); }
}

/* ------------------------------------------------------------- 1024 -- */
@media (max-width: 1100px) {
  .table { padding-bottom: 8rem; }
  .slate { padding: 0.4rem 0.5rem; }
  .table { padding-bottom: 12.5rem; }
  .draw__stage { grid-template-columns: 5fr 7fr; }
  .clip__stage { grid-template-columns: 7fr 5fr; }
  .clip__frame img, .clip__frame video { object-position: 40% 30%; }
  .plate--room .plate__card { left: -3rem; }
  .tip--3 { margin-top: 7rem; }
  .tip--3 .tip__card { left: 0; }
}

/* -------------------------------------------------------------- 860 -- */
@media (max-width: 860px) {
  .ch__grid { grid-template-columns: 1fr; row-gap: var(--sc-7); }
  .ch__copy { grid-column: auto; }
  .plate--room { grid-column: auto; margin-top: 0; width: 88%; margin-left: auto; }
  .plate__card, .plate--room .plate__card { left: -1rem; bottom: 1.5rem; width: min(16rem, 82%); }
  .ch--i .ch__copy { align-self: auto; }

  .mast__nav a { padding: 0 0.5rem; }
  .tips { grid-template-columns: 1fr; row-gap: 5.5rem; padding-bottom: 3rem; margin-top: var(--sc-6); }
  .tip { grid-column: auto !important; margin-top: 0 !important; width: 70%; }
  .tip--2 { margin-left: auto; }
  .tip__card, .tip--2 .tip__card, .tip--3 .tip__card { left: 18%; right: -1rem; top: auto; bottom: -2.5rem; }
  .tip--2 .tip__card { left: -1rem; right: 18%; }
  .tip__card::before, .tip--3 .tip__card::before { font-size: 4rem; left: -0.42em; top: auto; bottom: -0.45em; }

  .spread { grid-template-columns: 1fr; row-gap: var(--sc-6); padding-bottom: 4.5rem; }
  .plate--hall { margin-top: 0; width: 88%; margin-left: auto; }
  .plate--stage { width: 88%; }
  .pull { left: 0; right: 14%; bottom: 0; padding: var(--sc-5); }
  .quotes { grid-template-columns: 1fr; row-gap: 0; margin-top: var(--sc-7); }
  .quote { padding: 0.85rem 0; }
  .quote + .quote { border-left: 0; padding-left: 0; border-top: 1px solid var(--sc-hairline); }

  .draw__stage, .clip__stage { grid-template-columns: 1fr; row-gap: var(--sc-5); align-content: start; padding-top: calc(var(--folio-h) + 1rem); padding-bottom: 1.5rem; }
  .draw__stage { display: flex; flex-direction: column; }
  .draw__copy { padding-top: 0; max-width: none; flex: 0 0 auto; }
  .draw__lede { font-size: 1.14rem; max-width: 34ch; margin-top: var(--sc-4); }
  /* the section, cropped to the rotunda, centred in the stage's remaining height */
  .draw__fig { position: static; width: 100%; margin: auto 0; padding-block: var(--sc-4); }
  .dw { aspect-ratio: 760 / 690; }
  .dw__portico { display: none; }
  .draw__cap { margin-top: var(--sc-3); }
  /* the frame is static again on a phone: a square at the top of the stage, the copy under it */
  .clip__stage { align-items: start; }
  .clip__frame { position: relative; inset: auto; aspect-ratio: 1 / 1; }
  .clip__frame img, .clip__frame video { object-position: 50% 18%; }
  /* under the frame on phones; relative and above it so the frame's parallax travel never covers the text */
  .clip__cap { position: relative; left: auto; bottom: auto; z-index: 3; width: auto; padding: 0; margin-top: var(--sc-5); background: none; box-shadow: none; }
  .clip__copy { padding-top: 0; }
  .clip__copy p { font-size: 0.92rem; line-height: 1.55; }
  .story-card { margin-left: 0; padding: 1.15rem 1.2rem; }
  .story-card p { font-size: 1.02rem; line-height: 1.5; }
  .clip__copy p + p { margin-top: var(--sc-3); }
  .art { margin-top: 0; padding: var(--sc-6) 0 var(--sc-7); }
  .art__row { grid-template-columns: 1fr 1fr; gap: var(--sc-4); }
  .art__row li:nth-child(even) { margin-top: 2rem; }

  .colophon { margin-top: var(--sc-7); }
  .colophon__grid { grid-template-columns: 7rem 1fr; column-gap: var(--sc-5); }
  .plate--guide { margin-top: -3.5rem; }
  .foot__cta a { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); }
}

/* -------------------------------------------------------------- 700 -- */
@media (max-width: 700px) {
  .ch--i, .ch--ii, .ch--iii, .ch--v { padding-block: 3rem; }
  .ch--vii { padding-top: 3rem; }
  /* the manifesto's CTA and the footer sit closer on a phone so the page stays inside its 14vh budget */
  .ch--vii .cta-line { margin-top: var(--sc-5) !important; }
  .foot { margin-top: var(--sc-7); }
  .hero__h { font-size: clamp(1.5rem, 1.05rem + 2.4vw, 2rem); }
  .hero { padding-top: clamp(2rem, 7vh, 4rem); padding-bottom: clamp(1.5rem, 4vh, 3rem); }
  .ch__title { font-size: clamp(1.8rem, 1.2rem + 3vw, 2.4rem); }
  .copy .sc-lede { font-size: var(--sc-t-lg); }
  .stakes__cost { font-size: 1.35rem; }
  .tips__intro { font-size: var(--sc-t-base); }

  /* Contents: the running line, wrapping to three short lines of 44px rows; no grid, so no empty cells */
  .contents { padding: var(--sc-4) var(--sc-gutter) var(--sc-5); gap: 0.25rem 0; font-size: 0.8rem; }
  .contents__list { flex: 1 1 100%; gap: 0 0.55em; }
  .contents__list li { align-items: center; }
  .contents__list li + li::before { content: none; margin: 0; }
  .contents__list li:not(:last-child)::after { content: "·"; margin-left: 0.55em; color: var(--sc-ink-soft); }
  .contents__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin: 0; }

  /* The light table fits one 100svh stage: three across, the year dropped, type no smaller than 12px. */
  .table { padding: calc(var(--folio-h) + 0.75rem) var(--sc-gutter) 4.6rem; }
  .table__head { margin-bottom: var(--sc-3); }
  .table__head .ch__title { font-size: 1.6rem; }
  .record { font-size: 0.85rem; line-height: 1.4; }
  .slates { gap: 3px; padding: 5px; }
  .slate { padding: 0.24rem 0.4rem; justify-content: center; }
  .slate__year { display: none; }
  .slate--keep-year { padding-block: 0.12rem; }
  .slate--keep-year .slate__year { display: block; font-size: 12px; margin-bottom: 2px; }
  .slate__title { font-size: 12px; line-height: 1.1; }
  .slate--lead { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: baseline; gap: 0.6rem; padding: 0.3rem 0.6rem; }
  .slate__count { font-size: 1.7rem; }
  .slate__label { margin-top: 0; }
  /* two sizes survive on the phone: the long titles at span 6, the rest at span 4 */
  .slates { grid-auto-flow: dense; }
  .slate.w2 { grid-column: span 4; }
  .slate.w3, .slate--long { grid-column: span 6; }
  /* the reel as two rows of three real thumbnails, the credit on one line above */
  .table { padding-bottom: 13rem; }
  .table__bionic { bottom: 2rem; flex-direction: column; align-items: stretch; gap: 0; }
  .bionic { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .bionic figcaption { display: none; }
  .bionic__credit { flex: 0 0 auto; margin: 0 0 0.4rem; font-size: 0.7rem; line-height: 1.3; }
  .table__vignette { display: none; }

  .plan__step { padding-left: 3.5rem; }
  .plan__step::before { font-size: 5.5rem; left: -0.5rem; top: 0; }

  .colophon__grid { grid-template-columns: 1fr; row-gap: var(--sc-5); }
  .plate--guide { width: 7rem; margin-top: -3rem; }

  /* the footer line as three short lines */
  .foot__line { flex-direction: column; align-items: flex-start; gap: 0; }
  .foot__dot--group { display: none; }
  .foot__group { min-height: 40px; }
}

/* -------------------------------------------------------------- 480 -- */
/* Six links in the masthead (Work, Reel, Art, About, Blog, Contact) stay on
   one line beside the mark on a phone: tighter padding and a hair smaller
   type, each link still a 44px target. */
@media (max-width: 480px) {
  .mast { gap: var(--sc-2); }
  .mast__nav { gap: 0; flex-wrap: nowrap; }
  .mast__nav a { padding: 0 0.3rem; font-size: 0.82rem; }
}
/* The smallest phones (320px) take two lines rather than cut Contact off. */
@media (max-width: 350px) {
  .mast__nav { flex-wrap: wrap; justify-content: flex-end; }
}

