/* VITAL public site — one stylesheet, no external requests, no inline styles (CSP: style-src 'self'). */

:root {
  color-scheme: dark light;
  --bg: #10171b;
  --bg-veil: rgba(16, 23, 27, 0.92);
  --bg-2: #0c1215;
  --surface: #152026;
  --surface-2: #1a2930;
  --border: #304147;
  --text: #e8f0ef;
  --muted: #b6cac9;   /* secondary text: lifted for small sizes */
  --accent: #98e1df;
  --accent-hi: #b6efed;
  --accent-ink: #0a1316;
  --accent-soft: rgba(152, 225, 223, 0.09);
  --accent-glow: rgba(152, 225, 223, 0.17);
  --link: #98e1df;
  --focus: #98e1df;
  --shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.75), 0 2px 10px -4px rgba(0, 0, 0, 0.5);
  --frame: #0b1013;
  --frame-bar: #172228;
  --frame-line: #2a3a41;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --maxw: 72rem;
  --radius: 16px;
  --gutter: clamp(1.1rem, 4vw, 2.25rem);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6f8;
    --bg-veil: rgba(244, 246, 248, 0.92);
    --bg-2: #e8edf1;
    --surface: #ffffff;
    --surface-2: #eef2f6;
    --border: #c3cfd7;
    --text: #14212a;
    --muted: #364751;   /* >= 7:1 on every light surface */
    --accent: #1c4b9c;
    --accent-hi: #163b7c;
    --accent-ink: #ffffff;
    --accent-soft: rgba(28, 75, 156, 0.07);
    --accent-glow: rgba(28, 75, 156, 0.13);
    --link: #1c4b9c;
    --focus: #1c4b9c;
    --shadow: 0 30px 60px -30px rgba(20, 40, 60, 0.42), 0 2px 8px -3px rgba(20, 40, 60, 0.18);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hi); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.015em; font-weight: 650; }
h1 { font-size: clamp(2.2rem, 1rem + 4.6vw, 3.9rem); letter-spacing: -0.03em; line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(1.65rem, 1.1rem + 2vw, 2.55rem); letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }
li { margin-bottom: 0.4em; }
strong { font-weight: 650; }
code { font: 0.9em var(--mono); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 0.08em 0.4em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }
.measure { max-width: 40rem; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  margin: 0 0 1.1rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; display: inline-block; width: 1.6rem; height: 1px; background: currentColor; vertical-align: middle; margin-right: 0.7rem; }
.lede { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); line-height: 1.5; color: var(--muted); max-width: 40rem; }
.lede strong { color: var(--text); }

/* skip link */
.skip {
  position: fixed; left: 0.75rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.7rem 1rem; border-radius: 10px; font-weight: 650; text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-veil);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 8px; min-height: 2.75rem; }
.brand img { width: 98px; height: 44px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  display: block; padding: 0.55rem 0.8rem; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: 0.97rem; font-weight: 550;
}
.nav a:hover { color: var(--text); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 10px 10px 0 0; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.menu-btn {
  display: none; align-items: center; gap: 0.5rem;
  font: 600 0.95rem var(--font); color: var(--text);
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  padding: 0.55rem 0.85rem; cursor: pointer; min-height: 2.75rem;
}
.menu-btn:hover { border-color: var(--accent); }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after {
  display: block; width: 1.05rem; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
.menu-btn .bars::before { top: -5px; }
.menu-btn .bars::after { top: 5px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.65rem 1.25rem;
  font: 650 1rem/1.2 var(--font); text-decoration: none; text-align: center;
  border-radius: 11px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-hi); border-color: var(--accent-hi); }
.btn--small { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section--tint { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); max-width: 44rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* hero */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem); position: relative; overflow: clip; isolation: isolate; }
.hero h1 { max-width: 15em; }
.hero .lede { margin-bottom: 0; }
/* bold hero: brand, one headline, one line, the loop */
.hero--bold { text-align: center; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem); }
/* the one selective accent: a faint wash behind the headline */
.hero--bold::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -25% 0 auto 0; margin-inline: auto; width: min(95vw, 80rem); aspect-ratio: 2 / 1; background: radial-gradient(closest-side, var(--accent-soft), transparent 75%); }
.hero-brand { display: block; margin: 0 auto clamp(1rem, 3vw, 1.75rem); width: min(22rem, 66vw); }
.hero-brand img { width: 100%; height: auto; }
.hero--bold h1 { font-size: clamp(2.7rem, 1rem + 7.2vw, 5.8rem); line-height: 1; letter-spacing: -0.04em; max-width: none; margin: 0 auto 0.35em; }
.hero-sub { font-size: clamp(1.1rem, 1rem + 0.7vw, 1.5rem); line-height: 1.4; color: var(--muted); max-width: 38rem; margin: 0 auto; }
.btn-row--center { justify-content: center; }
.hero--bold .btn { min-height: 3.1rem; padding-inline: 1.6rem; font-size: 1.05rem; }
.hero-video { position: relative; margin-top: clamp(2rem, 5vw, 3.5rem); }
/* sized so the whole player (with controls) fits on screen below the header; never wider than 56rem */
.hero-video .frame { max-width: min(56rem, calc((100vh - 9rem) * 16 / 9)); margin-inline: auto; }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--frame); }
.hero-video video:focus, .hero-video video:focus-within { outline: 3px solid #98e1df; outline-offset: 3px; }
.film-frame { position: relative; }
.frame.film-frame::before { display: none; }
.film-play {
  /* placed over the poster's measured empty top-left area (centre 13.2% / 19.8%), not over the chart lines in the middle */
  --pb: clamp(2.75rem, 10vw, 6.5rem);   /* 44 px minimum touch target on phones */
  position: absolute; left: max(0.75rem, calc(13.2% - var(--pb) / 2)); top: max(0.75rem, calc(19.8% - var(--pb) / 2)); width: var(--pb); aspect-ratio: 1; display: grid; place-items: center;
  background: rgba(8, 12, 14, 0.78); border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 50%; cursor: pointer; padding: 0;
}
.film-play[hidden] { display: none; }
.film-play-icon { width: 0; height: 0; margin-left: 8%; border-style: solid; border-width: clamp(0.8rem, 2.2vw, 1.3rem) 0 clamp(0.8rem, 2.2vw, 1.3rem) clamp(1.3rem, 3.6vw, 2.1rem); border-color: transparent transparent transparent #e8f0ef; }
.film-play:hover { border-color: #98e1df; background: rgba(8, 12, 14, 0.9); }
.film-play:hover .film-play-icon { border-left-color: #98e1df; }
.film-play:focus-visible { outline: 3px solid #98e1df; outline-offset: 4px; }
.hero-video .fine { margin: 0.9rem 0 0; font-size: 0.88rem; color: var(--muted); }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero--bold .hero-meta { margin: 1.25rem 0 0; font-size: 0.95rem; }

/* image-led feature bands */
.band { padding-block: clamp(3rem, 7vw, 6.5rem); position: relative; overflow: clip; }
.band--tint { background: var(--bg-2); border-block: 1px solid var(--border); }
.wrap--wide { max-width: 84rem; }
.band-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4.5vw, 4.5rem); align-items: center; }
.band--flip .band-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.band--flip .band-copy { order: 2; }
.band h2 { font-size: clamp(2rem, 1rem + 3.4vw, 3.7rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 0.45em; }
.band-copy > p:not(.eyebrow) { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 26rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(0.9rem, 4vw, 2.5rem); }
.phones .phone { width: min(48%, 23rem); }
@media (max-width: 760px) { .phones { flex-direction: column; align-items: center; } .phones .phone { width: min(100%, 22rem); } }
@media (max-width: 900px) {
  .band-grid, .band--flip .band-grid { grid-template-columns: minmax(0, 1fr); }
  .band--flip .band-copy { order: 0; }
  .band-copy > p:not(.eyebrow) { max-width: 36rem; }
}

/* trust strip and closing call to action */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.strip > div { background: var(--surface); padding: clamp(1.25rem, 3vw, 2rem); }
.strip b { display: block; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); line-height: 1.2; letter-spacing: -0.015em; }
.strip-note { margin: 1.1rem 0 0; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 760px) { .strip { grid-template-columns: minmax(0, 1fr); } }
.cta-band--bold .card { text-align: center; border-color: var(--accent); padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.cta-band--bold h2 { font-size: clamp(2rem, 1rem + 3.4vw, 3.6rem); letter-spacing: -0.035em; max-width: none; margin-inline: auto; }

.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3rem); position: relative; overflow: clip; isolation: isolate; }
.page-hero h1 { font-size: clamp(2.1rem, 1rem + 3.8vw, 3.4rem); max-width: 18em; }

/* device frames (CSS only) */
.shot-btn {
  display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none;
  cursor: zoom-in; border-radius: inherit; position: relative; color: inherit; font: inherit;
}
.shot-btn::after {
  content: "Enlarge"; position: absolute; right: 0.7rem; bottom: 0.7rem;
  background: rgba(8, 12, 14, 0.82); color: #e8f0ef; font: 600 0.78rem var(--font);
  padding: 0.28rem 0.65rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0; transform: translateY(4px); transition: opacity 0.18s ease, transform 0.18s ease; pointer-events: none;
}
.shot-btn:hover::after, .shot-btn:focus-visible::after { opacity: 1; transform: none; }
.shot-btn img { width: 100%; }
/* the button fills a clipped frame, so the focus ring goes inside it, on a dark band for contrast */
.shot-btn:focus-visible { outline: 4px solid #98e1df; outline-offset: -4px; box-shadow: inset 0 0 0 8px rgba(6, 10, 12, 0.72); }

.frame {
  position: relative; background: var(--frame); border: 1px solid var(--frame-line);
  border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.frame::before {
  content: ""; display: block; height: 1.7rem; background: var(--frame-bar); border-bottom: 1px solid var(--frame-line);
  background-image: radial-gradient(circle, #5b6f77 0 3.5px, transparent 4.5px), radial-gradient(circle, #5b6f77 0 3.5px, transparent 4.5px), radial-gradient(circle, #5b6f77 0 3.5px, transparent 4.5px);
  background-size: 1.1rem 100%; background-repeat: no-repeat;
  background-position: 0.5rem 50%, 1.6rem 50%, 2.7rem 50%;
}
.frame .shot-btn { border-radius: 0; }
.frame img, .phone img, .gallery .thumb img { display: block; width: 100%; height: auto; }

.phone {
  position: relative; background: var(--frame); border: 7px solid #1c2a31; outline: 1px solid var(--frame-line);
  border-radius: 2rem; box-shadow: var(--shadow); overflow: hidden; width: 100%;
}
.phone::before {
  content: ""; position: absolute; z-index: 2; top: 0.45rem; left: 50%; width: 26%; height: 0.38rem; margin-left: -13%;
  background: #05080a; border-radius: 999px; pointer-events: none;
}
.phone .shot-btn { border-radius: 0; }

/* composition: desktop frame beside a full-size phone (phones are never shrunk to thumbnails) */
.stack { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(1rem, 2.4vw, 1.75rem); align-items: center; }
.stack--left { grid-template-columns: 19rem minmax(0, 1fr); }
.stack--wide { display: block; }
@media (max-width: 900px) {
  .stack, .stack--left { grid-template-columns: minmax(0, 1fr); }
  .stack .phone { width: min(100%, 22rem); margin-inline: auto; }
}

/* small layout helpers */
.caption-line { margin-top: 1.5rem; font-size: 0.9rem; }
.note-line { margin-top: 1.25rem; font-size: 0.92rem; }
.formats-h { margin-top: 2.5rem; }
.import-checks, .baseline-cards { margin-top: 2.5rem; }
.stack { margin-bottom: 2rem; }
@media (max-width: 760px) { .stack { margin-bottom: 0; } }

/* generic cards and grids */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; position: relative;
}
.card h3 { margin-bottom: 0.45em; }
.card--commit h3 { line-height: 1.28; }
@media (min-width: 981px) { .card--commit h3 { min-height: 2.56em; } }
.link-block { display: inline-flex; align-items: center; min-height: 2.75rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: var(--text); display: block; transition: border-color 0.18s ease, transform 0.18s ease; }
.card--link:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.card--link .more { color: var(--accent); font-weight: 650; font-size: 0.95rem; }
.card .kicker { display: block; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem; }
.card--plain { background: transparent; }

/* evidence chips: outlined pills, as in the app */
.chip {
  display: inline-flex; align-items: center; font-size: 0.8rem; font-weight: 650; line-height: 1;
  padding: 0.32rem 0.7rem; border-radius: 999px; border: 1.5px solid var(--text); color: var(--text); white-space: nowrap;
  vertical-align: middle;
}
.chip--calc { border-color: var(--accent); color: var(--accent); }
.chip--estimate { border-style: dashed; border-color: var(--muted); color: var(--text); }
.chip--reported { border-style: dotted; border-width: 2px; border-color: var(--accent); color: var(--text); }
.chip--interp { border-color: var(--muted); color: var(--muted); }
.chip--cant { border-color: var(--muted); color: var(--muted); border-style: dashed; }

/* definition list of evidence classes */
.evidence-list { display: grid; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.evidence-list li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; margin: 0; padding-block: 0.9rem; border-top: 1px solid var(--border); }
.evidence-list li:last-child { border-bottom: 1px solid var(--border); }
.evidence-list p { margin: 0; color: var(--muted); }
.evidence-list p strong { color: var(--text); }
@media (max-width: 560px) { .evidence-list li { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; } }

/* two-column text + visual */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--flip > :first-child { order: 2; }
.split--top { align-items: start; }
@media (max-width: 900px) {
  .split, .split--flip { grid-template-columns: minmax(0, 1fr); }
  .split--flip > :first-child { order: 0; }
}

/* anatomy of a value (HTML mock of a Command tile, synthetic demo values) */
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: var(--shadow); position: relative;
}
.tile .tile-label { font-weight: 650; color: var(--muted); margin: 0 0 0.35rem; font-size: 0.95rem; }
.tile .tile-value { font-size: clamp(2.3rem, 2rem + 1.6vw, 3.1rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.tile .tile-value small { font-size: 0.5em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 0.15em; }
.tile .tile-window { color: var(--muted); margin: 0.3rem 0 0.6rem; font-size: 0.95rem; }
.tile .tile-compare { margin: 0.9rem 0 0.5rem; font-weight: 600; }
.tile .tile-note { margin: 0; color: var(--muted); font-size: 0.92rem; padding-top: 0.8rem; border-top: 1px solid var(--border); }
.num {
  display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font: 700 0.78rem/1 var(--font); margin-right: 0.35rem; vertical-align: 0.12em;
}
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.legend li { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); gap: 0.6rem; margin: 0; }
.legend li > .num { margin-top: 0.15rem; }
.legend p { margin: 0; color: var(--muted); }
.legend strong { color: var(--text); display: block; }

/* notes and callouts */
.note {
  border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--surface);
  border-radius: 12px; padding: 1.1rem 1.35rem; margin-block: 1.75rem;
}
.note p:last-child { margin-bottom: 0; }
.note strong:first-child { color: var(--text); }
.note--draft { border-left-color: #e3b341; }
@media (prefers-color-scheme: light) { .note--draft { border-left-color: #8a5a00; } }

/* gallery */
.gallery { display: grid; gap: 1.5rem 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.gallery li { margin: 0; }
.gallery figure { margin: 0; }
.gallery .thumb { border: 1px solid var(--frame-line); border-radius: 12px; overflow: hidden; background: var(--frame); box-shadow: var(--shadow); transition: transform 0.2s ease; }
.gallery .thumb:hover { transform: translateY(-3px); }
.gallery figcaption { margin-top: 0.8rem; font-size: 0.95rem; color: var(--muted); }
.gallery figcaption strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 0.15rem; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

/* features tour */
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.toc li { margin: 0; }
.toc a {
  display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: 0.92rem; font-weight: 550; background: var(--surface);
}
.toc a:hover { border-color: var(--accent); color: var(--accent); }
.feature { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--border); }
.feature .num-label { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; display: block; }
.feature h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.3rem); }
.ticks { list-style: none; padding: 0; margin: 1.1rem 0 0; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.55rem; }
.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.72em; width: 0.62rem; height: 0.62rem; border-radius: 3px; background: var(--accent); transform: rotate(45deg) scale(0.8); }
.feature .caption { font-size: 0.88rem; color: var(--muted); margin-top: 1.4rem; }
.feature .visual-note { margin-top: 1rem; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.15rem 1.35rem 1.15rem 4rem; position: relative;
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.2rem; top: 1.1rem; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent); font-weight: 700;
}
.steps h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); }

/* data sources */
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.formats li { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.25rem; }
.formats b { display: block; font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 0.25rem; }
.formats span { color: var(--muted); font-size: 0.95rem; }

/* dl as plain definition rows */
.defs { margin: 0; }
.defs > div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 0.4rem 1.5rem; padding-block: 1rem; border-top: 1px solid var(--border); }
.defs > div:last-child { border-bottom: 1px solid var(--border); }
.defs dt { font-weight: 650; }
.defs dd { margin: 0; color: var(--muted); }
.defs dd strong { color: var(--text); }
@media (max-width: 700px) { .defs > div { grid-template-columns: minmax(0, 1fr); } }

/* faq */
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 650; font-size: 1.1rem; position: relative; border-radius: 6px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.45rem;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -0.2rem; }
.faq .answer { padding: 0 0 1.4rem; color: var(--muted); max-width: 46rem; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer strong { color: var(--text); }
.faq h2 { margin-top: 3rem; font-size: 1.5rem; }
.faq h2:first-child { margin-top: 0; }

/* legal prose */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.6rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.7rem; }
.prose li { margin-bottom: 0.5em; }
.pending {
  display: inline; background: rgba(227, 179, 65, 0.16); border-bottom: 1px dashed #e3b341; border-radius: 3px; padding: 0 0.25em; font-size: 0.93em;
}
@media (prefers-color-scheme: light) { .pending { background: rgba(138, 90, 0, 0.1); border-bottom-color: #8a5a00; } }
.owner-decision { background: rgba(227, 179, 65, 0.16); color: inherit; border-bottom: 1px dashed #e3b341; border-radius: 3px; padding: 0 0.25em; font-size: 0.93em; }
@media (prefers-color-scheme: light) { .owner-decision { background: rgba(138, 90, 0, 0.1); border-bottom-color: #8a5a00; } }
.draft-stamp {
  display: inline-block; border: 1.5px solid #e3b341; color: #e3b341; border-radius: 8px; padding: 0.3rem 0.8rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 1.2rem;
}
@media (prefers-color-scheme: light) { .draft-stamp { border-color: #8a5a00; color: #6e4700; } }

/* placeholder (contact) */
.placeholder {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.5rem; background: var(--surface);
}
.placeholder .tag { display: inline-block; font: 700 0.75rem var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 0.2rem 0.55rem; margin-bottom: 0.8rem; }
.placeholder p { margin-bottom: 0.4rem; }

/* sign-in panel */
.signin-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow); max-width: 36rem;
}
.signin-panel .btn { width: 100%; min-height: 3.25rem; font-size: 1.08rem; }
.signin-panel .fine { color: var(--muted); font-size: 0.92rem; margin: 1rem 0 0; }
.signin-panel code { word-break: break-all; }

/* CTA band */
.cta-band { text-align: left; }
.cta-band .card { padding: clamp(1.75rem, 5vw, 3.25rem); background: var(--surface); }
.cta-band h2 { max-width: 22ch; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-block: 3rem 2.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-grid h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; font-weight: 650; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.ab-wordmark { margin: 0 0 1rem; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.ab-wordmark--large { margin: 0; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem); }
.footer-blurb { color: var(--muted); font-size: 0.95rem; max-width: 26rem; margin: 0; }
.footer-base { margin-top: 2.25rem; padding-top: 1.4rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.footer-base p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* lightbox (native <dialog>: focus trap and Esc come from the platform) */
.lightbox {
  border: 0; padding: 0; background: transparent; color: #e8f0ef; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  margin: 0; overflow: hidden;
}
.lightbox::backdrop { background: rgba(4, 7, 9, 0.88); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; place-items: center; padding: 0.75rem; gap: 0.6rem; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; max-width: 96rem; }
.lb-count { font-size: 0.9rem; color: #c3d3d2; }
.lb-stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; min-height: 0; max-width: 96rem; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); background: #0b1013; }
.lb-btn {
  font: 650 0.95rem var(--font); color: #e8f0ef; background: rgba(20, 30, 35, 0.92); border: 1px solid #4a5d65; border-radius: 10px;
  min-height: 2.75rem; min-width: 2.75rem; padding: 0.4rem 0.9rem; cursor: pointer;
}
.lb-btn:hover { border-color: #98e1df; color: #98e1df; }
.lb-btn:focus-visible { outline: 3px solid #98e1df; outline-offset: 2px; }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -1.4rem; z-index: 2; }
.lb-prev { left: 0.4rem; }
.lb-next { right: 0.4rem; }
.lb-caption { text-align: center; font-size: 0.95rem; color: #d6e3e2; max-width: 60rem; margin: 0; }
html.lb-open { overflow: hidden; }

/* mobile navigation */
@media (max-width: 860px) {
  .js .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .nav { margin-left: 0; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.5);
    padding: 0.75rem var(--gutter) 1.25rem;
  }
  .js .nav.is-open { display: block; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav a { padding: 0.9rem 0.5rem; font-size: 1.05rem; border-radius: 8px; }
  .js .nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  /* no JS: nav stays visible as a wrapping row under the logo */
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: 0.5rem; }
  html:not(.js) .nav { order: 3; width: 100%; margin: 0; }
  html:not(.js) .nav ul { flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .footer-grid a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .footer-grid li { margin-bottom: 0; }
  .toc a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}
@media (max-width: 560px) {
  .hero .btn-row { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero .btn-row .btn { width: 100%; }
}
@media (max-width: 420px) {
  .brand img { width: 82px; height: 37px; }
  .header-actions .btn--small { padding-inline: 0.8rem; }
  .menu-btn { padding-inline: 0.7rem; }
}

/* motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  .card--link:hover, .gallery .thumb:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .skip, .lightbox { display: none; }
  body { background: #fff; color: #000; }
}

/* features tour: still first, one or two sentences, details folded */
.feature--lead { padding-block: clamp(3rem, 7vw, 5.5rem); }
.feature-visual .stack--wide { display: block; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.75rem); }
.pair--below { margin-top: clamp(1rem, 2.4vw, 1.75rem); }
.feature-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.25rem, 4vw, 4rem); align-items: start; margin-top: clamp(1.75rem, 4vw, 3rem); }
.feature-body--solo { margin-top: 0; }
.feature--lead h2 { font-size: clamp(1.9rem, 1rem + 2.8vw, 3.2rem); line-height: 1.05; letter-spacing: -0.03em; }
.lead-text { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 34rem; margin: 0; }
details.more summary {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0.45rem 1.1rem; cursor: pointer; list-style: none;
  border: 1px solid var(--border); border-radius: 999px; font-weight: 650; color: var(--accent); background: var(--surface);
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: ""; width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease; }
details.more[open] summary::after { transform: rotate(225deg); }
details.more summary:hover { border-color: var(--accent); }
details.more[open] summary { margin-bottom: 0.5rem; }
details.more .ticks { margin-top: 0.75rem; }
@media (max-width: 900px) { .feature-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .pair { grid-template-columns: minmax(0, 1fr); }
}

/* owner story copy (homepage) */
.eyebrow--center { justify-content: center; text-align: center; margin-bottom: 0.9rem; }
.hero--bold h1 { font-size: clamp(2.3rem, 1rem + 5vw, 4.6rem); max-width: 16em; text-wrap: balance; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-sub--small { font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem); margin-top: 0.8rem; }
.story-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.story h2 { font-size: clamp(1.7rem, 1rem + 2vw, 2.5rem); letter-spacing: -0.03em; }
.story p { color: var(--muted); font-size: 1.08rem; line-height: 1.6; max-width: 36rem; }
.story .story-q { color: var(--text); font-weight: 600; font-size: 1.2rem; border-left: 3px solid var(--accent); padding-left: 0.9rem; }
.cta-lede { color: var(--muted); font-size: 1.15rem; max-width: 34rem; margin: 0 auto 0.6rem; }
.cta-tag { font-weight: 700; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); margin: 0 auto 1.6rem; }
.hero-sub, .story p, .cta-lede, .cta-band--bold h2, .story h2 { text-wrap: pretty; }
.story .story-q { text-wrap: balance; }

/* purpose-led homepage: rebuild + beyond */
.journey { list-style: none; counter-reset: j; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.9rem; }
.journey li { counter-increment: j; display: grid; grid-template-columns: 2.2rem 1fr; column-gap: 0.8rem; align-items: baseline; }
.journey li::before { content: counter(j, decimal-leading-zero); grid-row: span 2; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.journey b { font-size: 1.08rem; }
.journey span { color: var(--muted); font-size: 0.98rem; }
.shot-note { color: var(--muted); font-size: 0.86rem; margin: 0.7rem 0 0; }
.beyond { text-align: center; }
.beyond h2 { font-size: clamp(1.7rem, 1rem + 2vw, 2.5rem); letter-spacing: -0.03em; margin-inline: auto; }
.beyond-lede { color: var(--muted); font-size: 1.15rem; margin: 0 auto 2rem; }
.beyond-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); text-align: left; }
.beyond-grid > div { border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.3rem; background: var(--surface); }
.beyond-grid b { display: block; margin-bottom: 0.35rem; }
.beyond-grid p { color: var(--muted); margin: 0; font-size: 0.98rem; line-height: 1.5; }
.beyond-who { max-width: 40rem; margin: 2rem auto 0.4rem; color: var(--muted); font-size: 1.05rem; text-wrap: pretty; }
.beyond-who b { color: var(--text); }
.story-q--center { border-left: 0; padding-left: 0; margin: 1rem auto 0; max-width: 36rem; }
.story .story-q + p { margin-top: 1rem; }

/* REBUILD: subordinate typographic second line beside the approved VITAL lockup (no artwork) */
.brand-sub { margin-left: 0.55rem; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.hero-brand-sub { display: block; text-align: center; font-weight: 600; font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.2rem); letter-spacing: 0.4em; text-indent: 0.4em; color: var(--muted); text-transform: uppercase; margin: -0.5rem 0 1rem; }
@media (max-width: 400px) { .brand-sub { display: none; } }
