:root {
  --red: #e31b23;
  --red-hot: #ff2d36;
  --ink: #0a0a0b;
  --ink-2: #121214;
  --ink-3: #1b1b1f;
  --line: #2a2a30;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
}
h2 { font-size: clamp(40px, 6vw, 80px); }
h3 { font-size: 28px; font-weight: 800; line-height: 1; }
.red { color: var(--red); }

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 18px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background .2s, color .2s, transform .2s;
  cursor: pointer;
  border: 0;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hot); transform: translateX(3px); }
.btn-ghost { background: var(--ink-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(10,10,11,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-family: var(--display); font-weight: 700; font-size: 16px;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-links .nav-cta { color: #fff; background: var(--red); padding: 8px 18px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 8px; right: 8px; height: 2px; background: #fff; transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 110px var(--gutter) 90px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(227,27,35,.22), transparent 70%),
    repeating-linear-gradient(115deg, transparent 0 60px, rgba(255,255,255,.015) 60px 61px);
}
.hero-num {
  position: absolute; z-index: -1;
  right: -2vw; bottom: -4vw;
  font-family: var(--display); font-style: italic; font-weight: 900;
  font-size: clamp(260px, 42vw, 640px); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px rgba(227,27,35,.28);
  user-select: none;
}
.hero h1 { font-size: clamp(76px, 13vw, 184px); margin-bottom: 22px; }
.hero h1 .red { display: inline-block; }
.lede { font-size: clamp(18px, 2vw, 22px); color: #d4d4d8; max-width: 30ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { position: relative; justify-self: end; width: min(100%, 420px); }
.hero-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  background: var(--red); clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); z-index: -1;
}
.hero-photo img { clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: contrast(1.05); }
.hero-photo figcaption {
  position: absolute; left: 0; bottom: -46px;
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.checker {
  position: absolute; left: 0; right: 0; bottom: 0; height: 24px;
  background: conic-gradient(#fff 25%, transparent 0 50%, #fff 0 75%, transparent 0) 0 0 / 24px 24px;
  opacity: .9;
  -webkit-mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
          mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}

.hero-media {
  position: absolute; z-index: -3; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); overflow: hidden;
}
.hero-media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.7) 45%, rgba(10,10,11,.35) 100%),
    linear-gradient(180deg, rgba(10,10,11,.5) 0%, transparent 30%, transparent 70%, var(--ink) 100%);
}

/* Next race */
.next-race {
  background: var(--red);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 26px var(--gutter);
}
.next-race-label { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.next-race .tag {
  font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .2em; text-transform: uppercase;
  background: #000; padding: 4px 10px;
}
.next-race strong { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(26px, 3.4vw, 40px); text-transform: uppercase; line-height: 1; }
.next-race-text { display: grid; gap: 6px; }
.next-race-text span { font-weight: 500; opacity: .9; }
.countdown { display: flex; gap: 10px; }
.countdown[hidden] { display: none; }
.countdown div { background: #000; min-width: 74px; padding: 8px 10px; text-align: center; }
.countdown b { display: block; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Schedule */
.section.schedule { padding-top: clamp(36px, 5vw, 56px); padding-bottom: 0; }
.schedule .section-head { margin-bottom: 20px; }
.schedule h2 { font-size: clamp(36px, 5vw, 60px); }
.schedule .eyebrow { margin-bottom: 8px; }
.section.schedule + .section.highlights { padding-top: clamp(48px, 6vw, 80px); }
.schedule-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.race-list {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 10px; scrollbar-width: thin; scrollbar-color: var(--red) transparent;
}
.race { scroll-snap-align: start; }
.race {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 18px 18px 0;
  background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s, translate .25s;
}
.race:hover { border-color: rgba(227,27,35,.6); translate: 0 -3px; }
.race-date {
  flex: none; width: 74px; display: grid; justify-items: center; line-height: 1;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  border-right: 1px solid var(--line); padding: 4px 0;
}
.race-date b { font-style: italic; font-weight: 900; font-size: 38px; letter-spacing: 0; color: #fff; margin-bottom: 4px; }
.race-info { display: grid; line-height: 1.15; min-width: 0; }
.race-info strong { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(18px, 1.6vw, 22px); text-transform: uppercase; white-space: nowrap; }
.race-info small { font-size: 13px; line-height: 1.25; color: #d4d4d8; margin: 2px 0 3px; }
.race-info span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.race.next { border-color: var(--red); background: linear-gradient(140deg, #2a0a0c, var(--ink-2) 70%); }
.race.next .race-date b { color: var(--red); }
.race-flag {
  position: absolute; top: 0; right: 0; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--red); color: #fff; padding: 3px 10px 3px 12px; clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%);
}
.race-day { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 34px; text-transform: uppercase; background: #000; padding: 6px 18px; }

/* Sections */
.section { padding: clamp(56px, 7vw, 96px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.section-head { margin-bottom: 32px; }
.section-sub { color: var(--muted); font-size: 18px; max-width: 54ch; margin-top: 12px; }

/* Highlights */
.win { display: grid; grid-template-columns: 1.4fr 1fr; background: var(--ink-2); border: 1px solid var(--line); margin-bottom: 18px; overflow: hidden; }
.win-media { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; min-height: 460px; }
.win-media img { width: 100%; height: 100%; object-fit: cover; }
.win-main { grid-row: 1 / 3; }
.win-copy { position: relative; padding: clamp(28px, 4vw, 48px); align-self: center; }
.win-copy h3 { font-size: clamp(40px, 5vw, 64px); font-weight: 900; line-height: .92; margin-bottom: 18px; }
.win-copy p:not(.eyebrow) { color: #d4d4d8; }
.win-tag {
  display: inline-block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 22px;
  background: var(--red); padding: 4px 14px; margin-bottom: 18px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hl-card { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-2); }
.hl-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hl-card:hover img { transform: scale(1.05); }
.hl-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.92)); }
.hl-card > div { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; }
.hl-card .eyebrow { margin-bottom: 6px; font-size: 13px; }
.hl-card h3 { font-size: 26px; }

/* Gallery */
.g-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.g-item { display: block; aspect-ratio: 1 / 1; overflow: hidden; position: relative; cursor: zoom-in; background: var(--ink-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .5s, filter .3s; filter: saturate(.9); }
.g-item:hover img { transform: scale(1.04); filter: saturate(1.1); }
.g-item::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--red); transition: width .35s; }
.g-item:hover::after { width: 100%; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,6,.96); display: grid; place-items: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 54px; line-height: 1; cursor: pointer; padding: 10px 16px; opacity: .8; }
.lightbox button:hover { opacity: 1; color: var(--red); }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Driver */
.driver-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: stretch; }
/* Photo matches the height of the story column, ending at the stats card */
.driver-photo { position: relative; }
.driver-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; border-left: 6px solid var(--red); }
.driver-story p { color: #d4d4d8; margin-bottom: 20px; }
.driver-story p.big { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; color: #fff; font-weight: 500; }
.driver-story strong { color: var(--red); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 36px; }
.stats div { background: var(--ink-2); padding: 18px 20px; }
.stats dt { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.stats dd { white-space: nowrap; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 26px; text-transform: uppercase; line-height: 1.1; margin-top: 4px; }

/* Partner: tiers + livery */
.partner-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.tiers { display: grid; gap: 12px; }
.tier { background: var(--ink-2); border: 1px solid var(--line); transition: border-color .25s, background .25s; }
.tier.active { border-color: var(--red); background: linear-gradient(160deg, #2a0a0c, var(--ink-2) 65%); }
.tier-head {
  width: 100%; display: flex; align-items: center; gap: 18px; text-align: left;
  background: none; border: 0; color: inherit; cursor: pointer; padding: 22px 24px;
}
.tier-badge {
  font-family: var(--display); font-weight: 900; font-style: italic; font-size: 44px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--muted); flex: none; transition: -webkit-text-stroke-color .25s;
}
.tier.active .tier-badge, .tier-head:hover .tier-badge { -webkit-text-stroke-color: var(--red); }
.tier-title { flex: 1; }
.tier-title h3 { font-size: 26px; }
.tier-title span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.tier-chev { width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s; flex: none; margin-right: 4px; }
.tier.active .tier-chev { transform: rotate(-135deg); border-color: var(--red); }
.tier-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.tier-body > * { overflow: hidden; min-height: 0; }
.tier.active .tier-body { grid-template-rows: 1fr; }
.tier-body-inner { padding: 0 24px; }
.tier-body-inner .btn { margin-bottom: 24px; }
.tier ul { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.tier li { position: relative; padding-left: 22px; color: #d4d4d8; font-size: 15px; line-height: 1.5; }
.tier li strong { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 17px; letter-spacing: .03em; text-transform: uppercase; color: #fff; margin-right: 4px; }
.tier li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 4px; background: var(--red); transform: skewX(-20deg); }
.livery { position: sticky; top: 96px; }
.livery-stage { position: relative; background: #fff; padding: clamp(8px, 1.2vw, 14px); box-shadow: 0 40px 80px -30px rgba(227,27,35,.35); }
.livery-sheet { width: 100%; transition: opacity .25s; }
.livery-sheet.fade { opacity: 0; }
.car3d { display: none; }
.livery-stage.is-3d {
  padding: 0; aspect-ratio: 4 / 3; overflow: hidden; cursor: grab; touch-action: pan-y;
  background:
    radial-gradient(ellipse 70% 55% at 50% 62%, rgba(227,27,35,.22), transparent 70%),
    radial-gradient(ellipse at 50% 120%, #1f1f24, #0b0b0d 70%);
  border: 1px solid var(--line);
}
.livery-stage.is-3d:active { cursor: grabbing; }
.livery-stage.is-3d .livery-sheet { display: none; }
.livery-stage.is-3d .car3d { display: block; position: absolute; inset: 0; }
.car3d canvas { display: block; width: 100% !important; height: 100% !important; }
.car3d-pins { position: absolute; inset: 0; pointer-events: none; }
.car3d-wrap-tag {
  position: absolute; left: 18px; top: 18px; pointer-events: none; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s;
  font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(18px, 2.2vw, 26px); line-height: 1; text-transform: uppercase; color: #fff;
  background: var(--red); padding: 10px 18px 10px 16px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.car3d-wrap-tag span { display: block; font-family: var(--body); font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: .18em; margin-bottom: 4px; opacity: .85; }
.car3d-wrap-tag.on { opacity: 1; transform: none; }
.car3d-pin { display: none; }
.car3d-pin.on { display: block; }
.car3d-pin.back { display: none; }
.pin-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pin-lines line { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 3 3; transition: opacity .25s; }
.pin-dot {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); border: 2px solid #fff; box-shadow: 0 0 0 0 rgba(227,27,35,.7); animation: pin-pulse 1.8s infinite; will-change: transform;
}
@keyframes pin-pulse { 70% { box-shadow: 0 0 0 12px rgba(227,27,35,0); } 100% { box-shadow: 0 0 0 0 rgba(227,27,35,0); } }
.pin-label {
  position: absolute; left: 0; top: 0; will-change: transform;
  font-family: var(--display); font-weight: 900; font-style: italic; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--red); padding: 5px 12px; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0,0,0,.55); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.livery figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.livery figcaption span:first-child { color: #fff; }
.drag-hint { display: none; }
/* Logo customizer (only when the 3D car is running) */
.customizer { display: none; margin-top: 18px; border: 1px solid var(--line); background: var(--ink-2); padding: 18px 20px; }
.livery-stage.is-3d ~ .customizer { display: block; }
.cz-start { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.customizer.has-logo .cz-start { display: none; }
.cz-upload { position: relative; overflow: hidden; }
.cz-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cz-upload:focus-within { outline: 2px solid #fff; outline-offset: 3px; }
.cz-note, .cz-fine { color: var(--muted); font-size: 14px; }
.cz-tools { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; align-items: center; }
.cz-tools[hidden] { display: none; }
.cz-tools img { grid-row: span 2; width: 72px; height: 72px; object-fit: contain; background: repeating-conic-gradient(#2a2a30 0 25%, #1b1b1f 0 50%) 0 0 / 14px 14px; padding: 6px; border: 1px solid var(--line); }
.cz-check, .cz-color { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #d4d4d8; cursor: pointer; }
.cz-check input { width: 18px; height: 18px; accent-color: var(--red); }
.cz-color { display: none; }
.customizer.is-primary .cz-color { display: flex; }
.cz-color input { width: 44px; height: 30px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; }
.cz-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cz-actions .btn { margin-left: auto; padding: 10px 22px; font-size: 16px; }
.cz-link { font: inherit; font-weight: 600; font-size: 14px; color: #fff; background: none; border: 0; border-bottom: 2px solid var(--red); padding: 0 0 2px; cursor: pointer; }
.cz-link:hover { color: var(--red); }
.cz-fine { grid-column: 1 / -1; font-size: 12px; }
.livery-stage.is-3d + figcaption .drag-hint { display: inline; }

/* Sponsors */
.sponsor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; grid-auto-flow: dense; }
.sponsor {
  position: relative; background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden;
  transition: translate .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s, opacity .7s ease, transform .7s ease;
}
.sponsor::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.sponsor:hover { translate: 0 -6px; border-color: rgba(227,27,35,.6); box-shadow: 0 30px 60px -30px rgba(227,27,35,.45); }
.sponsor:hover::after { transform: scaleX(1); }

/* Logo panel with an angled racing-stripe edge */
.sponsor-logo {
  position: relative; display: grid; place-items: center; height: 190px; padding: 24px 28px 40px;
  background:
    radial-gradient(ellipse 70% 90% at 50% 40%, rgba(227,27,35,.16), transparent 70%),
    repeating-linear-gradient(115deg, transparent 0 14px, rgba(255,255,255,.025) 14px 15px),
    #0d0d0f;
  border-bottom: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
  transition: background-color .3s;
}
.sponsor-logo img { width: auto; height: auto; max-height: 92px; max-width: 72%; object-fit: contain; transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .3s; filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }
.sponsor-logo img.to-white { filter: brightness(0) invert(1) drop-shadow(0 6px 18px rgba(0,0,0,.5)); }
.sponsor:hover .sponsor-logo img { transform: scale(1.07); }
.sponsor-num {
  position: absolute; top: 12px; left: 14px; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 22px;
  color: transparent; -webkit-text-stroke: 1.2px #55555c; transition: -webkit-text-stroke-color .3s;
}
.sponsor:hover .sponsor-num { -webkit-text-stroke-color: var(--red); }
.sponsor-body { padding: 22px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.sponsor-body h3 { font-size: 26px; margin-bottom: 10px; }
.sponsor-body p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.links a { font-weight: 600; font-size: 14px; color: #fff; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; transition: color .2s, letter-spacing .2s; }
.links a:hover { color: var(--red); letter-spacing: .02em; }

/* Featured primary partner */
.sponsor-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; background: linear-gradient(120deg, #000 0%, #16080a 55%, #2a0a0c 100%); }
.sponsor-feature:hover { translate: 0 -4px; }
.feature-media { position: relative; min-height: 340px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.feature-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.sponsor-feature:hover .feature-media > img { transform: scale(1.05); }
.feature-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, rgba(0,0,0,.55)); }
.feature-logo { position: absolute; z-index: 1; left: 22px; top: 22px; width: 150px; padding: 16px 14px; background: rgba(0,0,0,.82); backdrop-filter: blur(6px); box-shadow: 0 16px 40px rgba(0,0,0,.6); border-left: 4px solid var(--red); }
.feature-logo img { width: 100%; }
.feature-body { position: relative; z-index: 1; padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 52px) clamp(28px, 4vw, 52px) 18px; display: flex; flex-direction: column; justify-content: center; }
.feature-tag, .tribute-tag {
  align-self: flex-start; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--red); color: #fff; padding: 5px 14px; margin-bottom: 16px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.feature-body h3 { font-size: clamp(36px, 4.4vw, 58px); font-weight: 900; line-height: .92; margin-bottom: 16px; }
.feature-body p { color: #d4d4d8; font-size: 16px; line-height: 1.6; max-width: 46ch; }
.feature-body .links { margin-top: 18px; padding-top: 0; }
.feature-num {
  position: absolute; right: -10px; bottom: -40px; z-index: 0; pointer-events: none;
  font-family: var(--display); font-style: italic; font-weight: 900; font-size: 260px; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(227,27,35,.18);
}

/* Tribute */
.sponsor-tribute { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.2fr; }
.tribute-media { position: relative; overflow: hidden; min-height: 280px; }
.tribute-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: grayscale(1) contrast(1.05); transition: filter .6s, transform .8s; }
.sponsor-tribute:hover .tribute-media img { filter: grayscale(0); transform: scale(1.04); }
.tribute-tag { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); clip-path: none; }
.tribute-quote { margin-top: 14px; padding-left: 14px; border-left: 3px solid var(--red); color: #fff !important; font-style: italic; }

/* Open slot */
.sponsor-open {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px;
  padding: 32px; text-decoration: none; border: 2px dashed var(--line); background: transparent; isolation: isolate;
}
.sponsor-open::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .06;
  background: conic-gradient(#fff 25%, transparent 0 50%, #fff 0 75%, transparent 0) 0 0 / 28px 28px;
  transition: opacity .3s; animation: checker-drift 6s linear infinite;
}
.sponsor-open:hover::before { opacity: .12; }
@keyframes checker-drift { to { background-position: 56px 0; } }
.sponsor-open p { color: var(--muted); }
.open-plus { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--red); transition: transform .4s; }
.sponsor-open:hover .open-plus { transform: rotate(90deg); }

/* Shop: its own full-width band so the gallery doesn't run into it */
.section.shop { position: relative; isolation: isolate; margin-top: clamp(16px, 3vw, 32px); }
.section.shop::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(180deg, #141416, var(--ink)); border-top: 1px solid var(--line);
}
.section.shop::after {
  content: ""; position: absolute; top: -1px; left: var(--gutter); width: 120px; height: 3px; background: var(--red);
}
/* Shop */
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shop-card { position: relative; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); text-decoration: none; min-height: 380px; display: flex; }
.shop-card > img:not(.qr) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.shop-card:hover > img:not(.qr) { transform: scale(1.04); }
a.shop-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.9)); }
.shop-card-body { position: relative; z-index: 1; align-self: flex-end; padding: 34px; }
.shop-card h3 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 18px; max-width: 14ch; }
/* Merch card: copy left, photo panel right */
.shop-card.merch { background: linear-gradient(140deg, #000, var(--ink-2)); align-items: center; }
.shop-card.merch::after { display: none; }
.shop-card.merch > img { left: auto; right: 0; width: 50%; object-position: center 55%; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.shop-card.merch .shop-card-body { align-self: center; max-width: 56%; }
.shop-card.donate { background: linear-gradient(140deg, var(--red), #8a0d12); border: 0; align-items: center; gap: 10px; }
.shop-card.donate .shop-card-body { align-self: center; }
.shop-card.donate .eyebrow { color: #fff; opacity: .85; }
.shop-card.donate p:not(.eyebrow) { margin-bottom: 22px; max-width: 34ch; }
.shop-card.donate .btn { background: #000; }
.shop-card.donate .btn:hover { background: #fff; color: var(--ink); }
.qr { width: 150px; flex: none; margin-right: 34px; background: #fff; padding: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.inquire-form { display: grid; gap: 16px; background: var(--ink-2); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); scroll-margin-top: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--ink); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,27,35,.25); }
.field input.invalid { border-color: var(--red); }
.inquire-form .btn { justify-self: start; }
.inquire-form .btn[disabled] { opacity: .6; cursor: wait; }
.form-status { min-height: 1.4em; font-size: 15px; color: var(--muted); }
.form-status.ok { color: #4ade80; }
.form-status.err { color: var(--red-hot); }
.hp { position: absolute; left: -9999px; }
.inquire-form.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 100% { border-color: var(--line); } 30% { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227,27,35,.25); } }
.contact-side .eyebrow { margin-bottom: 18px; }
.socials { display: grid; gap: 10px; }
.social {
  position: relative; display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 16px;
  padding: 12px 18px 12px 12px; text-decoration: none; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .25s, background .25s;
}
.social::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); transform: scaleY(0); transition: transform .3s; }
.social:hover { border-color: rgba(227,27,35,.55); background: #17171a; }
.social:hover::before { transform: scaleY(1); }
.s-icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--ink-3); color: #fff; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background .25s; }
.s-icon svg { width: 22px; height: 22px; }
.social:hover .s-icon { background: var(--red); }
.s-text { display: grid; line-height: 1.15; min-width: 0; }
.s-text small { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.s-text strong { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 21px; text-transform: uppercase; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social:hover 
/* Footer */
.footer { border-top: 1px solid var(--line); padding: 60px var(--gutter); text-align: center; color: var(--muted); }
.footer-logo { height: 54px; width: auto; margin: 0 auto 20px; }
.footer-socials { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }
.footer-socials a { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--ink-3); clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); transition: background .2s, transform .2s; }
.footer-socials a:hover { background: var(--red); transform: translateY(-2px); }
.footer-socials svg { width: 20px; height: 20px; }
.footer p { max-width: 50ch; margin: 0 auto 10px; }
.footer .small { font-size: 13px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .pin-dot { animation: none; }
  .sponsor-open::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .dot { animation: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsor-feature { grid-template-columns: 1fr; }
  .feature-media { min-height: 260px; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
  .feature-body { padding: 8px 28px 32px; }
  .partner-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .livery { position: static; }
  .tier { scroll-margin-top: 84px; }
  .shop-grid { grid-template-columns: 1fr; }
  .win { grid-template-columns: 1fr; }
  .win-media { min-height: 360px; }
  .hl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(10,10,11,.97); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 0; font-size: 20px; width: 100%; }
  .nav-links .nav-cta { width: auto; margin-top: 8px; padding: 10px 22px; }
  .nav.menu-open { background: rgba(10,10,11,.97); }

  .hero { grid-template-columns: 1fr; padding-top: 100px; gap: 60px; }
  .hero-photo { justify-self: start; width: min(88%, 380px); }
  .driver-grid { grid-template-columns: 1fr; }
  .driver-photo { max-width: 420px; }
  .driver-photo img { position: static; height: auto; aspect-ratio: 4 / 5; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .next-race { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .sponsor-grid { grid-template-columns: 1fr; }
  .sponsor-tribute { grid-column: auto; grid-template-columns: 1fr; }
  .tribute-media { min-height: 220px; }
  .feature-num { font-size: 180px; }
  .field-row { grid-template-columns: 1fr; }
  /* Phones: victory-lane photo full width, the two moments side by side under it */
  .win-media { min-height: 0; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .win-main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3.4; object-position: center 20%; }
  .win-side { aspect-ratio: 1 / 1; }
  .hl-grid { gap: 10px; }
  .g-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hl-card h3 { font-size: 21px; }
  .hl-card > div { left: 14px; right: 14px; bottom: 12px; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 6px; transform: none; }
  .shop-card.donate { flex-direction: column; align-items: flex-start; }
  .qr { margin: 0 34px 34px; width: 130px; }
  .shop-card.merch { flex-direction: column; align-items: stretch; }
  .shop-card.merch > img { position: static; width: 100%; height: 260px; clip-path: none; }
  .shop-card.merch .shop-card-body { max-width: none; }
  .countdown div { min-width: 64px; }
  .countdown b { font-size: 28px; }
}
