/* Visor pitch. Visor's colours (the logo's green #7BC288 to blue #4DBEDC)
   glowing on a deep night canvas. Pinned scenes are sticky stages inside tall
   sections; app.js drives everything that moves from the scroll. */
:root {
  --bg: #061219; --bg-2: #0A1D28; --ink: #EAF6FA; --ink-2: #A2BCC7; --ink-3: #6E8B97;
  --cyan: #4DBEDC; --green: #7BC288; --coral: #FF8F7A; --amber: #F5B94A; --red: #FF6B6B;
  --grad: linear-gradient(100deg, #7BC288 0%, #4DBEDC 100%);
  --glass: rgba(255, 255, 255, .06); --line: rgba(255, 255, 255, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { position: relative; font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- living layers ----------
   Nothing here is blurred live: the AI images are pre-blurred files, and
   every moving layer is moved with transforms and opacity only. */
.aura { position: fixed; inset: -10%; z-index: 0; pointer-events: none; background: radial-gradient(110% 75% at 50% 0%, #0E2C3A 0%, var(--bg) 58%); }
.aura img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .8s; will-change: opacity; }
.aura-b { opacity: 0 !important; }
body.late .aura-a { opacity: .2; }
body.late .aura-b { opacity: .6 !important; }
#field, #skid { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#field { z-index: 1; }
#skid { z-index: 4; }
main { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 22px; padding: 8px 10px 8px 14px; border-radius: 999px; background: rgba(8, 24, 32, .88); box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(0,0,0,.25); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.nav nav { display: flex; gap: 2px; }
.nav nav a { text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 7px 12px; border-radius: 999px; transition: background-color .2s, color .2s; }
.nav nav a:hover { color: var(--ink); background: rgba(255,255,255,.07); }

/* ---------- the living button ----------
   Fixed to the screen while it's in the hero and the corner; at the end it
   rides with the page (absolute, inside the track, which clips it to the
   page so it can never make the page taller). */
.cta-track { position: absolute; inset: 0; z-index: 7; overflow: clip; pointer-events: none; }
.cta { position: fixed; left: 0; top: 0; display: flex; align-items: center; gap: 12px; padding: 10px 22px 10px 12px; border-radius: 999px; text-decoration: none; color: #062029; background: linear-gradient(100deg, #8BD39A 0%, #5CCAE6 100%); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset; will-change: transform; transform-origin: 50% 50%; user-select: none; -webkit-user-select: none; pointer-events: auto; }
.cta-glow { position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: 0 14px 40px rgba(77,190,220,.45), 0 0 80px rgba(123,194,136,.25); transition: opacity .25s; will-change: transform; pointer-events: none; }
.cta-glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 18px 50px rgba(77,190,220,.6), 0 0 110px rgba(123,194,136,.4); opacity: 0; transition: opacity .25s; }
.cta::before { content: ""; position: absolute; inset: -10px; border-radius: inherit; border: 2px solid rgba(77,190,220,.5); opacity: 0; animation: ctaRing 2.6s var(--ease) infinite; pointer-events: none; }
@keyframes ctaRing { 0% { opacity: .9; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.25); } }
.cta-face { width: 52px; height: 28px; flex: none; overflow: visible; will-change: transform; }
.cta-face .eyes { transform-origin: 32px 17px; transition: transform .09s; }
.cta-face.blink .eyes { transform: scaleY(.12); }
.cta-text { display: flex; flex-direction: column; line-height: 1.12; white-space: nowrap; }
.cta-text b { font-size: 17px; letter-spacing: -.01em; }
.cta-text small { font-size: 11.5px; font-weight: 600; opacity: .75; }
.cta:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.55) inset; }
.cta:hover .cta-glow::after { opacity: 1; }
.cta:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.cta-slot { width: 230px; height: 62px; margin: 34px auto 0; }

/* ---------- 1. intro: hero, then the story ---------- */
.intro { height: 185vh; }
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero { position: relative; z-index: 2; text-align: center; padding: 0 22px; max-width: 980px; will-change: transform, opacity; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--glass); box-shadow: 0 0 0 1px var(--line); }
.eyebrow .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.eyebrow .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: rgba(123,194,136,.35); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.hero-title { margin: 0; font-size: clamp(54px, 10.5vw, 148px); line-height: .94; font-weight: 850; letter-spacing: -.055em; }
.hero-title .line { display: inline-block; overflow: hidden; padding: 0 .04em .08em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }
.hero-sub { max-width: 620px; margin: 26px auto 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: var(--ink-2); opacity: 0; animation: fadeUp 1s .45s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.official { margin: 16px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-shadow: 0 0 10px var(--bg), 0 0 18px var(--bg); }
.hero .official { opacity: 0; animation: fadeUp 1s .8s var(--ease) forwards; }
.scroll-cue { margin: 22px 0 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); font-weight: 600; opacity: 0; animation: fadeUp 1s 1s var(--ease) forwards; }
.scroll-cue i { width: 22px; height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* floating document fragments */
.frags { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.frag { position: absolute; padding: 10px 14px; border-radius: 14px; font-size: 14px; color: var(--ink); background: rgba(13, 35, 46, .9); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0,0,0,.35); white-space: nowrap; will-change: transform, opacity; opacity: 0; animation: fragIn 1.4s var(--ease) forwards; }
.f1 { left: 6%; top: 22%; animation-delay: .5s; } .f2 { right: 7%; top: 18%; animation-delay: .7s; }
.f3 { left: 9%; bottom: 20%; animation-delay: .9s; } .f4 { right: 10%; bottom: 24%; animation-delay: 1.1s; }
.f5 { left: 18%; top: 9%; animation-delay: 1.3s; } .f6 { right: 16%; bottom: 9%; animation-delay: 1.5s; } .f7 { left: 4%; top: 52%; animation-delay: 1.7s; }
@keyframes fragIn { from { opacity: 0; } to { opacity: .92; } }
.hl { border-radius: 4px; padding: 0 2px; }
.frag .a1 { background: rgba(77,190,220,.32); } .frag .a2 { background: rgba(123,194,136,.32); } .frag .a3 { background: rgba(255,143,122,.32); }
.chip { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; font-size: 10.5px; font-weight: 800; color: #062029; margin: 0 4px 0 8px; vertical-align: -4px; }
.chip.c1 { background: var(--cyan); margin-left: 0; } .chip.c2 { background: var(--green); } .chip.c3 { background: var(--coral); }
.paste { font-weight: 700; color: #2A1A00; background: var(--amber); padding: 3px 10px; border-radius: 999px; }
.frag s { color: var(--red); text-decoration-thickness: 2px; margin-right: 6px; }
.caret { display: inline-block; width: 2px; height: 16px; margin-right: 8px; vertical-align: -3px; background: var(--cyan); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* the story, word by word */
.story { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 24px; text-align: center; pointer-events: none; }
.story-line { margin: 0; max-width: 980px; font-size: clamp(30px, 5vw, 64px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; }
.story-line.dim { color: var(--ink-2); }
.story-line.big { font-size: clamp(56px, 10vw, 132px); margin-top: 10px; }
.story-line .w { display: inline-block; opacity: .08; transform: translateY(18px) scale(.96); transition: opacity .4s, transform .55s var(--ease); }
.story-line .w.on { opacity: 1; transform: none; }

/* ---------- 2/3. scenes ---------- */
.scene { height: 140vh; }
.stage.two { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.stage.two.flip .copy { order: 2; }
.copy { will-change: transform, opacity; }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--cyan); text-transform: uppercase; }
.copy h2 { margin: 0; font-size: clamp(38px, 4.8vw, 66px); line-height: 1.02; letter-spacing: -.04em; font-weight: 850; }
.copy > p:not(.kicker) { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 470px; }
.authors { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.author { display: flex; align-items: center; gap: 9px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--glass); box-shadow: 0 0 0 1px var(--line); }
.author .av { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--c); color: #062029; font-weight: 800; font-size: 13px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.author .nm { font-weight: 650; font-size: 14.5px; }
.author b { font-size: 18px; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.author i { font-style: normal; color: var(--ink-3); margin-left: -6px; font-weight: 700; }
.share { height: 10px; margin-top: 18px; max-width: 460px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.06); }
.share-fill { display: flex; gap: 4px; height: 100%; clip-path: inset(0 calc(100% - var(--fill, 0) * 100%) 0 0 round 999px); }
.share i { display: block; height: 100%; background: var(--c); flex: 0 0 calc(var(--w) * 1% - 3px); border-radius: 999px; }

/* the document card */
.doc { position: relative; border-radius: 22px; background: #F7FAFB; color: #1d2b31; box-shadow: 0 0 0 1px rgba(255,255,255,.08); will-change: transform, opacity; }
.doc::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 0 120px rgba(77,190,220,.12); will-change: transform; pointer-events: none; }
.doc-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #EDF3F5; border-bottom: 1px solid #DCE6EA; border-radius: 22px 22px 0 0; }
.doc-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #D4DFE4; }
.doc-bar em { margin-left: 10px; font-style: normal; font-size: 13px; font-weight: 650; color: #557280; }
.doc-page { padding: 34px 40px 38px; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.85; min-height: 380px; }
.doc-h { margin: 0 0 14px; font-family: var(--font); font-size: 22px; letter-spacing: -.02em; }
.doc-page p { margin: 0 0 12px; }
.doc .hl { background-image: linear-gradient(var(--hc), var(--hc)); background-repeat: no-repeat; background-size: 0% 100%; background-position: 0 0; transition: background-size .7s var(--ease); }
.doc .hl.lit { background-size: 100% 100%; }
.doc .hl[data-a="1"] { --hc: rgba(77,190,220,.38); } .doc .hl[data-a="2"] { --hc: rgba(123,194,136,.42); } .doc .hl[data-a="3"] { --hc: rgba(255,143,122,.4); }

/* replay */
.rp-text { min-height: 250px; margin: 0; white-space: pre-wrap; }
.rp-text .paste { color: #2A1A00; background: rgba(245,185,74,.55); padding: 0; border-radius: 3px; font-weight: 400; }
.rp-text .paste.fresh { animation: pasteGlow 1.6s var(--ease); }
@keyframes pasteGlow { 0% { box-shadow: 0 0 0 10px rgba(245,185,74,.45); } 100% { box-shadow: 0 0 0 0 rgba(245,185,74,0); } }
.rp-text .gone { color: #d13c3c; text-decoration: line-through; text-decoration-thickness: 2px; opacity: .75; }
.rp-text .cur { display: inline-block; width: 2px; height: 1.15em; vertical-align: -.2em; background: #127C9F; margin-left: 1px; animation: blink 1s steps(2, start) infinite; }
.rp-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-family: var(--font); font-size: 11.5px; font-weight: 750; vertical-align: 2px; }
.rp-badge.p { background: #F5B94A; color: #2A1A00; } .rp-badge.d { background: #FFE1E1; color: #B22828; }
.scrub { padding: 0 40px 24px; font-family: var(--font); }
.scrub-track { position: relative; height: 26px; }
.scrub-track::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 2px; background: #DCE6EA; }
.sess { position: absolute; top: 9px; height: 8px; left: var(--a); width: calc(var(--b) - var(--a)); border-radius: 4px; background: linear-gradient(90deg, #7BC288, #4DBEDC); opacity: .85; }
.mark { position: absolute; top: 5px; left: var(--at); width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg); border-radius: 3px; background: #F5B94A; box-shadow: 0 0 0 3px #fff; }
.head { position: absolute; top: 1px; left: 0; width: 22px; height: 22px; margin-left: -11px; will-change: transform; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #127C9F, 0 4px 12px rgba(18,124,159,.4); }
.scrub-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: #557280; font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.ticks span { width: 12px; height: 12px; border-radius: 4px; background: var(--c); box-shadow: 0 0 14px var(--c); }

/* ---------- 4. finale ---------- */
.finale { position: relative; min-height: 100vh; padding: 96px 24px 36px; display: flex; flex-direction: column; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1080px; width: 100%; }
.fact { padding: 26px 24px; border-radius: 22px; background: linear-gradient(160deg, rgba(22,52,66,.92), rgba(11,31,41,.9)); box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(0,0,0,.25); }
.fact .ic { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(77,190,220,.14); box-shadow: 0 0 0 4px rgba(77,190,220,.07); }
.fact .ic svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fact h3 { margin: 16px 0 6px; font-size: 19px; letter-spacing: -.02em; }
.fact p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: 15px; }
.end { margin-top: auto; padding-top: 64px; text-align: center; }
.end-title { margin: 0; font-size: clamp(44px, 7vw, 96px); line-height: 1; font-weight: 850; letter-spacing: -.05em; }
.end-slot { margin-top: 44px; }
.end .official { margin-top: 22px; }
.end-sub { margin: 8px 0 0; color: var(--ink-3); font-weight: 600; font-size: 14px; text-shadow: 0 0 10px var(--bg), 0 0 18px var(--bg); }
/* the footer sits on a dark band, so the swirl behind it can't cross the
   contact line */
.site-foot { align-self: stretch; margin: 40px -24px -36px; padding: 26px 24px 30px; display: flex; flex-direction: column; align-items: center; background: linear-gradient(180deg, rgba(6,18,25,0) 0%, rgba(6,18,25,.94) 34%, var(--bg) 100%); }
.foot { display: flex; align-items: center; gap: 14px; margin-top: 0; font-size: 13.5px; color: var(--ink-3); }
.foot span { font-weight: 800; color: var(--ink-2); margin-right: 8px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }
.legal { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); text-align: center; }
.legal a { color: var(--ink-2); text-decoration: none; } .legal a:hover { color: var(--ink); text-decoration: underline; }

[data-reveal] { opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.facts .fact:nth-child(2) { transition-delay: .12s; } .facts .fact:nth-child(3) { transition-delay: .24s; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .nav nav { display: none; }
  .stage.two { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 0 18px; align-content: center; }
  .stage.two.flip .copy { order: 0; }
  .copy h2 { font-size: 34px; }
  .copy > p:not(.kicker) { font-size: 15.5px; margin-top: 10px; }
  .authors, .ticks, .share { display: none; }
  .doc-page { padding: 20px 20px 22px; font-size: 14.5px; min-height: 0; line-height: 1.7; }
  .rp-text { min-height: 190px; }
  .scrub { padding: 0 20px 16px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .frag { font-size: 12px; } .f1, .f2, .f6, .f7 { display: none; }
  .f3 { left: 5%; bottom: 6%; } .f4 { right: 5%; bottom: 14%; } .f5 { left: 8%; top: 10%; }
  .cta { padding: 8px 18px 8px 10px; } .cta-text b { font-size: 15px; } .cta-face { width: 44px; height: 24px; }
  .cta-slot { width: 200px; height: 54px; }
  .end-title { font-size: 34px; letter-spacing: -.045em; }
  .finale { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* landing at the end: a ring of light rolls out from the button */
.cta.landed::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; box-shadow: 0 0 0 0 rgba(123,194,136,.8), 0 0 0 0 rgba(77,190,220,.6); animation: landRing 1.1s var(--ease) forwards; pointer-events: none; }
@keyframes landRing { to { box-shadow: 0 0 0 40px rgba(123,194,136,0), 0 0 0 90px rgba(77,190,220,0); } }
