:root {
  color-scheme: dark;
  --ink: #141615;
  --green: #acff37;
  --paper: #f3f0e6;
  --edge: clamp(20px, 3.7vw, 80px);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  background: var(--ink);
  color: var(--paper);
}
html {
  --section-height: calc(100svh - var(--site-header-height, 96px));
  scroll-padding-top: var(--site-header-height, 96px);
  scroll-snap-type: y mandatory;
}
main > section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
footer { scroll-snap-align: end; }
* { box-sizing: border-box; }
body, p, h1, h2 { margin: 0; }
button, a { color: inherit; font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
header { padding-inline: var(--edge); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: clamp(68px, 9svh, 96px);
  background: var(--ink);
  box-shadow: 0 1px 0 rgb(243 240 230 / 10%);
}
.brand, .brand-wordmark { font-weight: 800; letter-spacing: -.085em; }
.brand { display: inline-flex; align-items: baseline; gap: .23em; font-size: clamp(32px, 3vw, 46px); text-decoration: none; line-height: 1; }
.languages { display: flex; align-items: center; gap: 3px; font: 13px ui-monospace, Menlo, monospace; }
.languages button { min-height: 44px; min-width: 44px; border: 0; background: transparent; }
.languages span { color: #969992; }
.languages button[aria-pressed="true"] { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 56px; background: var(--green); color: var(--ink); border: 0; padding: 14px 20px; font-size: 16px; font-weight: 650; }
.cta:focus-visible { outline-color: var(--paper); }
.cta:hover { background: var(--paper); }
.cta span[aria-hidden] { font-size: 24px; line-height: 1; }
/* Long-form layout */
.jump { display: flex; align-items: center; gap: 2rem; font-size: 15px; }
.jump a, footer a, a.cta { text-decoration: none; }
.jump a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.chapter { padding: clamp(65px, 8vw, 144px) var(--edge); }
.chapter h2 { max-width: 17ch; font-size: clamp(44px, 6.4vw, 108px); line-height: .98; font-weight: 650; letter-spacing: -.065em; text-wrap: balance; }
.kicker { margin-bottom: clamp(20px, 3vw, 48px); font: 600 13px/1.3 ui-monospace, Menlo, monospace; letter-spacing: .025em; text-transform: uppercase; }
.spread { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 6vw; }
.spread > p, .body-copy { max-width: 42ch; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.4; letter-spacing: -.028em; }
figure { margin: 0; }
.experience { padding-block: 0; }
.experience-intro {
  display: grid;
}
.experience-intro, .how, .registration {
  align-content: center;
  min-block-size: var(--section-height);
  padding-block: clamp(32px, 6svh, 96px);
}
.experience .scene { margin-top: 0; }
.experience .kicker, .ecosystem .kicker { color: var(--green); }
.scene { margin: clamp(28px, 4vw, 70px) calc(-1 * var(--edge)) 0; overflow: hidden; background: #261e14; }
.scene img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .scene.in-view img { animation: settle 1.4s ease-out both; }
  @keyframes settle { from { transform: scale(1.025); } to { transform: scale(1); } }
}
.library { background: #ebe9df; color: var(--ink); display: grid; grid-template-columns: 1fr .78fr; align-items: center; gap: clamp(50px, 9vw, 180px); }
.library .body-copy { margin-top: 24px; }
.shelf { margin-top: clamp(28px, 4vw, 70px); border-top: 1px solid #a5a69c; }
.shelf button { display: flex; align-items: center; justify-content: space-between; width: 100%; background: transparent; color: inherit; padding: 17px 10px; border: 0; border-bottom: 1px solid #a5a69c; text-align: left; }
.shelf button > span { font-size: clamp(20px, 2.1vw, 36px); letter-spacing: -.045em; }
.shelf button[aria-pressed="true"] { box-shadow: inset 4px 0 var(--ink); background: #d7dccd; padding-left: 18px; }
.shelf small, .record small { font: 13px/1.4 ui-monospace, Menlo, monospace; }
.record { background: var(--ink); color: var(--paper); }
.cover { aspect-ratio: 1; background-image: url(assets/library.webp); background-size: 300% 100%; background-position: left; }
.record[data-active="1"] .cover { background-position: center; }
.record[data-active="2"] .cover { background-position: right; }
.record figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 15px 20px; }
.record strong { font-size: clamp(25px, 2.9vw, 50px); font-weight: 650; letter-spacing: -.05em; }
.technology { border-bottom: 1px solid #50554e; }
.portal-home { color: var(--green); font-weight: 650; letter-spacing: -.065em; }
.technology h2 { max-width: 19ch; color: var(--green); font-size: clamp(50px, 7.5vw, 130px); }
.technology .body-copy { margin: 38px 0 0 auto; }
.how {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 6vw;
}
.how .kicker { color: var(--green); }
.how .kicker, .experience .kicker { font-size: clamp(16px, 1.35vw, 22px); }
.how h2, .experience h2 { font-size: clamp(42px, 5.2vw, 90px); }
.how ol { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.how li { counter-increment: step; border-top: 1px solid #50554e; padding: 22px 0; display: flex; gap: 25px; }
.how li::before { content: counter(step, decimal-leading-zero); flex: 0 0 2ch; font: 600 clamp(20px, 1.85vw, 30px)/1.2 ui-monospace, Menlo, monospace; color: var(--green); }
.how h3 { margin: 0 0 8px; font-size: clamp(23px, 2.4vw, 38px); letter-spacing: -.045em; }
.how li p { max-width: 43ch; line-height: 1.5; color: #c6c9c1; }
.ecosystem { background: #272b27; }
.ecosystem h2 { font-size: clamp(52px, 7.6vw, 140px); font-weight: 420; }
.eco-brand { font-weight: 800; letter-spacing: -.085em; }
.registration { background: var(--green); color: var(--ink); display: grid; grid-template-columns: 1fr .72fr; gap: 6vw; align-items: center; }
.fine { max-width: 48ch; font-size: 14px; line-height: 1.45; }
footer { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 36px var(--edge); }
@media (max-width: 760px) {
  .jump { display: none; }
  .spread, .library, .how, .registration { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .record { width: min(100%, 500px); }
  .technology .body-copy { margin-left: 0; }
  .scene img { min-height: 275px; object-fit: cover; object-position: 54% center; }
  .chapter h2 { max-width: 100%; }
}

/* The frame recedes inside a fixed stage; the copy stays in document text. */
.opening { --pull: 0; height: 145svh; min-height: 710px; background: #131615; }
.stage { position: sticky; top: 0; height: min(88svh, 980px); min-height: 460px; overflow: hidden; isolation: isolate; display: flex; align-items: end; }
.screen { position: absolute; inset: 0; z-index: -2; background: #090c0d; transform-origin: 72% 34%; transform: scale(calc(1 - .47 * var(--pull))); box-shadow: 0 0 0 7px #333837,0 0 0 10px #0b0c0b; }
.screen::after { content: ''; position: absolute; top: 100%; left: 50%; width: 22%; height: 22px; background: #484d4b; clip-path: polygon(45% 0,55% 0,56% 68%,100% 80%,100% 100%,0 100%,0 80%,44% 68%); }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; transform: scale(var(--bank-scale,1)) rotate(var(--bank,0deg)); }
.screen { overflow: visible; }
.opening-copy { margin-bottom: 3.2vw; padding: 22px var(--edge) 26px; background: #121514; max-width: min(66%,980px); }
h1 { margin: 0; font-size: clamp(46px,6.7vw,118px); line-height: .93; letter-spacing: -.067em; font-weight: 700; }
h1 span { display: block; }
.opening-copy > p { max-width: 39ch; margin: 16px 0 20px; font-size: clamp(16px,1.5vw,24px); line-height: 1.3; }
.controller { position: absolute; width: clamp(145px,24vw,460px); height: auto; right: 6%; bottom: 8%; pointer-events: none; opacity: var(--pull); transform: translateY(calc((1 - var(--pull)) * 45%)) rotate(-7deg); }
.film-tools { position: absolute; right: var(--edge); bottom: 18px; padding: 5px 5px 5px 13px; display: flex; align-items: center; gap: 14px; background: #141615; color: var(--paper); }
.film-name { font: italic 24px Georgia,serif; }
.film-control,.index-tools button,.library-actions button,.signal button,dialog button { border: 1px solid #828780; color: inherit; background: transparent; min-height: 44px; padding: 8px 14px; }
.film-control:hover,.signal button:hover { color: var(--green); }
.index-tools[hidden],.film-tools[hidden] { display: none; }
.opening[data-cut="library"],.opening[data-cut="input"] { height: auto; min-height: 0; }
[data-cut="library"] .stage { align-items: center; background: #e8e6dc; color: var(--ink); }
[data-cut="library"] .opening-copy { width: 47%; background: transparent; margin-bottom: 0; }
[data-cut="library"] h1 { font-size: clamp(45px,5.3vw,96px); }
[data-cut="library"] .screen { inset: 7% 5% 17% 52%; transform: none; box-shadow: none; background-image: url(assets/library.webp); background-size: 300% 100%; }
[data-cut="library"] .screen img,[data-cut="library"] .screen::after { display: none; }
.index-tools { position: absolute; inset: auto 5% 7% 52%; display: flex; flex-wrap: wrap; gap: 4px; }
.index-tools button { color: var(--ink); border-color: #4e544d; }
.index-tools button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
[data-cut="input"] .stage { background: #1e2523; align-items: flex-start; }
[data-cut="input"] .screen { inset: 12% -4% 6% 42%; transform: rotate(-4deg); overflow: hidden; }
[data-cut="input"] .opening-copy { width: 45%; background: transparent; margin-top: 4%; }
[data-cut="input"] h1 { font-size: clamp(44px,5.5vw,94px); }
[data-cut="input"] .controller { left: 12%; bottom: 3%; transform: rotate(10deg); opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .screen img { transition: transform .55s ease; } }
@media (max-width: 760px) {
  .opening { height: 125svh; min-height: 750px; }
  .stage { height: 88svh; min-height: 525px; }
  .screen { bottom: 24%; transform-origin: 52% 14%; }
  .opening-copy { max-width: 100%; width: 100%; margin-bottom: 0; padding: 22px var(--edge) 18px; }
  h1 { font-size: clamp(39px,10vw,72px); }
  .opening-copy > p { margin: 12px 0 17px; }
  .film-tools { top: 12px; bottom: auto; right: 10px; }
  .controller { right: 6%; bottom: 44%; }
  [data-cut="library"] .stage,[data-cut="input"] .stage { align-items: end; height: auto; min-height: 730px; }
  [data-cut="library"] .screen { inset: 3% 8% 50%; }
  .index-tools { inset: 51% auto auto 8%; }
  [data-cut="library"] .opening-copy,[data-cut="input"] .opening-copy { width: 100%; max-width: 100%; margin: 0; }
  [data-cut="input"] .screen { inset: 10% -3% 39% 4%; }
  [data-cut="input"] .controller { width: 40%; bottom: 34%; left: 58%; }
}
@media (prefers-reduced-motion: reduce) { .opening { height: auto; min-height: 0; } }

[data-cut="camera"] .stage::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(80deg,rgba(8,13,13,.95),rgba(8,13,13,.68) 34%,transparent 65%); }
[data-cut="camera"] .opening-copy { background: transparent; }
[data-cut="camera"] .screen { transform-origin: 97% 24%; }
.library-actions,.signal-bottom,.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.library-actions { margin-top: 16px; justify-content: flex-start; }
.library-actions button { color: var(--ink); border-color: var(--ink); }
.library-actions #launch,.library-actions button[aria-pressed=true] { background: var(--ink); color: var(--paper); }
.shelf .saved > span::after { content: ' ★'; font-size: .65em; }
#game-preview { width: min(520px,90vw); max-height: 90svh; padding: 0; border: 1px solid #51564e; background: var(--ink); color: var(--paper); }
#game-preview::backdrop { background: rgb(4 7 7 / 85%); }
#game-preview .cover { max-height: 58svh; }
.preview-bar { padding: 16px 20px; }
.preview-bar small,.signal-bottom p { font: 13px/1.5 ui-monospace,Menlo,monospace; }
.signal { margin-top: 4rem; }
.signal-ends { display: flex; justify-content: space-between; border-bottom: 1px solid #b5bcb2; padding-bottom: 8px; font-size: clamp(20px,3vw,38px); }
.track { position: relative; padding: 15px 0; border-bottom: 1px solid #626b61; text-align: left; }
.track.return { text-align: right; }
.track i { position: absolute; left: 0; bottom: -2px; width: 4%; height: 3px; background: var(--green); }
.return i { left: 96%; }
.signal-bottom { margin-top: 22px; }
.signal-bottom p { color: var(--green); }
.beta-availability { display: grid; gap: .75rem; }
.registration .beta-terms { font-size: clamp(22px, 2vw, 30px); font-weight: 650; }
.beta-availability > p:last-child { max-width: 38ch; line-height: 1.5; }
.scene { background: #171c1f; }
@media (max-width:760px) {
  [data-cut="camera"] .opening-copy { background: var(--ink); }
  [data-cut="camera"] .stage::before { display: none; }
  [data-cut="camera"] .screen { transform-origin: 55% 12%; }
  .jump { display: flex; grid-column: 1/-1; grid-row: 2; gap: 1.4rem; padding: 6px 0 12px; font-size: 14px; }
  header { display: grid; grid-template-columns: 1fr auto; row-gap: 0; padding-top: 8px; }
}
.screen-glass { width: 100%; height: 100%; overflow: hidden; }
