/* =====================================================================
   airfy.com · Agentic Networking (vision site)
   Concept: "Mixed type, one baseline". Typefaces stand in for vendors,
   a ruled line stands for your rules. Paper, ink, measured data.
   ===================================================================== */

/* ---------- Fonts (all SIL OFL 1.1, subsetted, see assets/fonts/licenses) ---------- */
@font-face { font-family: "Instrument Sans"; src: url(../fonts/instrument-sans-var.woff2) format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/jetbrains-mono-var.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }
/* "Vendor" faces for the mixed-type device letters */
@font-face { font-family: "V Fraunces"; src: url(../fonts/fraunces-soft-800.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "V Unbounded"; src: url(../fonts/unbounded-900.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "V Playfair"; src: url(../fonts/playfair-900i.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "V Anton"; src: url(../fonts/anton-400.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "V Silkscreen"; src: url(../fonts/silkscreen-700.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "V Stencil"; src: url(../fonts/bigshoulders-stencil-900.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "V VT323"; src: url(../fonts/vt323-400.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "V RubikMono"; src: url(../fonts/rubik-mono-one-400.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "V DMSerif"; src: url(../fonts/dm-serif-display-400.woff2) format("woff2"); font-display: block; }

:root {
  --paper: #F3F2EE;
  --paper-2: #EBEAE4;
  --paper-3: #E2E1DA;
  --ink: #16191A;
  --ink-2: #3C454A;
  --muted: #6A757B;
  --hair: rgba(22, 25, 26, .14);
  --hair-2: rgba(22, 25, 26, .08);
  --ruled: rgba(48, 77, 91, .075);
  /* Airfy berry palette (from the delivered logo) */
  --slate: #304D5B;
  --steel: #4C7C92;
  --sky: #7FAFC5;
  --mist: #AFCDDB;
  /* one warm signal, only for findings */
  --signal: #E0492A;
  --night: #0E1417;
  --night-2: #151E22;
  --night-hair: rgba(175, 205, 219, .16);

  --f-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --v-a: "V Fraunces", Georgia, serif;
  --v-b: "V Anton", Impact, sans-serif;
  --v-l: "V VT323", "Courier New", monospace;

  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1360px;
  --line: 40px;           /* ruled paper pitch */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --top-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/1.55 var(--f-sans);
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--mist); color: var(--ink); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.nb { white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 4px; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: flex; align-items: center; gap: .6em; flex-wrap: wrap; }
.eyebrow b { color: var(--steel); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: .7em; white-space: nowrap;
  padding: 15px 22px 15px 24px; border-radius: 999px; border: 1.5px solid var(--bg);
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font: 600 16px/1 var(--f-sans); letter-spacing: -.005em;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
}
.btn .arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.btn:hover { --bg: var(--slate); }
.btn:hover .arr { transform: translateX(4px); }
.btn:hover .arr-down { transform: translateY(3px); }
.btn:active { transform: scale(.98); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--hair); }
.btn-ghost:hover { --bg: transparent; border-color: var(--ink); }
.btn-sm { padding: 10px 14px 10px 16px; font-size: 14px; }
.btn-xl { padding: 22px 30px 22px 34px; font-size: 20px; }

.pill { display: inline-block; padding: 4px 10px 3px; border-radius: 999px; border: 1px solid currentColor; font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); white-space: nowrap; }
.pill-test { color: var(--signal); }
.pill-go { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--top-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--pad);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-berry { width: 30px; height: 30px; }
.brand-word { height: 18px; width: auto; }
.top-tag { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-right: auto; padding-left: 20px; border-left: 1px solid var(--hair); }
.top-tag b { color: var(--steel); font-weight: 400; }
.js .top-tag { opacity: 0; transform: translateY(-4px); transition: opacity .4s, transform .4s var(--ease-out); }
.js .top.is-scrolled .top-tag { opacity: 1; transform: none; }
.top { transition: background .35s, color .35s; }
.top.is-dark { background: color-mix(in srgb, var(--night) 84%, transparent); color: #E8EEF0; }
.top .brand-word-light, .top .brand-berry-light { display: none; }
.top.is-dark .brand-word, .top.is-dark .brand-berry { display: none; }
.top.is-dark .brand-word-light, .top.is-dark .brand-berry-light { display: block; }
.top.is-dark .top-tag { color: rgba(232, 238, 240, .55); border-color: var(--night-hair); }
.top.is-dark .btn-sm { --bg: #E8EEF0; --fg: var(--night); }
.top.is-dark .btn-sm:hover { --bg: var(--mist); }
.top.is-dark .top-progress { background: var(--night-hair); }
.top.is-dark .top-progress i { background: var(--sky); }
.top-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair-2); }
.top-progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Ruled paper ---------- */
.hero, .rules, .outlook, .status {
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--line) - 1px), var(--ruled) calc(var(--line) - 1px) var(--line));
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; min-height: 100svh; max-width: none;
  padding: calc(var(--top-h) + clamp(28px, 6vh, 72px)) var(--pad) clamp(40px, 7vh, 80px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-eyebrow { margin-bottom: clamp(18px, 3.5vh, 40px); }
.hero-title {
  --fs: clamp(64px, 11.2vw, 196px);
  position: relative; font-size: var(--fs); line-height: 1; font-weight: 400; letter-spacing: 0;
  display: flex; flex-direction: column; align-items: flex-start; user-select: none; -webkit-user-select: none;
}
.mixed { position: relative; display: block; white-space: nowrap; line-height: 1.02; padding-top: .08em; }
.mixed .ch { position: relative; display: inline-block; will-change: transform; cursor: grab; touch-action: none; margin-right: .03em; }
.mixed .ch-pixel { margin-left: .05em; margin-right: .06em; }
.mixed .ch.is-drag { cursor: grabbing; z-index: 2; }
.mixed .sp { display: inline-block; width: .26em; }
.mixed .tag {
  position: absolute; left: .02em; top: 110%; white-space: nowrap; pointer-events: none;
  font: 500 12px/1.35 var(--f-mono); letter-spacing: .03em; color: var(--ink);
  display: grid; padding-left: 9px; border-left: 1px solid var(--hair);
}
.mixed .tag em { font-style: normal; color: var(--muted); transition: color .4s; }
.mixed .tag.is-kept em { color: var(--steel); }
.rule { position: absolute; left: 0; width: 100%; height: 82px; top: 0; z-index: 1; pointer-events: none; }
.rule svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.js .mixed { visibility: hidden; }
.js .mixed.is-built { visibility: visible; }
.rule path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rule circle { fill: var(--steel); }
.uniform { display: block; overflow: hidden; padding-top: .02em; margin-top: .06em; }
.uniform > span {
  display: block; font-weight: 700; font-stretch: 100%; letter-spacing: -.045em; line-height: .98; padding-bottom: .06em;
}
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px 56px; margin-top: clamp(28px, 5vh, 56px); }
.status-link { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 12px; color: var(--muted); text-decoration: none; justify-self: start; }
.status-link:hover { color: var(--ink); }
.status-link .pill { font-size: 10px; padding: 3px 8px 2px; }
.lede { font-size: clamp(19px, 1.55vw, 23px); line-height: 1.5; max-width: 40ch; color: var(--ink-2); text-wrap: pretty; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hint { position: absolute; right: var(--pad); top: 50%; color: var(--muted); display: flex; align-items: center; gap: 8px; opacity: 0; transition: opacity .6s; pointer-events: none; }
.hint::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(-45deg) translate(-1px, 1px); }
.hint.is-on { opacity: 1; }

/* intro states (JS adds .is-intro, removes when done) */
.js .hero .uniform > span { transform: translateY(105%); }
.js .hero.is-ready .uniform > span { transform: none; transition: transform 1s var(--ease-out); }
.js .hero .hero-foot, .js .hero .hero-eyebrow { opacity: 0; transform: translateY(14px); }
.js .hero.is-done .hero-foot, .js .hero.is-done .hero-eyebrow { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .hero.is-done .hero-eyebrow { transition-delay: .1s; }

/* =====================================================================
   STORY (sticky stage + steps)
   ===================================================================== */
.story {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0 clamp(24px, 4vw, 72px); padding: 0 var(--pad); max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto;
}
.stage-wrap { grid-column: 2; grid-row: 1; }
.stage {
  position: sticky; top: calc(var(--top-h) + 16px); height: calc(100svh - var(--top-h) - 32px); max-height: 860px;
  border: 1px solid var(--hair); border-radius: 18px; background: var(--paper); overflow: hidden;
  display: flex; flex-direction: column;
}
.steps { grid-column: 1; grid-row: 1; padding: 12vh 0 16vh; }
.step { min-height: 82svh; display: flex; flex-direction: column; justify-content: center; gap: 22px; max-width: 520px; transition: opacity .5s; }
.js .step { opacity: .28; }
.js .step.is-active { opacity: 1; }
.step h2 { font-size: clamp(38px, 4.2vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 650; text-wrap: balance; }
.step p:not(.eyebrow):not(.fact) { font-size: 19px; color: var(--ink-2); text-wrap: pretty; max-width: 44ch; }
.fact { display: inline-flex; align-self: flex-start; align-items: baseline; gap: 14px; padding: 10px 16px; border: 1px solid var(--hair); border-radius: 10px; background: var(--paper); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.fact b { font: 700 22px/1 var(--f-sans); letter-spacing: -.02em; color: var(--ink); text-transform: none; }

.stage-bar {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--hair-2);
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: 11px;
}
.stage-bar .sb-site { color: var(--ink); display: flex; align-items: center; gap: 8px; }
.stage-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); box-shadow: 0 0 0 3px rgba(76, 124, 146, .18); }
.stage-bar .sb-mode { margin-right: auto; }
.stage-bar .sb-count { color: var(--ink); }
.stage-bar span { transition: color .4s; }
.stage[data-step="4"] .stage-bar .dot { background: var(--signal); box-shadow: 0 0 0 3px rgba(224, 73, 42, .18); }

.stage-sites { display: flex; gap: 6px; padding: 10px 18px 0; flex-wrap: wrap; height: 0; opacity: 0; overflow: hidden; transition: height .5s var(--ease-out), opacity .4s; }
.stage-sites span { padding: 5px 10px; border: 1px solid var(--hair); border-radius: 999px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.stage-sites .is-picked { border-color: var(--ink); color: var(--ink); display: inline-flex; gap: 8px; }
.stage-sites .is-picked em { font-style: normal; color: var(--steel); }
.stage[data-step="3"] .stage-sites, .stage[data-step="4"] .stage-sites { height: 38px; opacity: 1; }

.stage-svg { position: relative; flex: 1; min-height: 0; }
.stage-svg svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* SVG scene styling */
.sc-slab { stroke: var(--ink); stroke-width: 2; fill: none; }
.sc-wall { stroke: var(--ink); stroke-width: 1.25; fill: none; }
.sc-ground { stroke: var(--ink); stroke-width: 2.5; }
.sc-hatch { stroke: var(--ink); stroke-width: .8; opacity: .35; }
.sc-flabel { font: 500 11px var(--f-mono); fill: var(--muted); letter-spacing: .06em; }
.sc-vtag { fill: var(--ink); }
.sc-vtag-a { font: 20px var(--v-a); }
.sc-vtag-b { font: 22px var(--v-b); letter-spacing: .02em; }
.sc-vtag-l { font: 24px var(--v-l); }
.sc-vtag-sub { font: 500 10px var(--f-mono); fill: var(--muted); letter-spacing: .06em; }
.sc-dev { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.sc-dev-fill { fill: var(--ink); }
.sc-led { fill: var(--ink); }
.sc-ripple { fill: none; stroke-width: 1.4; }
.sc-halo { fill: none; stroke: var(--steel); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease-out); }
.stage:not([data-step="1"]) .sc-halo { stroke-dashoffset: 0; }
.sc-tape { font: 10px var(--f-mono); }
.sc-kept { font: 600 10px var(--f-mono); fill: var(--steel); letter-spacing: .08em; opacity: 0; transition: opacity .5s; }
.sc-sub { transition: opacity .4s; }
.stage:not([data-step="1"]) .sc-kept { opacity: 1; transition-delay: .6s; }
.stage:not([data-step="1"]) .sc-sub { opacity: 0; }
.sc-scan { opacity: 0; transition: opacity .5s; }
.stage[data-step="3"] .sc-scan { opacity: 1; }
.sc-stamp { opacity: 0; transform: rotate(-6deg) scale(1.3); transform-box: fill-box; transform-origin: center; transition: opacity .3s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.stage[data-step="3"] .sc-stamp { opacity: 1; transform: rotate(-6deg) scale(1); transition-delay: .35s; }
.sc-stamp rect { fill: none; stroke: var(--slate); stroke-width: 2; }
.sc-stamp text { font: 700 11px var(--f-mono); fill: var(--slate); letter-spacing: .12em; }
.sc-stamp .sub { font: 500 9.5px var(--f-mono); letter-spacing: .1em; }
.sc-mark { fill: none; stroke: var(--signal); stroke-width: 2.2; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .9s var(--ease-io), opacity .2s; }
.stage[data-step="4"] .sc-mark { stroke-dashoffset: 0; opacity: 1; transition-delay: .15s; }
.sc-mark-bg { fill: var(--paper); }
.finding .ch-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-io); }
.stage[data-step="4"] .finding .ch-line { stroke-dashoffset: 0; transition-delay: .8s; }
.finding .ch-area, .finding .ch-peak, .finding .ch-peak-lbl { opacity: 0; transition: opacity .6s; }
.stage[data-step="4"] .finding .ch-area, .stage[data-step="4"] .finding .ch-peak, .stage[data-step="4"] .finding .ch-peak-lbl { opacity: 1; transition-delay: 1.9s; }
.sc-mark-lbl { font: 600 11px var(--f-mono); fill: var(--signal); letter-spacing: .08em; opacity: 0; transition: opacity .4s; }
.stage[data-step="4"] .sc-mark-lbl { opacity: 1; transition-delay: .8s; }
.sc-obs { fill: var(--steel); }

/* overlays in the lower part of the stage */
.inventory, .reports { position: absolute; left: 18px; bottom: 18px; right: 18px; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s var(--ease-out); pointer-events: none; }
.stage[data-step="2"] .inventory, .stage[data-step="3"] .reports { opacity: 1; transform: none; transition-delay: .3s; }
.ov-title { text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; color: var(--muted); margin-bottom: 10px; }
.ov-title span { color: var(--steel); }
.inventory ol { border-top: 1px solid var(--ink); }
.inventory li { display: grid; grid-template-columns: 130px 1fr auto; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 12px; color: var(--ink-2); opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .5s var(--ease-out); }
.stage[data-step="2"] .inventory li { opacity: 1; transform: none; }
.stage[data-step="2"] .inventory li:nth-child(1) { transition-delay: .5s; }
.stage[data-step="2"] .inventory li:nth-child(2) { transition-delay: .7s; }
.stage[data-step="2"] .inventory li:nth-child(3) { transition-delay: .9s; }
.inventory b { color: var(--steel); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; display: inline-flex; gap: 6px; align-items: center; }
.inventory b::before { content: ""; width: 9px; height: 5px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.vn { color: var(--ink); line-height: 1; }
.vn-a { font: 19px var(--v-a); }
.vn-b { font: 20px var(--v-b); }
.vn-l { font: 23px var(--v-l); }
.reports ol { border-top: 1px solid var(--ink); height: 150px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); }
.reports li { display: grid; grid-template-columns: 64px 26px 76px 1fr; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--hair-2); font-size: 11px; color: var(--ink-2); white-space: nowrap; animation: rp-in .4s var(--ease-out) both; }
.reports li span:first-child { color: var(--muted); }
.reports li em { font-style: normal; color: var(--steel); }
@keyframes rp-in { from { opacity: 0; transform: translateY(8px); } }

/* ticket queue */
.queue { position: absolute; left: 18px; bottom: 18px; width: min(270px, 44%); opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s var(--ease-out); pointer-events: none; }
.stage[data-step="1"] .queue { opacity: 1; transform: none; }
.queue-title { text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.queue-title::after { content: attr(data-n); color: var(--signal); }
.queue ol { display: flex; flex-direction: column-reverse; gap: 6px; }
.queue li {
  font: 500 12.5px/1.25 var(--f-sans); padding: 9px 12px; border-radius: 8px; background: var(--paper);
  border: 1px solid var(--hair); box-shadow: 0 6px 16px -10px rgba(22, 25, 26, .35);
  display: flex; justify-content: space-between; gap: 12px;
  animation: tk-in .55s var(--ease-out) both;
}
.queue li small { font: 500 10px var(--f-mono); color: var(--muted); white-space: nowrap; }
.queue li.is-out { animation: tk-out .4s ease-in both; }
@keyframes tk-in { from { opacity: 0; transform: translateY(-22px) rotate(-2deg); } }
@keyframes tk-out { to { opacity: 0; transform: translateY(10px) scale(.96); } }

/* finding card */
.finding {
  position: absolute; right: 16px; bottom: 16px; width: min(380px, calc(100% - 32px));
  background: var(--paper); border: 1px solid var(--ink); border-radius: 14px; padding: 16px 18px 14px;
  box-shadow: 0 24px 50px -24px rgba(22, 25, 26, .45);
  opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity .45s, transform .7s var(--ease-out);
}
.stage[data-step="4"] .finding { opacity: 1; transform: none; transition-delay: .55s; pointer-events: auto; }
.finding-kicker { display: flex; gap: 10px; align-items: center; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: 10.5px; }
.finding-kicker .sig { color: #fff; background: var(--signal); padding: 3px 7px 2px; border-radius: 4px; }
.finding-title { font: 650 20px/1.2 var(--f-sans); letter-spacing: -.02em; margin: 10px 0 8px; }
.finding-chart { height: 96px; margin: 0 -4px 8px; }
.finding-chart svg { width: 100%; height: 100%; overflow: visible; }
.finding-data { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; font-size: 11.5px; }
.finding-data div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--hair-2); }
.finding-data dt { color: var(--muted); }
.finding-data dd { font-weight: 700; }
.finding-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ink); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.finding-foot b { color: var(--ink); }

/* chart primitives */
.ch-grid { stroke: var(--hair-2); stroke-width: 1; }
.ch-thr { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .5; }
.ch-area { fill: url(#sigfade); }
.ch-line { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-lbl { font: 500 9.5px var(--f-mono); fill: var(--muted); }
.ch-peak { fill: var(--signal); }
.ch-peak-lbl { font: 700 10px var(--f-mono); fill: var(--signal); }

/* =====================================================================
   SECTION HEADS
   ===================================================================== */
.sec-head { display: grid; gap: 22px; max-width: 980px; }
.sec-head h2 { font-size: clamp(44px, 7vw, 112px); line-height: .96; letter-spacing: -.045em; font-weight: 680; text-wrap: balance; }
.sec-head h2 .soft { color: var(--muted); }
.sec-lede { font-size: clamp(19px, 1.5vw, 22px); color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.footnote { color: var(--muted); margin-top: 18px; font-size: 11px; letter-spacing: .04em; }

/* reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* =====================================================================
   RULES / CONSOLE
   ===================================================================== */
.rules { padding: clamp(100px, 16vh, 180px) var(--pad) clamp(80px, 12vh, 140px); }
.rules > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.console {
  margin-top: clamp(40px, 6vh, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border: 1px solid var(--ink); border-radius: 20px; background: var(--paper); overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(22, 25, 26, .45);
}
.console-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 14px 20px; border-bottom: 1px solid var(--hair); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: 11px; }
.console-bar > span:first-child { color: var(--ink); font-weight: 600; }
.console-bar b { color: var(--ink); font-weight: 600; }
.legend { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: .02em; }
.legend .tok { margin-left: 8px; }
.console-sites { border-right: 1px solid var(--hair); display: flex; flex-direction: column; }
.sites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 26px 26px 12px; flex: 1; align-content: start; }
.console-try { display: flex; gap: 8px; align-items: center; padding: 8px 26px 22px; color: var(--muted); }
.console-try svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; transform: rotate(-90deg); }

.tok { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--hair); background: var(--paper); font-style: normal; color: var(--ink); line-height: 1; }
.tok-a { font: 15px var(--v-a); }
.tok-b { font: 15px var(--v-b); }
.tok-l { font: 19px var(--v-l); }
.tok-c { font: 15px "V Stencil", sans-serif; }
.tok-d { font: 15px "V DMSerif", serif; }

.site { position: relative; padding: 16px 16px 14px; border-radius: 14px; display: flex; flex-direction: column; gap: 12px; min-height: 176px; }
.site::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px dashed var(--hair); transition: opacity .3s; }
.site-line { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); pointer-events: none; overflow: visible; }
.site-line rect { fill: none; stroke: var(--slate); stroke-width: 2; stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset .9s var(--ease-io); }
.site.is-change .site-line rect { stroke-dashoffset: 0; }
.site.is-change::before { opacity: 0; }
.site-line-lbl { position: absolute; top: -15px; left: 14px; padding: 0 6px; background: var(--paper); font: 600 10px/16px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); opacity: 0; transition: opacity .3s; }
.site.is-change .site-line-lbl { opacity: 1; transition-delay: .5s; }
.site-name { display: flex; justify-content: space-between; align-items: center; font: 650 17px/1.2 var(--f-sans); letter-spacing: -.01em; }
.site-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--hair); transition: background .3s, box-shadow .3s; }
.site.is-ping .site-pulse { background: var(--steel); box-shadow: 0 0 0 5px rgba(76, 124, 146, .2); }
.site.is-ping.ping-flag .site-pulse { background: var(--signal); box-shadow: 0 0 0 5px rgba(224, 73, 42, .2); }
.site-devs { display: flex; gap: 4px; flex-wrap: wrap; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--hair-2); position: relative; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 7px 4px; border-radius: 999px; cursor: pointer; font: 600 11.5px/1 var(--f-sans); color: var(--muted); transition: color .3s; white-space: nowrap; }
.seg button[aria-pressed="true"] { color: var(--paper); }
.seg::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--ink-2); transition: transform .45s var(--ease-out), background .3s; }
.site.is-change .seg::before { transform: translateX(100%); background: var(--slate); }
.site-last { font: 500 11px/1.4 var(--f-mono); color: var(--muted); min-height: 2.8em; margin-top: auto; }
.site-last b { font-weight: 600; color: var(--ink); }

.ledger { display: flex; flex-direction: column; min-width: 0; background: var(--paper); }
.ledger-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--hair); }
.ledger-counts span { padding: 10px 20px; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--hair-2); }
.ledger-counts span:nth-child(odd) { border-right: 1px solid var(--hair-2); }
.ledger-counts b { font: 700 17px/1 var(--f-sans); color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.ledger-list { height: 470px; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.le { padding: 13px 20px 14px; border-bottom: 1px solid var(--hair-2); display: grid; gap: 5px; animation: le-in .7s var(--ease-out) both; }
.le-head { display: flex; gap: 10px; align-items: center; font: 500 10.5px/1 var(--f-mono); letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.le-head .no { color: var(--ink-2); }
.le-head .who { margin-left: auto; padding: 3px 7px 2px; border-radius: 4px; border: 1px solid var(--hair); }
.le-changed .who { background: var(--slate); color: #fff; border-color: var(--slate); }
.le-reported .who { color: var(--slate); border-color: var(--slate); }
.le-flagged .who { color: var(--signal); border-color: var(--signal); }
.le-you .who { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.le-what { font: 550 15px/1.35 var(--f-sans); letter-spacing: -.005em; }
.le-why { font: 500 11.5px/1.45 var(--f-mono); color: var(--muted); }
.le-why b { color: var(--ink-2); font-weight: 600; }
.le.is-new { background: linear-gradient(90deg, rgba(175, 205, 219, .45), transparent 80%); }
.le-you.is-new { background: linear-gradient(90deg, rgba(22, 25, 26, .08), transparent 80%); }
@keyframes le-in { from { opacity: 0; transform: translateY(-14px); } }

/* =====================================================================
   ASK (dark)
   ===================================================================== */
.ask { background: var(--night); color: #E8EEF0; padding: clamp(100px, 16vh, 180px) var(--pad); position: relative; overflow: hidden; }
.ask::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--line) - 1px), rgba(175, 205, 219, .05) calc(var(--line) - 1px) var(--line)); pointer-events: none; }
.ask-inner { position: relative; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.ask .sec-head { position: sticky; top: calc(var(--top-h) + 40px); }
.ask .sec-head h2 { font-size: clamp(44px, 5.6vw, 92px); }
.ask .eyebrow { color: rgba(232, 238, 240, .55); }
.ask .eyebrow b { color: var(--sky); }
.ask .sec-lede { color: rgba(232, 238, 240, .72); }
.ask .footnote { color: rgba(232, 238, 240, .45); }
.ask .pill-test { color: #FF7A5C; }
.askbox { border: 1px solid var(--night-hair); border-radius: 20px; background: var(--night-2); padding: 22px; min-height: 620px; display: flex; flex-direction: column; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--night-hair); }
.chip { border: 1px solid var(--night-hair); background: transparent; color: rgba(232, 238, 240, .8); border-radius: 999px; padding: 9px 14px; font: 500 14px/1.2 var(--f-sans); cursor: pointer; text-align: left; transition: border-color .25s, color .25s, background .25s; }
.chip:hover { border-color: var(--sky); color: #fff; }
.chip[aria-pressed="true"] { background: #E8EEF0; color: var(--night); border-color: #E8EEF0; }
.ask-thread { flex: 1; padding-top: 26px; display: flex; flex-direction: column; gap: 22px; }
.q { align-self: flex-end; max-width: 88%; font: 550 clamp(20px, 1.9vw, 26px)/1.28 var(--f-sans); letter-spacing: -.015em; color: #fff; text-align: right; }
.q .caret { display: inline-block; width: 2px; height: 1em; background: var(--sky); vertical-align: -.12em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.q-who { display: block; font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(232, 238, 240, .45); margin-bottom: 8px; }
.a { max-width: 100%; display: grid; gap: 16px; }
.a-who { font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sky); display: flex; align-items: center; gap: 8px; }
.a-who i { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.a-who.is-thinking i { animation: think 1s ease-in-out infinite; }
@keyframes think { 50% { opacity: .2; transform: scale(.6); } }
.a-text { font: 400 clamp(17px, 1.35vw, 19px)/1.55 var(--f-sans); color: rgba(232, 238, 240, .92); max-width: 60ch; }
.a-text .w { opacity: 0; animation: w-in .35s ease-out forwards; }
@keyframes w-in { to { opacity: 1; } }
.a-text b { color: #fff; font-weight: 650; }
.a-ev { border: 1px solid var(--night-hair); border-radius: 14px; padding: 14px 16px; background: rgba(255, 255, 255, .02); opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .7s var(--ease-out); }
.a-ev.is-in { opacity: 1; transform: none; }
.a-ev-head { display: flex; justify-content: space-between; gap: 10px; font: 500 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(232, 238, 240, .5); margin-bottom: 10px; }
.a-ev-head b { color: var(--sky); font-weight: 500; }
.a-ev svg { width: 100%; height: auto; overflow: visible; }
.a-ev .ch-grid { stroke: rgba(175, 205, 219, .1); }
.a-ev .ch-thr { stroke: #E8EEF0; }
.a-ev .ch-lbl { fill: rgba(232, 238, 240, .45); }
.a-ev .ch-line { stroke: #FF7A5C; }
.a-ev .ch-peak { fill: #FF7A5C; }
.a-ev .ch-peak-lbl { fill: #FF7A5C; }
.a-ev .ch-band { fill: rgba(255, 122, 92, .08); }
.a-ev .ch-band-lbl { font: 500 9.5px var(--f-mono); fill: #FF7A5C; }
.tbl { width: 100%; border-collapse: collapse; font: 500 12.5px/1.4 var(--f-mono); }
.tbl th { text-align: left; font-weight: 500; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(232, 238, 240, .45); padding: 0 10px 8px 0; }
.tbl td { padding: 9px 10px 9px 0; border-top: 1px solid var(--night-hair); color: rgba(232, 238, 240, .88); vertical-align: top; }
.tbl td:first-child { color: #fff; white-space: nowrap; }
.tbl .ok { color: var(--sky); }

/* =====================================================================
   OUTLOOK
   ===================================================================== */
.outlook { padding: clamp(100px, 16vh, 180px) var(--pad); }
.outlook > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.outlook .sec-head { max-width: var(--max); }
.outlook .sec-head h2 { max-width: 16ch; }
.outlook-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(40px, 7vh, 80px); }
.ol-card { border: 1px solid var(--hair); border-radius: 20px; padding: 26px; background: var(--paper); display: flex; flex-direction: column; gap: 22px; }
.ol-card > p:last-child { font-size: 19px; color: var(--ink-2); max-width: 40ch; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; min-height: 250px; }
.slot { border: 1px solid var(--hair); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--paper-2); }
.slot-job { font: 500 11px/1.35 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; min-height: 2.7em; }
.slot-win { position: relative; height: 104px; overflow: hidden; border-radius: 10px; background: var(--paper); border: 1px solid var(--hair-2); }
.slot-reel { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.slot-reel div { height: 104px; display: grid; place-items: center; font-size: 64px; line-height: 1; color: var(--ink); }
.ff-a { font-family: var(--v-a); } .ff-b { font-family: var(--v-b); } .ff-l { font-family: var(--v-l); font-size: 1.3em !important; }
.ff-c { font-family: "V Stencil", sans-serif; } .ff-d { font-family: "V DMSerif", serif; }
.slot-pick { font: 500 11px/1.4 var(--f-mono); display: grid; gap: 2px; opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .5s var(--ease-out); }
.slot-pick b { color: var(--slate); font-weight: 600; }
.slot-pick span { color: var(--muted); }
.slot.is-picked .slot-pick { opacity: 1; transform: none; }
.slot.is-picked .slot-win { border-color: var(--slate); box-shadow: inset 0 0 0 1px var(--slate); }

.tenants { position: relative; min-height: 250px; display: grid; grid-template-columns: 116px 1fr; gap: 0 clamp(40px, 6vw, 88px); align-items: center; }
.tn-login { grid-row: 1 / span 5; align-self: center; border: 1.5px solid var(--ink); border-radius: 12px; padding: 12px; text-align: center; font: 600 13px/1.25 var(--f-sans); background: var(--paper); position: relative; z-index: 1; }
.tn-login small { display: block; font: 500 10px var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.tn-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hair-2); opacity: 0; transform: translateX(-10px); transition: opacity .5s, transform .6s var(--ease-out); transition-delay: var(--d); }
.tn-row:last-of-type { border-bottom: 0; }
.tn-row span { font: 500 11px var(--f-mono); color: var(--muted); width: 84px; text-transform: uppercase; letter-spacing: .06em; }
.tn-row .toks { display: flex; gap: 4px; }
.tenants.is-in .tn-row { opacity: 1; transform: none; }
.tn-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.tn-wires path { fill: none; stroke: var(--slate); stroke-width: 1.4; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1s var(--ease-io); transition-delay: var(--d); }
.tenants.is-in .tn-wires path { stroke-dashoffset: 0; }

/* =====================================================================
   STATUS
   ===================================================================== */
.status { padding: clamp(60px, 10vh, 120px) var(--pad) clamp(100px, 14vh, 160px); }
.status > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.spec { margin-top: clamp(36px, 6vh, 64px); border-top: 2px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) 150px; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.spec dt { font: 600 clamp(19px, 1.8vw, 26px)/1.25 var(--f-sans); letter-spacing: -.02em; }
.spec dd { color: var(--ink-2); font-size: 18px; }
.spec .st { text-align: right; }

/* =====================================================================
   CTA
   ===================================================================== */
.cta { background: var(--ink); color: var(--paper); padding: clamp(110px, 18vh, 200px) var(--pad); overflow: hidden; position: relative; }
.cta-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 30px; justify-items: start; position: relative; }
.cta-title { font-size: clamp(52px, 9.4vw, 168px); line-height: .94; letter-spacing: -.05em; font-weight: 700; max-width: 12ch; }
.cta .eyebrow { color: rgba(243, 242, 238, .5); }
.cta .eyebrow b { color: var(--sky); }
.mx-word { display: inline-block; letter-spacing: 0; white-space: nowrap; }
.mx { display: inline-block; font-weight: 400; font-synthesis: none; transition: transform 1s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(.35s + var(--i) * .09s); }
.mx-1 { font-family: var(--v-a); font-size: .98em; --i: 0; }
.mx-2 { font-family: var(--v-l); font-size: 1.42em; --i: 1; margin: 0 .03em; }
.mx-3 { font-family: var(--v-b); font-size: .86em; --i: 2; }
.mx-4 { font-family: "V Playfair", serif; font-size: 1em; --i: 3; margin-right: .06em; }
.js .cta-title:not(.is-in) .mx-1 { transform: translate(-.05em, -.35em) rotate(-14deg); }
.js .cta-title:not(.is-in) .mx-2 { transform: translate(0, .22em) rotate(9deg); }
.js .cta-title:not(.is-in) .mx-3 { transform: translate(.04em, -.5em) rotate(12deg); }
.js .cta-title:not(.is-in) .mx-4 { transform: translate(.06em, .18em) rotate(-10deg); }
.cta .sec-lede { color: rgba(243, 242, 238, .72); }
.cta-rule { display: flex; align-items: center; width: 100%; margin-top: 18px; }
.cta-line { flex: 1; height: 3px; background: var(--paper); transform-origin: 0 50%; border-radius: 2px; position: relative; }
.cta-line::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--sky); }
.js .cta-rule:not(.is-in) .cta-line { transform: scaleX(0); }
.cta-rule.is-in .cta-line { transition: transform 1.4s var(--ease-io) .2s; }
.cta .btn { --bg: var(--paper); --fg: var(--ink); margin-left: 22px; }
.js .cta-rule:not(.is-in) .btn { opacity: 0; transform: translateX(-16px); }
.cta-rule.is-in .btn { transition: opacity .5s 1.3s, transform .8s var(--ease-out) 1.3s, background .25s, color .25s; }
.cta .btn:hover { --bg: var(--mist); }

/* "the line." gets drawn under it */
.drawn { position: relative; white-space: nowrap; }
.drawn::after { content: ""; position: absolute; left: 0; right: .05em; bottom: -.02em; height: .06em; min-height: 4px; background: var(--slate); border-radius: 3px; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.1s var(--ease-io) .5s; }
.is-in .drawn::after, html:not(.js) .drawn::after { transform: scaleX(1); }

/* =====================================================================
   FAMILY / FOOTER
   ===================================================================== */
.family { background: var(--night); color: #E8EEF0; padding: clamp(72px, 12vh, 120px) var(--pad) 36px; }
.family-inner { max-width: var(--max); margin: 0 auto; }
.family-head { display: grid; grid-template-columns: auto 1fr; gap: 14px 40px; align-items: end; padding-bottom: 36px; border-bottom: 1px solid var(--night-hair); }
.family-logo { display: flex; align-items: center; gap: 18px; height: 40px; grid-row: span 2; align-self: center; }
.family-logo img:first-child { height: 40px; width: 40px; }
.family-logo img:last-child { height: 24px; width: auto; }
.family-head h2 { color: var(--sky); text-transform: uppercase; letter-spacing: .12em; font-weight: 500; }
.family-head p { color: rgba(232, 238, 240, .6); max-width: 56ch; font-size: 16px; }
.index li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--night-hair); cursor: default; }
.index .dom { font: 600 clamp(22px, 2.6vw, 38px)/1.1 var(--f-sans); letter-spacing: -.03em; color: rgba(232, 238, 240, .9); }
.index .what { color: rgba(232, 238, 240, .6); font-size: 17px; }
.index .here .dom { color: #fff; }
.index .here .dom::after { content: ""; display: inline-block; width: .32em; height: .32em; border-radius: 50%; background: var(--sky); margin-left: .35em; vertical-align: .18em; }
.index .here .what { color: var(--sky); }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; color: rgba(232, 238, 240, .45); font-size: 11px; }
.legal-links { display: flex; gap: 18px; }
.legal-links a { color: rgba(232, 238, 240, .75); text-decoration: none; }
.legal-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Dialog ---------- */
.demo-dialog { border: 1px solid var(--ink); border-radius: 20px; padding: 0; max-width: 480px; width: calc(100% - 40px); background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); }
.demo-dialog::backdrop { background: rgba(14, 20, 23, .55); backdrop-filter: blur(4px); }
.demo-dialog form { padding: 28px; display: grid; gap: 14px; justify-items: start; }
.demo-dialog h2 { font: 650 26px/1.15 var(--f-sans); letter-spacing: -.02em; }
.demo-dialog p:not(.eyebrow) { color: var(--ink-2); }
.demo-dialog .btn { margin-top: 8px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .console { grid-template-columns: 1fr; }
  .console-sites { border-right: 0; border-bottom: 1px solid var(--hair); }
  .ledger-list { height: 400px; }
  .ask-inner { grid-template-columns: 1fr; }
  .ask .sec-head { position: static; }
  .outlook-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .top-tag { display: none; }
  .brand { margin-right: auto; }
  .hero-foot { grid-template-columns: 1fr; }
  .hint { display: none; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .stage-wrap, .steps { min-width: 0; }
  .stage-wrap { grid-column: 1; position: sticky; top: var(--top-h); z-index: 2; height: 58svh; padding: 8px 0; background: var(--paper); margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad); }
  .stage { position: relative; top: 0; height: 100%; }
  .steps { grid-column: 1; grid-row: 2; padding: 4vh 0 10vh; }
  .step { min-height: 62svh; justify-content: flex-start; padding-top: 4vh; }
  .js .step { opacity: 1; }
  .step h2 { font-size: 34px; }
  .step p:not(.eyebrow):not(.fact) { font-size: 17px; }
  .queue { width: 56%; left: 10px; bottom: 10px; }
  .inventory, .reports { left: 10px; right: 10px; bottom: 10px; }
  .inventory li { grid-template-columns: 96px 1fr; padding: 6px 0; font-size: 10.5px; }
  .inventory li b { display: none; }
  .reports ol { height: 92px; }
  .reports li { grid-template-columns: 58px 22px 1fr; font-size: 10px; }
  .reports li span:nth-child(3) { display: none; }
  .queue li { font-size: 11px; padding: 6px 9px; }
  .finding { right: 8px; bottom: 8px; left: 8px; width: auto; padding: 12px 14px; }
  .finding-chart { height: 64px; }
  .finding-title { font-size: 16px; margin: 6px 0; }
  .finding-data { font-size: 10.5px; }
  .finding-data div { padding: 4px 0; }
  .stage-bar { padding: 10px 12px; gap: 10px; font-size: 10px; }
  .stage-bar .sb-count { display: none; }
  .stage-bar .sb-site { white-space: nowrap; }
  .stage-bar .sb-mode { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .sites { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 22px 18px 10px; gap: 18px; }
  .spec > div { grid-template-columns: 1fr; gap: 6px; }
  .spec .st { text-align: left; }
  .family-head { grid-template-columns: 1fr; }
  .cta-rule { flex-direction: column; align-items: flex-start; gap: 22px; }
  .cta .btn { margin-left: 0; }
  .cta-line { width: 100%; flex: none; }
  .family-logo { grid-row: auto; }
  .index li { grid-template-columns: 1fr; gap: 4px; }
  .slots { gap: 8px; }
  .slot { padding: 10px; }
  .slot-reel div { font-size: 48px; }
  .askbox { padding: 16px; min-height: 560px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .top .btn-sm { padding: 9px 12px; font-size: 13px; }
  .top .btn-sm .arr { display: none; }
  .brand-word { height: 15px; }
  .brand-berry { width: 26px; height: 26px; }
  .mixed .tag { font-size: 10px; padding-left: 6px; }
  .uniform { font-size: 1.22em; }
  .finding-data { grid-template-columns: 1fr; }
  .finding-data div:nth-child(n+3) { display: none; }
  .finding-foot { font-size: 9.5px; }
  .sites { grid-template-columns: 1fr; gap: 30px; }
  .tn-row span { width: auto; min-width: 0; white-space: nowrap; font-size: 9.5px; }
  .tn-row { gap: 8px; }
  .tn-row .tok { width: 20px; height: 20px; }
  .ledger .console-bar > span:last-child { font-size: 10px; }
  .site { min-height: 0; }
  .ledger-counts span { padding: 8px 14px; }
  .slots { grid-template-columns: 1fr 1fr 1fr; }
  .slot-job { font-size: 9.5px; }
  .slot-pick { font-size: 10px; }
  .tenants { grid-template-columns: 88px 1fr; gap: 0 28px; }
  .tn-row span { width: 64px; font-size: 10px; }
}

/* Touch: letters can still be nudged sideways, but vertical swipes keep scrolling the page */
@media (pointer: coarse) { .mixed .ch { touch-action: pan-y; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
