/* ============================================================
   KESTREL — style.css
   Palette (judge-amended, one step bluer than spec):
   bg #04080F · surface #0A1220 · hairline #16222E
   fg #E8F1EE · body rgba(232,241,238,.62) · mut rgba(232,241,238,.38)
   mint #3CE8B0 (healthy signal) · amber #FF9E64 (anomaly, sparse)
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Instrument Sans';
  src: url('../assets/fonts/instrument-sans-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../assets/fonts/geist-mono-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #04080F;
  --surface: #0A1220;
  --line: #16222E;
  --fg: #E8F1EE;
  --body: rgba(232, 241, 238, .62);
  --mut: rgba(232, 241, 238, .38);
  --mint: #3CE8B0;
  --mint-dim: rgba(60, 232, 176, .14);
  --amber: #FF9E64;
  --disp: 'Space Grotesk', 'Instrument Sans', sans-serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --easeio: cubic-bezier(.62, 0, .14, 1);
  --pad: clamp(20px, 5vw, 72px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scrollbar-color: #1d2c38 var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--disp); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; margin: 0; }
p { margin: 0; color: var(--body); }
a { color: var(--fg); text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(60, 232, 176, .25); }

.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--mut);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 18px;
}
.eyebrow b { color: var(--mint); font-weight: 500; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 12000;
  background: var(--mint); color: #04120C; font-family: var(--mono); font-size: 13px;
  padding: 10px 16px; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- inertia scroll shell ---------- */
html.k-smooth body { overflow-y: scroll; }
html.k-smooth #app {
  position: fixed; top: 0; left: 0; width: 100%;
  will-change: transform;
}
#scroll-spacer { width: 1px; pointer-events: none; }
html.menu-open { overflow: hidden; }

/* ---------- header ---------- */
.k-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; gap: 28px;
  padding: 16px var(--pad);
  background: linear-gradient(180deg, rgba(4, 8, 15, .88), rgba(4, 8, 15, 0));
}
.k-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--disp); font-weight: 700; letter-spacing: .06em; font-size: 15px; }
.k-logo img { width: 26px; height: 26px; }
.k-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.k-links a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; color: var(--body);
  padding: 10px 2px; position: relative; transition: color .25s;
}
.k-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 6px; height: 1px;
  background: var(--mint); transition: right .3s var(--ease);
}
.k-links a:hover, .k-links a[aria-current="page"] { color: var(--fg); }
.k-links a:hover::after, .k-links a[aria-current="page"]::after { right: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  white-space: nowrap;
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em;
  padding: 14px 26px; border-radius: 10px; min-height: 44px;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, background .3s, color .3s, box-shadow .3s;
  position: relative;
}
.btn.primary {
  background: var(--mint); color: #04120C; border-color: var(--mint); font-weight: 600;
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(60, 232, 176, .28); }
.btn.ghost { color: var(--fg); }
.btn.ghost:hover { border-color: var(--mint); transform: translateY(-2px); }
.btn.glow::before {
  content: ''; position: absolute; inset: -2px; border-radius: 12px; z-index: -1;
  background: radial-gradient(60% 100% at 50% 50%, rgba(60, 232, 176, .5), transparent 75%);
  filter: blur(10px); opacity: .5;
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .28; } 50% { opacity: .65; } }

.k-nav .btn { padding: 10px 18px; min-height: 40px; }

#k-sound {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; position: relative;
}
.k-sound-hint {
  position: absolute; top: calc(100% + 6px); right: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 6px 12px; white-space: nowrap;
  animation: hintIn .4s var(--ease) both;
}
@keyframes hintIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

#k-burger {
  display: none; width: 44px; height: 44px; border-radius: 8px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
#k-burger span { display: block; width: 20px; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease), opacity .3s; }
#k-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#k-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#k-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile full-screen panel — judge amendment: #04080F panel, mono decoded links, no particles */
#k-menu {
  position: fixed; inset: 0; z-index: 890; background: #04080F;
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
}
#k-menu.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.km-link {
  font-family: var(--mono); font-size: clamp(26px, 7vw, 40px); letter-spacing: .04em;
  color: var(--fg); padding: 16px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 18px; min-height: 44px;
}
.km-link .km-i { font-size: 12px; color: var(--mut); }
.km-link:hover .km-t { color: var(--mint); }
.km-cta { margin-top: 34px; align-self: flex-start; }

/* ---------- footer ---------- */
.k-footer {
  border-top: 1px solid var(--line);
  padding: 64px var(--pad) 40px;
  background: var(--bg);
}
.kf-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .8fr) 1fr; gap: 36px; max-width: 1280px; margin: 0 auto; }
.kf-brand { display: flex; flex-direction: column; gap: 14px; }
.kf-brand img { width: 30px; height: 30px; }
.kf-brand p { font-size: 14px; max-width: 30ch; }
.kf-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--mut); font-weight: 500; margin-bottom: 16px; }
.kf-col a { display: block; font-size: 14.5px; color: var(--body); padding: 5px 0; transition: color .2s; }
.kf-col a:hover { color: var(--mint); }
.kf-col a[aria-disabled="true"] { cursor: default; }
.kf-col a[aria-disabled="true"]:hover { color: var(--body); }
.kf-status { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--mut); display: flex; align-items: center; gap: 8px; justify-content: flex-end; align-self: start; }
.kf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px rgba(60, 232, 176, .8); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.kf-legal {
  max-width: 1280px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--mut);
}
.kf-legal a { color: var(--body); border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.kf-legal a:hover { color: var(--mint); border-color: var(--mint); }

/* ---------- reveals ---------- */
html.js .reveal { opacity: 0; transform: translateY(46px); filter: blur(7px); }
html.js .reveal.in { opacity: 1; transform: none; filter: blur(0); transition: opacity 1s var(--ease), transform 1.15s var(--ease), filter 1s var(--ease); }
html.js .reveal-2.in { transition-delay: .1s; }
html.js .reveal-3.in { transition-delay: .2s; }
html.js .eyebrow.reveal { transform: none; filter: none; clip-path: inset(0 100% 0 0); }
html.js .eyebrow.reveal.in { clip-path: inset(0 0 0 0); transition: clip-path .9s var(--easeio), opacity .6s; }

/* char cascade */
.kc-hold { display: inline; }
.kc { display: inline-block; }
html.js [data-cascade] .kc { opacity: 0; transform: translateY(.32em); filter: blur(6px); }
html.js [data-cascade].kc-in .kc {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease);
}

/* word sweep */
.sw { display: inline-block; }
html.js [data-sweep] .sw { opacity: 0; transform: translateY(.5em); filter: blur(5px); }
html.js [data-sweep].sw-in .sw { opacity: 1; transform: none; filter: blur(0); transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease); }

/* odometer */
[data-count] { display: inline-flex; overflow: hidden; line-height: 1; }
.odo-col { display: inline-block; height: 1em; overflow: hidden; }
.odo-stack { display: inline-flex; flex-direction: column; transition: transform 1.4s var(--easeio); will-change: transform; }
.odo-stack span { height: 1em; line-height: 1; display: block; }
.odo-static { display: inline-block; }

/* ---------- scroll rail pill ---------- */
.k-rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 800;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  padding: 14px 8px; border-radius: 20px;
  background: rgba(10, 18, 32, .72); border: 1px solid var(--line);
}
.k-rail-fill {
  position: absolute; left: 50%; top: 20px; bottom: 20px; width: 1px;
  background: var(--mint); transform-origin: top; transform: scaleY(0);
  opacity: .4;
}
.k-rail-dot {
  width: 8px; height: 8px; min-width: 8px; border-radius: 50%;
  background: var(--line); position: relative; z-index: 1; padding: 0;
  transition: background .3s, box-shadow .3s;
}
.k-rail-dot.on { background: var(--mint); box-shadow: 0 0 8px rgba(60, 232, 176, .7); }
@media (max-width: 900px) { .k-rail { display: none; } }

/* ============================================================
   HERO (index)
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 120px var(--pad) 90px; overflow: hidden;
}
.fx-host { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
.fx-host[data-fx-state="live"] .fx-canvas { opacity: 1; }
.fx-host[data-fx-state="live"] .fx-fallback { opacity: 0; }
.fx-fallback { position: absolute; inset: 0; transition: opacity .8s; }
.fx-fallback svg { width: 100%; height: 100%; }
.fx-fallback .fxg { animation: fxShimmer 7s ease-in-out infinite; }
.fx-fallback .fxg2 { animation-delay: -2.3s; }
.fx-fallback .fxg3 { animation-delay: -4.6s; }
@keyframes fxShimmer { 0%, 100% { opacity: .45; } 50% { opacity: .9; } }

.hero-inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; width: 100%; }
.hero-title {
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  max-width: 12ch;
  text-shadow: 0 2px 40px rgba(4, 8, 15, .8);
  transform-style: preserve-3d;
}
.hero-sub { max-width: 54ch; margin-top: 26px; font-size: clamp(16px, 1.4vw, 19px); }
.hero-ctas { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }

.hx {
  position: absolute; width: 18px; height: 18px; color: var(--mut); z-index: 2; pointer-events: none;
}
.hx::before, .hx::after { content: ''; position: absolute; background: currentColor; }
.hx::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.hx::after { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.hx-tl { top: 96px; left: var(--pad); }
.hx-tr { top: 96px; right: var(--pad); }
.hx-bl { bottom: 76px; left: var(--pad); }
.hx-br { bottom: 76px; right: var(--pad); }

.scroll-cue {
  position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em; color: var(--mut);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue::after {
  content: ''; width: 1px; height: 42px; background: linear-gradient(var(--mint), transparent);
  animation: cueDrop 2.2s var(--easeio) infinite;
}
@keyframes cueDrop { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* live ticker */
.lt {
  position: relative; z-index: 3;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(10, 18, 32, .5);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; color: var(--body);
  padding: 13px var(--pad);
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  white-space: nowrap;
}
.lt .up { color: var(--mint); }
.lt .dot { color: var(--mut); }
.lt b { font-weight: 500; color: var(--fg); }
.lt .jit { display: inline-block; min-width: 1ch; font-style: normal; font-weight: 500; color: var(--fg); }

/* logo marquee */
.marquee-sec { padding: 72px 0 64px; overflow: hidden; }
.marquee-sec .eyebrow { display: block; text-align: center; margin-bottom: 34px; }
.marquee { overflow: hidden; position: relative; }
.marquee-track { display: flex; width: max-content; animation: marq 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee-span { display: flex; align-items: center; gap: clamp(40px, 6vw, 90px); padding-right: clamp(40px, 6vw, 90px); }
.mlogo { opacity: .45; transition: opacity .3s; flex: none; }
.mlogo:hover { opacity: 1; }
.mlogo svg { height: 22px; width: auto; }

/* ============================================================
   PINNED DASHBOARD BUILD
   ============================================================ */
.dash-build { position: relative; }
.db-head { text-align: center; padding: 110px var(--pad) 40px; }
.db-head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.db-head p { margin-top: 16px; max-width: 46ch; margin-left: auto; margin-right: auto; }
.db-stage { position: relative; height: 400vh; }
.db-pin {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
}
html.k-smooth .db-pin { position: relative; top: auto; } /* judge fix: manual JS pin under transform scroll */
.db-captions {
  position: absolute; left: clamp(10px, 2.5vw, 40px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 20px; z-index: 3;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--mut);
}
.db-cap { opacity: .25; transition: opacity .4s, color .4s; }
.db-cap.on { opacity: 1; color: var(--mint); }
.db-cap.on ~ .db-cap { opacity: .25; color: var(--mut); }

.dash-frame {
  width: min(72vw, 1080px); border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); overflow: hidden; position: relative;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .5);
  font-family: var(--mono);
}
/* topbar */
.d-top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--body); }
.d-top .d-mark { width: 16px; height: 16px; }
.d-pill { border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px; font-size: 11px; color: var(--fg); background: rgba(60,232,176,.06); }
.d-pill b { color: var(--mint); font-weight: 500; }
.d-top .d-right { margin-left: auto; display: flex; gap: 10px; align-items: center; color: var(--mut); font-size: 10.5px; }
.d-ava { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--mint), #178a68); }
/* body */
.d-body { display: grid; grid-template-columns: 150px 1fr; min-height: 0; }
.d-side { border-right: 1px solid var(--line); padding: 14px 0; }
.dsb-item { padding: 9px 18px; font-size: 11.5px; color: var(--mut); display: flex; gap: 9px; align-items: center; }
.dsb-item.act { color: var(--fg); background: rgba(60, 232, 176, .07); box-shadow: inset 2px 0 0 var(--mint); }
.dsb-item i { font-style: normal; opacity: .7; }
.d-main { padding: 14px; display: grid; grid-template-columns: 1.65fr 1fr; grid-auto-rows: min-content; gap: 12px; position: relative; }
.d-card { border: 1px solid var(--line); border-radius: 10px; background: rgba(4, 8, 15, .45); padding: 12px 14px; min-width: 0; }
.d-card h5 { margin: 0 0 10px; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .1em; color: var(--mut); text-transform: uppercase; }
.d-card h5 b { color: var(--fg); font-weight: 500; }
.dchart svg, .dmap svg, .dtrace svg { width: 100%; height: auto; display: block; }
.dax { font-size: 8.5px; fill: rgba(232, 241, 238, .38); font-family: var(--mono); }
.dline { fill: none; stroke-width: 1.6; }
.dline.l1 { stroke: var(--mint); }
.dline.l2 { stroke: #1fae82; opacity: .7; }
.dline.l3 { stroke: #178a68; opacity: .5; }
.dgrid { stroke: #16222E; stroke-width: 1; }
/* sparkbars */
.dspark { display: flex; gap: 3px; align-items: flex-end; height: 44px; }
.dspark i { flex: 1; background: rgba(60, 232, 176, .35); border-radius: 1px 1px 0 0; min-width: 2px; }
/* donut */
.ddonut { display: flex; gap: 14px; align-items: center; }
.ddonut svg { width: 74px; height: 74px; flex: none; }
.darc { fill: none; stroke: var(--mint); stroke-width: 7; stroke-linecap: round; }
.darc-bg { fill: none; stroke: #16222E; stroke-width: 7; }
.ddonut .dd-fig { font-size: 17px; color: var(--fg); }
.ddonut .dd-sub { font-size: 10px; color: var(--mut); margin-top: 3px; }
/* service map */
.dnode { transform-origin: center; transform-box: fill-box; }
.dnode circle { fill: var(--surface); stroke: var(--mint); stroke-width: 1.2; }
.dnode text { font-size: 7.5px; fill: rgba(232, 241, 238, .62); font-family: var(--mono); }
.dnode[data-pulse] circle { stroke: var(--amber); }
.dnode.pulse circle { animation: nodePulse 1s ease-out 2; }
@keyframes nodePulse { 0% { stroke-width: 1.2; } 30% { stroke-width: 4; } 100% { stroke-width: 1.2; } }
.dedge { fill: none; stroke: rgba(60, 232, 176, .3); stroke-width: 1; }
/* trace waterfall */
.dspan { transform-origin: left center; transform-box: fill-box; }
/* log tail */
.dlogs { grid-column: 1 / -1; }
.dlog { font-size: 10px; color: var(--body); padding: 2.5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlog .lv { display: inline-block; min-width: 42px; color: var(--mint); }
.dlog .lv.warn { color: var(--amber); }
.dlog .ts { color: var(--mut); }
/* toast */
.dtoast {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  border: 1px solid var(--amber); background: rgba(20, 12, 6, .92); border-radius: 10px;
  padding: 10px 14px; font-size: 11px; color: var(--amber); max-width: 250px;
  opacity: 0;
}
.dtoast .dt-ok { display: none; color: var(--mint); }
.dtoast.ok { border-color: var(--mint); color: var(--mint); background: rgba(5, 18, 13, .92); }
.dtoast.ok .dt-alert { display: none; }
.dtoast.ok .dt-ok { display: block; }

/* static / composed fallback for the whole set piece */
.db-static .db-stage { height: auto; padding-bottom: 90px; }
.db-static .db-pin { position: static; height: auto; padding: 30px var(--pad); }
.db-static .db-captions { position: static; transform: none; flex-direction: row; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.db-static .db-cap { opacity: 1; }
.db-static .dash-frame { width: min(94vw, 1080px); margin: 0 auto; }
.db-static .dtoast { opacity: 1; border-color: var(--mint); color: var(--mint); background: rgba(5, 18, 13, .92); }
.db-static .dtoast .dt-alert { display: none; }
.db-static .dtoast .dt-ok { display: block; }

/* ============================================================
   FEATURE TRIPTYCH
   ============================================================ */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: 110px 0; }
.sec-head { margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 16ch; }
.sec-head.center { text-align: center; }
.sec-head.center h2 { margin: 0 auto; }
.sec-head p { margin-top: 16px; max-width: 52ch; }
.sec-head.center p { margin-left: auto; margin-right: auto; }

.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fcard {
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .45s var(--ease), border-color .45s;
}
.fcard:hover { transform: translateY(-6px); border-color: var(--mint); }
.fcard .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--mint); }
.fcard h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
.fcard p { font-size: 15px; }
.fmock { margin-top: auto; padding-top: 20px; }
.fmock svg { width: 100%; height: auto; }
.fmock .fm-draw { stroke-dasharray: 240; stroke-dashoffset: 0; }
.fmock.wake .fm-draw { animation: fmDraw .6s var(--ease) both; }
@keyframes fmDraw { from { stroke-dashoffset: 240; } to { stroke-dashoffset: 0; } }
.fm-bar { fill: rgba(60, 232, 176, .4); }
.fm-bar.warn { fill: rgba(255, 158, 100, .55); }
.fm-chip { font-family: var(--mono); font-size: 9px; fill: var(--body); }
.fm-lab { font-family: var(--mono); font-size: 8px; fill: rgba(232,241,238,.38); }

/* ============================================================
   COUNTERS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { border-top: 1px solid var(--line); padding-top: 24px; }
.stat .n { font-family: var(--mono); font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 3.6rem); color: var(--fg); line-height: 1; }
.stat .u { font-family: var(--disp); font-weight: 500; color: var(--body); font-size: 14.5px; margin-top: 12px; max-width: 24ch; }
.stats-foot { font-family: var(--mono); font-size: 11.5px; color: var(--mut); margin-top: 40px; letter-spacing: .06em; }

/* ============================================================
   FILM / VIDEO SLOTS
   ============================================================ */
.film-band { padding: 110px 0; background: #030609; }
figure.film {
  margin: 0; position: relative; border: 1px solid rgba(60, 232, 176, .4); border-radius: 8px;
  overflow: hidden; aspect-ratio: 16 / 9; background: #04080F;
}
figure.film::before, figure.film::after {
  content: ''; position: absolute; width: 14px; height: 14px; z-index: 4; pointer-events: none;
  border-color: var(--mint); border-style: solid;
}
figure.film::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
figure.film::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
figure.film video { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.film-poster {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(90% 90% at 62% 48%, rgba(60, 232, 176, .16), transparent 60%),
    radial-gradient(40% 40% at 62% 48%, rgba(60, 232, 176, .22), transparent 70%),
    linear-gradient(180deg, #050b12, #04080F);
}
.film-poster svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
figure.film.video-pending video { visibility: hidden; }
figure.film.video-pending .film-poster { z-index: 2; }
.film-chip {
  position: absolute; right: 14px; bottom: 12px; z-index: 5;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--mint);
  border: 1px solid rgba(60, 232, 176, .5); border-radius: 20px; padding: 5px 12px;
  background: rgba(4, 8, 15, .75);
  opacity: 0; transition: opacity .4s;
}
figure.film.video-pending .film-chip { opacity: 1; }
.film-play {
  position: absolute; inset: 0; margin: auto; width: 66px; height: 66px; z-index: 6;
  border-radius: 50%; border: 1px solid var(--mint); color: var(--mint);
  background: rgba(4, 8, 15, .7); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.film-cap { font-family: var(--mono); font-size: 12px; color: var(--mut); letter-spacing: .06em; margin-top: 16px; }
.teaser-frame { max-width: 980px; margin: 0 auto; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.hiw { position: relative; }
.hiw-line { position: absolute; inset: 0; pointer-events: none; }
.hiw-line svg { width: 100%; height: 100%; }
.hiw-line path { stroke: rgba(60, 232, 176, .4); stroke-width: 1.4; fill: none; }
.hiw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; z-index: 1; }
.hiw-step { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 28px; }
html.js .hiw-step { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
html.js .hiw-step.on { opacity: 1; transform: none; }
.hiw-step .idx { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--mint); }
.hiw-step h3 { font-size: 1.3rem; margin: 12px 0 10px; }
.hiw-step p { font-size: 15px; }
.hiw-code {
  margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; background: #030609;
  padding: 14px 16px; font-family: var(--mono); font-size: 12px; color: var(--mint);
  display: flex; align-items: center; gap: 12px; overflow-x: auto;
}
.hiw-code code { white-space: nowrap; }
.hiw-code code.typing::after { content: '▍'; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hiw-copy { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--mut); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; flex: none; transition: color .2s, border-color .2s; }
.hiw-copy:hover, .hiw-copy.did { color: var(--mint); border-color: var(--mint); }

/* ============================================================
   QUOTES
   ============================================================ */
.quotes { display: flex; flex-direction: column; gap: 84px; max-width: 980px; margin: 0 auto; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--disp); font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--fg); }
.q-att { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--mut); margin-top: 22px; display: block; }

/* ============================================================
   PRICING PREVIEW + FINALE (index)
   ============================================================ */
.pchips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.pchip {
  border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: var(--surface);
  transition: transform .4s var(--ease), border-color .4s; display: block;
}
.pchip:hover { transform: translateY(-6px); border-color: var(--mint); }
.pchip .t { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--mint); }
.pchip .pr { font-family: var(--disp); font-weight: 700; font-size: 1.9rem; margin: 12px 0 6px; }
.pchip .hk { font-size: 14px; color: var(--body); }
.plink { font-family: var(--mono); font-size: 13px; color: var(--mint); letter-spacing: .06em; border-bottom: 1px solid rgba(60, 232, 176, .4); padding-bottom: 2px; transition: border-color .25s; }
.plink:hover { border-color: var(--mint); }

.finale {
  position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding: 120px var(--pad);
}
.finale-inner { position: relative; z-index: 2; }
.finale h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); max-width: 14ch; margin: 0 auto; }
.finale p { margin: 22px auto 34px; max-width: 40ch; }

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.prod-head { position: relative; min-height: 86vh; display: flex; align-items: center; padding: 140px var(--pad) 80px; overflow: hidden; }
.prod-head .ph-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.prod-head .ph-media figure.film { position: absolute; inset: 0; border: 0; border-radius: 0; aspect-ratio: auto; opacity: .28; }
.prod-head .ph-media figure.film::before, .prod-head .ph-media figure.film::after { display: none; }
.prod-head .ph-media .film-chip { opacity: 0 !important; }
.prod-head .ph-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4,8,15,.72), rgba(4,8,15,.55) 55%, var(--bg)); }
.prod-head .ph-inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; width: 100%; }
.prod-head h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); max-width: 13ch; }
.prod-head p { max-width: 52ch; margin-top: 24px; font-size: clamp(16px, 1.35vw, 19px); }

.srow { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding: 90px 0; }
.srow.rev .s-copy { order: 2; }
.srow.rev .s-mock { order: 1; }
.s-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.s-copy p { margin-top: 18px; font-size: 16px; }
.s-bullets { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.s-bullets li { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--mut); display: flex; gap: 10px; align-items: baseline; }
.s-bullets li::before { content: '·'; color: var(--mint); font-size: 18px; line-height: 0; }
.s-mock { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 20px; font-family: var(--mono); overflow: hidden; }
.s-mock svg { width: 100%; height: auto; display: block; }

/* trace waterfall mock */
.tspan { transform-origin: left center; transform-box: fill-box; }
html.js [data-mock] .tspan { transform: scaleX(0); }
html.js [data-mock].mock-in .tspan { transform: scaleX(1); transition: transform .8s var(--ease); }
html.js [data-mock].mock-in .tspan:nth-of-type(2) { transition-delay: .05s; }
html.js [data-mock].mock-in .tspan:nth-of-type(3) { transition-delay: .1s; }
html.js [data-mock].mock-in .tspan:nth-of-type(4) { transition-delay: .15s; }
html.js [data-mock].mock-in .tspan:nth-of-type(5) { transition-delay: .2s; }
html.js [data-mock].mock-in .tspan:nth-of-type(6) { transition-delay: .25s; }
html.js [data-mock].mock-in .tspan:nth-of-type(7) { transition-delay: .3s; }
html.js [data-mock].mock-in .tspan:nth-of-type(8) { transition-delay: .35s; }
html.js [data-mock].mock-in .tspan:nth-of-type(9) { transition-delay: .4s; }
.tlab { font-size: 8px; fill: rgba(232, 241, 238, .5); font-family: var(--mono); }
.tdur { font-size: 7.5px; fill: rgba(232, 241, 238, .35); font-family: var(--mono); }
.tretry { font-size: 7.5px; fill: var(--amber); font-family: var(--mono); }
.tlog-drawer rect { fill: rgba(3, 6, 9, .8); stroke: #16222E; }
.tlog-line { font-size: 7px; fill: rgba(232, 241, 238, .5); font-family: var(--mono); }

/* live map mock */
.dnode2 circle { fill: var(--surface); stroke: var(--mint); stroke-width: 1.1; }
.dnode2 text { font-size: 7px; fill: rgba(232, 241, 238, .6); font-family: var(--mono); }
.dnode2.hot circle { stroke: var(--amber); }
.dring { fill: none; stroke: var(--amber); stroke-width: 1; transform-origin: center; transform-box: fill-box; opacity: 0; }
html.js [data-mock].mock-in .dring { animation: ringOut 1.6s var(--ease) 2; }
[data-mock]:hover .dring { animation: ringOut 1.6s var(--ease) 2; }
@keyframes ringOut { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.dedge2 { fill: none; stroke: rgba(60, 232, 176, .3); stroke-width: 1; }
.dflag rect { fill: rgba(5, 18, 13, .95); stroke: var(--mint); }
.dflag text { font-size: 7px; fill: var(--mint); font-family: var(--mono); }

/* anomaly mock */
.an-band { fill: rgba(60, 232, 176, .1); }
.an-line { fill: none; stroke: var(--mint); stroke-width: 1.6; }
.an-breach { fill: none; stroke: var(--amber); stroke-width: 1.8; }
.an-card-g foreignObject, .an-note { }
.an-card {
  border: 1px solid var(--amber); border-radius: 8px; background: rgba(20, 12, 6, .92);
  font-family: var(--mono); font-size: 11px; color: var(--amber); padding: 9px 12px;
  position: absolute; right: 8%; top: 6%;
  max-width: 240px;
}
.an-static .an-card { opacity: 1 !important; transform: none !important; }
.an-static .an-band { opacity: 1 !important; }
.s-mock.rel { position: relative; }

/* log fusion mock */
.lf-filter { font-size: 11px; color: var(--mint); border: 1px solid var(--line); border-radius: 7px; padding: 7px 12px; margin-bottom: 12px; background: #030609; }
.lf-line { font-size: 11px; padding: 4px 0; color: var(--body); display: flex; gap: 10px; align-items: baseline; white-space: nowrap; overflow: hidden; }
html.js [data-mock] .lf-line { opacity: 0; transform: translateY(8px); }
html.js [data-mock].mock-in .lf-line { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.js [data-mock].mock-in .lf-line:nth-child(2) { transition-delay: .42s; }
html.js [data-mock].mock-in .lf-line:nth-child(3) { transition-delay: .36s; }
html.js [data-mock].mock-in .lf-line:nth-child(4) { transition-delay: .30s; }
html.js [data-mock].mock-in .lf-line:nth-child(5) { transition-delay: .24s; }
html.js [data-mock].mock-in .lf-line:nth-child(6) { transition-delay: .18s; }
html.js [data-mock].mock-in .lf-line:nth-child(7) { transition-delay: .12s; }
html.js [data-mock].mock-in .lf-line:nth-child(8) { transition-delay: .06s; }
html.js [data-mock].mock-in .lf-line:nth-child(9) { transition-delay: 0s; }
.lf-line .lv { min-width: 44px; color: var(--mint); flex: none; }
.lf-line .lv.warn { color: var(--amber); }
.lf-line.hl { background: linear-gradient(90deg, rgba(60, 232, 176, .12), transparent 70%); border-radius: 4px; padding-left: 6px; }
.lf-line .goto { margin-left: auto; color: var(--mint); flex: none; }

/* slo card mock */
.slo-fig { font-family: var(--mono); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--fg); }
.slo-bar { height: 8px; border-radius: 4px; background: #16222E; margin: 18px 0; overflow: hidden; }
.slo-bar i { display: block; height: 100%; width: 71%; background: var(--mint); border-radius: 4px; transform-origin: left; }
html.js [data-mock] .slo-bar i { transform: scaleX(0); }
html.js [data-mock].mock-in .slo-bar i { transform: scaleX(1); transition: transform 1.1s var(--easeio) .2s; }
.slo-foot { font-size: 11px; color: var(--mut); margin-top: 14px; }
.slo-spark { margin-top: 6px; }
.slo-fc { stroke-dasharray: 4 5; }

/* integrations */
.igrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ichip {
  border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; color: var(--body);
  display: flex; align-items: center; gap: 10px; transition: border-color .3s, color .3s;
  min-height: 44px;
}
.ichip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); opacity: .5; flex: none; }
.ichip:hover { border-color: var(--mint); color: var(--fg); }
html.js .igrid .ichip { opacity: 0; transform: translateY(14px); }
html.js .igrid.in .ichip { opacity: 1; transform: none; transition: opacity .6s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }
.ifoot { font-family: var(--mono); font-size: 11.5px; color: var(--mut); margin-top: 26px; letter-spacing: .06em; }

.cta-band { text-align: center; padding: 130px var(--pad); }
.cta-band h2 { font-size: clamp(2rem, 5vw, 4rem); max-width: 16ch; margin: 0 auto; }
.cta-band .hero-ctas { justify-content: center; }
.cta-sub { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; color: var(--mut); margin-top: 22px; }

/* ============================================================
   PRICING PAGE
   ============================================================ */
.price-hero { padding: 160px var(--pad) 40px; text-align: center; }
.price-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 17ch; margin: 0 auto; }
.price-hero p { max-width: 52ch; margin: 22px auto 0; }
#billing-toggle {
  display: inline-flex; margin-top: 36px; border: 1px solid var(--line); border-radius: 30px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; position: relative; overflow: hidden;
}
#billing-toggle::before {
  content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 24px; background: var(--mint-dim); border: 1px solid rgba(60, 232, 176, .5);
  transition: transform .35s var(--easeio);
}
#billing-toggle.annual::before { transform: translateX(100%); }
#billing-toggle button { position: relative; z-index: 1; padding: 12px 22px; color: var(--mut); transition: color .3s; min-height: 44px; }
#billing-toggle button[aria-pressed="true"] { color: var(--mint); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; padding: 60px 0 30px; }
.tier-card {
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  padding: 34px 30px; display: flex; flex-direction: column; gap: 0; position: relative;
  transition: transform .45s var(--ease), border-color .45s;
}
.tier-card:hover { transform: translateY(-8px); }
.tier-card.mid { border-color: rgba(60, 232, 176, .55); box-shadow: 0 24px 80px rgba(60, 232, 176, .07); }
.tier-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; color: #04120C;
  background: var(--mint); border-radius: 20px; padding: 4px 14px;
}
.tier-name { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; color: var(--mint); }
.tier-price { font-family: var(--disp); font-weight: 700; font-size: 2.6rem; margin: 16px 0 2px; display: flex; align-items: baseline; gap: 8px; }
.tier-price small { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--mut); letter-spacing: .04em; }
.tier-hook { font-size: 14.5px; color: var(--body); margin-bottom: 22px; }
.tier-feats { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; flex: 1; }
.tier-feats li { font-size: 14px; color: var(--body); display: flex; gap: 11px; align-items: baseline; }
.tier-feats svg { width: 13px; height: 13px; flex: none; transform: translateY(1px); }
.tier-feats path { stroke: var(--mint); stroke-width: 2; fill: none; stroke-dasharray: 20; stroke-dashoffset: 0; }
html.js .tier-card:hover .tier-feats path { animation: checkDraw .5s var(--ease) both; }
@keyframes checkDraw { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }
.tier-card .btn { width: 100%; }

/* comparison table */
.cmp-wrap { text-align: center; padding: 30px 0 10px; }
#cmp-btn { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; color: var(--body); border: 1px solid var(--line); border-radius: 30px; padding: 13px 26px; transition: color .3s, border-color .3s; min-height: 44px; }
#cmp-btn:hover { color: var(--mint); border-color: var(--mint); }
#cmp { display: none; margin-top: 44px; text-align: left; }
#cmp.open { display: block; }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
#cmp table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; min-width: 640px; }
#cmp th, #cmp td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
#cmp thead th { position: sticky; top: 0; background: var(--surface); font-weight: 500; letter-spacing: .1em; font-size: 11px; color: var(--mut); text-transform: uppercase; z-index: 2; }
#cmp thead th:not(:first-child) { color: var(--mint); }
#cmp td { color: var(--body); }
#cmp td:first-child { color: var(--mut); }
#cmp tbody tr:last-child td { border-bottom: 0; }
#cmp .no { color: var(--mut); }
#cmp .yes { color: var(--mint); }
html.js #cmp.open tbody tr { animation: rowIn .45s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  text-align: left; padding: 24px 4px; font-family: var(--sans); font-size: 17px; color: var(--fg);
  min-height: 44px;
}
.faq-item.open .faq-q { font-weight: 600; }
.faq-q .chev { flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--mint); border-bottom: 1.5px solid var(--mint); transform: rotate(45deg); transition: transform .35s var(--ease); }
.faq-item.open .chev { transform: rotate(225deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--easeio); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-in { overflow: hidden; }
.faq-a p { padding: 0 4px 26px; font-size: 15.5px; max-width: 62ch; }

/* ============================================================
   MANIFESTO PAGE
   ============================================================ */
.mf-open { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 140px var(--pad) 100px; }
.mf-open .eyebrow { margin-bottom: 30px; }
.mf-line { font-family: var(--disp); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2.2rem, 6.4vw, 5.4rem); line-height: 1.08; color: var(--fg); }
.mf-line + .mf-line { margin-top: 10px; }
.mf-line em { font-style: normal; color: var(--mint); }
.mf-anim .mf-line { opacity: 0; will-change: transform, opacity; }
.mf-static .mf-line { opacity: 1 !important; transform: none !important; filter: none !important; }

.mf-story { position: relative; max-width: 720px; margin: 0 auto; padding: 40px 0 110px 44px; }
.mf-rail { position: absolute; left: 0; top: 40px; bottom: 110px; width: 1px; background: var(--line); }
.mf-rail-fill { position: absolute; inset: 0; background: var(--mint); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 12px rgba(60, 232, 176, .5); }
.mf-ticks { position: absolute; left: -4px; top: 40px; bottom: 110px; }
.mf-tick { position: absolute; left: 0; display: flex; align-items: center; gap: 12px; }
.mf-tick i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; transition: background .4s, box-shadow .4s; font-style: normal; }
.mf-tick.on i { background: var(--mint); box-shadow: 0 0 8px rgba(60, 232, 176, .8); }
.mf-tick-t { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--mut); }
.mf-tick.on .mf-tick-t { color: var(--mint); }
.mf-tick[data-at="1"] { top: 4%; }
.mf-tick[data-at="2"] { top: 46%; }
.mf-tick[data-at="3"] { top: 88%; }
.mf-story p { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.75; }

.principles { display: flex; flex-direction: column; }
.principle {
  display: grid; grid-template-columns: 110px 1fr; gap: clamp(18px, 4vw, 60px);
  padding: 44px 0; border-top: 1px solid var(--line); position: relative;
}
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle .pi { font-family: var(--mono); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--mut); transition: color .35s; line-height: 1; }
.principle:hover .pi { color: var(--mint); }
.principle h3 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); margin-bottom: 12px; }
.principle p { font-size: 16px; max-width: 58ch; }
.principle::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); z-index: 1; }
.principle:hover::after { transform: scaleX(1); }

.mf-colophon { max-width: 720px; margin: 0 auto; }
.mf-colophon p { font-size: 16.5px; line-height: 1.75; }
.mf-stamp { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--mut); margin-top: 30px; display: flex; align-items: center; gap: 10px; }

/* ============================================================
   404
   ============================================================ */
.e404 { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px var(--pad); }
.e404 .code { font-family: var(--mono); font-size: clamp(4rem, 16vw, 9rem); color: var(--mint); line-height: 1; letter-spacing: .04em; text-shadow: 0 0 60px rgba(60, 232, 176, .3); }
.e404 h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 26px 0 14px; }
.e404 p { max-width: 40ch; }
.e404 .status { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; color: var(--mut); margin-top: 34px; display: flex; align-items: center; gap: 10px; }
.e404 .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); font-style: normal; animation: pulse 1.4s ease-in-out infinite; }
.e404 .btn { margin-top: 38px; }

/* ============================================================
   morph cover
   ============================================================ */
.k-morph { pointer-events: none; box-shadow: 0 0 80px rgba(60, 232, 176, .4); }

/* ============================================================
   perf gates + reduced motion
   ============================================================ */
html[data-anim="off"] *, html[data-anim="off"] *::before, html[data-anim="off"] *::after {
  animation-duration: .001s !important;
  animation-iteration-count: 1 !important;
}
html[data-anim="off"] .marquee-track { animation: none; transform: none; }
html[data-perf="2"] .k-rail, html[data-perf="3"] .k-rail { display: none; }
html[data-perf="2"] .fx-canvas, html[data-perf="3"] .fx-canvas { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal, html.js .hiw-step, html.js [data-cascade] .kc, html.js [data-sweep] .sw,
  html.js .igrid .ichip, html.js [data-mock] .tspan, html.js [data-mock] .lf-line, html.js [data-mock] .slo-bar i {
    opacity: 1 !important; transform: none !important; filter: none !important;
  }
  .scroll-cue::after { animation: none; }
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1080px) {
  .d-body { grid-template-columns: 120px 1fr; }
  .dash-frame { width: min(88vw, 1080px); }
  .db-captions { display: none; }
  .igrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .k-links { display: none; }
  #k-burger { display: inline-flex; }
  .triptych, .pchips, .tiers, .hiw-steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .srow { grid-template-columns: 1fr; padding: 60px 0; }
  .srow.rev .s-copy { order: 1; }
  .srow.rev .s-mock { order: 2; }
  .kf-grid { grid-template-columns: 1fr 1fr; }
  .kf-status { justify-content: flex-start; grid-column: 1 / -1; }
  .hiw-line { display: none; }
  .d-side { display: none; }
  .d-body { grid-template-columns: 1fr; }
  .d-main { grid-template-columns: 1fr; }
  .dash-frame { width: 92vw; }
  .tier-card.mid { order: -1; }
  .principle { grid-template-columns: 64px 1fr; }
  .mf-story { padding-left: 34px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .igrid { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas .btn { width: 100%; }
  .lt { font-size: 10.5px; gap: 8px; }
  .hx { display: none; }
}
