/* Maremoto Health marketing site, Paper edition.
   Translated from the Paper file "Maremoto marketing site" (1440 desktop artboard).
   Tokens are the file's tokens. Fixed artboard widths become fluid tracks. */

@font-face {
  font-family: "Geist";
  src: url("/brand/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --color-ink: #171717;
  --color-paper: #f5f5f5;
  --color-soft: #fbfbfb;
  --color-sand: #ebebeb;
  --color-white: #ffffff;
  --color-gray: #666666;
  --color-rule: rgb(23 23 23 / 12%);
  --color-rule-strong: rgb(23 23 23 / 28%);
  --color-rule-inverse: rgb(255 255 255 / 16%);
  --color-rule-inverse-strong: rgb(255 255 255 / 36%);
  --color-text-inverse-muted: rgb(255 255 255 / 68%);
  --color-text-muted: #171717c7;
  --color-text-body: #171717b8;
  --color-line: #17171729;
  --color-line-mid: #17171766;
  --color-bar: #17171738;
  --color-bar-soft: #1717172e;
  --color-hair: #efefef;
  /* Two signals, as in the deck and the films. Blue is Maremoto at work: the read, its citations, its numbers.
     Red is anything flagged for a person. */
  --color-brand: #0057cc;
  --color-brand-inverse: #6ea8ff;
  --color-accent: #c8372d;
  /* The same accent, lifted for small text on ink (4.5:1). */
  --color-accent-inverse: #e5594e;
  --focus: var(--color-brand);

  --font-sans: "Geist", "Helvetica Neue", Arial, sans-serif;

  --text-eyebrow: 14px;
  --text-caption: 13px;
  --text-body: 15px;
  --text-lede: 20px;
  --text-h3: clamp(24px, 1.95vw, 28px);
  --text-h2: clamp(40px, 5vw, 72px);
  --text-display: clamp(44px, min(5.4vw, 9vh), 80px);

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-display: 460;

  --tracking-display: -0.035em;
  --tracking-tight: -0.03em;

  --container-page: 1440px;
  --bar-h: 56px;
  --gutter: clamp(20px, 4.45vw, 64px);
  --section: clamp(72px, 8.9vw, 128px);

  --radius-sm: 6px;
  --radius-md: 24px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgb(23 23 23 / 4%), 0 24px 48px -30px rgb(23 23 23 / 24%);
  --ease-spring: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--color-ink);
  background: var(--color-paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-width: 320px; background: var(--color-paper); color: var(--color-ink); overflow-x: clip; }
main { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
img, svg { display: block; max-width: 100%; }
button, input, select, output, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--color-brand); color: var(--color-white); }
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

/* ---------- Type ---------- */
.eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: 500;
  line-height: 18px;
  color: var(--color-gray);
}
/* The hero's audience line: a soft tag. */
.eyebrow.tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: var(--radius-pill); background: var(--color-sand); color: var(--color-ink); }
.eyebrow.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-brand); }
.eyebrow.ink { color: var(--color-ink); }

.display {
  font-size: var(--text-display);
  font-weight: var(--font-weight-display);
  letter-spacing: var(--tracking-display);
  line-height: 1.02;
  color: var(--color-ink);
  font-variant-numeric: proportional-nums;
  max-width: 1080px;
  text-wrap: balance;
}
.h2 {
  text-wrap: balance;
  font-size: var(--text-h2);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-variant-numeric: proportional-nums;
}
.h2.sm { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -0.035em; line-height: 1.04; }
.dark .h2 { color: var(--color-white); }
.h3 {
  font-size: var(--text-h3);
  font-weight: var(--font-weight-display);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.lede { font-size: var(--text-lede); line-height: 28px; color: var(--color-text-muted); }
p, li { text-wrap: pretty; }
.dark .lede { color: var(--color-text-inverse-muted); }
.w340 { max-width: 340px; }
.w400 { max-width: 400px; }
.w480 { max-width: 480px; }
.w640 { max-width: 640px; }
.w560 { max-width: 560px; }
.w700 { max-width: 700px; }
.caps {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding-inline: 22px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  border: 1px solid var(--color-ink);
  white-space: nowrap;
  transition: transform 0.25s var(--ease-spring), background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); background: #333333; border-color: #333333; }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.25s var(--ease-spring); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover .arrow.down { transform: translateY(3px); }
.btn-sm { height: 36px; padding-inline: 16px; font-size: 14px; line-height: 16px; }
.btn-ghost { background: transparent; color: var(--color-ink); border-color: var(--color-rule-strong); }
.btn-ghost:hover { background: var(--color-sand); border-color: var(--color-ink); }

/* ---------- Section frame ---------- */
/* Each section is full-bleed and paints its own ground; .sec is the constrained frame inside it. */
main > section { position: relative; background: var(--bg, transparent); }
.sec {
  width: 100%;
  max-width: var(--container-page);
  margin-inline: auto;
  padding: var(--section) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.dark { color: var(--color-white); }
.cover, .why, .ground, .intake, .filmband, .contact { --bg: var(--color-paper); }
.criteria, .hours { --bg: var(--color-ink); }
.casefile, .operate, .value { --bg: var(--color-soft); }

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.head-row.top { align-items: flex-start; }
.sec-head { display: flex; flex-direction: column; gap: 24px; min-width: 0; flex: 1 1 auto; max-width: 900px; }
.head-row.top .sec-head { flex: 0 1 700px; }
.sec-head.w560 { max-width: 560px; flex: 0 1 560px; gap: 20px; }
.head-row > .lede { flex: 0 0 auto; }

/* ---------- Cover ---------- */
.cover .stage { min-height: min(960px, 100svh); display: flex; flex-direction: column; overflow: clip; }
.cover-in {
  position: relative;
  width: 100%;
  max-width: var(--container-page);
  margin-inline: auto;
  padding-inline: var(--gutter);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 20px; }
.brand span { white-space: nowrap; }
.links { display: flex; align-items: center; gap: 28px; }
/* The cover and subpage navs center their links on the page, so they stay put when the bar replaces them or the page changes. */
@media (min-width: 761px) {
  :is(.cover, .subpage) .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  :is(.cover, .subpage) .nav .btn { justify-self: end; }
}
.links a {
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}
.links a:hover, .links a[aria-current] { color: var(--color-ink); }

/* The bar: fixed above every panel from the moment the cover's own nav is gone. Hidden, it takes no focus. */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--bar-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-inline: max(var(--gutter), calc((100% - var(--container-page)) / 2 + var(--gutter)));
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-rule);
  color: var(--color-ink);
  visibility: hidden;
  translate: 0 -100%;
  transition: translate 0.3s var(--ease-spring), visibility 0s linear 0.3s;
}
.topbar.on { visibility: visible; translate: none; transition: translate 0.3s var(--ease-spring); }
.topbar .btn { grid-column: 3; justify-self: end; }
.topbar .prog { position: absolute; inset: auto 0 0; height: 2px; background: transparent; }
.topbar .prog::after { content: ""; position: absolute; inset: 0; background: var(--color-ink); opacity: 0.32; transform-origin: 0 50%; scale: var(--pg, 0) 1; }
/* The smallest phones: the full name and Contact sales share one row. */
@media (max-width: 359px) {
  .brand { gap: 8px; font-size: 15px; }
  .brand img { width: 20px; height: 20px; }
  .btn-sm { padding-inline: 12px; font-size: 13px; }
  .topbar { gap: 12px; }
}

.hero {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 540px;
  gap: 64px;
  align-items: center;
  padding-block: 24px 48px;
  position: relative;
  z-index: 1;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; min-width: 0; }
.hero-lede { font-size: 21px; line-height: 30px; color: var(--color-text-muted); max-width: 540px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* The packet as it arrives, and the case file the read builds from it. */
.hero-fig { position: relative; height: 520px; }
.hero-photo { position: absolute; right: 0; top: 0; width: 420px; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.file {
  position: absolute;
  left: 0;
  top: 104px;
  width: 340px;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgb(23 23 23 / 6%), 0 32px 60px -28px rgb(23 23 23 / 50%);
  color: var(--color-ink);
  overflow: clip;
}
.file-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--color-rule); font-size: 12px; line-height: 16px; }
.file-head span:last-child { color: var(--color-gray); }
.file .frow { --fl: 96px; padding-inline: 16px; }
.file-foot { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fafafa; font-size: 12.5px; line-height: 16px; color: var(--color-text-muted); }

/* A page of the packet: the intake pile */
.pg {
  background: var(--color-white);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--color-ink);
}
.pg-title {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
}
.lines { display: flex; flex-direction: column; gap: 5px; }
.lines i { display: block; height: 4px; border-radius: 2px; background: var(--color-line); width: 100%; }
.lines i.hit { background: var(--color-brand); }
.lines i.mid { background: var(--color-line-mid); }
.lines i.w88 { width: 88%; }
.lines i.w62 { width: 62%; }
.lines i.w40 { width: 40%; }
.found { border-top: 1px solid var(--color-rule); padding-top: 9px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; line-height: 16px; }
.found b { font-size: 12px; font-weight: 500; line-height: 14px; color: var(--color-gray); }
.found b.flag { color: var(--color-accent); }

/* ---------- Intake: the packet in, one file out ---------- */
/* A fixed-size stage (1200×480 wide, 360×720 tall) scaled to the section width, so the pages keep their proportions. */
.intake-fig { width: 100%; display: flex; justify-content: center; }
.intake-box { position: relative; }
.intake-stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.intake-paths { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intake-paths path { fill: none; stroke: var(--color-rule); stroke-width: 1; transition: stroke 0.5s ease; }
.intake-paths path.on { stroke: var(--color-line-mid); }
.intake-paths path.lane { stroke: var(--color-line-mid); }
.intake-paths path.rule { stroke: var(--color-rule-strong); }
.ilabel {
  position: absolute;
  font-size: 10px;
  line-height: 12px;
  color: var(--color-gray);
  white-space: nowrap;
}
/* The reader: a miniature of the dot-wave mark that pulses while pages pass, and a verb for the page at hand. */
.reader { position: absolute; display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.reader.centered { align-items: center; transform: translateX(-50%); }
.rdots { display: flex; gap: 4px; }
.rdots i { width: 4px; height: 4px; border-radius: 50%; background: var(--color-ink); opacity: 0.12; }
/* At rest the dots hold one wave; in motion the wave travels. */
.rdots i:nth-child(3) { opacity: 0.25; } .rdots i:nth-child(4) { opacity: 0.55; } .rdots i:nth-child(5) { opacity: 1; }
.rdots i:nth-child(6) { opacity: 0.55; } .rdots i:nth-child(7) { opacity: 0.25; }
.rverb { font-size: 10px; line-height: 12px; color: var(--color-gray); white-space: nowrap; }
.rverb::after { content: "…"; }
.reader.still .rverb::after { content: none; }
@media (prefers-reduced-motion: no-preference) {
  .reader.working .rdots i { animation: rwave 1.5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.11s); }
  .rdots i:nth-child(1) { --i: 0; } .rdots i:nth-child(2) { --i: 1; } .rdots i:nth-child(3) { --i: 2; } .rdots i:nth-child(4) { --i: 3; }
  .rdots i:nth-child(5) { --i: 4; } .rdots i:nth-child(6) { --i: 5; } .rdots i:nth-child(7) { --i: 6; } .rdots i:nth-child(8) { --i: 7; }
  .rdots i:nth-child(9) { --i: 8; } .rdots i:nth-child(10) { --i: 9; } .rdots i:nth-child(11) { --i: 10; } .rdots i:nth-child(12) { --i: 11; }
}
@keyframes rwave { 0%, 100% { opacity: 0.12; } 35% { opacity: 1; } 70% { opacity: 0.12; } }
/* Completion: the wave resolves into one solid row, filling left to right. */
.reader.still .rdots i { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reader.still .rdots i { animation: rfill 0.5s ease both; animation-delay: calc(var(--i) * 45ms); }
}
@keyframes rfill { from { opacity: 0.12; } to { opacity: 1; } }
/* Pile pages: the hero page, smaller, free to move. */
.pg.sm {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--pw);
  height: var(--ph);
  flex: none;
  padding: 10px;
  gap: 8px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(23 23 23 / 5%), 0 14px 28px -18px rgb(23 23 23 / 40%);
  will-change: transform, opacity;
}
.pg.sm .pg-title { font-size: 9px; line-height: 11px; gap: 6px; }
.pg.sm .pg-title span { white-space: nowrap; }
.pg.sm .lines { gap: 4px; }
.pg.sm .lines i { height: 3px; }
.pg.sm .lines i.hit { background: var(--color-line); transition: background 0.3s ease; }
.pg.sm.read .lines i.hit { background: var(--color-brand); }
.pg.sm .found { margin-top: auto; padding-top: 6px; font-size: 9px; line-height: 12px; opacity: 0; transition: opacity 0.3s ease; }
.pg.sm .found b { font-size: 8px; line-height: 10px; }
.pg.sm.read .found { opacity: 1; }
.pg.sm .found .unclear { font-size: 9px; }
/* The case file */
.cf {
  position: absolute;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgb(23 23 23 / 5%), 0 14px 28px -18px rgb(23 23 23 / 40%);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--color-ink);
}
.cf-head { display: flex; justify-content: space-between; font-size: 10px; font-weight: 500; line-height: 12px; }
.cf-rows { display: flex; flex-direction: column; border-top: 1px solid var(--color-rule); }
.cf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  border-bottom: 1px solid var(--color-rule);
  font-size: 11px;
  line-height: 14px;
  opacity: 0.3;
  transition: opacity 0.35s ease;
}
.cf-row.lit { opacity: 1; }
.cf-src { flex: 0 0 78px; font-size: 9px; color: var(--color-gray); white-space: nowrap; }
.cf-find { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-find.unclear { flex: 0 0 auto; font-size: 10px; }
.cf-row .chip { font-size: 10px; padding: 0 6px; }
.cf-foot { display: flex; justify-content: flex-end; margin-top: auto; }
.cf-foot .pill { opacity: 0; transition: opacity 0.35s ease; }
.cf.filed .pill { opacity: 1; }

/* ---------- Why ---------- */
.why .sec { gap: 80px; }
.ledger {
  flex: 0 0 520px;
  min-width: 0;
  border-top: 1px solid var(--color-rule-strong);
  display: flex;
  flex-direction: column;
}
.ledger .row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-block: 28px;
  border-bottom: 1px solid var(--color-rule-strong);
}
.ledger dt { flex: 0 0 auto; min-width: 216px; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.ledger dt b { font-size: 48px; font-weight: 440; letter-spacing: -0.04em; line-height: 48px; }
.ledger dt span { font-size: 14px; font-weight: 500; line-height: 16px; color: var(--color-gray); }
.ledger dd { flex: 1 1 0; display: flex; flex-direction: column; gap: 8px; }
.ledger dd strong { font-size: 16px; font-weight: 560; letter-spacing: -0.01em; line-height: 20px; }
.ledger dd p { font-size: 15px; line-height: 22px; color: var(--color-text-body); }

/* The race: one packet, one clock, three ways to answer. main.js builds the pages and plays each card once it is well in view. */
.race { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* Each card's seven parts share the figure's row tracks, so packets, clocks and verdicts line up across cards whatever wraps. */
.r-card { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; padding: 24px; }
.r-card[data-lane="maremoto"] { border-color: var(--color-ink); }
.r-title { margin-top: 8px; font-family: var(--font-sans); font-size: 20px; font-weight: var(--font-weight-display); letter-spacing: -0.02em; line-height: 26px; }
/* The packet: 104 pages, 26 across. Ink is read. */
.r-grid { position: relative; margin-top: 18px; display: grid; grid-template-columns: repeat(26, 1fr); gap: 5px 3px; }
.r-grid i { position: relative; aspect-ratio: 21 / 26; border-radius: 2px; background: #e9e9e9; }
.r-grid i.on { background: var(--color-ink); }
.r-grid i.cite.on::after { content: ""; position: absolute; inset: auto 0 -4px; height: 2px; border-radius: 1px; background: var(--color-brand); }
.r-grid .miss::before { content: ""; position: absolute; inset: -3px; border: 1.5px dashed var(--color-ink); border-radius: 4px; opacity: 0; scale: 1.8; }
.r-sweep { position: absolute; z-index: 1; top: -6px; bottom: -6px; left: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--color-brand); visibility: hidden; }
.r-sweep.on { visibility: visible; }
.r-cap { margin-top: 10px; font-size: 12px; line-height: 16px; color: var(--color-gray); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The clock: minutes to answer on a 70-minute track, the 15-minute window notched. --m is the card's clock.
   The count's column fits "65 min", so the track holds still as digits are added. */
.r-clock { --n: 40px; margin-top: 18px; display: grid; grid-template-columns: calc(var(--n) * 2) minmax(0, 1fr); align-items: center; gap: 20px; }
.r-n { display: flex; align-items: baseline; gap: 6px; font-size: 12px; line-height: 16px; color: var(--color-gray); }
.r-n b { font-size: var(--n); font-weight: 400; letter-spacing: -0.03em; line-height: var(--n); color: var(--color-ink); font-variant-numeric: tabular-nums; }
.r-meter { position: relative; height: 52px; font-size: 12px; line-height: 16px; white-space: nowrap; }
.r-track { position: absolute; inset: 22px 0 auto; height: 4px; border-radius: 2px; background: #e9e9e9; }
.r-track::before, .r-track::after { content: ""; position: absolute; top: 0; height: 100%; border-radius: 2px; }
.r-track::before { left: 0; width: calc(min(var(--m), 15) / 70 * 100%); background: var(--color-ink); }
.r-track::after { left: calc(15 / 70 * 100%); width: calc(max(var(--m) - 15, 0) / 70 * 100%); background: #bdbdbd; }
.r-15 { position: absolute; top: 36px; left: calc(15 / 70 * 100%); translate: -50% 0; color: var(--color-gray); }
.r-15::before { content: ""; position: absolute; left: 50%; top: -19px; width: 2px; height: 16px; margin-left: -1px; border-radius: 1px; background: var(--color-ink); }
.r-tag { position: absolute; top: 0; right: calc(100% - var(--m) / 70 * 100%); font-weight: 500; color: var(--color-ink); }
.r-tag.late { right: auto; left: calc(15 / 70 * 100% + 8px); }
.r-out { margin-top: 18px; font-family: var(--font-sans); font-size: 24px; font-weight: var(--font-weight-display); letter-spacing: -0.03em; line-height: 28px; }
.r-sub { margin-top: 4px; font-family: var(--font-sans); font-size: 13px; line-height: 18px; color: var(--color-text-body); }
/* Beats land as the clock passes them; they keep their space while hidden. */
.r-card:not(.tagged) .r-tag, .r-card:not(.judged) :is(.r-out, .r-sub) { opacity: 0; translate: 0 8px; }
.r-card.caught .r-cap { color: var(--color-ink); }
.r-card.caught .miss::before { opacity: 1; scale: 1; }
.r-card.playing :is(.r-tag, .r-out, .r-sub) { transition: opacity 0.3s ease, translate 0.45s var(--ease-spring); }
.r-card.playing .r-sub { transition-delay: 0.1s; }
.r-card.playing .miss::before { transition: opacity 0.2s ease, scale 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.nw { white-space: nowrap; }
.ledger dt b .x { font-family: var(--font-sans); font-style: normal; font-size: 0.7em; margin-left: 0.04em; }

/* ---------- Cards (shared record primitives) ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-rule);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  color: var(--color-ink);
}
.bar { display: block; height: 5px; border-radius: 3px; background: var(--color-bar); width: var(--w, 50%); }
.bar.ink { background: var(--color-ink); }
.bar.soft { background: var(--color-bar-soft); }
.chip {
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}
.unclear {
  font-size: 12px;
  line-height: 14px;
  color: var(--color-accent);
  border-bottom: 1px dashed var(--color-accent);
}

/* Status pills: monochrome, state carried by border and fill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-rule-strong);
  font-size: 12px;
  line-height: 16px;
  color: var(--color-ink);
  white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-ink); flex-shrink: 0; }
.pill.call { border-style: dashed; border-color: var(--color-ink); }
.pill.call::before { background: transparent; border: 1px solid var(--color-ink); }
.pill.block { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-white); }
.pill.block::before { background: var(--color-white); }
.pill.muted { color: var(--color-gray); }
.pill.muted::before { background: transparent; border: 1px solid var(--color-gray); }
.pill.stamped { border: 1.5px solid var(--color-ink); font-weight: 500; }
.pill.lg { padding: 9px 18px; gap: 10px; font-size: 15px; line-height: 18px; font-weight: 400; }
.pill.lg::before { width: 9px; height: 9px; }
/* Inverse pills on ink */
.pill.inv { border-color: var(--color-rule-inverse-strong); color: var(--color-white); }
.pill.inv::before { background: var(--color-white); }
.pill.inv.block { background: var(--color-white); border-color: var(--color-white); color: var(--color-ink); }
.pill.inv.block::before { background: var(--color-ink); }
.pill.inv.call { border: 1px dashed var(--color-white); }
.pill.inv.call::before { background: transparent; border: 1px solid var(--color-white); }

/* ---------- Case file ---------- */
.stamps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stamp { border-top: 1px solid var(--color-rule-strong); display: flex; flex-direction: column; min-width: 0; }
.stamp .card { flex: 1 1 auto; }
.stamp-text { display: flex; flex-direction: column; gap: 10px; padding: 18px 0 20px; }
.stamp-text .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.stamp-text p { font-size: 16px; line-height: 24px; color: var(--color-text-body); max-width: 34ch; }

/* A finding: label, what the packet says, the page it came from. The hero's case file and the Review card share it. */
.frow { display: grid; grid-template-columns: var(--fl, 96px) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding-block: 10px; border-bottom: 1px solid var(--color-hair); font-size: 13px; line-height: 17px; }
.frow .fl { font-size: 12px; line-height: 16px; color: var(--color-gray); }
.frow.flag .fl { color: var(--color-ink); }
.frow.flag .fv { color: var(--color-accent); }
.frow .chip { margin-left: 0; }
.who { font-size: 12px; line-height: 16px; color: var(--color-gray); }

.card.review { padding: 16px 18px 18px; display: flex; flex-direction: column; }
.card-head { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--color-rule); }
.card-head .caps + .caps { color: var(--color-gray); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; margin-top: auto; }

.card.decide { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.opt { border: 1px solid var(--color-rule); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.opt.chosen { border: 2px solid var(--color-ink); }
.opt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.opt .reason { font-family: var(--font-sans); font-size: 14px; line-height: 20px; }
.opt.alt { flex-direction: row; justify-content: space-between; padding-block: 10px; font-size: 12px; line-height: 16px; color: var(--color-gray); }

.card.arrive { overflow: clip; }
.arrive-top { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 20px 26px; border-bottom: 1px solid var(--color-rule); }
.history { padding: 6px 18px 10px; display: flex; flex-direction: column; }
.hrow { display: flex; align-items: center; gap: 14px; padding-block: 9px; border-bottom: 1px solid var(--color-hair); font-size: 13px; line-height: 17px; }
.hrow:last-child { border-bottom: 0; }
.hrow .t { flex: 0 0 48px; color: var(--color-gray); }

/* ---------- Criteria ---------- */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: stretch; }
.frows { flex: 1 1 auto; display: flex; flex-direction: column; }
.frows li:last-child { border-bottom: 0; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-rule-inverse);
}
.ph-title { font-size: 15px; font-weight: 560; line-height: 18px; }
.ph-note { font-size: 12px; line-height: 16px; color: var(--color-text-inverse-muted); }

.rules {
  background: #ffffff0a;
  border: 1px solid var(--color-rule-inverse-strong);
  border-radius: 24px;
  overflow: clip;
  color: var(--color-white);
}
.group { padding-block: 6px 10px; border-bottom: 1px solid var(--color-rule-inverse); display: flex; flex-direction: column; }
.group.last { border-bottom: 0; }
.glabel { font-size: 12px; line-height: 16px; color: #ffffff8c; padding: 8px 20px 4px; }
.limit { display: flex; flex-direction: column; gap: 10px; padding: 9px 20px; font-size: 14px; line-height: 18px; }
.limit .lrow { display: flex; justify-content: space-between; align-items: center; }
.limit output { font-size: 13px; line-height: 16px; }
.limit.sel { flex-direction: row; justify-content: space-between; align-items: center; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --fill: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(to right, var(--track-fill) var(--fill), var(--track-rest) var(--fill));
}
input[type="range"]::-moz-range-track { height: 2px; border-radius: 1px; background: var(--track-rest); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--track-fill); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--track-fill);
  border: 0;
  margin-top: -8px;
}
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--track-fill); border: 0; }
.rules input[type="range"], .hrs input[type="range"] { --track-fill: var(--color-white); --track-rest: #ffffff4d; }
.calc input[type="range"] { --track-fill: var(--color-ink); --track-rest: var(--color-bar); }

.select-wrap { position: relative; display: inline-flex; }
.select-wrap::after {
  content: "⌄";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-60%);
  pointer-events: none;
}
.rules select {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  color: var(--color-white);
  border: 1px solid #ffffff59;
  border-radius: 6px;
  padding: 5px 26px 5px 10px;
  font-size: 13px;
  line-height: 16px;
}
.rules select option { color: var(--color-ink); }

.stance { display: flex; align-items: center; gap: 12px; padding: 9px 20px; font-size: 14px; line-height: 18px; cursor: pointer; }
.stance > span:first-child { flex: 1 1 0; }
.stance-val { font-size: 12px; line-height: 16px; }
.switch {
  -webkit-appearance: none;
  appearance: none;
  width: 40px; height: 22px;
  border-radius: var(--radius-pill);
  background: #ffffff2e;
  border: 1px solid #ffffff47;
  position: relative;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-white);
  transition: transform 0.2s ease, background 0.2s ease;
}
.switch:checked { background: var(--color-white); border-color: var(--color-white); }
.switch:checked::after { transform: translateX(18px); background: var(--color-ink); }

/* Phones: what the packet says and its verdict sit under each control, and the counts stick under the bar. */
.said, .tally { display: none; }
.said { justify-content: space-between; align-items: center; gap: 10px; padding: 0 20px 12px; font-size: 12px; line-height: 16px; color: var(--color-text-inverse-muted); }
.said .u { color: var(--color-accent-inverse); }
.tally { position: sticky; top: calc(var(--bar-h) + 8px); z-index: 2; margin: 12px 12px 4px; padding: 12px 14px; border-radius: 16px; background: var(--color-white); color: var(--color-ink); box-shadow: 0 12px 24px -12px rgb(0 0 0 / 70%); flex-direction: column; gap: 8px; }
.tally-head { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--color-gray); }
.tally-head span:first-child { color: var(--color-ink); font-weight: 500; }
.tally-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.findings {
  background: var(--color-white);
  border: 1px solid var(--color-rule-inverse-strong);
  border-radius: 24px;
  overflow: clip;
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
}
.findings .panel-head { border-bottom-color: var(--color-rule); }
.findings .ph-note { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--color-gray); }
.frows li {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 20px;
  border-bottom: 1px solid #efefef;
}
.frows .name { flex: 0 0 160px; font-size: 13.5px; font-weight: 560; line-height: 18px; }
.frows .val { flex: 1 1 0; font-size: 12px; line-height: 16px; color: var(--color-gray); min-width: 0; }
.frows .val.unclear { flex: 0 0 auto; margin-right: auto; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--color-accent); }
.frows .chip { margin-left: 0; width: 52px; text-align: left; }
.frows .verdict { flex: 0 0 124px; display: flex; justify-content: flex-end; }
.summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  background: var(--color-paper);
  border-top: 1px solid var(--color-rule);
  font-size: 12px;
  line-height: 18px;
  flex-wrap: wrap;
}
.legend { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.fill { background: var(--color-ink); }
.dot.dash { border: 1px dashed var(--color-ink); }
.dot.ring { border: 1px solid var(--color-gray); }
.summary strong { margin-left: auto; font-family: var(--font-sans); font-size: 14px; font-weight: 560; }

.across {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-rule-inverse);
  flex-wrap: wrap;
}
.across p { margin-right: auto; font-size: 14px; line-height: 18px; color: var(--color-text-inverse-muted); }
.fac { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; line-height: 18px; }

/* ---------- Operate ---------- */
/* Board then analytics in reading order; side by side once the section pins (see Story). */
.operate .sec { gap: 96px; }
.op-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.op-grid > .card + .op-text { margin-top: 32px; }
.op-text { display: flex; flex-direction: column; gap: 8px; }
.op-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.op-text > p { font-size: 15px; line-height: 22px; color: var(--color-text-body); }

.card.board { position: relative; background: var(--color-paper); padding: 14px; display: flex; gap: 10px; }
.card.board.dragging { cursor: grabbing; }
.bc { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.bc.lift { position: absolute; z-index: 3; cursor: grabbing; box-shadow: 0 12px 28px #0000001f, 0 1px 3px #0000001a; transform: scale(1.03); }
.bc.glide { transition: left 0.9s cubic-bezier(0.45, 0, 0.15, 1), top 0.9s cubic-bezier(0.45, 0, 0.15, 1); }
.bc.settling { transition: left 0.18s ease, top 0.18s ease; }
.ph { flex: 0 0 auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--color-line-mid); transition: height 0.35s ease; }
.board.dragging .ph { transition: none; }
.agent { position: absolute; left: 0; top: 0; z-index: 4; width: 20px; height: 24px; pointer-events: none; opacity: 0; transition: transform 0.7s cubic-bezier(0.45, 0, 0.15, 1), opacity 0.3s ease; }
.agent.on { opacity: 1; }
.agent svg { width: 100%; height: 100%; transition: transform 0.15s ease; transform-origin: 3px 2px; }
.agent.grab svg { transform: scale(0.88); }
.agent path { fill: var(--color-ink); stroke: var(--color-white); stroke-width: 1.5; stroke-linejoin: round; }
.op-text .hint { font-size: 12px; line-height: 16px; color: var(--color-gray); }
.lane { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lh { display: flex; justify-content: space-between; gap: 6px; padding: 2px 2px 4px; font-size: 12px; line-height: 16px; white-space: nowrap; }
.lh span:last-child { color: var(--color-gray); }
.bc {
  background: var(--color-white);
  border: 1px solid var(--color-rule);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
/* Lanes are narrow: the pill keeps the floor size and gives up its tracking instead. */
.bc .pill { margin-top: 4px; letter-spacing: 0; padding-inline: 7px; gap: 5px; }

.card.dash { overflow: clip; display: flex; flex-direction: column; }
.tiles { display: flex; border-bottom: 1px solid var(--color-rule); }
.tile { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 16px 16px 14px; }
.tile + .tile { border-left: 1px solid var(--color-rule); }
.tile .caps { color: var(--color-gray); }
.tile b { font-size: 28px; font-weight: 460; letter-spacing: -0.03em; line-height: 32px; white-space: nowrap; }
.chart { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chart-head { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--color-gray); }
.bars { display: flex; align-items: flex-end; gap: 24px; height: 120px; border-bottom: 1px solid #d4d4d4; }
.wk { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; gap: 4px; }
.wk i { flex: 1 1 0; height: var(--h); background: #d4d4d4; }
.wk i.ink { background: var(--color-ink); }
.axis { display: flex; gap: 24px; font-size: 12px; line-height: 14px; color: var(--color-gray); }
.axis span { flex: 1 1 0; }

/* ---------- Principles ---------- */
.ground-photo { width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-lg); }

/* ---------- Hours ---------- */
/* One slider, two figures: the day on dark, the year on white, like the two Criteria panels. Maremoto is the blue in both. */
.hrs { display: flex; flex-direction: column; gap: 24px; }
.hrs-ctl { display: flex; align-items: center; gap: 32px; padding: 16px 28px; border: 1px solid var(--color-rule-inverse-strong); border-radius: 24px; background: #ffffff0a; }
.hrs-ctl label { display: flex; align-items: baseline; gap: 16px; font-size: 15px; font-weight: 560; line-height: 18px; white-space: nowrap; }
.hrs-ctl output { min-width: 2ch; font-size: 32px; font-weight: 460; letter-spacing: -0.03em; line-height: 36px; }
.hrs-ctl input { flex: 1 1 auto; }
.hrs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hrs-card { display: flex; flex-direction: column; gap: 28px; padding: 28px 32px 32px; border-radius: 24px; }
.hrs-card.day { gap: 40px; border: 1px solid var(--color-rule-inverse-strong); background: #ffffff0a; }
.hrs-card.year { background: var(--color-white); color: var(--color-ink); }
.hrs-k { font-size: 15px; font-weight: 560; line-height: 18px; }
.hrs-card.day .hrs-k { margin-bottom: auto; }
.hrs-row { display: flex; flex-direction: column; gap: 14px; }
.hrs-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.hrs-n { font-size: 20px; line-height: 24px; white-space: nowrap; }
.hrs-n b { margin-right: 4px; font-size: clamp(52px, 5.6vw, 80px); font-weight: 440; letter-spacing: -0.04em; line-height: 1; }
.hrs-who, .hrs-8 { font-size: 13px; line-height: 16px; color: var(--color-text-inverse-muted); }
/* The day on a 20-hour track, one person's eight hours notched: the race's clock, turned to hours. */
.hrs-track { position: relative; height: 10px; border-radius: 5px; background: #ffffff1f; }
.hrs-track i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 5px; background: #ffffffb8; transform-origin: 0 50%; transition: width 0.35s var(--ease-spring); }
.hrs-row.with .hrs-track i { background: var(--color-brand-inverse); }
.hrs-track::after { content: ""; position: absolute; left: 40%; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--color-white); }
.hrs-8 { margin-left: 40%; padding-left: 8px; }
.hrs-row.with .hrs-n b { color: var(--color-brand-inverse); }
.hrs-sum { display: flex; flex-direction: column; gap: 8px; }
.hrs-fte { font-size: 15px; line-height: 22px; color: var(--color-text-body); }
.hrs-chart { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.hrs-chart svg { width: 100%; height: clamp(130px, 13vw, 180px); overflow: visible; border-bottom: 1px solid var(--color-rule-strong); }
.hrs-chart path { fill: none; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; }
.hrs-chart .area { fill: #e6eefb; stroke: none; }
.hrs-chart .l0 { stroke: var(--color-ink); }
.hrs-chart .l1 { stroke: var(--color-brand); }
.hrs-axis { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 12px; line-height: 16px; color: var(--color-gray); text-align: right; }
.hrs-legend { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 13px; line-height: 18px; color: var(--color-gray); }
.hrs-legend p { display: flex; align-items: center; gap: 8px; }
.hrs-legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--color-ink); }
.hrs-legend .with i { background: var(--color-brand); }
.hrs-legend b { font-weight: 560; color: var(--color-ink); }
.hrs .fine { color: var(--color-text-inverse-muted); }
/* Entrance (main.js): armed while waiting below the fold, play once in view. */
.hrs.armed .hrs-track i { scale: 0 1; }
.hrs.armed .hrs-chart :is(.l0, .l1) { stroke-dashoffset: 1; }
.hrs.armed .hrs-chart .area { opacity: 0; }
.hrs.play .hrs-track i { animation: hrs-bar 1.2s var(--ease-spring) both; }
.hrs.play .hrs-row.with .hrs-track i { animation-delay: 0.25s; }
.hrs.play .hrs-chart :is(.l0, .l1) { animation: hrs-line 1.3s cubic-bezier(0.45, 0, 0.15, 1) both; }
.hrs.play .hrs-chart .area { animation: hrs-area 0.8s ease 0.9s both; }
@keyframes hrs-bar { from { scale: 0 1; } }
@keyframes hrs-line { from { stroke-dashoffset: 1; } }
@keyframes hrs-area { from { opacity: 0; } }

/* ---------- Value ---------- */
.value .sec { gap: 56px; }
.value .head-row { gap: 40px; }
.calc {
  display: flex;
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  overflow: clip;
  background: var(--color-white);
}
.calc-in {
  flex: 0 0 480px;
  background: var(--color-paper);
  border-right: 1px solid var(--color-rule);
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.calc-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; font-weight: 560; line-height: 18px; }
.calc-label output { font-size: 32px; font-weight: 460; letter-spacing: -0.03em; line-height: 36px; }
.scale { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--color-gray); }
.fine { padding-top: 4px; font-size: 13px; line-height: 19px; color: var(--color-gray); }
.calc-out { flex: 1 1 0; min-width: 0; display: flex; padding: 28px 32px 32px; }
.ro { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ro + .ro { border-left: 1px solid var(--color-rule); padding-left: 32px; }
.ro.wide { flex-grow: 1.4; }
.ro.range { flex-grow: 1.1; }
.ro b { font-size: clamp(40px, 3.9vw, 56px); font-weight: 440; letter-spacing: -0.04em; line-height: 60px; font-variant-numeric: tabular-nums; }
.ro.range b { font-size: 28px; letter-spacing: -0.03em; white-space: nowrap; }
.ro span { font-size: 13px; line-height: 18px; color: var(--color-gray); }

/* ---------- Films ---------- */
/* The films are light grey, so the player sits in an ink frame like a screen. */
.film { display: flex; flex-direction: column; gap: 24px; }
.film-frame { position: relative; aspect-ratio: 16 / 9; border: 8px solid var(--color-ink); border-radius: var(--radius-lg); overflow: clip; background: var(--color-ink); box-shadow: var(--shadow-card); }
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; background: #f4f4f4; }
.film-play { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 20px; background: rgb(23 23 23 / 10%); cursor: pointer; transition: background 0.2s ease; }
.film-frame.ready .film-play { display: flex; }
.film-frame.on .film-play { display: none; }
.film-play:hover { background: rgb(23 23 23 / 4%); }
.film-play span { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding-inline: 22px 26px; border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-white); font-size: 16px; font-weight: 500; line-height: 20px; white-space: nowrap; box-shadow: 0 16px 32px -16px rgb(23 23 23 / 60%); transition: transform 0.25s var(--ease-spring); }
.film-play:hover span { transform: scale(1.04); }
.film-play i, .watch i { width: 0; height: 0; border-block: 6px solid transparent; border-left: 10px solid currentColor; }
.film-play small { font-size: 13px; font-weight: 400; color: var(--color-text-inverse-muted); }
.film-more { display: flex; justify-content: flex-end; font-size: 15px; line-height: 22px; }
.film-more a { display: inline-flex; gap: 8px; padding-block: 9px; font-weight: 500; }
.film-more .arrow { transition: transform 0.25s var(--ease-spring); }
.film-more a:hover .arrow { transform: translateX(3px); }
.filmband .sec { padding-bottom: 0; }
/* The hero's third way in: quieter than the two buttons. */
.watch { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding-inline: 10px; font-size: 15px; font-weight: 500; line-height: 18px; white-space: nowrap; }
.watch span { font-weight: 400; color: var(--color-gray); }
.watch:hover { text-decoration: underline; text-underline-offset: 4px; }
/* The Films page */
.films { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 104px); max-width: 1080px; }
/* Title and running time on one line, one short description under them, then the player. */
.film-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 10px 16px; }
.film-desc { grid-column: 1 / -1; max-width: 600px; font-size: 18px; line-height: 27px; color: var(--color-text-muted); }
.film-next { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

/* ---------- Contact + footer ---------- */
.contact .sec { gap: 72px; padding-bottom: 40px; }
/* The closing card: the headline on paper, settling into the sea. */
.contact-row {
  display: flex;
  align-items: flex-start;
  min-height: 600px;
  padding: clamp(28px, 5vw, 72px);
  border-radius: 32px;
  overflow: clip;
  background:
    linear-gradient(100deg, var(--color-sand) 0%, rgb(236 236 236 / 94%) 30%, rgb(236 236 236 / 0%) 66%),
    var(--color-sand) url("/brand/photo/sea.jpg") center bottom / cover no-repeat;
}
.contact .sec-head.w560 { gap: 24px; }
.contact .alt { font-size: 15px; line-height: 22px; color: var(--color-text-muted); }
.contact .alt a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule-strong); text-underline-offset: 4px; }
.contact .book { align-self: flex-start; }

.footer { border-top: 1px solid var(--color-rule); padding-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.ftop { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.fcols { display: flex; gap: 56px; }
.fcols div { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 18px; }
.fcols b { font-weight: 500; color: var(--color-ink); }
.fcols a { color: var(--color-text-muted); }
.fcols a:hover { color: var(--color-ink); }
.fbot { border-top: 1px solid var(--color-rule); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; line-height: 18px; color: var(--color-text-muted); }

/* ---------- Subpages: About, Privacy ---------- */
.subpage { --bg: var(--color-paper); min-height: 100svh; display: flex; flex-direction: column; }
.page-nav { width: 100%; max-width: var(--container-page); margin-inline: auto; padding-inline: var(--gutter); }
.subpage .sec { flex: 1 0 auto; padding-top: clamp(48px, 7vw, 112px); gap: 56px; }
.sub-head { display: flex; flex-direction: column; gap: 24px; max-width: 900px; }
.nowrap { white-space: nowrap; }
@media (max-width: 359px) { .sub-head .h2 { font-size: 34px; } }
.lost-home { align-self: flex-start; margin-top: 8px; }
.sub-body { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.facts { display: flex; flex-direction: column; max-width: 640px; border-top: 1px solid var(--color-rule); }
.facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding-block: 14px; border-bottom: 1px solid var(--color-rule); }
.facts dt { font-size: 13px; line-height: 22px; color: var(--color-text-muted); }
.facts dd { font-size: 15px; line-height: 22px; }
.facts a { text-decoration: underline; text-decoration-color: var(--color-rule-strong); text-underline-offset: 4px; }
.subpage .footer { margin-top: auto; }
.policy { display: flex; flex-direction: column; gap: 40px; max-width: 640px; }
.policy section { display: flex; flex-direction: column; gap: 12px; }
.policy h2 { font-size: 20px; font-weight: var(--font-weight-medium); letter-spacing: -0.015em; line-height: 28px; color: var(--color-ink); }
.policy p, .policy li { font-size: 16px; line-height: 26px; color: var(--color-text-muted); }
.policy ul { display: flex; flex-direction: column; gap: 10px; }
.policy li { padding-left: 20px; position: relative; }
.policy li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 1px; background: var(--color-text-muted); }
.policy b { font-weight: var(--font-weight-medium); color: var(--color-ink); }
.policy a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule-strong); text-underline-offset: 4px; }
@media (max-width: 480px) { .facts div { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; } }
.fcols a[aria-current] { color: var(--color-ink); }
.contact .alt a:hover, .facts a:hover, .policy a:hover { text-decoration-color: currentColor; }


/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .head-row, .head-row.top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .ledger { flex-basis: auto; width: 100%; }
  .race { gap: 16px; }
  .r-card { padding: 20px 18px; }
  .r-grid { column-gap: 2px; }
  .r-clock { --n: 34px; gap: 16px; }
  .head-row.top .sec-head { flex-basis: auto; }
  .stamps { grid-template-columns: 1fr; gap: 40px; }
  .hrs-grid { grid-template-columns: 1fr; }
  .fit { grid-template-columns: 1fr; }
  .sec-head.w560 { flex-basis: auto; }
  .calc { flex-direction: column; }
  .calc-in { flex-basis: auto; border-right: 0; border-bottom: 1px solid var(--color-rule); }
  .contact-row { min-height: 640px; background-image: linear-gradient(180deg, var(--color-sand) 0%, rgb(236 236 236 / 96%) 52%, rgb(236 236 236 / 0%) 82%), url("/brand/photo/sea.jpg"); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 56px; align-content: start; padding-top: 48px; }
  .hero-fig { width: min(540px, 100%); }
  /* One column is taller than a screen, so the cover scrolls instead of pinning. */
  .story .cover { height: auto; margin-bottom: 0; }
  .story .cover > .stage { position: relative; height: auto; }
}

@media (max-width: 760px) {
  .links { display: none; }
  .hero { padding-top: 24px; gap: 40px; }
  .hero-copy { gap: 20px; }
  .hero-lede { font-size: 18px; line-height: 26px; }
  .hero-fig { width: 100%; height: auto; }
  .ctas { width: 100%; }
  .ctas .btn { flex: 1 1 auto; justify-content: center; }
  /* The stack of paper stays in view above the case file. */
  .hero-photo { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 50% 88%; }
  .file { position: relative; top: 0; width: auto; margin: -48px 8px 0; }
  .file .frow { --fl: 84px; }
  .ledger .row { flex-direction: column; gap: 12px; padding-block: 20px; }
  .ledger dt { flex-basis: auto; }
  .card.board { flex-wrap: wrap; }
  .lane { flex-basis: calc(50% - 5px); }
  .tiles { flex-wrap: wrap; }
  .tile { flex-basis: 50%; }
  .tile:nth-child(3) { border-left: 0; border-top: 1px solid var(--color-rule); flex-basis: 100%; }
  .findings { display: none; }
  .said, .tally { display: flex; }
  .said:empty, .tally:has(.tally-pills:empty) { display: none; }
  .limit, .stance { padding-bottom: 6px; }
  /* Touch: bigger things to grab. */
  input[type="range"] { height: 32px; }
  input[type="range"]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -11px; }
  input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; }
  .rules select { padding-block: 10px; }
  .btn-sm { height: 40px; }
  .contact .alt a { display: inline-block; padding-block: 10px; }
  .calc-out { flex-direction: column; gap: 24px; padding: 24px; }
  .ro + .ro { border-left: 0; padding-left: 0; border-top: 1px solid var(--color-rule); padding-top: 20px; }
  .ro b { line-height: 1.1; }
  .ground-photo { aspect-ratio: 4 / 3; }
  .film-frame { border-width: 5px; border-radius: 20px; }
  .film-frame video, .film-play { border-radius: 15px; }
  .film-play span { height: 48px; padding-inline: 18px 20px; font-size: 15px; }
  .film-play small { display: none; }
  .watch { flex: 1 1 100%; justify-content: center; }
  .hrs-ctl { flex-direction: column; align-items: stretch; gap: 8px; padding: 16px 20px 12px; }
  .hrs-ctl label { justify-content: space-between; }
  .hrs-card { padding: 24px 20px; gap: 24px; }
  .hrs-chart svg { height: 150px; }
  .contact-row { border-radius: 24px; }
  .ftop { flex-direction: column; align-items: flex-start; }
  .fcols { flex-wrap: wrap; gap: 24px 40px; }
  .fcols div { gap: 0; }
  .fcols a { padding-block: 11px; }
  .fbot { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 360px) {
  .bc .pill { white-space: normal; }
}

/* ---------- Motion (ported from the sea edition) ---------- */
/* Page load: the hero copy and the case file rise into place, staggered. */
@keyframes rise { from { opacity: 0; translate: 0 28px; } }
.hero-copy > *, .hero-fig > * { animation: rise 0.9s var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 90ms); }
.hero-copy > :nth-child(3) { --i: 3; } .hero-copy > :nth-child(4) { --i: 4; }
.hero .display { animation: none; }
.hero-fig > :nth-child(1) { --i: 2; } .hero-fig > :nth-child(2) { --i: 3; } .hero-fig > :nth-child(3) { --i: 4; }

/* Motion off */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  :root { scroll-behavior: auto; }
}

/* ---------- Story: the page as a sequence of pinned panels ---------- */
/* main.js writes three numbers on every section:
   --e  entry: 0 as the panel's top reaches the bottom of the viewport, 1 once it pins (unpinned: once it is well in view)
   --p  progress through the pinned scroll length, 0 to 1 (unpinned sections: same as --e)
   --v  passage: 0 when the section's top enters, 1 when its bottom leaves; drives parallax
   Every value rests at 1 without the engine, so the page is complete with no JS and under reduced motion. */
main > section { --e: 1; --p: 1; --v: 0.5; }
/* --steps screens of progress, then one screen while the next panel slides over. */
.story .pin { height: calc((var(--steps) + 2) * 100vh); margin-bottom: -100vh; }
.story .pin > .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: clip;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg, transparent);
  box-shadow: 0 -32px 64px -32px rgb(23 23 23 / 18%);
}
.story .pin > .stage > .sec { padding-block: 32px; gap: min(64px, 6vh); }
/* Panels that pin under the bar keep its height clear. */
.story .pin:not(.cover) > .stage { padding-top: var(--bar-h); }
.story .cover .stage { min-height: 0; justify-content: flex-start; box-shadow: none; }

/* Words rise out of a mask. Headlines on entry; the cover headline on load. */
.w { display: inline-block; overflow: clip; vertical-align: top; padding: 0.08em 0 0.18em; margin: -0.08em 0 -0.18em; }
.w i { display: inline-block; font-style: normal; }
.h2 .w i { --a: clamp(0, (var(--e) - 0.3 - var(--j) * 0.045) / 0.3, 1); translate: 0 calc((1 - var(--a)) * 108%); }
@keyframes wrise { from { translate: 0 108%; } }
.display .w i { animation: wrise 1s var(--ease-spring) both; animation-delay: calc(0.05s + var(--j) * 55ms); }

/* Scrubbed elements. .sc follows --p (inside a pinned panel), .en follows --e (arrival). --t0 is where it starts, --d how long it takes. */
.sc { --a: clamp(0, (var(--p) - var(--t0, 0)) / var(--d, 0.2), 1); opacity: var(--a); translate: 0 calc((1 - var(--a)) * var(--dy, 14px)); }
.en { --a: clamp(0, (var(--e) - var(--t0, 0.45)) / var(--d, 0.4), 1); opacity: var(--a); translate: 0 calc((1 - var(--a)) * var(--dy, 24px)); }
.sc.pop { translate: none; scale: calc(0.88 + 0.12 * var(--a)); }
.lede.en { --t0: 0.55; --d: 0.35; --dy: 12px; }

/* Why: the ledger rows arrive in turn. The race plays on its own clock (main.js). */
.why .ledger { --t0: 0.55; --d: 0.35; }
.why .ledger .row { --d: 0.1; }
.why .ledger .row:nth-child(1) { --t0: 0.24; }
.why .ledger .row:nth-child(2) { --t0: 0.42; }
.why .ledger .row:nth-child(3) { --t0: 0.64; }

/* Intake: the figure arrives with the panel; main.js scrubs the read itself. */
.intake .intake-fig { --t0: 0.45; --d: 0.4; }

/* Case file: findings, then the decision, then the arrival, oldest step first. */
.casefile .stamp { --d: 0.35; }
.casefile .stamp:nth-child(1) { --t0: 0.4; }
.casefile .stamp:nth-child(2) { --t0: 0.5; }
.casefile .stamp:nth-child(3) { --t0: 0.6; }
.casefile .review .frow { --d: 0.07; }
.casefile .review .frow:nth-child(2) { --t0: 0.04; }
.casefile .review .frow:nth-child(3) { --t0: 0.09; }
.casefile .review .frow:nth-child(4) { --t0: 0.14; }
.casefile .review .frow:nth-child(5) { --t0: 0.19; }
.casefile .review .frow:nth-child(6) { --t0: 0.24; }
.casefile .review .card-foot .pill { --t0: 0.32; --d: 0.05; }
.casefile .decide .opt { --d: 0.07; }
.casefile .decide .opt:nth-child(1) { --t0: 0.4; }
.casefile .decide .opt:nth-child(2) { --t0: 0.45; }
.casefile .decide .opt:nth-child(3) { --t0: 0.5; }
.casefile .decide .opt.chosen { --c: clamp(0, (var(--p) - 0.56) / 0.05, 1); border-color: color-mix(in srgb, var(--color-ink) calc(var(--c) * 100%), var(--color-rule)); }
.casefile .decide .opt-head .pill { --t0: 0.61; --d: 0.05; }
.casefile .arrive .hrow { --d: 0.07; }
.casefile .arrive .hrow:nth-child(4) { --t0: 0.68; }
.casefile .arrive .hrow:nth-child(3) { --t0: 0.73; }
.casefile .arrive .hrow:nth-child(2) { --t0: 0.78; }
.casefile .arrive .hrow:nth-child(1) { --t0: 0.83; }
.casefile .arrive .arrive-top .pill { --t0: 0.9; --d: 0.06; }

/* Criteria: the two panels part, then the packet scores in a row at a time. */
.criteria .rules { --t0: 0.4; --d: 0.4; translate: calc((1 - var(--a)) * -32px) 0; }
.criteria .findings { --t0: 0.5; --d: 0.4; translate: calc((1 - var(--a)) * 32px) 0; }
.criteria .frows li { --a: clamp(0, (var(--p) - var(--t0)) / 0.09, 1); opacity: var(--a); translate: 0 calc((1 - var(--a)) * 10px); }
.criteria .frows li:nth-child(1) { --t0: 0.08; }
.criteria .frows li:nth-child(2) { --t0: 0.15; }
.criteria .frows li:nth-child(3) { --t0: 0.22; }
.criteria .frows li:nth-child(4) { --t0: 0.29; }
.criteria .frows li:nth-child(5) { --t0: 0.36; }
.criteria .frows li:nth-child(6) { --t0: 0.43; }
.criteria .frows li:nth-child(7) { --t0: 0.5; }
.criteria .frows .pill { scale: calc(0.85 + 0.15 * var(--a)); }

/* Operate: one view. The board and analytics arrive with the panel; the counts and weekly bars finish before it pins. */
.operate .op-grid > :nth-child(1) { --t0: 0.4; --d: 0.35; }
.operate .op-grid > :nth-child(2) { --t0: 0.45; --d: 0.35; }
.operate .op-grid > :nth-child(3) { --t0: 0.5; --d: 0.35; }
.operate .op-grid > :nth-child(4) { --t0: 0.55; --d: 0.35; }
.operate .wk i { --a: clamp(0, (var(--e) - var(--t0)) / 0.2, 1); transform-origin: 50% 100%; scale: 1 var(--a); }
.operate .wk:nth-child(1) i { --t0: 0.55; }
.operate .wk:nth-child(2) i { --t0: 0.58; }
.operate .wk:nth-child(3) i { --t0: 0.61; }
.operate .wk:nth-child(4) i { --t0: 0.64; }
.operate .wk:nth-child(1) i.ink { --t0: 0.61; }
.operate .wk:nth-child(2) i.ink { --t0: 0.64; }
.operate .wk:nth-child(3) i.ink { --t0: 0.67; }
.operate .wk:nth-child(4) i.ink { --t0: 0.7; }
@media (min-width: 1101px) {
  .story .operate .op-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; grid-auto-flow: column; column-gap: 32px; }
  .story .operate .op-grid > .card + .op-text { margin-top: 0; }
}
/* Narrow laptops: the board takes more of the row so its lanes hold their pills. */
@media (min-width: 1101px) and (max-width: 1279px) {
  .story .operate .op-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .story .operate .card.board { padding: 12px; gap: 8px; }
  .story .operate .bc { padding: 8px; }
  .story .operate .tile { padding: 12px; }
  .story .operate .tile b { font-size: 24px; line-height: 28px; }
}
/* At this width every panel stacks into one column and outgrows the screen, so none pins. */
@media (max-width: 1100px) {
  .story .pin:not(.cover) { height: auto; margin-bottom: 0; scroll-margin-top: var(--bar-h); }
  .story .pin:not(.cover) > .stage { position: relative; height: auto; padding-top: 0; }
}
/* One column; capped so the pages stay page-sized on a tablet. */
@media (max-width: 900px) {
  .race { grid-template-columns: minmax(0, 520px); }
}

/* Principles, Value, Contact: arrive on entry, with a little parallax on the figure. */
.ground .ledger .row { --d: 0.3; }
.ground .ground-photo { --t0: 0.5; --d: 0.4; }
.ground .ledger .row:nth-child(1) { --t0: 0.45; }
.ground .ledger .row:nth-child(2) { --t0: 0.55; }
.ground .ledger .row:nth-child(3) { --t0: 0.65; }
.story .ground .ledger.plx { translate: 0 calc((0.5 - var(--v)) * 56px); }
.story .value .calc.plx { translate: 0 calc((1 - var(--a)) * 24px + (0.5 - var(--v)) * 40px); }

/* Short viewports: tighter rows so a pinned panel fits under the bar. */
@media (max-height: 900px) {
  .story .pin .ledger .row { padding-block: 18px; }
  .story .pin .h2 { font-size: clamp(36px, 4.4vw, 60px); }
  .story .pin .frow { padding-block: 7px; }
  .story .pin .hrow { padding-block: 6px; }
}
@media (max-height: 800px) {
  .story .pin .ledger .row { padding-block: 11px; }
  .story .pin .ledger dt b { font-size: 40px; line-height: 44px; }
}
