:root {
  --ink: #07090a;
  --panel: #0d1112;
  --paper: #e9ece8;
  --muted: #8d9894;
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #02e5c2;
  --cyan-deep: #08a994;
  --red: #f02f35;
  --yellow: #f6cb38;
  --header-h: 78px;
  --pad: clamp(24px, 5vw, 84px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.audio-gated { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { color: var(--ink); background: var(--cyan); }

.cursor-telemetry { display: none; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.has-custom-cursor, html.has-custom-cursor a, html.has-custom-cursor button, html.has-custom-cursor .track-marker { cursor: none; }
  .cursor-telemetry {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3000;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(2,229,194,.65);
    border-radius: 50%;
    transform: translate3d(-100px,-100px,0) translate(-50%,-50%);
    transition: width .2s, height .2s, opacity .2s, border-color .2s, background .2s;
    will-change: transform;
  }
  .cursor-telemetry::before, .cursor-telemetry::after { content: ""; position: absolute; background: var(--cyan); opacity: .55; }
  .cursor-telemetry::before { width: 54px; height: 1px; }
  .cursor-telemetry::after { width: 1px; height: 54px; }
  .cursor-telemetry i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 13px var(--cyan); }
  .cursor-telemetry b { position: absolute; top: calc(100% + 8px); min-width: 44px; color: var(--cyan); font: 700 7px "DM Sans", sans-serif; letter-spacing: .16em; text-align: center; }
  .cursor-telemetry.is-visible { opacity: 1; }
  .cursor-telemetry.is-action { width: 64px; height: 64px; border-color: var(--paper); background: rgba(2,229,194,.08); }
  .cursor-telemetry.is-action b { color: var(--paper); }
  .cursor-telemetry.is-drive { width: 74px; height: 74px; border-color: var(--cyan); background: rgba(2,229,194,.1); box-shadow: 0 0 34px rgba(2,229,194,.12); }
  .cursor-telemetry.is-pressed { width: 34px; height: 34px; background: rgba(2,229,194,.24); }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 25px;
  background: #050707;
  transition: transform 0.85s cubic-bezier(.76,0,.24,1), visibility 0.85s;
}
.loader.loaded { transform: translateY(-105%); visibility: hidden; }
.loader__mark {
  font: 900 82px/1 "Barlow Condensed", sans-serif;
  letter-spacing: -6px;
}
.loader__mark span { color: var(--cyan); font-size: 32px; letter-spacing: -1px; vertical-align: top; }
.loader p { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.start-lights { display: flex; gap: 8px; }
.start-lights i {
  width: 14px; height: 14px; border-radius: 50%; background: #1c2323;
  box-shadow: inset 0 0 0 1px #333;
}

.audio-gate {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 80px);
  overflow: hidden;
  background: #030505;
  transition: opacity .65s ease, visibility .65s;
}
.audio-gate.is-dismissed { opacity: 0; visibility: hidden; pointer-events: none; }
.audio-gate__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,5,6,.96) 0%, rgba(2,5,6,.7) 52%, rgba(2,5,6,.4)),
    linear-gradient(0deg, #030505 0%, transparent 55%),
    url("assets/sepang-2017-overtake.jpg") 58% center / cover no-repeat;
  filter: saturate(.7) contrast(1.08);
  transform: scale(1.02);
  transition: filter .8s ease, transform 1.2s cubic-bezier(.22,1,.36,1);
}
.audio-gate__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 48%, rgba(2,229,194,.12) 48.1% 48.25%, transparent 48.35%);
}
.audio-gate__content { position: relative; z-index: 1; width: min(100%, 780px); min-height: 590px; display: grid; align-items: center; }
.audio-gate__intro { transition: opacity .45s ease, transform .55s cubic-bezier(.22,1,.36,1); }
.audio-gate__telemetry { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(40px, 8vh, 90px); color: #87928f; font-size: 8px; letter-spacing: .16em; }
.audio-gate__telemetry i { width: 70px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }
.audio-gate__eyebrow { margin: 0 0 20px; color: var(--cyan); font-size: 9px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.audio-gate h2 { margin: 0; font: 900 clamp(78px, 13vw, 190px)/.72 "Barlow Condensed", sans-serif; letter-spacing: -.055em; text-transform: uppercase; }
.audio-gate h2 em { color: var(--cyan); font-style: italic; }
.audio-gate__copy { max-width: 440px; margin: 34px 0 28px; color: #a9b4b1; font-size: 12px; line-height: 1.7; }
.audio-gate__enter {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 285px;
  padding: 13px 24px 13px 13px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50px;
  background: rgba(5,9,9,.7);
  cursor: pointer;
  text-align: left;
  transition: color .25s, background .25s, border-color .25s, transform .25s;
}
.audio-gate__enter:not(:disabled):hover { color: var(--ink); background: var(--cyan); border-color: var(--cyan); transform: translateX(4px); }
.audio-gate__enter:disabled { color: #66716e; cursor: wait; }
.audio-gate__icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; }
.audio-gate__enter strong, .audio-gate__enter small { display: block; }
.audio-gate__enter strong { font: 700 13px "Barlow Condensed", sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.audio-gate__enter small { margin-top: 3px; opacity: .62; font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
.audio-gate__silent { margin-left: 19px; padding: 12px 0; border: 0; border-bottom: 1px solid #5d6865; color: #a8b1af; background: none; cursor: pointer; font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.audio-gate__credit { position: absolute; right: var(--pad); bottom: 38px; z-index: 1; margin: 0; color: #59635f; font-size: 7px; letter-spacing: .18em; }
.audio-gate__sequence {
  position: absolute;
  inset: 50% 0 auto;
  opacity: 0;
  visibility: hidden;
  text-align: center;
  transform: translateY(-42%) scale(.97);
  transition: opacity .45s ease, transform .55s cubic-bezier(.22,1,.36,1), visibility .45s;
}
.audio-gate.is-counting .audio-gate__intro { opacity: 0; pointer-events: none; transform: translateY(-25px); }
.audio-gate.is-counting .audio-gate__sequence { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
.audio-gate.is-counting .audio-gate__backdrop { filter: saturate(.45) contrast(1.15) brightness(.55); transform: scale(1.045); }
.grid-sequence__eyebrow { margin: 0 0 30px; color: var(--cyan); font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.grid-start-lights { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.6vw, 20px); width: min(100%, 610px); margin: 0 auto; }
.grid-light {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(7px, 1vw, 12px);
  padding: clamp(10px, 1.5vw, 17px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: linear-gradient(145deg, #181d1e, #080a0b);
  box-shadow: 0 18px 35px rgba(0,0,0,.4), inset 0 1px rgba(255,255,255,.05);
}
.grid-light i { aspect-ratio: 1; border-radius: 50%; background: #250d0e; box-shadow: inset 0 0 0 2px #070808, inset 0 0 10px #000; transition: background .08s, box-shadow .08s; }
.grid-light.active i { background: #ff2028; box-shadow: inset 0 0 0 2px #6b080d, 0 0 18px rgba(255,20,30,.95), 0 0 38px rgba(240,47,53,.55); }
.grid-countdown { display: block; height: 115px; margin-top: 24px; color: var(--paper); font: 900 112px/.9 "Barlow Condensed", sans-serif; letter-spacing: -.04em; }
.grid-status { margin: 8px 0 0; color: #929d99; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.audio-gate.lights-out .grid-light i { background: #090b0c; box-shadow: inset 0 0 0 2px #050606; }
.audio-gate.lights-out .grid-countdown { color: var(--cyan); font-size: 82px; letter-spacing: .03em; text-shadow: 0 0 32px rgba(2,229,194,.35); }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100; height: 2px; background: transparent;
}
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--cyan); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(to bottom, rgba(2,5,6,.62), transparent);
  backdrop-filter: blur(4px);
  transition: background .3s, height .3s;
}
.site-header.scrolled { height: 66px; background: rgba(5,8,8,.9); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px/0.8 "Barlow Condensed", sans-serif; letter-spacing: .05em; }
.brand svg { width: 35px; fill: none; stroke: var(--cyan); stroke-width: 3.2; stroke-linecap: round; }
.brand small { display: block; margin-top: 7px; color: #98a4a0; font: 500 8px/1 "DM Sans", sans-serif; letter-spacing: .16em; }
.site-header nav { display: flex; gap: clamp(18px, 3vw, 45px); }
.site-header nav a { color: #c7cecb; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; transition: color .2s; }
.site-header nav a:hover { color: var(--cyan); }
.sound-toggle { display: flex; align-items: center; gap: 10px; padding: 8px 0; border: 0; background: none; cursor: pointer; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.sound-toggle:disabled { color: #707a77; cursor: default; }
.sound-toggle:disabled .sound-bars i { background: #59615f; }
.sound-bars { display: flex; align-items: center; gap: 2px; height: 16px; }
.sound-bars i { display: block; width: 2px; height: 4px; background: var(--cyan); }
.sound-toggle[aria-pressed="true"] .sound-bars i { animation: sound .7s infinite alternate ease-in-out; }
.sound-bars i:nth-child(2) { animation-delay: -.25s !important; }
.sound-bars i:nth-child(3) { animation-delay: -.45s !important; }
.sound-bars i:nth-child(4) { animation-delay: -.1s !important; }
@keyframes sound { to { height: 15px; } }

.section-pad { position: relative; padding: clamp(100px, 13vw, 190px) var(--pad); }
.section-number { position: absolute; top: 90px; right: var(--pad); color: #37413e; font: 800 clamp(70px, 10vw, 160px)/1 "Barlow Condensed", sans-serif; letter-spacing: -.07em; }
.eyebrow { margin: 0 0 28px; color: var(--cyan); font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.display-title { position: relative; z-index: 1; margin: 0; max-width: 1040px; font: 800 clamp(56px, 8.2vw, 136px)/.84 "Barlow Condensed", sans-serif; letter-spacing: -.045em; text-transform: uppercase; }
.display-title span { color: transparent; -webkit-text-stroke: 1px rgba(233,236,232,.45); }

.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: -4%; background: url("assets/sepang-2017-overtake.jpg") 55% center / cover no-repeat; transform: scale(1.04); will-change: transform; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,6,7,.88) 0%, rgba(3,6,7,.42) 45%, rgba(3,6,7,.1) 73%), linear-gradient(0deg, rgba(3,6,7,.85), transparent 55%), linear-gradient(180deg, rgba(3,6,7,.5), transparent 24%); }
.hero__content { position: relative; z-index: 2; width: 100%; padding: 150px var(--pad) 90px; }
.hero__title { margin: 0; max-width: 920px; font: 800 clamp(62px, 10vw, 154px)/.77 "Barlow Condensed", sans-serif; letter-spacing: -.045em; text-transform: uppercase; text-shadow: 0 2px 25px rgba(0,0,0,.3); }
.hero__title span { display: block; }
.hero__title strong { display: block; color: var(--cyan); font-style: italic; font-weight: 900; transform: translateX(clamp(25px, 8vw, 135px)); }
.hero__bottom { margin-top: 48px; display: flex; align-items: flex-end; gap: 60px; }
.hero__bottom p { margin: 0; color: #c3ccca; font-size: 13px; line-height: 1.6; }
.round-link { width: 74px; height: 74px; display: grid; place-content: center; justify-items: center; gap: 5px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; transition: .3s; }
.round-link svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.round-link:hover { color: var(--ink); background: var(--cyan); border-color: var(--cyan); transform: translateY(4px); }
.hero__rail { position: absolute; z-index: 2; right: calc(var(--pad) * .5); bottom: 90px; display: flex; align-items: center; gap: 14px; transform: rotate(-90deg) translateX(100%); transform-origin: bottom right; color: rgba(255,255,255,.6); font-size: 8px; letter-spacing: .16em; }
.hero__rail i { width: 30px; height: 1px; background: rgba(255,255,255,.35); }

.genesis { background: #e6e8e2; color: var(--ink); overflow: hidden; }
.genesis .section-number { color: #cbd0c8; }
.genesis .display-title { max-width: 1100px; }
.genesis .display-title span { -webkit-text-stroke-color: rgba(7,9,10,.3); }
.genesis-grid { display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; gap: clamp(70px, 12vw, 190px); margin-top: 100px; align-items: start; }
.genesis-copy { max-width: 520px; }
.genesis-copy p { color: #4f5754; font-size: 14px; line-height: 1.75; }
.genesis-copy .lead { color: var(--ink); font: 500 clamp(23px, 2.2vw, 34px)/1.3 "Barlow Condensed", sans-serif; }
.text-link { display: inline-flex; gap: 20px; margin-top: 25px; padding-bottom: 7px; border-bottom: 1px solid #7c8581; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.text-link span { color: var(--cyan-deep); }
.build-data { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #afb6af; }
.stat { min-height: 185px; padding: 28px 10px 20px 30px; border-bottom: 1px solid #afb6af; border-left: 1px solid #afb6af; }
.stat--large { grid-column: 1 / -1; min-height: 235px; }
.stat__value { font: 800 clamp(65px, 9vw, 130px)/.85 "Barlow Condensed", sans-serif; letter-spacing: -.05em; }
.stat__unit { margin-left: 8px; color: var(--cyan-deep); font: 700 22px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.stat p { margin: 15px 0 0; color: #5a625f; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.legacy-marquee { margin: 140px calc(var(--pad) * -1) -30px; border-block: 1px solid #b8bdb6; overflow: hidden; }
.legacy-marquee > div { display: flex; width: max-content; align-items: center; gap: 35px; padding: 25px 0; animation: marquee 24s linear infinite; }
.legacy-marquee span { color: #525a56; font: 800 28px "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.legacy-marquee i { color: var(--cyan-deep); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.circuit { background: #090c0d; }
.circuit__layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .65fr); gap: clamp(55px, 8vw, 130px); }
.circuit__sticky { position: sticky; top: 90px; align-self: start; }
.circuit .display-title { font-size: clamp(58px, 7vw, 112px); }
.circuit-instruction { margin: 22px 0 0; color: #8d9995; font: 600 9px "DM Sans", sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.circuit-map { position: relative; min-height: 530px; margin-top: 35px; }
.circuit-map svg { width: min(100%, 690px); overflow: visible; }
.track-source { filter: invert(1); opacity: .78; }
.track-guide { fill: none; stroke: transparent; stroke-width: 3; }
.race-dot { fill: var(--cyan); transform-origin: center; transition: r .12s; }
.circuit.is-driving .race-dot { r: 10; }
.track-marker { cursor: pointer; outline: 0; }
.track-marker circle { fill: var(--ink); stroke: var(--cyan); stroke-width: 2; transition: .2s; }
.track-marker text { fill: var(--paper); font: 700 13px "DM Sans", sans-serif; text-anchor: middle; }
.track-marker:hover circle, .track-marker.active circle { fill: var(--cyan); r: 23; }
.track-marker:hover text, .track-marker.active text { fill: var(--ink); }
.map-readout { position: absolute; left: 0; bottom: 35px; width: 245px; padding-left: 18px; border-left: 2px solid var(--cyan); }
.map-readout span { color: var(--cyan); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
.map-readout strong { display: block; margin: 5px 0; font: 700 24px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.map-readout p { margin: 0; color: #8c9995; font-size: 10px; line-height: 1.5; }
.lap-counter { position: absolute; top: 12px; right: 24px; width: 145px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.16); background: rgba(5,8,9,.7); backdrop-filter: blur(10px); }
.lap-counter > small { color: #74807c; font-size: 6px; letter-spacing: .18em; text-transform: uppercase; }
.lap-counter div { display: flex; align-items: baseline; gap: 7px; margin-top: 5px; text-transform: uppercase; }
.lap-counter div span { color: var(--cyan); font-size: 8px; letter-spacing: .15em; }
.lap-counter strong { color: var(--paper); font: 800 32px/1 "Barlow Condensed", sans-serif; }
.lap-counter em { color: #707b78; font: normal 700 12px "Barlow Condensed", sans-serif; }
.lap-counter > i { display: block; height: 2px; margin-top: 9px; overflow: hidden; background: rgba(255,255,255,.12); }
.lap-counter > i b { display: block; width: 0; height: 100%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.map-scale { position: absolute; right: 30px; bottom: 28px; display: grid; grid-template-columns: auto 60px auto; align-items: center; gap: 8px; color: #7c8985; }
.map-scale span { min-width: 52px; color: var(--paper); font: 700 27px "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums; text-align: right; }
.map-scale i { height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); }
.map-scale small { font-size: 7px; letter-spacing: .14em; }
.circuit__stories { padding-top: 210px; }
.circuit-story { min-height: 118vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); }
.story-index { color: var(--cyan); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
.circuit-story h3 { margin: 25px 0; font: 700 clamp(42px, 4.5vw, 70px)/.95 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.circuit-story p { max-width: 440px; color: #87928f; font-size: 13px; line-height: 1.7; }
.metric { display: flex; align-items: baseline; gap: 13px; margin-top: 40px; }
.metric strong { font: 800 55px "Barlow Condensed", sans-serif; }
.metric span { max-width: 90px; color: #66716e; font-size: 8px; line-height: 1.4; text-transform: uppercase; letter-spacing: .1em; }

.weather { position: relative; min-height: 100svh; overflow: hidden; }
.weather__bg { position: absolute; inset: 0; background: url("assets/sepang-2012-rain.jpg") center / cover no-repeat; filter: saturate(.8); transition: filter .6s, transform 1s; }
.weather.storm .weather__bg { filter: saturate(.5) brightness(.55) contrast(1.15); transform: scale(1.025); }
.weather__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,10,.95) 0%, rgba(7,9,10,.78) 54%, rgba(7,9,10,.35)), linear-gradient(0deg, #07090a 0%, transparent 30%); }
.weather__content { position: relative; z-index: 2; min-height: 100svh; }
.weather__title { margin: 0; font: 800 clamp(72px, 11vw, 180px)/.77 "Barlow Condensed", sans-serif; letter-spacing: -.05em; text-transform: uppercase; }
.weather__title span { color: var(--cyan); }
.weather__lead { max-width: 450px; margin: 35px 0 0; color: #a7b1ae; font-size: 14px; line-height: 1.7; }
.condition-switch { display: inline-flex; margin-top: 45px; padding: 4px; border: 1px solid rgba(255,255,255,.25); border-radius: 30px; }
.condition-switch button { min-width: 95px; padding: 10px 20px; border: 0; border-radius: 24px; background: transparent; cursor: pointer; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.condition-switch button.active { color: var(--ink); background: var(--cyan); }
.weather-dashboard { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 28px; max-width: 1040px; margin-top: 65px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.22); }
.weather-gauge { display: flex; align-items: center; gap: 18px; }
.gauge-ring { width: 108px; height: 108px; flex: 0 0 auto; display: grid; place-content: center; justify-items: center; border: 7px solid rgba(255,255,255,.13); border-top-color: var(--cyan); border-right-color: var(--cyan); border-radius: 50%; transform: rotate(12deg); }
.gauge-ring > * { transform: rotate(-12deg); }
.gauge-value { font: 800 32px "Barlow Condensed", sans-serif; }
.gauge-ring small { color: #899490; font-size: 7px; letter-spacing: .14em; }
.gauge-copy { color: #9ca6a3; font-size: 10px; line-height: 1.5; }
.weather-bars { display: grid; gap: 16px; align-content: center; padding-inline: 20px; border-inline: 1px solid rgba(255,255,255,.16); }
.weather-bars div { display: grid; grid-template-columns: 125px 1fr 50px; gap: 14px; align-items: center; }
.weather-bars span, .weather-bars strong { font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.weather-bars i { position: relative; height: 3px; background: rgba(255,255,255,.13); }
.weather-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--value); background: var(--cyan); transition: width .6s; }
.weather-quote span { color: var(--cyan); font: 700 28px "Barlow Condensed", sans-serif; }
.weather-quote blockquote { margin: 12px 0 0; font: 600 17px/1.35 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.rain { position: absolute; inset: -20%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s; background-image: repeating-linear-gradient(105deg, transparent 0 22px, rgba(190,230,230,.19) 23px 24px, transparent 25px 46px); transform: rotate(4deg); animation: rain .35s linear infinite; }
.weather.storm .rain { opacity: 1; }
@keyframes rain { to { background-position: -60px 130px; } }

.moments { overflow: hidden; background: #e3e5df; color: var(--ink); }
.moments .section-number { color: #c6cbc4; }
.moments .display-title span { -webkit-text-stroke-color: rgba(7,9,10,.35); }
.moments__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; }
.moments__intro { max-width: 390px; margin: 0 6vw 10px 0; color: #555e5b; font-size: 13px; line-height: 1.7; }
.timeline-shell { margin-top: 100px; }
.timeline-controls { display: flex; align-items: center; justify-content: space-between; padding: 0 0 18px; border-bottom: 1px solid #adb3ac; }
.timeline-controls > span { font: 700 12px "Barlow Condensed", sans-serif; letter-spacing: .15em; }
.timeline-controls button { width: 40px; height: 40px; border: 1px solid #a0a8a1; border-radius: 50%; background: transparent; cursor: pointer; transition: .2s; }
.timeline-controls button:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.timeline { display: flex; gap: 18px; margin: 28px calc(var(--pad) * -1) 0 0; padding-right: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.timeline::-webkit-scrollbar { display: none; }
.moment-card { flex: 0 0 clamp(280px, 29vw, 410px); min-height: 540px; padding: 24px; color: #e8ebe7; background: #131718; scroll-snap-align: start; }
.moment-card--feature { background: #087e71; }
.moment-card--red { background: #bb272d; }
.moment-card--yellow { color: #0a0c0d; background: var(--yellow); }
.moment-card--return { background: linear-gradient(145deg, #082f2b, #07100f 70%); border: 1px solid rgba(2,229,194,.5); }
.moment-year { font: 800 12px "Barlow Condensed", sans-serif; letter-spacing: .12em; }
.moment-art { position: relative; height: 215px; margin: 18px 0 30px; display: grid; place-content: center; overflow: hidden; background-color: rgba(255,255,255,.08); }
.moment-art b { position: relative; z-index: 1; font: 900 clamp(64px, 8vw, 115px)/1 "Barlow Condensed", sans-serif; letter-spacing: -.06em; }
.art-grid { background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px); background-size: 25px 25px; }
.art-rain { background-image: repeating-linear-gradient(106deg, transparent 0 8px, rgba(2,229,194,.3) 9px 11px, transparent 12px 20px); }
.art-number { color: var(--cyan); background: radial-gradient(circle, #303938, #0a0c0c 72%); }
.art-flag { background-image: linear-gradient(45deg,#111 25%,transparent 25%),linear-gradient(-45deg,#111 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#111 75%),linear-gradient(-45deg,transparent 75%,#111 75%); background-size: 42px 42px; background-position: 0 0,0 21px,21px -21px,-21px 0; }
.art-duel { color: var(--cyan); background: linear-gradient(115deg, transparent 44%, var(--cyan) 45% 47%, transparent 48%), #191e1e; }
.art-radio { border: 2px solid rgba(0,0,0,.25); }
.art-radio::after { content: "TEAM RADIO"; position: absolute; bottom: 10px; left: 12px; font: 700 8px "DM Sans"; letter-spacing: .18em; }
.art-fire { color: #ff5c37; background: radial-gradient(ellipse at bottom, #b8291e, transparent 57%), #0d1011; }
.art-return { color: var(--ink); background: linear-gradient(135deg, var(--cyan), #00a58e); }
.art-return::after { content: "2026"; position: absolute; right: -8px; bottom: -20px; color: rgba(7,9,10,.12); font: 900 100px "Barlow Condensed", sans-serif; }
.moment-tag { margin: 0 0 9px; color: var(--cyan); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
.moment-card--feature .moment-tag, .moment-card--red .moment-tag, .moment-card--yellow .moment-tag { color: inherit; opacity: .7; }
.moment-card h3 { margin: 0; font: 700 35px/.98 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.moment-card > p:last-child { color: #a5afac; font-size: 11px; line-height: 1.6; }
.moment-card--feature > p:last-child, .moment-card--red > p:last-child, .moment-card--yellow > p:last-child { color: inherit; opacity: .75; }

.champions { background: #0b0e0f; }
.champions__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(50px, 9vw, 150px); align-items: center; }
.champion-main { position: relative; min-height: 500px; display: flex; align-items: center; }
.ghost-number { position: absolute; color: #151c1b; font: 900 clamp(350px, 42vw, 650px)/.7 "Barlow Condensed", sans-serif; letter-spacing: -.08em; }
.champion-main > div { position: relative; padding-left: 38%; }
.champion-main p { color: var(--cyan); font-size: 8px; letter-spacing: .17em; text-transform: uppercase; }
.champion-main h2 { margin: 22px 0; font: 800 clamp(66px, 8.5vw, 130px)/.78 "Barlow Condensed", sans-serif; letter-spacing: -.04em; text-transform: uppercase; }
.champion-main div > span { color: #7e8a86; font-size: 10px; letter-spacing: .1em; }
.record-list { border-top: 1px solid var(--line); }
.record-list article { display: grid; grid-template-columns: 1fr auto; padding: 22px 0; border-bottom: 1px solid var(--line); }
.record-list article > span { color: #7f8a87; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.record-list strong { color: var(--cyan); font: 700 33px "Barlow Condensed", sans-serif; }
.record-list small { grid-column: 1 / -1; margin-top: -10px; color: #c5ccca; font-size: 10px; }

.finale { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.finale__media { position: absolute; inset: 0; background: url("assets/sepang-2017-overtake.jpg") center / cover no-repeat; filter: grayscale(.2) brightness(.55); }
.finale__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,6,7,.95), rgba(4,6,7,.32)), linear-gradient(0deg, #050707, transparent 35%); }
.finale__content { position: relative; z-index: 2; max-width: 1000px; padding: 130px var(--pad); }
.finale__content h2 { margin: 0; font: 800 clamp(76px, 11vw, 180px)/.78 "Barlow Condensed", sans-serif; letter-spacing: -.05em; text-transform: uppercase; }
.finale__content h2 span { color: var(--cyan); }
.finale__content > p:not(.eyebrow) { max-width: 530px; margin: 40px 0; color: #b2bcba; font-size: 14px; line-height: 1.7; }
.final-cta { display: inline-flex; align-items: center; gap: 80px; padding: 15px 15px 15px 0; border-bottom: 1px solid rgba(255,255,255,.5); font: 600 10px "DM Sans", sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.final-cta b { color: var(--cyan); font-size: 20px; }
.finale__malay { position: absolute; right: 0; bottom: 20px; z-index: 2; margin: 0; color: rgba(255,255,255,.07); font: 900 clamp(55px, 10vw, 150px)/.8 "Barlow Condensed", sans-serif; white-space: nowrap; letter-spacing: -.04em; }

footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 60px; padding: 55px var(--pad); background: #050707; border-top: 1px solid var(--line); }
footer p { max-width: 580px; margin: 0; color: #57615e; font-size: 9px; line-height: 1.5; text-align: center; }
footer p a { color: #87938f; border-bottom: 1px solid #424b48; }
footer > a { color: #aab4b1; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(35px); transition: opacity .85s ease, transform .85s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .hero__title { font-size: clamp(62px, 15vw, 118px); }
  .hero__rail { display: none; }
  .genesis-grid, .circuit__layout, .champions__grid { grid-template-columns: 1fr; }
  .circuit__sticky { position: relative; top: 0; }
  .circuit__stories { padding-top: 30px; }
  .circuit-story { min-height: 530px; }
  .circuit-instruction { margin-bottom: 25px; }
  .weather-dashboard { grid-template-columns: 1fr 1fr; }
  .weather-quote { grid-column: 1 / -1; }
  .moments__head { display: block; }
  .moments__intro { margin-top: 40px; }
  .champion-main { min-height: 400px; }
  footer { grid-template-columns: 1fr; justify-items: center; gap: 25px; }
}

@media (max-width: 600px) {
  :root { --header-h: 66px; }
  .sound-label { display: none; }
  .audio-gate { align-items: end; padding-bottom: 80px; }
  .audio-gate__content { min-height: min(700px, calc(100svh - 100px)); }
  .audio-gate__telemetry { margin-bottom: 40px; }
  .audio-gate h2 { font-size: clamp(76px, 25vw, 118px); }
  .audio-gate__enter { width: 100%; min-width: 0; }
  .audio-gate__silent { display: block; margin: 14px auto 0; }
  .audio-gate__credit { display: none; }
  .grid-sequence__eyebrow { margin-bottom: 22px; }
  .grid-start-lights { gap: 6px; }
  .grid-light { gap: 5px; padding: 7px; border-radius: 6px; }
  .grid-light.active i { box-shadow: inset 0 0 0 1px #6b080d, 0 0 11px rgba(255,20,30,.9); }
  .grid-countdown { height: 94px; margin-top: 22px; font-size: 90px; }
  .audio-gate.lights-out .grid-countdown { font-size: 57px; }
  .grid-status { font-size: 7px; }
  .hero__media { background-position: 66% center; }
  .hero__shade { background: linear-gradient(90deg, rgba(3,6,7,.86), rgba(3,6,7,.16)), linear-gradient(0deg, rgba(3,6,7,.9), transparent 65%); }
  .hero__content { padding-bottom: 55px; }
  .hero__title strong { transform: translateX(16px); }
  .hero__bottom { justify-content: space-between; gap: 20px; margin-top: 35px; }
  .section-number { top: 55px; }
  .genesis-grid { margin-top: 65px; }
  .build-data { grid-template-columns: 1fr; }
  .stat--large { grid-column: auto; }
  .stat { border-left: 0; }
  .circuit-map { min-height: 450px; margin-inline: -15px; }
  .map-readout { bottom: 0; left: 15px; }
  .lap-counter { top: 10px; right: 10px; }
  .map-scale { display: none; }
  .weather__title { font-size: clamp(68px, 20vw, 105px); }
  .weather-dashboard { grid-template-columns: 1fr; }
  .weather-bars { padding: 25px 0; border-inline: 0; border-block: 1px solid rgba(255,255,255,.16); }
  .weather-quote { grid-column: auto; }
  .moment-card { min-height: 520px; flex-basis: 82vw; }
  .champion-main > div { padding-left: 24%; }
  .record-list article { grid-template-columns: 1fr auto; }
  .finale__content h2 { font-size: clamp(70px, 20vw, 112px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
