:root {
  --ink: #080808;
  --panel: #151515;
  --paper: #f2efe8;
  --muted: #97948d;
  --red: #e10600;
  --orange: #ff6a00;
  --blue: #1476ff;
  --purple: #8247ff;
  --line: rgba(8, 8, 8, .16);
  --line-dark: rgba(242, 239, 232, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; max-width: 100%; }
::selection { background: var(--red); color: white; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 16px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.header { position: absolute; z-index: 20; inset: 0 0 auto; height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 38px; padding: 0 clamp(22px, 4vw, 64px); color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.18); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; min-width: 50px; height: 32px; padding: 0 8px; background: var(--red); color: white; font-family: "Barlow Condensed", sans-serif; font-size: 21px; font-style: italic; font-weight: 900; letter-spacing: -.05em; transform: skewX(-8deg); }
.nav { display: flex; gap: clamp(18px, 2.2vw, 36px); align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nav a, .social-link, footer > a { position: relative; }
.nav a::after, .social-link::after, footer > a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: .22s; }
.nav a:hover::after, .nav a:focus-visible::after, .social-link:hover::after, .social-link:focus-visible::after, footer > a:hover::after { transform: scaleX(1); transform-origin: left; }
.social-link { justify-self: end; display: flex; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.menu-button { display: none; }

.hero { position: relative; min-height: min(920px, 100svh); overflow: hidden; isolation: isolate; background: #030303; color: var(--paper); }
.hero-image, .hero-overlay, .hero-grid { position: absolute; inset: 0; }
.hero-image { z-index: -3; background: url("../images/hero-gt3.png") center/cover; transform: scale(1.01); animation: heroIn 1.2s cubic-bezier(.2,.75,.2,1) both; }
.hero-overlay { z-index: -2; background: linear-gradient(90deg, rgba(3,3,3,.98) 0%, rgba(3,3,3,.86) 28%, rgba(3,3,3,.22) 64%), linear-gradient(0deg, rgba(3,3,3,.82), transparent 42%); }
.hero-grid { z-index: -1; left: 52%; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 70px 70px; mask-image: linear-gradient(90deg, transparent, black); }
.hero-content { width: min(760px, 86vw); padding: clamp(155px, 20vh, 220px) 0 90px clamp(22px, 7vw, 112px); }
.eyebrow, .section-label { display: flex; align-items: center; gap: 24px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { color: rgba(242,239,232,.72); }
.eyebrow span:first-child, .section-label span:first-child { color: var(--red); }
.eyebrow span + span::before { content: ""; display: inline-block; width: 34px; height: 1px; margin: 0 24px 3px 0; background: rgba(255,255,255,.42); }
.hero h1, h2 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-weight: 900; letter-spacing: -.035em; line-height: .82; text-transform: uppercase; }
.hero h1 { margin-top: 30px; font-size: clamp(64px, 8.6vw, 132px); }
.hero h1 em, h2 em { color: var(--red); font-style: normal; }
.hero-content > p { max-width: 520px; margin: 34px 0 0; color: rgba(242,239,232,.76); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.7; }
.button-primary { display: inline-flex; justify-content: space-between; gap: 30px; width: 230px; margin-top: 36px; padding: 18px 20px; background: var(--red); color: white; clip-path: polygon(0 0,100% 0,93% 100%,0 100%); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; transition: .22s; }
.button-primary:hover { background: #ff1d16; transform: translateX(4px); }
.hero-counter { position: absolute; right: clamp(22px, 4vw, 64px); bottom: 34px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.55); font: 10px monospace; }
.hero-counter i { width: 74px; height: 1px; background: rgba(255,255,255,.25); }

.section { padding: clamp(84px, 11vw, 160px) clamp(22px, 7vw, 112px); }
.section-label { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.section-label.light { color: var(--paper); border-color: var(--line-dark); }
.split-intro, .section-heading.split { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); gap: clamp(48px, 9vw, 150px); align-items: end; padding-top: clamp(54px, 7vw, 100px); }
.split-intro h2, .section-heading h2 { font-size: clamp(56px, 7.6vw, 114px); }
.lead { margin: 0; font-size: clamp(20px,2vw,28px); line-height: 1.34; letter-spacing: -.025em; }
.muted, .section-heading > p { max-width: 560px; margin: 28px 0 0; color: #605d57; font-size: 15px; line-height: 1.8; }
.facts { display: grid; grid-template-columns: repeat(3,1fr); margin-top: clamp(65px,8vw,120px); border-block: 1px solid var(--line); }
.facts article { display: flex; min-height: 138px; flex-direction: column; justify-content: center; padding: 24px clamp(18px,3vw,46px); }
.facts article + article { border-left: 1px solid var(--line); }
.facts strong { font-family: "Barlow Condensed",sans-serif; font-size: clamp(42px,5vw,72px); line-height: 1; }
.facts span { margin-top: 8px; color: #66635d; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.dark { background: var(--ink); color: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding-top: 62px; }
.section-heading > p { max-width: 380px; margin: 0 0 8px; color: var(--muted); }
.people-list, .results-list { margin-top: 62px; border-top: 1px solid var(--line-dark); }
.person-row, .result-row { position: relative; display: grid; align-items: center; gap: 24px; min-height: 138px; overflow: hidden; border-bottom: 1px solid var(--line-dark); }
.person-row { grid-template-columns: 70px minmax(90px,.22fr) 1fr 50px; }
.person-row::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .36s cubic-bezier(.2,.8,.2,1); }
.person-row:hover::before { transform: scaleX(1); transform-origin: left; }
.person-row > * { position: relative; z-index: 1; }
.color-red { --accent: #ad0c07; }
.color-orange { --accent: #b54800; }
.color-blue { --accent: #0753b8; }
.color-purple { --accent: #5a24bd; }
.order { color: #6f6d68; font: 11px monospace; }
.race-number { color: var(--red); font-family: "Barlow Condensed",sans-serif; font-size: clamp(48px,6vw,88px); font-style: italic; letter-spacing: -.04em; }
.person-row:hover .race-number, .person-row:hover .order { color: white; }
.person-row h3, .result-row h3 { margin: 0; font-family: "Barlow Condensed",sans-serif; font-size: clamp(27px,3vw,46px); line-height: 1; text-transform: uppercase; }
.person-row p, .result-row p { margin: 8px 0 0; color: #aaa69e; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.arrow { justify-self: end; font-size: 28px; }

.car-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px,2vw,28px); margin-top: 70px; }
.car-visual { position: relative; min-height: 430px; overflow: hidden; background: var(--panel); }
.car-visual::before, .car-visual::after { content: ""; position: absolute; inset: -20%; background: linear-gradient(90deg,transparent 0 18%,var(--accent) 18% 31%,transparent 31% 52%,white 52% 58%,transparent 58%); transform: rotate(-24deg); transition: .5s; }
.car-visual::after { inset: 44% -28% auto; height: 66px; background: var(--accent); }
.car-card:hover .car-visual::before { transform: rotate(-18deg) scale(1.08); }
.car-code { position: absolute; z-index: 1; top: 24px; left: 24px; color: rgba(255,255,255,.62); font: 10px monospace; letter-spacing: .16em; }
.car-mark { position: absolute; z-index: 1; right: 24px; bottom: 18px; color: white; font-family: "Barlow Condensed",sans-serif; font-size: clamp(72px,8vw,120px); font-style: italic; font-weight: 900; letter-spacing: -.06em; }
.car-meta { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.car-meta h3 { margin: 0; font: 700 21px "Barlow Condensed",sans-serif; text-transform: uppercase; }
.car-meta p, .car-meta span { margin: 7px 0 0; color: #6d6a64; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.result-row { grid-template-columns: 70px 150px minmax(0,1fr) 70px; min-height: 116px; }
.round { color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.result-row strong { justify-self: end; font-family: "Barlow Condensed",sans-serif; font-size: 34px; color: var(--red); }

.gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 70px; }
.gallery-item { position: relative; min-height: 430px; margin: 0; overflow: hidden; background: var(--panel); }
.gallery-wide { grid-column: 1/-1; min-height: min(60vw,680px); }
.gallery-item img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .7s, filter .7s; }
.gallery-item::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.84)); }
.gallery-item:hover img { transform: scale(1.035); filter: contrast(1.05); }
.gallery-item figcaption { position: absolute; z-index: 1; right: 26px; bottom: 24px; left: 26px; display: flex; justify-content: space-between; align-items: end; gap: 20px; color: white; }
.gallery-item strong { font: 800 clamp(28px,4vw,52px) "Barlow Condensed",sans-serif; text-transform: uppercase; }
.gallery-item span { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.closing { display: grid; min-height: 580px; place-items: center; align-content: center; padding: 90px 22px; background: linear-gradient(rgba(225,6,0,.9),rgba(160,4,0,.94)),url("../images/gallery-track.png") center 62%/cover; color: white; text-align: center; }
.closing p { margin: 0 0 20px; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.closing h2 { font-size: clamp(72px,12vw,180px); }
.closing a { display: inline-flex; gap: 18px; margin-top: 48px; padding: 16px 22px; border: 1px solid rgba(255,255,255,.6); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; transition: .22s; }
.closing a:hover { background: white; color: var(--red); }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; min-height: 126px; padding: 28px clamp(22px,4vw,64px); background: var(--ink); color: var(--paper); }
footer p, footer > a { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
footer p { color: #77746e; text-align: center; }
footer > a { justify-self: end; }

@keyframes heroIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1.01); } }

@media (max-width: 1050px) {
  .header { grid-template-columns: 1fr auto auto; }
  .menu-button { display: block; width: 44px; height: 44px; border: 0; background: transparent; color: white; cursor: pointer; font-size: 0; }
  .menu-button i { display: block; width: 24px; height: 2px; margin: 6px auto; background: currentColor; }
  .nav { position: absolute; top: 88px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 28px; background: rgba(8,8,8,.98); border-bottom: 1px solid var(--line-dark); }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
  .split-intro, .section-heading.split { grid-template-columns: 1fr; }
  .car-grid { grid-template-columns: 1fr 1fr; }
  .car-card:last-child { grid-column: 1/-1; }
}

@media (max-width: 720px) {
  .header { height: 74px; }
  .nav { top: 74px; }
  .social-link { display: none; }
  .hero { min-height: 820px; }
  .hero-image { background-position: 68% center; }
  .hero-overlay { background: linear-gradient(90deg,rgba(3,3,3,.94),rgba(3,3,3,.3)),linear-gradient(0deg,rgba(3,3,3,.92),transparent 62%); }
  .hero-content { width: 96vw; padding-top: 145px; }
  .hero h1 { font-size: clamp(62px,19vw,94px); }
  .eyebrow { align-items: flex-start; flex-direction: column; gap: 8px; }
  .eyebrow span + span::before { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts article + article { border-top: 1px solid var(--line); border-left: 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 24px; }
  .person-row { grid-template-columns: 32px 76px 1fr; gap: 12px; min-height: 126px; }
  .arrow { display: none; }
  .person-row h3 { font-size: 25px; }
  .car-grid, .gallery-grid { grid-template-columns: 1fr; }
  .car-card:last-child, .gallery-wide { grid-column: auto; }
  .car-visual { min-height: 360px; }
  .result-row { grid-template-columns: 38px 1fr 48px; gap: 8px 14px; padding: 24px 0; }
  .result-row .round { grid-column: 2; }
  .result-row div { grid-column: 2; }
  .result-row strong { grid-column: 3; grid-row: 1/4; }
  .gallery-item, .gallery-wide { min-height: 390px; }
  .gallery-item figcaption { align-items: flex-start; flex-direction: column; gap: 7px; }
  footer { grid-template-columns: 1fr auto; }
  footer p { display: none; }
}

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