/* Cognema landing — static, no build step. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations"), url("../fonts/newsreader-latin-opsz-normal.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;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2-variations"), url("../fonts/newsreader-latin-wght-italic.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;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/instrument-sans-latin-wght-normal.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;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.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 fallbacks to limit layout shift while web fonts load. */
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"), local("Times New Roman"), local("DejaVu Serif"); size-adjust: 96%; ascent-override: 92%; descent-override: 25%; }
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 97%; ascent-override: 96%; descent-override: 25%; }

:root {
  --paper: #F3EFE6;
  --paper-2: #EBE5D8;
  --ink: #16181D;
  --ink-2: #3E3D3A;
  --muted: #6B665C;
  --rule: #D6CEBE;
  --accent: #B24E26;      /* the only accent: dusk ember */
  --accent-dark: #E79466; /* same accent, lifted for the dark section */
  --night: #0E1420;
  --night-2: #1A2232;
  --night-text: #E9E4D9;
  --night-muted: #9AA0AB;
  --sand: #E9CFAE;
  --sea: #2C4A6E;

  --serif: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --sans: "Instrument Sans", "Instrument Sans Fallback", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1440px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 0; }
.dark :focus-visible { outline-color: var(--accent-dark); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; font-size: 14px; }
.skip:focus { top: 12px; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

/* Buttons: sharp, restrained */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid var(--ink); border-radius: 1px;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.btn span { display: inline-block; transition: transform .35s var(--ease-out); }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn:hover span { transform: translateX(4px); }
.btn-small { padding: 9px 14px; font-size: 14px; }
.btn-light { background: var(--night-text); color: var(--night); border-color: var(--night-text); }
.btn-light:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--night); }

.link-quiet {
  font-size: 15px; text-decoration: none; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .35s var(--ease-out);
}
.link-quiet:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 420; letter-spacing: -0.01em; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav-short { display: none; }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Display type */
.display {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(54px, 8.6vw, 138px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 72;
}
.display em { font-weight: 330; letter-spacing: -0.03em; }
.display .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.display .line > span { display: inline-block; }
.line-offset { padding-left: 1.45em; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  /* the photo sits in flow under the text; its horizon is at 43% of its height */
  --photo-h: calc(100vw * 1429 / 2560);
  --horizon-gap: clamp(110px, 15vh, 170px);
}
.hero-photo {
  position: relative; z-index: 0;
  margin-top: calc(var(--horizon-gap) - var(--photo-h) * 0.43);
  overflow: hidden;
  /* blend into the paper at both ends: the sky is already paper-toned */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 74%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 74%, transparent 100%);
}
.hero-photo img { width: 100%; height: auto; aspect-ratio: 2560 / 1429; transform-origin: 50% 43%; }
.hero-inner {
  position: relative; z-index: 1;
  padding-top: clamp(130px, 19vh, 200px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.hero .eyebrow { grid-column: 1 / -1; margin-bottom: 28px; }
.hero h1 { grid-column: 1 / 9; grid-row: 2; }
.hero-aside { grid-column: 9 / 13; grid-row: 2; align-self: end; padding-bottom: 0.6vw; }
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 28px; }
.status { margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.status a { text-decoration: none; }
.status a:hover { text-decoration: underline; text-underline-offset: 3px; }
.status-dot { width: 7px; height: 7px; background: var(--accent); display: inline-block; }

/* Statement */
.statement { padding: clamp(110px, 16vw, 220px) 0 clamp(90px, 12vw, 170px); }
.statement-text {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-weight: 380;
  font-variation-settings: "opsz" 48;
  max-width: 22em;
}
.statement-text .muted { color: #8E887C; }

/* Stages — default (no JS / reduced motion): a plain stacked sequence */
.stages { border-top: 1px solid var(--rule); }
.stages-pin { padding: 72px 0 96px; }
.stages-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
}
.stages-head { grid-column: 1 / 7; }
.stages-title {
  font-family: var(--serif); font-weight: 380; letter-spacing: -0.015em;
  font-size: clamp(24px, 2.2vw, 34px); line-height: 1.15; margin-top: 14px; max-width: 14em;
  font-variation-settings: "opsz" 36;
}
.stages-figure { display: none; }
.stage-list { grid-column: 1 / -1; display: grid; gap: 56px; }
/* static layout: each stage = text left, its still right */
.stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto auto auto 1fr; column-gap: 24px; }
.stage > .stage-num, .stage > .stage-word, .stage > .stage-desc { grid-column: 1 / 6; }
.stage > .stage-num { grid-row: 2; } .stage > .stage-word { grid-row: 3; } .stage > .stage-desc { grid-row: 4; }
.stage > .stage-media { grid-column: 7 / 13; grid-row: 1 / -1; }
.stage-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.stage-word {
  font-family: var(--serif); font-weight: 360; letter-spacing: -0.025em; line-height: 1;
  font-size: clamp(40px, 4.4vw, 64px); margin: 8px 0 12px;
  font-variation-settings: "opsz" 72;
  overflow: hidden; padding-bottom: 0.1em;
}
.stage-word-in { display: inline-block; }
.stage-desc { color: var(--ink-2); max-width: 30em; }
.stages-progress { display: none; }

/* Stage media (round 5): one sheet of paper telling one story, K0 -> K4. Toned to the page paper and given
   soft edges (14 % left, 2 % right, 3 % top, 2 % bottom, plus two radial fades for the darker lower-left band under the text): the dialogue starts at ~15.5 % and the K4 card spans
   73-97 % of the width, so neither is faded. Tone is baked into the assets (tools/video-stage.sh), no CSS filter. */
.stage-media, .stage-frame {
  position: relative; margin: 0; aspect-ratio: 1242 / 702;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 98%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 3%, #000 98%, transparent 100%), radial-gradient(22% 30% at 0% 100%, transparent 0%, #000 100%), radial-gradient(34% 36% at 8% 118%, transparent 0%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 98%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 3%, #000 98%, transparent 100%), radial-gradient(22% 30% at 0% 100%, transparent 0%, #000 100%), radial-gradient(34% 36% at 8% 118%, transparent 0%, #000 100%);
  mask-composite: intersect;
}
.stage-media picture, .stage-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* pinned: the five stills (K0 + one per stage) and the four transition clips are stacked layers in one frame */
.stage-frame .stage-media, .chain-clip {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: none; mask-image: none; opacity: 0; transition: opacity 0.6s var(--ease-out);
}
.stage-frame .is-active { opacity: 1; }
.stage-frame .stage-media.is-deferred, .js .stage > .stage-media { display: none; } /* pinned mode: stills load only when needed */

/* Stages — pinned mode (JS, motion allowed). Set by main.js as .is-pinned. */
.stages.is-pinned .stages-pin {
  height: 100vh; height: 100svh;
  padding: 0;
  display: flex; align-items: stretch;
}
.stages.is-pinned .stages-grid {
  grid-template-rows: auto 1fr auto;
  padding-top: clamp(84px, 12vh, 120px);
  padding-bottom: 36px;
  height: 100%;
  row-gap: 0;
}
.stages.is-pinned .stages-head { grid-row: 1; }
.stages.is-pinned .stages-figure {
  display: block; grid-column: 7 / 13;
  grid-row: 1 / 3; align-self: center; justify-self: end;
  width: min(calc(100% + var(--gutter)), calc((100svh - 230px) * 1.786)); margin-right: calc(var(--gutter) * -1);
}
.stages.is-pinned .stage-list { grid-column: 1 / 7; }
.stages.is-pinned .stage { display: block; }
.stages.is-pinned .stage-list { grid-row: 2; position: relative; align-self: stretch; display: block; }
.stages.is-pinned .stage {
  position: absolute; left: 0; right: 0; bottom: 36px;
}
.stages.is-pinned .stage-word { font-size: clamp(52px, 5.5vw, 80px); margin: 14px 0 22px; white-space: nowrap; }
.stages.is-pinned .stage-desc { font-size: 18px; max-width: 26em; }
.stages.is-pinned .stages-progress { display: block; grid-column: 1 / -1; grid-row: 3; padding-top: 24px; }
.progress-track { height: 1px; background: var(--rule); position: relative; }
.progress-fill { position: absolute; inset: -1px 0 -1px 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.progress-labels { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.progress-labels li { transition: color .3s; }
.progress-labels li.is-active { color: var(--ink); }
.progress-labels li:nth-child(2) { text-align: left; }
.progress-labels li:last-child { text-align: right; }

/* Result number */
.result { padding: clamp(110px, 14vw, 200px) 0 clamp(80px, 10vw, 150px); border-top: 1px solid var(--rule); }
.result-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.result .eyebrow { grid-column: 1 / -1; margin-bottom: clamp(28px, 3vw, 48px); }
.figure {
  grid-column: 1 / 9;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(120px, 21vw, 330px);
  line-height: 0.86;
  letter-spacing: -0.055em;
  font-variation-settings: "opsz" 72;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.figure-unit { font-size: 0.42em; letter-spacing: 0; vertical-align: 0.92em; margin-left: 0.06em; color: var(--accent); font-weight: 340; }
.result-side { grid-column: 9 / 13; padding-bottom: 2.2vw; }
.result-line { font-family: var(--serif); font-size: clamp(21px, 1.7vw, 26px); line-height: 1.3; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }
.result-line strong { font-weight: 520; }
.caption { margin-top: 24px; font-family: var(--mono); font-size: 11px; line-height: 1.7; letter-spacing: 0.02em; color: var(--muted); }

/* Principles */
.principles { padding: 40px 0 clamp(120px, 14vw, 200px); }
.rows { margin-top: 28px; border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  padding: 30px 0 34px; border-bottom: 1px solid var(--rule);
  position: relative;
}
.row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease-out); }
.row:hover::after { transform: scaleX(1); }
.row-num { grid-column: 1 / 2; font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 12px; }
.row-title { grid-column: 2 / 8; font-family: var(--serif); font-size: clamp(28px, 3vw, 44px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 380; font-variation-settings: "opsz" 48; }
.row-text { grid-column: 9 / 13; color: var(--ink-2); padding-top: 8px; }

/* Dark section */
.dark { background: var(--night); color: var(--night-text); position: relative; overflow: hidden; }
.dark::before {
  /* a thin dusk horizon where the page turns to night */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(231,148,102,0), rgba(231,148,102,.9) 70%, rgba(231,148,102,0));
}
.cta { padding-top: clamp(120px, 15vw, 210px); padding-bottom: clamp(100px, 12vw, 170px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.cta h2 { grid-column: 1 / 10; font-size: clamp(48px, 7vw, 112px); }
.cta-side { grid-column: 10 / 13; display: grid; gap: 22px; justify-items: start; padding-bottom: 12px; }
.status-dark { color: var(--night-muted); margin-top: 0; }
.status-dark .status-dot { background: var(--accent-dark); }

.site-footer { border-top: 1px solid rgba(233, 228, 217, .14); }
.footer-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding-top: 26px; padding-bottom: 26px; font-size: 14px; color: var(--night-muted); }
.footer-row a { color: var(--night-text); text-decoration: none; }
.footer-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-row p:last-child { text-align: right; }
.wordmark-wrap { overflow: hidden; height: calc(min(23.5vw, 340px) * 1.02); position: relative; }
.wordmark {
  font-family: var(--serif);
  font-weight: 340;
  font-size: min(23.5vw, 340px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 72;
  text-align: center;
  white-space: nowrap;
  color: #2C4A6E;
  background: linear-gradient(180deg, #E9CFAE 0%, #D9A27C 34%, #3F5F86 70%, #1A2D49 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  padding-top: 0.14em;
}

/* Shared section head (new sections) */
.section-head { max-width: 46em; }
.section-title {
  font-family: var(--serif); font-weight: 380; letter-spacing: -0.02em;
  font-size: clamp(34px, 3.6vw, 56px); line-height: 1.08; margin-top: 18px;
  font-variation-settings: "opsz" 48;
  text-wrap: balance;
}

/* Inside — a tinted band: head + the paper-network loop, then the six behaviours */
.inside { background: var(--paper-2); padding: clamp(100px, 11vw, 160px) 0 clamp(100px, 12vw, 170px); }
.inside-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.inside-text { grid-column: 1 / 7; }
.inside-title {
  margin-top: 18px;
  font-family: var(--serif); font-weight: 360; letter-spacing: -0.025em; line-height: 1.02;
  font-size: clamp(40px, 4.6vw, 72px); font-variation-settings: "opsz" 72; text-wrap: balance;
}
.inside-intro { margin-top: 26px; color: var(--ink-2); max-width: 30em; }
.inside-visual {
  grid-column: 7 / 13; position: relative; aspect-ratio: 16 / 9; margin-right: calc(var(--gutter) * -1);
  /* the loop is drawn on cream paper: lift it to white and multiply, so only the ink and the pulses land on the band */
  mix-blend-mode: multiply; filter: brightness(1.2) contrast(1.06) saturate(0.9);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
}
.inside-visual picture, .inside-visual img, .loop { display: block; width: 100%; height: 100%; object-fit: cover; }
.inside-visual .loop, .index-bg .loop, .hero-photo .loop, .dark-photo .loop { position: absolute; inset: 0; }
.loop { opacity: 0; transition: opacity 1.4s var(--ease-out); }
.loop.is-on { opacity: 1; }
.behaviours { list-style: none; margin: clamp(48px, 5vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 44px; }
.behaviour { border-top: 1px solid var(--rule); padding-top: 18px; padding-right: clamp(0px, 2vw, 32px); }
.behaviour-title { font-family: var(--serif); font-style: italic; font-weight: 380; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 10px; }
.behaviour-text { color: var(--ink-2); font-size: 16px; max-width: 26em; }

/* Module index — the one dark band in the middle of the page, over the dark-network loop */
.index-band { position: relative; overflow: hidden; background: #0A1119; color: var(--night-text); padding: clamp(150px, 17vw, 260px) 0 clamp(100px, 11vw, 160px); }
.index-bg {
  position: absolute; left: 0; right: 0; top: 0; height: min(100%, 64vw); z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0,0,0,.28) 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0,0,0,.28) 70%, transparent 100%);
}
.index-bg picture, .index-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.index-bg img, .index-bg .loop.is-on { opacity: 0.8; }
.index-bg::after { /* a scrim under the title and the list */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,17,25,.25) 0%, rgba(10,17,25,.45) 30%, rgba(10,17,25,.82) 55%, #0A1119 92%);
}
.index-band > .wrap { position: relative; z-index: 1; }
.index-title {
  font-family: var(--serif); font-weight: 360; letter-spacing: -0.02em; line-height: 1.06;
  font-size: clamp(34px, 3.8vw, 58px); font-variation-settings: "opsz" 48; max-width: 15em; text-wrap: balance; margin: 0;
}
.index-grid { margin-top: clamp(56px, 6vw, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); row-gap: clamp(44px, 4.5vw, 64px); }
.group-head { margin: 0 0 4px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(233, 228, 217, .55); font-weight: 400; }
.group-name { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.8vw, 27px); letter-spacing: -0.01em; line-height: 1.1; font-variation-settings: "opsz" 24; color: var(--night-text); }
.group-cap { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-dark); text-align: right; }
.module-list { margin: 0; }
.module { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); column-gap: 16px; padding: 10px 0 11px; border-bottom: 1px solid rgba(233, 228, 217, .14); }
.module dt { font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--night-text); padding-top: 1px; }
.module dd { margin: 0; font-size: 15px; line-height: 1.45; color: #B3B7BF; }
.index-band :focus-visible { outline-color: var(--accent-dark); }

/* Time-of-day dividers: midday mid-page, dusk before the night section */
.tod-band { position: relative; height: clamp(190px, 24vw, 360px); overflow: hidden; }
.tod-inner { position: absolute; left: 0; right: 0; top: -10%; bottom: -10%; }
.tod-inner picture, .tod-inner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tod-day .tod-inner img { object-position: 50% 74%; }
.tod-band + .result { border-top: 0; padding-top: clamp(80px, 9vw, 140px); }
.tod-day { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%); }
.tod-dusk { height: clamp(220px, 28vw, 420px); }
.tod-dusk .tod-inner img { object-position: 50% 60%; }
.tod-dusk::before, .tod-dusk::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.tod-dusk::before { top: 0; height: 34%; background: linear-gradient(180deg, var(--paper), rgba(243, 239, 230, 0)); }
.tod-dusk::after { bottom: 0; height: 46%; background: linear-gradient(180deg, rgba(14, 20, 32, 0), var(--night)); }

/* Hero video layer */
.hero-photo .media { position: relative; }
.hero-photo .loop { object-position: 50% 50%; }

/* The answer — head left, the brief as a folded sheet on the right */
.answer { padding: clamp(90px, 10vw, 150px) 0 clamp(80px, 9vw, 130px); border-top: 1px solid var(--rule); }
.answer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.answer-head { grid-column: 1 / 6; padding-top: 28px; }
.answer-intro { margin-top: 20px; color: var(--ink-2); max-width: 24em; }
.brief {
  grid-column: 7 / 13; position: relative;
  background: #F8F5EE; border: 1px solid var(--rule);
  padding: clamp(26px, 3vw, 44px) clamp(24px, 3vw, 48px) clamp(28px, 3vw, 40px);
}
.brief::before { /* folded corner */
  content: ""; position: absolute; top: -1px; right: -1px; width: 28px; height: 28px;
  background: linear-gradient(225deg, var(--paper) 50%, var(--rule) 50%, #E4DDCE 100%);
}
.brief-list { list-style: none; margin: 0; padding: 0; }
.brief-list li { display: grid; grid-template-columns: 2.6em 1fr; align-items: baseline; padding: 12px 0 13px; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: clamp(19px, 1.5vw, 23px); line-height: 1.3; letter-spacing: -0.005em; font-variation-settings: "opsz" 24; }
.brief-list li:first-child { padding-top: 0; }
.brief-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--accent); }
.brief-close { margin-top: 24px; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.35; color: var(--accent); font-variation-settings: "opsz" 24; }

/* Who it's for */
.audience { padding: clamp(110px, 13vw, 190px) 0 clamp(100px, 12vw, 170px); border-top: 1px solid var(--rule); }
.cards { margin-top: clamp(48px, 5vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.card { border-top: 1px solid var(--ink); padding-top: 22px; padding-right: clamp(0px, 2vw, 32px); }
.card .row-num { display: block; padding-top: 0; }
.card-title {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em;
  font-size: clamp(24px, 2.1vw, 32px); line-height: 1.12; margin: 26px 0 14px;
  font-variation-settings: "opsz" 36;
}
.card-text { color: var(--ink-2); max-width: 24em; }

/* Result caption link */
.caption-link { color: var(--muted); text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; }
.caption-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* How we measure */
.measure { padding: clamp(40px, 5vw, 70px) 0 clamp(110px, 13vw, 190px); }
.measure-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; border-top: 1px solid var(--ink); padding-top: clamp(40px, 4vw, 64px); }
.measure-head { grid-column: 1 / 5; align-self: start; position: sticky; top: 40px; }
.measure-intro { margin-top: 20px; color: var(--ink-2); max-width: 22em; }
.spec { grid-column: 6 / 13; margin: 0; }
.spec-row { display: grid; grid-template-columns: minmax(130px, 2fr) 5fr; column-gap: 24px; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.spec-row:first-child { padding-top: 4px; }
.spec dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.spec dd { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.spec dd strong { font-weight: 600; color: var(--ink); }
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; }
.cats li { display: grid; gap: 6px; }
.cat-num { font-family: var(--serif); font-size: clamp(30px, 2.6vw, 40px); line-height: 1; letter-spacing: -0.02em; font-weight: 360; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; font-variation-settings: "opsz" 48; }
.cat-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Privacy block */
.privacy { padding: clamp(100px, 12vw, 170px) 0 clamp(80px, 9vw, 130px); border-top: 1px solid var(--rule); }
.privacy-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.privacy-head { grid-column: 1 / 7; }
.privacy-head .section-title { max-width: 13em; }
.privacy-body { grid-column: 8 / 13; padding-top: 34px; }
.plain-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.plain-list li { padding: 16px 0 17px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.privacy-link { margin-top: 26px; }

/* Founder */
.founder { padding: 0 0 clamp(90px, 10vw, 150px); }
.founder-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: baseline; }
.founder-row .eyebrow { grid-column: 1 / 3; }
.founder-line { grid-column: 3 / 10; font-family: var(--serif); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.3; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }

/* Dark section photograph */
.dark-photo {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  /* pushed down so the ember horizon falls between the call to action and the footer */
  top: clamp(100px, 12vw, 220px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
}
.dark-photo picture, .dark-photo img { display: block; width: 100%; height: 100%; }
.dark-photo img, .dark-photo .loop { object-fit: cover; object-position: 50% 38%; }
.dark-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,20,32,.15) 0%, rgba(14,20,32,0) 30%, rgba(14,20,32,.35) 62%, rgba(14,20,32,.85) 86%, #0E1420 100%);
}
.dark > .wrap, .dark > .site-footer { position: relative; z-index: 1; }

/* privacy.html */
.legal { padding: clamp(150px, 20vh, 210px) 0 clamp(100px, 12vw, 170px); }
.legal-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.legal-head { grid-column: 1 / 5; }
.back-link { text-decoration: none; color: var(--muted); }
.back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-title {
  font-family: var(--serif); font-weight: 360; letter-spacing: -0.025em; line-height: 1;
  font-size: clamp(48px, 5.4vw, 84px); margin-top: 22px; font-variation-settings: "opsz" 72;
}
.legal-body { grid-column: 6 / 12; border-top: 1px solid var(--ink); }
.legal-body section { padding: 26px 0 30px; border-bottom: 1px solid var(--rule); }
.legal-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.8vw, 27px); line-height: 1.2; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; margin-bottom: 10px; }
.legal-body p { color: var(--ink-2); max-width: 36em; }
.legal-body a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 900px) {
  .legal { padding-top: 120px; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-head, .legal-body { grid-column: 1 / -1; }
  .legal-body { margin-top: 40px; }
}

/* Reveal states — only when JS is running (html.js); content is fully visible otherwise. */
.js .reveal-up, .js .reveal-fade { opacity: 0; }
.js .reveal-up { transform: translateY(32px); }
.js .display .line > span { transform: translateY(105%); }
.js .wordmark { transform: translateY(40%); }

/* Mobile */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .header-row { height: 68px; }
  .logo { font-size: 23px; }
  .hero-inner { padding-top: 112px; display: block; }
  .hero h1, .hero-aside { grid-column: auto; grid-row: auto; }
  .hero .eyebrow { margin-bottom: 18px; font-size: 11px; }
  .display { font-size: clamp(46px, 13.4vw, 72px); }
  .line-offset { padding-left: 0.9em; }
  .hero-aside { margin-top: 22px; }
  .lead { font-size: 16px; }
  .hero-actions { margin-top: 20px; gap: 20px; }
  .status { margin-top: 16px; }

  .stages-grid, .result-grid, .cta, .row, .hero-inner { grid-template-columns: 1fr; }
  .stages-head, .stages-figure, .stage-list, .figure, .result-side, .row-num, .row-title, .row-text, .cta h2, .cta-side { grid-column: 1 / -1; }
  .stage { grid-template-columns: 1fr; grid-template-rows: none; }
  .stage > .stage-num, .stage > .stage-word, .stage > .stage-desc, .stage > .stage-media { grid-column: 1 / -1; grid-row: auto; }
  .stage > .stage-media { margin: 18px calc(var(--gutter) * -1) 0; }

  .stages.is-pinned .stages-grid { grid-template-rows: auto 1fr minmax(260px, 34svh) auto; padding-top: 76px; padding-bottom: 20px; }
  .stages.is-pinned .stages-head { grid-row: 1; }
  .stages.is-pinned .stages-title { font-size: 20px; margin-top: 8px; }
  .stages.is-pinned .stages-figure { grid-column: 1 / -1; grid-row: 2; justify-self: center; align-self: center; width: calc(100% + 2 * var(--gutter)); margin: 14px calc(var(--gutter) * -1) 0; }
  .stages.is-pinned .stage-list { grid-column: 1 / -1; }
  .stages.is-pinned .stage-list { grid-row: 3; }
  .stages.is-pinned .stage { top: 22px; bottom: auto; }
  .stages.is-pinned .stage-word { font-size: clamp(38px, 11vw, 56px); margin: 6px 0 10px; }
  .stages.is-pinned .stage-desc { font-size: 15px; line-height: 1.5; }
  .stages.is-pinned .stages-progress { grid-row: 4; padding-top: 14px; }
  .progress-labels { font-size: 9px; letter-spacing: 0.04em; }

  .figure { font-size: clamp(96px, 29vw, 200px); }
  .result-side { margin-top: 28px; padding-bottom: 0; }
  .row { padding: 22px 0 26px; row-gap: 8px; }
  .row-num { padding-top: 0; }
  .row-text { padding-top: 0; }
  .cta-side { margin-top: 36px; }
  .footer-row { grid-template-columns: 1fr 1fr; }
  .footer-row p:first-child { grid-column: 1 / -1; }
  .footer-row p:last-child { text-align: left; }

  .nav { gap: 18px; }
  .nav a.nav-keep { display: inline; }
  .nav-long { display: none; }
  .nav-short { display: inline; }

  .inside-head { grid-template-columns: 1fr; }
  .inside-text, .inside-visual { grid-column: 1 / -1; }
  .inside-intro { margin-top: 22px; }
  .inside-visual { margin: 8px calc(var(--gutter) * -1) -24px; }
  .index-band { padding-top: 120px; }
  .index-bg { height: min(100%, 150vw); }
  .behaviours { grid-template-columns: 1fr; row-gap: 26px; }
  .behaviour { padding-right: 0; }
  .index-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .module { grid-template-columns: minmax(0, 9.2em) minmax(0, 1fr); column-gap: 12px; padding: 9px 0 10px; }
  .module dt { font-size: 12px; }
  .module dd { font-size: 14.5px; }
  .answer-grid { grid-template-columns: 1fr; }
  .answer-head, .brief { grid-column: 1 / -1; }
  .answer-head { padding-top: 0; }
  .brief { margin-top: 36px; padding: 26px 20px 26px; }
  .brief-list li { grid-template-columns: 2.2em 1fr; }

  .cards { grid-template-columns: 1fr; row-gap: 34px; }
  .card { padding-right: 0; }
  .card-title { margin: 16px 0 10px; }
  .measure-grid, .privacy-grid, .founder-row { grid-template-columns: 1fr; }
  .measure-head, .spec, .privacy-head, .privacy-body, .founder-row .eyebrow, .founder-line { grid-column: 1 / -1; }
  .measure-head { position: static; }
  .spec { margin-top: 36px; }
  .spec-row { grid-template-columns: 1fr; row-gap: 8px; padding: 18px 0 20px; }
  .spec-row:first-child { padding-top: 18px; border-top: 1px solid var(--rule); }
  .spec dt { padding-top: 0; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; margin-top: 4px; }
  .privacy-body { padding-top: 32px; }
  .founder-row { row-gap: 12px; }
}

@media (max-width: 600px) {
  .hero { --photo-h: calc(100vw * 1536 / 1076); --horizon-gap: 96px; }
  .hero-photo img { aspect-ratio: 1076 / 1536; }
  .dark-photo { top: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
