/* Stewardshipped v3. Base: direction A (cinematic). Graphite-blue ground, off-white ink, one cool accent from the brand blue. No warm tones. See DESIGN.md. */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* metric-matched fallback so the font swap does not move the layout */
@font-face { font-family: "Geist Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
:root {
  --ground: #0E1420;
  --ground-2: #131B2A;
  --ground-3: #1A2436;
  --line: #243049;
  --ink: #E8ECF2;
  --ink-2: #BAC3D1;
  --ink-3: #9AA6BA;
  --accent: #6E9EF2;   /* brand blue #3774D7 lifted for the dark ground */
  --brand: #3774D7;
  --ok: #5CC8A8;       /* checked by a person, approved to leave */
  --gap: #EE8AA6;      /* a gap: sent back, a blocker, a question you cannot answer today */
  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: "Geist", "Geist Fallback", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--ground); padding: 8px 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
p { max-width: 38em; margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; line-height: 1.45; }
.num { font-variant-numeric: tabular-nums; }

/* type: one grotesk, big and tight */
.display { font-weight: 500; letter-spacing: -0.045em; line-height: 1.06; margin: 0; font-size: clamp(42px, 6.1vw, 100px); }
.h1 { font-weight: 500; letter-spacing: -0.04em; line-height: 1.06; margin: 0; font-size: clamp(44px, 6.6vw, 104px); max-width: 13em; }
.h2 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.06; margin: 0 0 24px; font-size: clamp(34px, 4.6vw, 68px); max-width: 15em; }
.h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 10px; font-size: clamp(21px, 1.9vw, 27px); }
.lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 34em; margin: 0; }
.statement { font-weight: 500; letter-spacing: -0.03em; line-height: 1.06; font-size: clamp(30px, 3.8vw, 56px); max-width: 18em; margin: 0; }
.c-accent { color: var(--accent); } .c-ok { color: var(--ok); } .c-gap { color: var(--gap); }
.k { font-weight: 500; color: var(--ink); }
.k.c-accent { color: var(--accent); } .k.c-ok { color: var(--ok); } .k.c-gap { color: var(--gap); }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--gut); transition: background .4s var(--ease); }
.nav.solid { background: var(--ground); }
.nav__logo img { height: 22px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: 15px; padding: 10px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 44px; background: var(--ground-2); border: 1px solid var(--line); border-radius: 2px; padding: 12px 20px; display: grid; min-width: 220px; }
.menu-panel a { text-decoration: none; padding: 10px 0; font-size: 17px; }
.menu-panel .btn { padding: 0 18px; margin-top: 8px; }
@media (max-width: 1080px) { .nav__links { display: none; } .menu { display: block; } .nav__logo img { height: 18px; } }

/* buttons: plain verbs, no arrows */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 2px; background: var(--ink); color: var(--ground) !important; text-decoration: none; font: 500 16px/1 var(--font); border: 0; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: #fff; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--ghost { background: var(--brand); color: #fff !important; }
.btn--ghost:hover { background: #2F66C2; }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.link { color: var(--ink); font-weight: 500; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 36px; }

/* sections */
.section { padding: clamp(72px, 8vw, 128px) 0; }
.section.tight { padding-top: 48px; }
.rule { border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.offset > * { margin-left: calc(100% / 12 * 3); max-width: 46em; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .offset > * { margin-left: 0; } }

/* ---------- home hero: pinned, scrubbed by scroll ---------- */
.hero { position: relative; height: 190svh; }
.hero__stage { position: sticky; top: 0; height: 100svh; min-height: 600px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; transform: scale(calc(1 + var(--p, 0) * .12)); transform-origin: 60% 55%; will-change: transform; }
.hero__media img, .hero__media video, .head__media img, .head__media video, .band img, .band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; opacity: calc(.92 + var(--p, 0) * .08);
  background: linear-gradient(90deg, rgba(14,20,32,.95) 0%, rgba(14,20,32,.8) 40%, rgba(14,20,32,.2) 74%), linear-gradient(0deg, var(--ground) 0%, rgba(14,20,32,0) 32%), linear-gradient(180deg, rgba(14,20,32,.55) 0%, rgba(14,20,32,0) 22%); }
.hero__copy { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 112px var(--gut) 72px; max-width: var(--max); margin: 0 auto; }
.hero__head { max-width: 11.5em; transform-origin: 0 0; transform: scale(calc(1 - var(--p, 0) * .22)); will-change: transform; }
.hero__head span { display: block; }
.hero__sub { margin-top: 32px; max-width: 34em; transform: translateY(calc(var(--p, 0) * -1 * var(--lift, 84px))); }
.hero__sub p { font-size: clamp(18px, 1.45vw, 21px); color: var(--ink); margin: 0 0 .6em; }
.hero__sub .keep { color: var(--ink); }
.hero__sub .btn { margin-top: 18px; }
.hero__record { position: absolute; left: var(--gut); right: var(--gut); bottom: 36px; z-index: 1; max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 40px; font-size: 15px; color: var(--ink-2); opacity: clamp(0, calc(var(--p, 0) * 3 - .9), 1); transform: translateY(calc((1 - min(1, var(--p, 0) * 2.5)) * 24px)); }
.hero__record b { color: var(--ink); font-weight: 500; display: block; font-size: 17px; }
.vid-toggle { position: absolute; z-index: 3; right: var(--gut); bottom: 28px; background: rgba(14,20,32,.82); color: var(--ink); border: 1px solid var(--line); font: 500 14px var(--font); padding: 8px 14px; border-radius: 2px; cursor: pointer; min-width: 110px; }
.hero .vid-toggle { top: 84px; bottom: auto; }
@media (max-width: 760px) {
  /* phones: the copy sits in flow, so the stage grows with it and the buttons are never clipped on short screens */
  .hero { height: auto; }
  .hero__stage { height: auto; min-height: 100svh; }
  .hero__shade { background: linear-gradient(180deg, rgba(14,20,32,.9) 0%, rgba(14,20,32,.84) 55%, rgba(14,20,32,.78) 78%, var(--ground) 100%); }
  .hero__copy { position: relative; inset: auto; min-height: 100svh; justify-content: flex-start; padding-top: 96px; }
  .hero__head { font-size: clamp(36px, 10.4vw, 56px); max-width: none; }
  .hero__sub { --lift: 50px; }
  .hero__record { display: none; }
  .hero .vid-toggle { top: auto; bottom: 16px; }
}

/* inner-page head: full-bleed graded film or photograph */
.head { position: relative; min-height: 86svh; display: flex; align-items: flex-end; overflow: hidden; padding: 140px 0 72px; }
.head__media { position: absolute; inset: 0; }
.head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,20,32,.7) 0%, rgba(14,20,32,.35) 30%, rgba(14,20,32,.8) 62%, var(--ground) 100%), linear-gradient(90deg, rgba(14,20,32,.6), rgba(14,20,32,0) 70%); }
.head .wrap { position: relative; z-index: 2; width: 100%; }
.head .lede { margin-top: 28px; color: var(--ink); opacity: .88; }
.head__more { margin-top: 16px; color: var(--ink-2); max-width: 40em; }
.head .vid-toggle { z-index: 3; }
.head--plain { min-height: 0; padding: 168px 0 48px; }
.head--plain::after { display: none; }

/* video band and photo plate */
.band { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,20,32,.5) 0%, rgba(14,20,32,.1) 20%, rgba(14,20,32,.76) 58%, rgba(14,20,32,.96) 100%); }
.band .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 96px; }
.band.plate { min-height: 92svh; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gut); margin-top: 56px; border-top: 1px solid rgba(232,236,242,.25); padding-top: 28px; }
.trio p { color: var(--ink-2); margin: 0; }
@media (max-width: 880px) { .trio { grid-template-columns: 1fr; gap: 28px; } .band .wrap { padding-bottom: 64px; } }

/* ---------- the scroll film (signature scene) ---------- */
.film { position: relative; height: 620vh; }
.film .stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--ground); }
.film canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film .captions { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.film .stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--ground) 0%, var(--ground) 40%, rgba(14,20,32,0) 50%); }
.cap { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: center; opacity: 0; }
.cap .wrap { width: 100%; }
.cap span { display: block; max-width: min(11em, 36vw); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(32px, 4vw, 62px); }
.cap small { display: block; margin-top: 20px; max-width: min(26em, 34vw); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; color: #D3D9E3; }
.tag { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); opacity: 0; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; padding: 6px 12px; background: rgba(14,20,32,.82); border: 1px solid var(--line); border-radius: 2px; z-index: 3; }
.tag.accent { border-color: rgba(110,158,242,.6); }
.tag.ok { border-color: rgba(92,200,168,.6); }
.film .legend { position: absolute; z-index: 3; top: 84px; right: var(--gut); display: flex; gap: 20px; font-size: 14px; color: var(--ink); white-space: nowrap; }
.film .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; vertical-align: 0; }
.film .meter { position: absolute; z-index: 3; left: var(--gut); bottom: 28px; display: flex; gap: 6px; }
.film .meter i { width: 28px; height: 2px; background: var(--line); }
.film .meter i.on { background: var(--accent); }
@media (max-aspect-ratio: 1/1) {
  .film .stage::after { background: linear-gradient(0deg, rgba(14,20,32,.98) 0%, rgba(14,20,32,.9) 32%, rgba(14,20,32,0) 56%); }
  .film:not(.static) .cap { align-items: flex-end; padding-bottom: 64px; }
  .film:not(.static) .cap span { font-size: clamp(28px, 7.6vw, 44px); max-width: 13em; }
  .film:not(.static) .cap small { margin-top: 12px; font-size: 16px; max-width: 30em; }
  .film .legend { left: var(--gut); right: auto; top: 72px; gap: 14px; font-size: 14px; }
}
.film.static { height: auto; }
.film.static .stage { position: static; height: auto; background: none; }
.film.static .stage::after, .film.static canvas, .film.static .legend, .film.static .meter, .film.static .tag { display: none; }
.film.static .captions { position: static; }
.film.static { padding: clamp(56px, 7vw, 104px) 0 0; }
.film.static .cap { position: static; display: block; opacity: 1 !important; transform: none !important; padding: 40px 0; border-top: 1px solid var(--line); }
.film.static .cap .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 14px clamp(32px, 6vw, 96px); align-items: baseline; }
.film.static .cap span { max-width: 12em; font-size: clamp(30px, 3.6vw, 52px); }
.film.static .cap small { margin-top: 0; max-width: 34em; }
@media (max-width: 760px) { .film.static .cap .wrap { grid-template-columns: 1fr; } }

/* doors */
.doors { margin-top: 56px; border-top: 1px solid var(--line); }
.door { display: grid; grid-template-columns: 1.1fr 1fr 11em; gap: 40px; align-items: center; padding: 44px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .4s var(--ease); }
.door:hover { padding-left: 16px; }
.door__q { font-weight: 500; font-size: clamp(28px, 3.2vw, 46px); letter-spacing: -0.035em; line-height: 1.08; }
.door p { margin: 0; color: var(--ink-2); }
.door__go { font-size: 15px; color: var(--accent); white-space: nowrap; justify-self: end; }
@media (max-width: 900px) { .door { grid-template-columns: 1fr; gap: 14px; } .door:hover { padding-left: 0; } .door__go { justify-self: start; } }

/* explainer doors with live miniatures */
.models { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); margin-top: 56px; }
.model { display: flex; flex-direction: column; text-decoration: none; border-top: 1px solid var(--line); padding-top: 28px; }
.model svg { width: 100%; height: auto; margin-bottom: 28px; background: var(--ground-2); }
.model p { color: var(--ink-2); margin: 10px 0 18px; }
.model .go { margin-top: auto; }
.model .go { color: var(--accent); font-size: 15px; }
.model:hover .h3 { text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 880px) { .models { grid-template-columns: 1fr; } }

/* record: the institutional line */
.record { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gut); border-top: 1px solid var(--line); margin-top: 56px; }
.record > div { padding-top: 22px; }
.record b { display: block; font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 8px; }
.record span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 880px) { .record { grid-template-columns: 1fr 1fr; row-gap: 28px; } }

/* rows, steps, q and a */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a, .rows .row { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 48px; padding: 32px 0; text-decoration: none; }
.rows a:hover .row-title { text-decoration: underline; text-underline-offset: .18em; }
.row-title { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.025em; line-height: 1.12; font-weight: 500; }
.row-text { color: var(--ink-2); }
@media (max-width: 760px) { .rows a, .rows .row { grid-template-columns: 1fr; gap: 10px; } }
.steps { margin: 48px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 4em 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 3px; }
.steps strong { font-weight: 500; display: block; font-size: 21px; letter-spacing: -0.01em; margin-bottom: 6px; }
.steps span { color: var(--ink-2); display: block; max-width: 40em; }
.qa { margin: 40px 0 0; border-top: 1px solid var(--line); }
.qa div { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.qa dt { font-size: 21px; letter-spacing: -0.01em; }
.qa dd { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .qa div { grid-template-columns: 1fr; gap: 8px; } }
.note { border-left: 2px solid var(--accent); padding-left: 24px; margin-top: 48px; color: var(--ink-2); max-width: 46em; }
.big-word { font-size: clamp(72px, 14vw, 200px); letter-spacing: -0.055em; line-height: 1; font-weight: 500; margin: 0 0 40px; }

/* people and media slots */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); margin-top: 56px; }
.person .h3 { margin-top: 24px; }
.person p { color: var(--ink-2); }
.person > img { width: 100%; height: auto; max-width: 420px; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; filter: grayscale(1) contrast(1.04); }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }
.slot { position: relative; overflow: hidden; border-radius: 2px; background: var(--ground-2); width: 100%; }
.slot-photo { max-width: 330px; aspect-ratio: 4/5; }
.slot-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-photo .slot-media, .slot-wide .slot-media { filter: grayscale(1); } /* Justin in black and white to match Jeff; originals stay colour */
.slot.has-media .slot-fill { visibility: hidden; }
.slot-photo .slot-fill { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: clamp(20px, 3vw, 32px);
  background: var(--ground-2); }
.slot-photo .slot-fill span { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 500; }
.slot-photo .slot-fill .mono { font-weight: 500; font-size: clamp(64px, 8vw, 112px); line-height: 1; color: var(--ink-3); letter-spacing: -0.05em; }
.slot-photo .slot-fill small { color: var(--ink-2); font-size: 14px; margin-bottom: auto; }
.slot-film { aspect-ratio: 16/9; background: var(--ground-2); border-left: 3px solid var(--accent); }
.slot-quote { position: absolute; inset: 0; margin: 0; padding: clamp(24px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.slot-quote p { font-size: clamp(24px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; max-width: 18em; margin: 0 0 .7em; }
.slot-quote footer { font-size: 16px; color: var(--ink-2); }
.slot-quote a { color: var(--accent); }
.slot-play { position: absolute; left: 20px; bottom: 20px; font: 500 15px/1 var(--font); background: rgba(14,20,32,.7); color: var(--ink); border: 1px solid var(--line); border-radius: 2px; padding: 14px 20px; cursor: pointer; backdrop-filter: blur(8px); }
@media (max-width: 560px) { .slot-film { aspect-ratio: 4/5; } }
.film-row { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
@media (max-width: 900px) { .film-row { grid-template-columns: 1fr; } }

/* forms */
.field { width: 100%; min-height: 52px; padding: 0 18px; border-radius: 2px; border: 1px solid #34425F; background: var(--ground-2); color: var(--ink); font: 400 16px var(--font); }
textarea.field { min-height: 130px; padding: 14px 18px; resize: vertical; }
.field::placeholder { color: var(--ink-3); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field[aria-invalid="true"] { border-color: var(--gap); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; margin-top: 32px; }
.form label { display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.notes-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; max-width: 560px; }
.notes-form .field { flex: 1 1 240px; border-radius: 2px; }
.notes-form .notes-lab { flex: 1 0 100%; font-size: 14px; color: var(--ink-2); margin-bottom: -4px; } /* launch QC: a visible label, not only a placeholder */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.err { color: var(--gap); min-height: 1.4em; margin: 10px 0 0; font-size: 15px; }
.done { font-size: 20px; color: var(--ink); }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 900px) { .notes-grid { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 64px; font-size: 15px; color: var(--ink-3); }
.foot .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: flex-end; align-items: start; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.foot img { height: 20px; width: auto; margin-bottom: 18px; }
.foot p { max-width: 30em; color: var(--ink-2); }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } .foot nav { justify-content: flex-start; } }

/* ---------- sovereign: the pinned SVG scene (from direction A) ---------- */
.scene { position: relative; height: 100svh; min-height: 600px; display: grid; grid-template-columns: 4fr 8fr; align-items: center; gap: clamp(24px, 4vw, 64px); padding: 72px var(--gut) 32px; max-width: 1480px; margin: 0 auto; }
.scene__caps { position: relative; min-height: 340px; }
.scene .cap { position: absolute; inset: 0 0 auto 0; display: block; opacity: 1; }
.scene .cap h2 { font-size: clamp(28px, 3vw, 46px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 20px; }
.scene .cap p { color: #D3D9E3; margin: 0 0 12px; font-size: 17px; }
.scene__svg { width: 100%; height: auto; max-height: 82svh; }
.scene__progress { position: absolute; left: var(--gut); bottom: 28px; display: flex; gap: 8px; }
.scene__progress i { width: 28px; height: 2px; background: var(--line); }
.scene__progress i.on { background: var(--accent); }
@media (max-width: 900px) {
  .scene { grid-template-columns: 1fr; align-content: center; align-items: start; padding-top: 76px; gap: 24px; }
  .scene__svg { order: -1; max-height: 54svh; }
  .scene__caps { min-height: 210px; }
  .scene .cap h2 { font-size: 26px; margin-bottom: 12px; }
  .scene .cap p { font-size: 16px; }
  .scene .cap p + p { display: none; }
  .scene__svg .sv-label, .scene__svg .sv-label--lg { font-size: 34px; }
  .scene__svg .sv-small, .scene__svg .chips, .scene__svg .vault-t:not(.sv-label--lg) { display: none; } /* chip labels cannot fit readable in their boxes at phone scale, so the chips go with them */
  .scene__svg .mods .sv-label { font-size: 28px; }
}
.sv-line { fill: none; stroke: #3A4762; stroke-width: 1.5; }
.sv-strong { fill: none; stroke: var(--ink); stroke-width: 2; }
.sv-accent { fill: none; stroke: var(--accent); stroke-width: 2; }
.sv-label { fill: var(--ink-2); font: 500 18px var(--font); letter-spacing: -0.01em; }
.sv-label--lg { fill: var(--ink); font-size: 23px; }
.vault-inner { fill: rgba(110,158,242,.05); }
.sv-small { fill: var(--ink-3); font: 400 15px var(--font); }
.chip text { fill: var(--ink-2); }
.scene-static { display: none; }
.is-static .scene-static { display: block; }
.is-static .scene { display: none; }
.frame { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.frame .cap { position: static; display: block; opacity: 1; }
.frame .cap h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 16px; }
@media (max-width: 900px) { .frame { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- explainers: the figure is the stage, the text explains what you just did ---------- */
.ex-step { padding: clamp(56px, 7vw, 104px) 0 0; }
.ex-step + .ex-step { border-top: 1px solid var(--line); margin-top: clamp(56px, 7vw, 104px); }
.step-n { display: block; font-size: 15px; color: var(--accent); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.stage-fig { margin: 40px 0 0; padding: clamp(24px, 4vw, 56px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stage-fig svg { width: 100%; height: auto; }
.stage-fig svg text { font-family: var(--font); }
.after { margin-top: 36px; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); }
.after > :first-child { margin: 0; }
@media (max-width: 900px) { .after { grid-template-columns: 1fr; } }
.readout { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; letter-spacing: -0.01em; margin: 24px 0 0; min-height: 2.8em; max-width: 36em; color: var(--ink); }
.readout p { margin: 0 0 10px; }
.fig-cap { font-size: 14px; color: var(--ink-3); margin-top: 16px; max-width: 60em; }
.controls { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 28px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid #34425F; border-radius: 2px; padding: 4px; gap: 2px; background: rgba(14,20,32,.6); }
.seg button { font: 500 15px/1 var(--font); border: 0; background: none; padding: 12px 16px; border-radius: 2px; cursor: pointer; color: var(--ink-2); min-height: 42px; transition: background 150ms ease-out, color 150ms ease-out; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.chip { font: 500 15px/1.25 var(--font); border: 1px solid #34425F; background: rgba(14,20,32,.6); border-radius: 2px; padding: 12px 18px; cursor: pointer; color: var(--ink); text-align: left; min-height: 44px; transition: border-color 150ms, background 150ms; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: rgba(110,158,242,.16); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; background: none; height: 28px; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: #3A4762; }
input[type=range]::-moz-range-track { height: 2px; background: #3A4762; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); margin-top: -10px; border: 3px solid var(--ground); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ground); }
.slider { display: grid; gap: 4px; font-size: 15px; color: var(--ink-2); min-width: 240px; flex: 1; }
.slider output { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 500; }
.pick { display: flex; flex-wrap: wrap; gap: 12px; }
.pick .chip { font-size: clamp(17px, 1.6vw, 22px); padding: 18px 24px; letter-spacing: -0.01em; }
.timeline { list-style: none; padding: 0; margin: 28px 0 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--line); }
.timeline li { padding-top: 14px; font-size: 15px; line-height: 1.45; position: relative; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline .num { display: block; font-size: 22px; margin-bottom: 4px; color: var(--ink); }
@media (max-width: 700px) { .timeline { grid-template-columns: 1fr 1fr; } }
.sort { list-style: none; padding: 0; margin: 0; }
.sort li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sort li:first-child { border-top: 1px solid var(--line); }
.sort li[data-v=off] span { color: var(--accent); }
.sort li[data-v=keep] span { font-weight: 500; }
.sort .seg button[aria-pressed="true"][data-v=off] { background: var(--accent); }
@media (max-width: 560px) { .sort li { flex-direction: column; align-items: flex-start; gap: 8px; } .stage-fig .sort .seg { display: inline-flex; width: auto; } }
.result .quote { font-weight: 500; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -0.025em; margin: 12px 0 16px; max-width: 26em; }
.aside { font-size: 15px; color: var(--ink-2); border-left: 2px solid var(--line); padding-left: 20px; max-width: 44em; }
.yours { color: var(--accent); }
.is-yours .h2 { color: var(--ink); }
.is-yours .step-n { color: var(--ok); }
ul.plain { padding-left: 20px; color: var(--ink-2); }
ul.plain li { margin-bottom: 8px; }

/* questions: the chain */
.chain { list-style: none; padding: 0; margin: 0; }
.chain li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.chain li:not(.on) { display: none; }
.chain-q { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.35; }
.track { position: relative; height: 14px; }
.track .wait { position: absolute; top: 6px; height: 2px; left: calc((var(--x) - var(--w)) * 100%); width: calc(var(--w) * 100%); background: repeating-linear-gradient(90deg, var(--gap) 0 6px, transparent 6px 12px); transition: all 420ms var(--ease); }
.track .dot { position: absolute; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); left: calc(var(--x) * 100%); transition: left 420ms var(--ease); }
.chain li.instant .wait { opacity: 0; }
@media (max-width: 700px) { .chain li { grid-template-columns: 1fr; gap: 8px; } }

/* questions: map and list */
.qwrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); margin-top: 40px; align-items: start; }
.qmap { position: sticky; top: 88px; }
.qmap-in { padding: 8px 0; }
.qmap svg { width: 100%; height: auto; }
.qmap .count { margin: 12px 0 0; font-size: 20px; letter-spacing: -0.01em; }
.qgroup { margin-bottom: 40px; }
.qgroup .h3 { font-size: 15px; color: var(--ink-3); letter-spacing: 0; font-weight: 500; margin-bottom: 12px; }
.qrow { border-top: 1px solid var(--line); padding: 16px 0; }
.qtop { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; }
.qtext { margin: 0; font-size: 18px; line-height: 1.4; }
.qrow .seg { flex: none; }
.qrow .seg button { padding: 10px 14px; font-size: 14px; min-height: 40px; }
.qrow .seg button[aria-pressed="true"][data-v=yes] { background: var(--ok); }
.qrow .seg button[aria-pressed="true"][data-v=not] { background: var(--gap); }
.qnext { display: none; margin: 14px 0 0; padding-left: 18px; border-left: 2px solid var(--gap); list-style: none; font-size: 16px; color: var(--ink-2); }
.qnext li { margin-bottom: 6px; }
.qrow[data-v=not] .qnext { display: block; }
.qrow[data-v=yes] .qtext { color: var(--ink-3); }
.qres { padding-left: 22px; }
.qres > li { margin-bottom: 18px; }
.qres ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.qres-g { display: block; color: var(--ink-3); }
@media (max-width: 900px) {
  .qwrap { grid-template-columns: 1fr; }
  .qmap { top: 56px; z-index: 3; background: rgba(14,20,32,.94); backdrop-filter: blur(10px); margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); border-bottom: 1px solid var(--line); }
  .qmap-in { display: flex; align-items: center; gap: 16px; }
  .qmap svg { width: 92px; flex: none; }
  .qmap .count { margin: 0; font-size: 16px; }
  .qtop { flex-direction: column; gap: 10px; }
}
@media print { .nav, .foot, .qwrap, .ex-step[data-step="1"], .head, #notes { display: none; } body { background: #fff; color: #000; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
  .hero { height: auto; }
  .hero__stage { position: relative; }
  .hero__media, .hero__head, .hero__sub, .hero__record { transform: none !important; }
  .hero__record { opacity: 1 !important; }
}

/* phones: a band's film or photograph sits above its words, so text never runs over busy footage */
@media (max-width: 880px) {
  .band, .band.plate { display: block; min-height: 0; }
  .band > picture { display: block; position: relative; height: 62svh; }
  .band > img { position: relative; height: 62svh; }
  .band > video { height: 62svh; bottom: auto; }
  .band::after { bottom: auto; height: 62svh; background: linear-gradient(180deg, var(--ground) 0%, rgba(14,20,32,0) 22%, rgba(14,20,32,0) 70%, var(--ground) 100%); }
  .band .wrap { margin-top: -56px; padding-bottom: 72px; }
  .band .vid-toggle { top: 76px; bottom: auto; }
}
@media (max-width: 560px) { .seg { border-radius: 2px; } }
.head--short { min-height: 64svh; padding-bottom: 40px; }
.head .actions { margin-top: 28px; }


/* fix round 2: one off-white editorial section per page (cool paper, dark ink, brand blue; never cream) */
.paper { --ground: #EEF0F3; --ground-2: #E3E7ED; --ground-3: #D7DCE4; --line: #C6CDD8; --ink: #0E1420; --ink-2: #364152; --ink-3: #4B5668; --accent: #2A5DB0; --ok: #1D7558; --gap: #A82E57; background: var(--ground); color: var(--ink); }
.paper .field { border-color: #9AA6BA; }
.paper .chip { background: transparent; border-color: #9AA6BA; color: var(--ink); }
.paper .note, .paper .aside { border-color: var(--accent); }
.section.paper + .section, .paper + .section { border-top: 0; }
/* the record as a typographic timeline */
.record-big { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1px solid var(--line); }
.record-big li { display: grid; grid-template-columns: 6fr 6fr; gap: 24px 48px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.record-big b { font-weight: 500; font-size: clamp(30px, 4vw, 58px); letter-spacing: -0.035em; line-height: 1.02; }
.record-big span { color: var(--ink-2); font-size: 17px; }
@media (max-width: 760px) { .record-big li { grid-template-columns: 1fr; gap: 6px; } }
/* the monogram card stands in for Justin's portrait until it lands */
.slot-photo .slot-fill { background: var(--ink); color: var(--ground); justify-content: space-between; }
.slot-photo .slot-fill .mono { color: var(--ground); font-size: clamp(96px, 12vw, 150px); }
.slot-photo .slot-fill .who { font-size: 15px; line-height: 1.4; color: #364152; }
.slot-photo .slot-fill .who b { display: block; font-weight: 500; color: var(--ground); font-size: 17px; }
.roles-band { padding: 72px 0 96px; background: var(--ground-2); }
.roles-band .trio { margin-top: 0; border-top: 0; padding-top: 0; }
.cap span, .scene .cap h2 { color: var(--ink); }
@media (max-width: 760px) {
  .head, .head--short { min-height: 100svh; }
  .steps li { grid-template-columns: 2em 1fr; gap: 10px; }
  .fig-cap, .small, .tag, .scene__progress { font-size: 14px; }
}
.ex-step.paper { padding-bottom: clamp(56px, 7vw, 104px); border-top: 0; }

/* fix round 3: the film fills the frame; on wide screens each caption is a card beside the part of the scene it describes */
.film { height: 520vh; }
.film .meter i { height: 3px; }
.film .legend { font-size: 15px; }
@media (min-aspect-ratio: 1/1) {
  .film .stage::after { background: linear-gradient(180deg, rgba(14,20,32,.5) 0%, rgba(14,20,32,0) 18%); }
  /* fix r2 (B1, L5): live film only; the static fallback and the sovereign captions keep their own layout */
  .film:not(.static) .cap { right: auto; bottom: auto; display: block; width: min(400px, 34vw); padding: 26px 28px 28px; background: rgba(14,20,32,.94); border-left: 3px solid var(--accent); }
  .film:not(.static) .cap .wrap { padding: 0; }
  .film:not(.static) .cap span { font-size: clamp(28px, 2.6vw, 40px); max-width: none; }
  .film:not(.static) .cap small { font-size: 18px; color: #DCE1EA; max-width: none; margin-top: 14px; }
}
.film:not(.live) .legend { opacity: 0; }
.film .legend { transition: opacity .3s; }

/* fix round 3: layouts with a move of their own */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: 56px; }
.cols3 > div { border-top: 3px solid var(--accent); padding-top: 24px; }
.cols3 p { color: var(--ink-2); }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.grid4 > div { padding: 40px 40px 40px 0; border-bottom: 1px solid var(--line); }
.grid4 > div:nth-child(odd) { border-right: 1px solid var(--line); }
.grid4 > div:nth-child(even) { padding-left: 40px; }
.grid4 h3 { font-weight: 500; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; }
.grid4 p { color: var(--ink-2); margin: 0; }
.centre { text-align: left; }
.centre > div { max-width: 46em; margin: 0 auto; }
.centre .h2 { max-width: none; }
@media (max-width: 880px) { .cols3, .grid4 { grid-template-columns: 1fr; } .grid4 > div, .grid4 > div:nth-child(even) { padding: 28px 0; border-right: 0 !important; } }
/* notes: editorial index */
.index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 1fr 12em; grid-template-areas: "title kind" "text ."; gap: 10px 40px; padding: 36px 0; text-decoration: none; }
.ix-title { grid-area: title; font-weight: 500; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.06; letter-spacing: -0.035em; }
.ix-kind { grid-area: kind; font-size: 15px; color: var(--accent); padding-top: 10px; text-align: right; }
.ix-text { grid-area: text; color: var(--ink-2); max-width: 40em; }
.index a:hover .ix-title { text-decoration: underline; text-underline-offset: .14em; text-decoration-thickness: 1px; }
@media (max-width: 760px) { .index a { grid-template-columns: 1fr; grid-template-areas: "title" "text" "kind"; gap: 8px; } .ix-kind { text-align: left; padding-top: 0; } }
/* briefing: a short head, so the form is the page */
.head--brief { min-height: 46svh; padding-bottom: 48px; }
.brief-sec { padding-bottom: 96px; }
@media (max-width: 760px) { .head--brief { min-height: 52svh; } .hero .vid-toggle { top: 72px; bottom: auto; } .hero__copy { padding-top: 124px; } .qmap { position: static; margin: 0 0 24px; border-bottom: 0; padding: 0; background: none; } }
.scene__svg .chip text { font-size: 19px; fill: var(--ink); }
.scene__svg .chip rect { stroke: #6F7B90; }

.film .legend { background: rgba(14,20,32,.88); padding: 6px 10px; margin: -6px -10px; }
@media (max-width: 760px) { .head.head--plain { min-height: 0; padding-top: 120px; } }
.head--short { padding-bottom: 72px; }
#scene { margin-top: 24px; }

/* launch fix r1: visual breaks so no run of prose goes past about 70 words */
.pull { font-weight: 500; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.28; letter-spacing: -0.03em; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 24px; margin: 32px 0; max-width: 22em; }
.lines { list-style: none; margin: 24px 0; padding: 0; border-top: 1px solid var(--line); max-width: 40em; }
.lines li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.lines li b { color: var(--ink); font-weight: 500; }
details.sources { margin-top: 20px; font-size: 15px; color: var(--ink-2); max-width: 44em; border-top: 1px solid var(--line); padding-top: 12px; }
details.sources summary { cursor: pointer; color: var(--ink); font-weight: 500; min-height: 32px; }
details.sources p { margin: 10px 0 0; }
/* problem, then the answer: one row per problem */
.pairs { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.pairs li { display: grid; grid-template-columns: 1fr 1fr; gap: 16px clamp(24px, 5vw, 80px); padding: 28px 0; border-bottom: 1px solid var(--line); }
.pairs .was { color: var(--ink-2); border-left: 3px solid var(--gap); padding-left: 18px; }
.pairs .now { border-left: 3px solid var(--ok); padding-left: 18px; }
.pairs b { display: block; color: var(--ink); font-weight: 500; font-size: clamp(20px, 1.8vw, 25px); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 6px; }
.pairs .now p, .pairs .was p { margin: 0; color: var(--ink-2); }
.pairs-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); margin-top: 40px; font-size: 15px; color: var(--ink-3); }
@media (max-width: 760px) { .pairs li { grid-template-columns: 1fr; } .pairs-head { display: none; } .pairs .now::before { content: "With your own area"; display: block; font-size: 14px; color: var(--ink-3); margin-bottom: 4px; } .pairs .was::before { content: "Today"; display: block; font-size: 14px; color: var(--ink-3); margin-bottom: 4px; } }
/* the wide photograph of the person leading the work (no parallax, cover crop, face kept in frame) */
.slot-wide { aspect-ratio: 3/2; }
.slot-wide .slot-media { object-position: 38% 22%; }
.slot-wide .slot-fill { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: clamp(20px, 3vw, 32px); background: var(--ground-2); border-left: 3px solid var(--accent); }
.slot-wide .slot-fill b { font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.025em; }
.slot-wide .slot-fill span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 560px) { .slot-wide { aspect-ratio: 4/5; } }
.lead-row { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: 48px; }
@media (max-width: 900px) { .lead-row { grid-template-columns: 1fr; } }
/* an analogy figure: two panels side by side */
.analogy { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.analogy > div { padding: 28px 32px 28px 0; }
.analogy > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.analogy h3 { font-weight: 500; font-size: clamp(20px, 1.8vw, 25px); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 10px; }
.analogy p { color: var(--ink-2); margin: 0 0 10px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.chips-row li { border: 1px solid var(--accent); border-radius: 2px; padding: 6px 12px; font-size: 15px; color: var(--ink); }
@media (max-width: 760px) { .analogy { grid-template-columns: 1fr; } .analogy > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
/* the method in five steps, one row (home) */
.method { list-style: none; counter-reset: m; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.method li { counter-increment: m; padding: 16px 16px 0 0; font-weight: 500; font-size: 17px; line-height: 1.45; }
.method li::before { content: counter(m); display: block; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
@media (max-width: 760px) { .method { grid-template-columns: 1fr; } .method li { display: grid; grid-template-columns: 2em 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); } .method li::before { margin: 0; } }

/* ---------- fix r2 (2026-10-26): QC fix list + lead browser FAILs ---------- */
/* L5: two left edges site-wide: the page edge (this) and the offset column */
:root { --edge: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); }
.nav { padding-left: var(--edge); padding-right: var(--edge); }
.film .meter { left: var(--edge); }
.film .legend { right: var(--edge); }
@media (max-aspect-ratio: 1/1) { .film .legend { left: var(--edge); } }
.scene { max-width: var(--max); }
/* M1, P1: a soft scrim keeps the transparent nav readable; the nav turns solid as soon as the page title reaches it (site.js) */
.nav::before { content: ""; position: absolute; inset: 0 0 -48px 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(14,20,32,.88) 0%, rgba(14,20,32,.62) 55%, rgba(14,20,32,0) 100%); transition: opacity .4s var(--ease); }
.nav.solid::before { opacity: 0; }
.nav__cta { display: none; margin-left: auto; }
@media (min-width: 600px) and (max-width: 1080px) { .nav__cta { display: inline-flex; } } /* P5 */
/* L2: one primary (.btn, adapts to dark and paper grounds) and one secondary (.btn--ghost, outline) */
.btn--ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn--ghost:hover { background: rgba(232,236,242,.08); }
.paper .btn--ghost:hover { background: rgba(14,20,32,.06); }
/* P4: tap targets at least 44px */
.nav__logo { display: inline-flex; align-items: center; min-height: 44px; }
.menu summary { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 4px; }
.foot nav { gap: 0 24px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
.vid-toggle { min-height: 44px; }
.link { display: inline-flex; align-items: center; min-height: 44px; }
input[type=range] { height: 44px; }
.chip, .seg button, .qrow .seg button { min-height: 44px; }
details.sources summary { min-height: 44px; display: flex; align-items: center; }
/* L8: the hero credential row is a compact strip; the full block stays lower on the page */
.hero__record { gap: 6px 32px; font-size: 14px; }
.hero__record b { display: inline; font-size: 15px; margin-right: 8px; }
/* lead a: at 375x667 both hero buttons sit on the first screen; the pause control moves under the buttons */
@media (max-width: 760px) {
  .hero__copy { padding-top: 92px; }
  .hero__sub { margin-top: 24px; }
  .hero .actions { gap: 10px; }
  .hero__sub .btn { margin-top: 0; padding: 0 14px; font-size: 15px; }
  .hero .vid-toggle { top: auto; bottom: 16px; }
}
/* lead c: film tags fade as a whole, never sit half-visible */
.tag { transition: opacity .25s ease-out; }
/* L3, P1: the sovereign head fills the first screen and is darker behind the headline column */
.head--short { min-height: 100svh; }
.head--short::after { background: linear-gradient(180deg, rgba(14,20,32,.72) 0%, rgba(14,20,32,.42) 30%, rgba(14,20,32,.84) 60%, var(--ground) 100%), linear-gradient(90deg, rgba(14,20,32,.8), rgba(14,20,32,0) 72%); }
/* L4: portraits sized as a pair, same treatment */
.people { grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: start; column-gap: clamp(32px, 8vw, 140px); }
.slot-photo { max-width: 400px; }
.person > img { max-width: 400px; }
.slot-photo .slot-media, .person > img { filter: grayscale(1) contrast(1.04); }
@media (max-width: 760px) { .people { grid-template-columns: minmax(0, 400px); } }
/* L1: "In Justin's words" is a full-width pull quote until the film is shot */
.quote-row { margin: 72px 0 0; padding: clamp(32px, 5vw, 64px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 8fr 4fr; gap: 24px clamp(32px, 5vw, 80px); align-items: end; }
.quote-row blockquote { margin: 0; border-left: 3px solid var(--accent); padding-left: clamp(20px, 3vw, 36px); }
.quote-row blockquote p { font-weight: 500; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; max-width: 18em; margin: 0 0 .6em; }
.quote-row blockquote footer { font-size: 16px; color: var(--ink-2); }
.quote-row blockquote a { color: var(--accent); }
.quote-row figcaption p { margin-bottom: 8px; }
@media (max-width: 900px) { .quote-row { grid-template-columns: 1fr; } }
/* L6: notes signup lives in a rail above the footer; paper panels sit inside the gutters on wide screens */
.notes-rail { border-top: 1px solid var(--line); padding: 56px 0; }
.notes-rail .h2 { font-size: clamp(28px, 3vw, 44px); margin-bottom: 14px; }
@media (min-width: 1100px) { .section.paper, .ex-step.paper { margin-inline: var(--gut); border-radius: 2px; } }
/* L7: phone toggles inside a figure stack full width */
@media (max-width: 560px) { .stage-fig .seg { display: grid; width: 100%; } .stage-fig .seg button { text-align: left; } }
/* M4: rules draw in as their rows enter (lines only; text never starts hidden; not added under reduced motion) */
.js .draw { border-bottom-color: transparent !important; background: linear-gradient(var(--line), var(--line)) no-repeat 0 100% / 0% 1px; transition: background-size 1.1s var(--ease); }
.js .draw.in { background-size: 100% 1px; }
.par { will-change: transform; }
/* lead e: phone bands: words sit below the footage on a solid ground, no stray edge line; tighter gaps */
@media (max-width: 880px) {
  .band::after { height: calc(62svh + 2px); background: linear-gradient(180deg, var(--ground) 0%, rgba(14,20,32,0) 22%, rgba(14,20,32,0) 60%, var(--ground) 92%); }
  .band .wrap { margin-top: -28px; padding-bottom: 40px; }
  .roles-band { padding: 48px 0 64px; }
}
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .head { padding-bottom: 48px; }
  .record-big { margin-top: 28px; }
  .record-big li { padding: 18px 0; }
  .brief-sec { padding-top: 36px; }
  .head--brief { min-height: 44svh; padding-bottom: 32px; }
}
/* lead d: reduced motion on phones: the stacked sovereign frames are compact, so the answer is on the third screen */
@media (max-width: 900px) {
  .frame { padding: 28px 0; gap: 12px; }
  .frame .scene__svg { max-height: 38svh; }
  .frame .cap h2 { font-size: 24px; margin-bottom: 8px; }
  .frame .cap p { font-size: 16px; margin-bottom: 12px; }
}
/* B3: legal pages in the v3 shell */
.legal-hero { padding-bottom: 32px; }
.legal-meta { font-size: 15px; color: var(--ink-3); margin-bottom: 16px; }
.legal-title { font-weight: 500; letter-spacing: -0.04em; line-height: 1.06; margin: 0; font-size: clamp(40px, 5.6vw, 80px); }
.legal-subtitle { color: var(--ink-2); font-size: clamp(19px, 1.6vw, 23px); margin: 20px 0 0; max-width: 34em; }
.legal-banner { padding-bottom: 8px; }
.privacy-banner { border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 24px 28px; }
.privacy-banner-icon { display: none; }
.privacy-banner-title { font-weight: 500; font-size: 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.gpc-indicator { font-size: 14px; font-weight: 400; color: var(--ok); border: 1px solid currentColor; padding: 2px 8px; border-radius: 2px; }
.gpc-indicator-inactive { color: var(--ink-3); }
.privacy-banner-text { color: var(--ink-2); margin: 10px 0 16px; }
.privacy-banner-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.privacy-banner-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 2px; text-decoration: none; font-weight: 500; font-size: 15px; }
.privacy-banner-btn-primary { background: var(--ink); color: var(--ground); }
.privacy-banner-btn-secondary { box-shadow: inset 0 0 0 1px var(--ink-3); }
.legal-content-wrapper { display: grid; grid-template-columns: 15em minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.legal-toc { position: sticky; top: 96px; font-size: 15px; }
.legal-toc-title { font-weight: 500; margin-bottom: 10px; }
.legal-toc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.legal-toc-list li { border-bottom: 1px solid var(--line); }
.legal-toc-link { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink-2); }
.legal-toc-link:hover { color: var(--ink); }
.legal-main-content { max-width: 46em; min-width: 0; }
.legal-section { padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.legal-section-title { font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 16px; }
.legal-subsection-title { font-weight: 500; font-size: 20px; letter-spacing: -0.01em; margin: 24px 0 8px; }
.legal-text, .legal-list { color: var(--ink-2); }
.legal-list { padding-left: 20px; }
.legal-list li { margin-bottom: 6px; }
.legal-highlight, .legal-contact-box { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 20px 0; }
.legal-highlight p, .legal-contact-box p { margin: 0 0 6px; }
.legal-table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; color: var(--ink-2); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); }
.legal-table th { color: var(--ink); font-weight: 500; }
/* phones: each cookie row stacks as a labelled block, so no column is cut off (all legal tables share these four columns) */
@media (max-width: 600px) {
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .legal-table td { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 3px 0; border: 0; }
  .legal-table td::before { color: var(--ink); font-weight: 500; }
  .legal-table td:nth-child(1)::before { content: "Cookie name"; } .legal-table td:nth-child(2)::before { content: "Provider"; }
  .legal-table td:nth-child(3)::before { content: "Purpose"; } .legal-table td:nth-child(4)::before { content: "Duration"; }
}
.legal-main-content a, .legal-banner a:not(.privacy-banner-btn) { color: var(--accent); }
@media (max-width: 900px) { .legal-content-wrapper { grid-template-columns: 1fr; } .legal-toc { position: static; } }
/* before film.js runs, the first caption is already on screen */
.film:not(.static):not(.ready) .cap:first-of-type { opacity: 1; }
@media (min-aspect-ratio: 1/1) { .film:not(.static):not(.ready) .cap:first-of-type { transform: translate(var(--edge), 30svh); } }
.section.legal { padding-top: 48px; }
.film-poster { display: none; }
.film.static .film-poster { display: block; }
.film.static .film-poster img { display: block; width: 100%; height: auto; max-height: 72svh; object-fit: cover; } /* no-WebGL: a still of the scene above the captions */
/* P4: every remaining tap target reaches 44px (padding only, no size change to type) */
.nav__links a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
.quote-row footer a { display: inline-flex; align-items: center; min-height: 44px; }
.skip:focus { min-height: 44px; display: inline-flex; align-items: center; }
/* L4: on wide screens each person is a card (portrait beside name and bio), so the pair fills the row with no dead strip */
@media (min-width: 1100px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(40px, 5vw, 80px); justify-content: stretch; }
  .person { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); column-gap: 32px; align-content: start; }
  .person > img, .person > .slot-photo { grid-row: 1 / span 3; max-width: none; width: 100%; }
  .person .h3 { margin-top: 0; }
  /* the two follow-on lines run the full card width under photo and bio, so both cards end level */
  .person > .lines { grid-column: 1 / -1; margin-top: 24px; }
}
/* L5: two left edges only, the page gutter and the .split second column (5fr | 7fr). The home method block sits on the gutter;
   the quote runs full width and its caption starts on the second column. */
.offset > * { margin-left: 0; }
@media (min-width: 901px) {
  .quote-row { grid-template-columns: 5fr 7fr; gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
  .quote-row blockquote { grid-column: 1 / -1; }
  .quote-row blockquote p { max-width: 22em; }
  .quote-row figcaption { grid-column: 2; }
}
/* M4 (notes): article step rules, figure rules and pull-quote bars draw in, like the ruled rows */
.js .draw-t { border-top-color: transparent !important; background: linear-gradient(var(--line), var(--line)) no-repeat 0 0 / 0% 1px; transition: background-size 1.1s var(--ease); }
.js .draw-t.in { background-size: 100% 1px; }
.js .draw-tb { border-color: transparent !important; background: linear-gradient(var(--line), var(--line)) no-repeat 0 0 / 0% 1px, linear-gradient(var(--line), var(--line)) no-repeat 100% 100% / 0% 1px; transition: background-size 1.1s var(--ease); }
.js .draw-tb.in { background-size: 100% 1px, 100% 1px; }
.js .draw-l { border-left-color: transparent !important; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 3px 0%; transition: background-size .9s var(--ease); }
.js .draw-l.in { background-size: 3px 100%; }

/* adv-hub:start */
.screen-loop { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--ground); }
.screen-loop img, .screen-loop video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adv-screen { position: relative; }
.adv-screen[hidden] { display: none; }
.adv-screen .vid-toggle { right: 12px; bottom: 12px; color: #EEF0F3; border-color: rgba(238,240,243,.35); } /* stays light on the dark screen, also inside .paper */
.adv-head { align-items: center; }
.adv-lab { margin: 20px 0 0; }
.adv-q { font-size: clamp(19px, 1.9vw, 25px); line-height: 1.35; letter-spacing: -0.015em; margin: 12px 0 0; max-width: 30em; }
.adv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); margin-top: 48px; }
.adv-cols .lines { margin: 8px 0 0; }
.adv-eg { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.adv-eg .bills { margin-top: 20px; }
.adv-eg .invoice { margin-top: 20px; }
.adv-eg .steps { margin-top: 16px; }
.adv-eg .small { max-width: 40em; margin: 8px 0 0; }
.adv-ill { display: inline-block; font: 500 13px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--ink-3); border-radius: 2px; padding: 6px 10px; }
.adv-go { margin: 40px 0 0; }
.adv-topic .qa { margin-top: 32px; }
@media (max-width: 760px) {
  .adv-cols { grid-template-columns: 1fr; margin-top: 32px; }
  .adv-eg .invoice { font-size: 14px; }
  .adv-eg .invoice th, .adv-eg .invoice td { padding: 10px 8px 10px 0; }
  .adv-eg .invoice tbody th { white-space: normal; }
  .adv-eg .invoice .num { font-size: 15px; white-space: normal; }
  .adv-head { gap: 24px; }
}
.adv-head .h2 { font-size: clamp(32px, 3.6vw, 52px); }
.adv-eg .bills + .small, .adv-eg .bill-key + .small, .adv-eg .invoice + .small, .adv-eg .lines + .small { margin-top: 24px; }
@media (max-width: 760px) {
  .invoice.adv-t thead { display: table-header-group; }
  .invoice.adv-t tr { display: table-row; padding: 0; border-bottom: 0; }
  .invoice.adv-t th, .invoice.adv-t td { display: table-cell; border-bottom: 1px solid var(--line); padding: 10px 6px 10px 0; text-align: left; font-size: 14px; }
  .invoice.adv-t td.num, .invoice.adv-t th.num { text-align: right; font-size: 14px; white-space: normal; grid-row: auto; grid-column: auto; }
  .invoice.adv-t thead th { font-size: 12px; }
}
/* adv-hub:end */
/* pricing: the hourly bill against the three-line bill. Widths are % of the bill before AI (100) */
.bills { display: grid; gap: 28px; }
.bill { display: grid; grid-template-columns: 9.5em 1fr minmax(3.5em, auto); gap: 16px; align-items: center; }
.bill-l { font-size: 15px; color: var(--ink-2); }
.bill-bar { display: flex; height: 44px; outline: 1px dashed var(--ink-3); outline-offset: -1px; }
.bill-bar i { display: block; height: 100%; width: 0; transition: width 520ms var(--ease); }
.bill-n { font-size: clamp(20px, 2vw, 28px); font-weight: 500; text-align: right; }
.b-h { background: var(--ink-2); } .b-c { background: var(--accent); } .b-t { background: var(--ok); }
.b-lost { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(238,138,166,.35) 6px 8px); box-shadow: inset 0 0 0 1px var(--gap); }
.bill-key { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--ink-2); }
.bill-key .base { outline: 1px dashed var(--ink-3); outline-offset: -1px; }
.bill-key i, .invoice th i { display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; }
.invoice { width: 100%; border-collapse: collapse; font-size: 17px; }
.invoice th, .invoice td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.invoice thead th { font-size: 14px; font-weight: 400; color: var(--ink-3); }
.invoice tbody th, .invoice tfoot th { font-weight: 500; white-space: nowrap; }
.invoice td { color: var(--ink-2); }
.invoice .num { text-align: right; padding-right: 0; font-size: 22px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.invoice tfoot th, .invoice tfoot td { border-bottom: 0; }
.invoice thead th.num { font-size: 14px; font-weight: 400; color: var(--ink-3); }
@media (max-width: 700px) {
  .bill { grid-template-columns: 1fr minmax(3em, auto); gap: 8px 12px; }
  .bill-l { grid-column: 1 / -1; }
    .invoice thead { display: none; }
  .invoice tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .invoice th, .invoice td { border: 0; padding: 0; }
  .invoice td:not(.num) { grid-column: 1 / -1; grid-row: 2; font-size: 15px; margin-top: 6px; }
  .invoice td.num { grid-row: 1; grid-column: 2; font-size: 19px; }
  .invoice tbody th { white-space: normal; }
}

/* profitability: the margin walk (bars float from the running total) and the margins beside their before figures */
.walk { list-style: none; margin: 0; padding: 0; }
.walk li { display: grid; grid-template-columns: minmax(12em, 4fr) 7fr 3em; gap: 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.walk li:last-child { border-bottom: 0; }
.w-l b { display: block; font-weight: 500; }
.w-l small { display: block; font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.w-track { position: relative; height: 28px; }
.w-track i { position: absolute; top: 0; bottom: 0; background: var(--ink-2); transition: opacity 400ms, transform 600ms var(--ease); transform-origin: left; }
.w-leak i { background: var(--gap); }
.w-promised i { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(238,138,166,.35) 6px 8px); box-shadow: inset 0 0 0 1px var(--gap); }
.w-total:last-child i { background: var(--ok); }
.w-n { text-align: right; font-size: 20px; font-weight: 500; }
.walk.real .w-promised { opacity: .35; }
.walk.real .w-total:first-child i { opacity: .35; }
.walk li { transition: opacity 400ms; }
.walk.wait i { transform: scaleX(0); }
.walk.go i { transition-delay: var(--d); }
.margins { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 56px); }
.margins > div { border-top: 3px solid var(--accent); padding-top: 20px; transition: opacity 600ms, transform 600ms var(--ease); }
.margins > div:nth-child(2) { transition-delay: 200ms; } .margins > div:nth-child(3) { transition-delay: 400ms; }
.margins.wait > div { opacity: 0; transform: translateY(16px); }
.m-l { display: block; font-size: 15px; color: var(--ink-2); }
.m-n { display: block; font-size: clamp(44px, 5vw, 72px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: 8px 0; }
.m-s { display: block; font-size: 15px; color: var(--ink-3); }
@media (max-width: 700px) {
  .walk li { grid-template-columns: 1fr 3em; gap: 8px 12px; }
  .w-l { grid-column: 1 / -1; }
  .margins { grid-template-columns: 1fr; }
}

/* partner credit: the three tests, passing or failing live */
.tests { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; font-size: 17px; }
.tests li { padding-left: 32px; position: relative; color: var(--ink-2); transition: color 200ms; }
.tests li::before { position: absolute; left: 0; top: 0; width: 22px; text-align: center; font-weight: 500; }
.tests li.pass { color: var(--ink); } .tests li.pass::before { content: "\2713"; color: var(--ok); }
.tests li.fail { color: var(--ink-3); } .tests li.fail::before { content: "\2013"; color: var(--ink-3); }
.bill-key b { font-weight: 500; color: var(--ink); margin-left: 6px; }

/* skills: the skill card builds part by part, then reruns on a new quarter */
.k-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: clamp(19px, 1.7vw, 24px); }
.k-head b { font-weight: 500; }
.k-period { color: var(--accent); font-weight: 500; }
.k-skill { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 3vw, 40px); }
.k-part { padding: 20px 0; border-top: 3px solid var(--line); margin-top: -1px; opacity: .28; transition: opacity 500ms var(--ease), border-color 500ms; }
.k-part.on { opacity: 1; border-top-color: var(--accent); }
.k-part[data-part="checks"].on { border-top-color: var(--ok); }
.k-n { display: block; font-size: 14px; color: var(--ink-3); margin-bottom: 10px; }
.k-body { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
p.k-body { padding-left: 0; color: var(--ink); }
.k-body li { margin-bottom: 8px; }
.k-part:not(.on) .k-body { filter: blur(3px); }
.k-skill.rerun [data-part="output"] .k-body { animation: k-flash 900ms var(--ease); }
@keyframes k-flash { from { color: var(--accent); } to { color: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .k-part, .k-skill.rerun [data-part="output"] .k-body { transition: none; animation: none; } }
@media (max-width: 900px) { .k-skill { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .k-skill { grid-template-columns: 1fr; } }
.controls [hidden] { display: none !important; }

/* governance: staged gates and the council's record */
.gates { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(12px, 2.4vw, 32px); }
.gates li { padding: 20px 0; border-top: 3px solid var(--line); display: grid; gap: 6px; align-content: start; transition: border-color 500ms var(--ease), opacity 500ms; }
.gates b { font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.2; }
.gt-m { font-size: 15px; color: var(--ink-3); }
.gates li.shut { border-top-style: dashed; }
.gates li.shut b, .gates li.shut .gt-m, .gates li.shut .k-n { color: var(--ink-3); }
.gates li.open { border-top-color: var(--accent); }
.gates li.done { border-top-color: var(--ok); }
.gates li.done .gt-m { color: var(--ink-2); }
.gates li.stopped { border-top-color: var(--gap); }
.gt-record { margin-top: 28px; padding: 20px 24px; background: var(--ground-2); border-left: 2px solid var(--line); }
.gt-log { margin: 0; padding-left: 20px; font-size: 15px; color: var(--ink-2); display: grid; gap: 6px; }
.gt-log li:last-child { color: var(--ink); }
.seg button:disabled { opacity: .4; cursor: default; }
@media (max-width: 900px) { .gates { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gates { grid-template-columns: 1fr; } }

/* how we work: the engagement shapes, diagnostic first */
.shapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.shapes button { width: 100%; height: 100%; text-align: left; display: grid; gap: 8px; align-content: start; padding: 20px; font: inherit; color: var(--ink); background: var(--ground-2); border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: 2px; cursor: pointer; min-height: 44px; transition: border-color 300ms, background 300ms; }
.shapes button b { font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.02em; }
.shapes button span { font-size: 15px; color: var(--ink-2); }
.shapes button[aria-pressed="true"] { border-top-color: var(--accent); background: var(--ground-3); }
.shapes button.req { border-top-color: var(--ok); }
@media (max-width: 900px) { .shapes { grid-template-columns: 1fr 1fr; } }
/* phones: one card per row, so the descriptions do not wrap a word to a line */
@media (max-width: 560px) { .shapes { grid-template-columns: 1fr; } }

/* home: two doors, each listing its own service lines */
.doors2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: 40px; }
.door2 { border-top: 3px solid var(--accent); padding-top: 24px; }
.door-line { color: var(--ink); font-weight: 500; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.35; letter-spacing: -0.01em; margin: 0 0 .6em; }
.door2 h3 a { color: var(--ink); text-decoration: none; }
.door2 h3 a::after { content: " \2192"; color: var(--accent); }
.door-list { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.door-list a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); text-decoration: none; transition: color 150ms; }
.door-list a::after { content: "\2192"; color: var(--ink-3); }
.door-list a:hover { color: var(--ink); }
@media (max-width: 760px) { .doors2 { grid-template-columns: 1fr; } }
.door-list.hub { margin-top: 0; }
.door-list.hub b { display: block; font-weight: 500; color: var(--ink); font-size: clamp(18px, 1.6vw, 22px); }
.door-list.hub small { display: block; font-size: 15px; color: var(--ink-3); margin-top: 2px; }
.door-list.hub a { padding: 16px 0; gap: 16px; }

/* general counsel: invoice layers, benchmark percentile, board paper */
.iv { border-top: 1px solid var(--line); }
.iv-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); transition: opacity 400ms var(--ease), max-height 500ms var(--ease), padding 500ms var(--ease); overflow: hidden; max-height: 120px; }
.iv-l b { display: block; font-weight: 500; } .iv-l small { display: block; font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.iv-h { font-size: 22px; font-weight: 500; }
.iv-story { padding-left: 24px; border-left: 3px solid var(--accent); }
.iv[data-layer="code"] .iv-story { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; border-bottom-width: 0; }
.iv[data-layer="story"] .iv-code { opacity: .55; }
.bm { display: grid; grid-template-columns: minmax(12em, 4fr) 8fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.bm-score .m-s { max-width: 14em; }
.bm-track { position: relative; height: 2px; background: #3A4762; margin: 18px 0 28px; }
.bm-track i { position: absolute; top: -9px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--accent); transition: left 520ms var(--ease); }
.bm.chosen .bm-track i { background: var(--ok); }
.bm-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0; }
.bm-dl dt { font-size: 14px; color: var(--ink-3); } .bm-dl dd { margin: 2px 0 0; color: var(--ink); }
.bp { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); }
.bp-text { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.5; margin: 0; letter-spacing: -0.01em; }
.bp mark { background: none; color: inherit; transition: background 300ms, color 300ms; border-radius: 2px; }
.bp[data-view="director"] mark { background: rgba(238,138,166,.18); box-shadow: inset 0 -2px 0 var(--gap); }
.bp[data-view="director"] mark.fixed { background: rgba(92,200,168,.14); box-shadow: inset 0 -2px 0 var(--ok); }
.bp-notes { margin: 0; padding-left: 20px; display: grid; gap: 14px; align-content: start; color: var(--ink-2); }
.bp-notes li { display: grid; gap: 8px; justify-items: start; }
.bp[data-view="author"] .bp-notes { visibility: hidden; }
.bp-notes li.fixed span { text-decoration: line-through; color: var(--ink-3); }
.bp-notes li.fixed .chip { display: none; }
@media (max-width: 760px) { .bm, .bp { grid-template-columns: 1fr; } .bp[data-view="author"] .bp-notes { display: none; } }

/* notes: essay prose */
.note-body { padding-top: clamp(40px, 5vw, 72px); }
.prose { max-width: 40em; }
.prose p { color: var(--ink-2); font-size: clamp(18px, 1.4vw, 20px); line-height: 1.65; margin: 0 0 24px; }
.prose p.pull { color: var(--ink); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.28; margin: 40px 0; } /* .prose p would otherwise shrink the pull line to body size */
.prose h2 { font-weight: 500; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -0.03em; line-height: 1.1; margin: 64px 0 24px; max-width: 18em; }
.timeline.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .timeline.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .timeline.six { grid-template-columns: 1fr 1fr; } }

/* writing: topics in two doors, set as a quiet typographic index */
.topics2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); }
.topics2 .k-n { margin: 0 0 16px; font-weight: 400; }
.topic-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.topic-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -0.03em; line-height: 1.1; transition: color 150ms, padding 300ms var(--ease); }
.topic-list a:hover { color: var(--accent); padding-left: 8px; }
.topic-list .tc { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); white-space: nowrap; }
.topic-svc { margin-top: 32px; }
@media (max-width: 760px) { .topics2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .topic-list a, .topic-list a:hover { transition: none; padding-left: 0; } }
/* phones: display type and captions wrap to three or more lines, so they get more lead than the desktop setting; last in the file so it wins over each component's own rule */
@media (max-width: 760px) { .display { line-height: 1.08; } .h1 { line-height: 1.08; } .h2, .cap span, .record-big b { line-height: 1.1; } .statement { line-height: 1.12; } .quote-row blockquote p { line-height: 1.16; } .h3, .pairs b, .record b { line-height: 1.24; } .head .vid-toggle { top: 76px; bottom: auto; } }

/* inner pages only (build.py marks every main but home): big headings break evenly, so no one-word last line */
.inner :is(.h1, .h2, .statement) { text-wrap: balance; }

/* LANE-A: Advisory menu. Desktop: opens on hover or when any of its links has keyboard focus. Phone: indented list under Advisory. */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.nav-dd__panel { position: absolute; left: -20px; top: 100%; min-width: 300px; display: grid; padding: 10px 20px; background: var(--ground-2); border: 1px solid var(--line); border-radius: 2px; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .18s var(--ease), transform .18s var(--ease); }
.nav-dd:hover .nav-dd__panel, .nav-dd:focus-within .nav-dd__panel { opacity: 1; transform: none; pointer-events: auto; }
.nav__links .nav-dd__panel a { min-height: 40px; font-size: 15px; white-space: nowrap; }
.menu-panel { max-height: calc(100svh - 80px); overflow-y: auto; }
.menu-sub { display: grid; padding: 0 0 6px 14px; border-left: 1px solid var(--line); }
.menu-sub a { font-size: 15px; padding: 8px 0; color: var(--ink-2); min-height: 44px; display: flex; align-items: center; box-sizing: border-box; } /* launch QC: 44px taps for one-line items */
@media (prefers-reduced-motion: reduce) { .nav-dd__panel { transition: none; } }
/* lane-b:start  assessment teaching steps (native details/summary: keyboard and screen-reader accessible) */
details.step summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
details.step summary::-webkit-details-marker { display: none; }
details.step summary::after { content: "+"; font-family: "Geist Mono", ui-monospace, monospace; color: var(--accent); font-size: 20px; flex: none; }
details.step[open] summary::after { content: "\2212"; }
details.step summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
details.step[open] > summary { margin-bottom: 12px; }
details.step-top { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 12px; max-width: 40em; }
/* lane-b:end */
/* inner-page scrims (2026-10-28, lane D): the picture reads in daylight. Dark sits only behind the text block (an ellipse over the lower left, a floor under it) and under the nav; the top and right of the picture stay clear. */
.head::after, .head--short::after { background:
  linear-gradient(180deg, rgba(14,20,32,.74) 0, rgba(14,20,32,.4) 84px, rgba(14,20,32,0) 190px),
  linear-gradient(0deg, var(--ground) 0%, rgba(14,20,32,.78) 20%, rgba(14,20,32,0) 50%),
  radial-gradient(ellipse 74% 78% at 26% 72%, rgba(14,20,32,.86) 0%, rgba(14,20,32,.8) 50%, rgba(14,20,32,.4) 80%, rgba(14,20,32,0) 100%); }
.band::after { background:
  linear-gradient(0deg, rgba(14,20,32,.94) 0%, rgba(14,20,32,.62) 30%, rgba(14,20,32,0) 62%),
  radial-gradient(ellipse 66% 74% at 22% 84%, rgba(14,20,32,.8) 0%, rgba(14,20,32,.66) 55%, rgba(14,20,32,0) 100%),
  linear-gradient(180deg, rgba(14,20,32,.5) 0, rgba(14,20,32,0) 140px); }
/* phones: the picture fills the top of the head and fades to the page ground under the words, so faces and words never share pixels */
@media (max-width: 760px) {
  .head:not(.head--plain):not(.head--brief) .head__media { top: 60px; bottom: auto; height: 75vw; } /* a 4:3 box: the whole crop shows, so the face sits high and the words start below it */
  .head:not(.head--plain):not(.head--brief)::after { background:
    linear-gradient(180deg, var(--ground) 0, var(--ground) 60px, rgba(14,20,32,0) 100px),
    linear-gradient(180deg, rgba(14,20,32,0) calc(60px + 30vw), rgba(14,20,32,.9) calc(60px + 46vw), var(--ground) calc(60px + 66vw)); }
  .head:has(#st-h)::after { background:
    linear-gradient(180deg, var(--ground) 0, var(--ground) 60px, rgba(14,20,32,0) 100px),
    linear-gradient(180deg, rgba(14,20,32,0) calc(60px + 12vw), rgba(14,20,32,.94) calc(60px + 28vw), var(--ground) calc(60px + 58vw)); } /* the breadcrumb sits under the chin on this page */
  .head--brief::after { background:
    linear-gradient(180deg, rgba(14,20,32,.62) 0, rgba(14,20,32,0) 110px),
    linear-gradient(0deg, var(--ground) 0%, rgba(14,20,32,.84) 45%, rgba(14,20,32,.2) 100%); }
  .head__media img, .head__media video { object-position: 50% 12%; }
  .band > picture img { object-position: 50% 0%; }
}
@media (max-width: 880px) {
  .band::after { background: linear-gradient(180deg, var(--ground) 0%, rgba(14,20,32,0) 22%, rgba(14,20,32,0) 60%, var(--ground) 92%); }
}
/* Briefing head is a thin band: keep the face in the slice */
.head--brief .head__media img { object-position: 50% 20%; }

/* qcfix: the stewardship breadcrumb sits on the hero photo; a ground-colour scrim (no layout shift) lifts it past AA */
.head:has(#st-h) .wrap > p.small { width: fit-content; background: rgba(14,20,32,.78); box-shadow: 0 0 0 6px rgba(14,20,32,.78); border-radius: 2px; }

/* final-bc:start */
/* dropdown: Esc closes it while focus or the pointer is still inside */
.nav-dd.shut .nav-dd__panel { opacity: 0; transform: translateY(-4px); pointer-events: none; }
/* phone header: solid once the page scrolls (the .solid class is set by site.js when the title reaches it) */
@media (max-width: 760px) { .nav.solid { background: #0E1420; } }
/* about: the lower rows of the two cards share rows, so Jeff's lines sit level with Justin's */
@media (min-width: 1100px) {
  .about-light .people { grid-template-rows: auto auto auto auto auto; row-gap: 0; }
  .about-light .person { grid-row: span 5; grid-template-rows: subgrid; }
}
/* about hero portrait: the face drops below the nav and the top gradient lets it through */
@media (min-width: 761px) {
  .about-hero .head__media img { top: 72px; height: calc(100% - 72px); object-position: 50% 0; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 110px); mask-image: linear-gradient(180deg, transparent 0, #000 110px); }
}
/* about: the section heading stays in view beside the long steps column (same pattern as .legal-toc) */
@media (min-width: 761px) { .about-light .split > .h2 { position: sticky; top: 104px; } }
/* final-bc:end */
