@font-face { font-family: "Orbitron"; src: url("../fonts/Orbitron.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/SpaceGrotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 12px 18px; font-weight: 500; transition: top 0.2s; }
.skip-link:focus { top: 16px; }

:root {
  --bg: #000;
  --fg: #f5f5f5;
  --muted: #8f8f8f;
  --panel: #0d0d0d;
  --border: rgba(255, 255, 255, 0.14);
  --control: rgba(255, 255, 255, 0.42);
  --font-display: "Orbitron", "Arial", sans-serif;
  --font-sans: "Space Grotesk", "Arial", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
  --pad: clamp(24px, 4vw, 48px);
}

* { box-sizing: border-box; min-width: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 60px); line-height: 1.05; }
h3 { font-size: 18px; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

a:focus-visible, button:focus-visible, summary:focus-visible, input[type="range"]:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--font-mono); font-size: 14px; }
.lead { margin-top: 24px; max-width: 34rem; }

.link { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--border); }
.link:hover { text-decoration-color: var(--fg); }

/* background scene */
.scene { position: fixed; inset: 0; z-index: 0; background: #000; }
.scene canvas { display: block; width: 100%; height: 100%; }
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.7));
}

main, .footer { position: relative; z-index: 20; }

/* header */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-size: 14px; letter-spacing: 0.3em; white-space: nowrap; }
.topnav { display: none; gap: 24px; }
.topnav a, .subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.topnav a:hover, .subnav a:hover { color: var(--fg); }
.subnav {
  position: fixed;
  inset: 76px 0 auto 0;
  z-index: 30;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; letter-spacing: 0.2em; }
@media (min-width: 1024px) {
  .topnav { display: flex; }
  .subnav { display: none; }
}

/* buttons */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
}
.btn-primary { background: var(--fg); color: #000; border: 0; }
.btn-primary:hover { box-shadow: 0 0 40px rgba(255, 255, 255, 0.35); }
.btn-ghost { border: 1px solid var(--control); background: transparent; color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-small { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.btn-primary, .btn-ghost { min-height: 44px; }
.btn-center { justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad) 96px;
}
.hero-text { max-width: 42rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero .eyebrow { margin-bottom: 24px; letter-spacing: 0.4em; }
.hero h1 { font-size: clamp(46px, 7vw, 72px); line-height: 0.95; }
.outline { color: transparent; -webkit-text-stroke: 1px var(--fg); }
.hero-sub { margin-top: 32px; max-width: 28rem; color: var(--muted); }
.hero .btn-row { margin-top: 40px; gap: 16px; }
.hero-readout {
  display: none;
  position: absolute;
  right: var(--pad);
  bottom: 32px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 0.3em;
  color: var(--muted);
}
@media (min-width: 768px) {
  .hero { align-items: center; padding-bottom: 0; }
  .hero-readout { display: block; }
}
@media (max-width: 767px) {
  .hero { background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.85) 45%, transparent 75%); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(30px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
.rise { animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* bands */
.band { padding: 96px var(--pad); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.band-60 { background: rgba(0, 0, 0, 0.6); }
.band-70 { background: rgba(0, 0, 0, 0.7); }
.band-85 { background: rgba(0, 0, 0, 0.85); }
.band-90 { background: rgba(0, 0, 0, 0.9); }
.bordered { border-top: 1px solid var(--border); }
.title-block { margin-bottom: 56px; max-width: 36rem; }
.split { display: grid; gap: 16px; margin-bottom: 56px; }
.split p { max-width: 40rem; font-size: 18px; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); }
.stat { background: var(--bg); padding: 24px; }
.stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stat-value { font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); line-height: 1.1; }
.stat-label { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.source { margin-top: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em; color: var(--muted); }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:last-child:nth-child(odd) { grid-column: auto; }
  .stat { padding: 32px; }
}

/* rows */
.rows { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rows > * + * { border-top: 1px solid var(--border); }

.tool { display: grid; gap: 12px; padding: 24px 0; }
.tool .btn-ghost { justify-self: start; }
@media (min-width: 768px) {
  .tool { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; align-items: center; gap: 32px; padding: 24px 16px; }
}

/* game showcases: Steam screenshot slideshows */
.games-head { padding-bottom: 56px; }
.game-hero {
  position: relative;
  background: #000;
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 80px) var(--pad);
  display: grid;
  gap: 32px;
}
.game-media { position: relative; overflow: hidden; background: #0a0a0a; border: 1px solid var(--border); align-self: start; }
.game-media > img { display: block; width: 100%; height: auto; }
.slideshow { aspect-ratio: 16 / 9; }
.slideshow .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000;
  opacity: 0; transform: translateX(4%) scale(1.02);
  transition: opacity 0.9s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.slideshow .slide.is-active { opacity: 1; transform: none; }
.slideshow .slide.is-leaving { opacity: 0; transform: translateX(-4%) scale(1.02); }
.slide-ui {
  position: absolute; left: 12px; bottom: 16px; z-index: 2;
  display: flex; align-items: center; gap: 4px;
  background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
}
.slide-btn, .slide-pause { min-width: 44px; height: 44px; background: transparent; border: 0; color: var(--fg); font-size: 16px; cursor: pointer; }
.slide-btn:hover, .slide-pause:hover { background: rgba(255, 255, 255, 0.12); }
.slide-pause { background: transparent; border: 0; border-left: 1px solid var(--border); color: var(--fg); padding: 0 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; }
.slide-count { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--muted); padding: 0 6px; }
.slide-count b { color: var(--fg); font-weight: 400; }
.slide-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.15); z-index: 2; }
.slide-progress span { display: block; height: 100%; width: 0; background: var(--fg); }
.slideshow.is-running .slide-progress span { animation: progress var(--interval, 4.5s) linear forwards; }
@keyframes progress { from { width: 0; } to { width: 100%; } }

.game-media, .game-content, .filmstrip { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.game-hero.is-visible .game-media, .game-hero.is-visible .game-content, .game-hero.is-visible .filmstrip { opacity: 1; transform: none; }
.game-hero.is-visible .game-content { transition-delay: 0.15s; }
.game-hero.is-visible .filmstrip { transition-delay: 0.3s; }
.game-content { display: grid; gap: 14px; align-content: center; }
.capsule { width: min(100%, 360px); height: auto; border: 1px solid var(--border); margin-bottom: 6px; }
.game-content h3 { font-size: clamp(32px, 4vw, 56px); line-height: 1; }
.game-text { color: rgba(245, 245, 245, 0.8); max-width: 34rem; font-size: 17px; }
.filmstrip { -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.film-thumb { flex: none; width: 220px; margin-right: 10px; padding: 0; border: 1px solid var(--border); background: #0a0a0a; cursor: pointer; opacity: 0.65; transition: opacity 0.3s, border-color 0.3s; }
.film-thumb img { display: block; width: 100%; height: auto; }
.film-thumb:hover, .film-thumb.is-current { opacity: 1; border-color: var(--fg); }
@media (min-width: 900px) {
  .game-hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 56px; max-width: 1500px; margin: 0 auto; }
  .game-hero.right .game-media { order: 2; }
  .filmstrip { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 599px) { .film-thumb { width: 150px; } }

/* full colour photos with a soft zoom */
.photo { transition: transform 0.8s ease; }
.tv:hover .photo, .tv:focus-visible .photo { transform: scale(1.04); }

/* trailers */
.trailers { display: grid; gap: 32px; }
@media (min-width: 768px) { .trailers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tv {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  background: #111;
  cursor: pointer;
}
.tv img, .tv iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  transition: background 0.3s;
}
.play-btn::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 21px;
  border-left: 16px solid var(--fg);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.tv:hover .play-btn { background: rgba(255, 255, 255, 0.15); }
.trailer-cap { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.trailer-cap .link { font-size: 14px; color: var(--muted); }

/* cells */
.cells { display: grid; gap: 1px; background: var(--border); margin-top: 48px; }
#services .cells { margin-top: 0; }
.cell { background: var(--bg); padding: 32px; margin: 0; }
.cell .muted { margin-top: 12px; }
@media (min-width: 640px) { .cells-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cells-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.6; }
.quote figcaption { margin-top: 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--muted); }


/* steam reviews */
.reviews-head { margin-bottom: 24px; align-items: baseline; }
.sub-title { font-size: clamp(22px, 2.4vw, 30px); }
.review-wall { columns: 3 300px; column-gap: 16px; }
.steam-review {
  break-inside: avoid;
  margin: 0 0 16px;
  padding: 20px 22px;
  background: linear-gradient(180deg, #1b2838 0%, #16202d 100%);
  border: 1px solid #2a475e;
  color: #c7d5e0;
}
.sr-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: #fff; }
.sr-head .thumb {
  width: 34px; height: 34px; flex: none;
  background: #66c0f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231b2838' d='M2 21h4V9H2v12zm20-11c0-1.1-.9-2-2-2h-6.3l1-4.6v-.3c0-.4-.2-.8-.4-1.1L13.2 1 6.6 7.6C6.2 7.9 6 8.4 6 9v10c0 1.1.9 2 2 2h9c.8 0 1.5-.5 1.8-1.2l3-7.1c.1-.2.2-.5.2-.7v-2z'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.sr-hours { width: 100%; padding-left: 44px; margin-top: -8px; font-size: 12px; color: #8f98a0; }
.steam-review blockquote { margin: 14px 0 12px; font-size: 16px; line-height: 1.55; color: #e5ecf2; }
.steam-review figcaption { font-size: 13px; color: #8f98a0; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.steam-review figcaption span { color: #c7d5e0; }
.steam-review .link { color: #66c0f4; text-decoration-color: rgba(102, 192, 244, 0.4); }

.tv video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.tv video:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }
.tv-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; background: rgba(0, 0, 0, 0.85); color: var(--fg); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

/* endless sliders */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee var(--duration, 40s) linear infinite;
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee-wrap.is-paused .marquee-track { animation-play-state: paused; }
.marquee-toggle {
  min-height: 44px; padding: 0 16px;
  background: transparent; color: var(--muted); border: 1px solid var(--control); cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
.marquee-toggle:hover { color: var(--fg); border-color: var(--fg); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-row { align-items: stretch; }
.review-row .steam-review { width: 340px; flex: none; margin: 0 16px 0 0; display: flex; flex-direction: column; }
.review-row .steam-review blockquote { flex: 1; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
}

/* price calculator */
.calc-intro { display: grid; gap: 16px; margin-bottom: 40px; }
.calc-intro p { max-width: 40rem; font-size: 18px; }

.packs { display: grid; gap: 16px; margin-bottom: 40px; }
@media (min-width: 760px) { .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pack {
  position: relative; display: grid; gap: 10px; align-content: start; text-align: left;
  padding: 28px 26px 26px; background: #080808; color: var(--fg);
  border: 1px solid var(--control); cursor: pointer; font: inherit;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.pack:hover { border-color: var(--fg); transform: translateY(-3px); }
.pack-name { font-family: var(--font-display); font-size: 20px; }
.pack-price { font-family: var(--font-display); font-size: clamp(34px, 3.4vw, 44px); line-height: 1; }
.pack-points { display: grid; gap: 6px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.pack-points span::before { content: "+ "; color: var(--fg); }
.pack-flag { position: absolute; top: -1px; right: -1px; background: var(--fg); color: #000; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; padding: 5px 10px; }
.pack-star { border-color: rgba(255, 255, 255, 0.45); }
.pack[aria-pressed="true"] { background: var(--fg); color: #000; border-color: var(--fg); }
.pack[aria-pressed="true"] .pack-points { color: #333; border-color: rgba(0, 0, 0, 0.2); }
.pack[aria-pressed="true"] .pack-points span::before { color: #000; }
.pack[aria-pressed="true"] .pack-flag { background: #000; color: var(--fg); }

.calc { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .calc { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 32px; } }
.config { border: 1px solid var(--border); background: rgba(8, 8, 8, 0.9); }
.config-title { padding: 18px 24px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.row { display: grid; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.row:last-of-type { border-bottom: 0; }
@media (min-width: 700px) {
  .row { grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: center; }
}
.row-label { display: grid; gap: 4px; }
.row-label b { font-weight: 500; font-size: 16px; }
.row-label output { font-family: var(--font-display); font-size: 15px; color: var(--muted); }
.row-split { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
@media (min-width: 700px) { .row-split { grid-template-columns: 170px minmax(0, 1fr); } .row-split .stepper { justify-self: start; } }

.chips { display: grid; gap: 8px; }
.chips-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 320px; }
.chips-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips-genre { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.chip { position: relative; cursor: pointer; display: block; }
.chip input, .switch input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; height: 100%;
  padding: 12px 14px; border: 1px solid var(--control); background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chips-genre .chip > span, .chips-2 .chip > span { align-items: center; text-align: center; padding: 14px 8px; }
.chip svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.chip b { font-weight: 500; font-size: 14px; }
.chip small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.chip:hover > span { border-color: var(--fg); }
.chip input:checked + span { background: var(--fg); color: #000; border-color: var(--fg); }
.chip input:checked + span small { color: #444; }
.chip input:focus-visible + span, .switch input:focus-visible + .switch-ui { outline: 1px solid var(--fg); outline-offset: 3px; }
@media (max-width: 520px) { .chips-3 { grid-template-columns: minmax(0, 1fr); } }

.switches { display: grid; gap: 4px 24px; }
@media (min-width: 640px) { .switches { grid-template-columns: 1fr 1fr; } }
.switch { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0; min-height: 44px; cursor: pointer; font-size: 15px; }
.switch-ui { position: relative; width: 40px; height: 22px; flex: none; border: 1px solid var(--muted); border-radius: 999px; transition: background 0.2s, border-color 0.2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform 0.2s, background 0.2s; }
.switch input:checked + .switch-ui { background: var(--fg); border-color: var(--fg); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); background: #000; }
.switch input:checked ~ .switch-label { color: var(--fg); }
.switch-label { color: rgba(245, 245, 245, 0.75); }
.features { display: grid; gap: 14px; }
.included { font-size: 14px; color: var(--muted); padding-top: 12px; border-top: 1px dashed var(--border); }

.range-wrap { display: grid; gap: 6px; }
.range-wrap input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none; height: 4px; outline: none; margin: 8px 0 4px;
  background: linear-gradient(to right, var(--fg) var(--fill, 0%), var(--control) var(--fill, 0%));
}
.range-wrap input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--fg); cursor: pointer; border: 5px solid #000; box-shadow: 0 0 0 1px var(--fg); }
.range-wrap input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--fg); cursor: pointer; border: 5px solid #000; box-shadow: 0 0 0 1px var(--fg); }
.range-wrap input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--fg); }
.ticks { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }

.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--control); }
.step-btn { width: 44px; height: 44px; background: transparent; border: 0; color: var(--fg); font-size: 20px; cursor: pointer; }
.step-btn:hover { background: rgba(255, 255, 255, 0.1); }
.step-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.stepper input { width: 56px; text-align: center; background: transparent; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); color: var(--fg); font: 18px var(--font-display); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc-summary { position: sticky; top: 92px; display: grid; gap: 14px; padding: 28px; border: 1px solid var(--fg); background: #070707; }
.calc-price { font-family: var(--font-display); font-size: clamp(48px, 5.2vw, 68px); line-height: 1; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.calc-meta { color: var(--muted); font-size: 14px; }
.calc-badge { justify-self: start; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #000; background: var(--fg); padding: 6px 12px; }
.calc-warn { font-size: 14px; color: var(--muted); border-left: 2px solid var(--fg); padding-left: 12px; }
.meter { position: relative; height: 6px; background: var(--border); margin-top: 8px; }
.meter-fill { height: 100%; background: var(--fg); width: 0; transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.meter-mark { position: absolute; top: -4px; width: 1px; height: 14px; background: var(--fg); }
.meter-labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; color: var(--muted); }
.calc-details summary { cursor: pointer; font-size: 14px; color: var(--muted); padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--border); }
.calc-details summary:hover { color: var(--fg); }
.calc-lines { margin: 8px 0 0; display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--border); }
.calc-lines dt, .calc-lines dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.calc-lines dt { color: var(--muted); }
.calc-lines dd { text-align: right; font-variant-numeric: tabular-nums; }
.calc-mini { display: none; }
@media (max-width: 999px) {
  .calc-summary { position: static; }
  .calc-mini {
    display: flex; justify-content: space-between; align-items: baseline;
    position: sticky; bottom: 0; z-index: 25;
    padding: 14px 18px; background: var(--fg); color: #000;
  }
  .calc-mini span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
  .calc-mini b { font-family: var(--font-display); font-weight: 400; font-size: 24px; }
}

/* journey */
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.journey li { border-top: 1px solid var(--fg); padding-top: 24px; }
.journey .year { font-family: var(--font-display); font-size: 36px; }
.journey p { margin-top: 16px; }
@media (min-width: 768px) { .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* company */
.company { display: grid; gap: 48px; }
.company .btn-row { margin-top: 32px; }
.facts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--border); }
.facts dt { padding-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; padding: 4px 0 12px; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) {
  .facts { grid-template-columns: 180px minmax(0, 1fr); }
  .facts dt, .facts dd { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--border); }
}
@media (min-width: 768px) { .company { grid-template-columns: 1fr 1.3fr; } }

/* contact */
.contact { max-width: 64rem; margin: 0 auto; display: grid; gap: 48px; }
.contact .lead { margin-bottom: 24px; }
@media (min-width: 768px) { .contact { grid-template-columns: 1fr 1.2fr; } }
.form { display: grid; gap: 16px; }
.form-pair { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-pair { grid-template-columns: 1fr 1fr; } }
.field {
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font: 16px var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--control);
  border-radius: 0;
  padding: 0.8rem 1rem;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--fg); }
.field select option { background: #000; }

/* footer */
.footer { padding: 64px var(--pad) 32px; border-top: 1px solid var(--border); background: var(--bg); color: var(--muted); }
.foot-grid { display: grid; gap: 40px; padding-bottom: 40px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.foot-brand { display: grid; gap: 10px; justify-items: start; }
.foot-brand p { max-width: 28rem; }
.footer nav { display: grid; justify-items: start; align-content: start; }
.foot-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 6px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--fg); opacity: 0.8; }
.footer nav a:hover { opacity: 1; }
.foot-legal { display: grid; gap: 12px; padding: 20px 0; border-top: 1px solid var(--border); font-size: 13px; }
.foot-legal nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-legal nav a { min-height: 44px; }
.foot-legal p { max-width: 60rem; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
}
.foot-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.footer a:hover { color: var(--fg); }

/* services */
.svc { display: grid; gap: 4px; align-content: start; transition: background 0.3s; }
.svc:hover { background: #0b0b0b; }
.svc-icon { width: 32px; height: 32px; margin-bottom: 14px; fill: none; stroke: var(--fg); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }

/* header states */
.topbar { transition: padding 0.3s, background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.topbar.is-scrolled { padding-top: 6px; padding-bottom: 6px; background: rgba(0, 0, 0, 0.85); border-bottom-color: var(--border); }
.topnav a[aria-current="true"], .subnav a[aria-current="true"] { color: var(--fg); box-shadow: inset 0 -1px 0 var(--fg); }

/* contact */
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }


/* fallback when WebGL is not available */
.scene.no-webgl {
  background: #000 url("../img/moon-still.jpg") 70% 50% / cover no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .photo, .slideshow .slide, .game-media, .game-content, .filmstrip { transition: none; }
  .game-media, .game-content, .filmstrip { opacity: 1; transform: none; }
  .game-content > * { opacity: 1; transform: none; }
}

/* legal pages */
.legal-page { padding: 140px var(--pad) 96px; max-width: 860px; margin: 0 auto; position: relative; z-index: 20; }
.legal-page h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; }
.legal-page .updated { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.legal-page h2 { font-size: 22px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.legal-page h3 { font-size: 17px; margin-top: 28px; font-family: var(--font-sans); font-weight: 500; }
.legal-page p, .legal-page li { color: rgba(245, 245, 245, 0.85); max-width: 70ch; }
.legal-page p + p { margin-top: 14px; }
.legal-page h2 + p, .legal-page h3 + p, .legal-page h2 + ul, .legal-page h3 + ul { margin-top: 14px; }
.legal-page ul { padding-left: 20px; display: grid; gap: 8px; margin: 14px 0 0; }
.legal-page a:not(.btn-ghost):not(.brand) { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--control); }
.legal-page table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.legal-page th, .legal-page td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); }
.legal-page th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.legal-toc { margin-top: 32px; padding: 20px 24px; border: 1px solid var(--border); }
.legal-toc ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
@media (max-width: 600px) {
  .legal-page table, .legal-page thead, .legal-page tbody, .legal-page tr, .legal-page th, .legal-page td { display: block; }
  .legal-page thead { display: none; }
  .legal-page td { border: 0; padding: 4px 0; }
  .legal-page tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .legal-page td::before { content: attr(data-l); display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
}

/* press */
.press { margin: 40px 0 72px; padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.press-item { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); color: var(--fg); opacity: 0.8; transition: opacity 0.3s; }
a.press-item:hover { opacity: 1; }
.press-row { flex-wrap: nowrap; gap: 0; margin-top: 20px; }
.press-row .press-item { margin-right: 64px; white-space: nowrap; }
.press-mono { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: var(--fg); color: #000; font-family: var(--font-display); font-size: 15px; }
