/* ============================================================
   ZEALOT — home.zltlabs.com
   Shared design system for all homepage variations + careers
   ============================================================ */

:root {
  /* surfaces */
  --paper:      #f1ecdd;
  --paper-warm: #ece5d2;
  --paper-deep: #e5dcc4;
  --gold:       #d9b463;
  --gold-deep:  #c99f45;
  --ochre:      #dcb46f;
  --ink:        #16130f;
  --ink-soft:   #4a4337;
  --ink-faint:  #8b8272;
  --night:      #1a160e;
  --night-2:    #241f14;
  --line:       rgba(22, 19, 15, .14);
  --line-soft:  rgba(22, 19, 15, .08);

  /* type */
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Newsreader", "Times New Roman", Georgia, serif;

  /* motion */
  --p: 0;
  --ease:     cubic-bezier(.22, 1, .36, 1);
  --ease-io:  cubic-bezier(.65, .05, .36, 1);
  --dur:      .72s;

  /* layout */
  --gut: clamp(16px, 2.2vw, 34px);
  --maxw: 1600px;
  --mast-h: calc(clamp(13px, 1.5vw, 18px) * 2 + 32px);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: auto;
}
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--paper);
  overflow-x: hidden;
  overscroll-behavior-y: none;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.svg-defs { position: absolute; width: 0; height: 0; }

/* ---------- type primitives ---------- */
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(10px, .78vw, 11.5px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 4px 9px 3px;
  border-radius: 2px;
}
.kicker.bare { border: 0; padding: 0; }

.h-xl { font-size: clamp(34px, 5vw, 70px);    line-height: 1.06;  letter-spacing: -.024em; font-weight: 500; }
.h-lg { font-size: clamp(27px, 3.35vw, 46px); line-height: 1.06; letter-spacing: -.026em; font-weight: 500; }
.h-md { font-size: clamp(23px, 2.35vw, 33px); line-height: 1.12; letter-spacing: -.022em; font-weight: 500; }
.h-sm { font-size: clamp(18px, 1.5vw, 22px);  line-height: 1.2;  letter-spacing: -.014em; font-weight: 500; }

.body   { font-size: clamp(14.5px, 1.06vw, 16.5px); line-height: 1.58; color: var(--ink-soft); }
.body-l { font-size: clamp(16px, 1.3vw, 19px);      line-height: 1.5;  color: var(--ink-soft); }
.body-s { font-size: clamp(13px, .92vw, 14.5px);    line-height: 1.55; color: var(--ink-faint); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 12px 18px;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .35s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -14px rgba(22,19,15,.6); color: var(--paper); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(0); }
.btn i { display: block; transition: transform .5s var(--ease); }
.btn:hover i { transform: translateX(4px); }

.btn.ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { color: var(--paper); }
.btn.light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn.dark  { --btn-bg: var(--night); --btn-fg: var(--paper); }
.btn.dark::before { background: var(--gold); }
.btn.dark:hover { color: var(--ink); }
.btn.on-image { box-shadow: inset 0 0 0 1px rgba(255,250,240,.5); }
.btn.on-image.ghost { --btn-fg: #fdf8ee; }

/* ---------- masthead ---------- */
.masthead {
  position: absolute; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 2.4vw, 30px) var(--gut);
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  color: var(--mast-fg, #fdf8ee);
  transition: color .6s var(--ease);
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand svg { width: clamp(17px, 1.5vw, 22px); height: auto; }
.brand b {
  font-size: clamp(15px, 1.35vw, 19px); font-weight: 600;
  letter-spacing: .01em;
}
.mast-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.mast-nav a {
  position: relative;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  opacity: .82;
  transition: opacity .4s var(--ease);
}
.mast-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease);
}
.mast-nav a:hover { opacity: 1; }
.mast-nav a:hover::after { transform: scaleX(1); }
@media (max-width: 640px) { .mast-nav a:not(.mast-cta) { display: none; } }

/* solid, page-level sticky header (variation 04 + careers) */
.masthead.solid {
  position: sticky; inset: 0 auto auto 0; top: 0;
  color: var(--ink);
  background: rgba(241,236,221,.86);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
  padding-block: clamp(13px, 1.5vw, 18px);
  max-width: none;
}
.masthead.solid > * { position: relative; }
.masthead.solid .brand { margin-left: max(0px, calc((100vw - var(--maxw)) / 2)); }
.masthead.solid .mast-nav { margin-right: max(0px, calc((100vw - var(--maxw)) / 2)); }
.masthead.solid .mast-cta {
  padding: 7px 13px; border-radius: 999px; opacity: 1;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
.masthead.solid .mast-cta::after { display: none; }
.masthead.solid .mast-cta:hover { background: var(--ink); color: var(--paper); }
.has-solid-mast .hero { margin-top: calc(-1 * (clamp(13px, 1.5vw, 18px) * 2 + 30px)); }
.has-solid-mast .hero-sticky { top: 0; }
.has-solid-mast .hero-copy.column { margin-top: -8vh; }

/* ============================================================
   HERO — shared stage + scroll-linked painting → engraving
   ============================================================ */
.hero { position: relative; height: 152svh; min-height: 880px; }
.hero-sticky {
  position: sticky; top: 0; height: 100svh; min-height: 580px;
  overflow: hidden; isolation: isolate;
  background: transparent;
}

/* ---------- continuous canvas ----------
   The engraving must not stop where the sticky hero ends. Rather than an
   overlay (which would sit on top of the type), the dot screen IS the surface:
   the same viewport-anchored pattern paints the body, the hero's own backdrop
   and the wash that dissolves the painting. background-attachment:fixed keeps
   the grid registered to the viewport, so the dots line up continuously across
   the hero boundary and there is no edge to see. --dot-a is driven by scroll. */
/* One plate for the whole document. The paper lives on <html>; the dot screen
   is a single fixed layer behind all content. The hero resolves to fully
   transparent — painting out, engraving out — so by the time it unpins you are
   looking at the exact same surface the sections sit on. Nothing to align,
   nothing to match, therefore no seam. */
html[data-canvas="continuous"] { background: var(--paper); }
[data-canvas="continuous"] body { background: transparent; }
[data-canvas="continuous"] body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 50% 50%, rgba(44,36,26,.42) 0 26%, transparent 27%);
  background-size: 7px 7px;
  opacity: var(--dot-a, 0);
}

/* sections must not introduce their own plate — one canvas, top to bottom */
[data-canvas="continuous"] .sec,
[data-canvas="continuous"] .sec.paper-warm { background: transparent; }
@media (prefers-reduced-motion: reduce) { [data-canvas="continuous"] { --dot-a: 0 !important; } }
.stage { position: absolute; inset: 0; z-index: 0; }

.hero-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(calc(1.06 - var(--p) * .045));
  transform-origin: 52% 48%;
  will-change: transform, opacity, filter;
}
.hero-image:not(.chroma) {
  z-index: 1;
  opacity: calc(1.32 - var(--p) * 1.7);
  filter: saturate(calc(1.02 - var(--p) * .78)) contrast(calc(1.01 + var(--p) * .1)) sepia(calc(var(--p) * .28));
}
.chroma { z-index: 2; opacity: 0; mix-blend-mode: screen; pointer-events: none; }
.chroma-r { filter: url(#chroma-r); }
.chroma-c { filter: url(#chroma-c); }

/* the processed engraving canvas, wiped in as you scroll */
.edge-canvas {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%;
  mix-blend-mode: multiply;
  opacity: var(--edge, 0);
  will-change: opacity, mask-image;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--p)*120% - 6%), rgba(0,0,0,.4) calc(var(--p)*120% + 3%), transparent calc(var(--p)*120% + 11%));
          mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--p)*120% - 6%), rgba(0,0,0,.4) calc(var(--p)*120% + 3%), transparent calc(var(--p)*120% + 11%));
}
[data-reveal="horizontal"] .edge-canvas {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(var(--p)*118% - 5%), rgba(0,0,0,.4) calc(var(--p)*118% + 3%), transparent calc(var(--p)*118% + 10%));
          mask-image: linear-gradient(90deg, #000 0, #000 calc(var(--p)*118% - 5%), rgba(0,0,0,.4) calc(var(--p)*118% + 3%), transparent calc(var(--p)*118% + 10%));
}
[data-reveal="radial"] .edge-canvas {
  -webkit-mask-image: radial-gradient(circle at 50% 47%, #000 calc(var(--p)*128%), transparent calc(var(--p)*128% + 13%));
          mask-image: radial-gradient(circle at 50% 47%, #000 calc(var(--p)*128%), transparent calc(var(--p)*128% + 13%));
}
[data-reveal="slats"] .edge-canvas {
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 calc(var(--p)*8.33%), transparent calc(var(--p)*8.33%) 8.33%);
          mask-image: repeating-linear-gradient(90deg, #000 0 calc(var(--p)*8.33%), transparent calc(var(--p)*8.33%) 8.33%);
}
[data-mode="halftone"] .edge-canvas { filter: contrast(1.05); }
[data-mode="duotone"]  .edge-canvas { mix-blend-mode: normal; opacity: calc(var(--p) * 1.2); filter: contrast(1.04) saturate(1.04); }

/* stage treatments */
.t { position: absolute; inset: 0; pointer-events: none; }
/* The hero resolves to nothing rather than being covered over: painting fades,
   engraving peaks then clears, and what is left is the page's own paper. That
   is the only way the sticky edge is invisible — there is no second surface to
   colour-match. --edge is the engraving's rise/clear envelope, from home.js. */
.paper-wash { display: none; }
/* the registration grid belongs to the engraving — it must clear with it,
   otherwise it reads as a debug overlay left on the finished page */
.reg-grid {
  z-index: 5; mix-blend-mode: multiply; opacity: calc(var(--edge, 0) * .55 - var(--p) * .6);
  background-image: linear-gradient(rgba(22,19,15,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(22,19,15,.1) 1px, transparent 1px);
  background-size: 92px 92px, 92px 92px;
}
.scrim { z-index: 6; background: linear-gradient(0deg, rgba(10,8,5,.72) 0%, rgba(10,8,5,.28) 34%, transparent 62%); opacity: calc(1 - var(--p) * 1.15); }
.scrim.top { background: linear-gradient(180deg, rgba(10,8,5,.66) 0%, rgba(10,8,5,.2) 40%, transparent 70%); }
.scrim.full { background: linear-gradient(180deg, rgba(10,8,5,.5), rgba(10,8,5,.24) 45%, rgba(10,8,5,.62)); }
/* vignette must be gone well before the hero unpins, or it reads as a frame */
.vignette { z-index: 7; box-shadow: inset 0 0 clamp(90px,13vw,230px) rgba(20,14,7,.42); opacity: calc(1 - var(--p) * 1.7); }
.grain { z-index: 8; background-image: var(--grain); background-size: 160px 160px; opacity: calc(.052 * (1 - var(--p) * 1.5)); mix-blend-mode: multiply; }

.glitch-flash { position: absolute; inset: 0; z-index: 9; opacity: 0; background: rgba(255,250,238,.5); mix-blend-mode: screen; pointer-events: none; }
.is-glitching .stage       { animation: gStage .38s steps(1, end) both; }
.is-glitching .chroma-r    { animation: gChR   .38s steps(1, end) both; }
.is-glitching .chroma-c    { animation: gChC   .38s steps(1, end) both; }
.is-glitching .glitch-flash{ animation: gFlash .38s steps(1, end) both; }
@keyframes gStage { 0%,100% { transform: none } 12% { transform: translate3d(-6px,2px,0) } 26% { transform: translate3d(5px,-2px,0) } 44% { transform: translate3d(-2px,0,0) } 62% { transform: none } }
@keyframes gChR   { 0%,100% { opacity: 0; transform: none } 12% { opacity: .5; transform: translate3d(-9px,0,0) } 30% { opacity: .34; transform: translate3d(7px,1px,0) } 52% { opacity: 0 } }
@keyframes gChC   { 0%,100% { opacity: 0; transform: none } 12% { opacity: .45; transform: translate3d(9px,0,0) } 30% { opacity: .3; transform: translate3d(-7px,-1px,0) } 52% { opacity: 0 } }
@keyframes gFlash { 0%,100% { opacity: 0 } 10% { opacity: .2 } 20% { opacity: 0 } 34% { opacity: .1 } 46% { opacity: 0 } }

/* ---------- hero copy layouts ---------- */
.hero-copy {
  position: absolute; z-index: 20;
  width: 100%; max-width: var(--maxw); left: 50%;
  padding-inline: var(--gut);
  transform: translate3d(-50%, calc(var(--p) * -44px), 0);
  opacity: calc(1 - (var(--p) - .5) * 2.4);
  will-change: transform, opacity;
}

/* A — Variation 1: full-bleed painting, headline bottom-left, dek + CTAs bottom-right */
.hero-copy.plate {
  bottom: clamp(46px, 7.4vh, 92px);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: clamp(24px, 5vw, 80px);
  color: #fdf8ee;
}
.hero-copy.plate h1 { text-shadow: 0 2px 40px rgba(10,7,3,.42); font-size: clamp(32px, 4.85vw, 68px); }
.hero-copy.plate .hero-aside { max-width: min(480px, 40vw); display: grid; gap: 20px; justify-items: start; }
.hero-copy.plate .hero-aside p { color: rgba(253,248,238,.9); text-shadow: 0 1px 22px rgba(10,7,3,.5); }
@media (max-width: 900px) {
  .hero-copy.plate { grid-template-columns: 1fr; gap: 22px; bottom: clamp(34px, 5vh, 60px); }
  .hero-copy.plate .hero-aside { max-width: none; }
}

/* B — Variation 6: headline top-left over the painting */
.hero-copy.banner {
  top: clamp(108px, 15vh, 168px); bottom: auto;
  color: #fdf8ee; display: grid; gap: 20px; justify-items: start;
  transform: translate3d(-50%, calc(var(--p) * -30px), 0);
}
.hero-copy.banner p { max-width: 560px; color: rgba(253,248,238,.9); text-shadow: 0 1px 22px rgba(10,7,3,.5); }
.hero-copy.banner h1 { text-shadow: 0 2px 40px rgba(10,7,3,.45); }

/* C — Variation 4: cream band on top, painting below */
.hero.split-hero { height: 148svh; }
.hero-split { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(340px, 44%) 1fr; z-index: 1; }
.hero-split-top { position: relative; background: var(--paper); }
.hero-split-img { position: relative; overflow: hidden; }
.hero-copy.band {
  bottom: auto; top: 0; height: 44%;
  display: grid; align-content: end; gap: 22px;
  padding-bottom: clamp(30px, 4.5vh, 54px);
  color: var(--ink);
  grid-template-columns: 1fr auto; align-items: end;
}
.hero-copy.band .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-copy.band { grid-template-columns: 1fr; gap: 18px; } }

/* D — split column: type left, painting right */
.hero.duo-hero { height: 150svh; }
.hero-duo { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; }
.hero-duo-left { position: relative; background: var(--paper); }
.hero-duo-right { position: relative; overflow: hidden; }
.hero-copy.column {
  left: 0; transform: translate3d(0, calc(var(--p) * -40px), 0);
  width: 50%; max-width: none;
  top: 50%; margin-top: -12vh;
  padding-left: max(var(--gut), calc((100vw - var(--maxw)) / 2 + var(--gut)));
  padding-right: clamp(24px, 3.4vw, 56px);
  display: grid; gap: 22px; justify-items: start;
  color: var(--ink);
}
@media (max-width: 900px) {
  .hero-duo { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .hero-copy.column { width: 100%; top: auto; bottom: 52%; margin: 0; padding-inline: var(--gut); }
}

/* E — variation 04: full-bleed plate, serif display over the light sky */
.hero.plate4 { height: 150svh; }
/* background-color, NOT the shorthand — the shorthand would wipe the
   viewport-anchored dot screen that makes the canvas continuous */

.hero.plate4 .hero-image { object-position: 50% 58%; transform: scale(calc(1.04 - var(--p) * .035)); }
/* the plate is already luminous — lift the type off it rather than darkening the art */
.haze {
  z-index: 6;
  background:
    linear-gradient(105deg, rgba(246,242,233,.9) 0%, rgba(246,242,233,.62) 26%, rgba(246,242,233,.12) 52%, transparent 70%),
    linear-gradient(180deg, rgba(246,242,233,.72) 0%, transparent 26%);
  opacity: calc(1 - var(--p) * 1.6);
}
.hero.plate4 .vignette { box-shadow: inset 0 0 clamp(80px,11vw,190px) rgba(60,44,24,.26); }

.masthead.serif-mast { color: var(--ink); }
.masthead.serif-mast .brand svg { width: clamp(22px, 2vw, 28px); }
.masthead.serif-mast .brand b {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(17px, 1.55vw, 23px);
  letter-spacing: .2em; text-transform: uppercase;
}
.masthead.serif-mast .mast-nav a { opacity: .72; letter-spacing: .17em; font-size: 10.5px; }
.masthead.serif-mast .mast-nav a:hover { opacity: 1; }

.hero-copy.quarto {
  top: 50%; bottom: auto;
  transform: translate3d(-50%, calc(-50% + var(--p) * -46px), 0);
  display: grid; justify-items: start; gap: 0;
  color: var(--ink);
}
.hero-copy.quarto .display {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(46px, 7.4vw, 104px);
  line-height: .96; letter-spacing: -.018em;
}
.hero-copy.quarto .hairline {
  display: block; width: 34px; height: 1px;
  background: rgba(22,19,15,.45);
  margin: clamp(22px, 3vw, 36px) 0 clamp(16px, 2vw, 22px);
}
.hero-copy.quarto p { max-width: 300px; color: rgba(22,19,15,.72); font-size: clamp(13.5px, 1vw, 15px); }

.link-rule {
  display: inline-flex; align-items: center; gap: 26px;
  margin-top: clamp(24px, 3.4vw, 40px);
  padding-bottom: 9px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid rgba(22,19,15,.32);
  transition: border-color .5s var(--ease), gap .5s var(--ease);
}
.link-rule i { transition: transform .5s var(--ease); }
.link-rule:hover { border-color: var(--ink); gap: 34px; }
.link-rule:hover i { transform: translateX(4px); }

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; z-index: 22; right: var(--gut); bottom: clamp(16px, 2.6vh, 26px);
  display: grid; justify-items: center; gap: 7px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--hint-fg, rgba(253,248,238,.72));
  opacity: calc(1 - var(--p) * 2.6);
}
.scroll-hint i { display: block; width: 1px; height: 26px; background: currentColor; transform-origin: 50% 0; animation: hint 1.9s var(--ease-io) infinite; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 0 } 40% { transform: scaleY(1); opacity: 1 } 100% { transform: scaleY(1) translateY(26px); opacity: 0 } }

/* ============================================================
   SECTIONS
   ============================================================ */
main > section, .after > section { position: relative; }
.sec { padding-block: clamp(64px, 9vw, 132px); }
.sec.tight { padding-block: clamp(48px, 6vw, 84px); }
.sec.paper-warm { background: var(--paper-warm); }

/* --- investors strip --- */
.investors { text-align: center; display: grid; gap: clamp(26px, 3.4vw, 44px); }
.investors h2 { max-width: 620px; margin-inline: auto; color: var(--ink-faint); font-weight: 400; font-size: clamp(19px, 2vw, 28px); line-height: 1.25; letter-spacing: -.018em; }
.investor-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(22px, 4.6vw, 66px); }
.investor-row span {
  font-size: clamp(13px, 1.28vw, 18px); font-weight: 600; letter-spacing: .01em;
  color: rgba(22,19,15,.55);
  transition: color .45s var(--ease), transform .45s var(--ease);
}
.investor-row span:hover { color: var(--ink); transform: translateY(-2px); }

/* --- mission --- */
.mission-grid { display: grid; gap: clamp(20px, 2.6vw, 32px); max-width: 760px; }
.mission-lede { display: grid; gap: 18px; justify-items: start; }
.mission-copy { display: grid; gap: 14px; }

.plate-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 20px); margin-top: clamp(34px, 5vw, 70px); }
.plate-row figure { position: relative; overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 3; }
.plate-row img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease), filter 1.2s var(--ease); }
.plate-row figure:hover img { transform: scale(1.07); }
@media (max-width: 720px) { .plate-row { grid-template-columns: 1fr; } }

/* --- band: full-bleed painting between sections --- */
.band-image { position: relative; height: clamp(280px, 44vw, 560px); overflow: hidden; }
.band-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translate3d(0, calc(var(--sp, .5) * -4%), 0); will-change: transform; }

/* --- gold ticker --- */
.ticker-band { background: var(--ochre); color: var(--ink); overflow: hidden; padding-block: 10px; border-block: 1px solid rgba(22,19,15,.14); }
.ticker-track { display: flex; width: max-content; gap: 56px; animation: marq 44s linear infinite; will-change: transform; }
.ticker-track span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
@keyframes marq { to { transform: translate3d(-50%, 0, 0); } }
.ticker-band:hover .ticker-track { animation-play-state: paused; }

/* --- how it works: accordion + plate --- */
.works-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .84fr); gap: clamp(30px, 5vw, 88px); align-items: start; }
.works-head { display: grid; gap: 18px; justify-items: start; max-width: 600px; }
.works-head h2 { font-size: clamp(25px, 3.05vw, 41px); }
.steps { margin-top: clamp(32px, 5vw, 72px); border-top: 1px solid var(--line); }
.step { border-bottom: 1px solid var(--line); }
.step-btn {
  width: 100%; display: flex; align-items: baseline; gap: 16px;
  padding: clamp(14px, 1.7vw, 22px) 0;
  text-align: left;
  color: var(--ink-faint);
  transition: color .5s var(--ease);
}
.step-btn:hover { color: var(--ink-soft); }
.step-n { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; opacity: .7; }
.step-t { font-size: clamp(21px, 2.1vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.step.is-open .step-btn { color: var(--ink); }
.step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .62s var(--ease); }
.step.is-open .step-body { grid-template-rows: 1fr; }
.step-body > div { overflow: hidden; }
.step-body p { padding-bottom: clamp(14px, 1.8vw, 22px); max-width: 460px; opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease) .1s, transform .5s var(--ease) .1s; }
.step.is-open .step-body p { opacity: 1; transform: none; }

.works-plate { position: relative; overflow: hidden; border-radius: 2px; aspect-ratio: 3 / 4; }
.works-plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.5s var(--ease); }
.works-plate img.is-on { opacity: 1; transform: scale(1); }
.works-cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  background: rgba(241,236,221,.9);
  backdrop-filter: blur(6px);
  padding: 10px 13px; border-radius: 2px;
  font-size: 13.5px; line-height: 1.4; color: var(--ink);
}
@media (max-width: 860px) { .works-grid { grid-template-columns: 1fr; } .works-plate { aspect-ratio: 4 / 3; } }

/* --- numbered plate grid (variation 3) --- */
.grid-head { text-align: center; display: grid; gap: 14px; justify-items: center; max-width: 830px; margin-inline: auto; }
.plate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 44px) clamp(14px, 2.4vw, 32px); margin-top: clamp(38px, 5.4vw, 76px); }
.plate-grid figure { display: grid; gap: 12px; }
.plate-grid .ph { position: relative; overflow: hidden; border-radius: 2px; }
.plate-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform 1.3s var(--ease); }
.plate-grid figure:hover img { transform: scale(1.05); }
.plate-grid figure:nth-child(2) { margin-top: clamp(30px, 5vw, 84px); }
.plate-grid figure:nth-child(3) { margin-bottom: clamp(30px, 5vw, 84px); }
.plate-grid figcaption { display: grid; gap: 5px; }
.plate-grid .pn { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
@media (max-width: 720px) { .plate-grid { grid-template-columns: 1fr; } .plate-grid figure:nth-child(n) { margin: 0; } }

/* --- sticky split (variation 4) --- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.split-sticky { position: sticky; top: clamp(90px, 14vh, 150px); display: grid; gap: 18px; justify-items: start; }
.split-list { display: grid; gap: clamp(14px, 2vw, 24px); }
.split-card {
  display: grid; gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.split-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -34px rgba(22,19,15,.5); }
.split-card .ph { overflow: hidden; }
.split-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.4s var(--ease); }
.split-card:hover img { transform: scale(1.05); }
.split-card .cap { padding: 0 clamp(16px, 1.8vw, 24px) clamp(18px, 2vw, 26px); display: grid; gap: 8px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-sticky { position: static; } }

/* --- capability plates (variation 1/2 mission) --- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 34px); margin-top: clamp(34px, 5vw, 70px); }
.caps figure { display: grid; gap: 12px; align-content: start; }
.caps .ph { overflow: hidden; border-radius: 2px; }
.caps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.3s var(--ease); }
.caps figure:hover img { transform: scale(1.05); }
.caps figure:nth-child(2) { margin-top: clamp(20px, 4vw, 62px); }
.caps figure:nth-child(3) { margin-top: clamp(40px, 8vw, 124px); }
@media (max-width: 780px) { .caps { grid-template-columns: 1fr; } .caps figure:nth-child(n) { margin: 0; } }

/* --- lineage --- */
.lineage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); align-items: start; }
.lineage-copy { display: grid; gap: 14px; align-content: start; justify-items: start; padding: clamp(24px,3vw,44px) clamp(24px,4vw,64px) clamp(24px,3vw,44px) 0; }
.lineage-logos { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line); }
.lineage-logos div {
  display: grid; place-items: center;
  min-height: clamp(74px, 7.6vw, 104px);
  border-bottom: 1px solid var(--line);
  font-size: clamp(15px, 1.7vw, 23px); font-weight: 600; letter-spacing: .005em;
  color: rgba(22,19,15,.5);
  transition: color .5s var(--ease), background-color .5s var(--ease);
}
.lineage-logos div:nth-child(odd) { border-right: 1px solid var(--line); }
.lineage-logos div:last-child { border-bottom: 0; }
.lineage-logos div:hover { color: var(--ink); background: rgba(217,180,99,.14); }
@media (max-width: 860px) {
  .lineage { grid-template-columns: 1fr; }
  .lineage-copy { padding: clamp(36px,7vw,60px) 0; }
  .lineage-logos { border-left: 0; border-top: 1px solid var(--line); }
}

/* ============================================================
   JOIN THE MISSION — pane A (centred) and pane B (left + refer)
   ============================================================ */
.cta-pane { position: relative; overflow: hidden; isolation: isolate; }
.cta-pane img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.08) translate3d(0, calc((var(--sp, .5) - .5) * -6%), 0);
  will-change: transform;
}
.cta-pane::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cta-scrim, linear-gradient(180deg, rgba(10,8,5,.34), rgba(10,8,5,.12) 46%, rgba(10,8,5,.4))); }

/* A — centred, from variation 5 */
.cta-centre { min-height: clamp(520px, 62vw, 760px); display: grid; place-items: center; text-align: center; padding: clamp(60px, 8vw, 120px) var(--gut); }
.cta-centre .inner { display: grid; gap: clamp(18px, 2.4vw, 30px); justify-items: center; max-width: 760px; color: #fdf8ee; }
.cta-centre h2 { text-shadow: 0 2px 44px rgba(10,7,3,.44); }
.cta-centre p { color: rgba(253,248,238,.9); max-width: 520px; }

/* B — left aligned + refer bar, from variation 6 */
.cta-left { min-height: clamp(560px, 64vw, 820px); display: grid; grid-template-rows: 1fr auto; }
.cta-left .inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding: clamp(48px, 7vw, 96px) var(--gut) 0;
  display: grid; gap: 20px; justify-items: start; align-content: start;
  color: #fdf8ee; max-width: min(var(--maxw), 100%);
}
.cta-left .inner > * { max-width: 560px; }
.cta-left h2 { text-shadow: 0 2px 40px rgba(10,7,3,.44); }
.cta-left .inner p { color: rgba(253,248,238,.92); }
.refer {
  background: linear-gradient(180deg, rgba(14,11,6,.28), rgba(14,11,6,.62));
  backdrop-filter: blur(3px);
  border-top: 1px solid rgba(253,248,238,.16);
}
.refer .inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(24px, 3.2vw, 40px) var(--gut);
  display: grid; gap: 14px; justify-items: start; color: #fdf8ee;
}
.refer .inner p { color: rgba(253,248,238,.86); max-width: 560px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--night); color: #f0e9d8; padding-top: clamp(48px, 6vw, 84px); overflow: hidden; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-top h2 { max-width: 620px; }
.footer-mail { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; color: rgba(240,233,216,.78); transition: color .4s var(--ease); }
.footer-mail::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.footer-mail:hover { color: var(--gold); }
.footer-cols { display: flex; gap: clamp(30px, 8vw, 130px); flex-wrap: wrap; margin-top: clamp(40px, 6vw, 90px); }
.footer-col { display: grid; gap: 7px; align-content: start; }
.footer-col a, .footer-col span {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(240,233,216,.7);
  transition: color .4s var(--ease), transform .4s var(--ease);
}
.footer-col a:hover { color: var(--gold); transform: translateX(3px); }
/* the big sign-off: real mark + wordmark, sized to span the measure.
   font-size lives on the wrapper so the mark's em units scale with the type,
   and the mark is baseline-aligned at cap height like the wordmark itself. */
.footer-mark {
  margin-top: clamp(24px, 3.4vw, 46px);
  font-size: clamp(44px, 18.1vw, 258px);
  line-height: .82;
  white-space: nowrap;
  color: #f4ecd9;
}
.footer-mark svg {
  display: inline-block; vertical-align: baseline;
  height: .70em; width: auto;
  margin-right: .1em;
}
.footer-mark b { font-weight: 600; letter-spacing: -.035em; }
.footer-base {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: clamp(14px, 1.8vw, 22px);
  border-top: 1px solid rgba(240,233,216,.14);
  margin-top: clamp(12px, 1.6vw, 20px);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(240,233,216,.5);
}

/* ============================================================
   VERSION TICKER (bottom)
   ============================================================ */

@media (max-width: 620px) { .vticker-label { display: none; } }




@media (min-width: 760px) { .vticker .vname { display: block; } }

/* ============================================================
   CAREERS
   ============================================================ */
.careers-hero { padding-top: clamp(60px, 8vw, 120px); padding-bottom: clamp(40px, 5vw, 70px); background: var(--paper); }
.careers-hero .inner { display: grid; gap: 20px; justify-items: start; max-width: 780px; }
.careers-hero .inner p { max-width: 660px; }
.careers-meta { display: flex; gap: clamp(18px, 3vw, 40px); flex-wrap: wrap; margin-top: clamp(22px, 3vw, 38px); padding-top: clamp(18px, 2.4vw, 28px); border-top: 1px solid var(--line); width: 100%; }
.careers-meta div { display: grid; gap: 3px; }
.careers-meta b { font-size: clamp(22px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.02em; }
.careers-meta span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }

.filters {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding-block: clamp(18px, 2.4vw, 28px);
  position: sticky; top: var(--mast-h); z-index: 30;
  background: var(--paper);
}
.filters::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.filter {
  position: relative;
  font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink-faint);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color .4s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.filter:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(22,19,15,.3); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }

.role-group { padding-top: clamp(30px, 4vw, 54px); }
.role-group > h2 { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; }
.role-group > h2 em { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-faint); }
.role {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px;
  padding: clamp(16px, 2vw, 24px) 0;
  border-top: 1px solid var(--line);
  transition: background-color .45s var(--ease), padding-inline .45s var(--ease);
}
.role:hover { background: rgba(217,180,99,.13); padding-inline: 14px; }
.role-main { display: grid; gap: 8px; min-width: 0; }
.role-main h3 { font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.018em; }
.role-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.role-tags span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); padding: 3px 7px; border: 1px solid var(--line); border-radius: 2px;
}
.role-side { display: flex; align-items: center; gap: 18px; }
.role-loc { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.role-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .45s var(--ease), color .45s var(--ease), transform .45s var(--ease); }
.role:hover .role-go { background: var(--ink); color: var(--paper); transform: translateX(3px); }
@media (max-width: 640px) {
  .role { grid-template-columns: 1fr; }
  .role-side { justify-content: space-between; }
}
.role.is-out { display: none; }

.referral { background: var(--night); color: #f0e9d8; }
.referral .inner { display: grid; gap: 18px; justify-items: start; max-width: 620px; }
.referral p { color: rgba(240,233,216,.74); }

/* ============================================================
   REVEALS
   ============================================================ */
.rv { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .42s var(--ease), transform .42s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .04s } .rv-d2 { transition-delay: .08s } .rv-d3 { transition-delay: .12s } .rv-d4 { transition-delay: .16s }

.lines { display: block; }
/* padding/negative-margin pair keeps descenders out of the overflow clip */
.lines .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.lines .line > i {
  display: block; font-style: inherit;
  transform: translate3d(0, 110%, 0);
  transition: transform .55s var(--ease);
}
.lines.in .line > i, .in .lines .line > i { transform: none; }

/* ============================================================
   CROSS-DOCUMENT VIEW TRANSITIONS
   Switching versions morphs instead of flashing.
   ============================================================ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .34s var(--ease-io) both; }
::view-transition-new(root) { animation: vtIn  .46s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: scale(.992); } }
@keyframes vtIn  { from { opacity: 0; transform: scale(1.006); } }

.masthead { view-transition-name: masthead; }
.hero.frame-hero .masthead { --mast-fg: var(--ink); }
::view-transition-group(vticker),
::view-transition-group(masthead) { animation-duration: .4s; }

/* first-paint settle — CSS only, so it never depends on JS or rAF timing */
body { animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity: 0 } to { opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
  .lines .line > i { transform: none; }
  .hero { height: auto; min-height: 0; }
  .hero-sticky { position: relative; height: 88svh; }
}

/* ============================================================
   VARIATIONS 05 + 06 — zealotlabs.com section vocabulary
   ============================================================ */

/* operational status marker */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: inherit; opacity: .8;
}
.status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6fbf73; flex: none;
  box-shadow: 0 0 0 0 rgba(111,191,115,.6);
  animation: pulse 2.6s var(--ease-io) infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111,191,115,.55) } 70% { box-shadow: 0 0 0 8px rgba(111,191,115,0) } 100% { box-shadow: 0 0 0 0 rgba(111,191,115,0) } }
.hero-copy .status { margin-bottom: 18px; color: rgba(253,248,238,.86); }

/* centred editorial hero (06) */
.hero-copy.centre {
  top: 50%; bottom: auto;
  transform: translate3d(-50%, calc(-50% + var(--p) * -44px), 0);
  display: grid; justify-items: center; gap: 20px; text-align: center;
  color: #fdf8ee;
}
.hero-copy.centre h1 { max-width: 15ch; text-shadow: 0 2px 44px rgba(10,7,3,.5); }
.hero-copy.centre p { max-width: 52ch; color: rgba(253,248,238,.9); text-shadow: 0 1px 20px rgba(10,7,3,.5); }

/* mission statement */
.statement { display: grid; gap: 20px; justify-items: start; max-width: 900px; }
.statement p { max-width: 68ch; }

/* lineage ledger */
.alumni { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 90px); align-items: start; }
.alumni-copy { display: grid; gap: 18px; justify-items: start; }
.alumni-list { border-top: 1px solid var(--line); }
.alumni-list li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 18px;
  padding: clamp(15px, 1.9vw, 24px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-inline .45s var(--ease), background-color .45s var(--ease);
}
.alumni-list li:hover { padding-inline: 12px; background: rgba(217,180,99,.12); }
.alumni-list .an { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-faint); }
.alumni-list b { font-size: clamp(19px, 2vw, 28px); font-weight: 500; letter-spacing: -.02em; }
.alumni-list i { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 860px) { .alumni { grid-template-columns: 1fr; } }

/* backing */
.backing .wrap { display: grid; gap: 22px; justify-items: center; text-align: center; }
.backing h2 { color: var(--ink-faint); font-weight: 400; }
.backing-row { display: flex; flex-wrap: wrap; gap: clamp(14px, 2.4vw, 30px); justify-content: center; }
.backing-row span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-soft);
  transition: color .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease);
}
.backing-row span:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-2px); }

/* roles preview */
.roles-head { display: grid; gap: 18px; justify-items: start; max-width: 720px; }
.roles-head p { max-width: 60ch; }
.roles-meta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.roles-meta b { font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.roles-meta span, .roles-meta em {
  font-style: normal; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.roles-meta em::before { content: "·"; margin-right: 12px; }
.roles-list { margin-top: clamp(30px, 4.4vw, 56px); border-top: 1px solid var(--line); }
.roles-list li { border-bottom: 1px solid var(--line); }
.roles-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) 120px 200px 34px;
  align-items: center; gap: 18px;
  padding: clamp(15px, 1.9vw, 23px) 0;
  transition: padding-inline .45s var(--ease), background-color .45s var(--ease);
}
.roles-list a:hover { padding-inline: 14px; background: rgba(217,180,99,.12); }
.roles-list .rt { font-size: clamp(17px, 1.65vw, 23px); font-weight: 500; letter-spacing: -.018em; }
.roles-list .rg, .roles-list .rl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); }
.roles-list .rx { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .45s var(--ease), color .45s var(--ease), transform .45s var(--ease); }
.roles-list a:hover .rx { background: var(--ink); color: var(--paper); transform: translateX(3px); }
.roles-list + .link-rule { margin-top: clamp(26px, 3.4vw, 40px); }
@media (max-width: 820px) {
  .roles-list a { grid-template-columns: 1fr auto; }
  .roles-list .rg, .roles-list .rl { grid-column: 1; }
}

/* referral band */
.referral-band { background: var(--paper-warm); }
.referral-band .inner { display: grid; gap: 18px; justify-items: start; max-width: 640px; }
[data-theme="night"] .referral-band { background: var(--paper-warm); box-shadow: inset 0 1px 0 var(--line-soft), inset 0 -1px 0 var(--line-soft); }

/* ---------- night ground ---------- */
[data-theme="night"] .btn { --btn-fg: #16130f; }
[data-theme="night"] .btn::before { background: #fdf8ee; }
[data-theme="night"] .btn:hover { color: #16130f; }
[data-theme="night"] .btn.ghost { --btn-fg: var(--ink); }
[data-theme="night"] .btn.ghost:hover { color: #16130f; }
[data-theme="night"] .btn.ghost::before { background: var(--gold); }
[data-theme="night"] .investor-row span { color: rgba(242,236,221,.55); }
[data-theme="night"] .investor-row span:hover { color: var(--ink); }
[data-theme="night"] .site-footer { background: var(--night); }
[data-theme="night"] .kicker { color: var(--ink-soft); }
[data-theme="night"] ::selection { background: var(--gold); color: #16130f; }
[data-theme="night"] .alumni-list li:hover,
[data-theme="night"] .roles-list a:hover { background: rgba(242,236,221,.06); }
[data-theme="night"] .roles-list a:hover .rx,
[data-theme="night"] .role:hover .role-go { background: var(--gold); color: #16130f; }
[data-theme="night"] .link-rule { color: var(--ink); border-color: var(--line); }
[data-theme="night"] .link-rule:hover { border-color: var(--ink); }
[data-theme="night"] .hero-sticky::before { background: linear-gradient(180deg, rgba(6,5,3,.6), transparent); }

/* the two-line break in the headline must hold — 15ch forced an orphan "for" */
.hero-copy.centre h1 { max-width: 22ch; }
/* full-colour plates blow a hole in the night ground — settle them into it */
[data-theme="night"] .band-image img { filter: saturate(.72) brightness(.6) contrast(1.06); }
[data-theme="night"] .plate-row img,
[data-theme="night"] .split-card img { filter: saturate(.78) brightness(.72); }

/* referral block on a plate */
.referral-band.has-plate { position: relative; overflow: hidden; isolation: isolate; background: transparent; padding-block: clamp(90px, 12vw, 170px); }
.referral-band.has-plate .bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.07) translate3d(0, calc((var(--sp, .5) - .5) * -5%), 0);
  filter: saturate(.85) contrast(1.04);
  will-change: transform;
}
.referral-band.has-plate::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,7,4,.9) 0%, rgba(8,7,4,.62) 46%, rgba(8,7,4,.3) 100%);
}
.referral-band.has-plate .inner { color: #fdf8ee; max-width: 620px; }
.referral-band.has-plate .inner p { color: rgba(253,248,238,.9); }
.referral-band.has-plate .kicker { color: rgba(253,248,238,.72); }

/* ============================================================
   06 — near-black technical register
   ============================================================ */
[data-theme="black"] { --dot-a: 0; }
[data-theme="black"] body { letter-spacing: .002em; }
[data-theme="black"] .h-xl,
[data-theme="black"] .h-lg { letter-spacing: -.035em; font-weight: 500; }

/* engraving reads as light on black */
[data-theme="black"] .edge-canvas { mix-blend-mode: normal; filter: contrast(1.02) brightness(1.04); }
[data-theme="black"] .hero-image:not(.chroma) { filter: saturate(.74) contrast(1.06) brightness(.94); }
[data-theme="black"] .scrim.full { background: linear-gradient(180deg, rgba(4,4,4,.46), rgba(4,4,4,.1) 40%, rgba(4,4,4,.42) 74%, rgba(4,4,4,.72)); }
[data-theme="black"] .vignette { box-shadow: inset 0 0 clamp(80px,11vw,200px) rgba(0,0,0,.4); }


/* corner brackets */







.idx-mast { gap: 18px; }
.idx-mast .mast-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  opacity: .7;
}
.idx-mast .mast-status i { width: 5px; height: 5px; border-radius: 50%; background: #7fdc8a; }

.idx-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-copy.idx { bottom: clamp(56px, 9vh, 110px); display: grid; gap: 20px; justify-items: start; color: #fdf8ee; }
.hero-copy.idx .idx-label { color: rgba(253,248,238,.6); }
.hero-copy.idx h1 { max-width: 18ch; }
.hero-copy.idx p.body { max-width: 46ch; color: rgba(253,248,238,.82); }


/* wire buttons — hairline, square, fill on hover */
.btn.wire {
  --btn-bg: transparent; --btn-fg: #fdf8ee;
  border-radius: 0; box-shadow: inset 0 0 0 1px rgba(237,237,235,.4);
  padding: 13px 20px;
}
.btn.wire::before { background: #ededeb; }
.btn.wire:hover { color: #0a0a0a; box-shadow: inset 0 0 0 1px #ededeb; }

/* indexed sections — label rail left, content right, ruled */
.idx-sec { border-top: 1px solid var(--line); }
.idx-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.idx-body { display: grid; gap: 20px; justify-items: start; max-width: 860px; }
.idx-body p { max-width: 66ch; }
@media (max-width: 820px) { .idx-row { grid-template-columns: 1fr; gap: 18px; } }

.cap-index { margin-top: clamp(24px, 3.4vw, 44px); width: 100%; border-top: 1px solid var(--line); }
.cap-index li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: clamp(14px, 2vw, 28px);
  padding: clamp(18px, 2.3vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-inline .45s var(--ease), background-color .45s var(--ease);
}
.cap-index li:hover { padding-inline: 12px; background: rgba(237,237,235,.05); }
.cap-index .cn { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-faint); padding-top: .45em; }
.cap-index h3 { font-size: clamp(20px, 2.1vw, 29px); font-weight: 500; letter-spacing: -.022em; margin-bottom: 8px; }
.cap-index p { max-width: 62ch; }

[data-theme="black"] .site-footer { background: #000; border-top: 1px solid var(--line); }
[data-theme="black"] .btn { --btn-fg: #0a0a0a; }
[data-theme="black"] .btn::before { background: #fff; }
[data-theme="black"] .backing-row span:hover,
[data-theme="black"] .alumni-list li:hover,
[data-theme="black"] .roles-list a:hover { background: rgba(237,237,235,.05); }
[data-theme="black"] .roles-list a:hover .rx { background: #ededeb; color: #0a0a0a; }
[data-theme="black"] .referral-band.has-plate::after { background: linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.42) 52%, rgba(0,0,0,.12) 100%); }
[data-theme="black"] .referral-band.has-plate .bg { filter: saturate(.7) contrast(1.02) brightness(.9); }

/* the black theme flips --ink and --gold, which swallowed these two.
   The ticker is fixed chrome and must not follow the page theme at all. */
[data-theme="black"] .btn.wire { --btn-fg: #fdf8ee; --btn-bg: transparent; }
[data-theme="black"] .btn.wire:hover { color: #0a0a0a; }





/* ---------- 06: type cut out of the plate ---------- */
.kinetic { padding-block: clamp(70px, 11vw, 160px); overflow: hidden; }
.kinetic-inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); display: grid; gap: clamp(18px, 2.6vw, 32px); }
.kinetic-type {
  font-size: clamp(58px, 15.2vw, 226px);
  line-height: .86; letter-spacing: -.045em; font-weight: 600;
  background-size: cover;
  background-position: 50% calc(20% + var(--sp, .5) * 46%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: contrast(1.16) brightness(1.24) saturate(.35);
  will-change: background-position;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .kinetic-type { color: var(--ink); -webkit-text-fill-color: currentColor; }
}

/* ---------- 06: pinned plate, capabilities scroll past ---------- */
.cap-rail .rail-head { max-width: 18ch; margin-top: 16px; }
.rail { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(26px, 4.4vw, 76px); margin-top: clamp(34px, 5vw, 72px); align-items: start; }
.rail-plate {
  position: sticky; top: clamp(80px, 13vh, 150px);
  aspect-ratio: 4 / 5; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.rail-plate img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  filter: saturate(.76) contrast(1.03) brightness(.96);
  transition: opacity .8s var(--ease), transform 1.6s var(--ease), clip-path .9s var(--ease);
  clip-path: inset(0 0 100% 0);
}
.rail-plate img.is-on { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0); }
.rail-tick {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  display: flex; align-items: baseline; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  color: rgba(237,237,235,.8);
}
.rail-tick em { font-style: normal; opacity: .5; }
.rail-list { border-top: 1px solid var(--line); }
.cap-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: clamp(12px, 1.8vw, 24px);
  padding: clamp(30px, 5vw, 68px) 0;
  border-bottom: 1px solid var(--line);
  opacity: .35;
  transition: opacity .6s var(--ease);
}
.cap-row.is-on { opacity: 1; }
.cap-row .cn { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-faint); padding-top: .5em; }
.cap-row h3 { font-size: clamp(24px, 3vw, 42px); font-weight: 500; letter-spacing: -.028em; margin-bottom: 12px; }
.cap-row p { max-width: 48ch; }
@media (max-width: 860px) {
  .rail { grid-template-columns: 1fr; }
  .rail-plate { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .cap-row { opacity: 1; padding-block: clamp(22px,4vw,34px); }
}

/* ---------- 06: alumni marquee ---------- */
.alumni-marquee {
  margin-top: clamp(34px, 5vw, 70px);
  border-block: 1px solid var(--line);
  overflow: hidden; padding-block: clamp(16px, 2.2vw, 28px);
}
.am-track { display: flex; align-items: center; gap: clamp(28px, 4vw, 60px); width: max-content; animation: marq 38s linear infinite; will-change: transform; }
.am-track span { font-size: clamp(26px, 3.4vw, 52px); font-weight: 500; letter-spacing: -.028em; white-space: nowrap; }
.am-track i { font-style: normal; font-size: clamp(10px, 1vw, 14px); color: var(--ink-faint); }
.alumni-marquee:hover .am-track { animation-play-state: paused; }

/* ---------- 06: horizontal plate rail ---------- */
.plate-rail { overflow-x: auto; overflow-y: hidden; padding-block: clamp(20px, 3vw, 40px); scrollbar-width: none; }
.plate-rail::-webkit-scrollbar { display: none; }
.pr-track { display: flex; gap: clamp(10px, 1.4vw, 20px); padding-inline: var(--gut); width: max-content; }
.pr-track figure { position: relative; flex: none; width: clamp(230px, 25vw, 380px); }
.pr-track img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  filter: saturate(.72) contrast(1.02) brightness(.94);
  transition: filter .7s var(--ease), transform 1.2s var(--ease);
}
.pr-track figure:hover img { filter: saturate(1) contrast(1.02) brightness(1); transform: scale(1.02); }
.pr-track figcaption {
  margin-top: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============================================================
   07 — the 06 register on paper. Same structure, inverted optics:
   ink hairlines instead of light ones, plates lifted not crushed.
   ============================================================ */
[data-theme-light="idx"] 
[data-theme-light="idx"] .scrim.full { background: linear-gradient(180deg, rgba(14,10,4,.5), rgba(14,10,4,.14) 42%, rgba(14,10,4,.66)); }
[data-theme-light="idx"] .hero-image:not(.chroma) { filter: saturate(.92) contrast(1.04); }

[data-theme-light="idx"] .kinetic-type { filter: contrast(1.1) brightness(.82) saturate(.72); }

[data-theme-light="idx"] .rail-plate img { filter: saturate(.88) contrast(1.03); }
[data-theme-light="idx"] .rail-tick { color: rgba(253,248,238,.9); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
[data-theme-light="idx"] .pr-track img { filter: saturate(.86) contrast(1.02) brightness(1); }
[data-theme-light="idx"] .pr-track figure:hover img { filter: saturate(1) contrast(1.04); }

[data-theme-light="idx"] .btn.wire { --btn-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
[data-theme-light="idx"] .btn.wire::before { background: var(--ink); }
[data-theme-light="idx"] .btn.wire:hover { color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
/* the hero sits on the plate, so its buttons stay light until the type does */
[data-theme-light="idx"] .hero-copy .btn.wire { --btn-fg: #fdf8ee; box-shadow: inset 0 0 0 1px rgba(253,248,238,.45); }
[data-theme-light="idx"] .hero-copy .btn.wire::before { background: #fdf8ee; }
[data-theme-light="idx"] .hero-copy .btn.wire:hover { color: #16130f; box-shadow: inset 0 0 0 1px #fdf8ee; }

[data-theme-light="idx"] .cap-row:hover,
[data-theme-light="idx"] .roles-list a:hover,
[data-theme-light="idx"] .backing-row span:hover { background: rgba(217,180,99,.13); }


/* ============================================================
   PALETTE + SCROLL COHERENCE
   The gold was doing nothing but sitting on buttons. Threading it
   through the index labels, active states and rules ties the scroll
   together; the progress rail gives the whole page one spine.
   ============================================================ */
.scroll-rail { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 90; background: transparent; pointer-events: none; }
.scroll-rail i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transform-origin: 0 50%; }
[data-theme="black"] .scroll-rail i { background: linear-gradient(90deg, rgba(237,237,235,.5), #ededeb); }

/* index labels carry the accent */
.idx-label { color: var(--gold-deep); }
[data-theme="black"] .idx-label { color: rgba(237,237,235,.55); }
.hero-copy.idx .idx-label { color: var(--gold); }

/* the pinned rail's active row is marked in the accent, not just opacity */
.cap-row { position: relative; padding-left: 0; }
.cap-row::before {
  content: ""; position: absolute; left: -14px; top: clamp(30px, 5vw, 68px); bottom: auto;
  width: 2px; height: 0; background: var(--gold);
  transition: height .7s var(--ease);
}
.cap-row.is-on::before { height: calc(100% - clamp(60px, 10vw, 136px)); }
.cap-row.is-on .cn { color: var(--gold-deep); }
[data-theme="black"] .cap-row.is-on .cn { color: #ededeb; }
[data-theme="black"] .cap-row::before { background: #ededeb; }
.rail-tick i { color: var(--gold); }

/* marquee dividers and plate captions pick it up too */
.am-track i { color: var(--gold-deep); }
[data-theme="black"] .am-track i { color: rgba(237,237,235,.35); }
.pr-track figcaption { color: var(--gold-deep); }
[data-theme="black"] .pr-track figcaption { color: rgba(237,237,235,.45); }
.alumni-list .an, .cap-index .cn { color: var(--gold-deep); }
[data-theme="black"] .alumni-list .an, [data-theme="black"] .cap-index .cn { color: rgba(237,237,235,.45); }
.roles-meta b { color: var(--gold-deep); }
[data-theme="black"] .roles-meta b { color: #ededeb; }

/* warmer paper so the light cuts don't read as neutral grey */
.idx-sec + .idx-sec { border-top-color: var(--line); }
.kinetic { background: linear-gradient(180deg, transparent, rgba(217,180,99,.07) 45%, transparent); }
[data-theme="black"] .kinetic { background: none; }


/* ============================================================
   MANIFESTO — a few paragraphs, set well. Nothing else.
   ============================================================ */
.page-manifesto main { display: grid; place-items: start center; }
.mf {
  width: 100%; max-width: 720px;
  padding: clamp(70px, 12vw, 180px) var(--gut) clamp(80px, 12vw, 170px);
  display: grid; gap: clamp(26px, 3.4vw, 44px); justify-items: start;
}
.mf-lede { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.032em; font-weight: 500; }
.mf-text { display: grid; gap: clamp(20px, 2.4vw, 30px); }
.mf-text p {
  font-size: clamp(16px, 1.28vw, 19px);
  line-height: 1.68;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.mf-text p:first-child { color: var(--ink); font-size: clamp(17px, 1.42vw, 21px); }
.mf-sign {
  margin-top: clamp(10px, 1.6vw, 22px);
  padding-top: clamp(24px, 3vw, 38px);
  border-top: 1px solid var(--line);
  width: 100%;
  font-size: clamp(19px, 1.9vw, 26px); line-height: 1.24; letter-spacing: -.022em;
  color: var(--ink);
}

/* blog index */
.blog-hero { padding-block: clamp(60px, 8vw, 120px) clamp(34px, 4.4vw, 62px); }
.blog-hero .inner { display: grid; gap: 20px; justify-items: start; max-width: 760px; }
.blog-hero p { max-width: 60ch; }

/* ============================================================
   WRITING — one treatment per variation. A decorative plate has
   to earn its place; each page earns it a different way.
   ============================================================ */
.writing-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 40px); }
.post { display: grid; gap: 13px; align-content: start; }
.post-plate { position: relative; overflow: hidden; isolation: isolate; }
.post-plate img { width: 100%; display: block; transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.post-screen { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.post-cat {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--gold-deep);
}
.post-t { font-size: clamp(16px, 1.44vw, 21px); font-weight: 500; line-height: 1.25; letter-spacing: -.018em; transition: color .4s var(--ease); }
.post:hover .post-t { color: var(--gold-deep); }
.post-meta { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-faint); }
.post-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.post-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 38px); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3.2vw, 48px); padding-bottom: clamp(50px, 8vw, 110px); }
@media (max-width: 900px) { .post-row, .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-row, .post-grid { grid-template-columns: 1fr; } }

/* 1 — typographic index. No plate at all; the strongest option on a page
   already carrying a hero painting and a works plate. */
[data-writing="type"] .post-plate { display: none; }
[data-writing="type"] .post-row { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
[data-writing="type"] .post {
  grid-template-columns: 130px minmax(0, 1fr) auto;
  grid-template-areas: "cat title meta";
  align-items: baseline; gap: clamp(16px, 3vw, 40px);
  padding: clamp(18px, 2.4vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-inline .45s var(--ease), background-color .45s var(--ease);
}
[data-writing="type"] .post:hover { padding-inline: 14px; background: rgba(217,180,99,.1); }
[data-writing="type"] .post-cat { grid-area: cat; }
[data-writing="type"] .post-t { grid-area: title; font-size: clamp(18px, 1.9vw, 27px); }
[data-writing="type"] .post-meta { grid-area: meta; }
@media (max-width: 760px) { [data-writing="type"] .post { grid-template-columns: 1fr; grid-template-areas: "cat" "title" "meta"; gap: 8px; } }

/* 2 — warm duotone. Two brand inks, no grey mud. */
[data-writing="duo"] .post-plate img { aspect-ratio: 4/3; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(1.04); }
[data-writing="duo"] .post-screen { background: linear-gradient(180deg, rgba(90,66,30,.62), rgba(217,180,99,.5)); mix-blend-mode: multiply; }
[data-writing="duo"] .post-plate::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--paper); mix-blend-mode: screen; opacity: .3; }
[data-writing="duo"] .post:hover .post-plate img { transform: scale(1.04); }

/* 3 + W — full-colour plate held in an ink frame, category chipped onto it.
   The title sits below: overlaying it straddled the plate edge. */
[data-writing="frame"] .post-plate { box-shadow: inset 0 0 0 1px var(--line); }
[data-writing="frame"] .post-plate img { aspect-ratio: 5/4; object-fit: cover; }
[data-writing="frame"] .post-screen { background: linear-gradient(180deg, rgba(10,8,4,.34), transparent 34%); }
[data-writing="frame"] .post-cat {
  position: absolute; left: 11px; top: 10px; z-index: 4;
  color: var(--ink); background: var(--paper);
  padding: 5px 8px 4px;
}
[data-writing="frame"] .post:hover .post-plate img { transform: scale(1.03); }

/* 4 — square thumb, list row. The plate is an index tile, not a hero. */
[data-writing="list"] .post-row { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
[data-writing="list"] .post {
  grid-template-columns: 84px minmax(0, 1fr) auto;
  grid-template-areas: "img title meta" "img cat meta";
  align-items: center; gap: 6px clamp(16px, 2.4vw, 30px);
  padding: clamp(14px, 1.8vw, 22px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-inline .45s var(--ease), background-color .45s var(--ease);
}
[data-writing="list"] .post:hover { padding-inline: 12px; background: rgba(217,180,99,.1); }
[data-writing="list"] .post-plate { grid-area: img; }
[data-writing="list"] .post-plate img { aspect-ratio: 1; object-fit: cover; filter: saturate(.8); }
[data-writing="list"] .post-t { grid-area: title; }
[data-writing="list"] .post-cat { grid-area: cat; }
[data-writing="list"] .post-meta { grid-area: meta; }
@media (max-width: 700px) { [data-writing="list"] .post { grid-template-columns: 64px 1fr; grid-template-areas: "img title" "img cat" "img meta"; } }

/* 5 — night: plate held back, gold hairline under it */
[data-writing="rule"] .post-plate img { aspect-ratio: 16/10; object-fit: cover; filter: saturate(.7) brightness(.86) contrast(1.04); }
[data-writing="rule"] .post-plate { border-bottom: 2px solid var(--gold); }
[data-writing="rule"] .post-screen { background: linear-gradient(180deg, transparent 55%, rgba(8,7,4,.5)); }
[data-writing="rule"] .post:hover .post-plate img { filter: saturate(1) brightness(1) contrast(1); transform: scale(1.03); }

/* 6 — cold monochrome, no dots anywhere near it */
[data-writing="mono"] .post-plate img { aspect-ratio: 3/2; object-fit: cover; filter: grayscale(.9) contrast(1.06) brightness(.92); }
[data-writing="mono"] .post-plate { box-shadow: inset 0 0 0 1px var(--line); }
[data-writing="mono"] .post:hover .post-plate img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.03); }

/* 7 — light: the plate stays a plate, cropped tall and full colour */
[data-writing="plate"] .post-plate img { aspect-ratio: 4/5; object-fit: cover; }
[data-writing="plate"] .post-screen { box-shadow: inset 0 0 0 1px var(--line); }
[data-writing="plate"] .post:hover .post-plate img { transform: scale(1.03); }

/* horizontal rail cut (06 / 07) */
.writing-rail { padding-block: clamp(30px, 4.4vw, 66px); overflow: hidden; }
.writing-rail .pr-track { display: flex; gap: clamp(12px, 1.6vw, 22px); padding-inline: var(--gut); width: max-content; overflow-x: auto; scrollbar-width: none; }
.writing-rail .pr-track::-webkit-scrollbar { display: none; }
.post-rail { flex: none; width: clamp(240px, 26vw, 350px); }

/* ============================================================
   PANE LABELS — a review overlay, deliberately NOT of the design.
   Off-brand magenta, hard edges, fixed size: it should read as a
   redline sitting on top of the page. Press L to drop it.
   ============================================================ */
.is-paned { outline: 1px dashed rgba(17,17,17,.3); outline-offset: -1px; }
[data-theme="night"] .is-paned,
[data-theme="black"] .is-paned { outline-color: rgba(240,240,240,.24); }
.pane-tag {
  position: absolute; left: 0; top: 0; z-index: 999;
  pointer-events: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1;
}
.pane-tag b {
  display: block;
  background: #111; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 7px 3px;
  /* the hairline keeps the chip legible where the ground is also dark */
  box-shadow: 0 1px 4px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.22);
}
.pane-tag i { display: none; }
.panes-off .pane-tag { display: none; }
.panes-off .is-paned { outline: 0; }
@media (max-width: 700px) { .pane-tag, .is-paned { display: initial; outline: 0; } .pane-tag { display: none; } }

/* ============================================================
   The wordmark was under-set against the mark on every page.
   ============================================================ */





/* ============================================================
   WORDMARK — the supplied lockup, used as a mask so it inherits
   currentColor and works on paper or on black from one asset.
   ============================================================ */
.wm {
  display: block;
  background-color: currentColor;
  -webkit-mask: url("./assets/wordmark.png") no-repeat center / contain;
          mask: url("./assets/wordmark.png") no-repeat center / contain;
}
.brand .wm { width: clamp(104px, 9.6vw, 138px); aspect-ratio: 876 / 138; }
.brand { display: inline-block; line-height: 0; }
.masthead.serif-mast .brand .wm { width: clamp(112px, 10.4vw, 150px); }
.footer-mark { display: block; }
.footer-mark .wm { width: 100%; aspect-ratio: 876 / 138; }

/* ============================================================
   REBUILD — full-bleed rules, section heads, theme switch
   Rules and dividers run edge to edge; only text is inset.
   ============================================================ */
.sec { padding-block: clamp(44px, 5vw, 84px); border-top: 1px solid var(--line); }
.sec:first-of-type { border-top: 0; }
.sec.tight { padding-block: clamp(30px, 3.4vw, 56px); }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  margin-bottom: clamp(18px, 2.2vw, 30px);
}
.statement { display: grid; gap: 18px; justify-items: start; max-width: 880px; }
.statement p { max-width: 68ch; }

/* lists run the full width of the viewport, inset only their text */
.roles-list, .rail-list, .alumni-list, .steps-list { border-top: 1px solid var(--line); }
.roles-list > li, .steps-list > li { border-bottom: 1px solid var(--line); }
.roles-list a {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gut);
  grid-template-columns: minmax(0,1fr) 130px 220px 34px;
}
.steps-list > li {
  display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 20px;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(20px,2.4vw,32px) var(--gut);
}
.steps-list .cn { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--gold-deep); padding-top: .5em; }
.steps-list h3 { font-size: clamp(18px,1.7vw,24px); font-weight: 500; letter-spacing: -.02em; margin-bottom: 7px; }
@media (max-width: 820px) { .roles-list a { grid-template-columns: 1fr auto; } .steps-list > li { grid-template-columns: 1fr; gap: 8px; } }

.alumni { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(24px,3.4vw,64px); align-items: start; }
.alumni-list li { display: grid; grid-template-columns: 46px 1fr; align-items: baseline; gap: 16px; padding: clamp(12px,1.5vw,19px) 0; border-bottom: 1px solid var(--line); }
.alumni-list b { font-size: clamp(18px,1.9vw,26px); font-weight: 500; letter-spacing: -.02em; }
@media (max-width: 820px) { .alumni { grid-template-columns: 1fr; } }

.careers-top { display: grid; gap: 16px; justify-items: start; max-width: 780px; margin-bottom: clamp(24px,3vw,40px); }
.backing-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* referral box — the one from the live homepage */
.referral-box .rb {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(24px,3vw,40px);
  background: var(--paper-warm);
  border: 1px solid var(--line);
}
.rb-copy { display: grid; gap: 9px; justify-items: start; max-width: 60ch; }
[data-theme="night"] .referral-box .rb, [data-theme="black"] .referral-box .rb { background: rgba(255,255,255,.04); }

.footer-line { font-size: clamp(17px,1.7vw,24px); letter-spacing: -.02em; max-width: 34ch; }
.post-row-wide { grid-template-columns: repeat(3,1fr); }
.post-full .statement { max-width: 720px; }

/* bucketed picker */





/* ============================================================
   VARIATION PICKER — one horizontal bar. Label on the left of
   each group, digits on the right. Never wraps, never hides.
   ============================================================ */
.vticker {
  position: fixed; z-index: 80; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; flex-wrap: nowrap; gap: 0;
  width: 100%;
  padding: 7px clamp(10px, 2vw, 26px);
  background: rgba(18,16,12,.92);
  backdrop-filter: blur(14px) saturate(1.3);
  border-top: 1px solid rgba(240,233,216,.14);
  box-shadow: 0 -10px 34px -18px rgba(0,0,0,.7);
  overflow-x: auto; scrollbar-width: none;
}
.vticker::-webkit-scrollbar { display: none; }
/* the bar is fixed at the bottom — keep it off the footer's last line */
.site-footer .footer-base { padding-bottom: 48px; }
/* centre when it fits, scroll from the left edge when it doesn't */
.vticker > :first-child { margin-left: auto; }
.vticker > :last-child { margin-right: auto; }
.vgroup { display: flex; align-items: center; gap: 2px; flex: none; }
.vlabel {
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(240,233,216,.42);
  padding: 0 9px 0 8px; white-space: nowrap; flex: none;
}
.vsep { width: 1px; height: 15px; background: rgba(240,233,216,.16); margin: 0 6px; flex: none; }
.vticker a {
  position: relative; flex: none;
  display: grid; place-items: center;
  min-width: 30px; height: 26px; padding: 0 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  color: rgba(240,233,216,.62);
  border-radius: 999px;
  transition: color .25s var(--ease);
  white-space: nowrap;
}
.vticker a span { position: relative; z-index: 1; }
.vticker a::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: #d9b463; transform: scale(.65); opacity: 0;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.vticker a:hover { color: #f6efe0; }
.vticker a[aria-current="page"] { color: #16130f; }
.vticker a[aria-current="page"]::before { transform: scale(1); opacity: 1; }
@media (max-width: 760px) { .vlabel { padding: 0 6px; font-size: 8px; } .vticker a { min-width: 26px; padding: 0 5px; } }

/* ============================================================
   03 — framed hero. The split read as two unrelated halves;
   a plate inset from the page edge with the type below reads
   as one composition.
   ============================================================ */
.hero.frame-hero { height: 168svh; }
.frame-hero .hero-sticky { background: var(--paper); display: grid; grid-template-rows: 1fr auto; }
.hero-frame { position: relative; margin: calc(var(--mast-h) + 10px) var(--gut) 0; overflow: hidden; }
.hero-frame .stage { position: absolute; inset: 0; }
.hero-copy.framed {
  position: static; transform: none; opacity: 1;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(20px,2.4vw,32px) var(--gut) clamp(26px,3vw,44px);
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: clamp(20px,4vw,70px);
  color: var(--ink);
}
.framed-aside { display: grid; gap: 16px; justify-items: start; max-width: 400px; }
@media (max-width: 860px) { .hero-copy.framed { grid-template-columns: 1fr; } }

/* ============================================================
   REFERRAL — three forms. One flat box on every page was the
   boring version; each layout now gets a different treatment.
   ============================================================ */
.referral-plate { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(90px,12vw,180px); border-top: 0; }
.referral-plate .bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.08) translate3d(0, calc((var(--sp,.5) - .5) * -6%), 0);
}
.referral-plate::after { content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(100deg, rgba(10,8,4,.88), rgba(10,8,4,.55) 48%, rgba(10,8,4,.2)); }
.rp-inner { display: grid; gap: 18px; justify-items: start; max-width: 660px; color: #fdf8ee; }
.rp-inner p { color: rgba(253,248,238,.9); }
.rp-inner .kicker { color: rgba(253,248,238,.7); }

.referral-seal .rs { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(24px,4vw,72px); align-items: center; }
.rs-device { overflow: hidden; border: 1px solid var(--line); }
.rs-device img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 1.2s var(--ease); }
.referral-seal:hover .rs-device img { transform: scale(1.03); }
.rs-copy { display: grid; gap: 15px; justify-items: start; }
@media (max-width: 820px) { .referral-seal .rs { grid-template-columns: 1fr; } }

.referral-rule .rr { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1fr) auto; gap: clamp(20px,3vw,54px); align-items: center; }
.referral-rule .rr h2 { margin-top: 8px; }
@media (max-width: 900px) { .referral-rule .rr { grid-template-columns: 1fr; gap: 14px; } }

/* capability plate grid (01) */
.plate-grid figcaption .pn { color: var(--gold-deep); }

/* ============================================================
   NEW PAGES — dark veil, reworked N5, roomier referral
   ============================================================ */
/* an even dark veil for plates that need the type to carry */
.veil { z-index: 7; background: rgba(8,7,5,.22); opacity: calc(1 - var(--p) * .55); }

/* N5 — plate is full-bleed, type sits in a lower band with its own sub */
.hero.h-drama .hero-sticky { background: var(--paper-deep); }
.hero-copy.drama {
  position: absolute; left: 50%; bottom: clamp(40px, 6vh, 84px);
  width: 100%; max-width: var(--maxw); padding-inline: var(--gut);
  transform: translate3d(-50%, calc(var(--p) * -40px), 0);
  display: grid; gap: 18px; justify-items: start;
  color: #fdf8ee;
}
.hero-copy.drama .h-mega { text-shadow: 0 2px 46px rgba(8,6,3,.5); }
.drama-sub { max-width: 46ch; color: rgba(253,248,238,.9); text-shadow: 0 1px 18px rgba(8,6,3,.6); }

/* referral gets room to breathe on the new pages */
.referral-plate { padding-block: clamp(110px, 15vw, 220px); }
.referral-plate .rp-inner { max-width: 720px; gap: 22px; }
.referral-seal { padding-block: clamp(70px, 9vw, 130px); }
.referral-box { padding-block: clamp(64px, 8vw, 118px); }
.referral-box .rb { padding: clamp(30px, 4vw, 56px); }

/* hero link-rule sits lighter than a button */
.hero-copy .link-rule { color: #fdf8ee; border-color: rgba(253,248,238,.4); }
.hero-copy .link-rule:hover { border-color: #fdf8ee; }

/* reveal variants — the vertical fade was doing every page */
[data-reveal="slats"] .edge-canvas {
  -webkit-mask-image: repeating-linear-gradient(96deg, #000 0 calc(var(--edge,0)*7.7%), transparent calc(var(--edge,0)*7.7%) 7.7%);
          mask-image: repeating-linear-gradient(96deg, #000 0 calc(var(--edge,0)*7.7%), transparent calc(var(--edge,0)*7.7%) 7.7%);
}
[data-reveal="radial"] .edge-canvas {
  -webkit-mask-image: radial-gradient(circle at 62% 58%, #000 calc(var(--edge,0)*132%), transparent calc(var(--edge,0)*132% + 10%));
          mask-image: radial-gradient(circle at 62% 58%, #000 calc(var(--edge,0)*132%), transparent calc(var(--edge,0)*132% + 10%));
}
[data-reveal="horizontal"] .edge-canvas {
  -webkit-mask-image: linear-gradient(78deg, #000 0, #000 calc(var(--edge,0)*118% - 6%), rgba(0,0,0,.35) calc(var(--edge,0)*118% + 4%), transparent calc(var(--edge,0)*118% + 12%));
          mask-image: linear-gradient(78deg, #000 0, #000 calc(var(--edge,0)*118% - 6%), rgba(0,0,0,.35) calc(var(--edge,0)*118% + 4%), transparent calc(var(--edge,0)*118% + 12%));
}

/* N7 — veil was too heavy, sub too small, block sat too high */
.hero.h-tech .veil { background: rgba(8,7,5,.10); }
.hero-copy.tech { top: auto; bottom: clamp(58px, 9vh, 120px); }
.hero-copy.tech .body { font-size: clamp(16px, 1.32vw, 20px); max-width: 52ch; }

.hero.h-tech .scrim.full { background: linear-gradient(180deg, rgba(6,5,4,.34), rgba(6,5,4,.06) 42%, rgba(6,5,4,.46)); }

/* vector footer lockup — mask-image wordmark was soft at large sizes */
.vmark { display: inline-flex; align-items: center; gap: clamp(10px, 1.2vw, 20px); color: inherit; text-decoration: none; }
.vmark svg { width: clamp(30px, 3.2vw, 54px); height: auto; display: block; }
.vmark b { font-weight: 600; letter-spacing: -.045em; line-height: 1; font-size: clamp(48px, 7.5vw, 130px); font-family: var(--sans); }
.footer-mark { display: flex; justify-content: center; }
.footer-mark .wm { display: none; }
/* load-only rail (body[data-rail="load"]) */
.scroll-rail.is-load i { transition: width .9s cubic-bezier(.2,.7,.2,1); }
.scroll-rail.is-done { opacity: 0; transition: opacity .6s ease; }
