:root { color-scheme: dark; --void: #08070c; --ice: #c7a5f7; --dust: #8c899e; --regolith: #d6d2e0; --glass: rgba(13,12,20,.78); --line: rgba(199,165,247,.28); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--void); color: #fff; font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif; }
body { height: 1500vh; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
canvas { position: fixed; inset: 0; width: 100%; height: 100%; }
.glow { position: fixed; left: 50%; top: 50%; width: 90vmax; height: 90vmax; transform: translate(-50%,-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(199,165,247,.16), rgba(120,90,255,.05) 35%, transparent 62%); }
.stage { position: fixed; inset: 0; perspective: 1300px; overflow: hidden; pointer-events: none; }
.set { position: absolute; left: 50%; top: calc(50% + 70px); width: min(80vw, 1240px, (100vh - 240px) * 1.6); aspect-ratio: 16/10; transform-style: preserve-3d; opacity: 0; visibility: hidden; will-change: transform, opacity; }
.set > .base { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(199,165,247,.25); box-shadow: 0 50px 140px rgba(0,0,0,.75); }
.set > .base img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.set > .base::after { content: ""; position: absolute; inset: 0; background: var(--void); opacity: var(--dim, 0); }
.part { position: absolute; transform-style: preserve-3d; will-change: transform; border-radius: 10px; }
.part img { width: 100%; display: block; border-radius: 10px; }
.part::before { content: ""; position: absolute; inset: -1px; border-radius: 11px; border: 1px solid rgba(199,165,247,.75);
  box-shadow: 0 0 calc(var(--g, 0) * 60px) rgba(199,165,247,calc(var(--g, 0) * .55)), 0 30px 80px rgba(0,0,0,calc(var(--g, 0) * .8)); opacity: var(--g, 0); }
.part .scan { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; opacity: var(--g, 0); }
.part .scan::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: var(--sy, -30%); background: linear-gradient(180deg, transparent, rgba(199,165,247,.22), transparent); }
.part .callout { position: absolute; left: 0; bottom: calc(100% + 12px); display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 700 clamp(10px, 1vw, 13px) "JetBrains Mono", monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--ice);
  padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); opacity: var(--c, 0); transform: translateY(calc((1 - var(--c, 0)) * 10px)); }
.part .callout::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.part.below .callout { bottom: auto; top: calc(100% + 12px); }
.moonwrap { position: absolute; border-radius: 50%; overflow: hidden; box-shadow: 0 0 120px rgba(200,225,255,.18); }
.moonwrap img { width: 100%; height: 100%; display: block; -webkit-mask: radial-gradient(circle, #000 66%, transparent 71%); mask: radial-gradient(circle, #000 66%, transparent 71%); }
.head { position: fixed; left: 6vw; top: calc(9vh + 20px); z-index: 5; pointer-events: none; font: 800 clamp(28px, 4.6vw, 78px) / .92 "Unbounded", sans-serif; letter-spacing: -.025em; max-width: 88vw; }
.head .w { display: inline-block; vertical-align: top; margin-right: .22em; padding-bottom: .06em; }
.head .w > span { display: inline-block; will-change: transform; }
.head .acc { color: var(--ice); text-shadow: 0 0 40px rgba(199,165,247,.5); }
.facts { position: fixed; left: 6vw; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; max-width: 70vw; pointer-events: none; }
.facts span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px);
  font: 400 11px "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--regolith); opacity: var(--f, 0); transform: translateY(calc((1 - var(--f, 0)) * 14px)); }
.facts span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
.kick { position: fixed; left: 6vw; top: calc(9vh - 6px); z-index: 5; font: 400 11px "JetBrains Mono", monospace; letter-spacing: .34em; text-transform: uppercase; color: var(--ice); }
.title { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; z-index: 4; padding: 0 16px; }
.title h1 { margin: 0; white-space: nowrap; font: 800 min(var(--ts, 11.5vw), 176px) / .9 "Unbounded", sans-serif; letter-spacing: -.03em; }
.title h1 .w { display: inline-block; white-space: nowrap; font-style: normal; }
.title h1 span { display: inline-block; will-change: transform, opacity, filter; background: linear-gradient(180deg, #ffffff 0%, #e6ebf3 45%, #9aa6ba 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title h1 span.os { background: linear-gradient(115deg, #9fe8d6 0%, #c7a5f7 55%, #f3b3cf 100%); -webkit-background-clip: text; background-clip: text; }
.title .tm { font: 400 11px "JetBrains Mono", monospace; letter-spacing: .4em; text-transform: uppercase; color: var(--ice); margin-bottom: 22px; }
.title p { margin: 22px 0 0; font-size: clamp(16px, 2vw, 24px); color: var(--regolith); }
.start { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: #fff;
  font: 700 13px "Space Grotesk", sans-serif; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: border-color .2s, transform .2s; }
.btn:hover { border-color: var(--ice); transform: translateY(-2px); }
.btn.primary { background: linear-gradient(115deg, #e9fbf5, #e2d4fb); color: #08070c; border-color: transparent; box-shadow: 0 0 calc(30px + var(--p, 0) * 30px) rgba(199,165,247,.45); }
.btn svg { width: 18px; height: 18px; }
.box { position: fixed; inset: 0; z-index: 4; display: grid; align-content: center; justify-items: center; gap: clamp(18px, 3vh, 34px); padding: 70px max(16px, 5vw) 90px; opacity: 0; pointer-events: none; perspective: 1400px; }
.box-head { text-align: center; max-width: 900px; display: grid; gap: 12px; justify-items: center; }
.kick2 { font: 400 11px "JetBrains Mono", monospace; letter-spacing: .34em; text-transform: uppercase; color: var(--ice); }
.box h2 { margin: 0; font: 800 clamp(26px, 3.6vw, 58px) / .95 "Unbounded", sans-serif; letter-spacing: -.02em; text-wrap: balance; }
.box h2 em, .finish h2 em { font-style: normal; color: var(--ice); text-shadow: 0 0 40px rgba(199,165,247,.45); }
.box-head p { margin: 0; color: var(--regolith); font-size: clamp(14px, 1.4vw, 18px); line-height: 1.6; max-width: 62ch; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(1100px, 100%); transform-style: preserve-3d; }
.tile { display: grid; gap: 8px; align-content: start; padding: 20px 22px; border-radius: 16px; background: linear-gradient(180deg, rgba(30,24,44,.85), rgba(13,12,20,.85)); border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06); will-change: transform, opacity; }
.tile b { font: 700 clamp(15px, 1.4vw, 19px) "Unbounded", sans-serif; }
.tile span { color: var(--dust); font-size: 14px; line-height: 1.55; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font: 400 11px "JetBrains Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--regolith); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, var(--ice) 35%, transparent 40%), rgba(199,165,247,.12); border: 1px solid var(--line); }
.wins { position: fixed; inset: 0; display: grid; place-content: center; pointer-events: none; opacity: 0; z-index: 4; }
.orbit { position: relative; width: min(70vmin, 620px); aspect-ratio: 1; }
.orbit .ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(199,165,247,.22); transform: scaleY(.62); }
.orbit .core { position: absolute; inset: 36%; display: grid; place-items: center; }
.orbit .core img { width: 100%; filter: drop-shadow(0 0 30px rgba(199,165,247,.5)); }
.win { position: absolute; left: 50%; top: 50%; display: grid; gap: 10px; justify-items: center; width: 160px; margin: -50px 0 0 -80px; }
.win .ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(13,12,20,.85); border: 1px solid rgba(199,165,247,.5); box-shadow: 0 0 30px rgba(199,165,247,.3); }
.win svg { width: 32px; height: 32px; }
.win b { font: 700 18px "Unbounded", sans-serif; white-space: nowrap; }
.finish { position: fixed; inset: 0; display: grid; grid-template-columns: auto minmax(0, 500px); align-items: center; justify-content: center; gap: 4vw; opacity: 0; pointer-events: none; z-index: 4; padding: 0 16px; }
.aboutset { position: relative; width: min(30vw, 420px, (100vh - 200px) * .62); transform-style: preserve-3d; will-change: transform; }
.aboutset.wide { width: min(50vw, 880px, (100vh - 220px) * 1.7); }
.head.long { font-size: clamp(26px, 3.6vw, 62px); }
.aboutset .about { width: 100%; display: block; border-radius: 12px; border: 1px solid rgba(199,165,247,.4); box-shadow: 0 0 60px rgba(199,165,247,.2), 0 40px 100px rgba(0,0,0,.7); }
.aboutset::after { content: ""; position: absolute; inset: 0; border-radius: 12px; background: var(--void); opacity: var(--dim, 0); pointer-events: none; }
.apart { position: absolute; z-index: 1; border-radius: 8px; transform-style: preserve-3d; will-change: transform; opacity: 0; }
.apart img { width: 100%; display: block; border-radius: 8px; border: 1px solid rgba(199,165,247,.7); box-shadow: 0 0 40px rgba(199,165,247,.35), 0 24px 60px rgba(0,0,0,.8); }
.apart .callout { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; gap: 7px; white-space: nowrap; font: 700 clamp(8px, .62vw, 10px) "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); padding: 4px 9px 4px 7px; box-shadow: 0 6px 18px rgba(0,0,0,.6); border-radius: 999px; background: var(--glass); border: 1px solid var(--line); opacity: var(--c, 0); }
.apart .callout::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.finish .buy { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--regolith); font-size: 15px; }
.finish .buy li::before { content: "\2713"; color: var(--ice); margin-right: 10px; }
.finish .buy b { color: #fff; }
.finish .legal { margin: 6px 0 0; max-width: 46ch; font: 400 11px / 1.7 "JetBrains Mono", monospace; letter-spacing: .04em; color: var(--dust); }
.finish .cta { display: grid; gap: 22px; justify-items: start; }
.finish h2 { margin: 0; font: 800 clamp(26px, 3.2vw, 54px) / .98 "Unbounded", sans-serif; letter-spacing: -.02em; }

.finish .row { display: flex; flex-wrap: wrap; gap: 12px; }
.finish .sub { font: 400 11px "JetBrains Mono", monospace; letter-spacing: .26em; text-transform: uppercase; color: var(--dust); }
.top { position: fixed; left: 0; right: 0; top: 0; z-index: 7; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 0 max(18px, env(safe-area-inset-left, 0px)); }
.top a.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 11px "JetBrains Mono", monospace; letter-spacing: .3em; text-transform: uppercase; color: var(--dust); }
.top a.brand img { width: 30px; height: 30px; }
.top a.brand:hover { color: #fff; }
.dock { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 7; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.dock button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--regolith); font: 700 11px "JetBrains Mono", monospace; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.dock button:hover, .dock button[aria-pressed="true"] { background: rgba(199,165,247,.12); color: #fff; }
.dock svg { width: 16px; height: 16px; }
.dock .eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.dock .eq i { width: 2px; background: var(--ice); height: 30%; border-radius: 1px; }
.dock .playing .eq i { animation: eq .9s ease-in-out infinite; }
.dock .eq i:nth-child(2) { animation-delay: .2s; } .dock .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.caption { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 12px); z-index: 6; width: min(820px, calc(100vw - 32px));
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin: 0; padding: 14px 20px; border-radius: 16px; background: rgba(6,10,20,.72); border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  opacity: 0; transition: opacity .45s, transform .45s; pointer-events: none; }
.caption.on { opacity: 1; transform: translate(-50%, 0); }
.caption .who { padding-top: 3px; font: 400 10px "JetBrains Mono", monospace; letter-spacing: .3em; text-transform: uppercase; color: var(--ice); white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.caption .who::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.caption .txt { font: 500 clamp(14px, 1.35vw, 17px) / 1.55 "Space Grotesk", sans-serif; letter-spacing: .005em; color: rgba(201,208,220,.38); }
.caption .txt i { font-style: normal; transition: color .25s; }
.caption .txt i.lit { color: #fff; }
.rail { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: grid; gap: 12px; z-index: 6; }
.rail button { width: 18px; height: 18px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.rail button i { display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(201,208,220,.3); transition: background .3s, transform .3s; }
.rail button.on i { background: var(--ice); transform: scale(1.7); box-shadow: 0 0 10px var(--ice); }
dialog { width: min(640px, calc(100vw - 32px)); max-height: 80vh; border: 1px solid var(--line); border-radius: 18px; background: #070b14; color: #fff; padding: 26px 28px; }
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog h2 { margin: 0 0 14px; font: 700 22px "Unbounded", sans-serif; }
dialog ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--regolith); line-height: 1.6; }
dialog form { margin-top: 18px; text-align: right; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .finish { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; } .finish .cta { justify-items: center; } .finish .about { width: 42vw; }
  .set { width: 92vw; top: 55%; } .part .callout, .apart .callout { display: none; } .rail { display: none; } .tiles { grid-template-columns: 1fr 1fr; } .tile span { display: none; } .facts { max-width: 88vw; } .aboutset { width: 46vw; } .aboutset.wide { width: 86vw; } .dock button span.lbl { display: none; }
  .title h1 { font-size: min(9vw, 54px); white-space: normal; line-height: 1.02; }
  .orbit { width: 72vw; } .win { width: 104px; gap: 6px; margin: -36px 0 0 -52px; } .win .ic { width: 46px; height: 46px; } .win svg { width: 24px; height: 24px; } .win b { font-size: 12px; white-space: normal; text-align: center; line-height: 1.2; }
  .finish { gap: 14px; padding-bottom: 88px; } .finish .aboutset.wide { width: 62vw; } .finish .legal { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .dock .playing .eq i { animation: none; } }

/* Lifted panels: crisp edge and deep shadow; the screenshot behind darkens and softens like depth of field. */
.part::before { display: none; }
.part img, .apart img { border: 1px solid rgba(255,255,255,calc(var(--g, 1) * .16)); border-radius: 8px;
  box-shadow: 0 calc(var(--g, 1) * 34px) calc(var(--g, 1) * 60px) rgba(0,0,0,calc(var(--g, 1) * .8)), 0 0 0 1px rgba(0,0,0,.35); }
.part .scan { opacity: calc(var(--g, 0) * .35); }
.part .callout, .part.below .callout { left: 14px; top: 0; bottom: auto; transform: translateY(calc(-50% + (1 - var(--c, 0)) * 8px)); padding: 5px 11px 5px 8px;
  font-size: clamp(9px, .72vw, 11px); letter-spacing: .14em; box-shadow: 0 8px 22px rgba(0,0,0,.6); }
.apart { filter: none; }

/* Desktop: narration sits in the open space beside the headline, clear of the screenshot. */
@media (min-width: 900px) {
  .set { top: calc(50% + 90px); width: min(78vw, 1200px, (100vh - 300px) * 1.6); }
  .caption { left: auto; right: max(24px, 5vw); top: calc(9vh - 10px); bottom: auto; transform: translateY(-8px); width: min(440px, 30vw); grid-template-columns: 1fr; gap: 8px; padding: 14px 18px; }
  .caption.on { transform: none; }
  .caption .txt { font-size: clamp(13px, 1vw, 15px); }
  .head, .facts { max-width: calc(100vw - 12vw - min(440px, 30vw) - 32px); }
}

.finish .helpline { margin: 0; max-width: 46ch; color: var(--dust); font-size: 13px; line-height: 1.6; }
.finish .helpline a { color: var(--ice); text-underline-offset: 3px; }

/* Film capture: no controls, no real-time transitions; the recorder sets every frame. */
.capture .dock, .capture .rail, .capture .start, .capture .badge { display: none !important; }
.capture *, .capture *::before, .capture *::after { transition: none !important; animation: none !important; }
.capture .helpline { display: none !important; }
@media (max-width: 760px) {
  .capture .set { width: 84vw; top: 53%; }
  .capture .caption { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .capture .finish { align-content: start; padding-top: 12vh; }
  .capture .finish .buy { display: none; }
  .capture .finish { gap: 56px; }
  .capture .finish .aboutset { width: 40vw; }
  .capture .finish .aboutset.wide { width: 78vw; }
}

/* Language picker in the controls bar, and the voice credit in the transcript. */
.dock select { min-height: 40px; padding: 0 30px 0 14px; border: 0; border-radius: 999px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238fe6ff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--regolith); font: 700 11px "JetBrains Mono", monospace; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; appearance: none; -webkit-appearance: none; }
.dock select:hover { background-color: rgba(199,165,247,.12); color: #fff; }
.dock select option { background: #070b14; color: #fff; text-transform: none; letter-spacing: 0; }
dialog .credit { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--dust); }
