:root {
  color-scheme: dark;
  --ink: #edf5ff;
  --muted: #a4afcd;
  --accent: #84e9ff;
  --accent-pink: #f29bdf;
  --base: #070d20;
  --line: #84e9ff25;
  --scene-grid: #78a7ff16;
  --scene-surface: #0c132ce8;
  --scene-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(22px, 5.8vw, 104px);
  --header-height: 66px;
  font-family: Inter, "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--base);
  color: var(--ink);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }

.skip {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--base);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.header {
  position: fixed;
  z-index: 10;
  top: 0;
  inset-inline: 0;
  height: var(--header-height);
  padding-inline: clamp(19px, 2.6vw, 50px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.header.scrolled { background: #080e22e8; border-color: #fff1; backdrop-filter: blur(16px); }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.025em;
}
.symbol {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: inline-block;
  position: relative;
  color: #b8f2ff;
}
.symbol::before, .symbol::after { content: ""; position: absolute; inset: 2px; border: 1px solid currentColor; border-radius: 50%; }
.symbol::after { inset: 6px -1px; transform: rotate(-32deg); background: radial-gradient(ellipse, #84e9ff32, transparent 70%); }
.site-nav { display: flex; align-items: center; gap: clamp(22px, 4vw, 64px); }
.site-nav > a { position: relative; display: inline-flex; align-items: center; min-height: 42px; color: #c6d8ee; font-size: 13px; white-space: nowrap; }
.site-nav > .wordmark { font-size: 16px; color: var(--ink); }
.site-nav a:hover, .site-nav a[aria-current], .footer a:hover { color: var(--accent); }
.site-nav a[aria-current]::after {
  position: absolute; inset: auto 0 3px; height: 1px; background: currentColor;
  box-shadow: 0 0 8px #84e9ff82; content: "";
}

/* The scroll scene and its text share one reversible timeline. */
.journey { position: relative; background: #070c20; }
.scene { position: relative; overflow: hidden; isolation: isolate; }
.visual-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .35s; }
.scene-ready .visual-canvas { opacity: 1; }
.scene-ready .visual-canvas { cursor: grab; touch-action: pan-y; }
.scene-ready .visual-canvas.is-character { cursor: pointer; }
.scene-ready .visual-canvas.is-orbiting { cursor: grabbing; }
.visual-canvas:focus-visible { outline: 1px solid #84e9ff80; outline-offset: -6px; }
.scene-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,#070c20a6,transparent 48%),linear-gradient(0deg,#070c20d9,transparent 22%,transparent 84%,#070c2045); }
.read-anchor { position: absolute; top: calc((100% - 100svh) * .3); pointer-events: none; }
.story { position: relative; z-index: 2; }
.story-step { padding: 150px var(--gutter); min-height: 75svh; }
.story-step h1,.story-step h2 { font-size: clamp(48px,5.15vw,88px); font-weight: 420; line-height: 1.15; letter-spacing: -.065em; margin: 0; }
.story-step h1 { font-size: clamp(58px,6.25vw,108px); line-height: 1.01; letter-spacing: -.065em; font-weight: 450; }
.story-step h2 { font-size: clamp(45px,4.65vw,80px); line-height: 1.05; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 11px; font-weight: 500; letter-spacing: .16em; margin: 0 0 24px; }
.point { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.story-description { max-width: 365px; font-size: clamp(14px,1.15vw,17px); line-height: 1.7; color: #adc1dc; margin: 25px 0 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 12px 17px 12px 20px; border-radius: 100px; background: #d3f6ff; color: #102344; font-size: 12px; font-weight: 600; transition: background .2s; }
.button:hover { background: #98eaff; }
.button span { font-size: 18px; line-height: 1; }
.scene-detail { display: flex; align-items: center; gap: 15px; width: fit-content; padding: 14px 0; border-top: 1px solid #ffffff26; border-bottom: 1px solid #ffffff26; font-size: 11px; color: #98acd0; }
.scene-detail strong { font-size: 25px; font-weight: 450; color: #c8ecff; margin-right: 20px; }
.weight-equation { width: fit-content; font-size: clamp(25px,2.4vw,38px); letter-spacing: -.04em; font-weight: 350; border-top: 1px solid #ffffff29; padding-top: 20px; color: #d3e8ff; }
.weight-equation span { margin: 0 9px; color: #879cc4; font-weight: 300; }
.weight-equation em { font-style: normal; color: #f5a9eb; }
.text-button { appearance: none; background: none; border: 0; border-bottom: 1px solid #bdb5ff55; color: #98eaff; font-size: 12px; padding: 9px 0; cursor: pointer; }
.text-button span { margin-left: 15px; }
.verification-items { list-style: none; padding: 0; margin: 0 0 27px; display: flex; gap: 17px; flex-wrap: wrap; font-size: 11px; color: #afc4e5; }
.verification-items li { display: flex; align-items: center; gap: 7px; }
.verification-items li::before { content: ""; width: 4px; height: 4px; background: #78ddf9; border-radius: 50%; box-shadow: 0 0 7px #78ddf955; }
.scene-bottom { display: none; }
.is-interactive .journey { height: 560svh; }
.is-interactive .scene { position: sticky; top: 0; height: 100svh; min-height: 470px; }
.is-interactive .story { position: absolute; inset: 0; pointer-events: none; }
.is-interactive .story-step { position: absolute; top: 50%; left: var(--gutter); width: 48%; min-height: 0; padding: 0; opacity: 0; transform: translateY(calc(-46% + var(--copy-offset, 0px))); pointer-events: none; }
.is-interactive .story-step.is-visible { pointer-events: auto; }
.is-interactive .scene-bottom { display: grid; grid-template-columns: 1fr; justify-items: center; align-items: center; position: absolute; z-index: 3; inset-inline: var(--gutter); bottom: 30px; }
.scroll-instruction { color: #8b8da9; font-size: 10px; letter-spacing: .06em; }
.scroll-instruction > span { margin-left: 9px; color: #c8ecff; }
.stage-nav { display: flex; align-items: center; gap: 8px; }
.stage-nav button { position: relative; color: #91a7cc; font-size: 10px; border: 0; background: none; padding: 14px 16px; cursor: pointer; transition: color .2s; }
.stage-nav button::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px; background: #ffffff21; }
.stage-nav button[aria-current="step"] { color: #e4f4ff; }
.stage-nav button[aria-current="step"]::after { background: #84e9ff; box-shadow: 0 0 6px #6fd9ff; }
.stage-nav button:hover { color: #ddf3ff; }
.verify-scroll-cue {
  position: absolute;
  bottom: 100%;
  left: 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 30px;
  border-radius: 50%;
}
.verify-scroll-cue::before {
  content: "";
  width: 13px;
  height: 13px;
  border-right: 2px solid #b6b2ff;
  border-bottom: 2px solid var(--accent);
  filter: drop-shadow(0 0 5px #827bffb3);
  transform: translateY(-2px) rotate(45deg);
  animation: verify-scroll-breathe 2.7s ease-in-out infinite;
}
.verify-scroll-cue:focus-visible::before { animation: none; }
@media (hover: hover) { .verify-scroll-cue:hover::before { animation: none; } }
@keyframes verify-scroll-breathe {
  0%, 100% { opacity: .62; }
  50% { opacity: 1; transform: translateY(1px) rotate(45deg); }
}
.journey-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: #ffffff0a; }
.journey-progress span { display: block; height: 100%; background: #74bfff; transform: scaleX(var(--journey-progress, 0)); transform-origin: left; }
.is-reduced .journey { height: 400svh; }

/* The runner and Subnet occupy separate views so the sticky scene never scrolls into Subnet. */
html[data-journey-view] { overflow-anchor: none; scrollbar-gutter: stable; }
html[data-journey-view="subnet"] { overscroll-behavior-y: none; }
/* Reserve the swipe across each view boundary and keep the opposite pan native. */
.scene:has(.verify-scroll-cue:not([hidden])) { touch-action: pan-up pinch-zoom; }
.at-subnet-top main { touch-action: pan-down pinch-zoom; }
html.is-changing-journey-view { overflow-y: hidden; }
html[data-journey-view="experience"] .subnet,
html[data-journey-view="experience"] .footer,
html[data-journey-view="subnet"] .journey { display: none; }
html[data-journey-view="subnet"] .subnet {
  min-height: calc(100svh - var(--header-height));
  margin-top: var(--header-height);
}
.journey-veil {
  position: fixed;
  z-index: 9;
  inset: 0;
  background: radial-gradient(ellipse at 50% 42%, #192752, var(--base) 72%);
  pointer-events: none;
}
::view-transition-group(root) { animation: none; }
::view-transition-old(root),
::view-transition-new(root) { mix-blend-mode: plus-lighter; }
::view-transition-old(root) { animation: axonry-fade-out 540ms ease-in-out both; }
::view-transition-new(root) { animation: axonry-fade-in 540ms ease-in-out both; }
@keyframes axonry-fade-out { to { opacity: 0; } }
@keyframes axonry-fade-in { from { opacity: 0; } }


.content { scroll-margin-top: var(--header-height); }
.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.scene-surface {
  background-color: var(--base);
  background-image:
    radial-gradient(ellipse at 68% 2%, #233b8eb0, transparent 55%),
    radial-gradient(ellipse at 23% 49%, #632d8540, transparent 58%),
    linear-gradient(180deg, transparent 35%, var(--base) 86%),
    linear-gradient(90deg, var(--scene-grid) 1px, transparent 1px),
    linear-gradient(var(--scene-grid) 1px, transparent 1px);
  background-size: auto, auto, auto, 64px 64px, 64px 64px;
}
.subnet { padding-block: clamp(74px, 11vw, 158px); }
.section-heading {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 35px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 76px);
}
.section-heading h2 { max-width: 17ch; font-size: clamp(39px, 4.75vw, 74px); margin: 0; font-weight: 450; line-height: 1.06; letter-spacing: -.055em; }
.section-heading > p { font-size: 16px; line-height: 1.85; color: var(--muted); margin: 0 0 3px; max-width: 340px; }
.workflow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--scene-surface);
}
.workflow li {
  position: relative;
  padding: clamp(21px, 3vw, 44px);
  background:
    radial-gradient(ellipse at 52% 34%, #334c9d60, transparent 58%),
    linear-gradient(90deg, #78a7ff0a 1px, transparent 1px),
    linear-gradient(#78a7ff0a 1px, transparent 1px);
  background-size: auto, 23px 23px, 23px 23px;
}
.workflow li + li { border-left: 1px solid var(--line); }
.subnet-pillars li:first-child { --pillar-accent: var(--accent-pink); }
.subnet-pillars li:nth-child(2) { --pillar-accent: var(--accent); }
.subnet-pillars .step, .subnet-pillars .step-art { color: var(--pillar-accent); }
.subnet-pillars .step-art {
  justify-items: start;
  padding-left: 32px;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--pillar-accent) 38%, transparent));
}
.subnet-ambition { margin: 20px 0 0; color: var(--muted); font: 12px/1.6 var(--scene-mono); }
.step { color: var(--accent); font: 11px var(--scene-mono); letter-spacing: .13em; }
.step-art {
  width: 100%;
  height: 112px;
  margin: 15px 0 23px;
  display: grid;
  place-items: center;
  isolation: isolate;
  position: relative;
  color: var(--accent);
  filter: drop-shadow(0 0 10px #84e9ff40);
}
.step-art > * { grid-area: 1 / 1; }
.step-art i { display: block; }
.patch-art i, .validate-art i {
  width: 82px;
  height: 58px;
  border: 1px solid currentColor;
  opacity: .57;
  background-image:
    linear-gradient(90deg, color-mix(in srgb, currentColor 20%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, currentColor 20%, transparent) 1px, transparent 1px);
  background-size: 12px 12px;
}
.patch-art i { transform: translate(17px, -15px) skewY(-16deg); }
.patch-art i:nth-child(2) { transform: translate(8px, -7px) skewY(-16deg); }
.patch-art i:nth-child(3) { transform: skewY(-16deg); opacity: .85; }
.patch-art b { margin-left: 24px; font: 19px var(--scene-mono); text-shadow: 0 0 10px currentColor; }
.validate-art i { transform: translate(20px, -11px) skewY(16deg); }
.validate-art i:nth-child(2) { transform: translate(10px, -5px) skewY(16deg); }
.validate-art i:nth-child(3) { transform: skewY(16deg); opacity: .85; }
.workflow h3, .research h3 { margin: 0; font-size: clamp(19px, 2vw, 27px); font-weight: 550; letter-spacing: -.03em; }
.workflow p, .evidence-panel > p:not(.metric) { margin: 11px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.research { margin-top: clamp(47px, 7vw, 94px); }
.research h3 { margin-bottom: 18px; }
.evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.evidence-panel { padding: clamp(18px, 3vw, 34px); background: radial-gradient(ellipse at 12% 0%, #1c2a5a, #0a122b 78%); }
.metric { display: grid; gap: 8px; margin: 0; }
.metric strong { font-size: clamp(27px, 3.7vw, 57px); font-weight: 490; letter-spacing: -.075em; line-height: 1.1; white-space: nowrap; }
.metric strong span { font-size: .52em; margin-left: .07em; letter-spacing: 0; }
.metric strong i { font-size: .67em; font-style: normal; color: var(--accent); letter-spacing: -.04em; }
.metric > span { color: #bfd0ed; font: 11px var(--scene-mono); }

.footer { border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer .wrap { display: flex; gap: 15px 30px; align-items: center; min-height: 88px; }
.footer .wordmark { color: var(--ink); }
.footer a:last-child { margin-left: auto; white-space: nowrap; }


@media (max-width: 760px), (max-aspect-ratio: 17/20) {
  :root { --header-height: 58px; --gutter: 25px; }
  .header { padding-inline: 19px; }
  .site-nav { width: 100%; gap: clamp(12px, 5vw, 30px); }
  .site-nav > a { font-size: 12px; }
  .site-nav > .wordmark { margin-right: auto; font-size: 15px; }
  .wordmark { font-size: 13px; gap: 6px; }
  .symbol { width: 18px; height: 18px; }
  .scene-shade { background: linear-gradient(180deg,#070c2018 28%,#070c2005 42%,#070c20b8 65%,#070c20e6 100%); }
  .is-interactive .story-step { width: calc(100% - 2 * var(--gutter)); top: auto; bottom: 96px; transform: translateY(var(--copy-offset, 0px)); }
  .story-step h1 { font-size: clamp(42px,10.5vw,68px); line-height: 1.02; letter-spacing: -.065em; }
  .story-step h2 { font-size: clamp(34px,8.4vw,54px); line-height: 1.06; }
  .eyebrow { font-size: 9px; margin-bottom: 14px; letter-spacing: .13em; }
  .story-description { margin: 15px 0 18px; font-size: 12px; max-width: 330px; line-height: 1.65; }
  .story-step .button { padding: 9px 14px 9px 17px; font-size: 11px; }
  .weight-equation { font-size: 27px; padding-top: 12px; }
  .scene-detail { padding: 10px 0; font-size: 10px; }
  .verification-items { font-size: 10px; margin-bottom: 19px; }
  .is-interactive .scene-bottom { bottom: 22px; grid-template-columns: 1fr; }
  .scroll-instruction { grid-column: 1 / -1; font-size: 9px; }
  .stage-nav { justify-content: space-between; gap: 0; width: 100%; max-width: 390px; }
  .stage-nav button { padding: 12px 12px; font-size: 10px; }
  .stage-nav button:first-child { padding-left: 0; }
  .stage-nav button::after { left: 12px; right: 12px; }
  .stage-nav button:first-child::after { left: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 15px; }
  .section-heading > p { font-size: 14px; }
  .workflow { grid-template-columns: 1fr; }
  .workflow li + li { border-left: 0; border-top: 1px solid var(--line); }
  .step-art { height: 91px; margin-block: 12px 17px; }
  .evidence { grid-template-columns: 1fr; }
  .metric strong { font-size: clamp(35px, 8vw, 52px); }
  .footer .wrap { flex-wrap: wrap; padding-block: 20px; gap: 15px; }
}
@media (max-width: 370px) {
  .header { padding-inline: 12px; }
  .site-nav { gap: 13px; }
  .story-step h1 { font-size: 42px; }
  .story-step h2 { font-size: 33px; }
}
@media (max-height: 650px) and (min-width: 761px) {
  .story-step h1,.story-step h2 { font-size: 47px; }
  .story-description { margin-block: 14px 18px; font-size: 13px; }
  .eyebrow { margin-bottom: 13px; }
}
@media (max-height: 700px) and (max-width: 760px) {
  .story-step h1,.story-step h2 { font-size: 34px; }
  .story-description { margin-block: 10px 12px; font-size: 11px; }
  .is-interactive .story-step { bottom: 105px; }
  .eyebrow { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: 0s !important; }
  .verify-scroll-cue::before { animation: none; }
}

@media (max-height: 470px) {
  :root { --header-height: 48px; }
  .is-interactive .scene { min-height: 0; }
  .is-interactive .story-step { left: var(--gutter); top: 50%; bottom: auto; transform: translateY(-46%); width: 52%; }
  .story-step h1,.story-step h2 { font-size: 30px; }
  .story-description { font-size: 11px; margin-block: 9px 12px; }
  .story-step .eyebrow { margin-bottom: 8px; font-size: 8px; }
  .story-step .button { padding: 7px 13px; font-size: 10px; }
  .is-interactive .scene-bottom { bottom: 10px; display: flex; justify-content: space-between; }
  .scroll-instruction { display: none; }
  .weight-equation { padding-top: 9px; font-size: 23px; }
  .verification-items { margin-bottom: 12px; gap: 9px; }
}
