@font-face {
  font-family: 'Marvin Visions';
  src: url('fonts/marvin-visions-big-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --base: #0b070d;
  --deep: #060408;
  --panel: #140e17;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.66);
  /* The gold the 3D headline's "in one place." renders as (its #ee960d, lifted by bloom and tone mapping). */
  --accent: #ecbf5f;
  --accent-rgb: 236, 191, 95;
  --accent-line: #ecbf5f;
  --hover: #f7dc9c;
  /* vaporTV's own orange, kept for buttons, links and the hero's eyebrow line. */
  --orange: #ee960d;
  --orange-rgb: 238, 150, 13;
  --orange-link: #fca10f;
  --orange-hover: #f1cb4d;
  --display: 'Marvin Visions', 'Arial Black', sans-serif;
  --body: 'Bricolage Grotesque', system-ui, sans-serif;
  --wrap: 1200px;
  --radius: 14px;
  --crt-white: #fff5ec;
  --vhs-red: #ff3550;
  --glow: 0 0 .07em rgba(255, 244, 236, .45), 0 0 .26em rgba(255, 236, 222, .28), 0 0 .8em rgba(255, 210, 180, .14);
  --glow-sm: 0 0 6px rgba(255, 240, 230, .5), 0 0 16px rgba(255, 230, 215, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--orange-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-hover); }
code { font: 0.9em ui-monospace, monospace; background: rgba(255,255,255,.07); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 3px; border-radius: 6px; }

/* ── A weak signal over everything: fine flickering static and a faint band rolling down the
   screen (hero.js tears the 3D picture where the band passes). Click-through. Off for now:
   add class="signal" to <html> (and set SIGNAL in hero.js) to bring it back. ── */
html.signal body::before, html.signal body::after { content: ''; position: fixed; pointer-events: none; z-index: 60; }
html.signal body::after {
  inset: -128px; opacity: .06; mix-blend-mode: screen;
  background: url('img/static.webp') 0 0 / 256px 256px;
  animation: static .4s steps(1) infinite;
}
@keyframes static {
  0% { transform: translate(0, 0); } 20% { transform: translate(-61px, 37px); } 40% { transform: translate(43px, -88px); }
  60% { transform: translate(-97px, -19px); } 80% { transform: translate(17px, 71px); }
}
html.signal body::before {
  top: 0; left: 0; right: 0; height: 18vh;
  background: linear-gradient(transparent, rgba(255, 255, 255, .03) 45%, rgba(255, 255, 255, .055) 50%, rgba(255, 255, 255, .03) 55%, transparent);
  animation: roll 7s linear infinite;
}
@keyframes roll { from { transform: translateY(-20vh); } to { transform: translateY(120vh); } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--accent); color: #000; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ── Top bar: logo · centred links · download, floating over the hero ── */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 3vw, 36px);
}
.brand { justify-self: start; }
/* The logo takes the links' underline as its own look: a red echo just below the white letters
   (white over red, like the links' two lines), plus the same glow. */
.brand { display: block; }
.brand img {
  display: block; height: 36px; width: auto;
  filter: drop-shadow(0 2px 0 var(--vhs-red)) drop-shadow(0 0 3px rgba(255, 240, 230, .5)) drop-shadow(0 0 8px rgba(255, 230, 215, .25));
  transition: filter .15s;
}
.brand:hover img { filter: drop-shadow(0 2px 0 var(--vhs-red)) drop-shadow(0 0 4px rgba(255, 244, 236, .8)) drop-shadow(0 0 10px rgba(255, 236, 222, .4)); }
.topbar nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
/* Links: Marvin Visions like the logo, with a subtler take on its look: a faint red echo just
   below the letters (where the underline used to be), and a soft glow. */
.topbar nav a, .topbar-cta span {
  font: 700 1.1rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em;
  color: var(--crt-white); text-decoration: none; padding: 6px 0;
  text-shadow: 0 1.5px 0 rgba(255, 53, 80, .55), 0 0 6px rgba(255, 240, 230, .4), 0 0 16px rgba(255, 230, 215, .18);
  transition: color .15s, text-shadow .15s;
}
.topbar nav a:hover, .topbar-cta:hover span { color: #fff; text-shadow: 0 1.5px 0 rgba(255, 53, 80, .75), 0 0 8px rgba(255, 244, 236, .75), 0 0 20px rgba(255, 236, 222, .35); }
.topbar nav a.active { color: var(--accent); text-shadow: 0 1.5px 0 rgba(255, 53, 80, .55), 0 0 8px rgba(var(--accent-rgb), .6), 0 0 18px rgba(var(--accent-rgb), .3); }
.topbar-cta { justify-self: end; display: inline-flex; align-items: center; gap: 10px; color: var(--crt-white); text-decoration: none; }
.topbar-cta svg { filter: drop-shadow(0 1.5px 0 rgba(255, 53, 80, .55)) drop-shadow(0 0 6px rgba(255, 236, 222, .5)); }
.topbar-cta:hover { color: #fff; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1.2rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em;
  padding: 16px 26px; border-radius: 10px; text-decoration: none;
  background: var(--orange); color: #120a03; border: 2px solid var(--orange);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: #120a03; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(var(--orange-rgb), .35); }
.btn-ghost { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-ghost:hover { background: rgba(var(--orange-rgb), .1); color: var(--orange-hover); border-color: var(--orange-hover); box-shadow: none; }
.btn-sm { font-size: 1rem; padding: 11px 18px; }

/* ── Hero: copy on the left, the turning retro PC (hero.js) filling the stage behind ── */
.hero {
  position: relative; isolation: isolate; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto auto; align-items: center;
  /* hero.js sets --hero-left on wide screens so the copy and the model sit centred as a pair. */
  padding: 110px clamp(16px, 5vw, 72px) 28px var(--hero-left, clamp(16px, 9vw, 170px));
}
.hero-copy { position: relative; z-index: 2; width: min(780px, 100%); grid-column: 1; }
/* The 3D studio sits fixed behind everything; the page (main, footer) scrolls over it. */
.hero-stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
main, .footer { position: relative; z-index: 2; }
/* Once the camera is inside the TV (--inside, 0 → 1, set by hero.js), the picture behind the
   content dims and a CRT frame closes round the window. */
.screen-scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: rgba(6, 5, 8, .3); opacity: var(--inside, 0); }
.crt { position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: var(--inside, 0); }
.crt svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: #060507; }
.crt-glass {
  position: absolute; inset: 2.2%; border-radius: 7% / 9%;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .06), transparent 32%),
    radial-gradient(120% 110% at 50% 50%, transparent 60%, rgba(0, 0, 0, .5)),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
/* The hero stays put while the scroll turns the TV and goes into its screen (the runway is the
   scroll room for that). On a short window the hero scrolls just until its bottom shows, then
   locks (hero.js sets --hero-top). It fades out as the camera arrives. */
.runway { height: 140vh; }
.hero { position: sticky; top: var(--hero-top, 0px); opacity: calc(1 - var(--inside, 0)); }
.hero-stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.hero-still {
  position: absolute; right: 5vw; top: 50%; width: min(44vw, 760px);
  transform: translateY(-50%) perspective(1600px) rotateY(-12deg);
  border-radius: 18px; overflow: hidden; border: 10px solid #18111c;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 120px -20px rgba(var(--accent-rgb), .35), 0 30px 60px rgba(0,0,0,.6);
  transition: opacity .8s ease;
}
.hero-stage.is-live canvas { opacity: 1; }
.hero-stage.is-live .hero-still { opacity: 0; }
.eyebrow, .kicker {
  font: 700 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--accent);
  margin: 0 0 16px; text-shadow: 0 0 12px rgba(var(--accent-rgb), .55);
}
/* The hero's eyebrow and its Source on GitHub link take the headline's gold. */
.eyebrow { color: var(--accent); text-shadow: 0 0 12px rgba(var(--accent-rgb), .55); }
.hero .meta a { color: var(--accent); }
.hero .meta a:hover { color: var(--hover); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .98; margin: 0; letter-spacing: .01em; }
/* Headings glow like lit tubes (the hero's own headline is drawn in 3D by hero.js and blooms). */
h1, h2 { color: var(--crt-white); text-shadow: var(--glow); }
h3 { text-shadow: 0 0 12px rgba(255, 236, 222, .3); }
.hero.h1-in-3d h1, .hero.h1-in-3d h1 * { -webkit-text-fill-color: transparent; text-shadow: none; }
h1 { font-size: clamp(3.9rem, 9vw, 8.75rem); max-width: 5.6em; } /* breaks as EVERYTHING / YOU PLAY, / IN ONE PLACE. */
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 22px 0 30px; text-shadow: 0 0 14px rgba(255, 236, 222, .15); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.meta { color: var(--muted); font-size: .95rem; margin: 18px 0 0; }
.scroll-cue {
  grid-column: 1; position: relative; z-index: 2; margin: 28px 0 22px;
  font-size: .95rem; color: var(--crt-white); text-shadow: var(--glow-sm);
}
.scroll-cue::after { content: '↓'; display: inline-block; margin-left: 10px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(4px); } }

.proof {
  grid-column: 1 / -1; position: relative; z-index: 2; list-style: none; padding: 22px 0 0; margin: 12px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line);
  color: var(--muted);
}
.proof b { color: var(--text); }

/* ── Sections ──────────────────────────────────────────────────── */
.section, .closing {
  /* Each section is a card on the TV's screen. */
  width: min(var(--wrap), calc(100% - 2 * clamp(20px, 5vw, 64px))); margin: 0 auto clamp(28px, 4vw, 44px);
  padding: clamp(32px, 5vw, 64px);
  background: rgba(14, 11, 16, .74); border: 1px solid rgba(255, 255, 255, .08); border-radius: 26px;
  backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  scroll-margin-top: 90px;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 18ch; margin-bottom: 44px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }
.small { font-size: .92rem; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps p { color: var(--muted); margin: 0 0 14px; }
.steps p b { color: var(--text); }
.num { display: block; font: 700 3rem/1 var(--display); color: var(--accent); margin-bottom: 18px; }

.needs { margin-top: 20px; background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius); }
.needs summary { cursor: pointer; padding: 20px 28px; font: 700 1.25rem/1 var(--display); text-transform: uppercase; }
.needs dl { margin: 0; padding: 0 28px 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 40px; }
.needs dl div { padding: 14px 0; border-top: 1px solid var(--line); }
.needs dt { font-weight: 800; }
.needs dd { margin: 4px 0 0; color: var(--muted); }

/* Tour */
.tour { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 24px; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 22px; }
.feature h3, .feature p { padding: 0 24px; }
.feature p { color: var(--muted); margin: 0; }
.feature.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 3fr 2fr; align-items: center; padding: 0; }
.feature.wide img { margin: 0; height: 100%; }
.feature.wide > div { padding: 32px 12px; }

.extras { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.extras li { color: var(--muted); padding-left: 18px; border-left: 3px solid var(--accent); }
.extras b { color: var(--text); display: block; }

/* Consoles */
.reel {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30%); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px;
  scrollbar-color: var(--accent) transparent;
}
.reel figure, .backdrops figure { margin: 0; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.reel figcaption, .backdrops figcaption { font: 700 1.1rem/1 var(--display); text-transform: uppercase; padding: 14px 16px; background: var(--deep); }
.backdrops figcaption span { font: 400 .85rem var(--body); text-transform: none; color: var(--muted); margin-left: 6px; }
.sub { margin: 56px 0 22px; font-size: 1.6rem; }
.backdrops { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.backdrops img { aspect-ratio: 4 / 3; object-fit: cover; }
.reel img { transition: transform .5s; }
.reel figure:hover img { transform: scale(1.05); }

/* Controller */
.pad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.pad-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.pad-row span { margin-left: 8px; color: var(--text); }
.pad-row.hold { grid-column: 1 / -1; }
kbd {
  font: 700 1rem/1 var(--display); min-width: 44px; height: 44px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid rgba(255,255,255,.16); border-bottom-width: 3px; border-radius: 22px; color: var(--accent-line);
}
.note { color: var(--muted); margin-top: 24px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-weight: 800; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font: 700 1.8rem/1 var(--display); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--muted); max-width: 60em; }

/* Closing */
.closing {
  text-align: center; position: relative; overflow: hidden;
  background: url('img/hero.webp') center / cover no-repeat, var(--deep);
}
.closing::before { content: ''; position: absolute; inset: 0; background: rgba(11, 7, 13, .66); }
.closing > * { position: relative; }
.closing h2 { margin: 0 auto 18px; max-width: none; }
.closing p { color: var(--muted); max-width: 36em; margin: 0 auto 28px; }
.closing .ctas { justify-content: center; }
.closing .meta { margin-top: 20px; }

.footer { max-width: var(--wrap); margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px) 64px; color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 20px; }
.footer-links a { font: 700 1rem/1 var(--display); text-transform: uppercase; color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--orange-hover); }

/* ── Responsive ────────────────────────────────────────────────── */
/* ── Feature pillars ───────────────────────────────────────────── */
.glance { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.nowrap { white-space: nowrap; }
.glance a {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 18px 18px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  font: 700 1.1rem/1.05 var(--display); text-transform: uppercase; color: var(--text); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.glance a > span:first-child { color: var(--accent); font-size: 1.6rem; }
.glance a:hover { border-color: rgba(var(--orange-rgb), .6); color: var(--orange-hover); transform: translateY(-2px); }
#features h2 { margin-bottom: 28px; }

.pillar { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.pillar.flip > .pillar-copy { order: 2; }
.pillar h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 20px; }
.pillar .lede { margin: 0 0 22px; font-size: 1.1rem; }
.pillar-wide { grid-column: 1 / -1; order: 3; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.points li { color: var(--muted); padding-left: 16px; border-left: 3px solid var(--orange); line-height: 1.5; }
.points b { color: var(--text); }
.shot { margin: 0; }
.shot img { border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.shot figcaption { color: var(--muted); font-size: .88rem; margin-top: 10px; text-align: center; }

/* The video player's controls, drawn as the player draws them */
.osd { background: linear-gradient(180deg, #1a1220, #0b070d); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.osd-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.osd-played { position: absolute; inset: 0 38% 0 0; border-radius: 3px; background: var(--orange); }
.osd-knob { position: absolute; left: 62%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(var(--orange-rgb), .35); }
.osd-time { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; margin: 10px 0 22px; font-variant-numeric: tabular-nums; }
.keys { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.keys li { display: flex; align-items: center; gap: 8px; color: var(--text); }
.keys kbd { min-width: 40px; height: 40px; margin-right: 4px; }
kbd.inline { min-width: 30px; height: 30px; font-size: .9rem; padding: 0 8px; vertical-align: middle; }

.formats { margin: 0; display: grid; gap: 10px; }
.formats div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.formats dt { font: 700 1.1rem/1 var(--display); text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.formats dd { margin: 0; color: var(--text); }
.pillar .pad { margin-top: 8px; }
.pillar .reel, .pillar .backdrops { margin-top: 8px; }

@media (max-width: 1000px) {
  .pillar { grid-template-columns: 1fr; }
  .glance { grid-template-columns: repeat(4, 1fr); }
  .pillar.flip > .pillar-copy { order: 0; }
  .hero { grid-template-columns: 1fr; padding-top: calc(70px + 44svh); }
  .runway { height: 110vh; }
  .crt-glass { border-radius: 9% / 5%; }
  .hero-still { top: calc(50% + 32px); left: 50%; right: auto; width: min(86vw, 620px); transform: translate(-50%, -50%); }
  .steps, .extras { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-template-columns: 1fr; }
  .feature.wide > div { padding: 0 12px 24px; }
  .backdrops { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .proof, .steps, .extras, .tour, .pad, .needs dl { grid-template-columns: 1fr; }
  .glance { grid-template-columns: 1fr 1fr; }
  .backdrops { grid-template-columns: 1fr 1fr; }
  .reel { grid-auto-columns: 78%; }
  .hero-still { border-width: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .scroll-cue::after, body::after { animation: none; }
  body::before { display: none; }
}
