/* ============================================================
   base.css — Dark Keynote: reset + utility & component classes
   Tokens live in tokens/*.css (imported before this file via styles.css)
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(0,198,255,.30); color: #fff; }

/* persistent ambient field behind everything */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.ambient::before, .ambient::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: .55;
}
.ambient::before {
  width: 70vw; height: 70vw; left: -20vw; top: -25vw;
  background: radial-gradient(circle at 30% 30%, rgba(38,150,255,.30), transparent 60%);
}
.ambient::after {
  width: 60vw; height: 60vw; right: -18vw; bottom: -10vw;
  background: radial-gradient(circle at 60% 60%, rgba(102,36,250,.22), transparent 60%);
}

main { position: relative; z-index: 1; }

/* ============================================================
   Utilities
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.wrap-wide { max-width: 1480px; }

.grad-text {
  background: var(--grad-headline-rich);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.grad-section {
  background: var(--grad-section);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-stat {
  background: var(--grad-stat);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 9px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--surface-2); backdrop-filter: blur(20px);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad-cta);
  box-shadow: 0 0 12px rgba(0,198,255,.8);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -.02em; }

.section-title {
  font-size: clamp(38px, 6.2vw, 92px);
  font-weight: 600; line-height: 1.0; letter-spacing: -.025em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(18px, 2.1vw, 27px);
  line-height: 1.4; color: var(--text-muted); font-weight: 400;
  max-width: 60ch; text-wrap: pretty;
}

/* ============================================================
   Reveal animations
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 1.05s cubic-bezier(.16,.84,.34,1),
              transform 1.05s cubic-bezier(.16,.84,.34,1);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: translateY(38px) scale(.965); }
[data-reveal="left"]  { transform: translateX(-46px); }
[data-reveal="right"] { transform: translateX(46px); }
[data-reveal].in {
  opacity: 1; transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero h1 .line span, .hero-sub, .hero-actions, .hero .scroll-cue {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease, padding .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5,16,30,.72);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-faint);
  padding-top: 14px; padding-bottom: 14px;
}
.nav .brand {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  letter-spacing: -.01em; display: flex; align-items: center; gap: 11px;
}
.nav .brand .mark {
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--grad-cta); display: grid; place-items: center;
  box-shadow: 0 0 22px rgba(0,198,255,.45);
  font-size: 15px; color: #021018; font-weight: 700;
}
.nav .nav-links { display: flex; gap: 30px; }
.nav .nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  color: var(--text-subtle); text-decoration: none; transition: color .25s;
}
.nav .nav-links a:hover { color: var(--text); }
.nav .nav-cta {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: #fff; text-decoration: none;
  padding: 11px 22px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface-1);
  backdrop-filter: blur(20px); transition: transform .25s, background .25s;
}
.nav .nav-cta:hover { transform: translateY(-1px); background: var(--surface-1); }
@media (max-width: 820px){ .nav .nav-links { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh; position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 80px;
  overflow: hidden;
}
.hero-orb {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(74vw, 760px); aspect-ratio: 1;
  right: -8vw; top: 50%; transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, rgba(71,228,255,.9), rgba(37,150,255,.5) 32%, rgba(102,36,250,.42) 62%, transparent 74%);
  filter: blur(8px);
  opacity: .9;
  box-shadow: 0 0 200px rgba(0,198,255,.35);
}
.hero-orb::after{
  content:""; position:absolute; inset:14%;
  border-radius:50%;
  background: radial-gradient(circle at 60% 30%, rgba(255,255,255,.55), transparent 45%);
  mix-blend-mode: screen;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero h1 {
  font-size: clamp(44px, 8.4vw, 124px);
  line-height: .98; letter-spacing: -.035em;
  margin-top: 28px; max-width: 16ch; text-wrap: balance;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span {
  display: inline-block;
  animation: lineUp 1.1s cubic-bezier(.16,.86,.3,1) both;
}
.hero h1 .line:nth-child(1) span { animation-delay: .12s; }
.hero h1 .line:nth-child(2) span { animation-delay: .20s; }
.hero h1 .line:nth-child(3) span { animation-delay: .28s; }
@keyframes lineUp { from { transform: translateY(110%); } }
.hero-sub {
  margin-top: 34px; font-size: clamp(18px, 2vw, 25px);
  line-height: 1.42; color: var(--text-muted); max-width: 52ch; font-weight: 400;
  animation: fadeUp 1s ease .62s both;
}
.hero-actions {
  margin-top: 44px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  animation: fadeUp 1s ease .8s both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }

.btn-round {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; color: #021018; font-family: var(--font-display);
  font-weight: 600; font-size: 16px;
}
.btn-round .circle {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--grad-cta); display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(0,150,255,.4);
  transition: transform .3s cubic-bezier(.16,.84,.34,1);
}
.btn-round .circle svg { width: 22px; height: 22px; }
.btn-round span.lbl { color: #fff; }
.btn-round:hover .circle { transform: scale(1.08); }

.btn-text {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  color: var(--text-muted); text-decoration: none; display: inline-flex; gap: 8px; align-items: center;
  transition: color .25s;
}
.btn-text:hover { color: #fff; }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-faint);
  animation: cueIn 1s ease 1.2s both;
}
@keyframes cueIn { from { opacity: 0; } }
.hero .scroll-cue { animation: cueIn 1s ease 1.2s both; }
.scroll-cue .mouse {
  width: 24px; height: 38px; border: 1.5px solid var(--text-faint); border-radius: 14px;
  position: relative;
}
.scroll-cue .mouse::after{
  content:""; position:absolute; left:50%; top:7px; width:4px; height:7px; border-radius:3px;
  background: var(--cyan); transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0%{opacity:0; transform:translate(-50%,0);} 30%{opacity:1;} 70%{opacity:1;} 100%{opacity:0; transform:translate(-50%,12px);} }

/* ============================================================
   Generic section shell
   ============================================================ */
.section { position: relative; padding: clamp(110px, 16vh, 200px) 0; }
.section-head { max-width: 70ch; }
.act-label {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--purple-soft);
  margin-bottom: 22px; display: flex; align-items: center; gap: 14px;
}
.act-label::before {
  content: ""; width: 40px; height: 1px; background: linear-gradient(90deg, var(--purple-soft), transparent);
}

/* ============================================================
   PROBLEM — tangle scene
   ============================================================ */
.tangle-scene { height: 280vh; position: relative; }
.tangle-sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center; overflow: hidden;
}
.tangle-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; width: 100%;
}
.tangle-copy h2 { font-size: clamp(34px, 5vw, 76px); }
.tangle-copy .lede { margin-top: 26px; }

.tangle-viz { position: relative; aspect-ratio: 1/.92; }
.tangle-viz svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.node {
  position: absolute; transform: translate(-50%,-50%);
  padding: 9px 15px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  font-family: var(--font-display); font-weight: 500; font-size: 13px; white-space: nowrap;
  color: var(--text-muted); backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
.node.warn { color: #fff; border-color: rgba(255,90,90,.4); }
.edge { stroke: rgba(255,255,255,.16); stroke-width: 1.4; fill: none; stroke-dasharray: 6 6; }

@media (max-width: 880px){
  .tangle-grid { grid-template-columns: 1fr; gap: 40px; }
  .tangle-viz { max-width: 460px; margin: 0 auto; width: 100%; }
}

/* ============================================================
   MANIFESTO — pinned word flip
   ============================================================ */
.manifesto-scene { height: 240vh; position: relative; }
.manifesto-sticky {
  position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden;
}
.manifesto-inner { text-align: center; padding-inline: var(--pad); max-width: 1100px; }
.manifesto-kicker {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(15px,1.6vw,19px);
  letter-spacing: .04em; color: var(--text-subtle); margin-bottom: 30px;
}
.manifesto-line {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -.03em;
  text-wrap: balance;
}
.manifesto-strike { position: relative; color: var(--text-faint); white-space: nowrap; }
.manifesto-strike::after {
  content: ""; position: absolute; left: -2%; top: 54%; height: 4px; width: 0;
  background: var(--danger); border-radius: 3px;
  box-shadow: 0 0 18px rgba(255,90,90,.6);
  transition: width .6s cubic-bezier(.5,0,.2,1);
}
.manifesto-scene.struck .manifesto-strike::after { width: 104%; }
.manifesto-reveal {
  display: block; margin-top: 18px;
  opacity: 0; transform: translateY(40px) scale(.97); filter: blur(8px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.16,.84,.34,1), filter .9s ease;
}
.manifesto-scene.shown .manifesto-reveal { opacity: 1; transform: none; filter: none; }

/* ============================================================
   PROOF — workspace app mock
   ============================================================ */
.proof-intro { text-align: center; }
.proof-intro .section-title { margin-top: 22px; }
.proof-intro .lede { margin: 26px auto 0; }

.proof-scene { height: 460vh; position: relative; }
.proof-sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 86px var(--pad) 40px; gap: 22px;
}
.proof-stepbar {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 500;
}
.proof-stepbar .pill {
  padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-faint); color: var(--text-faint);
  background: var(--surface-3); transition: all .4s ease; white-space: nowrap;
}
.proof-stepbar .pill.active {
  color: #fff; border-color: rgba(0,198,255,.5);
  background: rgba(0,150,255,.14); box-shadow: 0 0 24px rgba(0,150,255,.25);
}
.proof-stepbar .pill.done { color: var(--cyan-2); border-color: rgba(0,198,255,.25); }

/* The app frame */
.app {
  width: 100%; max-width: 1320px; height: min(74svh, 760px);
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(12,22,38,.92), rgba(7,13,24,.96));
  backdrop-filter: blur(30px);
  box-shadow: 0 40px 120px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
  display: grid; grid-template-columns: 230px 1fr 268px;
  transform: perspective(2200px) rotateX(8deg) scale(.96);
  transform-origin: center top;
  transition: transform .2s linear;
  position: relative;
}
.app-topbar {
  position: absolute; top: 0; left: 0; right: 0; height: 42px; z-index: 5;
  display: flex; align-items: center; gap: 8px; padding: 0 16px;
  border-bottom: 1px solid var(--border-faint);
  background: rgba(8,15,27,.6);
}
.app-topbar .dots { display: flex; gap: 7px; }
.app-topbar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.app-topbar .dots i:nth-child(1){ background:#ff5f57; }
.app-topbar .dots i:nth-child(2){ background:#febc2e; }
.app-topbar .dots i:nth-child(3){ background:#28c840; }
.app-topbar .title {
  margin-left: 14px; font-family: var(--font-display); font-size: 13px; color: var(--text-subtle);
  display: flex; align-items: center; gap: 7px;
}

/* sidebar */
.app-side {
  border-right: 1px solid var(--border-faint); padding: 52px 14px 16px;
  display: flex; flex-direction: column; gap: 4px; overflow: hidden;
  background: rgba(6,12,22,.5);
}
.app-side .seg {
  display: flex; gap: 4px; padding: 4px; border-radius: 11px; margin-bottom: 10px;
  background: var(--surface-3); border: 1px solid var(--border-faint);
}
.app-side .seg button {
  flex: 1; font-family: var(--font-display); font-size: 11.5px; font-weight: 500;
  color: var(--text-subtle); background: transparent; border: 0; padding: 6px 0; border-radius: 8px;
  cursor: default;
}
.app-side .seg button.on { background: rgba(0,150,255,.18); color: #fff; }
.app-side .si {
  display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 8px;
  font-family: var(--font-display); font-size: 12px; color: var(--text-subtle);
}
.app-side .si .ic { width: 13px; height: 13px; opacity: .6; }
.app-side .si.muted { color: var(--text-faint); }
.app-side .grouplabel {
  font-family: var(--font-display); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); margin: 12px 0 4px 9px;
}

/* chat column */
.app-chat {
  position: relative; padding: 52px 26px 84px; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
}
.app-chat .stream { display: flex; flex-direction: column; gap: 15px; }
.chat-row { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.chat-row.show { opacity: 1; transform: none; }
.file-chip {
  align-self: flex-end; display: flex; flex-direction: column; gap: 8px;
  width: 150px; padding: 13px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  font-family: var(--font-display); font-size: 12px;
}
.file-chip .tag { font-size: 10px; color: var(--text-faint); border: 1px solid var(--border-faint); border-radius: 5px; padding: 2px 7px; align-self: flex-start; }
.bubble-user {
  align-self: flex-end; max-width: 64%; padding: 11px 17px; border-radius: 16px 16px 4px 16px;
  background: rgba(255,255,255,.09); border: 1px solid var(--border-faint);
  font-size: 14px; color: #fff; font-family: var(--font-text);
}
.assistant { max-width: 90%; }
.assistant .tool {
  font-family: var(--font-display); font-size: 12px; color: var(--text-faint);
  display: flex; align-items: center; gap: 8px; margin-bottom: 7px;
}
.assistant .tool::before { content:""; width:13px;height:13px;border-radius:4px; background: var(--grad-cta); opacity:.8; }
.assistant p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.assistant p b, .assistant p strong { color: #fff; font-weight: 600; }

/* media plan table */
.mp-table {
  margin-top: 4px; width: 100%; border-collapse: collapse; font-family: var(--font-display);
}
.mp-table th {
  text-align: left; font-size: 11px; font-weight: 600; color: var(--text-subtle);
  padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border-soft); white-space: nowrap;
}
.mp-table th.num, .mp-table td.num { text-align: right; padding-right: 0; }
.mp-table td {
  font-size: 12.5px; color: var(--text-muted); padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--border-faint);
}
.mp-table tr { opacity: 0; transform: translateX(-10px); transition: opacity .45s ease, transform .45s ease; }
.mp-table tr.show { opacity: 1; transform: none; }
.mp-table tr.total td { color: #fff; font-weight: 600; font-size: 13px; border-bottom: 0; }
.mp-table .grp { color: #fff; font-weight: 500; }

.export-card {
  margin-top: 14px; display: flex; align-items: center; gap: 13px;
  padding: 13px 15px; border-radius: 14px; border: 1px solid var(--border-soft);
  background: var(--surface-2); max-width: 460px;
}
.export-card .xi {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(43,253,204,.14); color: var(--green); font-size: 11px; font-weight: 700; font-family: var(--font-display);
}
.export-card .meta { font-family: var(--font-display); }
.export-card .meta .n { font-size: 13px; color: #fff; font-weight: 500; }
.export-card .meta .s { font-size: 11px; color: var(--text-faint); }
.export-card .drive {
  margin-left: auto; font-family: var(--font-display); font-size: 12px; font-weight: 600; color: #fff;
  padding: 8px 14px; border-radius: 9px; background: rgba(255,255,255,.08); border: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 8px;
}

.app-chat .composer {
  position: absolute; left: 26px; right: 26px; bottom: 18px;
  height: 50px; border-radius: 14px; border: 1px solid var(--border-soft);
  background: var(--surface-2); display: flex; align-items: center; padding: 0 16px;
  font-family: var(--font-display); font-size: 13px; color: var(--text-faint);
}
.app-chat .composer .send { margin-left: auto; font-size: 12px; color: var(--text-subtle); }

/* right progress panel */
.app-right {
  border-left: 1px solid var(--border-faint); padding: 52px 16px 16px;
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  background: rgba(6,12,22,.5);
}
.panel {
  border-radius: 14px; border: 1px solid var(--border-faint);
  background: var(--surface-3); padding: 14px;
}
.panel h4 {
  font-family: var(--font-display); font-size: 12px; font-weight: 600; color: #fff;
  margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between;
}
.task {
  display: flex; gap: 10px; align-items: flex-start; padding: 6px 0;
  font-family: var(--font-display); font-size: 11.5px; color: var(--text-subtle); line-height: 1.3;
}
.task .check {
  flex: none; width: 16px; height: 16px; border-radius: 50%; margin-top: 1px;
  border: 1.5px solid var(--border-soft); display: grid; place-items: center;
  transition: all .4s ease; font-size: 9px;
}
.task.done .check { background: var(--grad-cta-46); border-color: transparent; color: #021018; }
.task.done .lbl { color: var(--text-faint); text-decoration: line-through; }
.task .num {
  flex: none; width: 16px; height: 16px; border-radius: 50%; margin-top: 1px;
  border: 1.5px solid var(--border-soft); display: grid; place-items: center;
  font-size: 9px; color: var(--text-subtle);
}
.task.active .num { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 14px rgba(0,198,255,.35); }
.panel .conn {
  display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--border-faint);
  font-family: var(--font-display); font-size: 12px; color: #fff;
}
.panel .conn .ci { width: 20px; height: 20px; border-radius: 6px; background: var(--grad-purple); display:grid; place-items:center; font-size:11px; font-weight:700; color:#fff; }
.panel .file-row {
  display: flex; align-items: center; gap: 9px; padding: 6px 0;
  font-family: var(--font-display); font-size: 11.5px; color: var(--text-subtle);
}
.panel .file-row .fi { width: 14px; height: 14px; opacity: .6; }

@media (max-width: 1080px){
  .app { grid-template-columns: 1fr 250px; }
  .app-side { display: none; }
}
@media (max-width: 760px){
  .app { grid-template-columns: 1fr; height: min(80svh, 680px); }
  .app-right { display: none; }
  .proof-scene { height: 520vh; }
}

/* ============================================================
   STAT strip
   ============================================================ */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.stat-card {
  border-radius: var(--radius-card); border: 1px solid var(--border-soft);
  background: var(--surface-3); padding: 38px 34px;
}
.stat-card .num {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(52px, 7vw, 104px);
  line-height: .95; letter-spacing: -.04em;
}
.stat-card .num small { font-size: .42em; font-weight: 600; }
.stat-card .cap { margin-top: 14px; color: var(--text-muted); font-size: 16px; line-height: 1.4; }
@media (max-width: 820px){ .stat-strip { grid-template-columns: 1fr; } }

/* ============================================================
   VISION — capability cards
   ============================================================ */
.vision-grid {
  margin-top: 70px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px;
}
.cap {
  border-radius: var(--radius-card); border: 1px solid var(--border-soft);
  background: var(--surface-3); padding: 34px;
  position: relative; overflow: hidden;
  transition: transform .5s cubic-bezier(.16,.84,.34,1), border-color .5s, background .5s;
}
.cap:hover { transform: translateY(-6px); border-color: rgba(0,198,255,.3); background: var(--surface-2); }
.cap::after {
  content:""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  border-radius: 50%; background: radial-gradient(circle, var(--glow-purple), transparent 70%);
  opacity: 0; transition: opacity .5s;
}
.cap:hover::after { opacity: 1; }
.cap.span-3 { grid-column: span 3; }
.cap.span-2 { grid-column: span 2; }
.cap.span-6 { grid-column: span 6; }
.cap .cap-ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-1); border: 1px solid var(--border-soft); margin-bottom: 24px;
}
.cap .cap-ic svg { width: 22px; height: 22px; }
.cap h3 { font-size: clamp(21px, 2.2vw, 28px); margin-bottom: 12px; font-weight: 600; }
.cap p { color: var(--text-muted); font-size: 15.5px; line-height: 1.5; }
.cap .tag-row { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.cap .tag {
  font-family: var(--font-display); font-size: 11.5px; font-weight: 500; color: var(--purple-soft);
  padding: 5px 11px; border-radius: var(--radius-pill); border: 1px solid rgba(191,128,255,.3);
  white-space: nowrap;
}
@media (max-width: 980px){
  .vision-grid { grid-template-columns: repeat(2, 1fr); }
  .cap.span-3, .cap.span-2, .cap.span-6 { grid-column: span 2; }
}
@media (max-width: 620px){
  .vision-grid { grid-template-columns: 1fr; }
  .cap.span-3, .cap.span-2, .cap.span-6 { grid-column: span 1; }
}

/* ============================================================
   ARCHITECTURE / phases
   ============================================================ */
.arch {
  margin-top: 64px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.arch-core {
  position: relative; border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid var(--border-soft); background: linear-gradient(160deg, rgba(60,21,129,.25), rgba(7,13,24,.5));
  padding: 44px; min-height: 420px;
}
.core-ring {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%);
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(71,228,255,.9), rgba(102,36,250,.5) 55%, transparent 72%);
  filter: blur(2px); box-shadow: 0 0 90px rgba(0,150,255,.4);
}
.core-ring::after{ content:"Σ"; position:absolute; inset:0; display:grid; place-items:center; font-family:var(--font-display); font-size:60px; font-weight:600; color:#fff; opacity:.9; }
.orbit { position: absolute; inset: 0; }
.orbit .sat {
  position: absolute; padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--surface-1); border: 1px solid var(--border-soft); backdrop-filter: blur(10px);
  font-family: var(--font-display); font-size: 12px; font-weight: 500; color: #fff; white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
.phase-list { display: flex; flex-direction: column; gap: 16px; }
.phase {
  display: flex; gap: 20px; padding: 22px; border-radius: 18px;
  border: 1px solid var(--border-faint); background: var(--surface-3);
  transition: border-color .4s, background .4s;
}
.phase:hover { border-color: rgba(0,198,255,.25); background: var(--surface-2); }
.phase .pn {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 17px; color: #021018;
  background: var(--grad-cta-46);
}
.phase .pc h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.phase .pc p { color: var(--text-muted); font-size: 14.5px; line-height: 1.45; }
@media (max-width: 920px){ .arch { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================================
   CTA / checklist finale
   ============================================================ */
.cta-scene {
  position: relative; padding: clamp(120px, 18vh, 220px) 0 100px;
  text-align: center; overflow: hidden;
}
.cta-glow {
  position: absolute; left: 50%; top: 30%; transform: translate(-50%,-50%);
  width: 80vw; max-width: 900px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,150,255,.22), transparent 62%);
  filter: blur(40px); pointer-events: none;
}
.cta-scene .section-title { position: relative; }
.checklist {
  margin: 64px auto 0; max-width: 920px; text-align: left;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.check-item {
  display: flex; gap: 18px; align-items: flex-start; padding: 26px;
  border-radius: 20px; border: 1px solid var(--border-soft); background: var(--surface-3);
  position: relative; overflow: hidden;
  transition: transform .5s cubic-bezier(.16,.84,.34,1), border-color .5s, background .5s;
}
.check-item:hover { transform: translateY(-4px); border-color: rgba(0,198,255,.3); background: var(--surface-2); }
.check-item .cb {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad-cta); box-shadow: 0 0 22px rgba(0,198,255,.35);
}
.check-item .cb svg { width: 16px; height: 16px; }
.check-item h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 5px; }
.check-item p { color: var(--text-muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 760px){ .checklist { grid-template-columns: 1fr; } }

.cta-final { margin-top: 70px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.cta-final .big {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 4vw, 52px);
  letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; max-width: 18ch;
}

/* footer */
.foot {
  border-top: 1px solid var(--border-faint); padding: 48px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.foot .brand { font-family: var(--font-display); font-weight: 600; font-size: 16px; display:flex; align-items:center; gap:11px; }
.foot .brand .mark { width: 26px; height: 26px; border-radius: 8px; background: var(--grad-cta); }
.foot small { color: var(--text-faint); font-size: 13px; font-family: var(--font-display); }

/* progress scrubber */
.scrubber {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.scrubber a {
  width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--text-faint);
  display: block; transition: all .35s; position: relative;
}
.scrubber a.on { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 14px rgba(0,198,255,.6); transform: scale(1.25); }
.scrubber a::after {
  content: attr(data-l); position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 11px; color: var(--text-subtle); white-space: nowrap;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.scrubber a:hover::after { opacity: 1; }
@media (max-width: 980px){ .scrubber { display: none; } }

/* ============================================================
   EXPERIMENT FRAME (after hero)
   ============================================================ */
.frame-grid {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.frame-card {
  border-radius: var(--radius-card); border: 1px solid var(--border-soft);
  background: var(--surface-3); padding: 36px 32px 38px;
  position: relative; overflow: hidden;
  transition: transform .5s cubic-bezier(.16,.84,.34,1), border-color .5s, background .5s;
}
.frame-card:hover { transform: translateY(-6px); border-color: rgba(0,198,255,.3); background: var(--surface-2); }
.frame-card .fc-num {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--cyan-2); letter-spacing: .04em; margin-bottom: 26px;
  display: inline-flex; align-items: center; gap: 10px;
}
.frame-card .fc-num::before { content:""; width: 26px; height: 1px; background: var(--cyan-2); opacity: .6; }
.frame-card h3 { font-size: clamp(22px, 2.3vw, 30px); margin-bottom: 14px; font-weight: 600; }
.frame-card p { color: var(--text-muted); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 880px){ .frame-grid { grid-template-columns: 1fr; } }

.frame-note {
  margin-top: 40px; padding: 26px 30px; border-radius: 20px;
  border: 1px solid rgba(191,128,255,.28); background: rgba(102,36,250,.06);
  font-family: var(--font-display); font-size: clamp(17px, 1.9vw, 22px); font-weight: 500;
  line-height: 1.4; color: #fff; text-wrap: pretty; max-width: 78ch;
}
.frame-note b { background: var(--grad-section); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================================================
   RISKS & MITIGATIONS (penultimate)
   ============================================================ */
.risk-grid {
  margin-top: 64px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.risk-card {
  border-radius: 22px; border: 1px solid var(--border-soft); background: var(--surface-3);
  padding: 0; overflow: hidden;
  transition: transform .5s cubic-bezier(.16,.84,.34,1), border-color .5s;
  display: flex; flex-direction: column;
}
.risk-card:hover { transform: translateY(-5px); border-color: rgba(0,198,255,.28); }
.risk-head { padding: 26px 28px 22px; border-bottom: 1px solid var(--border-faint); }
.risk-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: #FF8585; margin-bottom: 14px;
}
.risk-tag .rd { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 12px rgba(255,90,90,.7); }
.risk-card h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }
.risk-card .risk-desc { color: var(--text-muted); font-size: 14.5px; line-height: 1.45; }
.risk-fix {
  padding: 22px 28px 26px; background: rgba(0,150,255,.05);
  display: flex; gap: 14px; align-items: flex-start; flex: 1;
}
.risk-fix .fx-ic {
  flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--grad-cta); margin-top: 2px;
}
.risk-fix .fx-ic svg { width: 15px; height: 15px; }
.risk-fix .fx-body .fx-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan-2); margin-bottom: 6px;
}
.risk-fix .fx-body p { color: var(--text); font-size: 14.5px; line-height: 1.5; }
.risk-fix .fx-body p b { font-weight: 600; color: #fff; }
@media (max-width: 880px){ .risk-grid { grid-template-columns: 1fr; } }

/* ============================================================
   DIVE — final slide
   ============================================================ */
.dive {
  position: relative; min-height: 92svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: clamp(110px, 16vh, 200px) var(--pad); overflow: hidden;
}
.dive-orb {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(90vw, 1000px); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(0,198,255,.22), rgba(102,36,250,.12) 45%, transparent 66%);
  filter: blur(30px);
}
.dive-inner { position: relative; z-index: 2; }
.dive-kicker {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2.4vw, 28px);
  color: var(--text-muted); margin-bottom: 22px;
}
.dive h2 {
  font-size: clamp(54px, 11vw, 160px); line-height: .94; letter-spacing: -.04em;
  font-weight: 600; text-wrap: balance;
}
.dive-sub {
  margin: 36px auto 0; max-width: 56ch; font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45; color: var(--text-muted);
}
.dive-actions { margin-top: 50px; display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   SEPARATE EXPERIMENT FROM SCALING
   ============================================================ */
.split {
  margin-top: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch;
}
.split-col {
  border-radius: var(--radius-card); border: 1px solid var(--border-soft);
  padding: 38px 36px 40px; position: relative; overflow: hidden;
}
.split-col.exp {
  background: linear-gradient(165deg, rgba(0,150,255,.10), rgba(7,13,24,.4));
  border-color: rgba(0,198,255,.34);
}
.split-col.scale {
  background: var(--surface-3);
}
.split-col .sc-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 18px;
}
.split-col.exp .sc-tag { color: var(--cyan-2); }
.split-col.scale .sc-tag { color: var(--purple-soft); }
.split-col .sc-tag .scd { width: 8px; height: 8px; border-radius: 50%; }
.split-col.exp .sc-tag .scd { background: var(--cyan); box-shadow: 0 0 12px rgba(0,198,255,.8); }
.split-col.scale .sc-tag .scd { background: var(--purple); }
.split-col h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; margin-bottom: 8px; letter-spacing: -.02em; }
.split-col .sc-goal { font-family: var(--font-display); font-size: 15px; color: var(--text-muted); margin-bottom: 26px; line-height: 1.4; }
.split-col .sc-goal b { color: #fff; font-weight: 600; }
.split-list { display: flex; flex-direction: column; gap: 14px; }
.split-list .sl {
  display: flex; gap: 13px; align-items: flex-start;
  font-size: 15px; line-height: 1.45; color: var(--text);
}
.split-list .sl .sli {
  flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  margin-top: 1px;
}
.split-col.exp .sl .sli { background: var(--grad-cta); }
.split-col.scale .sl .sli { background: rgba(157,139,231,.18); border: 1px solid rgba(157,139,231,.4); }
.split-col.exp .sl .sli svg { width: 13px; height: 13px; }
.split-col.scale .sl .sli svg { width: 12px; height: 12px; }
.split-list .sl b { color: #fff; font-weight: 600; }
.split-list .sl span.muted { color: var(--text-subtle); }

.split-arrow {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 26px; gap: 14px; position: relative; z-index: 2;
}
.split-arrow .sa-line {
  writing-mode: vertical-rl; font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle);
}
.split-arrow .sa-circle {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-cta); box-shadow: 0 0 32px rgba(0,198,255,.4);
}
.split-arrow .sa-circle svg { width: 24px; height: 24px; }

.split-note {
  margin-top: 30px; padding: 26px 30px; border-radius: 20px;
  border: 1px solid rgba(0,198,255,.26); background: rgba(0,150,255,.06);
  font-family: var(--font-display); font-size: clamp(17px, 1.9vw, 22px); font-weight: 500;
  line-height: 1.42; color: #fff; text-wrap: pretty; max-width: 82ch;
}
.split-note b { background: var(--grad-headline-rich); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 920px){
  .split { grid-template-columns: 1fr; gap: 18px; }
  .split-arrow { flex-direction: row; padding: 4px 0; }
  .split-arrow .sa-line { writing-mode: horizontal-tb; }
  .split-arrow .sa-circle { transform: rotate(90deg); }
}

/* ============================================================
   CONDITIONAL "IF stage 1" tag — vision / architecture
   ============================================================ */
.cond-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  letter-spacing: .03em; color: var(--purple-soft);
  padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1px solid rgba(191,128,255,.32); background: rgba(102,36,250,.07);
  margin-bottom: 22px;
}
.cond-tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--purple-soft); box-shadow: 0 0 10px rgba(195,154,248,.55);
}

.phase-cond {
  display: inline-block; margin-left: 10px; vertical-align: middle;
  font-family: var(--font-display); font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--purple-soft);
  padding: 3px 9px; border-radius: var(--radius-pill);
  border: 1px solid rgba(191,128,255,.3); background: rgba(102,36,250,.07);
}
.phase-cond.now { color: var(--cyan-2); border-color: rgba(0,198,255,.32); background: rgba(0,150,255,.07); }

/* ============================================================
   STAGE-1 EXPERIMENT FRAME — in the "what I need" finale
   horizon · deliverable · success/kill · decision gate
   ============================================================ */
.stage-frame {
  margin: 64px auto 0; max-width: 980px; text-align: left;
  border-radius: var(--radius-card); border: 1px solid rgba(0,198,255,.28);
  background: linear-gradient(165deg, rgba(0,150,255,.08), rgba(7,13,24,.42));
  padding: 42px clamp(26px,4vw,48px) 38px; overflow: hidden;
}
.stage-frame .sf-head { margin-bottom: 28px; }
.stage-frame .sf-head .act-label { margin-bottom: 18px; color: var(--cyan-2); }
.stage-frame .sf-head .act-label::before { background: linear-gradient(90deg, var(--cyan-2), transparent); }
.stage-frame .sf-head h3 {
  font-size: clamp(23px, 2.7vw, 35px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em;
}
.sf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sf-cell {
  border-radius: 16px; border: 1px solid var(--border-faint); background: var(--surface-3);
  padding: 22px 22px 24px;
}
.sf-cell .sf-k {
  font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan-2); margin-bottom: 12px;
}
.sf-cell .sf-v {
  font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px); font-weight: 600;
  margin-bottom: 10px; letter-spacing: -.01em; line-height: 1.05;
}
.sf-cell p { color: var(--text-muted); font-size: 14px; line-height: 1.45; }

.sf-gate { margin-top: 26px; padding-top: 28px; border-top: 1px solid var(--border-faint); }
.sf-gate-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--purple-soft); margin-bottom: 16px;
}
.sf-branches { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sf-branches .branch {
  flex: 1; min-width: 150px; display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(16px, 1.7vw, 19px);
  border: 1px solid var(--border-soft); background: var(--surface-2);
}
.sf-branches .branch::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.sf-branches .branch.scale { border-color: rgba(0,198,255,.4); }
.sf-branches .branch.scale::before { background: var(--cyan); box-shadow: 0 0 12px rgba(0,198,255,.7); }
.sf-branches .branch.pause { border-color: rgba(191,128,255,.4); }
.sf-branches .branch.pause::before { background: var(--purple-soft); box-shadow: 0 0 12px rgba(195,154,248,.6); }
.sf-branches .branch.hand::before { background: var(--slate); }
.sf-gate-note { font-size: 15px; line-height: 1.5; color: var(--text-muted); max-width: 74ch; }
.sf-gate-note b { color: #fff; font-weight: 600; }

@media (max-width: 760px){
  .sf-grid { grid-template-columns: 1fr; }
  .sf-branches .branch { min-width: 100%; }
}
