/* =========================================================================
   CELEST — instrument-grade light. Gradient is signal, only where the
   system does real work. See direction contract in index.html.
   ========================================================================= */

/* ---- Fonts --------------------------------------------------------------- */
@font-face {
  font-family: "Mona Sans";
  src: url("/fonts/MonaSans.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* surfaces */
  --paper: #f6f8fc;
  --paper-2: #eef2fa;
  --surface: #ffffff;
  --night: #0a0e2b;
  --night-2: #10163f;
  --night-line: rgba(160, 178, 240, 0.16);

  /* ink (tinted toward the hue, never flat gray) */
  --ink: #0d1326;
  --ink-2: #454f6b;
  --ink-3: #6a7391;
  --on-night: #e8edff;
  --on-night-2: #a7b1de;

  /* signal gradient stops (sampled from the mark) */
  --c-cyan: #35c5ea;
  --c-sky: #24a6fa;
  --c-azure: #2e8bf0;
  --c-indigo: #5d70e8;
  --c-violet: #8389f7;
  --grad: linear-gradient(100deg, #35c5ea, #24a6fa, #2e8bf0, #5d70e8, #8389f7);
  --grad-rev: linear-gradient(280deg, #35c5ea, #24a6fa, #2e8bf0, #5d70e8, #8389f7);

  /* action */
  --brand: #1a63d6;
  --brand-deep: #1454c2;

  /* status system */
  --live: #0e9f6e;
  --exp: #c07d24;
  --road: #78829f;

  /* hairlines */
  --line: #e4e9f2;
  --line-2: #d3daea;

  /* elevation (offset + blur, never a flat halo) */
  --sh-sm: 0 1px 2px rgba(15, 22, 48, 0.05), 0 3px 8px -2px rgba(15, 22, 48, 0.06);
  --sh: 0 2px 6px -2px rgba(16, 26, 60, 0.08), 0 14px 34px -14px rgba(16, 26, 60, 0.18);
  --sh-lg: 0 4px 12px -4px rgba(16, 26, 60, 0.12), 0 34px 70px -24px rgba(16, 26, 60, 0.26);

  --r: 14px;
  --r-sm: 10px;
  --r-lg: 20px;
  --pill: 999px;

  --wrap: 1160px;
  --gut: clamp(1.15rem, 4vw, 2.6rem);

  --font: "Mona Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 440;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(46, 139, 240, 0.18); }

.wrap { width: min(100% - calc(var(--gut) * 2), var(--wrap)); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

/* ---- Type primitives ----------------------------------------------------- */
.kicker {
  font-family: var(--mono);
  font-size: 0.795rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  margin: 0 0 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.kicker::before {
  content: "";
  width: 1.7em; height: 3px; border-radius: 2px;
  background: var(--grad);
  flex: none;
}
.kicker--ondark { color: var(--on-night-2); }

.section__h2 {
  font-size: clamp(1.95rem, 4.1vw, 3.05rem);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 1.15rem;
  text-wrap: balance;
}
.section__head { max-width: 44rem; }
.section__head--ondark .section__h2 { color: var(--on-night); }

.prose {
  font-size: 1.1rem;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 40rem;
  margin: 0 0 1.1rem;
}
.prose:last-child { margin-bottom: 0; }
.prose b { color: var(--ink); font-weight: 640; }
.prose--wide { max-width: 46rem; }
.prose--onlight-invert { color: var(--on-night-2); }
.prose--onlight-invert b { color: var(--on-night); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --_bg: var(--brand);
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font);
  font-size: 1rem; font-weight: 560; letter-spacing: -0.006em;
  padding: 0.82em 1.35em;
  border-radius: var(--pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  will-change: transform;
}
.btn--sm { font-size: 0.9rem; padding: 0.62em 1.05em; }
.btn--primary {
  background: var(--_bg); color: #fff;
  box-shadow: 0 1px 2px rgba(20, 40, 90, 0.25), 0 12px 26px -12px rgba(26, 99, 214, 0.7);
}
.btn--primary:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 40, 90, 0.25), 0 18px 34px -14px rgba(26, 99, 214, 0.72); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--ink-3); background: rgba(46, 139, 240, 0.05); transform: translateY(-2px); }
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn--ghost:hover .btn__arrow { transform: translateY(3px); }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Status pills (Live / Experimental / Roadmap) ------------------------ */
.lvl {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500;
  white-space: nowrap;
}
.lvl i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lvl--live { color: var(--live); }
.lvl--live i { background: var(--live); box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.16); }
.lvl--exp { color: var(--exp); }
.lvl--exp i { background: var(--exp); box-shadow: 0 0 0 3px rgba(192, 125, 36, 0.16); }
.lvl--road { color: var(--road); }
.lvl--road i { background: transparent; border: 1.5px solid var(--road); }

/* =========================================================================
   TOPBAR
   ========================================================================= */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.topbar.is-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); }
.topbar__inner {
  display: flex; align-items: center; gap: 1.4rem;
  height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.brand__mark { width: 34px; height: 34px; }
.brand__word {
  font-weight: 680; font-size: 1.22rem; letter-spacing: -0.03em;
  font-stretch: 112%;
}
.topnav {
  display: flex; gap: 1.55rem; margin-left: auto;
  font-size: 0.94rem; color: var(--ink-2);
}
.topnav a { position: relative; padding: 4px 0; transition: color 0.2s ease; }
.topnav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px;
  background: var(--grad); border-radius: 2px; transition: right 0.3s var(--ease);
}
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after { right: 0; }
.topbar__end { display: flex; align-items: center; gap: 0.85rem; margin-left: 1.4rem; }
.preview-tag {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  color: var(--ink-3);
  border: 1px solid var(--line-2); border-radius: var(--pill);
  padding: 0.28em 0.7em;
}

@media (max-width: 900px) {
  .topnav { display: none; }
  .topbar__end { margin-left: auto; }
}
@media (max-width: 520px) {
  .preview-tag { display: none; }
  .btn--sm { font-size: 0.82rem; padding: 0.55em 0.9em; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__lede { max-width: 40rem; }
.hero__h1 {
  font-size: clamp(2.7rem, 6.6vw, 4.9rem);
  font-weight: 800; font-stretch: 118%;
  line-height: 1.0; letter-spacing: -0.035em;
  margin: 0 0 1.4rem;
}
.hero__h1-accent { color: var(--brand); }
.hero__sub {
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.55; color: var(--ink-2);
  max-width: 34rem; margin: 0 0 2rem;
}
.hero__sub em { font-style: normal; color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.2rem; }

.legend {
  font-size: 0.9rem; color: var(--ink-3);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 1.15rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  max-width: 34rem;
}
.legend .lvl { font-size: 0.78rem; }

/* soft signal wash behind the running panel (atmosphere where the system works) */
.hero::before {
  content: ""; position: absolute; z-index: 0;
  right: -6%; top: 8%; width: 46%; height: 78%;
  background: radial-gradient(60% 55% at 60% 40%, rgba(46, 139, 240, 0.16), rgba(131, 137, 247, 0.09) 45%, transparent 72%);
  filter: blur(10px); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__scan {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* ---- The live lifecycle panel (signature) -------------------------------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.panel__bar {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfe, #f4f7fc);
}
.panel__dots { display: inline-flex; gap: 6px; }
.panel__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.panel__title {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); font-weight: 500;
}
.loop__cycle {
  margin-left: auto; font-size: 1.05rem; color: var(--c-azure);
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loop__stages { list-style: none; margin: 0; padding: 0.5rem; }
.stage {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 0.85rem;
  padding: 0.68rem 0.8rem;
  border-radius: 12px;
  position: relative;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.stage__n {
  font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3);
  font-weight: 500; letter-spacing: 0.02em;
}
.stage__body { display: flex; flex-direction: column; gap: 1px; }
.stage__body b { font-weight: 600; font-size: 1.0rem; color: var(--ink); letter-spacing: -0.01em; }
.stage__art { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); }
.stage__dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: var(--surface);
  transition: all 0.4s var(--ease);
}

.stage.is-active {
  background: linear-gradient(90deg, rgba(46, 139, 240, 0.1), rgba(131, 137, 247, 0.045));
  box-shadow: inset 0 0 0 1px rgba(46, 139, 240, 0.16);
}
.stage.is-active .stage__body b { color: var(--brand-deep); }
.stage.is-active .stage__dot {
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(46, 139, 240, 0.16);
}
.stage.is-done .stage__dot {
  border-color: transparent;
  background: radial-gradient(circle, var(--c-azure), var(--c-indigo));
}
.stage.is-done .stage__n { color: var(--c-indigo); }

/* the authority gate */
.stage__gate { display: inline-flex; align-items: center; }
.stage__gate-wait, .stage__gate-ok {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  padding: 0.28em 0.7em; border-radius: var(--pill);
  display: none;
}
.stage__gate-wait { color: var(--exp); background: rgba(192, 125, 36, 0.1); }
.stage__gate-ok { color: var(--live); background: rgba(14, 159, 110, 0.12); }
.stage--gate .stage__gate-wait { display: inline-block; }
.stage--gate.is-waiting {
  background: linear-gradient(90deg, rgba(192, 125, 36, 0.11), transparent);
  box-shadow: inset 0 0 0 1px rgba(192, 125, 36, 0.24);
}
.stage--gate.is-waiting .stage__gate-wait { animation: gatepulse 1.1s var(--ease) infinite; }
.stage--gate.is-approved .stage__gate-wait { display: none; }
.stage--gate.is-approved .stage__gate-ok { display: inline-block; }
.stage--gate.is-approved { background: linear-gradient(90deg, rgba(14, 159, 110, 0.1), transparent); box-shadow: inset 0 0 0 1px rgba(14, 159, 110, 0.2); }
@keyframes gatepulse { 50% { opacity: 0.5; } }

.loop__foot {
  padding: 0.85rem 1.15rem; border-top: 1px solid var(--line);
  background: #fbfcfe;
}
.loop__foot-key { font-family: var(--mono); font-size: 0.73rem; color: var(--ink-3); line-height: 1.4; display: block; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .panel { max-width: 30rem; }
}

/* =========================================================================
   Section rhythm
   ========================================================================= */
section { padding: clamp(3.6rem, 8vw, 7rem) 0; }
.section__head { margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }

/* =========================================================================
   REBIRTH
   ========================================================================= */
.rebirth { background: linear-gradient(180deg, var(--paper), var(--paper-2)); border-block: 1px solid var(--line); }
.rebirth__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.continuity { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.continuity li {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
}
.continuity li:first-child { border-top: 1px solid var(--line); }
.continuity__then { color: var(--ink-3); font-size: 0.96rem; line-height: 1.4; }
.continuity__now { color: var(--ink); font-size: 0.98rem; line-height: 1.4; font-weight: 500; }
.continuity__arrow { color: var(--c-azure); font-size: 1.1rem; }

@media (max-width: 820px) {
  .rebirth__grid { grid-template-columns: 1fr; }
  .continuity li { grid-template-columns: 1fr; gap: 0.35rem; padding: 0.95rem 0; }
  .continuity__arrow { display: none; }
  .continuity__then::after { content: ""; }
}

/* =========================================================================
   PROBLEM · fragmentation → join
   ========================================================================= */
.join {
  display: grid; grid-template-columns: 1fr auto 1.1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center;
  margin-bottom: 2.6rem;
}
.join__sources { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.src {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0.85rem 0.9rem; box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; gap: 0.3rem;
  transform: translateY(calc(var(--i) * 0px));
}
.src__prov { font-family: var(--mono); font-size: 0.72rem; color: var(--c-azure); font-weight: 500; }
.src__field { font-size: 0.86rem; color: var(--ink-2); line-height: 1.35; }

.join__link {
  width: clamp(28px, 5vw, 64px); height: 2px; align-self: center;
  background: linear-gradient(90deg, var(--line-2), var(--c-azure));
  position: relative;
}
.join__link::after {
  content: "→"; position: absolute; right: -4px; top: -0.72em; color: var(--c-azure); font-size: 1rem;
}

.canonical {
  margin: 0; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--sh); overflow: hidden;
}
.canonical__cap {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfe, #f5f8fd);
}
.canonical__badge {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500; color: #fff;
  background: var(--grad); padding: 0.24em 0.6em; border-radius: var(--pill);
}
.canonical__id { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); }
.canonical__facts { margin: 0; padding: 0.4rem 1rem 0.8rem; }
.canonical__facts > div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.6rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--line);
}
.canonical__facts > div:last-child { border-bottom: 0; }
.canonical__facts dt { color: var(--ink-3); font-size: 0.86rem; }
.canonical__facts dd { margin: 0; font-size: 0.9rem; color: var(--ink); }
.canonical__facts dd b { color: var(--exp); }
.canonical__facts dd.unknown { color: var(--ink-3); font-style: italic; }
.prov { font-family: var(--mono); font-size: 0.7rem; color: var(--road); display: block; font-style: normal; margin-top: 1px; }
.health--warn { color: var(--exp); font-family: var(--mono); font-size: 0.78rem; }

.fragment__coda { margin-top: 0.5rem; }

@media (max-width: 860px) {
  .join { grid-template-columns: 1fr; gap: 1.4rem; }
  .join__link { width: 2px; height: 34px; justify-self: center; background: linear-gradient(180deg, var(--line-2), var(--c-azure)); }
  .join__link::after { content: "↓"; right: -0.35em; top: auto; bottom: -6px; }
}
@media (max-width: 460px) { .join__sources { grid-template-columns: 1fr; } }

/* =========================================================================
   LIFECYCLE — the one dark console band
   ========================================================================= */
.lifecycle {
  background:
    radial-gradient(70% 60% at 82% 0%, rgba(93, 112, 232, 0.28), transparent 60%),
    radial-gradient(60% 50% at 5% 100%, rgba(53, 197, 234, 0.14), transparent 55%),
    var(--night);
  color: var(--on-night);
}
.lifecycle .section__head { max-width: 46rem; }

.contract {
  list-style: none; margin: 0 0 clamp(2.4rem, 5vw, 3.6rem); padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--night-line);
  border: 1px solid var(--night-line); border-radius: var(--r);
  overflow: hidden;
}
.contract__step {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--night);
  padding: 1.35rem 1.2rem 1.5rem;
  display: flex; gap: 0.9rem; min-height: 148px;
}
.contract__n {
  font-family: var(--mono); font-size: 0.78rem; color: var(--on-night-2);
  font-weight: 500; padding-top: 0.15rem;
}
.contract__step b { font-weight: 620; font-size: 1.05rem; color: var(--on-night); letter-spacing: -0.01em; }
.contract__step p { margin: 0.35rem 0 0.7rem; font-size: 0.9rem; line-height: 1.45; color: var(--on-night-2); }
.contract__step code {
  font-family: var(--mono); font-size: 0.74rem; color: var(--c-cyan);
  background: rgba(53, 197, 234, 0.1); padding: 0.2em 0.55em; border-radius: 6px;
  align-self: flex-start;
}
.contract__step--gate {
  background: linear-gradient(180deg, rgba(93, 112, 232, 0.2), rgba(131, 137, 247, 0.06)), var(--night-2);
  box-shadow: inset 0 0 0 1px rgba(131, 137, 247, 0.34);
}
.contract__step--gate .contract__n { color: var(--c-violet); }
.contract__step--gate code { color: #cdd3ff; background: rgba(131, 137, 247, 0.18); }

.principles {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.principle {
  margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.32rem); font-weight: 600;
  line-height: 1.18; letter-spacing: -0.02em; color: var(--on-night);
  padding-top: 1.1rem;
  border-top: 2px solid transparent;
  border-image: var(--grad) 1;
}

@media (max-width: 900px) {
  .contract { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .contract { grid-template-columns: 1fr; }
  .contract__step { min-height: 0; }
  .principles { grid-template-columns: 1fr; gap: 1rem; }
}

/* =========================================================================
   LEDGER — honesty board
   ========================================================================= */
.board {
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--sh-sm); background: var(--surface);
}
.board__row {
  display: grid; grid-template-columns: 15rem 9rem 1fr;
  gap: 1.2rem; align-items: baseline;
  padding: 1.05rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.board__row:last-child { border-bottom: 0; }
.board__row--head {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-3);
  background: linear-gradient(180deg, #fbfcfe, #f4f7fc);
  padding-block: 0.7rem;
}
.board__row:not(.board__row--head):hover { background: rgba(46, 139, 240, 0.035); }
.board__cap { font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.board__note { color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }

@media (max-width: 780px) {
  .board__row { grid-template-columns: 1fr auto; gap: 0.4rem 1rem; padding: 1rem 1.05rem; }
  .board__row--head { display: none; }
  .board__cap { grid-column: 1; }
  .board__lvl { grid-column: 2; grid-row: 1; text-align: right; }
  .board__note { grid-column: 1 / -1; }
}

/* =========================================================================
   STACK — the ops strata
   ========================================================================= */
.strata { display: grid; gap: 0.7rem; }
.stratum {
  position: relative;
  display: grid; grid-template-columns: 12rem 1fr auto; align-items: center;
  gap: 1.4rem;
  padding: 1.3rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.stratum:hover { transform: translateX(6px); }
.stratum__k { font-weight: 680; font-size: 1.22rem; letter-spacing: -0.02em; }
.stratum__out { color: var(--ink-2); font-size: 0.96rem; line-height: 1.4; }
.stratum__role { color: var(--ink-3); font-size: 0.86rem; font-family: var(--mono); text-align: right; max-width: 20rem; line-height: 1.4; }
.stratum--lead {
  background:
    linear-gradient(100deg, rgba(53, 197, 234, 0.1), rgba(131, 137, 247, 0.1)),
    var(--surface);
  border-color: transparent;
  box-shadow: var(--sh), inset 0 0 0 1.5px rgba(46, 139, 240, 0.3);
}
.stratum--lead .stratum__k { color: var(--brand-deep); }
.stratum--lead .stratum__role { color: var(--ink-2); }
.stratum__badge {
  position: absolute; top: -0.7rem; left: 1.5rem;
  font-family: var(--mono); font-size: 0.66rem; font-weight: 500; color: #fff;
  background: var(--grad); padding: 0.28em 0.7em; border-radius: var(--pill);
  box-shadow: var(--sh-sm);
}
@media (max-width: 820px) {
  .stratum { grid-template-columns: 1fr; gap: 0.45rem; }
  .stratum__role { text-align: left; max-width: none; }
  .stratum:hover { transform: none; }
}

/* =========================================================================
   REVIEW — work order
   ========================================================================= */
.review { background: linear-gradient(180deg, var(--paper), var(--paper-2)); border-block: 1px solid var(--line); }
.workorder {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.wo-col {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem 1.5rem 1.7rem; box-shadow: var(--sh-sm);
}
.wo-col--mid { box-shadow: var(--sh); border-color: var(--line-2); }
.wo-col__h {
  margin: 0 0 1rem; font-size: 0.82rem; font-family: var(--mono); font-weight: 500;
  color: var(--ink-3); letter-spacing: 0.02em;
  padding-bottom: 0.8rem; border-bottom: 1px solid var(--line);
}
.wo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.wo-list li {
  position: relative; padding-left: 1.5rem;
  font-size: 0.96rem; line-height: 1.45; color: var(--ink);
}
.wo-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad);
}
.wo-list--muted li { color: var(--ink-2); }
.wo-list--muted li::before { background: var(--line-2); }
@media (max-width: 860px) { .workorder { grid-template-columns: 1fr; } }

/* =========================================================================
   FOUNDER
   ========================================================================= */
.founder__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.whynow {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.7rem 1.8rem; box-shadow: var(--sh-sm);
}
.whynow__h { margin: 0 0 1.1rem; font-size: 1.02rem; font-weight: 640; }
.whynow__list { list-style: none; margin: 0 0 1.3rem; padding: 0; display: grid; gap: 0.9rem; }
.whynow__list li {
  position: relative; padding-left: 1.4rem;
  font-size: 0.95rem; line-height: 1.48; color: var(--ink-2);
}
.whynow__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 2px; background: var(--grad); border-radius: 2px;
}
.whynow__coda {
  margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-size: 0.92rem; line-height: 1.5; color: var(--ink-3); font-style: italic;
}
@media (max-width: 820px) { .founder__grid { grid-template-columns: 1fr; } }

/* =========================================================================
   CTA close
   ========================================================================= */
.cta {
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% -10%, rgba(46, 139, 240, 0.12), transparent 60%),
    var(--paper);
}
.cta__inner { max-width: 42rem; margin-inline: auto; }
.cta__mark { width: 72px; height: 72px; margin: 0 auto 1.5rem; filter: drop-shadow(0 10px 26px rgba(46, 139, 240, 0.28)); }
.cta__h { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 760; letter-spacing: -0.03em; margin: 0 0 1rem; }
.cta__sub { font-size: 1.1rem; line-height: 1.55; color: var(--ink-2); margin: 0 auto 2rem; max-width: 34rem; }
.signup {
  display: flex; gap: 0.6rem; max-width: 30rem; margin: 0 auto 1rem;
}
.signup__input {
  flex: 1; min-width: 0;
  font-family: var(--font); font-size: 1rem; color: var(--ink);
  padding: 0.82em 1.1em; border: 1px solid var(--line-2); border-radius: var(--pill);
  background: var(--surface); box-shadow: var(--sh-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.signup__input::placeholder { color: var(--ink-3); }
.signup__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(26, 99, 214, 0.14); }
.signup__input.is-invalid { border-color: #d1495b; box-shadow: 0 0 0 4px rgba(209, 73, 91, 0.13); }
.signup__note { font-size: 0.86rem; color: var(--ink-3); margin: 0; }
.signup__note.is-ok { color: var(--live); }
@media (max-width: 480px) { .signup { flex-direction: column; } .signup .btn { justify-content: center; } }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--ink); color: #c3cbe4; padding: clamp(2.6rem, 5vw, 3.6rem) 0 2.2rem; }
.site-footer__grid {
  display: flex; flex-wrap: wrap; gap: 1.6rem 3rem; align-items: center;
  justify-content: space-between;
  padding-bottom: 1.8rem; border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.site-footer .brand__word { color: #fff; }
.site-footer__tag { margin: 0.6rem 0 0; font-size: 0.92rem; color: #9aa4c6; max-width: 22rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; font-size: 0.92rem; }
.site-footer__nav a { color: #c3cbe4; transition: color 0.2s ease; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__fine {
  padding-top: 1.6rem;
  display: grid; gap: 0.5rem;
  font-size: 0.78rem; color: #7883a8; line-height: 1.5;
}

/* =========================================================================
   Scroll reveal — content is visible by default; JS adds the entrance.
   ========================================================================= */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal-stagger > * { opacity: 0; transform: translateY(14px); }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.06s; }
.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.12s; }
.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.18s; }
.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.24s; }
.js .reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .loop__cycle, .stage--gate.is-waiting .stage__gate-wait { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
