/* Hero stage: particle Twin blade behind the headline */
.stage { position: relative; min-height: calc(100svh - 64px); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(60% 50% at 50% 28%, color-mix(in srgb, var(--ink) 6%, transparent), transparent 70%), var(--paper); }
#field { position: absolute; top: 0; left: 0; width: 100%; height: 58svh; }
.stage-copy { position: relative; z-index: 2; padding-top: 50svh; padding-bottom: 72px; width: 100%; }
@media (min-width: 861px) {
  .stage { justify-content: center; background: radial-gradient(45% 60% at 70% 50%, color-mix(in srgb, var(--ink) 6%, transparent), transparent 70%), var(--paper); }
  #field { height: 100%; }
  .stage-copy { padding-top: 0; padding-bottom: 0; }
  .stage-copy > * { max-width: 560px; }
  .stage-copy > .headline { max-width: none; font-size: clamp(64px, 6.4vw, 112px); }
}
.headline { font-size: clamp(42px, 11vw, 84px); line-height: .94; letter-spacing: -.055em; font-weight: 600; margin-bottom: 28px; }
.headline .line { display: block; overflow: hidden; padding-bottom: .08em; }
.headline .line > span { display: block; }
.headline em { font-style: normal; }
.js:not(.no-motion) .headline .line > span { transform: translateY(105%); }
.stage .lede { max-width: 500px; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); font: 500 12px var(--mono);
  color: var(--dim); letter-spacing: .14em; text-transform: uppercase; display: none; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue span { width: 1px; height: 36px; background: linear-gradient(var(--ink), transparent); animation: cue 2.4s var(--ease-move) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 861px) { .scroll-cue { display: flex; } }

/* Manifesto: words light up as you read */
.manifesto { padding: 96px 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .manifesto { padding: 160px 0; } }
.scrub-words { font-weight: 600; font-size: clamp(30px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -.04em; max-width: 1040px; }
.scrub-words .w { display: inline-block; white-space: pre; }

/* What's coming: pinned on desktop */
.how-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) {
  .how { min-height: 100svh; display: flex; align-items: center; padding: 64px 0; }
  .how .wrap { width: 100%; }
  .how-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}
.steps { list-style: none; display: grid; margin-top: 12px; counter-reset: s; }
.steps li { position: relative; padding: 18px 0 18px 48px; border-top: 1px solid var(--line); color: var(--dim); font-size: var(--fs-small);
  counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 18px; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center; font: 500 13px var(--mono); color: var(--dim); transition: all 300ms var(--ease-out); }
.steps li b { color: var(--ink); font-weight: 600; display: block; font-size: 24px; letter-spacing: -.03em; margin-bottom: 2px; }
.motion .steps li { opacity: .35; transition: opacity 300ms var(--ease-out); }
.motion .steps li.on { opacity: 1; }
.motion .steps li.on::before { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.soon { margin-top: 24px; font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--delta-text); }
.core { aspect-ratio: 1; width: 100%; max-width: 520px; margin: 0 auto; }
.core svg { width: 100%; height: 100%; }
.core circle, .core ellipse { fill: none; stroke: var(--line); stroke-width: 1; }
.core .lit { stroke: var(--delta); stroke-width: 1.5; }

/* Labs: a horizontal track on desktop, a stack on phones */
.hscroll { border-top: 1px solid var(--line); }
.hs-track { display: grid; gap: 16px; padding: 72px 16px; max-width: 1160px; margin: 0 auto; }
@media (min-width: 720px) { .hs-track { grid-template-columns: 1fr 1fr; padding: 96px 32px; } .hs-intro { grid-column: 1 / -1; } }
.hs-intro { margin-bottom: 16px; }
.hs-intro h2 { max-width: 520px; }
.hs-intro p { max-width: 420px; }
.panel { position: relative; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(6px); padding: 28px; display: flex; flex-direction: column; }
.lab-code { font: 600 clamp(56px, 8vw, 88px)/1 var(--sans); letter-spacing: -.06em; color: var(--ink); margin-bottom: 40px; }
.panel h3 { font-size: 22px; }
.panel p { color: var(--dim); font-size: var(--fs-small); }
.panel .topics { font: 13px/1.6 var(--mono); margin-top: 18px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font: 500 13px var(--mono); color: var(--dim); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--control); }
.status.on { color: var(--ink); }
.status.on::before { background: var(--delta); border-color: var(--delta); }
@media (min-width: 960px) {
  .motion .hscroll { height: 100svh; overflow: hidden; display: flex; align-items: center; }
  .motion .hs-track { display: flex; align-items: stretch; gap: 24px; max-width: none; margin: 0;
    padding: 0 12vw 0 max(32px, calc((100vw - 1160px) / 2 + 32px)); width: max-content; }
  .motion .hs-intro { width: 400px; align-self: center; }
  .motion .panel { width: 380px; padding: 36px; min-height: 62svh; }
  .motion .panel .lab-code { margin-bottom: auto; padding-bottom: 40px; }
}

/* Section headings: words rise out of a mask */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wm > span { display: inline-block; }

/* Contact */
.contact { padding: 96px 0 120px; }
.big-cta { font-size: clamp(42px, 6.4vw, 96px); line-height: .98; letter-spacing: -.05em; font-weight: 600; max-width: 900px; }
.magnetic { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
  .steps li::before { transition: none; }
}

/* WebGL mode: one fixed particle canvas behind the page */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }
.gl-hero { position: absolute; top: 0; left: 0; width: 100%; height: 58svh; pointer-events: none; }
@media (min-width: 861px) { .gl-hero { left: auto; right: 0; width: 52%; height: 100%; } }
.gl .stage { background: none; }
.gl body { background: radial-gradient(80% 60% at 70% 0%, color-mix(in srgb, var(--ink) 4%, transparent), transparent 70%) fixed, var(--paper); }
.gl .core svg { opacity: 0; }
.gl .contact h2, .gl .contact .lede { text-shadow: 0 0 18px var(--paper), 0 0 6px var(--paper); }
.contact { position: relative; }
.contact .wrap { position: relative; }
.gl-end { position: absolute; inset: 0; pointer-events: none; }
@media (min-width: 1100px) { .gl-end { left: auto; } }

/* First-visit intro: life's stages grow in the middle of the hero, then the headline arrives */
.evo-cap { display: none; }
.evo-intro .evo-cap { display: flex; position: absolute; z-index: 2; left: 0; right: 0; bottom: 12svh; justify-content: center; gap: 6px;
  font: 500 12px var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--dim); pointer-events: none; }
.evo-cap span { opacity: 0; transition: opacity .3s, color .3s; }
.evo-cap span + span::before { content: "\2192"; margin-right: 6px; color: var(--control); }
@media (min-width: 720px) { .evo-intro .evo-cap { gap: 10px; font-size: 13px; letter-spacing: .08em; } .evo-cap span + span::before { margin-right: 10px; } }
.evo-cap .kept { opacity: .55; }
.evo-cap .on { opacity: 1; color: var(--delta-text); }
.evo-intro #field, .evo-intro .scroll-cue { opacity: 0; }

/* Neuron cursor (mouse only): above the page, under the header */
.spark { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 35; pointer-events: none; }

/* Manifesto: both beats share one place while pinned; the strata under "accumulates" are its layers. */
.motion .manifesto .wrap { display: grid; }
.motion .manifesto .scrub-words { grid-area: 2 / 1; margin: 0; }
.acc { position: relative; display: inline-block; }
.strata { position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 3px; margin-top: 2px; }
.strata i { height: 3px; border-radius: 2px; transform-origin: left; }
.strata i:nth-child(1) { background: var(--delta); } .strata i:nth-child(2) { background: var(--synapse); } .strata i:nth-child(3) { background: var(--ember); }
.gl-dna { display: none; }
/* The helix is sized from the box width (about 22% of it tall), so the box height follows the width to keep the caption clear. */
.gl .gl-dna { display: block; height: 120px; margin-bottom: 72px; }
@media (min-width: 480px) { .gl .gl-dna { height: auto; aspect-ratio: 100 / 28; } }
.motion .manifesto .delta { background: none; color: inherit; }
.motion .manifesto .delta .w { background: linear-gradient(90deg, var(--delta), var(--synapse)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gl-dna { position: relative; }
.dna-cap { position: absolute; left: 0; right: 0; top: calc(100% + 14px); text-align: center; font: clamp(12px, 1.2vw, 15px)/1.45 var(--mono); color: var(--dim); }
/* Wide screens: the end blade sits beside the words. Narrower: it stays behind them (founder's call). */
@media (min-width: 1100px) { .gl-end { width: 38%; } .contact .wrap > * { max-width: 58%; } }
