/* =====================================================================
   Coord Control — product page
   Shares the PKC visual language (Space Grotesk / JetBrains Mono,
   steel-blue accent, industrial hairlines) and adds proof-path
   status colors. Dark default; light alternative.
   ===================================================================== */
:root {
  --font-grotesk: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --hair: 1px;
}
[data-theme="dark"] {
  --accent: #7B6CFF; --accent-rgb: 123, 108, 255;
  --bg: #090B16; --bg-1: #0F1226; --bg-2: #151935;
  --text: #ECEEFB; --text-2: #9094BE;
  --line: #1E2344; --line-strong: #2C3360;
  --ok: #46E2E8; --warn: #E0A33E; --crit: #F26D6D; --idle: #5E6396;
  --ok-rgb: 70,226,232; --warn-rgb: 224,163,62; --crit-rgb: 242,109,109;
}
[data-theme="light"] {
  --accent: #5538E6; --accent-rgb: 85, 56, 230;
  --bg: #F1F2F8; --bg-1: #FFFFFF; --bg-2: #FAFAFE;
  --text: #0B0E1C; --text-2: #565C82;
  --line: #E2E4F0; --line-strong: #CBCEE2;
  --ok: #0C8E99; --warn: #C77D17; --crit: #CF2D2D; --idle: #8B90B0;
  --ok-rgb: 12,142,153; --warn-rgb: 199,125,23; --crit-rgb: 207,45,45;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-grotesk); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; transition: background .4s ease, color .4s ease;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(var(--accent-rgb), 0.30); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

/* ---- type utilities ---- */
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); }
.section-tag { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); margin-bottom: 26px; }
.section-tag::before { content: ""; width: 28px; height: var(--hair); background: var(--accent); }
.section-tag .num { color: var(--accent); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.section-title { font-size: clamp(27px, 3.8vw, 44px); letter-spacing: -0.025em; max-width: 20ch; text-wrap: balance; }
.section-sub { color: var(--text-2); font-size: clamp(15px, 1.5vw, 18px); max-width: 60ch; margin-top: 20px; text-wrap: pretty; }
.section-head { margin-bottom: 52px; max-width: 820px; }
section.block { padding-block: clamp(64px, 8vw, 118px); position: relative; }
.tint { background: var(--bg-1); border-block: var(--hair) solid var(--line); }

/* ---- buttons ---- */
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px; font-size: 15px; font-weight: 500; cursor: pointer; border: var(--hair) solid transparent; transition: all .22s ease; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--text-2); transform: translateY(-1px); }
.btn-primary svg, .btn-secondary svg { width: 16px; height: 16px; }

/* ===================== HEADER ===================== */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .35s ease, border-color .35s ease; border-bottom: var(--hair) solid transparent; }
header.solid { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand .mark { font-family: var(--font-mono); font-weight: 600; font-size: 19px; letter-spacing: 0.04em; color: var(--text); border: var(--hair) solid var(--line-strong); padding: 4px 9px; line-height: 1; }
.brand .full { font-size: 12.5px; color: var(--text-2); display: none; white-space: nowrap; }
@media (min-width: 900px) { .brand .full { display: inline; } }
.brand .full b { color: var(--text); font-weight: 500; }
.nav-links { display: none; align-items: center; gap: 22px; flex-wrap: nowrap; min-width: 0; }
@media (min-width: 1240px) { .nav-links { display: flex; } }
.nav-links a { font-size: 13.5px; color: var(--text-2); position: relative; padding: 6px 0; transition: color .2s ease; white-space: nowrap; }
.nav-links a .dot { font-family: var(--font-mono); font-size: 10px; color: var(--accent); margin-right: 6px; opacity: .55; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: var(--hair); background: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.icon-btn, .ghost-btn { font-family: var(--font-mono); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border: var(--hair) solid var(--line-strong); background: transparent; color: var(--text-2); cursor: pointer; transition: color .2s, border-color .2s; }
.icon-btn { width: 38px; }
.ghost-btn { padding: 0 14px; font-size: 12px; letter-spacing: 0.08em; }
.icon-btn:hover, .ghost-btn:hover { color: var(--text); border-color: var(--text-2); }
.icon-btn svg { width: 17px; height: 17px; }
.cta-btn { display: none; align-items: center; gap: 9px; height: 38px; padding: 0 18px; background: var(--accent); color: #fff; cursor: pointer; border: none; font-family: var(--font-grotesk); font-size: 14px; font-weight: 500; transition: background .2s; white-space: nowrap; }
@media (min-width: 760px) { .cta-btn { display: inline-flex; } }
.cta-btn:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); }
.cta-btn svg { width: 15px; height: 15px; }
.menu-btn { display: inline-flex; }
@media (min-width: 1240px) { .menu-btn { display: none; } }
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(16px); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: var(--gut); transform: translateX(100vw); opacity: 0; visibility: hidden; transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .3s ease, visibility .35s; }
.mobile-menu.open { transform: translateX(0); opacity: 1; visibility: visible; }
.mobile-menu a { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; padding: 12px 0; border-bottom: var(--hair) solid var(--line); display: flex; align-items: baseline; gap: 14px; }
.mobile-menu a .mi { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.mobile-menu .mclose { position: absolute; top: 24px; right: var(--gut); }

/* ===================== HERO ===================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 78% 0%, transparent 30%, var(--bg) 100%), linear-gradient(180deg, transparent 55%, var(--bg) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 116px; padding-bottom: 56px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.02fr 0.98fr; } }
.hero h1 { font-size: clamp(33px, 4.8vw, 62px); letter-spacing: -0.035em; line-height: 1.0; max-width: 17ch; margin-top: 24px; text-wrap: balance; }
.hero .sub { color: var(--text-2); font-size: clamp(16px, 1.6vw, 19px); max-width: 56ch; margin-top: 26px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.proofstrip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.proofstrip .ps { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text-2); border: var(--hair) solid var(--line); padding: 7px 11px; }
.proofstrip .ps svg { width: 13px; height: 13px; color: var(--accent); }

/* ---- hero proof card (Promise / Reality) ---- */
.hero-panel { position: relative; }
.panel-glow { position: absolute; inset: -8% -6%; z-index: 0; pointer-events: none; background: radial-gradient(58% 55% at 68% 26%, rgba(var(--accent-rgb), 0.16), transparent 70%); filter: blur(8px); }
.proofcard { position: relative; z-index: 1; background: color-mix(in srgb, var(--bg-1) 90%, transparent); border: var(--hair) solid var(--line-strong); backdrop-filter: blur(6px); }
.pc-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: var(--hair) solid var(--line); }
.pc-ref { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-2); }
.pc-badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 9px; border: var(--hair) solid; }
.pc-badge.crit { color: var(--crit); border-color: color-mix(in srgb, var(--crit) 55%, transparent); background: rgba(var(--crit-rgb), 0.08); }
.pc-body { padding: 6px 20px 18px; }
.pc-line { display: grid; grid-template-columns: 108px 1fr; gap: 12px; align-items: baseline; padding: 15px 0; border-bottom: var(--hair) solid var(--line); }
.pc-line .l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.pc-line .v { font-family: var(--font-mono); font-size: 13px; color: var(--text); }
.pc-line .v.declared { color: var(--text-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--crit) 60%, transparent); text-decoration-thickness: 1px; }
.pc-line .v.observed { color: var(--text); }
.pc-verdict { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 4px; }
.pc-verdict .vk { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.pc-verdict .vv { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--crit); }
.pc-verdict .vv .sd { width: 8px; height: 8px; background: var(--crit); border-radius: 50%; box-shadow: 0 0 0 0 rgba(var(--crit-rgb), 0.5); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(var(--crit-rgb),0.5)} 70%{box-shadow:0 0 0 8px rgba(var(--crit-rgb),0)} 100%{box-shadow:0 0 0 0 rgba(var(--crit-rgb),0)} }
.pc-foot { display: flex; align-items: center; gap: 8px; padding: 13px 20px; border-top: var(--hair) solid var(--line); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--text-2); flex-wrap: wrap; }
.pc-foot .chip-mini { display: inline-flex; align-items: center; gap: 6px; }
.pc-foot .chip-mini::before { content: ""; width: 5px; height: 5px; background: var(--accent); }
@media (max-width: 939px) { .hero-panel { max-width: 520px; } }

/* ===================== EXECUTION != EFFECT band ===================== */
.axiom { border-block: var(--hair) solid var(--line); background: var(--bg-1); }
.axiom .wrap { padding-block: clamp(48px, 6vw, 84px); display: grid; gap: 30px; }
@media (min-width: 860px) { .axiom .wrap { grid-template-columns: auto 1fr; gap: 56px; align-items: center; } }
.axiom .eq { font-family: var(--font-mono); font-size: clamp(30px, 5vw, 52px); font-weight: 600; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.axiom .eq s { color: var(--crit); text-decoration: none; }
.axiom .eq .ne { color: var(--accent); padding-inline: 4px; }
.axiom .ax-copy { color: var(--text-2); font-size: clamp(15px, 1.6vw, 18px); max-width: 62ch; text-wrap: pretty; }
.axiom .ax-copy b { color: var(--text); font-weight: 500; }

/* ===================== PROBLEM cards ===================== */
.grid-4 { display: grid; grid-template-columns: 1fr; border-top: var(--hair) solid var(--line); border-left: var(--hair) solid var(--line); }
@media (min-width: 620px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.pcard { padding: 30px 26px 28px; background: var(--bg); border-right: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); display: flex; flex-direction: column; min-height: 250px; transition: background .25s ease; position: relative; }
.pcard::before { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 0 var(--crit); transition: box-shadow .25s ease; }
.pcard:hover { background: var(--bg-1); }
.pcard:hover::before { box-shadow: inset 0 2px 0 0 var(--crit); }
.pcard .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--crit); border: var(--hair) solid color-mix(in srgb, var(--crit) 40%, var(--line)); padding: 5px 9px; align-self: flex-start; margin-bottom: 20px; }
.pcard h3 { font-size: 17.5px; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 11px; }
.pcard p { color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* ===================== FOUR LAYERS ===================== */
.layer { border-top: var(--hair) solid var(--line); }
.layer:first-of-type { border-top: none; }
.layer .lwrap { display: grid; gap: 40px; padding-block: clamp(52px, 6vw, 88px); align-items: start; }
@media (min-width: 940px) { .layer .lwrap { grid-template-columns: 1fr 1fr; gap: 64px; } }
.layer.flip .lviz { order: -1; }
.layer-id { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.layer-id .lx { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em; color: var(--accent); }
.layer-id .lname { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-2); }
.layer h2 { font-size: clamp(24px, 2.9vw, 36px); letter-spacing: -0.025em; max-width: 18ch; text-wrap: balance; }
.layer .lead { color: var(--text-2); font-size: clamp(15px, 1.5vw, 17px); margin-top: 18px; max-width: 52ch; text-wrap: pretty; }
.caplist { list-style: none; margin-top: 26px; display: grid; gap: 0; border-top: var(--hair) solid var(--line); }
.caplist li { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; border-bottom: var(--hair) solid var(--line); font-size: 14.5px; color: var(--text); line-height: 1.5; }
.caplist li .mk { font-family: var(--font-mono); font-size: 11px; color: var(--accent); flex: 0 0 auto; margin-top: 3px; opacity: .8; }

/* layer visual shells */
.lviz { position: relative; }
.vshell { background: var(--bg-1); border: var(--hair) solid var(--line-strong); }
.vshell-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: var(--hair) solid var(--line); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.vshell-head .live { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); }
.vshell-head .live .sd { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.2s ease-out infinite; }

/* OBSERVE roster */
.roster { display: grid; }
.rrow { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: var(--hair) solid var(--line); }
.rrow:last-child { border-bottom: none; }
.rrow .ra { display: flex; flex-direction: column; gap: 3px; }
.rrow .rn { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); }
.rrow .rt { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-2); }
.state { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.state .sd { width: 7px; height: 7px; border-radius: 50%; }
.state.healthy { color: var(--ok); } .state.healthy .sd { background: var(--ok); }
.state.attention { color: var(--warn); } .state.attention .sd { background: var(--warn); }
.state.blocked { color: var(--crit); } .state.blocked .sd { background: var(--crit); animation: pulse 2.2s ease-out infinite; }

/* CONTROL — blocked/allowed switch + gate chain */
.switch-row { display: flex; gap: 6px; padding: 14px 18px; border-bottom: var(--hair) solid var(--line); }
.switch-row button { flex: 1; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 9px 0; border: var(--hair) solid var(--line-strong); background: transparent; color: var(--text-2); cursor: pointer; transition: all .2s; }
.switch-row button[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.switch-row button.b-allow[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #04160E; }
.switch-row button.b-block[aria-pressed="true"] { background: var(--crit); border-color: var(--crit); color: #fff; }
.gatechain { padding: 6px 0; }
.gate { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: var(--hair) solid var(--line); }
.gate:last-child { border-bottom: none; }
.gate .gi { width: 24px; height: 24px; display: grid; place-items: center; border: var(--hair) solid var(--line-strong); font-family: var(--font-mono); font-size: 10px; color: var(--text-2); }
.gate .gl { font-family: var(--font-mono); font-size: 12px; color: var(--text); }
.gate .gs { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.gate.pass .gi { border-color: var(--ok); color: var(--ok); } .gate.pass .gs { color: var(--ok); }
.gate.stop .gi { border-color: var(--crit); color: var(--crit); } .gate.stop .gs { color: var(--crit); }
.gate.idle .gs { color: var(--idle); }
.gate.stop .gl { color: var(--text); }
.cmdline { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); padding: 13px 18px; border-bottom: var(--hair) solid var(--line); word-break: break-all; }
.cmdline b { color: var(--text); }

/* ASSURE — verdict list */
.verdicts { display: grid; }
.vrow { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: var(--hair) solid var(--line); }
.vrow:last-child { border-bottom: none; }
.vrow .vlabel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.vrow .vlabel .sd { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.vrow .vdesc { font-size: 12.5px; color: var(--text-2); }
.v-ok { color: var(--ok); } .v-ok .sd { background: var(--ok); }
.v-crit { color: var(--crit); } .v-crit .sd { background: var(--crit); }
.v-warn { color: var(--warn); } .v-warn .sd { background: var(--warn); }
.v-idle { color: var(--idle); } .v-idle .sd { background: var(--idle); }
.v-accent { color: var(--accent); } .v-accent .sd { background: var(--accent); }

/* RECOVER — timeline */
.timeline { padding: 20px 18px; display: grid; gap: 0; }
.tstep { display: grid; grid-template-columns: 22px 1fr; gap: 14px; }
.tstep .tmark { display: flex; flex-direction: column; align-items: center; }
.tstep .tmark .td { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg-1); margin-top: 4px; flex: 0 0 auto; }
.tstep .tmark .tl { width: 2px; flex: 1; background: var(--line-strong); margin: 4px 0; }
.tstep:last-child .tmark .tl { display: none; }
.tstep .tc { padding-bottom: 20px; }
.tstep:last-child .tc { padding-bottom: 0; }
.tstep .tt { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); }
.tstep .tsub { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }

/* ===================== HOW IT WORKS — proof path ===================== */
.pathflow { border-top: var(--hair) solid var(--line); border-left: var(--hair) solid var(--line); display: grid; grid-template-columns: 1fr; }
@media (min-width: 680px) { .pathflow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pathflow { grid-template-columns: repeat(3, 1fr); } }
.pstep { position: relative; padding: 26px 24px 24px; border-right: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); cursor: pointer; background: var(--bg); transition: background .25s; }
.pstep:hover, .pstep.active { background: var(--bg-1); }
.pstep .pnum { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.pstep .pnum::after { content: ""; width: 20px; height: var(--hair); background: var(--line-strong); }
.pstep h3 { font-size: 18px; margin-bottom: 8px; }
.pstep .pq { color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.pstep .psurf { margin-top: 16px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--text-2); border-top: var(--hair) solid var(--line); padding-top: 12px; }
.pstep .psurf b { color: var(--accent); font-weight: 500; }
.pstep.active::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent); }

/* status legend */
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 36px; padding-top: 26px; border-top: var(--hair) solid var(--line); }
.legend .lg { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text-2); }
.legend .lg .sd { width: 8px; height: 8px; border-radius: 50%; }
.legend .lg b { color: var(--text); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 2px; }

/* ===================== DEMO scenarios + promise/reality ===================== */
.scenarios { display: grid; grid-template-columns: 1fr; gap: 0; border-top: var(--hair) solid var(--line); border-left: var(--hair) solid var(--line); }
@media (min-width: 900px) { .scenarios { grid-template-columns: repeat(3, 1fr); } }
.scen { padding: 28px 26px; border-right: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); background: var(--bg); }
.scen .sn { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 16px; }
.scen h3 { font-size: 17px; line-height: 1.3; margin-bottom: 11px; }
.scen p { color: var(--text-2); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.scen .flow { display: flex; flex-wrap: wrap; gap: 6px; }
.scen .flow .fx { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--text-2); border: var(--hair) solid var(--line); padding: 4px 8px; }
.scen .flow .fx.stop { color: var(--crit); border-color: color-mix(in srgb, var(--crit) 40%, var(--line)); }
.scen .flow .fx.div { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.scen .flow .fx.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }

/* promise/reality interactive */
.prwrap { margin-top: 56px; border: var(--hair) solid var(--line-strong); background: var(--bg-1); }
.pr-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: var(--hair) solid var(--line); }
.pr-head .pt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.pr-toggle { display: inline-flex; border: var(--hair) solid var(--line-strong); }
.pr-toggle button { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; padding: 9px 16px; background: transparent; color: var(--text-2); border: none; cursor: pointer; transition: all .2s; }
.pr-toggle button + button { border-left: var(--hair) solid var(--line-strong); }
.pr-toggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.pr-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pr-body { grid-template-columns: 1fr 1fr; } }
.pr-col { padding: 24px 22px; }
.pr-col + .pr-col { border-top: var(--hair) solid var(--line); }
@media (min-width: 760px) { .pr-col + .pr-col { border-top: none; border-left: var(--hair) solid var(--line); } }
.pr-col .cl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
.pr-col .cbig { font-family: var(--font-mono); font-size: 15px; color: var(--text); line-height: 1.5; }
.pr-col.reality { transition: opacity .3s ease; }
.pr-body[data-mode="promise"] .pr-col.reality { opacity: .28; }
.pr-verdict { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 22px; border-top: var(--hair) solid var(--line); }
.pr-verdict .vk { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.pr-verdict .vpill { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; padding: 7px 14px; border: var(--hair) solid; }
.pr-verdict .vpill .sd { width: 8px; height: 8px; border-radius: 50%; }
.pr-verdict .vpill.diverged { color: var(--crit); border-color: color-mix(in srgb, var(--crit) 50%, transparent); background: rgba(var(--crit-rgb),.08); }
.pr-verdict .vpill.diverged .sd { background: var(--crit); }
.pr-verdict .refs { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); display: inline-flex; gap: 12px; flex-wrap: wrap; }
.pr-verdict .refs a { color: var(--accent); border-bottom: var(--hair) solid color-mix(in srgb, var(--accent) 50%, transparent); }

/* ===================== RUNTIME ===================== */
.runtime-grid { display: grid; grid-template-columns: 1fr; border-top: var(--hair) solid var(--line); border-left: var(--hair) solid var(--line); }
@media (min-width: 620px) { .runtime-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .runtime-grid { grid-template-columns: repeat(3, 1fr); } }
.rt { padding: 24px 22px; border-right: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 10px; transition: background .2s; }
.rt:hover { background: var(--bg-1); }
.rt .rk { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.rt .rtitle { font-family: var(--font-mono); font-size: 14px; color: var(--text); }
.rt .rd { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.rt-note { margin-top: 26px; font-size: 13px; color: var(--text-2); max-width: 70ch; padding-left: 16px; border-left: 2px solid var(--line-strong); }

/* control surfaces chips */
.surfaces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.surfaces .sf { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--text); border: var(--hair) solid var(--line-strong); padding: 7px 12px; }

/* ===================== LOCAL-FIRST ===================== */
.local-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: var(--hair) solid var(--line); border-left: var(--hair) solid var(--line); }
@media (min-width: 620px) { .local-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .local-grid { grid-template-columns: repeat(4, 1fr); } }
.lc { padding: 26px 24px; border-right: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); background: var(--bg); }
.lc .li { width: 38px; height: 38px; display: grid; place-items: center; border: var(--hair) solid var(--line-strong); color: var(--accent); margin-bottom: 18px; }
.lc .li svg { width: 18px; height: 18px; }
.lc h3 { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; margin-bottom: 9px; }
.lc p { font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* connectivity strip */
.conn { display: flex; align-items: stretch; margin-top: 30px; border: var(--hair) solid var(--line); flex-wrap: wrap; }
.conn .cn { flex: 1; min-width: 120px; padding: 16px 18px; border-right: var(--hair) solid var(--line); text-align: center; }
.conn .cn:last-child { border-right: none; }
.conn .cn .cs { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.conn .cn .cd { font-family: var(--font-mono); font-size: 10px; color: var(--text-2); margin-top: 5px; }
.conn .cn.on { box-shadow: inset 0 2px 0 0 var(--ok); }
.conn .cn.deg { box-shadow: inset 0 2px 0 0 var(--warn); }
.conn .cn.air { box-shadow: inset 0 2px 0 0 var(--accent); }
.conn .cn.pause { box-shadow: inset 0 2px 0 0 var(--idle); }

/* ===================== TRUTH BOUNDARY ===================== */
.truth { display: grid; grid-template-columns: 1fr; border: var(--hair) solid var(--line-strong); }
@media (min-width: 820px) { .truth { grid-template-columns: 1fr 1fr; } }
.tcol { padding: 32px 30px; }
.tcol.can { background: color-mix(in srgb, var(--ok) 5%, var(--bg-1)); }
.tcol.cannot { background: var(--bg-1); border-top: var(--hair) solid var(--line); }
@media (min-width: 820px) { .tcol.cannot { border-top: none; border-left: var(--hair) solid var(--line-strong); } }
.tcol .th { display: flex; align-items: center; gap: 11px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 22px; }
.tcol.can .th { color: var(--ok); }
.tcol.cannot .th { color: var(--text-2); }
.tcol .th svg { width: 17px; height: 17px; }
.tcol ul { list-style: none; display: grid; gap: 0; }
.tcol li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: var(--hair) solid var(--line); font-size: 14.5px; color: var(--text); line-height: 1.5; }
.tcol li:last-child { border-bottom: none; }
.tcol li .mk { flex: 0 0 auto; margin-top: 3px; width: 14px; height: 14px; }
.tcol.can li .mk { color: var(--ok); }
.tcol.cannot li .mk { color: var(--text-2); }
.safeclaim { margin-top: 32px; padding: 26px 28px; border: var(--hair) solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.safeclaim .scl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.safeclaim p { font-size: clamp(15px, 1.6vw, 18px); color: var(--text); line-height: 1.6; text-wrap: pretty; }

/* ===================== FINAL CTA ===================== */
.final { text-align: center; }
.final .section-title { max-width: 24ch; margin: 0 auto; }
.final .fcta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ===================== FOOTER ===================== */
footer { border-top: var(--hair) solid var(--line); background: var(--bg-1); }
footer .wrap { padding-block: 52px; }
.foot-top { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; padding-bottom: 38px; border-bottom: var(--hair) solid var(--line); }
@media (min-width: 760px) { .foot-top { grid-template-columns: 1.6fr 1fr 1fr; } }
.foot-brand .mark { font-family: var(--font-mono); font-weight: 600; font-size: 22px; letter-spacing: 0.04em; }
.foot-brand .full { color: var(--text-2); font-size: 14px; margin-top: 10px; }
.foot-brand .tag { color: var(--text-2); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; margin-top: 16px; }
.foot-col .fl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
.foot-col a, .foot-col span { display: block; font-size: 14px; color: var(--text); margin-bottom: 9px; }
.foot-col a { transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; padding-top: 26px; }
.foot-bottom .lgl { font-size: 12.5px; color: var(--text-2); max-width: 66ch; }
.foot-bottom .meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); letter-spacing: 0.04em; }

/* ===================== ARCHITECTURE & SECURITY ===================== */
.stackdiag { display: grid; gap: 0; }
.sd-node { padding: 16px 20px; border-bottom: var(--hair) solid var(--line); display: grid; gap: 4px; }
.sd-node:last-child { border-bottom: none; }
.sd-node .sk { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.sd-node .sv { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); line-height: 1.5; }
.sd-node.core { background: color-mix(in srgb, var(--accent) 6%, transparent); box-shadow: inset 2px 0 0 0 var(--accent); }
.sd-node.core .sk { color: var(--accent); }
.sd-arrow { text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--accent); padding: 5px 0; border-bottom: var(--hair) solid var(--line); }
.arch-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 940px) { .arch-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.stats { display: grid; grid-template-columns: 1fr; border-top: var(--hair) solid var(--line); border-left: var(--hair) solid var(--line); }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 26px 24px; border-right: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); background: var(--bg); transition: background .2s; }
.stat:hover { background: var(--bg-1); }
.stat .n { font-family: var(--font-mono); font-size: clamp(26px, 2.8vw, 38px); font-weight: 600; letter-spacing: -0.01em; color: var(--accent); line-height: 1.1; }
.stat .n.t { font-size: clamp(16px, 1.6vw, 20px); }
.stat .d { font-size: 13px; color: var(--text-2); line-height: 1.55; margin-top: 9px; }

/* ===================== WAR ROOM extras ===================== */
.db-row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 14px 18px; border-bottom: var(--hair) solid var(--line); }
.db-row:last-child { border-bottom: none; }
.dbp { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; width: 34px; height: 24px; display: grid; place-items: center; border: var(--hair) solid; }
.dbp.crit { color: var(--crit); border-color: color-mix(in srgb, var(--crit) 50%, transparent); background: rgba(var(--crit-rgb), 0.07); }
.dbp.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: rgba(var(--warn-rgb), 0.07); }
.dbp.accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: rgba(var(--accent-rgb), 0.07); }
.dbc .dbt { font-size: 13.5px; color: var(--text); line-height: 1.45; }
.dbc .dba { font-family: var(--font-mono); font-size: 11px; color: var(--accent); margin-top: 4px; }
.wt-row { display: grid; grid-template-columns: 32px 1fr auto 52px; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: var(--hair) solid var(--line); }
.wt-row:last-child { border-bottom: none; }
.wt-row .wn { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.wt-row .ws { font-size: 13px; color: var(--text); line-height: 1.4; }
.wt-row .wc { font-size: 11.5px; color: var(--text-2); text-align: right; }
.wt-head { display: grid; grid-template-columns: 32px 1fr auto 52px; gap: 12px; padding: 10px 18px; border-bottom: var(--hair) solid var(--line); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.wt-head span:last-child { text-align: right; }

/* ===================== EASTER EGG · 1940 ===================== */
.egg-mark { cursor: help; position: relative; display: inline-block; }
.egg-mark::after { content: "†"; font-size: 11px; color: var(--text-2); position: absolute; top: -4px; right: -12px; opacity: .55; }
.egg-word { cursor: help; border-bottom: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); transition: color .2s, border-color .2s; }
.egg-word:hover { color: var(--accent); border-bottom-color: var(--accent); }
.egg-word::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
.egg-word.egg-hint { animation: egg-word-hint 2.2s 3.4s ease-in-out 1; }
.egg-mark::after { animation: egg-mark-hint 2.4s 4.4s ease-in-out 1; }
.egg { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); z-index: 200; max-width: 560px; width: calc(100% - 40px); background: var(--bg-1); border: var(--hair) solid var(--line-strong); box-shadow: 0 18px 50px rgba(0,0,0,.35); padding: 22px 24px 20px; opacity: 0; visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility .3s; cursor: pointer; }
.egg.open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.egg .stamp { display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--crit); border: 1.5px solid color-mix(in srgb, var(--crit) 60%, transparent); padding: 4px 9px; transform: rotate(-2deg); margin-bottom: 14px; }
.egg p { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.65; color: var(--text); }
.egg p b { color: var(--accent); font-weight: 600; }
.egg .close-hint { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin-top: 14px; }
/* mock sheep-coordination figure */
.sheepfig { margin-top: 16px; border: var(--hair) solid var(--line); background: var(--bg-2); padding: 10px 12px 8px; }
.sheepfig svg { width: 100%; height: auto; display: block; }
.sheepfig .se { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.sheepfig .se.dash { stroke-dasharray: 4 5; }
.sheepfig .se.rogue { stroke: var(--crit); opacity: .7; }
.sheepfig .se.back { stroke: var(--ok); opacity: .8; }
.sheepfig .sx { fill: var(--crit); font-family: var(--font-mono); font-size: 16px; font-weight: 600; }
.sheepfig .sheep ellipse { fill: var(--bg-1); stroke: var(--line-strong); }
.sheepfig .sheep circle { fill: var(--text-2); }
.sheepfig .sheep.in ellipse { stroke: var(--ok); }
.sheepfig .dog circle { fill: var(--accent); }
.sheepfig .sg { stroke: var(--text); stroke-width: 2.5; }
.sheepfig .pen { fill: none; stroke: var(--line-strong); stroke-dasharray: 6 5; }
.sheepfig .slbl { fill: var(--text-2); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; }
.sheepfig .slbl.accent { fill: var(--accent); }
.sheepfig .slbl.rogue { fill: var(--crit); }
.sheepfig .slbl.ok { fill: var(--ok); }
.sheepfig .sdot { fill: var(--accent); }
.sfig-cap { font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .sheepfig .sdot { display: none; } }
.egg { max-width: 640px; }
.egg-grid { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: start; }
.egg-photo { width: 132px; height: 164px; border: var(--hair) solid var(--line-strong); padding: 5px; background: var(--bg-2); transform: rotate(-1.5deg); }
.egg-photo image-slot { width: 100%; height: 100%; }
@media (max-width: 560px) { .egg-grid { grid-template-columns: 1fr; } .egg-photo { margin: 0 auto; } }
.egg .stamp.accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: none; }
.vpop { max-width: 620px; cursor: default; }
.vp-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin: 12px 0 8px; display: block; }
.vp-aud { border-bottom: var(--hair) solid var(--line); padding-bottom: 12px; }
.vp-aud span:last-child { font-family: var(--font-mono); font-size: 12px; color: var(--text); display: block; margin-top: 4px; }
.vp-list { list-style: none; display: grid; gap: 0; }
.vp-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: var(--hair) solid var(--line); font-size: 13.5px; color: var(--text); line-height: 1.5; }
.vp-list li:last-child { border-bottom: none; }
.vp-list li::before { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 12px; margin-top: 2px; }
#verticalGrid .rt { cursor: pointer; }
#verticalGrid .rt:hover .rtitle { color: var(--accent); }

/* ---- engine flow animation ---- */
.flowanim { margin-top: -8px; margin-bottom: 8px; }
.flowanim svg { width: 100%; height: auto; display: block; }
.flowanim .fedge { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.flowanim .fedge.chosen { stroke: var(--accent); stroke-width: 1.6; }
.flowanim .fedge.dim { opacity: .55; }
.flowanim .fedge.dash { stroke-dasharray: 4 5; }
.flowanim .fnode.sc { cursor: pointer; }
.flowanim .fnode.sc:hover rect { stroke: var(--accent); }
.flowanim .fnode.sc rect { stroke: var(--line-strong); transition: stroke .2s, fill .2s; }
.flowanim .fnode.sc text { font-size: 12px; fill: var(--text-2); }
.flowanim .fnode.sc.chosen rect { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 6%, var(--bg-1)); }
.flowanim .fnode.sc.chosen text { fill: var(--accent); font-weight: 600; }
.flowanim .fnode.human text.sub { font-size: 9px; fill: var(--text-2); font-weight: 400; }
.flowanim .fsig.dim { fill: var(--idle); }
.flowanim .fnode rect { fill: var(--bg-1); stroke: var(--line-strong); }
.flowanim .fnode text { fill: var(--text); font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.04em; }
.flowanim .fnode.human rect { fill: color-mix(in srgb, var(--accent) 7%, var(--bg-1)); stroke: var(--accent); }
.flowanim .fnode.human text { fill: var(--accent); font-weight: 600; }
.flowanim .fnode.out rect { fill: var(--text); stroke: var(--text); }
.flowanim .fnode.out text { fill: var(--bg-1); font-size: 11px; }
.flowanim .fsig { fill: var(--accent); }
.flowanim .fsig.ok { fill: var(--ok); }
@media (prefers-reduced-motion: reduce) { .flowanim .fsig { display: none; } }
@media (max-width: 720px) { .flowanim { display: none; } }

/* ===================== INTELLECTUAL PROPERTY ===================== */
.ip-protection { padding: 104px 0; border-top: var(--hair) solid var(--line); background: var(--bg-1); }
.ip-protection .ip-head { max-width: 780px; margin-bottom: 42px; }
.ip-protection .ip-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .17em; text-transform: uppercase; color: var(--accent); }
.ip-protection .ip-kicker::before { content: ""; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.ip-protection h2 { margin-top: 18px; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.03; letter-spacing: -.042em; }
.ip-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--hair) solid var(--line-strong); }
.ip-card { padding: clamp(24px, 3vw, 36px); min-height: 290px; border-right: var(--hair) solid var(--line-strong); display: flex; flex-direction: column; }
.ip-card:last-child { border-right: 0; }
.ip-ref { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--accent); }
.ip-secret { width: max-content; appearance: none; padding: 0 0 3px; background: transparent; border: 0; border-bottom: var(--hair) dashed color-mix(in srgb, var(--accent) 55%, transparent); cursor: pointer; }
.ip-secret:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.ip-secret { animation: ip-secret-hint 2.5s 6.2s ease-in-out 1; }
@keyframes egg-word-hint { 0%,100% { color:inherit; text-shadow:none; } 38%,55% { color:var(--accent); text-shadow:0 0 14px color-mix(in srgb,var(--accent) 38%,transparent); } }
@keyframes egg-mark-hint { 0%,100% { opacity:.55; transform:translateY(0); } 42%,58% { opacity:1; color:var(--accent); transform:translateY(-2px); } }
@keyframes ip-secret-hint { 0%,100% { color:inherit; filter:none; } 18%,30%,48%,60%,78%,90% { color:var(--accent); filter:drop-shadow(0 0 5px color-mix(in srgb,var(--accent) 38%,transparent)); } 24%,54%,84% { color:inherit; filter:none; } }
.ip-status { margin-top: auto; padding-top: 42px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.ip-card p { margin-top: 14px; font-size: 15px; line-height: 1.65; color: var(--text-2); }
@media (max-width: 820px) { .ip-protection { padding: 76px 0; } .ip-grid { grid-template-columns: 1fr; } .ip-card { min-height: 0; border-right: 0; border-bottom: var(--hair) solid var(--line-strong); } .ip-card:last-child { border-bottom: 0; } .ip-status { margin-top: 28px; padding-top: 0; } }
.project-egg { position: fixed; inset: 0; z-index: 10002; display: grid; place-items: center; padding: 24px; background: rgba(5,7,16,.78); backdrop-filter: blur(9px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.project-egg.open { opacity: 1; visibility: visible; }
.project-egg-card { width: min(620px,100%); border: var(--hair) solid var(--accent); background: var(--bg-1); padding: clamp(26px,5vw,48px); box-shadow: 0 24px 90px rgba(0,0,0,.35); }
.project-egg-code { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 15px; border-bottom: var(--hair) solid var(--line); font-family: var(--font-mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.project-egg h3 { margin: 27px 0 14px; font-size: clamp(26px,4vw,42px); line-height: 1.05; letter-spacing: -.035em; }
.project-egg p { color: var(--text-2); line-height: 1.65; }
.project-egg-flow { margin-top: 27px; padding: 14px 0; border-top: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--text); }
.project-egg-close { margin-top: 25px; appearance: none; background: transparent; color: var(--text-2); border: 0; border-bottom: var(--hair) solid var(--line-strong); padding: 0 0 4px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .project-egg { transition: none; } .egg-word,.egg-mark::after,.ip-secret { animation:none; } }

/* ---- decision-spine What-If detail panel ---- */
.path-detail { border: var(--hair) solid var(--line-strong); border-top: 2px solid var(--accent); background: var(--bg-1); padding: 20px 24px 18px; }
.path-detail .pd-head { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.path-detail .pd-num { font-size: 12px; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; }
.path-detail .pd-l { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.path-detail .pd-list { list-style: none; display: grid; gap: 0; }
.path-detail .pd-list li { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; border-bottom: var(--hair) solid var(--line); font-size: 13.5px; color: var(--text); line-height: 1.5; }
.path-detail .pd-list li:last-child { border-bottom: none; }
.path-detail .pd-list li::before { content: "→"; font-family: var(--font-mono); font-size: 11px; color: var(--accent); margin-top: 3px; }

/* ---- HITL decision graph ---- */
.dgraph { padding: 18px; }
.dg-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.dg-scen { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dg-scen button { font-family: var(--font-mono); font-size: 11px; padding: 10px 8px; border: var(--hair) solid var(--line-strong); background: transparent; color: var(--text-2); cursor: pointer; transition: all .2s; }
.dg-scen button:hover { border-color: var(--text-2); color: var(--text); }
.dg-scen button.sel { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), 0.07); }
.dg-arrow { text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); padding: 6px 0; }
.dgraph.picked .dg-arrow:first-of-type, .dgraph.approved .dg-arrow { color: var(--accent); }
.dg-human { border: var(--hair) solid var(--line-strong); padding: 14px 16px; text-align: center; transition: border-color .25s, box-shadow .25s; }
.dg-human .dg-label { margin-bottom: 8px; }
.dg-human button { font-family: var(--font-grotesk); font-size: 13.5px; font-weight: 500; padding: 10px 18px; background: var(--accent); color: #fff; border: none; cursor: pointer; transition: opacity .2s, transform .2s; }
.dg-human button:disabled { opacity: .35; cursor: not-allowed; }
.dg-human button:not(:disabled):hover { transform: translateY(-1px); }
.dgraph.picked:not(.approved) .dg-human { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12); }
.dg-human .dh-hint { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; color: var(--text-2); margin-top: 9px; }
.dg-exec { border-top: var(--hair) solid var(--line); padding-top: 12px; }
.dg-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dg-status .st-held, .dg-status .st-done { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; }
.dg-status .sd { width: 7px; height: 7px; border-radius: 50%; }
.dg-status .st-held { color: var(--idle); } .dg-status .st-held .sd { background: var(--idle); }
.dg-status .st-done { color: var(--ok); display: none; } .dg-status .st-done .sd { background: var(--ok); }
.dgraph.approved .st-held { display: none; } .dgraph.approved .st-done { display: inline-flex; }
.dg-reset { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; background: transparent; border: none; color: var(--text-2); cursor: pointer; border-bottom: var(--hair) dashed var(--line-strong); padding: 0; }
.dg-reset:hover { color: var(--accent); }

/* ===================== REVEAL ===================== */
.reveal { transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.pre { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .reveal.pre { opacity: 1; transform: none; transition: none; } }
