/* ============================================================
   GA Applications — design system v2 (evolved)
   Editorial intelligence (warm paper, ink, Fraunces display)
   × operational instrument (borders, status, mono labels)
   × cinematic night stages (generative canvas, concept art).
   Fonts: Fraunces + Public Sans (OFL, self-hosted) with a system mono stack.
   ============================================================ */

@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/fraunces-opsz-normal.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/fraunces-opsz-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('/assets/fonts/public-sans-normal.woff2') format('woff2'); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('/assets/fonts/public-sans-italic.woff2') format('woff2'); font-weight: 300 800; font-style: italic; font-display: swap; }

:root {
  --paper: #f6f2ea;
  --white: #fdfcf8;
  --ink: #1e2329;
  --ink-2: #3c434c;
  --ink-3: #67707b;
  --line: #d9d2c4;
  --line-soft: #e7e1d4;
  --night: #0e1216;
  --night-2: #151b21;
  --night-3: #1c242c;
  --dark: #14181d;
  --dark-2: #1c2229;
  --sig-public: #4a7dff;
  --sig-office: #2fbf9a;
  --sig-field: #e09543;
  --sig-return: #9a7bff;
  --sig-public-ink: #1d4fd7; /* accessible on paper */
  --ok: #0e6f5c;
  --warn: #9a5b00;
  --risk: #a8321f;
  --focus: #1d4fd7;
  --radius: 6px;
  --max: 1180px;
  --measure: 68ch;
  --font-ui: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', 'Iowan Old Style', Palatino, Georgia, serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* ---------- home entry: glass doors, then the complete page arrives ----------
   Hidden unless the tiny head script confirms JS. The real H1, navigation and
   content are already in the document, so the introduction is never an SEO or
   no-JS gate. */
.ga-entry { display: none; }
.ga-entry-capable .ga-entry {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgb(255 247 218 / 0.9), rgb(208 218 221 / 0.46) 46%, rgb(13 20 25 / 0.96) 100%),
    #111a20;
  perspective: 1600px;
  transition: opacity 620ms ease, visibility 620ms ease, background-color 620ms ease;
}
.ga-entry-backdrop { position: absolute; inset: 0; transform-style: preserve-3d; }
.ga-entry-aura {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 46%;
  width: min(74vw, 840px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 245 203 / 0.96), rgb(230 174 69 / 0.24) 38%, transparent 70%);
  filter: blur(18px);
}
.ga-entry-logo {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 45%;
  width: clamp(240px, 36vw, 560px);
  height: auto;
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0.9;
  filter: drop-shadow(0 18px 38px rgb(0 0 0 / 0.22));
  transition: transform 900ms cubic-bezier(.2,.75,.18,1), opacity 600ms ease, filter 900ms ease;
}
.ga-entry-door {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: calc(50% + 1px);
  overflow: hidden;
  background:
    linear-gradient(105deg, rgb(255 255 255 / 0.24), transparent 30%, rgb(255 255 255 / 0.12) 55%, transparent 80%),
    linear-gradient(180deg, rgb(225 237 238 / 0.48), rgb(162 179 184 / 0.23));
  border: 1px solid rgb(255 255 255 / 0.42);
  box-shadow: inset 0 0 90px rgb(255 255 255 / 0.14), 0 0 30px rgb(0 0 0 / 0.2);
  -webkit-backdrop-filter: blur(18px) saturate(.72);
  backdrop-filter: blur(18px) saturate(.72);
  transition: transform 1780ms cubic-bezier(.64,.02,.22,1), opacity 850ms ease, filter 850ms ease;
  backface-visibility: hidden;
}
.ga-entry-door::before {
  content: "";
  position: absolute;
  inset: clamp(18px, 3vw, 44px);
  border: 1px solid rgb(255 255 255 / 0.28);
  box-shadow: inset 0 0 40px rgb(255 255 255 / 0.08);
}
.ga-entry-door::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(transparent 5%, rgb(255 255 255 / 0.72) 28%, rgb(255 255 255 / 0.18) 72%, transparent 96%);
}
.ga-entry-door-left { left: 0; transform-origin: left center; }
.ga-entry-door-right { right: 0; transform-origin: right center; }
.ga-entry-door-left::after { right: 0; }
.ga-entry-door-right::after { left: 0; }
.ga-entry-door span {
  position: absolute;
  top: 50%;
  width: clamp(26px, 3vw, 38px);
  height: clamp(26px, 3vw, 38px);
  transform: translateY(-50%);
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: 50%;
  background: rgb(31 39 44 / 0.22);
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.18), inset 0 0 0 7px rgb(255 255 255 / 0.1);
}
.ga-entry-door-left span { right: clamp(20px, 4vw, 58px); }
.ga-entry-door-right span { left: clamp(20px, 4vw, 58px); }
.ga-entry-threshold {
  position: absolute;
  z-index: 4;
  left: 12%; right: 12%; bottom: 5%; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 230 154 / .92), transparent);
  box-shadow: 0 0 28px 5px rgb(228 171 63 / .22);
}
.ga-entry-ui {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: clamp(22px, 5vh, 54px);
  width: min(90vw, 760px);
  transform: translateX(-50%);
  color: #10161a;
  text-align: center;
}
.ga-entry-label,
.ga-entry-status {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgb(255 255 255 / .75);
}
.ga-entry-label { font-size: .67rem; opacity: .66; }
.ga-entry-status { margin-top: 7px; font-size: clamp(.72rem, 1.2vw, .86rem); font-weight: 650; }
.ga-entry-skip {
  margin-top: 15px;
  padding: 8px 13px;
  border: 1px solid rgb(20 28 32 / .3);
  border-radius: 999px;
  color: #11191d;
  background: rgb(255 255 255 / .26);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 650 .76rem var(--font-ui);
  cursor: pointer;
}
.ga-entry-skip:hover { background: rgb(255 255 255 / .55); }
.ga-entry-running { overflow: hidden; }
.ga-entry-running .site-shell {
  opacity: .16;
  transform: translateY(-10vh) scale(.985);
  filter: blur(8px);
  transition: transform 1150ms cubic-bezier(.16,.86,.2,1), opacity 900ms ease, filter 1050ms ease;
  will-change: transform, opacity, filter;
}
.ga-entry-opening .ga-entry-door-left { transform: rotateY(-104deg); }
.ga-entry-opening .ga-entry-door-right { transform: rotateY(104deg); }
.ga-entry-opening .ga-entry-logo { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 22px 54px rgb(0 0 0 / .28)); }
.ga-entry-opening .ga-entry-ui { color: #edf2f2; }
.ga-entry-revealing .site-shell { opacity: 1; transform: translateY(0) scale(1); filter: none; }
.ga-entry-revealing .ga-entry { background: transparent; pointer-events: none; }
.ga-entry-revealing .ga-entry-door { transform: rotateY(118deg); opacity: 0; filter: blur(8px); }
.ga-entry-revealing .ga-entry-logo,
.ga-entry-revealing .ga-entry-aura,
.ga-entry-revealing .ga-entry-ui,
.ga-entry-revealing .ga-entry-threshold { opacity: 0; }
.ga-entry-complete .ga-entry { opacity: 0; visibility: hidden; pointer-events: none; }
.ga-entry-complete .site-shell { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .ga-entry-capable .ga-entry { transition: opacity 180ms ease; }
  .ga-entry-door { transition: none; }
  .ga-entry-running .site-shell { transform: none; filter: none; opacity: .35; transition: opacity 180ms ease; }
  .ga-entry-reduced .ga-entry-logo { transform: translate(-50%, -50%); }
}

@media (max-width: 620px) {
  .ga-entry-logo { width: min(72vw, 340px); }
  .ga-entry-door { -webkit-backdrop-filter: blur(12px) saturate(.72); backdrop-filter: blur(12px) saturate(.72); }
  .ga-entry-door::before { inset: 14px; }
}
/* film grain — barely-there texture that makes flat colour feel printed */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.5em; color: var(--ink); }
h2[id] { scroll-margin-top: 86px; }
h1 { font-family: var(--font-display); font-weight: 480; font-variation-settings: 'opsz' 144; font-size: clamp(2.5rem, 5.4vw, 4.3rem); letter-spacing: -0.02em; max-width: 21ch; }
h1 em { font-style: italic; font-weight: 420; }
h2 { font-family: var(--font-display); font-weight: 560; font-variation-settings: 'opsz' 60; font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -0.012em; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--sig-public-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
img, svg, canvas, video { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--sig-field); color: var(--night); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 0 0 6px 0; }
.skip:focus { left: 0; }
.nojs-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; font-size: .88rem; }
.nojs-nav a { color: var(--ink); }
html:not(.ga-entry-capable) body[data-family="home"] .maven { display: none; }
@media (max-width: 1024px) {
  html:not(.ga-entry-capable) body[data-family="home"] .site-nav { display: none; }
  html:not(.ga-entry-capable) body[data-family="home"] .head-in { align-items: flex-start; padding-block: 12px; flex-wrap: wrap; }
  html:not(.ga-entry-capable) body[data-family="home"] .nojs-nav { width: 100%; justify-content: flex-start; }
}

/* reveal — JS adds .rv; without JS everything is simply visible */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- eyebrows, kickers ---------- */
.eyebrow, .kicker {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before, .kicker::before { content: ""; width: 26px; height: 1.5px; background: var(--sig-field); flex: none; }
.kicker { margin-bottom: 10px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { color: var(--ink); flex: none; }
.brand-word { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-word em { font-style: italic; font-weight: 420; color: var(--ink-3); }

.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; margin: 0; }
.nav-list a, .sub-toggle {
  display: inline-block; padding: 9px 12px; color: var(--ink-2); text-decoration: none;
  font-size: 0.94rem; border-radius: var(--radius); border: 0; background: none; cursor: pointer; font-family: inherit;
}
.nav-list a:hover, .sub-toggle:hover { background: var(--white); color: var(--ink); }
.nav-list a[aria-current="true"] { color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--sig-field); }
.sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 40px rgb(20 24 29 / 0.14); padding: 8px; list-style: none; display: none; z-index: 70;
}
.sub li { margin: 0; }
.sub a { display: block; padding: 8px 10px; border-radius: 6px; }
.has-sub.open .sub { display: block; }
.nav-cta a { background: var(--ink); color: var(--white) !important; font-weight: 600; margin-left: 8px; transition: transform 0.2s ease, background 0.2s ease; }
.nav-cta a:hover { background: var(--dark-2); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ---------- breadcrumbs ---------- */
.crumbs { border-bottom: 1px solid var(--line-soft); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; margin: 0; padding: 10px clamp(16px, 4vw, 40px); max-width: var(--max); margin-inline: auto; font-size: 0.85rem; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--ink-3); }
.crumbs li + li::before { content: "›"; color: var(--line); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- hero v2 ---------- */
/* ---------- home service universe ---------- */
.universe { position: relative; height: auto; background: #05070c; border-bottom: 1px solid var(--line); }
.universe-pin { position: relative; height: 100vh; overflow: clip; background: url('/assets/img/hero-home.jpg') center/cover; }
.universe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.universe.universe-live:not(.universe-calm) { height: 340vh; }
.universe.universe-live:not(.universe-calm) .universe-pin { position: sticky; top: 0; }
.universe-live .universe-canvas { display: block; }
.universe-live .universe-pin { background: #05070c; }
.universe-calm { height: auto; }
.universe-calm .universe-pin { position: relative; height: 100vh; }
.u-ui { position: absolute; inset: 0; pointer-events: none; }
.u-ui > * { pointer-events: auto; }
.u-ui { pointer-events: none; }
.u-copy { position: absolute; top: clamp(84px, 12vh, 130px); left: clamp(16px, 4vw, 40px); max-width: 620px; pointer-events: none; }
.u-copy .btn { pointer-events: auto; }
.u-copy h1 { color: #f4f1e8; text-shadow: 0 2px 30px rgb(0 0 0 / 0.6); }
.u-copy .answer { color: #d4d9de; text-shadow: 0 1px 14px rgb(0 0 0 / 0.7); }
.u-copy .eyebrow { color: #a8b0ba; }
.u-copy .evidence-cue { color: #8d97a3; }
.u-copy .btn-quiet { color: #e9e6dd; border-color: #3a4550; }
.u-copy .btn-quiet:hover { border-color: #e9e6dd; }
.u-copy .btn-primary { background: #f4f1e8; color: #0b0e12; border-color: #f4f1e8; }
.u-brand {
  position: absolute; left: clamp(16px, 4vw, 40px); bottom: clamp(16px, 4vh, 34px); margin: 0;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: #8d97a3;
}
.u-brand span {
  display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: 0;
  text-transform: none; font-weight: 560; margin-bottom: 4px;
  background: linear-gradient(120deg, #f5d98f, #d9a744 55%, #f0c96a); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.u-legend {
  position: absolute; right: clamp(16px, 4vw, 40px); bottom: clamp(16px, 4vh, 34px);
  background: rgb(10 13 18 / 0.66); border: 1px solid rgb(255 255 255 / 0.09); border-radius: 14px;
  padding: 16px 20px; backdrop-filter: blur(10px); max-width: 300px;
}
.u-legend p { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8d97a3; margin: 0 0 8px; }
.u-legend ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.u-legend li { margin: 0; }
.u-legend a { display: flex; align-items: center; gap: 8px; color: #cfd6dd; text-decoration: none; font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 0; }
.u-legend a:hover { color: #fff; }
.u-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 8px currentColor; }
.u-promo {
  position: absolute; top: clamp(84px, 12vh, 130px); right: clamp(16px, 4vw, 40px);
  display: grid; gap: 2px; max-width: 300px; text-decoration: none;
  background: linear-gradient(135deg, rgb(74 45 110 / 0.55), rgb(20 26 34 / 0.72));
  border: 1px solid rgb(154 123 255 / 0.35); border-radius: 14px; padding: 14px 18px;
  backdrop-filter: blur(10px); transition: transform 0.2s ease, border-color 0.2s ease;
}
.u-promo:hover { transform: translateY(-2px); border-color: rgb(154 123 255 / 0.7); }
.u-promo-kicker { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #b6a3e8; }
.u-promo-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 560; color: #f4f1e8; }
.u-promo-sub { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: #d9a744; }
.u-scroll {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(14px, 3vh, 26px); margin: 0;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #77828d;
  display: flex; align-items: center; gap: 10px;
}
.u-scroll span { display: block; width: 6px; height: 6px; border-radius: 50%; background: #d9a744; box-shadow: 0 0 10px #d9a744; animation: udot 2.2s ease-in-out infinite; }
@keyframes udot { 0%, 100% { opacity: 0.4; transform: translateY(0); } 50% { opacity: 1; transform: translateY(4px); } }
.u-card {
  position: absolute; top: 50%; right: clamp(16px, 4vw, 40px); transform: translateY(-50%);
  width: min(320px, calc(100vw - 32px)); background: rgb(10 13 18 / 0.78); border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 16px; padding: 22px 24px; backdrop-filter: blur(14px); color: #e8e4da;
}
.u-card[hidden] { display: none; }
.u-card h2 { color: #f4f1e8; font-size: 1.4rem; }
.u-card-text { color: #c8cdd4; font-size: 0.94rem; }
.u-card a { color: #f0c96a; font-weight: 620; }
.u-card-tag { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8d97a3; margin: 0 0 6px; }
.u-card button { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: #8d97a3; font-size: 1.4rem; cursor: pointer; padding: 6px; }
@media (max-width: 860px) {
  .u-promo { display: none; }
  .u-legend { left: 16px; right: 16px; max-width: none; bottom: 14px; padding: 12px 16px; }
  .u-legend ul { display: flex; flex-wrap: wrap; gap: 2px 16px; }
  .u-brand { display: none; }
  .u-copy { top: 76px; }
  .u-scroll { display: none; }
}
@media (max-width: 560px) {
  .universe,
  .universe.universe-live:not(.universe-calm) { height: 1120px; }
  .universe-pin,
  .universe.universe-live:not(.universe-calm) .universe-pin { position: relative; height: 1120px; }
  .u-copy { top: 54px; right: 16px; max-width: none; }
  .u-copy .answer { font-size: 1rem; line-height: 1.52; }
  .u-copy .hero-actions { margin-top: 22px; }
  .u-copy .evidence-cue { margin-top: 16px; }
  .u-legend { bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { .u-scroll span { animation: none; } }

/* ---------- home service universe END ---------- */
.hero { position: relative; overflow: clip; border-bottom: 1px solid var(--line); padding: clamp(64px, 10vw, 132px) 0 clamp(44px, 6vw, 84px); }
.hero-dark { background: var(--night); color: #e9e6dd; }
.hero-dark h1 { color: #f4f1e8; }
.hero-dark .answer { color: #c8cdd4; }
.hero-dark .eyebrow { color: #8d97a3; }
.hero-paper { background: var(--paper); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(14 18 22 / 0.94) 22%, rgb(14 18 22 / 0.55) 60%, rgb(14 18 22 / 0.35)); }
.hero-paper .hero-bg img { opacity: 0.26; }
.hero-paper .hero-bg::after { background: linear-gradient(100deg, rgb(246 242 234 / 0.95) 26%, rgb(246 242 234 / 0.62) 62%, rgb(246 242 234 / 0.42)); }
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-paper .hero-fx { opacity: 0.8; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-motion .hero-grid { grid-template-columns: 7fr 5fr; } }
.hero-copy { max-width: 780px; }
.answer { font-size: 1.18rem; line-height: 1.62; max-width: var(--measure); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 14px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius); font-weight: 620; font-size: 0.98rem; text-decoration: none;
  border: 1.5px solid var(--ink); cursor: pointer; font-family: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--dark-2); box-shadow: 0 8px 22px rgb(20 24 29 / 0.22); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink); }
.hero-dark .btn-primary { background: #f4f1e8; color: var(--night); border-color: #f4f1e8; }
.hero-dark .btn-primary:hover { box-shadow: 0 8px 26px rgb(244 241 232 / 0.18); }
.hero-dark .btn-quiet { color: #e9e6dd; border-color: #39434e; }
.hero-dark .btn-quiet:hover { border-color: #e9e6dd; }
.evidence-cue {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3);
  border-left: 3px solid var(--sig-field); padding-left: 12px; max-width: 56ch; margin-top: 20px;
}
.hero-dark .evidence-cue { color: #77828d; }
.hero-stage { min-height: 240px; border: 1px solid var(--line); border-radius: 12px; background: var(--dark); overflow: hidden; position: relative; }
.hero-stage .stage-label { position: absolute; top: 12px; left: 14px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8d97a3; z-index: 2; }
.pof-svg { display: block; width: 100%; height: 100%; min-height: 260px; }
.hero-img-note { position: relative; z-index: 2; font-family: var(--font-mono); font-size: 0.72rem; color: #77828d; margin-top: 18px; }
.hero-paper .hero-img-note { color: var(--ink-3); }

/* Reserved for the approved artist animation. Intentionally empty. */
.hero-stage:has(.hero-art-reserve) {
  min-height: 520px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.hero-art-reserve { min-height: 520px; }
body[data-family="home"] .hero-fx { display: none; }

/* Homepage system map: architectural, not illustrative. */
.hero-motion {
  min-height: min(860px, calc(100svh - 68px));
  display: grid;
  align-items: center;
  background:
    linear-gradient(110deg, rgb(7 10 13 / 0.98) 0 43%, rgb(10 15 20 / 0.88) 72%, rgb(8 11 14 / 0.96)),
    var(--night);
}
.hero-motion::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.9%, rgb(255 255 255 / 0.035) 50%, transparent 50.1%),
    linear-gradient(0deg, transparent 49.9%, rgb(255 255 255 / 0.028) 50%, transparent 50.1%);
  background-size: 96px 96px;
  mask-image: linear-gradient(to right, transparent, black 48%, black);
}
.hero-motion .hero-grid { width: 100%; }
.hero-motion .hero-copy { padding-block: clamp(18px, 3vw, 42px); }
.hero-motion .hero-stage {
  min-height: 540px;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 4px;
  background: rgb(5 8 11 / 0.76);
  box-shadow: 0 36px 90px rgb(0 0 0 / 0.35), inset 0 1px rgb(255 255 255 / 0.04);
}
body[data-family="home"] .hero-motion .hero-stage:has(.hero-art-reserve) {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.digital-volcano { margin: 0; min-height: 540px; position: relative; color: #eef0eb; isolation: isolate; }
.digital-volcano::before {
  content: "";
  position: absolute;
  inset: 20% 8% 10%;
  z-index: -1;
  background: radial-gradient(circle at 50% 52%, rgb(255 89 70 / 0.09), transparent 52%);
  filter: blur(20px);
}
.volcano-meta {
  position: absolute;
  z-index: 2;
  inset: 18px 20px auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 600 0.64rem/1.3 var(--font-mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #818d98;
}
.volcano-live { color: #a9b3bd; white-space: nowrap; }
.volcano-live i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--sig-office);
  box-shadow: 0 0 12px rgb(47 191 154 / 0.72);
  animation: signal-breathe 2.4s ease-in-out infinite;
}
.volcano-map { display: block; width: 100%; min-height: 500px; height: 500px; margin-top: 20px; overflow: visible; }
.volcano-grid path {
  fill: none;
  stroke: rgb(255 255 255 / 0.055);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.volcano-core { fill: url(#coreHeat); filter: url(#softGlow); opacity: 0.72; transform-origin: 320px 226px; animation: core-breathe 4s ease-in-out infinite; }
.volcano-body {
  fill: url(#basalt);
  stroke: rgb(255 255 255 / 0.2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.basalt-ridges path { fill: none; stroke: rgb(255 255 255 / 0.085); stroke-width: 1; vector-effect: non-scaling-stroke; }
.crater-rim { fill: #050709; stroke: url(#craterHeat); stroke-width: 2.2; filter: url(#lavaGlow); vector-effect: non-scaling-stroke; }
.lava-underlay .lava { fill: none; stroke-width: 13; opacity: 0.34; filter: url(#lavaGlow); vector-effect: non-scaling-stroke; }
.lava-streams .lava { fill: none; stroke-width: 2.3; stroke-linecap: round; stroke-dasharray: 2 10; vector-effect: non-scaling-stroke; animation: lava-fall 3.4s linear infinite; }
.lava-blue { stroke: #4a7dff; }
.lava-green { stroke: #2ff0bd; }
.lava-orange { stroke: #ff8a2a; }
.lava-violet { stroke: #b86cff; }
.lava-streams .lava-green { animation-delay: -0.8s; }
.lava-streams .lava-orange { animation-delay: -1.7s; }
.lava-streams .lava-violet { animation-delay: -2.5s; }
.plume { fill: none; stroke-width: 1.4; stroke-linecap: square; stroke-dasharray: 3 15; opacity: 0.66; filter: url(#lavaGlow); vector-effect: non-scaling-stroke; animation: plume-rise 5.6s linear infinite; }
.plume-blue { stroke: #4a7dff; animation-delay: -0.7s; }
.plume-green { stroke: #2ff0bd; animation-delay: -2.1s; }
.plume-orange { stroke: #ff8a2a; animation-delay: -3.5s; }
.plume-violet { stroke: #b86cff; animation-delay: -4.4s; }
.volcano-pixels rect { filter: url(#lavaGlow); }
.pixel-blue { fill: #77a0ff; }
.pixel-green { fill: #66f2cd; }
.pixel-orange { fill: #ffad5f; }
.pixel-violet { fill: #cf9cff; }
.volcano-key {
  position: absolute;
  z-index: 2;
  inset: auto 20px 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.volcano-key li {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #a8b0b8;
  font: 600 0.59rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.volcano-key i { width: 14px; height: 1px; box-shadow: 0 0 7px currentColor; }
.key-blue { color: #4a7dff; background: currentColor; }
.key-green { color: #2ff0bd; background: currentColor; }
.key-orange { color: #ff8a2a; background: currentColor; }
.key-violet { color: #b86cff; background: currentColor; }
.digital-volcano figcaption {
  position: absolute;
  inset: auto 20px 18px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font: 500 0.72rem/1.5 var(--font-mono);
  letter-spacing: 0.08em;
  color: #9ba4ad;
}
@keyframes lava-fall { to { stroke-dashoffset: -120; } }
@keyframes plume-rise { to { stroke-dashoffset: 126; } }
@keyframes core-breathe { 50% { opacity: 0.48; transform: scale(0.88); } }
@keyframes signal-breathe { 50% { opacity: 0.45; box-shadow: 0 0 4px rgb(47 191 154 / 0.35); } }

@media (max-width: 899px) {
  .hero-motion { min-height: auto; }
  .hero-motion .hero-stage, .digital-volcano { min-height: 520px; }
  .volcano-map { min-height: 480px; height: 480px; }
}
@media (max-width: 560px) {
  .hero-motion { padding-top: 54px; }
  .hero-motion .hero-grid { gap: 28px; }
  .hero-motion .hero-stage, .digital-volcano { min-height: 440px; }
  .volcano-map { min-height: 395px; height: 395px; margin-top: 25px; }
  .volcano-meta { inset: 13px 14px auto; font-size: 0.53rem; }
  .volcano-key { inset: auto 14px 50px; grid-template-columns: repeat(2, 1fr); gap: 7px 12px; }
  .volcano-key li { font-size: 0.53rem; }
  .digital-volcano figcaption { inset: auto 14px 13px; font-size: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lava-streams .lava, .plume, .volcano-core, .volcano-live i { animation: none; }
  .volcano-pixels { display: none; }
}

/* ---------- marquee ---------- */
.marquee { overflow: clip; border-bottom: 1px solid var(--line); background: var(--night); padding: 14px 0; }
.marquee-in { display: flex; width: max-content; animation: mq 42s linear infinite; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: #8d97a3; padding: 0 26px; white-space: nowrap; display: flex; align-items: center; gap: 26px; margin: 0;
}
.marquee li::after { content: "·"; color: var(--sig-field); font-size: 1.1rem; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-in { animation: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line-soft); }
.section:nth-of-type(even) { background: var(--white); }
.section.sec-dark, .section.sec-dark:nth-of-type(even) { background: var(--night); color: #e9e6dd; border-bottom-color: #20272e; }
.sec-dark h2, .sec-dark h3 { color: #f4f1e8; }
.sec-dark .lede { color: #c8cdd4; }
.sec-dark .prose { color: #c8cdd4; }
.sec-dark .prose strong { color: #f4f1e8; }
.sec-dark .kicker { color: #77828d; }
.sec-dark li::marker { color: var(--sig-field); }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose h3 { margin-top: 1.6em; }
.prose blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--sig-office);
  color: var(--ink-2); font-family: var(--font-display); font-style: italic; font-size: 1.14rem;
}
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--line-soft); padding: 1px 5px; border-radius: 4px; }
.aside {
  margin-top: 24px; max-width: var(--measure); padding: 14px 18px; background: var(--white);
  border: 1px solid var(--line); border-left: 3px solid var(--sig-public-ink); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem; color: var(--ink-2);
}

/* figures — concept artwork / evidence with literal captions */
.fig { margin: 26px 0 0; max-width: 860px; }
.fig-wide { max-width: none; }
.fig img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.fig figcaption { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); margin-top: 10px; }
.sec-dark .fig img { border-color: #2c353f; }
.sec-dark .fig figcaption { color: #77828d; }

/* steps */
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 0; max-width: 860px; counter-reset: step; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); margin: 0; }
.sec-dark .step { border-top-color: #20272e; }
.step-n {
  width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.9rem; flex: none;
}
.sec-dark .step-n { border-color: #39434e; color: var(--sig-field); }
.step p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.sec-dark .step p { color: #c8cdd4; }

/* tables */
.table-scroll { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; min-width: 640px; }
caption { text-align: left; padding: 12px 16px; font-size: 0.85rem; color: var(--ink-3); font-style: italic; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1.5px solid var(--line); background: var(--paper); }
tbody th { font-weight: 620; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.15s ease; }
tbody tr:hover { background: rgb(246 242 234 / 0.6); }
.table-note { font-size: 0.86rem; color: var(--ink-3); margin-top: 10px; max-width: var(--measure); }

/* callouts */
.sec-callout { padding-block: clamp(30px, 4vw, 48px); }
.callout { max-width: 860px; border: 1px solid var(--line); border-radius: 10px; padding: 24px 28px; background: var(--white); }
.callout h2 { font-size: 1.2rem; font-family: var(--font-ui); font-weight: 680; }
.callout-scope { border-left: 4px solid var(--sig-public-ink); }
.callout-risk { border-left: 4px solid var(--risk); }
.callout-evidence { border-left: 4px solid var(--sig-office); }
.callout-note { border-left: 4px solid var(--sig-field); }
.callout .prose p:last-child { margin-bottom: 0; }

/* evidence */
.ev-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: 900px; }
.ev-item { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; margin: 0; align-items: start; }
.ev-label { font-weight: 640; margin-bottom: 2px; }
.ev-item p { margin: 0 0 4px; color: var(--ink-2); }
.ev-src { font-size: 0.82rem; color: var(--ink-3); font-family: var(--font-mono); }
.ev-state {
  display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap;
}
.ev-verified { color: var(--ok); }
.ev-measured { color: var(--sig-public-ink); }
.ev-demonstration { color: var(--sig-field); }
.ev-proposal { color: var(--sig-return); }
.ev-inference { color: var(--ink-2); }
.ev-pending { color: var(--risk); }
.sec-dark .ev-item { background: var(--night-2); border-color: #20272e; }
.sec-dark .ev-item p { color: #c8cdd4; }

/* checklist */
.checklist { max-width: 860px; margin-top: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px; }
.ck-bar { height: 6px; background: var(--line-soft); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.ck-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sig-office), var(--sig-public)); transition: width 0.35s ease; }
.ck-status { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); margin-bottom: 14px; }
.ck-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 2px; }
.ck-item { margin: 0; }
.ck-item label { display: grid; grid-template-columns: 24px 1fr; gap: 4px 10px; padding: 10px 8px; border-radius: 8px; cursor: pointer; align-items: baseline; }
.ck-item label:hover { background: var(--paper); }
.ck-item input { width: 19px; height: 19px; accent-color: var(--sig-office); transform: translateY(3px); }
.ck-item input:checked ~ .ck-label { text-decoration: line-through; color: var(--ink-3); }
.ck-label { font-weight: 560; }
.ck-hint { grid-column: 2; font-size: 0.88rem; color: var(--ink-3); }
.ck-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ck-actions button, .ex-filters button, .md-qs button, .world-controls button {
  padding: 9px 16px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius);
  font: inherit; font-size: 0.9rem; cursor: pointer; min-height: 42px; transition: border-color 0.15s ease, transform 0.15s ease;
}
.ck-actions button:hover, .ex-filters button:hover, .md-qs button:hover, .world-controls button:hover { border-color: var(--ink); transform: translateY(-1px); }

/* estimator */
.estimator { margin-top: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 26px; }
.est-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.est-factor { border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px 16px; margin: 0; transition: border-color 0.2s ease; }
.est-factor:focus-within { border-color: var(--sig-public-ink); }
.est-factor legend { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 0 6px; }
.est-factor label { display: flex; gap: 9px; align-items: baseline; padding: 6px 4px; border-radius: 6px; cursor: pointer; font-size: 0.95rem; }
.est-factor label:hover { background: var(--paper); }
.est-factor input { accent-color: var(--sig-public-ink); width: 17px; height: 17px; flex: none; transform: translateY(2px); }
.est-out { margin-top: 20px; padding: 20px 22px; background: var(--night); color: var(--white); border-radius: 10px; }
.est-range { font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 0 0 4px; font-weight: 480; }
.est-unit { font-size: 0.9rem; color: #9aa4af; font-family: var(--font-mono); }
.est-expl { margin: 0; font-size: 0.85rem; color: #b9c1ca; }
.est-assume { margin-top: 14px; font-size: 0.92rem; }
.est-assume summary { cursor: pointer; font-weight: 620; padding: 6px 0; }

/* faq */
.faq-list { max-width: 860px; margin-top: 24px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 17px 40px 17px 4px; font-weight: 620; font-size: 1.05rem; position: relative; list-style: none; transition: color 0.15s ease; }
.faq-item summary:hover { color: var(--sig-public-ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-size: 1.3rem; color: var(--ink-3); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .prose { padding: 0 4px 18px; }

/* trace */
.trace { margin-top: 26px; border: 1px solid #20272e; border-radius: 12px; background: var(--night); color: #e8e4da; padding: 28px; }
.tr-rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; position: relative; }
@media (min-width: 600px) { .tr-rail { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tr-rail { grid-template-columns: repeat(4, 1fr); } }
.tr-node { border: 1px solid #2c353f; border-top: 3px solid var(--ink-3); border-radius: 10px; padding: 16px 18px; background: var(--night-2); margin: 0; transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease; }
.tr-node:hover { transform: translateY(-2px); }
.tr-node.tr-public { border-top-color: var(--sig-public); }
.tr-node.tr-office { border-top-color: var(--sig-office); }
.tr-node.tr-field { border-top-color: var(--sig-field); }
.tr-node.tr-return { border-top-color: var(--sig-return); }
.tr-node.dim { opacity: 0.26; }
.tr-layer { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8d97a3; display: block; margin-bottom: 4px; }
.tr-label { font-weight: 660; display: block; margin-bottom: 4px; }
.tr-text { margin: 0; font-size: 0.88rem; color: #b9c1ca; }
.tr-pulse { position: absolute; top: -7px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--white); box-shadow: 0 0 16px rgb(255 255 255 / 0.8); pointer-events: none; transition: top 0.6s ease, left 0.6s ease; }
.tr-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tr-controls button { padding: 8px 14px; border: 1px solid #3a4550; background: transparent; color: #cfd6dd; border-radius: 99px; font: inherit; font-size: 0.84rem; cursor: pointer; min-height: 40px; }
.tr-controls button[aria-pressed="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.tr-note { margin: 14px 0 0; font-size: 0.82rem; color: #8d97a3; font-family: var(--font-mono); }

/* stats */
.stats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 0; display: grid; gap: 2px; }
.stat-v { font-family: var(--font-display); font-size: 2.1rem; font-weight: 480; font-variation-settings: 'opsz' 144; }
.stat-l { font-weight: 600; font-size: 0.95rem; }
.stat-n { font-size: 0.8rem; color: var(--ink-3); font-family: var(--font-mono); }

/* cards */
.cards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.cards.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cards.cols-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards.cols-4 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; margin: 0;
  border-top: 3px solid var(--ink); transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgb(20 24 29 / 0.10); }
.card[data-layer="public"] { border-top-color: var(--sig-public); }
.card[data-layer="office"] { border-top-color: var(--sig-office); }
.card[data-layer="field"] { border-top-color: var(--sig-field); }
.card[data-layer="return"] { border-top-color: var(--sig-return); }
.card h3 { margin-bottom: 6px; font-family: var(--font-display); font-weight: 560; font-size: 1.28rem; letter-spacing: -0.01em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0 0 6px; color: var(--ink-2); font-size: 0.95rem; }
.card-tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 10px; }
.card-meta { font-size: 0.82rem; color: var(--ink-3); font-family: var(--font-mono); }
.card-img-top { padding-top: 0; overflow: hidden; }
.card-img { width: calc(100% + 48px); margin: 0 -24px 16px; display: block; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--line); }
.sec-dark .card { background: var(--night-2); border-color: #20272e; }
.sec-dark .card h3 a { color: #f4f1e8; }
.sec-dark .card p { color: #c8cdd4; }
.sec-dark .card:hover { box-shadow: 0 16px 40px rgb(0 0 0 / 0.4); border-color: #39434e; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 28px 0 0; max-width: 860px; }
.tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); margin: 0; }
.tl-when { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); padding-top: 3px; }
.tl-what { font-weight: 640; margin-bottom: 2px; }
.tl-item p { margin: 0 0 4px; color: var(--ink-2); }

/* mapnz */
.mapnz { display: grid; gap: 28px; margin-top: 26px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .mapnz { grid-template-columns: 300px 1fr 1fr; } }
.nz-fig { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 18px; color: var(--ink-3); }
.nz-p { stroke: var(--dark); stroke-width: 1.5; }
.nz-p.nz-remote { fill: var(--sig-public); } .nz-p.nz-hybrid { fill: var(--sig-office); }
.nz-p.nz-visit { fill: var(--sig-field); } .nz-p.nz-base { fill: var(--ink); }
.nz-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 8px; }
.nz-dot.nz-remote { background: var(--sig-public); } .nz-dot.nz-hybrid { background: var(--sig-office); }
.nz-dot.nz-visit { background: var(--sig-field); } .nz-dot.nz-base { background: var(--ink); }
.nz-modes ul, .nz-regions ul { list-style: none; padding: 0; margin: 10px 0 0; }
.nz-modes li { margin-bottom: 10px; font-size: 0.95rem; color: var(--ink-2); }
.nz-regions li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); margin: 0; font-size: 0.95rem; }
.nz-regions li span { color: var(--ink-3); font-size: 0.84rem; text-align: right; }

/* explorer */
.explorer { margin-top: 26px; }
.ex-filters { display: flex; flex-wrap: wrap; gap: 14px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; align-items: end; }
.ex-f { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.ex-f select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); min-height: 42px; }
.ex-count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); margin: 12px 2px; }
.ex-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ex-item { border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 20px 22px; margin: 0; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ex-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgb(20 24 29 / 0.09); }
.ex-item.hide { display: none; }
.ex-lvl { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sig-return); }
.ex-item h3 { font-family: var(--font-display); font-weight: 560; }
.ex-item p { font-size: 0.92rem; color: var(--ink-2); margin: 6px 0; }
.ex-trade { font-size: 0.85rem !important; }

/* brief builder */
.brief { display: grid; gap: 26px; margin-top: 26px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .brief { grid-template-columns: 7fr 5fr; } .brief-out { position: sticky; top: 86px; } }
.brief-form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin: 0 0 16px; background: var(--white); }
.brief-form legend { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 0 6px; }
.brief-form label { display: grid; gap: 5px; margin-bottom: 12px; font-weight: 580; font-size: 0.95rem; }
.bf-goals label, .bf-consent label { display: flex; gap: 10px; align-items: baseline; font-weight: 500; }
.brief-form input[type="text"], .brief-form input[type="email"], .brief-form textarea {
  font: inherit; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.brief-form input:focus, .brief-form textarea:focus { border-color: var(--sig-public-ink); outline: none; box-shadow: 0 0 0 3px rgb(29 79 215 / 0.15); }
.brief-form input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--sig-office); flex: none; transform: translateY(3px); }
.brief-form .err { border-color: var(--risk) !important; }
.bf-errmsg { color: var(--risk); font-size: 0.85rem; font-weight: 500; }
.brief-out { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 24px 26px; }
.brief-doc { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 10px; padding: 18px; font-size: 0.95rem; min-height: 200px; white-space: pre-wrap; font-family: var(--font-ui); }
.brief-empty { color: var(--ink-3); font-style: italic; }
.bf-out-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.bf-out-actions button { padding: 10px 16px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); font: inherit; cursor: pointer; min-height: 44px; }
.bf-out-actions button:disabled { opacity: 0.45; cursor: not-allowed; }
.bf-stage { font-size: 0.82rem; color: var(--ink-3); margin-top: 16px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.bf-note { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-3); margin-top: 10px; }

/* maven demo */
.md-qs { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.md-out { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 24px 26px; min-height: 160px; max-width: 860px; }
.md-empty { color: var(--ink-3); font-style: italic; }
.md-answer h3 { margin-top: 0; }
.md-src { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; }

/* motion worlds */
.world { background: var(--night); color: #e8e4da; }
.world-stage { position: relative; min-height: min(74vh, 680px); }
.world-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.world-fallback { position: absolute; inset: 0; display: none; place-items: center; padding: 40px; text-align: center; color: #9aa4af; }
.world.static .world-fallback { display: grid; }
.world.static canvas { display: none; }
.world-controls { display: flex; gap: 10px; padding: 14px clamp(16px, 4vw, 40px); border-top: 1px solid #20272e; flex-wrap: wrap; }
.world-controls button { background: transparent; color: #cfd6dd; border-color: #3a4550; border-radius: 99px; }
.world-controls button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.world-hint { padding: 0 clamp(16px, 4vw, 40px) 22px; margin: 0; font-family: var(--font-mono); font-size: 0.8rem; color: #8d97a3; }

/* cta band */
.cta { position: relative; overflow: clip; padding: clamp(56px, 8vw, 104px) 0; background: var(--night); color: #e8e4da; border-bottom: 1px solid var(--line-soft); }
.cta::before {
  content: ""; position: absolute; inset: -40% -10%; pointer-events: none; opacity: 0.5;
  background:
    radial-gradient(38% 42% at 18% 60%, rgb(74 125 255 / 0.16), transparent 70%),
    radial-gradient(30% 40% at 82% 30%, rgb(224 149 67 / 0.14), transparent 70%),
    radial-gradient(26% 34% at 60% 85%, rgb(47 191 154 / 0.12), transparent 70%);
}
.cta > .wrap { position: relative; }
.cta h2 { color: #f4f1e8; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.cta .lede { color: #c4c9be; }
.cta .kicker { color: #8d97a3; }
.cta .btn-primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.cta .btn-quiet { color: var(--white); border-color: #3a4550; }
.cta .btn-quiet:hover { border-color: var(--white); }
.cta-note { font-family: var(--font-mono); font-size: 0.8rem; color: #8d97a3; margin-top: 18px; }

/* related */
.sec-related { background: var(--paper); }
.related { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0; max-width: 760px; }
.related li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); margin: 0; align-items: baseline; }
.related a { font-weight: 620; font-size: 1.02rem; }
.related span { color: var(--ink-3); font-size: 0.86rem; text-align: right; }

/* footer */
.site-foot { background: var(--night); color: #b9c1ca; padding: clamp(48px, 6vw, 72px) 0 0; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-bottom: 44px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.f-name { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); font-weight: 560; }
.f-loc { font-size: 0.88rem; color: #8d97a3; }
.f-h { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #77828d; margin-bottom: 12px; }
.f-col ul { list-style: none; padding: 0; margin: 0; }
.f-col li { margin-bottom: 7px; }
.f-col a { color: #cfd6dd; text-decoration: none; font-size: 0.94rem; }
.f-col a:hover { color: var(--white); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid #20272e; padding-top: 18px; padding-bottom: 22px; font-size: 0.82rem; color: #77828d; }
.foot-base p { margin: 0; }
.foot-base a { color: #b9c1ca; }

/* Ask Maven */
.maven { position: fixed; right: 16px; bottom: 16px; z-index: 80; }
.maven-launch {
  display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 10px 18px;
  background: var(--ink); color: var(--white); border: 0; border-radius: 99px; cursor: pointer;
  font: inherit; font-weight: 620; font-size: 0.95rem; box-shadow: 0 10px 28px rgb(20 24 29 / 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.maven-launch:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgb(20 24 29 / 0.4); }
.maven-launch svg { color: var(--sig-field); }
.maven-panel {
  position: absolute; right: 0; bottom: 64px; width: min(400px, calc(100vw - 32px));
  max-height: min(600px, calc(100vh - 120px)); overflow-y: auto;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 28px 70px rgb(20 24 29 / 0.34);
}
.maven-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: var(--white); }
.maven-title { margin: 0; font-weight: 680; }
.maven-tag { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sig-return); border: 1px solid currentColor; border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.maven-close { background: none; border: 0; font-size: 1.5rem; cursor: pointer; padding: 4px 10px; color: var(--ink-3); }
.maven-body { padding: 16px 18px; }
.maven-scope { font-size: 0.85rem; color: var(--ink-2); background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.maven-log { display: grid; gap: 10px; margin-bottom: 14px; }
.mv-q { justify-self: end; background: var(--ink); color: var(--white); padding: 8px 12px; border-radius: 12px 12px 2px 12px; font-size: 0.9rem; max-width: 85%; }
.mv-a { justify-self: start; background: var(--paper); border: 1px solid var(--line-soft); padding: 10px 13px; border-radius: 12px 12px 12px 2px; font-size: 0.9rem; max-width: 92%; }
.mv-a p { margin: 0 0 6px; }
.mv-src { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3); }
.maven-form label { font-size: 0.85rem; font-weight: 620; display: block; margin-bottom: 6px; }
.maven-row { display: flex; gap: 8px; }
.maven-row input { flex: 1; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; min-width: 0; }
.maven-row button { background: var(--ink); color: var(--white); border: 0; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 620; cursor: pointer; }
.maven-privacy { font-size: 0.76rem; color: var(--ink-3); margin-top: 8px; }
.maven-topics { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.maven-topics button { font: inherit; font-size: 0.8rem; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.maven-topics button:hover { border-color: var(--ink); }
.maven-hand { font-size: 0.84rem; margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 12px; }

/* layer accents */
body[data-layer="public"] .evidence-cue { border-left-color: var(--sig-public); }
body[data-layer="office"] .evidence-cue { border-left-color: var(--sig-office); }
body[data-layer="field"] .evidence-cue { border-left-color: var(--sig-field); }
body[data-layer="return"] .evidence-cue { border-left-color: var(--sig-return); }

/* ---------- responsive nav ---------- */
@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font: inherit; font-weight: 620; cursor: pointer;
  }
  .site-nav { position: relative; }
  .nav-list {
    display: none; position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 24px));
    max-height: calc(100vh - 90px); overflow-y: auto;
    background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 56px rgb(20 24 29 / 0.2);
    padding: 10px; flex-direction: column; align-items: stretch;
  }
  .site-nav.open .nav-list { display: flex; }
  .nav-list a, .sub-toggle { display: block; width: 100%; text-align: left; padding: 12px 14px; }
  .sub { position: static; display: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 6px 14px; padding: 0; min-width: 0; }
  .has-sub.open .sub { display: block; }
  .nav-cta { margin-top: 6px; }
  .nav-cta a { margin-left: 0; text-align: center; }
}

@media (min-width: 700px) {
  body[data-family="home"] .steps { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; }
  body[data-family="home"] .checklist { max-width: none; }
  body[data-family="home"] .ck-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
}

@media (max-width: 899px) {
  .hero-stage:has(.hero-art-reserve) { display: none; }
  body[data-family="home"] .hero-motion { min-height: auto; }
}

@media (max-width: 900px) {
  .maven-launch span { display: none; }
  .maven-launch { padding: 13px; }
}

/* ---------- small screens ---------- */
@media (max-width: 480px) {
  h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .ev-item { grid-template-columns: 1fr; gap: 8px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .maven { right: 10px; bottom: 10px; }
  .maven-launch span { display: none; }
  .maven-launch { padding: 13px; }
  .related li { flex-direction: column; gap: 2px; }
  .related span { text-align: left; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .tr-pulse { display: none; }
  .hero-fx { opacity: 0.4; }
  .world canvas { display: none; }
  .world .world-fallback { display: grid; }
}

/* ---------- print ---------- */
@media print {
  .site-head, .maven, .no-print, .crumbs, .site-foot, .cta, .world-controls, .hero-fx, .marquee { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  body::after { display: none; }
  .section { padding: 18px 0; border: 0; }
  .hero, .hero-dark { padding: 12px 0; background: #fff; color: #000; }
  .hero-dark h1 { color: #000; }
  .hero-dark .answer { color: #333; }
  .trace, .est-out { background: #fff; color: #000; border: 1px solid #999; }
  .tr-node { background: #fff; color: #000; border-color: #999; }
  .tr-text, .tr-layer, .tr-note { color: #333; }
  a { color: #000; }
}
