/* ==========================================================================
   Groundry — "Signal" edition
   Graphite canvas · hi-vis amber signal colour · wide Archivo display type ·
   square corners, viewfinder brackets and spec-sheet paper bands ·
   pinned scroll scenes with smooth scrolling
   ========================================================================== */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-ext.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2-variations"); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2-variations"); font-weight: 100 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
/* Components read only these tokens; .on-light (paper) and .on-amber re-scope them per band. */
:root {
  color-scheme: dark;
  --bg: #0E1013;             /* graphite */
  --surface: #14171B;
  --surface-2: #1B1F25;
  --ink: #F2F0EA;
  --ink-2: #C4C2BB;
  --muted: #8C9097;          /* 5.9:1 on --bg */
  --line: #242930;
  --line-strong: #39404A;
  --accent: #FFB21A;         /* hi-vis amber */
  --accent-hover: #FFC54D;
  --accent-soft: rgb(255 178 26 / .12);
  --accent-bright: #FFB21A;
  --cyan: #5CC8FF;           /* second annotation colour (hands) */
  --dark: #1B1F25;
  --dark-2: #0A0C0E;
  --on-dark: #F2F0EA;
  --on-dark-muted: #A9ACB2;
  --success: #15803D;
  --danger: #FF7A6B;

  --panel-paper: #ECEAE3;
  --panel-amber: #FFB21A;

  --font-display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wide: 118%;
  --fs-display: clamp(2.4rem, 1rem + 4.6vw, 5rem);
  --fs-h1: clamp(2.2rem, 1.3rem + 3.4vw, 4.2rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 3.1rem);
  --fs-h3: clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  --fs-lead: clamp(1.08rem, 1rem + .4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-mono: .72rem;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);

  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: none;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 700ms;

  --container: 1240px;
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --inset: 0px;
  --header-h: 68px;
}
.on-light {
  color-scheme: light;
  --bg: var(--panel-paper); --surface: #F7F6F2; --surface-2: #E1DED5;
  --ink: #111315; --ink-2: #33363A; --muted: #5B5E64;
  --line: #D3D0C7; --line-strong: #B5B1A6;
  --accent: #8F5400; --accent-hover: #6E4000; --accent-soft: rgb(143 84 0 / .1);
  --danger: #B91C1C;
  background: var(--bg); color: var(--ink);
}
.on-amber {
  color-scheme: light;
  --bg: var(--panel-amber); --surface: #FFC24A; --surface-2: #F0A20C;
  --ink: #111315; --ink-2: #2A2414; --muted: #4A3D1C;
  --line: rgb(17 19 21 / .18); --line-strong: rgb(17 19 21 / .4);
  --accent: #111315; --accent-hover: #000; --accent-bright: #111315;
  background: var(--bg); color: var(--ink);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.015em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 650; }
::selection { background: var(--accent-soft); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus-visible { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: .75rem 1rem; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 1rem; color: var(--on-dark); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 var(--s-5);
}
.eyebrow::before { content: ""; width: 1.5em; height: 1px; background: currentColor; }
.eyebrow--plain::before { display: none; }
.eyebrow--light { color: var(--on-dark-muted); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .04em; }
.accent { color: var(--accent); }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); margin: var(--s-7) 0 var(--s-4); }
.prose h3 { margin: var(--s-6) 0 var(--s-3); }
.prose p, .prose ul { color: var(--ink-2); }
.prose ul { padding-left: 1.25em; margin: var(--s-4) 0; }
.prose li + li { margin-top: .4em; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--on-dark); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.4em;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease, box-shadow var(--dur) ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent); }
.btn--primary:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--ink); --btn-fg: var(--ink); }
.btn--on-dark { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: rgb(245 240 232 / .35); }
.btn--on-dark:hover { --btn-bd: var(--on-dark); --btn-fg: var(--on-dark); }
.btn--sm { min-height: 44px; padding: .55em 1.1em; font-size: .9375rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--accent); text-decoration: none; min-height: 44px; }
.link-arrow:hover { color: var(--accent-hover); }
.link-arrow .icon { width: 1em; height: 1em; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgb(250 247 242 / .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--s-5); }

.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 26px; height: 26px; }
.logo__word { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; }
.logo--light, .logo--light:hover { color: var(--on-dark); }

.site-nav__panel { display: flex; align-items: center; gap: var(--s-5); }
.site-nav__list { list-style: none; display: flex; gap: var(--s-1); }
.site-nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem;
  font-size: .9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; border-radius: 999px;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.site-nav__list a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav__list a[aria-current="page"] { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }

.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) ease; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .site-nav__panel {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--s-6);
    padding: var(--s-5) var(--gutter) var(--s-7);
    background: var(--bg); border-top: 1px solid var(--line);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .site-nav__panel.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), visibility 0s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--line); }
  .site-nav__list a { width: 100%; min-height: 60px; padding: 0 .25rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; border-radius: 0; letter-spacing: -.02em; }
  .site-nav__list a:hover, .site-nav__list a[aria-current="page"] { background: transparent; box-shadow: none; color: var(--accent); }
  .site-nav__cta { align-self: flex-start; min-height: 52px; padding-inline: 1.6em; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .lead, .section--dark p { color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section__head { max-width: 760px; margin-bottom: var(--s-8); }
.section__head .lead { margin-top: var(--s-5); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }
.section__head--center .eyebrow { justify-content: center; }

/* Page header (inner pages) */
.page-hero { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(3rem, 2rem + 4vw, 5rem); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: var(--s-5); }
.crumbs { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-6); }
.crumbs ol { list-style: none; display: flex; gap: .6em; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: .6em; color: var(--line-strong); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(2.5rem, 1rem + 5vw, 5.5rem) clamp(3rem, 2rem + 4vw, 5rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 1rem + 4vw, 4.5rem); align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: var(--s-5); max-width: 54ch; }
.hero .btn-row { margin-top: var(--s-6); }
.hero__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s-6); }
.tag { display: inline-flex; align-items: center; gap: .45em; padding: .35em .75em; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.tag .icon { width: 13px; height: 13px; color: var(--accent); }

.stats { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); margin-top: clamp(3rem, 2rem + 4vw, 5rem); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { display: flex; flex-direction: column; padding: var(--s-6) 0; border-bottom: 1px solid var(--line); }
.stat dd { order: -1; margin: 0; }
@media (min-width: 720px) { .stat { padding: var(--s-6) var(--s-5) 0 0; border-bottom: 0; } .stat + .stat { padding-left: var(--s-5); border-left: 1px solid var(--line); } }
.stat__value { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: -.03em; line-height: 1; }
.stat__value small { font-size: .5em; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: .15em; }
.stat__label { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-small); max-width: 26ch; }

/* ---------- POV viewfinder (hero visual) ---------- */
.pov {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--dark); color: var(--on-dark); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; isolation: isolate; margin: 0;
}
.pov__scene, .pov__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pov__hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--font-mono); font-size: clamp(.58rem, .5rem + .25vw, .72rem); letter-spacing: .06em; }
.pov__corner { position: absolute; width: 22px; height: 22px; border: 2px solid rgb(245 240 232 / .75); }
.pov__corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.pov__corner--tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.pov__corner--bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.pov__corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.pov__rec { position: absolute; top: 18px; left: 46px; display: flex; align-items: center; gap: .5em; background: rgb(28 25 23 / .55); padding: .3em .6em; border-radius: 4px; }
.pov__rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #EF4444; animation: blink 1.6s steps(1) infinite; }
.pov__meta { position: absolute; top: 18px; right: 46px; background: rgb(28 25 23 / .55); padding: .3em .6em; border-radius: 4px; }
.bbox { position: absolute; border: 1.5px solid var(--c, var(--accent-bright)); border-radius: 3px; animation: bbox-in .7s var(--ease-out) both; animation-delay: var(--d, 0s); }
.bbox__label { position: absolute; left: -1.5px; bottom: 100%; transform: translateY(-3px); white-space: nowrap; background: var(--c, var(--accent-bright)); color: #1C1917; font-weight: 600; padding: .15em .45em; border-radius: 3px; }
.pov__timeline { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px 12px 10px; background: rgb(28 25 23 / .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 8px; }
.pov__timeline-head { display: flex; justify-content: space-between; color: var(--on-dark-muted); margin-bottom: 7px; }
.pov__track { position: relative; display: flex; gap: 3px; height: 20px; }
.pov__seg { flex: var(--w) 1 0; min-width: 0; border-radius: 3px; background: rgb(245 240 232 / .14); display: block; line-height: 20px; padding-inline: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--on-dark); font-size: .92em; }
.pov__seg.is-active { background: var(--accent-bright); color: #1C1917; font-weight: 600; }
.pov__playhead { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; left: 0; border-radius: 2px; animation: playhead 9s linear infinite; box-shadow: 0 0 0 3px rgb(255 255 255 / .15); }
.pov__note { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes bbox-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes playhead { from { left: 0; } to { left: calc(100% - 2px); } }

/* ---------- Media placeholders ---------- */
.media { margin: 0; }
.media__frame {
  position: relative; display: grid; place-items: center; text-align: center;
  aspect-ratio: var(--ratio, 16 / 9); border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, rgb(249 115 22 / .09), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(28 25 23 / .025) 14px 15px),
    var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: var(--s-6);
}
.media__frame::before, .media__frame::after { content: ""; position: absolute; inset: 14px; pointer-events: none;
  background:
    linear-gradient(var(--line-strong) 0 0) left top / 20px 2px, linear-gradient(var(--line-strong) 0 0) left top / 2px 20px,
    linear-gradient(var(--line-strong) 0 0) right top / 20px 2px, linear-gradient(var(--line-strong) 0 0) right top / 2px 20px,
    linear-gradient(var(--line-strong) 0 0) left bottom / 20px 2px, linear-gradient(var(--line-strong) 0 0) left bottom / 2px 20px,
    linear-gradient(var(--line-strong) 0 0) right bottom / 20px 2px, linear-gradient(var(--line-strong) 0 0) right bottom / 2px 20px;
  background-repeat: no-repeat; }
.media__frame::after { inset: auto; width: 26px; height: 26px; left: 50%; top: 50%; translate: -50% -50%; opacity: 0; }
.media__frame--dark { background: radial-gradient(120% 90% at 30% 20%, rgb(249 115 22 / .14), transparent 60%), var(--dark-2); border-color: #3a3430; color: var(--on-dark-muted); }
.media__frame--dark::before { filter: invert(1) brightness(.6); }
.media__inner { position: relative; max-width: 42ch; }
.media__icon { width: 36px; height: 36px; margin: 0 auto var(--s-3); color: var(--accent); }
.media__type { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.media__desc { font-size: var(--fs-small); line-height: 1.5; }
.media figcaption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--muted); }
.media--split .media__frame { --ratio: 16 / 9; }
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: var(--radius); overflow: hidden; }
.split-media .media__frame { border-radius: 0; --ratio: 4 / 5; padding: var(--s-4); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: var(--s-5); }
@media (min-width: 760px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease, transform var(--dur) var(--ease-out);
}
.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.6; }
.card__num { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--accent); letter-spacing: .08em; display: block; margin-bottom: var(--s-7); }
.card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: var(--s-6); }
.card__icon svg { width: 24px; height: 24px; }
.card--hover:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card--accent { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.card--accent p { color: var(--on-dark-muted); }
.card--accent .card__icon { background: rgb(249 115 22 / .16); color: var(--accent-bright); }

/* ---------- Why it matters ---------- */
.statement { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.4rem); line-height: 1.25; letter-spacing: -.02em; color: var(--ink); max-width: 30ch; }
.statement span { color: var(--muted); }
.why__grid { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .why__grid { grid-template-columns: 1.25fr 1fr; align-items: end; } }
.why__body { color: var(--ink-2); max-width: 52ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--dark); color: var(--on-dark); padding: clamp(2.5rem, 1.5rem + 4vw, 5rem); display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; align-items: center; } }
.cta-band h2 { color: var(--on-dark); max-width: 20ch; }
.cta-band p { color: var(--on-dark-muted); margin-top: var(--s-4); max-width: 46ch; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgb(249 115 22 / .28), transparent 65%); pointer-events: none; }
.cta-band > * { position: relative; }

/* ---------- About ---------- */
.about { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: 1fr 1fr; } }
.about p { color: var(--ink-2); }
.about .statement { margin-bottom: var(--s-5); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }

/* ---------- How it works: steps ---------- */
.steps { position: relative; }
.steps__list { list-style: none; }
.steps::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps__progress { position: absolute; left: 23px; top: 8px; width: 2px; height: calc((100% - 16px) * var(--p, 0)); background: var(--accent); transform-origin: top; transition: height 120ms linear; }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 0 clamp(1.25rem, .5rem + 2.5vw, 3rem); padding-bottom: clamp(3.5rem, 2.5rem + 3vw, 6rem); }
.step:last-child { padding-bottom: 0; }
.step__num { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line-strong); font-family: var(--font-mono); font-size: .85rem; font-weight: 600; color: var(--muted); transition: background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease; }
.step.is-active .step__num { background: var(--accent); border-color: var(--accent); color: #fff; }
.step__body { display: grid; gap: var(--s-5); padding-top: .55rem; }
@media (min-width: 1024px) { .step__body--media { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--s-7); } }
.step__label { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.step h2, .step h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-top: .4rem; }
.step__text { color: var(--ink-2); margin-top: var(--s-4); max-width: 56ch; }
.closing-line { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; max-width: 28ch; }

/* ---------- Data spec table ---------- */
.spec { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: var(--fs-small); }
.spec caption { text-align: left; padding-bottom: var(--s-4); font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spec th, .spec td { text-align: left; padding: 1rem 1.25rem; vertical-align: top; }
.spec thead th { background: var(--surface-2); font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.spec tbody th { width: 34%; font-weight: 600; color: var(--ink); }
.spec tbody tr + tr > * { border-top: 1px solid var(--line); }
.spec tbody tr { transition: background-color var(--dur-fast) ease; }
.spec tbody tr:hover { background: #FDFBF8; }
.spec td { color: var(--ink-2); }
@media (max-width: 599px) {
  .spec thead { display: none; }
  .spec tbody tr { display: block; padding: .9rem 1.1rem; }
  .spec tbody th, .spec tbody td { display: block; width: auto; padding: 0; }
  .spec tbody td { margin-top: .25rem; }
  .spec tbody tr + tr > * { border-top: 0; }
  .spec tbody tr + tr { border-top: 1px solid var(--line); }
}
.pillars { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { border-top: 2px solid var(--ink); padding-top: var(--s-5); }
.pillar h3 { margin-bottom: var(--s-3); }
.pillar p { color: var(--ink-2); font-size: var(--fs-small); }
.data-layout { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .data-layout { grid-template-columns: 1.5fr 1fr; align-items: start; } .data-layout__aside { position: sticky; top: calc(var(--header-h) + 2rem); } }
.download { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.download__icon { flex: none; width: 44px; height: 52px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-mono); font-size: .65rem; font-weight: 700; }
.download h3 { font-size: 1.05rem; }
.download p { font-size: var(--fs-small); color: var(--muted); margin-top: .25rem; }

.gallery { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.gallery .media__frame { --ratio: 4 / 3; padding: var(--s-4); }

/* ---------- Use cases ---------- */
.domains { display: grid; gap: var(--s-5); list-style: none; }
@media (min-width: 700px) { .domains { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .domains { grid-template-columns: repeat(3, 1fr); } }
.domain .media__frame { --ratio: 16 / 10; margin: calc(-1 * clamp(1.5rem, 1rem + 1.5vw, 2.25rem)); margin-bottom: var(--s-6); border-radius: var(--radius) var(--radius) 0 0; border: 0; border-bottom: 1px solid var(--line); padding: var(--s-4); }
.domain__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--s-5); }

/* ---------- Getting started timeline ---------- */
.roadmap { list-style: none; display: grid; gap: var(--s-4); counter-reset: r; }
@media (min-width: 900px) { .roadmap { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.roadmap__item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6) var(--s-5); }
@media (min-width: 900px) {
  .roadmap__item { border-radius: 0; border-left-width: 0; }
  .roadmap__item:first-child { border-left-width: 1px; border-radius: var(--radius) 0 0 var(--radius); }
  .roadmap__item:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
}
.roadmap__when { display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .3em .6em; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); margin-bottom: var(--s-6); }
.roadmap__item--key { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.roadmap__item--key .roadmap__when { background: var(--accent-bright); color: var(--ink); }
.roadmap__item.roadmap__item--key p { color: var(--on-dark-muted); }
.roadmap__item h3 { margin-bottom: var(--s-3); }
.roadmap__item p { font-size: var(--fs-small); color: var(--ink-2); }
.roadmap__step { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); display: block; margin-bottom: .35rem; }
.roadmap__item--key .roadmap__step { color: var(--on-dark-muted); }

/* ---------- FAQ ---------- */
.faqs { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  min-height: 64px; padding: var(--s-5) 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); letter-spacing: -.01em;
  transition: color var(--dur-fast) ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq__icon { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform var(--dur) var(--ease-out), background-color var(--dur) ease, border-color var(--dur) ease; }
.faq__icon svg { width: 14px; height: 14px; }
.faq[open] .faq__icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq__a { padding: 0 0 var(--s-6); color: var(--ink-2); max-width: 64ch; }
.faq[open] .faq__a { animation: faq-in var(--dur) var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Contact / form ---------- */
.contact { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .contact { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); }
.form__grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: var(--fs-small); margin-bottom: .45rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line-strong); border-radius: 10px;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px rgb(194 65 12 / .14); }
.field__hint { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.field__error { display: none; align-items: center; gap: .35em; font-size: .875rem; color: var(--danger); margin-top: .4rem; font-weight: 500; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field__error { display: flex; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-6); }
.form__legal { font-size: .85rem; color: var(--muted); max-width: 40ch; }
.form__status { margin-top: var(--s-5); }
.notice { display: flex; gap: var(--s-4); padding: var(--s-5); border-radius: var(--radius); border: 1px solid; }
.notice svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.notice--success { background: #F0FDF4; border-color: #BBF7D0; color: #14532D; }
.notice--error { background: #FEF2F2; border-color: #FECACA; color: #7F1D1D; }
.notice strong { display: block; margin-bottom: .2rem; }
.spinner { width: 18px; height: 18px; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact-aside { display: grid; gap: var(--s-4); }
.contact-card { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-card h2 { font-size: 1.25rem; letter-spacing: -.01em; margin-bottom: var(--s-2); }
.contact-card p { color: var(--ink-2); font-size: var(--fs-small); }
.contact-card .link-arrow { margin-top: var(--s-2); }
.contact-card--dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.contact-card--dark h2 { color: var(--on-dark); }
.contact-card--dark p { color: var(--on-dark-muted); }
.contact-card--dark .link-arrow { color: var(--accent-bright); }
.big-email { font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 600; letter-spacing: -.02em; color: var(--ink); text-decoration: none; display: inline-block; min-height: 44px; padding-top: .3rem; word-break: break-all; }
.big-email:hover { color: var(--accent); }

/* ---------- Legal ---------- */
.legal-table { width: 100%; border-collapse: collapse; margin: var(--s-4) 0; font-size: var(--fs-small); }
.legal-table th, .legal-table td { text-align: left; padding: .75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { width: 40%; font-weight: 600; padding-right: var(--s-4); }
.placeholder { background: var(--accent-soft); color: var(--accent-hover); padding: 0 .3em; border-radius: 3px; font-family: var(--font-mono); font-size: .9em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding-top: clamp(3.5rem, 2rem + 5vw, 6rem); font-size: var(--fs-small); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--accent-bright); }
.site-footer__grid { display: grid; gap: var(--s-7); padding-bottom: var(--s-8); }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer__about p { margin-top: var(--s-5); max-width: 38ch; }
.site-footer__col ul { list-style: none; display: grid; gap: .1rem; }
.site-footer__col li a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer__col .eyebrow { margin-bottom: var(--s-4); }
.site-footer__note { margin-top: var(--s-4); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.site-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-5); border-top: 1px solid #3a3430; font-size: .85rem; }

/* ---------- Utilities ---------- */
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.icon { width: 1em; height: 1em; flex: none; }
.grid-2 { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Reveal on scroll (JS adds .js to <html>) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .pov__playhead { display: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .cta-band { display: none; }
  body { background: #fff; }
}
.card h2 { margin-bottom: var(--s-3); }
@media (max-width: 520px) {
  .pov__meta { display: none; }
  .pov__rec { left: 40px; }
  .pov__seg:nth-child(1), .pov__seg:nth-child(4) { display: none; }
}

/* ==========================================================================
   Signal layer — identity overrides and components
   ========================================================================== */
body { letter-spacing: 0; }
h1, h2, h3, h4 { font-weight: 600; font-stretch: var(--wide); letter-spacing: -.035em; line-height: 1.02; }
h3 { font-stretch: 108%; letter-spacing: -.02em; line-height: 1.2; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: #111315; }

/* Eyebrows read like a viewfinder readout: small square + mono caps */
.eyebrow { font-weight: 500; letter-spacing: .14em; color: var(--accent); gap: .7em; }
.eyebrow::before { width: 9px; height: 9px; background: transparent; border: 1.5px solid currentColor; }
.eyebrow--light { color: var(--muted); }

/* Buttons: square, amber primary, plain arrow */
.btn { border-radius: var(--radius-sm); min-height: 48px; padding: .7em 1.3em; font-weight: 600; font-size: .9375rem; font-stretch: 108%; letter-spacing: -.01em; }
.btn:hover { transform: none; box-shadow: none; }
.btn--primary { --btn-bg: var(--accent); --btn-fg: #111315; --btn-bd: var(--accent); }
.btn--primary:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); }
.on-light .btn--primary, .section--surface .btn--primary { --btn-bg: #111315; --btn-fg: #F2F0EA; --btn-bd: #111315; }
.btn--ghost { --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--ink); }
.btn--sm { min-height: 40px; padding: .45em 1em; font-size: .85rem; }
.link-arrow { color: var(--accent); font-weight: 600; }
.link-arrow:hover { color: var(--accent-hover); }

/* Header: mono nav, status chip */
.site-header { background: rgb(14 16 19 / .82); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: none; }
.logo__word { font-weight: 700; font-stretch: 125%; letter-spacing: -.04em; font-size: 1.15rem; }
.site-nav__list a { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border-radius: var(--radius-sm); }
.site-nav__list a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav__list a[aria-current="page"] { color: var(--accent); background: transparent; box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 1023px) {
  .site-nav__list a { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -.03em; text-transform: none; font-stretch: var(--wide); font-weight: 600; }
  .site-nav__list a[aria-current="page"] { box-shadow: none; }
}
.nav-toggle { border-radius: var(--radius-sm); border-color: var(--line-strong); background: transparent; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { background: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }

/* Paper bands: full-bleed, hairline-ruled like a spec sheet */
.section--surface { border: 0; border-radius: 0; }
.section--surface:not(.on-amber) {
  color-scheme: light;
  --bg: var(--panel-paper); --surface: #F7F6F2; --surface-2: #E1DED5;
  --ink: #111315; --ink-2: #33363A; --muted: #5B5E64; --line: #D3D0C7; --line-strong: #B5B1A6;
  --accent: #8F5400; --accent-hover: #6E4000; --accent-soft: rgb(143 84 0 / .1);
  background: var(--bg) linear-gradient(90deg, rgb(17 19 21 / .045) 1px, transparent 1px) 0 0 / 80px 100%;
  color: var(--ink);
}

/* Viewfinder brackets — reusable frame marks */
.brackets { position: relative; }
.brackets::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(currentColor 0 0) left top / 18px 1.5px, linear-gradient(currentColor 0 0) left top / 1.5px 18px,
    linear-gradient(currentColor 0 0) right top / 18px 1.5px, linear-gradient(currentColor 0 0) right top / 1.5px 18px,
    linear-gradient(currentColor 0 0) left bottom / 18px 1.5px, linear-gradient(currentColor 0 0) left bottom / 1.5px 18px,
    linear-gradient(currentColor 0 0) right bottom / 18px 1.5px, linear-gradient(currentColor 0 0) right bottom / 1.5px 18px;
  background-repeat: no-repeat; opacity: .55; }

/* Home hero: left-aligned wide type with a live timecode */
.hero--split { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.hero--split .container { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .hero--split .container { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; column-gap: var(--s-8); } }
.hero--split h1 { font-size: var(--fs-display); line-height: .98; letter-spacing: -.045em; max-width: 13ch; }
.hero--split h1 em { font-style: normal; color: var(--accent); }
.hero--split .lead { color: var(--ink-2); max-width: 48ch; }
.hero--split .btn-row { margin-top: var(--s-5); }
.hero--split .hero__tags { margin-top: var(--s-5); }
.timecode { display: inline-flex; align-items: center; gap: .6em; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--muted); margin-bottom: var(--s-5); }
.timecode::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FF4D3D; animation: blink 1.6s steps(1) infinite; }
.timecode b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.tag { border-radius: var(--radius-sm); background: transparent; border-color: var(--line-strong); color: var(--ink-2); }
.tag .icon { color: var(--accent); }

.stats { border-top: 1px solid var(--line); margin-top: 0; }
.stat, .stat + .stat { border-color: var(--line); }
.stat__value { font-weight: 600; font-stretch: var(--wide); letter-spacing: -.05em; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.8rem); }
.stat__value small { font-weight: 500; font-stretch: 100%; color: var(--accent); }
.stat__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* Why it matters: dark media + paper statement band, key phrase boxed like an annotation */
.why2 { display: grid; gap: 0; border-block: 1px solid var(--line); }
@media (min-width: 960px) { .why2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); align-items: stretch; } }
.why2__media, .why2__media .media__frame { height: 100%; }
.why2__media .media__frame { min-height: 280px; aspect-ratio: auto; border-radius: 0; border: 0; }
.why2__panel { padding: clamp(2.25rem, 1.2rem + 4vw, 5rem) var(--gutter); display: grid; align-content: space-between; gap: var(--s-8); }
.scrub { font-size: clamp(1.7rem, 1.05rem + 2.6vw, 3.4rem); line-height: 1.3; letter-spacing: -.04em; font-weight: 600; font-stretch: var(--wide); max-width: 20ch; }
.scrub .w { opacity: var(--o, 1); transition: opacity 120ms linear; }
.anno { position: relative; display: inline; padding: 0 .12em; box-shadow: inset 0 0 0 2px var(--panel-amber); border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.anno::after { content: attr(data-label); position: absolute; left: -2px; bottom: 100%; transform: translateY(-4px); font-family: var(--font-mono); font-size: .7rem; font-stretch: 100%; letter-spacing: .02em; font-weight: 600; line-height: 1; padding: .3em .45em; background: var(--panel-amber); color: #111315; white-space: nowrap; border-radius: 2px; }
.why2__body { display: grid; gap: var(--s-5); max-width: 62ch; }
@media (min-width: 760px) { .why2__body { grid-template-columns: 1fr 1fr; max-width: none; } }
.why2__body p { color: var(--ink-2); font-size: var(--fs-small); margin: 0; }

/* Feature cards: spec-sheet fields on graphite */
.fcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); display: flex; flex-direction: column; gap: var(--s-4); color: var(--ink); }
.fcard::after { content: attr(data-field); position: absolute; top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); right: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; color: var(--muted); }
.fcard__icon { width: 44px; height: 44px; border: 1.5px solid var(--accent); border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--accent); }
.fcard__icon svg { width: 22px; height: 22px; }
.fcard h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); margin-top: var(--s-6); }
.fcard p { font-size: var(--fs-small); color: var(--ink-2); flex: 1; }
.chip-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: .5em; min-height: 40px; color: var(--accent); font-weight: 600; font-size: .9rem; text-decoration: none; border-bottom: 1px solid currentColor; }
.chip-btn::after { content: "→"; transition: transform var(--dur) var(--ease-out); }
.chip-btn:hover { color: var(--accent-hover); }
.chip-btn:hover::after { transform: translateX(3px); }
.fcard--dark { background: var(--panel-amber); border-color: var(--panel-amber); --ink: #111315; --ink-2: #2A2414; --muted: #4A3D1C; --accent: #111315; --accent-hover: #000; --line: transparent; --surface: var(--panel-amber); }
.fcard--dark .fcard__icon { border-color: #111315; color: #111315; }
.center-head { text-align: center; max-width: 820px; margin: 0 auto var(--s-8); }
.center-head .lead { margin: var(--s-5) auto 0; }

/* CTA: full-bleed amber band with viewfinder brackets */
.cta-band { color-scheme: light; --bg: var(--panel-amber); --ink: #111315; --ink-2: #2A2414; --muted: #4A3D1C; --line-strong: rgb(17 19 21 / .4); background: var(--panel-amber); color: #111315; border-radius: 0; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.cta-band::before { display: none; }
.cta-band h2 { color: #111315; font-size: clamp(2rem, 1.2rem + 3.2vw, 4rem); max-width: 14ch; }
.cta-band p { color: #2A2414; }
.cta-band .btn--primary { --btn-bg: #111315; --btn-fg: #F2F0EA; --btn-bd: #111315; }
.cta-band .btn--primary:hover { --btn-bg: #2A2D31; --btn-bd: #2A2D31; }
.cta-art { width: min(100%, 320px); height: auto; color: #111315; justify-self: center; }
@media (min-width: 900px) { .cta-band--art { grid-template-columns: 1.2fr 1fr; } }

/* Amber "key" objects on inner pages */
.card--accent, .roadmap__item--key, .contact-card--dark { --on-dark: #111315; --on-dark-muted: #3A3018; --accent-bright: #111315; background: var(--panel-amber); border-color: var(--panel-amber); color: #111315; }
.card--accent .card__icon { background: rgb(17 19 21 / .1); color: #111315; }
.card--accent .link-arrow, .contact-card--dark .link-arrow { color: #111315 !important; }
.roadmap__item--key .roadmap__when { background: #111315; color: var(--panel-amber); }
.card { border-color: var(--line); background: var(--surface); }
.card--hover:hover { border-color: var(--line-strong); box-shadow: none; transform: none; }
.card__num { color: var(--muted); }
.card__icon { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); border-radius: var(--radius-sm); }
.step.is-active .step__num { color: #111315; }
.step__num { border-radius: var(--radius-sm); }
.step__label { color: var(--accent); }
.faq[open] .faq__icon { color: #111315; }
.section--surface .faq[open] .faq__icon { color: #fff; }
.faq__icon { border-radius: var(--radius-sm); }
.spec tbody tr:hover { background: var(--surface-2); }
.pillar { border-top-color: var(--accent); }
.field input, .field textarea { border-radius: var(--radius-sm); }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgb(255 178 26 / .2); }
.form, .contact-card, .download, .roadmap__item, .spec { border-radius: var(--radius); box-shadow: none; }
.notice--success { background: #1E1A0C; border-color: #5A4410; color: #FFE3A8; }
.notice--error { background: #2A1310; border-color: #6B2A20; color: #FFD5CC; }
.download__icon { background: var(--accent-soft); color: var(--accent); }
.media__frame { border-radius: var(--radius); background: repeating-linear-gradient(0deg, transparent 0 23px, rgb(255 255 255 / .025) 23px 24px), var(--surface-2); }
.media__frame--dark { background: repeating-linear-gradient(0deg, transparent 0 23px, rgb(255 255 255 / .03) 23px 24px), #0A0C0E; border-color: #20252B; color: #9A9EA5; }
.media__frame--dark::before { filter: none; }
.media__type { color: var(--accent); font-weight: 500; }
.media__frame--dark .media__type, .media__frame--dark .media__icon { color: var(--panel-amber); }
.page-hero h1 { max-width: 16ch; }
.placeholder { color: var(--accent); }
.crumbs a:hover { color: var(--accent); }

/* Footer: verb ticker driven by scroll, then columns */
.site-footer { background: var(--bg); color: var(--muted); border-top: 1px solid var(--line); margin-top: var(--section); padding-top: 0; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--accent); }
.site-footer__col .eyebrow { font-size: .7rem; color: var(--muted); }
.site-footer__note { color: var(--muted); }
.verb-ticker { overflow: hidden; border-bottom: 1px solid var(--line); padding-block: clamp(1.5rem, 1rem + 2vw, 3rem); margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.verb-ticker__row { display: flex; width: max-content; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-stretch: 125%; letter-spacing: -.04em; font-size: clamp(3rem, 1.5rem + 7vw, 8rem); line-height: 1; transform: translate3d(calc(var(--mx, 0) * -1px), 0, 0); will-change: transform; }
.verb-ticker__row span { padding-right: .35em; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); }
.verb-ticker__row span:nth-child(4n + 2) { color: var(--accent); -webkit-text-stroke: 0; }
.site-footer__base { border-top-color: var(--line); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }

/* ==========================================================================
   Scroll scenes — pinned, scroll-scrubbed sections
   Base rules = static layout (no JS / reduced motion). Everything under
   .motion (set in <head> when motion is allowed) turns sections into scenes.
   JS writes --p (0→1 through a scene) and a few derived variables.
   ========================================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Seamless page-to-page transitions (cross-document View Transitions) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .28s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .55s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ---------- Scene 1: hero ---------- */
.hero-frame { position: relative; margin-inline: var(--inset); border-radius: 0; padding: clamp(1.5rem, 1rem + 4vw, 5rem) var(--gutter); background: radial-gradient(60% 70% at 50% 40%, #2A2210 0%, #0A0C0E 70%); }
.hero-frame .pov { max-width: 920px; margin-inline: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 40px 120px -20px rgb(255 178 26 / .2); }
.hero-frame__caption { text-align: center; color: var(--muted); margin-top: var(--s-5); letter-spacing: .06em; text-transform: uppercase; }
.scroll-hint { display: none; }

.motion .scene { position: relative; height: calc(var(--len, 300) * 1vh); height: calc(var(--len, 300) * 1svh); }
.motion .scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

.motion .scene--hero { --len: 270; }
.motion .scene--hero .scene__sticky { background: radial-gradient(50% 60% at 50% 70%, rgb(42 34 16 / calc(var(--pa, 0) * 1)) 0%, transparent 70%); }
.motion .hero-copy { position: absolute; inset: 0 0 auto 0; padding-top: calc(var(--header-h) + 6vh); padding-bottom: 0; opacity: calc(1 - var(--p, 0) * 3.2); transform: translateY(calc(var(--p, 0) * -16vh)) scale(calc(1 - var(--p, 0) * .12)); transform-origin: 50% 0; will-change: transform, opacity; }
.motion .scene--hero.is-past-copy .hero-copy { pointer-events: none; visibility: hidden; }
.motion .hero-frame {
  position: absolute; left: 50%; top: calc(50% + var(--header-h) / 2); margin: 0; padding: 0; background: none; border-radius: 0;
  width: min(calc(100vw - 2 * var(--inset)), calc((100svh - var(--header-h) - 3rem) * 4 / 3));
  translate: -50% -50%;
  transform: translateY(calc((1 - var(--pa, 0)) * 50svh)) scale(calc(.7 + var(--pa, 0) * .3));
  will-change: transform;
}
.motion .hero-frame .pov { max-width: none; border-radius: var(--radius); }
.motion .hero-frame__caption { display: none; }
.motion .scene--hero .bbox { animation: none; opacity: 0; transform: scale(1.12); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
.motion .scene--hero .bbox.is-on { opacity: 1; transform: none; }
.motion .scene--hero .pov__playhead { animation: none; left: calc(var(--pt, 0) * (100% - 2px)); }
.motion .scroll-hint { display: inline-flex; align-items: center; gap: .6rem; position: fixed; z-index: 5; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: calc(1 - var(--p, 0) * 10); }
.scroll-hint svg { width: 28px; height: 28px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 6px; animation: hint 2s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateY(4px); } }

/* ---------- Scene 2: pipeline ---------- */
.scene--pipe { padding-block: var(--section); }
.pipe { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
@media (min-width: 960px) { .pipe { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
.pipe__text h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem); max-width: 16ch; margin-bottom: var(--s-6); }
.pipe__steps { list-style: none; display: grid; }
.pipe__step { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: .25rem; padding: var(--s-4) 0; border-top: 1px solid var(--line); transition: opacity var(--dur) ease; }
.pipe__step h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.pipe__step p { font-size: var(--fs-small); color: var(--ink-2); max-width: 46ch; }
.pipe__num { color: var(--muted); padding-top: .3rem; }
.pipe__step.is-active .pipe__num { color: var(--accent); }
.pipe__bar { display: none; }

.pipe__stage { position: relative; aspect-ratio: 4 / 3; perspective: 1800px; perspective-origin: 30% 40%; max-width: 100%; }
.layer {
  position: absolute; inset: 9% 16% 9% 0; border-radius: 4px; overflow: hidden;
  border: 1px solid rgb(255 255 255 / .16); background: rgb(8 12 9 / .5);
  transform-style: preserve-3d;
  transform: rotateY(-24deg) rotateX(7deg) translate3d(calc(var(--i) * var(--spread, 9%)), calc(var(--i) * -2.5%), calc(var(--i) * 34px));
  transition: opacity .55s var(--ease-out), translate .7s var(--ease-out), border-color .4s ease, box-shadow .4s ease;
}
.layer--raw { background: #0B0B0B; }
.layer--raw img { width: 100%; height: 100%; object-fit: cover; }
.layer__tag { position: absolute; top: 10px; left: 12px; font-size: .6rem; letter-spacing: .08em; padding: .25em .55em; border-radius: 4px; background: rgb(0 0 0 / .65); color: #fff; }
.layer.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 90px -20px rgb(255 178 26 / .35); }
.layer--qa { background: rgb(4 9 6 / .62); -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }
.qa-list { list-style: none; position: absolute; left: 12px; top: 40px; width: min(62%, 260px); display: grid; gap: .35rem; font-size: clamp(.58rem, .5rem + .3vw, .74rem); color: #E5E5E5; }
.qa-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem .55rem; border-radius: 5px; background: rgb(255 255 255 / .06); }
.qa-list b { color: var(--accent-bright); font-weight: 500; }
.layer--ann { background: transparent; }
.ann { position: absolute; border: 1.5px solid #F5F0E8; border-radius: 3px; }
.ann i { position: absolute; left: -1.5px; bottom: 100%; transform: translateY(-2px); font-style: normal; font-family: var(--font-mono); font-size: .55rem; padding: .1em .4em; border-radius: 3px; background: #F5F0E8; color: #000; white-space: nowrap; }
.ann--hot { border-color: var(--accent-bright); } .ann--hot i { background: var(--accent-bright); }
.ann--hand { border-color: var(--cyan); } .ann--hand i { background: var(--cyan); top: 100%; bottom: auto; transform: translateY(2px); }
.ann-track { position: absolute; left: 4%; right: 4%; bottom: 5%; display: flex; gap: 3px; height: 18px; }
.ann-track span { flex: var(--w) 1 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-radius: 3px; background: rgb(255 255 255 / .16); color: #fff; font-family: var(--font-mono); font-size: .55rem; line-height: 18px; padding-inline: 5px; }
.ann-track .on { background: var(--accent-bright); color: #000; }
.layer--json { background: #0A0A0A; }
.layer--json pre { margin: 0; padding: 2.4rem 1.1rem 1rem; font-size: clamp(.55rem, .45rem + .35vw, .78rem); line-height: 1.5; color: #CFCFCF; white-space: pre; overflow: hidden; }

.motion .scene--pipe { --len: 440; padding-block: 0; }
.motion .scene--pipe .scene__sticky { display: grid; align-items: center; padding-top: var(--header-h); }
.motion .pipe__step { opacity: .32; }
.motion .pipe__step.is-active { opacity: 1; }
.motion .pipe__bar { display: block; height: 2px; background: var(--line); margin-top: var(--s-4); border-radius: 2px; overflow: hidden; }
.motion .pipe__bar span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); }
.motion .layer:not(.is-on) { opacity: 0; translate: 0 40px; }
@media (max-width: 959px) {
  .motion .pipe { gap: 1.25rem; }
  .motion .pipe__text h2 { font-size: clamp(1.5rem, 1.2rem + 2vw, 2rem); margin-bottom: var(--s-4); }
  .motion .pipe__step:not(.is-active) { display: none; }
  .motion .pipe__step { border-top: 0; padding: 0; }
  .motion .pipe__stage { width: min(100%, calc(38svh * 4 / 3)); margin-inline: auto; }
}

/* ---------- Scene 4: sideways rail ---------- */
.rail-panel { padding-block: var(--section); }
.rail-head { margin-bottom: var(--s-7); }
.rail-head h2 { max-width: 18ch; }
.rail { display: grid; gap: var(--s-2); padding-inline: var(--gutter); max-width: var(--container); margin-inline: auto; }
@media (min-width: 760px) { .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 960px) {
  .motion .scene--rail .scene__sticky { padding: calc(var(--header-h) + var(--inset)) 0 var(--inset); }
  .motion .rail-panel { height: 100%; padding-block: clamp(2rem, 1rem + 3vh, 4rem); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .motion .rail-head { width: 100%; }
  .motion .rail { display: flex; gap: 12px; max-width: none; margin: 0; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); will-change: transform; }
  .motion .rail .fcard { flex: 0 0 min(440px, 38vw); min-height: min(52svh, 440px); }
  .motion .rail .fcard h3 { margin-top: auto; }
  .motion .rail .fcard p { flex: 0 0 auto; }
}
@media (max-width: 959px) { .motion .scene--rail { height: auto; } .motion .scene--rail .scene__sticky { position: static; height: auto; overflow: visible; } }

/* ---------- CTA entrance + inner-page hero parallax ---------- */
.cta-wrap { margin-inline: var(--inset); }
.motion [data-enter] .cta-band { transform: scale(calc(.9 + var(--e, 1) * .1)); opacity: calc(.35 + var(--e, 1) * .65); transform-origin: 50% 100%; will-change: transform; }
.motion .page-hero > .container { opacity: calc(1 - var(--out, 0) * 1.3); transform: translateY(calc(var(--out, 0) * -48px)); }
.motion .layer.is-on:not(.is-current) { filter: brightness(.45) saturate(.6); }
.layer { transition: opacity .55s var(--ease-out), translate .7s var(--ease-out), border-color .4s ease, box-shadow .4s ease, filter .5s ease; }
@media (min-width: 960px) { .motion .rail-head h2 { font-size: clamp(1.8rem, 1.1rem + 1.8vw, 2.8rem); max-width: 26ch; } .motion .rail-head { margin-bottom: clamp(1.5rem, 1rem + 2vh, 3rem); } }
@media (max-width: 759px) { .motion .scroll-hint { display: none; } }
