.hero { position: relative; padding-top: calc(56px + clamp(48px, 9vh, 110px)); overflow-x: clip; --h1fs: clamp(45px, 7.9vw, 136px); }
.aurora {
  position: absolute; pointer-events: none; inset: -10% -20% auto -20%; height: 1300px; z-index: 0;
  background:
    radial-gradient(40% 30% at 70% 22%, rgba(106,87,166,.55), transparent 70%),
    radial-gradient(30% 24% at 18% 8%, rgba(166,75,152,.28), transparent 70%),
    radial-gradient(55% 40% at 50% 72%, rgba(106,87,166,.42), transparent 70%);
  filter: blur(10px);
}
.hero-copy { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30ch); gap: 0 56px; align-items: start; }
.hero h1 { grid-column: 1; grid-row: 1; font-size: var(--h1fs); }
.hero h1 .line { display: block; }
.hero-side { grid-column: 2; grid-row: 1; align-self: center; max-width: 30ch; }
.hero-side p { margin: 0 0 22px; font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-soft); line-height: 1.55; }
.hero-side p strong { color: var(--ink); font-weight: 500; }
.soon-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.soon-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--flare); box-shadow: 0 0 12px var(--flare); }

.hero-stage { position: relative; z-index: 1; margin-top: clamp(40px, 5vw, 80px); perspective: 2200px; padding-bottom: clamp(80px, 12vw, 180px); }
.floor-glow {
  position: absolute; left: 10%; right: 10%; bottom: 4%; height: 32%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(140,116,240,.45), transparent 70%);
  filter: blur(30px); pointer-events: none;
}

.fig-live { position: absolute; inset: 0; pointer-events: none; }
.fig-live canvas { position: absolute; }
.fig-live .fl-julia { image-rendering: pixelated; }
.fig-live .fl-atlas { border-radius: 1.2% / 1.4%; }
.hero-phone { position: absolute; z-index: 3; width: clamp(120px, 17vw, 250px); right: max(0px, calc(50% - 640px)); bottom: clamp(40px, 7vw, 110px); transform: rotate(4deg); }

.claim { position: relative; padding-block: clamp(96px, 16vw, 220px); overflow-x: clip; }
.claim .display { font-size: clamp(44px, 8.2vw, 136px); max-width: 20ch; }
.claim .display .w { display: inline-block; }
.claim-note { margin: 32px 0 0; max-width: 46ch; color: var(--ink-soft); font-size: clamp(17px, 1.4vw, 20px); }
.claim.right .display, .claim.right .claim-note { margin-left: auto; text-align: right; }
.claim.right .claim-note { margin-left: auto; }
.claim-glow { position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgba(106,87,166,.28), transparent); pointer-events: none; z-index: -1; }
#claimThread .display { max-width: 13ch; }

.sec-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
.sec-head h2 { font-size: clamp(40px, 5.8vw, 92px); }
.sec-head p { margin: 0; color: var(--ink-soft); font-size: clamp(17px, 1.3vw, 19px); max-width: 44ch; }
.kicker { font-family: var(--display); font-weight: var(--display-wght-2); font-synthesis: none; font-size: 19px; color: var(--violet-glow); letter-spacing: 0; margin: 0 0 18px; }

.story-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 64px; }
.story-stage { position: sticky; top: calc(56px + 7vh); align-self: start; }
.story-stage .screen img { opacity: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); transform: scale(1.02); }
.story-stage .screen img.on { opacity: 1; transform: none; }
.spot {
  position: absolute; z-index: 2;
  left: var(--x, 36%); top: var(--y, 2%); width: var(--w, 43%); height: var(--h, 17%);
  border-radius: 10px;
  box-shadow: 0 0 0 200vmax rgba(5, 4, 11, .64), 0 0 0 1.5px rgba(185,168,255,.95), 0 0 50px 4px rgba(156,139,216,.5);
  transition: left .8s var(--ease), top .8s var(--ease), width .8s var(--ease), height .8s var(--ease);
  pointer-events: none;
}
.story-progress { display: flex; gap: 8px; margin-top: 22px; justify-content: center; }
.story-progress span { width: 28px; height: 3px; border-radius: 3px; background: rgba(185,168,255,.2); transition: background .4s, width .4s; }
.story-progress span.on { width: 56px; background: var(--flare); box-shadow: 0 0 10px rgba(245,220,58,.6); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s; }
.step.on { opacity: 1; }
.step:first-child { min-height: 70vh; justify-content: flex-start; padding-top: 12vh; }
.step:last-child { min-height: 100vh; }
.step h3 { font-size: clamp(34px, 3.6vw, 60px); margin-bottom: 18px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 18px; max-width: 36ch; }
.step-media { display: none; }

.branch { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 48px 64px; margin-top: clamp(96px, 17vw, 260px); align-items: start; }
.rail-shot { position: sticky; top: 84px; max-width: 340px; }
.rail-shot img { width: 100%; height: min(78vh, 720px); object-fit: cover; object-position: top; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 40px 100px -30px rgba(106,87,166,.8); -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.branch-step + .branch-step { margin-top: clamp(48px, 5vw, 72px); }
.branch-copy h3 { font-size: clamp(32px, 3.6vw, 58px); margin-bottom: 16px; }
.branch-copy p { color: var(--ink-soft); max-width: 48ch; margin: 0 0 32px; }
.branch-step.found { display: grid; grid-template-columns: minmax(0, 1fr) min(420px, 46%); gap: 32px 48px; align-items: center; }
.branch-step.found p { margin-bottom: 0; }
.search-shot { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 100px -30px rgba(106,87,166,.85), 0 20px 50px rgba(0,0,0,.5); }

.more { padding-top: clamp(120px, 16vw, 240px); }
.more-head h2 { font-size: clamp(44px, 7vw, 116px); max-width: 12ch; }
.more-head p { color: var(--ink-soft); max-width: 44ch; margin: 24px 0 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 40px 72px; align-items: center; padding-block: clamp(72px, 9vw, 130px); border-top: 1px solid var(--line); }
.row:first-of-type { margin-top: clamp(56px, 7vw, 100px); }
.row.flip { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.row.flip .row-copy { order: 2; }
.row-copy h3 { font-size: clamp(32px, 3.4vw, 54px); margin-bottom: 18px; }
.row-copy p { color: var(--ink-soft); margin: 0 0 16px; max-width: 46ch; }
.row-copy p strong { color: var(--ink); font-weight: 500; }

.sub-visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.sub-visual .icon-big { width: min(220px, 46%); border-radius: 22%; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 0 120px 20px rgba(106,87,166,.55), 0 30px 60px rgba(0,0,0,.6); }
.pickers { margin-top: 44px; display: grid; gap: 14px; width: min(520px, 100%); }
.picker { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px; }
.picker label { font-size: 13px; color: var(--ink-faint); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); }
.seg span { flex: 1; text-align: center; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.seg span.on { background: var(--violet); color: #fff; box-shadow: 0 6px 20px -6px rgba(106,87,166,.9); }

.verbs { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.verbs li { position: relative; padding-left: 20px; font-size: 16px; }
.verbs li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--violet-lum); }

.row-stack { display: grid; }
.row-stack .agent-shot { width: 86%; margin: -48px 0 0 auto; position: relative; z-index: 1; }
.agent-shot .screen { aspect-ratio: 1600 / 1475; }
.term .screen { aspect-ratio: auto; background: #0c0b12; padding: clamp(22px, 2.6vw, 38px); font: 400 clamp(13px, 1.15vw, 16px)/1.65 var(--mono); color: var(--ink-soft); min-height: clamp(200px, 20vw, 280px); }
.term .screen p { margin: 0; overflow-wrap: anywhere; }
.term .t-cmd { color: var(--ink); }
.term .t-cmd b { font-weight: 500; color: var(--violet-glow); }
.term .t-ps { color: var(--ink-faint); }
.term .t-out { position: relative; margin-top: 1.1em !important; padding-left: 1.5em; }
.term .t-dot { position: absolute; left: .1em; top: .62em; width: .6em; height: .6em; border-radius: 50%; background: #61c554; }
.term .t-open { color: var(--violet-glow); text-decoration: underline; text-decoration-color: rgba(185,168,255,.4); text-underline-offset: 3px; white-space: nowrap; }

.row.flip.deck-row { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.deck { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.deck img { position: absolute; left: 0; top: 0; width: 80%; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 70px -20px rgba(0,0,0,.8); transition: transform .7s var(--ease), opacity .7s var(--ease), filter .7s; }
.deck img[data-pos="0"] { transform: translate(0%, 7%); z-index: 3; box-shadow: 0 0 0 1px rgba(185,168,255,.3), 0 40px 90px -20px rgba(106,87,166,.9); }
.deck img[data-pos="1"] { transform: translate(12%, 3.5%) scale(.96); z-index: 2; opacity: .55; filter: saturate(.6); }
.deck img[data-pos="2"] { transform: translate(24%, 0%) scale(.92); z-index: 1; opacity: .3; filter: saturate(.4); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); margin-top: 8px; flex-wrap: wrap; }
.tabs button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 8px; font: 500 14px/1 var(--text); color: var(--ink-soft); transition: background .25s, color .25s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.tabs button:focus-visible { outline: 2px solid var(--flare); outline-offset: 2px; }

.mode-stage { position: relative; }
.mode-stage .screen img { opacity: 0; transition: opacity .6s var(--ease); }
.mode-stage .screen img.on { opacity: 1; }
.fidelity-note { margin-top: 26px !important; }
.fidelity { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.fidelity button { all: unset; box-sizing: border-box; flex: 1 1 120px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background .25s, box-shadow .25s; }
.fidelity button:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.fidelity button[aria-pressed="true"] { background: rgba(106,87,166,.28); box-shadow: inset 0 0 0 1.5px var(--violet-lum); }
.fidelity button:focus-visible { outline: 2px solid var(--flare); outline-offset: 2px; }
.fidelity svg { display: block; width: 26px; height: 26px; margin-bottom: 8px; color: var(--ink); }
.fidelity b { display: block; font-family: var(--display); font-weight: var(--display-wght-2); font-synthesis: none; font-size: 18px; }
.fidelity span { font-size: 14px; color: var(--ink-soft); }

.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 2.5vw, 36px); }
.phones .phone { width: clamp(96px, 15vw, 220px); }
.phones .phone:nth-child(2) { width: clamp(112px, 18vw, 260px); margin-bottom: clamp(20px, 3vw, 48px); }

.close { position: relative; text-align: center; padding-block: clamp(140px, 20vw, 300px) clamp(80px, 10vw, 140px); overflow-x: clip; }
.close .halo { position: absolute; left: 50%; top: 38%; width: min(1100px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(106,87,166,.55), rgba(166,75,152,.12) 55%, transparent); pointer-events: none; }
.close-icon { position: relative; width: clamp(84px, 9vw, 128px); margin: 0 auto 44px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 100px 16px rgba(156,139,216,.6); transition: box-shadow .6s; }
.close-icon.reached { box-shadow: 0 0 0 3px var(--flare), 0 0 0 9px rgba(7,6,12,.9), 0 0 0 12px rgba(245,220,58,.85), 0 0 26px 12px rgba(245,220,58,.3), 0 0 120px 26px rgba(245,220,58,.38); }
.close h2 { position: relative; font-size: clamp(48px, 15vw, 250px); max-width: none; }
.close p { position: relative; margin: 28px auto 0; color: var(--ink-soft); font-size: clamp(18px, 1.6vw, 22px); max-width: 34ch; }
.cta {
  position: relative; display: inline-flex; align-items: center; gap: 10px; margin-top: 40px;
  padding: 16px 26px; border-radius: 999px; background: var(--flare); color: var(--flare-ink);
  text-decoration: none; font-weight: 600; font-size: 17px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 16px 50px -10px rgba(245,220,58,.55);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 22px 60px -8px rgba(245,220,58,.7); }
.cta:focus-visible { outline-color: #fff; }
.close small { position: relative; display: block; margin-top: 18px; color: var(--ink-faint); font-size: 14px; }
.close small + small { margin-top: 6px; }
.papers { position: relative; padding-block: clamp(40px, 6vw, 100px) clamp(96px, 12vw, 180px); overflow-x: clip; }
.papers .omt { font-size: clamp(44px, 8.2vw, 136px); max-width: 20ch; margin-bottom: clamp(40px, 5vw, 72px); padding-bottom: .14em; }
.papers-head { align-items: start; }
.papers-head h3 { font-size: clamp(36px, 4.6vw, 72px); max-width: 14ch; }
.papers-head p { margin: 0 0 14px; }
.papers-head .papers-how { color: var(--ink-faint); font-size: 16px; margin: 0; }
.papers-head .papers-how-shot { display: block; margin: clamp(24px, 3vw, 36px) 0 0; max-width: 520px; }
.papers-lead { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.papers h4 { font-size: clamp(24px, 2.2vw, 32px); margin: 0 0 12px; }
.papers-cap p, .papers-grid p { margin: 0; color: var(--ink-soft); max-width: 44ch; }
.papers-grid { list-style: none; padding: 0; margin: clamp(56px, 7vw, 100px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 36px; }
.papers-shot { width: 100%; margin-bottom: 28px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 100px -30px rgba(106,87,166,.85), 0 20px 50px rgba(0,0,0,.5); }
.papers-pencil { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 32px 56px; align-items: center; margin-top: clamp(72px, 9vw, 132px); }
.tablet { margin: 0; padding: clamp(9px, 1.5vw, 22px); border-radius: clamp(18px, 2.6vw, 38px); background: linear-gradient(160deg, #3b3847, #15141c 40%, #0c0b11); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 1px #000, 0 50px 100px -20px rgba(0,0,0,.8), 0 30px 80px -30px rgba(106,87,166,.8); }
.tablet-screen { position: relative; border-radius: clamp(8px, 1.1vw, 16px); aspect-ratio: 1600 / 1118; background: var(--app-paper); }
.tablet-screen img { display: block; width: 100%; height: 100%; border-radius: inherit; }
/* The stylus's tip rests where the underlined phrase ends in the screenshot (67.7%, 24.8%). */
.tablet-pencil { position: absolute; width: 40%; left: calc(67.7% - 40% * 30 / 490); top: calc(24.8% - 40% * 1600 / 1118 * 420 / 490); overflow: visible; pointer-events: none; }
.papers-key { margin-top: clamp(56px, 7vw, 96px); padding: 20px 24px; border-radius: 14px; background: rgba(245, 220, 58, .06); box-shadow: inset 0 0 0 1px rgba(245, 220, 58, .28); max-width: 760px; }
.papers-key p { margin: 0; color: var(--ink-soft); }
.papers-key strong { color: var(--ink); font-weight: 600; }
.papers-key a { color: var(--flare); white-space: nowrap; }
.papers-credit { margin: 22px 0 0; color: var(--ink-faint); font-size: 14px; }

@media (min-width: 901px) {
  #claimThread { padding-top: clamp(220px, 26vw, 400px); }
}
@media (max-width: 900px) {
  .hero-copy, .sec-head, .story-grid, .branch, .row, .row.flip, .row.flip.deck-row, .papers-lead, .papers-grid, .papers-pencil { grid-template-columns: minmax(0, 1fr); }
  .papers-pencil .papers-cap { order: 1; }
  .deck { aspect-ratio: 1 / 1.1; }
  .deck img { width: 88%; }
  .deck img[data-pos="1"] { transform: translate(6.5%, 3.5%) scale(.96); }
  .deck img[data-pos="2"] { transform: translate(13%, 0%) scale(.92); }
  .hero-side { grid-column: 1; grid-row: auto; margin-top: 36px; max-width: 40ch; }
  .hero-phone { right: 2%; bottom: 60px; }
  .story-stage { display: none; }
  .step, .step:first-child, .step:last-child { min-height: 0; opacity: 1; padding: 0 0 64px; }
  .step-media {
    display: block; margin-top: 24px; border-radius: 12px;
    background-repeat: no-repeat;
    background-size: var(--bs) auto; background-position: var(--bp);
    aspect-ratio: var(--ar);
    box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -24px rgba(106,87,166,.8);
  }
  .step-media.img { background: none; aspect-ratio: auto; }
  .step-media.img img { width: 100%; max-height: 420px; object-fit: cover; object-position: top; border-radius: 12px; }
  .rail-shot { position: static; max-width: 260px; margin-inline: auto; }
  .branch-step.found { grid-template-columns: minmax(0, 1fr); }
  .search-shot { max-width: 420px; }
  .rail-shot img { height: 440px; }
  .row.flip .row-copy { order: 0; }
  .verbs { grid-template-columns: minmax(0, 1fr); }
  .row-stack .agent-shot { width: 100%; margin-top: 20px; }
  .claim.right .display, .claim.right .claim-note { text-align: left; margin-left: 0; }
  .sub-visual { min-height: 0; }
}
@media (max-width: 520px) {
  .hero { --h1fs: 11vw; }
  .close h2 { font-size: 12.2vw; }
  .picker { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .seg span { padding: 6px 6px; font-size: 13px; }
}
