/* =========================================================
   VELARIN — Beyond Motion (v2)
   ========================================================= */
:root {
  --bg: #060606;
  --ink: #ece5d8;
  --muted: #8d867a;
  --line: rgba(236, 229, 216, .14);
  --gold: #c9a36a;
  --gold-2: #e9d2a3;
  --gold-3: #8a6a38;
  --accent: #c9a36a;
  --serif: "Cormorant Garamond", "Shippori Mincho", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --jp: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --gutter: clamp(16px, 4vw, 64px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-loading { overflow: hidden; }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
img, video, canvas { display: block; max-width: 100%; }
img { user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--gold-2); }
::selection { background: var(--gold); color: #000; }
main { position: relative; z-index: 2; }

/* ---------- shared type ---------- */
.kicker { font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.kicker span { color: var(--gold); font-weight: 400; }
.kicker span::after { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--gold); vertical-align: middle; margin-left: 14px; opacity: .6; }
.h2 { font-weight: 200; text-transform: uppercase; font-size: clamp(34px, 6vw, 96px); line-height: .98; letter-spacing: .04em; margin-top: 22px; }
.h2 em { text-transform: none; letter-spacing: 0; font-size: 1.08em; }
.jp { font-family: var(--jp); font-size: clamp(13px, 1.1vw, 16px); color: var(--muted); letter-spacing: .18em; margin-top: 20px; line-height: 2; }

/* ---------- canvas / overlays ---------- */
#webgl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; }
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
.ambient { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(60vw 50vh at 50% 110%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.loader__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: #050505; }
.loader__panel--top { top: 0; } .loader__panel--bottom { bottom: 0; }
.loader__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.loader__logo { width: 74px; overflow: visible; }
.logo-stroke { stroke: var(--gold); stroke-width: 1.4; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.loader__word { font-size: 13px; letter-spacing: .9em; margin-right: -.9em; opacity: .85; }
.loader__bar { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transform: scaleX(0); transform-origin: left; }
.loader__count { font-family: var(--serif); font-size: 15px; letter-spacing: .3em; color: var(--muted); }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: none; }
body.has-cursor .cursor { display: block; }
.cursor__dot { position: fixed; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold-2); transition: opacity .3s; }
.cursor__ring { position: fixed; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 1px solid rgba(233,210,163,.55); display: grid; place-items: center; transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .4s, border-color .4s, opacity .3s; }
.cursor__label { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: #0b0b0b; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ease); font-weight: 500; }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gold-2); border-color: transparent; }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-hover .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; border-color: var(--gold-2); background: rgba(233,210,163,.08); }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: calc(22px + env(safe-area-inset-top, 0px)) var(--gutter) 22px; transition: transform .8s var(--ease), background .6s; }
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: linear-gradient(180deg, rgba(6,6,6,.85), rgba(6,6,6,0)); }
.nav__logo { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .6em; }
.nav__logo svg { width: 26px; stroke: var(--gold); stroke-width: 3; stroke-linejoin: round; }
.nav__links { display: flex; gap: clamp(16px, 2.2vw, 40px); }
.nav__links a { position: relative; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); transition: color .4s; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__cta { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; padding: 12px 22px; border: 1px solid rgba(201,163,106,.5); border-radius: 100px; color: var(--gold-2); transition: background .4s, color .4s; }
.nav__cta:hover { background: var(--gold); color: #0a0a0a; }
.sound { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.sound__bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound__bars i { width: 2px; height: 3px; background: var(--gold-2); transition: height .3s; }
.sound[aria-pressed="true"] { color: var(--ink); }
.sound[aria-pressed="true"] .sound__bars i { animation: eq 1s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.6s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 12px; } }

/* ---------- rail ---------- */
.rail { position: fixed; right: calc(var(--gutter) * .5); top: 50%; transform: translateY(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 14px; mix-blend-mode: difference; }
.rail__num { font-family: var(--serif); font-size: 13px; color: var(--gold-2); }
.rail__line { width: 1px; height: 120px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.rail__line i { position: absolute; inset: 0; background: var(--gold-2); transform-origin: top; transform: scaleY(0); }
.rail__label { writing-mode: vertical-rl; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 320vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__video, .hero__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
body.no-gl-video .hero__video { opacity: .9; }
.hero__center { position: absolute; left: 0; right: 0; bottom: 13vh; text-align: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 18px; font-size: 11px; letter-spacing: .5em; text-transform: uppercase; color: var(--gold-2); }
.hero__eyebrow i { width: 40px; height: 1px; background: currentColor; opacity: .6; }
.hero__title { font-weight: 200; font-size: clamp(54px, 12.5vw, 230px); letter-spacing: .28em; margin-right: -.28em; line-height: 1; margin-top: 16px; perspective: 800px; white-space: nowrap; text-shadow: 0 10px 60px rgba(0,0,0,.45); }
.hero__title .ch { display: inline-block; overflow: hidden; padding: .06em 0; vertical-align: top; }
.hero__title .ch__in { display: inline-block; will-change: transform; background: linear-gradient(180deg, #fff9ee 0%, #e8d8b8 45%, #b58e55 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: clamp(11px, 1vw, 14px); letter-spacing: .9em; margin-right: -.9em; text-transform: uppercase; margin-top: 14px; }
.hero__jp { font-family: var(--jp); font-size: clamp(12px, 1vw, 15px); letter-spacing: .5em; color: var(--muted); margin-top: 14px; }
.hero__phase2 { position: absolute; right: calc(var(--gutter) + 40px); top: 50%; margin-top: -150px; pointer-events: none; }
.p2 { overflow: hidden; font-weight: 200; font-size: clamp(26px, 4.2vw, 68px); letter-spacing: .38em; text-transform: uppercase; line-height: 1.25; text-shadow: 0 6px 30px rgba(0,0,0,.5); }
.p2 span { display: inline-block; }
.p2--gold span { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: .04em; color: var(--gold-2); font-size: 1.15em; }
.p2-jp { font-family: var(--jp); margin-top: 26px; font-size: clamp(12px, 1vw, 15px); letter-spacing: .3em; opacity: .8; }
.hero__meta { position: absolute; left: var(--gutter); bottom: 5vh; display: flex; align-items: center; gap: 14px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hero__meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.hero__scroll { position: absolute; left: 50%; bottom: 3.5vh; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 9px; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero__hint { position: absolute; right: var(--gutter); bottom: 5vh; font-size: 10px; letter-spacing: .22em; color: var(--muted); font-family: var(--jp); }

/* ---------- MANIFESTO ---------- */
.manifesto { position: relative; min-height: 110vh; padding: 28vh var(--gutter) 22vh; display: flex; flex-direction: column; justify-content: center; max-width: 1500px; margin: 0 auto; }
.manifesto__text { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 6.4vw, 118px); line-height: 1.04; margin-top: 40px; }
.manifesto__text .w { display: inline-block; opacity: .12; margin-right: .22em; }
.manifesto__text .w.gold { font-style: italic; color: var(--gold-2); }
.manifesto__jp { font-family: var(--jp); font-size: clamp(15px, 1.7vw, 24px); letter-spacing: .2em; line-height: 2.1; margin-top: 50px; max-width: 30em; }
.manifesto__jp .c { display: inline-block; opacity: 0; transform: translateY(14px); }

/* ---------- ASSEMBLY ---------- */
.asm { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #07080a; }
.asm__stage { position: absolute; inset: 0; perspective: 1400px; }
.asm__tilt { position: absolute; inset: -3%; will-change: transform; }
.asm__canvas { width: 100%; height: 100%; }
.asm__light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,220,160,.10) 0px, rgba(0,0,0,0) 260px, rgba(0,0,0,.42) 700px); }
.asm__vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6,6,6,.75) 0%, rgba(6,6,6,0) 38%), linear-gradient(0deg, rgba(6,6,6,.7) 0%, rgba(6,6,6,0) 30%); }
.asm__ui { position: absolute; inset: 0; pointer-events: none; }
.asm__head { position: absolute; top: 13vh; left: var(--gutter); }
.asm__hint { font-family: var(--jp); font-size: 12px; letter-spacing: .2em; color: var(--muted); margin-top: 14px; }
.asm__chapter { position: absolute; left: var(--gutter); bottom: 16vh; max-width: 520px; }
.asm__num { font-family: var(--serif); font-style: italic; color: var(--gold-2); font-size: clamp(56px, 7vw, 110px); line-height: .9; }
.asm__num small { font-size: .3em; color: var(--muted); margin-left: 10px; font-style: normal; letter-spacing: .2em; }
.asm__title { overflow: hidden; font-weight: 200; text-transform: uppercase; font-size: clamp(30px, 4.2vw, 68px); letter-spacing: .1em; line-height: 1.1; margin-top: 12px; }
.asm__title span { display: inline-block; }
.asm__spec { font-size: 11px; letter-spacing: .34em; color: var(--gold-2); text-transform: uppercase; margin-top: 16px; }
.asm__jp { font-family: var(--jp); font-size: 14px; color: var(--ink); opacity: .75; letter-spacing: .14em; line-height: 2; margin-top: 10px; }
.asm__progress { position: absolute; left: var(--gutter); right: calc(var(--gutter) + 50px); bottom: 7vh; display: flex; align-items: center; gap: 22px; }
.asm__bar { position: relative; flex: 1; height: 1px; background: var(--line); }
.asm__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px var(--gold); }
.asm__ticks { position: absolute; left: 0; right: 102px; top: 0; height: 1px; }
.asm__ticks i { position: absolute; top: -4px; width: 1px; height: 9px; background: var(--gold); opacity: .7; }
.asm__frame { font-size: 10px; letter-spacing: .3em; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 80px; text-align: right; }

/* ---------- FILM ---------- */
.film { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #050505; }
.film__ambient { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .42; image-rendering: auto; }
.film__layout { position: relative; height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(24px, 4vw, 70px); padding: 10vh var(--gutter) 6vh; }
.film__left { align-self: center; }
.film__list { list-style: none; margin-top: 34px; display: flex; flex-direction: column; gap: 12px; counter-reset: ch; }
.film__list li { counter-increment: ch; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: rgba(236,229,216,.35); display: flex; align-items: center; gap: 14px; transition: color .5s, transform .6s var(--ease); pointer-events: auto; cursor: pointer; }
.film__list li::before { content: counter(ch, decimal-leading-zero); font-family: var(--serif); font-size: 13px; letter-spacing: .1em; }
.film__list li::after { content: ""; height: 1px; width: 0; background: var(--gold); transition: width .6s var(--ease); }
.film__list li.is-active { color: var(--ink); transform: translateX(8px); }
.film__list li.is-active::after { width: 40px; }
.film__panel { position: relative; height: min(80vh, 900px); aspect-ratio: 9 / 16; border-radius: 4px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.65), 0 0 0 1px rgba(233,210,163,.18); transform-style: preserve-3d; will-change: transform; background: #0b0b0b; }
.film__panel.is-landscape { height: auto; width: min(100%, 1100px); aspect-ratio: 16 / 9; }
.film__canvas { width: 100%; height: 100%; }
.film__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,240,210,.18), transparent 45%); mix-blend-mode: screen; }
.film__rec { position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: .3em; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.film__rec i { width: 6px; height: 6px; border-radius: 50%; background: #e0463c; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.film__right { align-self: center; contain: layout paint; }
.film__title { overflow: hidden; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(40px, 5vw, 92px); line-height: 1.05; color: var(--gold-2); }
.film__title span { display: inline-block; }
.film__jp { font-family: var(--jp); font-size: clamp(14px, 1.3vw, 18px); letter-spacing: .2em; line-height: 2; margin-top: 18px; }

/* ---------- DETAILS ---------- */
.details { position: relative; padding: 20vh var(--gutter) 14vh; max-width: 1600px; margin: 0 auto; }
.details__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 30px); margin-top: 8vh; perspective: 1200px; }
.clip { position: relative; transform-style: preserve-3d; will-change: transform; }
.clip__media { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 2px; background: #111; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.clip__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: saturate(.7) brightness(.7); transition: filter .8s var(--ease), transform 1.4s var(--ease); }
.clip.is-playing .clip__media video { filter: none; transform: scale(1); }
.clip__media::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(233,210,163,0); transition: border-color .6s; }
.clip.is-playing .clip__media::after { border-color: rgba(233,210,163,.5); }
.clip__shine { position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,240,210,.22), transparent 40%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.clip:hover .clip__shine { opacity: 1; }
.clip__num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 22px; margin-top: 18px; }
.clip__title { font-weight: 300; font-size: clamp(16px, 1.5vw, 22px); letter-spacing: .22em; text-transform: uppercase; margin-top: 4px; }
.clip__jp { font-family: var(--jp); font-size: 12px; color: var(--muted); letter-spacing: .14em; margin-top: 8px; }

/* ---------- PERFORMANCE ---------- */
.perf { position: relative; min-height: 100vh; padding: 18vh var(--gutter) 16vh; max-width: 1500px; margin: 0 auto; }
.perf__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: center; margin-top: 8vh; }
.gauge { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto; }
.gauge__svg { width: 100%; height: 100%; overflow: visible; }
.gauge__track { fill: none; stroke: rgba(236,229,216,.08); stroke-width: 10; stroke-linecap: round; }
.gauge__fill { fill: none; stroke-width: 10; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(201,163,106,.55)); }
.gauge__ticks line { stroke: rgba(236,229,216,.25); stroke-width: 1; }
.gauge__ticks line.major { stroke: var(--gold-2); stroke-width: 1.5; }
.gauge__nums text { fill: var(--muted); font-family: var(--sans); font-size: 11px; text-anchor: middle; dominant-baseline: middle; }
.gauge__needle { transform-origin: 200px 200px; transform: rotate(-135deg); }
.gauge__needle line { stroke: var(--gold-2); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--gold)); }
.gauge__needle circle { fill: #0b0b0b; stroke: var(--gold-2); stroke-width: 2; }
.gauge__read { position: absolute; left: 0; right: 0; top: 58%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.gauge__speed { font-weight: 200; font-size: clamp(48px, 7vw, 110px); line-height: 1; font-variant-numeric: tabular-nums; }
.gauge__read small { font-size: 11px; letter-spacing: .4em; color: var(--muted); text-transform: uppercase; margin-top: 6px; }
.gauge__time { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold-2); margin-top: 10px; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.stat { padding: 34px 0 30px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 30px; }
.stat__label { font-size: 10px; letter-spacing: .36em; text-transform: uppercase; color: var(--muted); }
.stat__val { margin-top: 16px; font-weight: 200; font-size: clamp(40px, 4.6vw, 76px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__val small { font-size: 13px; letter-spacing: .24em; color: var(--gold-2); margin-left: 10px; text-transform: uppercase; font-weight: 300; }
.perf__drive { display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 3vh, 34px); }
.launch { isolation: isolate; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: min(340px, 100%); padding: 22px 48px; border-radius: 100px; border: 1px solid rgba(201,163,106,.5); overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none; }
.launch__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold), var(--gold-2)); transform: scaleX(0); transform-origin: left; }
.launch__txt { position: relative; font-size: 12px; letter-spacing: .4em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.launch.is-on .launch__txt { font-size: 18px; letter-spacing: .12em; font-weight: 400; }
.launch__jp { position: relative; font-family: var(--jp); font-size: 11px; letter-spacing: .3em; color: var(--muted); }
/* difference blend keeps the live readout legible over both the gold fill and the dark track */
.launch__txt, .launch__jp { color: var(--gold-2); mix-blend-mode: difference; }

/* ---------- COLORS ---------- */
.colors { position: relative; min-height: 100vh; padding: 18vh var(--gutter) 16vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.colors::before { content: ""; position: absolute; left: 50%; top: 60%; width: 90vw; height: 70vh; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); pointer-events: none; }
.colors__head { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.colors__name { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 9vw, 160px); line-height: 1.05; margin-top: 26px; overflow: hidden; }
.colors__name span { display: inline-block; font-style: italic; color: var(--accent); transition: color 1s var(--ease); }
.colors__note { font-size: 10px; letter-spacing: .3em; color: var(--gold-2); margin-top: 10px; font-family: var(--jp); }
.colors__list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 32px); margin-top: 8vh; perspective: 1200px; }
.swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 12px 26px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)); transform-style: preserve-3d; transition: border-color .5s, background .5s; }
.swatch::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,240,210,.14), transparent 45%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.swatch:hover::after { opacity: 1; }
.swatch.is-active { border-color: rgba(233,210,163,.6); background: linear-gradient(180deg, rgba(201,163,106,.1), rgba(201,163,106,0)); }
.swatch__img { width: 100%; max-width: 280px; transform: translateZ(40px); }
.swatch__img img { width: 100%; filter: drop-shadow(0 20px 20px rgba(0,0,0,.6)); -webkit-mask-image: radial-gradient(ellipse 60% 65% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 60% 65% at 50% 50%, #000 60%, transparent 100%); }
.swatch__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 0 0 5px rgba(0,0,0,.6); transform: translateZ(30px); }
.swatch.is-active .swatch__dot { box-shadow: 0 0 0 1px var(--gold-2), 0 0 0 5px rgba(0,0,0,.6), 0 0 0 6px var(--gold); }
.swatch__name { font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); transform: translateZ(20px); }
.swatch.is-active .swatch__name { color: var(--ink); }

/* ---------- DRIVE (game) ---------- */
.drive { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #0c0808; }
.drive__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.drive.is-playing .drive__canvas { touch-action: none; }
.drive__hud { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s; }
.drive.is-playing .drive__hud { opacity: 1; }
.hud__tl { position: absolute; top: 90px; left: var(--gutter); }
.hud__tr { position: absolute; top: 90px; right: calc(var(--gutter) + 40px); text-align: right; }
.hud__label { font-size: 10px; letter-spacing: .36em; text-transform: uppercase; color: var(--muted); }
.hud__score, .hud__time { font-weight: 200; font-size: clamp(38px, 4.5vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; margin-top: 6px; text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.hud__time.is-low { color: #ff8a6a; }
.hud__combo { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--gold-2); margin-top: 6px; transition: transform .3s var(--ease); }
.hud__best { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.hud__best span { color: var(--gold-2); }
.hud__bottom { position: absolute; left: 50%; bottom: 6vh; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hud__speed { font-weight: 200; font-size: clamp(40px, 5vw, 76px); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.hud__speed small { font-size: 11px; letter-spacing: .3em; color: var(--muted); margin-left: 8px; }
.hud__boost { width: 220px; height: 3px; background: rgba(255,255,255,.12); overflow: hidden; border-radius: 3px; }
.hud__boost i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transform-origin: left; box-shadow: 0 0 10px var(--gold); }
.hud__pop { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 54px); color: var(--gold-2); text-shadow: 0 0 30px rgba(201,163,106,.7); white-space: nowrap; opacity: 0; }
.hud__exit { position: absolute; top: 88px; left: 50%; transform: translateX(-50%); pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 100px; border: 1px solid rgba(233,210,163,.45); background: rgba(10,8,6,.7); color: var(--ink); font-family: var(--jp); font-size: 12px; letter-spacing: .2em; transition: background .3s, border-color .3s, color .3s; }
.hud__exit-x { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(233,210,163,.15); color: var(--gold-2); font-size: 11px; letter-spacing: 0; }
.hud__exit small { font-family: var(--sans); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; }
.hud__exit:hover, .hud__exit:focus-visible { background: var(--gold); border-color: var(--gold); color: #0a0a0a; }
.hud__exit:hover small, .hud__exit:focus-visible small { color: #0a0a0a; border-color: rgba(0,0,0,.3); }
@media (hover: none) { .hud__exit small { display: none; } }
.hud__boostbtn { display: none; position: absolute; right: 20px; bottom: 20px; width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-2); font-size: 11px; letter-spacing: .2em; pointer-events: auto; background: rgba(10,8,6,.65); touch-action: none; user-select: none; -webkit-user-select: none; }
.hud__boostbtn.is-on { background: var(--gold); color: #0a0a0a; }
.drive__panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); padding: clamp(28px, 4vw, 48px); text-align: center; display: flex; flex-direction: column; align-items: center; background: linear-gradient(160deg, rgba(22,16,12,.9), rgba(10,8,7,.86)); border: 1px solid rgba(201,163,106,.25); box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.drive__panel[hidden] { display: none; }
@media (min-width: 900px) and (orientation: landscape) {
  .drive__panel { left: var(--gutter); transform: translate(0, -50%); width: min(480px, 40vw); align-items: flex-start; text-align: left; }
  .drive__how { align-items: flex-start; }
  .drive.is-playing .drive__panel--start { transform: translate(-20px, -50%); }
}
.drive.is-playing .drive__panel--start { opacity: 0; pointer-events: none; transform: translate(-50%, -46%); transition: opacity .5s, transform .8s var(--ease); }
.drive__title { font-weight: 200; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 64px); letter-spacing: .08em; line-height: 1.05; margin-top: 18px; }
.drive__title em { text-transform: none; }
.drive__jp { font-family: var(--jp); font-size: 13px; line-height: 2; letter-spacing: .1em; color: var(--ink); opacity: .8; margin-top: 16px; }
.drive__how { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-family: var(--jp); color: var(--muted); letter-spacing: .06em; }
.drive__how b { font-family: var(--sans); font-weight: 400; color: var(--gold-2); letter-spacing: .24em; text-transform: uppercase; font-size: 10px; margin-right: 10px; }
.drive__rank { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.6vw, 48px); color: var(--gold-2); margin-top: 16px; }
.drive__final { font-weight: 200; font-size: clamp(56px, 7vw, 100px); line-height: 1; margin-top: 12px; font-variant-numeric: tabular-nums; }
.drive__final small { font-size: 12px; letter-spacing: .3em; color: var(--muted); margin-left: 8px; }
.drive__stats { font-size: 11px; letter-spacing: .2em; color: var(--muted); margin-top: 14px; text-transform: uppercase; line-height: 2; }
.drive__leave { margin-top: 18px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.drive__leave:hover { color: var(--ink); }
.drive .btn-gold { margin-top: 30px; }

/* ---------- BLUEPRINT ---------- */
.bp { position: relative; padding: 18vh var(--gutter) 16vh; max-width: 1600px; margin: 0 auto; }
.bp__frame { position: relative; margin-top: 8vh; aspect-ratio: 1672 / 941; overflow: hidden; border: 1px solid var(--line); clip-path: inset(0 100% 0 0); touch-action: pan-y; }
.bp__frame img { width: 100%; height: 100%; object-fit: cover; }
.bp__scan { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--gold-2); box-shadow: 0 0 24px 4px rgba(201,163,106,.7), 0 0 80px 20px rgba(201,163,106,.18); pointer-events: none; }
.loupe { position: fixed; z-index: 70; left: 0; top: 0; width: clamp(150px, 18vw, 260px); background-color: #0b0b0c; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--gold-2); box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 0 30px rgba(0,0,0,.5), 0 0 0 6px rgba(201,163,106,.12); background-repeat: no-repeat; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.4); transition: opacity .35s, transform .5s var(--ease); }
.loupe.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.loupe__cross { position: absolute; inset: 0; }
.loupe__cross::before, .loupe__cross::after { content: ""; position: absolute; background: rgba(233,210,163,.5); }
.loupe__cross::before { left: 50%; top: 42%; bottom: 42%; width: 1px; }
.loupe__cross::after { top: 50%; left: 42%; right: 42%; height: 1px; }
.bp__specs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 7vh; border-top: 1px solid var(--line); }
.bp__specs div { padding: 26px 18px 24px 0; border-bottom: 1px solid var(--line); }
.bp__specs dt { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.bp__specs dd { font-size: clamp(15px, 1.3vw, 19px); margin-top: 10px; letter-spacing: .06em; }

/* ---------- FINALE ---------- */
.finale { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.finale__bg { position: absolute; inset: 0; overflow: hidden; }
.finale__bg video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); filter: brightness(.55); }
.finale__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(6,6,6,.15) 30%, rgba(6,6,6,.35) 70%, var(--bg) 100%); }
.finale__content { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24vh var(--gutter) 10vh; }
.finale__title { font-weight: 200; text-transform: uppercase; font-size: clamp(44px, 9vw, 170px); line-height: .98; letter-spacing: .08em; margin-top: 30px; }
.finale__title .line { display: block; overflow: hidden; padding: .04em 0; }
.finale__title .line > span { display: inline-block; }
.finale__title em { text-transform: none; letter-spacing: 0; }
.btn-gold { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-top: 7vh; padding: 26px 54px; border-radius: 100px; border: 1px solid var(--gold); overflow: hidden; }
.btn-gold__bg { position: absolute; inset: -1px; background: linear-gradient(90deg, var(--gold-3), var(--gold), var(--gold-2)); border-radius: inherit; transform: translateY(101%); transition: transform .7s var(--ease); }
.btn-gold:hover .btn-gold__bg { transform: none; }
.btn-gold__txt { position: relative; font-size: 12px; letter-spacing: .4em; text-transform: uppercase; transition: color .5s; }
.btn-gold:hover .btn-gold__txt { color: #0a0a0a; }
.marquee { position: relative; overflow: hidden; padding: 4vh 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee__row { display: flex; width: max-content; will-change: transform; }
.marquee__row span { font-weight: 200; font-size: clamp(40px, 7vw, 120px); letter-spacing: .12em; white-space: nowrap; padding-right: .5em; color: transparent; -webkit-text-stroke: 1px rgba(233,210,163,.55); }
.footer { position: relative; display: flex; justify-content: space-between; gap: 20px; padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.footer { flex-wrap: wrap; }
.footer a:hover { color: var(--gold-2); }
.footer__credit { flex-basis: 100%; text-transform: none; letter-spacing: .06em; font-size: 10px; color: var(--muted); opacity: .75; }
.footer__credit a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
}
@media (max-width: 900px) {
  .rail { display: none; }
  .sound__txt { display: none; }
  .nav__cta { padding: 10px 16px; }
  .hero__center { bottom: 18vh; }
  .hero__title { letter-spacing: .16em; margin-right: -.16em; }
  .hero__phase2 { right: auto; left: var(--gutter); top: 24vh; margin-top: 0; }
  .p2 { letter-spacing: .26em; }
  .hero__meta { display: none; }
  .hero__hint { left: var(--gutter); right: var(--gutter); text-align: center; bottom: 11vh; }
  .asm__vignette { background: linear-gradient(0deg, rgba(6,6,6,.85) 0%, rgba(6,6,6,0) 45%), linear-gradient(180deg, rgba(6,6,6,.6) 0%, rgba(6,6,6,0) 25%); }
  .asm__head { top: 11vh; }
  .asm__chapter { bottom: 13vh; right: var(--gutter); }
  .asm__progress { right: var(--gutter); }
  .details__grid { grid-template-columns: repeat(2, 1fr); }
  .perf__grid { grid-template-columns: 1fr; margin-top: 5vh; }
  .gauge { max-width: min(320px, 82vw); }
  .perf { padding-top: 14vh; }
  .bp__specs { grid-template-columns: repeat(2, 1fr); }
  .colors__list { grid-template-columns: repeat(2, 1fr); }
  .hud__tl, .hud__tr { top: 76px; }
  .hud__tr { right: var(--gutter); }
  .hud__exit { top: 78px; padding: 8px 14px 8px 8px; }
  .hud__boostbtn { display: block; }
  .hud__bottom { bottom: 4vh; left: 40%; }
  .footer { flex-direction: column; align-items: center; }
}
/* portrait screens get the landscape cut of the film, stacked */
@media (orientation: portrait) {
  .film__layout { grid-template-columns: 1fr; grid-template-rows: auto auto auto; align-content: center; justify-items: center; gap: 22px; padding: 12vh var(--gutter) 6vh; }
  .film__list { display: none; }
  .film__panel, .film__panel.is-landscape { height: auto; width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; }
  .film__right, .film__left { text-align: center; }
  .film__left .kicker { justify-content: center; }
}
@media (max-width: 520px) {
  .stat:nth-child(even) { padding-left: 16px; }
  .launch { padding: 22px 34px; }
  .btn-gold { padding: 22px 30px; }
  .btn-gold__txt { letter-spacing: .26em; font-size: 11px; }
  .hud__boost { width: 140px; }
}
@media (hover: none) {
  .grain { animation: none; inset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll i { animation: none; }
}
