@font-face { font-family: "Big Shoulders Display"; src: url(bigshoulders-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: Barlow; src: url(barlow-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url(barlow-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Barlow; src: url(barlow-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Montserrat; src: url(montserrat-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --plum: #120d1a;        /* near-black, tinted purple */
  --lilac: #efe9f6;       /* off-white, tinted purple */
  --haze: #9086a6;
  --violet: #7b52ff;      /* accent */
  --violet-soft: #b9a2ff; /* accent on dark backgrounds */
  --bg: var(--plum);
  --fg: var(--lilac);
  --muted: var(--haze);
  --accent: var(--violet-soft);
  --line: color-mix(in srgb, var(--fg) 15%, transparent);
  --gutter: clamp(16px, 3.4vw, 48px);
  --sans: Barlow, "Helvetica Neue", Arial, sans-serif;
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --serif: var(--display);
  --mono: var(--sans);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
html[data-tone="light"] { --bg: #e9e3f2; --fg: var(--plum); --muted: #6a5f80; --accent: #5b2fe0; color-scheme: light; }
html[data-tone="accent"] { --bg: #4f25c9; --fg: #f4effc; --muted: #cbbdf3; --accent: #f4effc; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  cursor: default;
  -webkit-user-select: none; user-select: none;
}
a, button, summary, [role="tab"], [role="radio"], input[type="range"] { cursor: pointer; }
.idcard-handle, .credit, .fineprint { -webkit-user-select: text; user-select: text; cursor: text; }
.fineprint summary { cursor: pointer; }
/* Film grain so flat colour doesn't feel like a template. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: normal; color: inherit; }
h1, h2, h3, .hero-hello, .stack-rank, .player-title, .idcard-handle, .tour-percent, .stack-copy strong { font-family: var(--display); font-weight: 800; text-transform: uppercase; }
body { font-size: 17px; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--violet); color: #fff; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 10px 14px; background: var(--lilac); color: var(--plum);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.line-mask { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.word { display: inline-block; }
section { position: relative; padding: clamp(96px, 16vh, 180px) var(--gutter); }

/* ---------- Liquid glass ---------- */
.glass {
  position: relative;
  isolation: isolate;
  background: color-mix(in srgb, var(--bg) 30%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.7);
  backdrop-filter: blur(14px) saturate(1.7);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .38),
    inset 0 -1px 0 rgb(255 255 255 / .07),
    inset 0 0 0 1px rgb(255 255 255 / .09),
    0 10px 30px -12px rgb(10 4 20 / .5);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(120% 90% at 18% 0%, rgb(255 255 255 / .16), transparent 46%);
}
html.liquid .glass {
  background: color-mix(in srgb, var(--bg) 34%, transparent);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
}
/* Over the live 3D canvas the refraction filter would re-run every frame. */
html.liquid.in-tour .nav .glass {
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 12px var(--gutter) auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: 0; justify-self: start; }
.nav-mark .mark-letter { display: inline-block; -webkit-background-clip: text; background-clip: text; color: var(--fg); }
.nav-mark { white-space: pre; }
.nav-mark img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; gap: 2px; padding: 5px; border-radius: 999px; }
.nav-links a {
  position: relative; z-index: 1;
  padding: 8px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  color: color-mix(in srgb, var(--fg) 78%, transparent);
  transition: color .3s;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--fg); }
/* Hidden over the hero; the mark slides in from the left, then the links drop in. */
html.js .nav-mark, html.js .nav-now { opacity: 0; transform: translateX(-34px); pointer-events: none; transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
html.js .nav-now { transform: translateX(20px); }
html.js .nav-links { opacity: 0; visibility: hidden; transform: translateY(-18px) scale(.94); pointer-events: none; transition: opacity .5s var(--ease-out), transform .8s var(--ease-out), visibility 0s .8s; }
html.js .nav.is-on .nav-mark, html.js .nav.is-on .nav-now { opacity: 1; transform: none; pointer-events: auto; }
html.js .nav.is-on .nav-links { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: .14s, .14s, 0s; }
html.js .nav.is-on .nav-now { transition-delay: .28s; }
html.is-jumping .nav .glass { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav-pill {
  position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); width: 0;
  border-radius: 999px; opacity: 0;
  background: color-mix(in srgb, var(--fg) 13%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18);
  transition: transform .55s var(--ease-out), width .55s var(--ease-out), opacity .3s;
}
.nav-now {
  justify-self: end; display: inline-flex; align-items: center; gap: 10px; max-width: 260px;
  font-size: 13px; text-decoration: none; color: color-mix(in srgb, var(--fg) 80%, transparent);
}
.nav-now-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; height: 100%; background: var(--accent); transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.35s; }
.eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (max-width: 760px) {
  .nav { grid-template-columns: auto 1fr; inset: max(10px, env(safe-area-inset-top)) 12px auto; }
  .nav-mark span, .nav-now { display: none; }
  .nav-links { justify-self: end; }
  .nav-links a { padding: 8px 11px; font-size: 13px; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto auto; align-items: end;
  padding-top: 110px; padding-bottom: 0; column-gap: 24px;
  overflow: clip;
}
.hero-hello {
  grid-column: 1; grid-row: 2;
  font: 700 clamp(40px, 6vw, 96px)/1 var(--sans);
  color: var(--accent);
  padding-bottom: .1em;
}
.quick-links { position: relative; z-index: 5; grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-bottom: 18px; }
.quick-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border-radius: 999px; overflow: hidden;
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: color .4s var(--ease-out) .08s;
}
.quick-links svg, .quick-links span { position: relative; z-index: 1; }
.quick-links svg { width: 18px; height: 18px; fill: currentColor; }
/* Hover: the pill fills from the bottom like liquid rising. The surface starts domed and flattens as it tops out. */
.quick-links a::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--fg);
  border-radius: 50% 50% 0 0 / 55% 55% 0 0;
  transform: translateY(102%);
  transition: transform .7s var(--ease-out), border-radius .7s var(--ease-out);
}
.quick-links a:hover, .quick-links a:focus-visible { color: var(--bg); }
.quick-links a:hover::after, .quick-links a:focus-visible::after { transform: none; border-radius: 0; }
.hero-name {
  grid-column: 1 / -1; grid-row: 3;
  margin: 0 0 0 -.045em; padding-bottom: .2em;
  font-size: min(var(--fit, 29vw), 78svh);
  line-height: .78; font-weight: 800; letter-spacing: 0;
  white-space: nowrap;
}
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero.has-particles .hero-letters { visibility: hidden; }
.hero-name { pointer-events: none; }
.hero-hello { position: relative; z-index: 2; }
.hero-letters { display: inline-block; overflow: clip; overflow-clip-margin: .25em; padding-top: .1em; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto auto; }
  .hero-hello { grid-row: 2; }
  .quick-links { grid-column: 1; grid-row: 3; justify-content: flex-start; padding: 22px 0 18px; }
  .quick-links span { display: none; }
  .quick-links a { padding: 12px; }
  .quick-links svg { width: 20px; height: 20px; }
  .hero-name { grid-row: 4; }
}

/* ---------- About ---------- */
.about { padding-block: clamp(110px, 20vh, 240px); }
.about-big { font-size: clamp(64px, 15vw, 280px); line-height: .86; white-space: normal; max-width: 12ch; will-change: transform; }
.about-small { margin: clamp(28px, 5vh, 56px) 0 0 auto; max-width: 28ch; font-size: clamp(20px, 2vw, 28px); line-height: 1.25; color: var(--muted); }

/* ---------- Garage ---------- */
.garage { padding-top: 0; padding-bottom: 40px; }
/* Tall runway with a sticky frame: scrolling through it plays the text swap. */
.intro { height: 270svh; margin-inline: 0; }
.intro-sticky { position: sticky; top: 0; height: 100svh; display: grid; align-content: center; }
.intro-title {
  font-size: clamp(44px, 11vw, 200px); line-height: 1; font-weight: 800; letter-spacing: 0;
  display: grid; justify-items: start;
}
.intro-row { display: flex; white-space: pre; }
.intro-char {
  display: block; height: 1.06em; overflow: clip; flex: none;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.intro-reel { display: block; will-change: transform; }
.intro-reel > span { display: block; height: 1.06em; line-height: 1.06em; text-align: center; white-space: pre; }
.intro-reel > .is-mid { color: var(--accent); }
html.no-motion .intro { height: auto; padding-block: clamp(96px, 16vh, 180px) 0; }
html.no-motion .intro-sticky { position: static; height: auto; }

.tour { position: relative; margin-inline: calc(var(--gutter) * -1); }
.tour-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background:
    radial-gradient(60% 50% at 60% 62%, rgb(123 82 255 / .16), transparent 70%),
    var(--plum);
}
@media (min-width: 761px) {
  .tour-stage::after {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 55%; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgb(18 13 26 / .8), rgb(18 13 26 / .4) 55%, transparent);
  }
}
.tour-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s var(--ease-out); }
.tour.is-live .tour-canvas { opacity: 1; }

/* The drawing sits where the car's first camera stop puts it (numbers measured from the real render). */
.tour-sketch {
  --p: 0;
  position: absolute; z-index: 0; pointer-events: none;
  width: 88.87svh; aspect-ratio: 888.67 / 488;
  left: calc(63% + 6.3svh); top: calc(50% + 3svh); translate: -50% -50%;
  transition: opacity .5s var(--ease-out) .1s;
  animation: sketch-in 1.4s var(--ease-out) backwards;
}
@media (max-width: 760px) {
  .tour-sketch { width: 76.4vw; aspect-ratio: 298 / 162; left: calc(50% + 3vw); top: calc(50% - 11.4svh); }
}
.tour.is-live .tour-sketch { opacity: 0; }
@keyframes sketch-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
.sk-base { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; }
.sk-ink {
  position: absolute; inset: 0;
  background: var(--violet-soft);
  -webkit-mask: url(media/gt86-sketch.webp) center / 100% 100% no-repeat;
  mask: url(media/gt86-sketch.webp) center / 100% 100% no-repeat;
  clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0);
  filter: drop-shadow(0 0 6px rgb(185 162 255 / .45));
}
@media (max-width: 760px) {
  .sk-ink { -webkit-mask-image: url(media/gt86-sketch-mobile.webp); mask-image: url(media/gt86-sketch-mobile.webp); }
}
.sk-scan {
  position: absolute; top: -4%; bottom: -4%; left: calc(var(--p) * 100%); width: 1px;
  background: linear-gradient(transparent, var(--violet-soft) 25%, var(--violet-soft) 75%, transparent);
  box-shadow: 0 0 14px 1px rgb(185 162 255 / .6);
  opacity: calc(var(--p) * (1 - var(--p)) * 8 + .0001);
}
.sk-readout {
  position: absolute; left: 0; right: 0; bottom: -14%; text-align: center;
  font: 600 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sk-readout::after { content: "%"; }
.tour.is-live .sk-readout { opacity: 0; }

/* The whole drawing is the button; a single line under it says what it does. */
.tour-idle { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .4s var(--ease-out); }
.tour-start {
  position: absolute; pointer-events: auto; padding: 0; border: 0; background: none; cursor: pointer;
  width: 88.87svh; aspect-ratio: 888.67 / 488;
  left: calc(63% + 6.3svh); top: calc(50% + 3svh); translate: -50% -50%;
}
@media (max-width: 760px) {
  .tour-start { width: 76.4vw; aspect-ratio: 298 / 162; left: calc(50% + 3vw); top: calc(50% - 11.4svh); }
}
.tour-tag {
  position: absolute; left: 50%; top: calc(100% + 28px); translate: -50% 0; white-space: nowrap;
  display: inline-flex; gap: 10px; align-items: baseline;
  font: 500 14px var(--sans); letter-spacing: .04em; color: var(--muted);
}
.tour-tag b { color: var(--fg); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .5s var(--ease-out); }
.tour-start:hover .tour-tag b, .tour-start:focus-visible .tour-tag b { background-size: 100% 1px; }
.tour.is-loading .tour-idle, .tour.is-live .tour-idle { opacity: 0; pointer-events: none; }
.tour:not(.is-loading):not(.is-live) .tour-sketch .sk-base { transition: opacity .5s var(--ease-out); }
.tour:has(.tour-start:hover) .sk-base, .tour:has(.tour-start:focus-visible) .sk-base { opacity: .55; }
.tour:not(.is-loading) .sk-readout { opacity: 0; }

/* Callout: a dot on the car, a leader line that draws out, then the label. */
.tour-hotspot { position: absolute; left: 0; top: 0; z-index: 3; width: 0; height: 0; pointer-events: none; }
.spot-dot {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lilac); box-shadow: 0 0 0 3px rgb(18 13 26 / .55);
  transform: scale(0); transition: transform .4s var(--ease-out);
}
.spot-line { position: absolute; left: 0; bottom: 0; width: 96px; height: 64px; overflow: visible; transform-origin: 0 100%; margin-bottom: 0; }
.spot-line path { fill: none; stroke: var(--lilac); stroke-width: 1.25; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s var(--ease-out); }
.spot-text {
  position: absolute; left: 106px; bottom: 64px; transform: translateY(50%); display: grid; gap: 1px; white-space: nowrap;
  padding: 8px 12px; border-radius: 6px; background: rgb(18 13 26 / .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; translate: -8px 0; transition: opacity .4s var(--ease-out), translate .5s var(--ease-out);
}
.spot-text strong { font: 800 22px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; color: var(--lilac); }
.spot-text em { font: 500 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--violet-soft); }
.tour-hotspot.is-on .spot-dot { transform: scale(1); }
.tour-hotspot.is-on .spot-line path { stroke-dashoffset: 0; transition-delay: .12s; }
.tour-hotspot.is-on .spot-text { opacity: 1; translate: 0 0; transition-delay: .5s; }
.tour-hotspot.is-left .spot-line { transform: scaleX(-1); }
.tour-hotspot.is-left .spot-text { left: auto; right: 106px; text-align: right; translate: 8px 0; }
.tour-hotspot.is-left.is-on .spot-text { translate: 0 0; }
.tour-hotspot.is-down .spot-line { transform: scaleY(-1); }
.tour-hotspot.is-down.is-left .spot-line { transform: scale(-1, -1); }
.tour-hotspot.is-down .spot-text { bottom: auto; top: 64px; transform: translateY(-50%); }
@media (max-width: 760px) { .spot-line { width: 56px; } .spot-text { left: 64px; } .tour-hotspot.is-left .spot-text { right: 64px; } .spot-text strong { font-size: 18px; } }
.tour-hud { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; z-index: 3; display: flex; align-items: center; gap: 16px; }
.tour-bar { flex: 1; height: 1px; background: rgb(239 233 246 / .2); }
.tour-bar i { display: block; height: 100%; background: var(--violet-soft); transform-origin: left; transform: scaleX(0); }
.paint {
  position: absolute; right: var(--gutter); bottom: 48px; z-index: 4;
  display: flex; gap: 8px; padding: 8px; border-radius: 999px;
  background: rgb(18 13 26 / .55);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), inset 0 0 0 1px rgb(255 255 255 / .08);
}
.paint button {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid transparent; background: var(--swatch) content-box;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2);
  transition: border-color .3s, transform .3s var(--ease-out);
}
.paint button:hover { transform: scale(1.12); }
.paint button[aria-checked="true"] { border-color: var(--lilac); }

.tour-chapters { position: relative; z-index: 2; margin-top: -100svh; pointer-events: none; }
.tour-chapter {
  min-height: 115svh; padding: 0 var(--gutter);
  display: grid; align-content: center; justify-items: start; gap: 18px;
  color: var(--lilac);
}
.tour-chapter > * { max-width: min(30rem, 42vw); pointer-events: auto; }
.tour-chapter h3 { font-size: clamp(34px, 4.4vw, 68px); line-height: .95; letter-spacing: 0; font-weight: 800; }
.tour-chapter p { color: rgb(239 233 246 / .74); font-size: 17px; max-width: 36ch; }
.spec { font-size: 19px; line-height: 1.45; max-width: 30ch; color: rgb(239 233 246 / .78); }
.spec b { color: var(--lilac); font-weight: 800; white-space: nowrap; }
.tour-chapter-empty { min-height: 100svh; }
.tour-chapter:last-child { min-height: 70svh; }
/* Until the garage is opened it's just the intro: no other chapters, no progress bar. */
.tour:not(.is-live) .tour-chapter:not(:first-child), .tour:not(.is-live) .tour-hud { display: none; }
.tour:not(.is-live) .tour-chapter:first-child { min-height: 100svh; }

@media (max-width: 760px) {
  .tour-chapter { align-content: end; padding-bottom: 72px; }
  .tour-chapter > * { max-width: 100%; }
  .tour-chapter > * { text-shadow: 0 2px 18px rgb(0 0 0 / .7); }
  .tour-chapter h3 { font-size: 36px; }
  .tour-stage::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent, rgb(18 13 26 / .94)); pointer-events: none; z-index: 1; }
  .tour-hotspot span { display: none; }
  .tour-hud { top: 64px; bottom: auto; }
  .paint { bottom: auto; top: 96px; right: 50%; translate: 50% 0; }
}
.credit { margin-top: 32px; font-size: 12px; color: var(--muted); max-width: 70ch; }

/* ---------- Other cars: horizontal strip ---------- */
.cars { padding-inline: 0; }
.strip { overflow: hidden; }
.strip-track {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
  width: max-content; padding: 84px var(--gutter) 24px;
  height: 100svh;
}
.strip-title {
  flex: none; width: min(70vw, 620px);
  font-size: clamp(56px, 9vw, 150px); line-height: .86; font-weight: 800; letter-spacing: 0;
}
.shot { flex: none; display: grid; gap: 12px; align-self: center; }
.shot img { height: 46svh; width: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.shot-wide img { height: 54svh; aspect-ratio: 16 / 10; }
.shot-tall { align-self: flex-start; }
.shot-tall img { height: 62svh; aspect-ratio: 4 / 5; }
.shot-low { align-self: flex-end; }
.shot-low img { height: 38svh; }
.shot figcaption { font-size: 15px; color: var(--muted); }
.shot figcaption strong { color: var(--fg); font-weight: 500; margin-right: 6px; }
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .strip-track { height: auto; align-items: flex-end; padding-block: 8px; }
  .strip-title { width: 72vw; font-size: 52px; align-self: center; }
  .shot, .shot-tall, .shot-low { align-self: flex-end; scroll-snap-align: center; }
  .shot img, .shot-wide img, .shot-tall img, .shot-low img { height: auto; width: 78vw; aspect-ratio: 4 / 3; }
}
.fineprint { margin: 28px var(--gutter) 0; font-size: 13px; color: var(--muted); }
.fineprint summary { cursor: pointer; width: max-content; }
.fineprint ul { margin-top: 14px; display: grid; gap: 4px; }
.fineprint p { margin-top: 10px; }

/* ---------- Games ---------- */
.games-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 8vh, 90px); }
.games-head h2 { font-size: clamp(80px, 19vw, 320px); line-height: .8; font-weight: 800; letter-spacing: 0; }
.games-head p { max-width: 22ch; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.2; letter-spacing: 0; padding-bottom: 1em; }

/* Ranking: sticky cards that stack */
.stack { display: grid; gap: 6vh; padding-bottom: 6vh; }
.stack-card {
  position: sticky; top: calc(13vh + var(--i, 0) * 18px);
  height: min(68svh, 640px); border-radius: 18px; overflow: hidden;
  background: var(--plum); color: var(--lilac);
  transform-origin: 50% 0;
  box-shadow: 0 -20px 40px -20px rgb(18 13 26 / .45);
}
.stack-card::before {
  content: ""; position: absolute; inset: -40px;
  background: var(--art) center / cover; filter: blur(32px) saturate(1.35) brightness(.62);
}
.stack-card img {
  position: absolute; z-index: 1; right: clamp(18px, 3vw, 40px); top: 50%; translate: 0 -50%;
  width: min(60%, 660px); height: auto; border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .65), 0 0 0 1px rgb(255 255 255 / .08);
}
.stack-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgb(18 13 26 / .7)), rgb(18 13 26 / var(--dim, 0));
}
@media (max-width: 760px) {
  .stack-card img { right: 50%; translate: 50% 0; top: 22%; width: 88%; }
}
.stack-rank {
  position: absolute; z-index: 2; left: clamp(18px, 3vw, 40px); top: clamp(10px, 2vw, 24px);
  font: 700 clamp(90px, 15vw, 220px)/1 var(--sans);
  color: var(--lilac); mix-blend-mode: difference;
}
.stack-copy { position: absolute; z-index: 2; left: clamp(18px, 3vw, 40px); right: clamp(18px, 3vw, 40px); bottom: clamp(18px, 3vw, 36px); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.stack-copy strong { font-size: clamp(28px, 4vw, 60px); line-height: 1; letter-spacing: 0; font-weight: 800; }
.stack-copy small { font: 500 14px var(--mono); opacity: .8; }

/* Backlog: progress meter + grid */
.backlog { margin-top: clamp(60px, 12vh, 140px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px clamp(24px, 5vw, 80px); align-items: start; }
.backlog h3 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1; letter-spacing: 0; font-weight: 800; }
.backlog-meter { grid-column: 2; height: 10px; border-radius: 10px; background: color-mix(in srgb, var(--fg) 10%, transparent); overflow: hidden; }
.backlog-meter i { display: block; height: 100%; width: calc(var(--done) / var(--total) * 100%); background: var(--accent); border-radius: inherit; }
.backlog-list { grid-column: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 24px; counter-reset: game; }
.backlog-list li { counter-increment: game; font-size: 17px; font-weight: 500; letter-spacing: 0; color: color-mix(in srgb, var(--fg) 62%, transparent); }
.backlog-list li::before { content: counter(game, decimal-leading-zero); font: 500 11px var(--mono); margin-right: 10px; color: var(--muted); }
.backlog-list li.is-now { color: var(--fg); }
.backlog-list li.is-now::before { content: "●"; color: var(--accent); font-size: 10px; }
.backlog-note { grid-column: 2; font-size: 13px; color: var(--muted); }
.backlog-note .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; }
@media (max-width: 760px) { .backlog { grid-template-columns: 1fr; } .backlog > * { grid-column: 1 !important; } }

.shelf { margin-top: clamp(64px, 12vh, 140px); }
.shelf h3 { font: 700 clamp(34px, 4vw, 60px)/1 var(--sans); margin-bottom: 22px; }
.marquee { overflow: hidden; margin-inline: calc(var(--gutter) * -1); }
.marquee-track { display: flex; gap: 14px; width: max-content; padding-inline: var(--gutter); }
.marquee-track li { flex: none; }
.marquee-track a { display: block; width: clamp(200px, 22vw, 320px); text-decoration: none; }
.marquee-track img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; transition: transform .8s var(--ease-out); }
.marquee-track a:hover img { transform: scale(.97); }
.marquee-track span { display: block; margin-top: 10px; font-weight: 500; letter-spacing: 0; }

/* Gaming IDs: one player card */
.player-card {
  margin: clamp(80px, 14vh, 160px) auto 0; max-width: 620px;
  padding: clamp(20px, 3vw, 32px); border-radius: 26px;
  background: var(--plum); color: var(--lilac);
  box-shadow: 0 50px 80px -40px rgb(40 20 90 / .55);
  transform-style: preserve-3d; transition: transform .6s var(--ease-out);
}
.idcard-top { display: flex; align-items: center; gap: 14px; }
.idcard-top img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.idcard-top h3 { font-size: 28px; letter-spacing: 0; font-weight: 800; }
.idcard-tabs {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  margin-top: 24px; padding: 4px; border-radius: 14px; background: rgb(255 255 255 / .06);
}
.idcard-pill { position: absolute; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 10px; background: var(--violet); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
.idcard-tabs button {
  position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px;
  padding: 12px 4px; border: 0; background: none; cursor: pointer; border-radius: 10px;
  font-size: 12px; font-weight: 500; color: rgb(239 233 246 / .7); transition: color .3s;
}
.idcard-tabs button[aria-selected="true"] { color: #fff; }
.idcard-tabs svg { width: 22px; height: 22px; fill: currentColor; }
.idcard-body { margin-top: 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.idcard-handle { font-size: clamp(30px, 5vw, 52px); line-height: 1; letter-spacing: 0; font-weight: 800; overflow-wrap: anywhere; }
.idcard-actions { display: flex; gap: 8px; }
.idcard-copy, .idcard-open {
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .18); background: none; cursor: pointer;
  font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .3s;
}
.idcard-copy:hover, .idcard-open:hover { background: rgb(255 255 255 / .1); }
@media (max-width: 520px) { .idcard-tabs button span { display: none; } }

/* ---------- Music ---------- */
.music { overflow: clip; }
.music-backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.music-backdrop img {
  position: absolute; inset: -20%; width: 140%; height: 140%; object-fit: cover;
  filter: blur(90px) saturate(1.4); opacity: 0; transition: opacity 1.4s;
}
.music-backdrop img.is-on { opacity: .5; }
.music-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--bg), transparent 30%, transparent 70%, var(--bg)); }
.player {
  display: grid; grid-template-columns: minmax(220px, 440px) minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.music-title { font: 700 clamp(22px, 2vw, 30px)/1.1 var(--sans); color: var(--accent); margin-bottom: 26px; }
.player-art { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #1d1628; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7); transition: transform .7s var(--ease-out); }
.player.is-paused .player-art { transform: scale(.94); }
.player-art img { width: 100%; height: 100%; object-fit: cover; }
.player-art-empty { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, #1d1628 0 14px, #241b32 14px 28px); }
.player-art img:not([hidden]) + .player-art-empty { display: none; }
.player-body { display: grid; gap: 6px; min-width: 0; }
.player-kicker { font-size: 13px; color: var(--muted); }
.player-title { font-size: clamp(34px, 4.2vw, 68px); line-height: .95; letter-spacing: 0; font-weight: 800; overflow-wrap: anywhere; }
.player-artist { font-size: 19px; color: color-mix(in srgb, var(--fg) 65%, transparent); }
.player-scrub { margin-top: 22px; }
.player-scrub input { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 0; background: none; cursor: pointer; --fill: 0%; }
.player-scrub input:disabled { cursor: default; opacity: .4; }
.player-scrub input::-webkit-slider-runnable-track {
  height: 5px; border-radius: 5px;
  background: linear-gradient(90deg, var(--fg) var(--fill), rgb(239 233 246 / .2) var(--fill));
  transition: height .2s;
}
.player-scrub input:hover::-webkit-slider-runnable-track { height: 8px; }
.player-scrub input::-webkit-slider-thumb { -webkit-appearance: none; width: 0; height: 0; }
.player-scrub input::-moz-range-track { height: 5px; border-radius: 5px; background: rgb(239 233 246 / .2); }
.player-scrub input::-moz-range-progress { height: 5px; border-radius: 5px; background: var(--fg); }
.player-scrub input::-moz-range-thumb { width: 0; height: 0; border: 0; }
.player-times { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 4px; }
.player-controls { margin-top: 18px; width: max-content; display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 999px; }
.player-controls button {
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: none; cursor: pointer; transition: transform .25s var(--ease-out), background-color .3s;
}
.player-controls button:hover:not(:disabled) { background: rgb(255 255 255 / .1); }
.player-controls button:active:not(:disabled) { transform: scale(.88); }
.player-controls button:disabled { opacity: .35; cursor: default; }
.player-controls svg { width: 22px; height: 22px; fill: currentColor; }
.player-play { width: 60px !important; height: 60px !important; }
.player-play svg { width: 28px; height: 28px; }
.player-play .i-pause, .player-play.is-playing .i-play { display: none; }
.player-play.is-playing .i-pause { display: block; }
.player-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.player-queue { display: grid; gap: 2px; align-self: center; }
.player-queue button {
  width: 100%; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px;
  padding: 8px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer;
  transition: background-color .3s;
}
.player-queue button:hover { background: rgb(255 255 255 / .06); }
.player-queue li.is-current button { background: rgb(255 255 255 / .1); }
.player-queue img { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; background: #241b32; }
.player-queue strong { display: block; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.player-queue span span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.player-queue small { font: 500 10px var(--mono); color: var(--accent); }
.player-queue .q-copy { min-width: 0; }
@media (max-width: 1080px) {
  .player { grid-template-columns: minmax(180px, 320px) 1fr; }
  .player-queue { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .player { grid-template-columns: 1fr; }
  .player-art { width: min(100%, 360px); }
  .player-controls { margin-inline: auto; }
}

/* ---------- Contact ---------- */
.contact { padding-bottom: 0; overflow: clip; }
.contact-title { font-size: clamp(88px, 17vw, 300px); line-height: .82; letter-spacing: 0; font-weight: 800; margin-bottom: clamp(30px, 6vh, 70px); }
.contact-sentence {
  max-width: 24ch;
  font-size: clamp(32px, 4.8vw, 80px); line-height: 1.08; letter-spacing: 0; font-weight: 500;
}
.contact-sentence a {
  position: relative; display: inline-block;
  font-weight: 800;
  text-decoration: none;
}
.contact-sentence a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .06em; background: currentColor;
  transform-origin: right; transform: scaleX(1); transition: transform .5s var(--ease-out);
}
.contact-sentence a:hover::after { transform: scaleX(0); }
.contact-sentence a::before {
  content: attr(data-handle);
  position: absolute; left: 50%; bottom: 100%; translate: -50% 6px;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  font: 500 13px var(--mono); letter-spacing: 0; background: var(--plum); color: var(--lilac);
  opacity: 0; pointer-events: none; transition: opacity .3s, translate .4s var(--ease-out);
}
.contact-sentence a:hover::before, .contact-sentence a:focus-visible::before { opacity: 1; translate: -50% -4px; }
.footer { display: flex; justify-content: space-between; padding: clamp(60px, 10vh, 120px) 0 0; font-size: 13px; }
.footer a { text-decoration: none; }
.wordmark {
  margin: 4vw 0 -2.4vw; text-align: center; overflow: clip;
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif; font-synthesis: none;
  font-size: 15vw; line-height: .9; font-weight: 700; letter-spacing: -.04em; white-space: nowrap;
  color: color-mix(in srgb, var(--fg) 92%, transparent);
}
.wm-line { display: inline-block; padding-bottom: .12em; }
.wm-main, .wm-dot, .wm-dev { display: inline-block; }
.wm-dot { color: var(--lilac); }
.wm-mask { display: inline-block; overflow: clip; vertical-align: top; padding: 0 .02em .12em; margin-bottom: -.12em; }
.wm-mask i { display: inline-block; font-style: normal; color: transparent; -webkit-text-stroke: .02em var(--fg); }
html.no-motion .wm-mask i { color: var(--fg); -webkit-text-stroke: 0; }



.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; translate: -50% 140%;
  padding: 12px 18px; border-radius: 999px; background: var(--lilac); color: var(--plum); font-size: 14px; font-weight: 500;
  visibility: hidden;
  transition: translate .5s var(--ease-out), visibility 0s .5s;
}
.toast.is-on { translate: -50% 0; visibility: visible; transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

