/* =========================================================
   Georgia Morgan — site styles
   Palette taken from the car: livery red, carbon, pit-lane white
   ========================================================= */

:root {
  --pit: #EEEFF1;        /* pit-lane white: main background */
  --paper: #FFFFFF;
  --carbon: #17191D;     /* carbon: text + dark sections */
  --carbon-2: #23262C;
  --graphite: #62666E;   /* muted text */
  --red: #D8121C;        /* livery red */
  --red-dark: #A80C14;
  --line: rgba(23, 25, 29, 0.14);
  --line-dark: rgba(238, 239, 241, 0.16);

  --display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--pit);
  color: var(--carbon);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .84;
  letter-spacing: -0.01em;
  margin: 0;
}
.h2 { font-size: clamp(56px, 10vw, 150px); }
.h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 44px); line-height: .95; margin: 0; }
.lead { font-size: clamp(18px, 1.5vw, 21px); max-width: 38em; color: var(--graphite); margin: 0; }
.on-dark .lead { color: rgba(238, 239, 241, .72); }
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  text-decoration: none; background: transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--carbon); color: var(--pit); border-color: var(--carbon); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.on-dark .btn:not(.btn-red):hover { background: var(--pit); color: var(--carbon); border-color: var(--pit); }

/* ---------- Lights-out loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--carbon); color: var(--pit);
  display: grid; place-items: center;
  transition: transform .9s var(--ease);
}
.loader.gone { transform: translateY(-100%); }
.loader.hidden { display: none; }
.lights { display: flex; gap: clamp(10px, 2.2vw, 26px); }
.light-col {
  background: #0c0d0f; border-radius: 14px; padding: 10px;
  display: grid; gap: 10px;
}
.light {
  width: clamp(34px, 7vw, 72px); aspect-ratio: 1; border-radius: 50%;
  background: #2a2c31;
  transition: background .08s linear, box-shadow .08s linear;
}
.light-col.on .light:last-child { background: var(--red); box-shadow: 0 0 36px 6px rgba(216, 18, 28, .55); }
.loader-caption {
  margin-top: 36px; text-align: center;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 3vw, 32px); letter-spacing: .02em;
}
.loader-skip {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: none; border: 0; color: rgba(238,239,241,.55); font-size: 14px; text-decoration: underline;
}

/* ---------- Top bar + menu ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--pit);
  transition: background .3s var(--ease), color .3s var(--ease), transform .35s var(--ease);
}
.topbar.solid { background: rgba(238, 239, 241, .92); color: var(--carbon); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topbar.tuck { transform: translateY(-100%); }
body.page-light .topbar { color: var(--carbon); }
.mark {
  font-family: var(--display); font-weight: 900; font-size: 28px; text-transform: uppercase; white-space: nowrap; line-height: 1;
  text-decoration: none; letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 8px;
}
.mark i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); display: inline-block; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.top-actions .btn { padding: 11px 20px; font-size: 14px; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; padding: 10px 4px;
  font-weight: 600; font-size: 15px;
}
.menu-btn .bars { width: 26px; height: 10px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 8px; }
body.menu-open .menu-btn .bars::before { top: 4px; transform: rotate(45deg); }
body.menu-open .menu-btn .bars::after { top: 4px; transform: rotate(-45deg); }
body.menu-open .topbar { color: var(--pit); background: transparent; backdrop-filter: none; }
body.menu-open { overflow: hidden; }

.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--carbon); color: var(--pit);
  display: grid; grid-template-columns: 1.1fr 1fr;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease);
  visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-links {
  padding: calc(104px + env(safe-area-inset-top, 0px)) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.menu-links nav { display: flex; flex-direction: column; }
.menu-links nav a {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  /* as big as the screen height allows, so the menu fills the space */
  font-size: clamp(56px, min(11vw, (100vh - 200px) / 3.75), 200px); line-height: .9;
  text-decoration: none; color: var(--pit);
  transition: color .2s;
  width: fit-content;
}
.menu-links nav a:hover, .menu-links nav a[aria-current="page"] { color: var(--red); }
/* right-hand column: contact, socials and what's next, instead of photos */
.menu-side {
  padding: calc(104px + env(safe-area-inset-top, 0px)) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(22px, 3.2vh, 36px);
  border-left: 1px solid var(--line-dark);
}
.menu-block { border-top: 1px solid var(--line-dark); padding-top: 14px; }
.menu-cap { margin: 0 0 6px; font-size: 14px; color: rgba(238,239,241,.55); }
.menu-big {
  margin: 0; display: block; width: fit-content; max-width: 100%;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(26px, 2.6vw, 40px); line-height: 1; color: var(--pit);
  text-decoration: none; overflow-wrap: anywhere; transition: color .2s;
}
a.menu-big:hover { color: var(--red); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  color: var(--pit); overflow: hidden; background: var(--carbon);
  display: flex; flex-direction: column;
}
/* Blurred copy fills any space around the photo */
.hero-photo { position: absolute; inset: 0; }
.hero-blur { width: 100%; height: 100%; object-fit: cover; filter: blur(34px) saturate(1.1); transform: scale(1.15); opacity: .9; }
/* The full photo, centred and never cropped */
.hero-frame { position: absolute; inset: 0; }
.hero-frame picture { display: contents; }
.hero-frame img {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%;
  /* soften the photo's edges into the blurred background */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
          mask-composite: intersect;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(23,25,29,.18), rgba(23,25,29,.18)),
    linear-gradient(0deg, rgba(23,25,29,.6) 0%, rgba(23,25,29,0) 26%);
}
.hero-center {
  position: absolute; inset: 0; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; justify-items: center;
  padding: 88px var(--gutter) 55vh;
}
.hero-sub {
  margin: .7em 0 0; text-align: center; color: #fff;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(17px, 2.1vw, 30px); line-height: 1; letter-spacing: .14em;
  filter: drop-shadow(0 1px 8px rgba(0,0,0,.35));
}
.hero-name {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: min(12vw, 26vh);
  line-height: .82; letter-spacing: -.005em; text-align: center;
  margin: 0; width: 100%;
  display: grid; justify-items: center;
}
.hero-name .line {
  grid-area: 1 / 1; width: max-content;
  color: #fff;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,.28));
}
.hero-name .w { display: inline-block; }
.hero-inner {
  position: relative; z-index: 3; margin-top: auto;
  padding: 0 var(--gutter) clamp(24px, 4vh, 44px);
}
.hero-meta {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid var(--line-dark);
  font-size: 15px; color: var(--pit);
}
.hero-meta p { margin: 0; }
.hero-meta strong { display: block; font-weight: 600; font-size: 17px; }
.hero-meta .muted { color: rgba(238,239,241,.78); }

/* Hero entrance (runs after the loader) */
.hero-name .w, .hero-meta, .hero-sub { opacity: 0; }
body.ready .hero-name .w { animation: rise 1s var(--ease) forwards; }
body.ready .hero-name .w:nth-child(2) { animation-delay: .08s; }
body.ready .hero-meta, body.ready .hero-sub { animation: fade .8s var(--ease) .35s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Note from Georgia ---------- */
.note { padding: clamp(90px, 14vw, 180px) 0; }
.note-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; }
.note-label { font-size: 15px; color: var(--graphite); padding-top: .7em; }
.note-text {
  font-size: clamp(28px, 3.7vw, 54px); line-height: 1.12; font-weight: 500;
  letter-spacing: -.015em; margin: 0; max-width: 22em;
}

/* ---------- Horizontal strip ---------- */
.strip { background: var(--carbon); color: var(--pit); position: relative; }
.strip-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.strip-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  padding: 0 var(--gutter); margin-bottom: clamp(20px, 3.5vh, 40px);
}
.strip-head .h3 { color: var(--pit); }
.strip-progress { width: min(260px, 30vw); height: 2px; background: var(--line-dark); position: relative; }
.strip-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red); }
.strip-track {
  display: flex; gap: clamp(14px, 1.6vw, 24px); align-items: stretch;
  padding: 0 var(--gutter);
  will-change: transform;
  height: min(66vh, 620px);
}
.card { flex: none; height: 100%; display: flex; flex-direction: column; }
.card figure { margin: 0; flex: 1; min-height: 0; overflow: hidden; border-radius: 6px; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card figcaption, .card .cap { font-size: 14px; color: rgba(238,239,241,.62); padding-top: 12px; }
.card.wide { aspect-ratio: 3 / 2.15; }
.card.tall { aspect-ratio: 3 / 4.6; }
.card.fact {
  aspect-ratio: 3 / 4.2;
  height: calc(100% - 34px);
  background: var(--red); color: #fff; border-radius: 6px;
  padding: clamp(22px, 2.4vw, 34px); justify-content: space-between;
}
.card.fact.dark { background: var(--carbon-2); }
.card.fact .big { font-family: var(--display); font-weight: 900; font-size: clamp(90px, 12vw, 190px); line-height: .8; text-transform: uppercase; }
.card.fact .big.small { font-size: clamp(56px, 6.4vw, 104px); line-height: .86; }
.card.fact p { margin: 0; font-size: 17px; max-width: 18em; }
.card.fact .cap { color: rgba(255,255,255,.75); padding: 0; }

/* ---------- Seasons row ---------- */
.seasons { padding: clamp(90px, 12vw, 160px) 0 clamp(60px, 8vw, 110px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.season-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1.5px solid var(--carbon); }
.season-list li { padding: 22px 18px 26px 0; border-right: 1px solid var(--line); }
.season-list li + li { padding-left: 18px; }
.season-list li:last-child { border-right: 0; }
.season-list .yr { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 4.6vw, 70px); line-height: .9; }
.season-list .what { font-weight: 600; margin: 14px 0 6px; line-height: 1.3; }
.season-list .res { font-size: 15px; color: var(--graphite); line-height: 1.4; }
.season-list .res span { display: block; }
.season-list .res span + span { margin-top: 6px; }
.season-list li.next .yr { color: var(--red); }

/* ---------- Big split links ---------- */
.splits { border-top: 1.5px solid var(--carbon); }
.split {
  position: relative; display: grid; grid-template-columns: 1fr minmax(0, 26em) auto; align-items: center; gap: 30px;
  padding: clamp(26px, 3.4vw, 46px) var(--gutter);
  border-bottom: 1.5px solid var(--carbon);
  text-decoration: none; overflow: hidden;
  isolation: isolate;
}
.split::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red); transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.split:hover::before, .split:focus-visible::before { transform: scaleY(1); }
.split:hover, .split:focus-visible { color: #fff; }
.split .display { font-size: clamp(48px, 8.4vw, 150px); min-width: 0; }
.split .display span { display: block; width: max-content; }
.split p { margin: 0; font-size: 17px; }
.split .go {
  width: clamp(56px, 6vw, 84px); aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid currentColor; display: grid; place-items: center;
  transition: transform .45s var(--ease);
}
.split:hover .go { transform: rotate(-45deg); }
.split .go svg { width: 40%; }
.split > * { position: relative; z-index: 2; }

/* ---------- Partner marquee ---------- */
.partners-band { padding: clamp(90px, 12vw, 160px) 0; }
.marquee { overflow: hidden; border-top: 1.5px solid var(--carbon); border-bottom: 1.5px solid var(--carbon); margin: clamp(30px, 4vw, 50px) 0; }
.marquee-row { display: flex; width: max-content; animation: slide 40s linear infinite; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-row > * {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 9vw, 140px); line-height: 1; padding: 18px 0;
  text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap;
}
.marquee-row > *::after { content: ""; width: .18em; height: .18em; border-radius: 50%; background: var(--red); margin: 0 .5em; }
.marquee-row a:hover { color: var(--red); }
@keyframes slide { to { transform: translateX(-50%); } }
.partners-head { display: grid; grid-template-columns: 1fr minmax(0, 26em) auto; align-items: center; gap: 30px; }
.partners-head p { margin: 0; font-size: 17px; }
.partners-head::after { content: ""; width: clamp(56px, 6vw, 84px); }
@media (max-width: 1200px) {
  .partners-head { grid-template-columns: 1fr; gap: 14px; } .partners-head::after { display: none; }
  .split { grid-template-columns: minmax(0, 1fr) auto; }
  .split p { grid-column: 1 / -1; grid-row: 2; }
}
.partner-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ---------- Socials / numbers ---------- */
.social { background: var(--carbon); color: var(--pit); padding: clamp(70px, 8vw, 120px) 0; }
.social-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.handle {
  font-family: var(--display); font-weight: 900; font-size: clamp(48px, 7.4vw, 116px); line-height: .9;
  text-decoration: none; display: block;
  transition: color .2s;
}
.handle { overflow: hidden; padding-bottom: .12em; }
.handle span { display: block; width: max-content; }
.handle:hover { color: var(--red); }
.numbers { display: grid; gap: 0; }
.numbers div { border-top: 1px solid var(--line-dark); padding: 20px 0 22px; }
.numbers b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(54px, 6vw, 90px); line-height: .9; }
.numbers div > span { display: block; margin-top: 8px; color: rgba(238,239,241,.7); }
.social-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; margin-top: clamp(50px, 6vw, 80px); }
.social-photos a { display: block; overflow: hidden; border-radius: 6px; }
.social-photos img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.social-photos a:hover img { transform: scale(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--red); color: #fff; padding: clamp(70px, 9vw, 120px) 0 28px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.footer-top .lead { color: rgba(255,255,255,.85); }
.footer .btn:hover { background: #fff; color: var(--red); border-color: #fff; }
.footer-cols { display: flex; gap: clamp(30px, 5vw, 80px); }
.footer-cols h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; opacity: .7; }
.footer-cols a { display: block; text-decoration: none; padding: 4px 0; }
.footer-cols a:hover { text-decoration: underline; }
.footer-tag {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: 15vw; line-height: .78; letter-spacing: -.015em;
  margin: clamp(60px, 8vw, 110px) 0 0; white-space: nowrap;
  padding: 0 var(--gutter);
}
.footer-tag span { display: block; width: max-content; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; opacity: .8; margin-top: 28px; }

/* ---------- Inner page header ---------- */
.page-head { padding: clamp(130px, 16vw, 200px) 0 clamp(40px, 6vw, 80px); }
.page-head .display { font-size: clamp(80px, 17vw, 260px); }
.page-head-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-top: clamp(24px, 3vw, 40px); }
.page-banner { margin: 0 var(--gutter); border-radius: 6px; overflow: hidden; }
.page-banner img { width: 100%; height: auto; }

.block { padding: clamp(80px, 10vw, 140px) 0; }
.block.dark { background: var(--carbon); color: var(--pit); }

/* Timeline (a true sequence, so years run in order) */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--carbon); }
.tl-item { display: grid; grid-template-columns: minmax(120px, 1fr) 3fr; gap: 30px; padding: clamp(28px, 3.5vw, 48px) 0; border-bottom: 1px solid var(--line); }
.tl-year { font-family: var(--display); font-weight: 900; font-size: clamp(64px, 8vw, 120px); line-height: .8; }
.tl-item.next .tl-year { color: var(--red); }
.tl-body h3 { margin: 0 0 12px; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.tl-body p { margin: 0 0 14px; max-width: 40em; color: var(--graphite); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags span { font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }

/* Results table */
.table-wrap { overflow-x: auto; }
.results { width: 100%; border-collapse: collapse; min-width: 720px; }
.results th { text-align: left; font-size: 14px; font-weight: 600; color: rgba(238,239,241,.6); padding: 0 16px 14px 0; border-bottom: 1.5px solid var(--pit); }
.results td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.results td:first-child { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.results td.res { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; color: #ff4b53; white-space: nowrap; }
.results td.note { color: rgba(238,239,241,.7); font-size: 15px; max-width: 30em; }
.results td.ev { font-weight: 600; }

/* Gallery grid */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gallery figure { margin: 0; }
.gallery .ph { overflow: hidden; border-radius: 6px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font-size: 14px; color: var(--graphite); padding-top: 10px; }
.g-a { grid-column: span 8; } .g-a .ph { aspect-ratio: 3/2; }
.g-b { grid-column: span 4; } .g-b .ph { aspect-ratio: 3/4.1; }
.g-c { grid-column: span 4; } .g-c .ph { aspect-ratio: 3/4.1; }
.g-d { grid-column: span 8; } .g-d .ph { aspect-ratio: 3/2; }
.g-e { grid-column: span 6; } .g-e .ph { aspect-ratio: 3/2; }
/* Whole photos, shown at their own shape so nothing is cropped */
.gallery.whole { align-items: start; row-gap: 28px; }
.g-half { grid-column: span 6; } .g-full { grid-column: span 12; }
.gallery.whole img { height: auto; object-fit: contain; }

/* Partners page */
.current { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--carbon); }
.current > * {
  padding: 30px 20px 30px 0; text-decoration: none; border-bottom: 1.5px solid var(--carbon);
  font-family: var(--display); font-weight: 900; font-size: clamp(40px, 4.3vw, 68px); line-height: .9; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  transition: color .2s;
}
.current > * + * { padding-left: 20px; border-left: 1px solid var(--line); }
.current a:hover { color: var(--red); }
.current small { font-family: var(--body); font-weight: 500; font-size: 14px; text-transform: none; color: var(--graphite); }

.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.offer { border-top: 1.5px solid currentColor; padding-top: 20px; }
.offer h3 { margin: 0 0 10px; font-size: 21px; font-weight: 600; line-height: 1.25; }
.offer p { margin: 0; color: var(--graphite); }
.on-dark .offer p { color: rgba(238,239,241,.7); }
.offer-group + .offer-group { margin-top: clamp(60px, 7vw, 100px); }
.offer-group > h3 { margin-bottom: 26px; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { background: var(--paper); border-radius: 6px; padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; }
.tier.title { background: var(--red); color: #fff; }
.tier .h3 { margin-bottom: 12px; }
.tier > p { margin: 0 0 22px; color: var(--graphite); }
.tier.title > p { color: rgba(255,255,255,.85); }
.tier ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tier.title ul { border-color: rgba(255,255,255,.3); }
.tier li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.tier.title li { border-color: rgba(255,255,255,.3); }
.fine { margin-top: 24px; color: var(--graphite); font-size: 15px; }

/* CTA band */
.cta { padding: clamp(90px, 12vw, 160px) 0; text-align: left; }
.cta .display { font-size: clamp(64px, 12vw, 190px); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.direct dl { margin: 0; border-top: 1.5px solid var(--carbon); }
.direct dl div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.direct dt { font-size: 14px; color: var(--graphite); }
.direct dd { margin: 4px 0 0; font-size: 20px; font-weight: 600; word-break: break-word; }
.direct dd a { text-decoration: none; }
.direct dd a:hover { color: var(--red); }
.form { background: var(--paper); border-radius: 6px; padding: clamp(24px, 3vw, 44px); display: grid; gap: 20px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--carbon);
  background: var(--pit); border: 1.5px solid transparent; border-radius: 4px;
  padding: 14px 16px; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--carbon); }
.field textarea { min-height: 160px; resize: vertical; }
.form-status { margin: 0; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: #137a3a; }
.form-status.err { color: var(--red-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .season-list { grid-template-columns: repeat(3, 1fr); }
  .season-list li:nth-child(3n) { border-right: 0; }
  .season-list li:nth-child(3n+1) { padding-left: 0; }
  .season-list li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .split { grid-template-columns: minmax(0, 1fr) auto; }
  .split p { grid-column: 1 / -1; grid-row: 2; }
  .social-grid, .page-head-row, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .tiers, .offer-grid { grid-template-columns: 1fr; }
  .tier { max-width: 560px; }
}
@media (max-width: 800px) {
  .menu { grid-template-columns: 1fr; grid-template-rows: auto auto; overflow-y: auto; align-content: start; }
  .menu-links { padding-bottom: 28px; justify-content: flex-start; }
  .menu-side { border-left: 0; padding-top: 0; justify-content: flex-start; gap: 20px; }
  .top-actions .btn { display: none; }
  .note-grid { grid-template-columns: 1fr; gap: 16px; }
  .note-label { padding-top: 0; }
  .current { grid-template-columns: 1fr; }
  .current > * + * { padding-left: 0; border-left: 0; }
  .tl-item { grid-template-columns: 1fr; gap: 14px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .social-photos { grid-template-columns: 1fr; }
  .form .two { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero-name .w { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .season-list { grid-template-columns: 1fr 1fr; }
  .season-list li { border-right: 1px solid var(--line) !important; padding-left: 14px !important; border-top: 1px solid var(--line); }
  .season-list li:nth-child(odd) { padding-left: 0 !important; }
  .season-list li:nth-child(even) { border-right: 0 !important; }
  .season-list li:nth-child(-n+2) { border-top: 0; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-meta p { text-align: left !important; }
}

/* Horizontal strip falls back to a swipeable row on touch/small screens */
@media (max-width: 900px), (hover: none) {
  .strip { height: auto !important; }
  .strip-sticky { position: relative; height: auto; padding: 90px 0; }
  .strip-track {
    transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory;
    height: 460px; scrollbar-width: none; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch;
  }
  .strip-track::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
  .strip-progress { display: none; }
}
@media (max-width: 900px), (hover: none) {
  .strip-track { height: 420px; }
  .card.wide { aspect-ratio: auto; width: min(84vw, 620px); }
  .card.tall { aspect-ratio: auto; width: min(62vw, 300px); }
  .card.fact { aspect-ratio: auto; width: min(70vw, 320px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-name .w, .hero-meta, .hero-sub { opacity: 1; }
  .marquee-row { animation: none; }
}

/* Select matches the text inputs */
.field select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317191D' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
  padding-right: 44px;
}

/* ---------- Mobile cover: compact stacked layout ----------
   Name, then the photo (car whole and centred), then the season lines.
   No full-screen height, so there's no empty band above the name. */
@media (max-width: 700px) {
  .hero { min-height: 0; padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
  .hero-center { position: relative; inset: auto; padding: 18px var(--gutter) 0 !important; order: 1; }
  .hero-frame {
    position: relative; inset: auto; order: 2; z-index: 1;
    height: 44vw; overflow: hidden; margin-top: 10px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  }
  /* photo at 139% width puts the car (66% of the photo) at 92% of the screen, centred */
  .hero-frame img {
    position: absolute !important; max-width: none !important;
    width: 139.2vw !important; height: 92.8vw !important;
    left: -5.1vw !important; top: -40.3vw !important;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero-inner { order: 3; margin-top: 0; padding-top: 14px; }
  .hero::after { background: linear-gradient(0deg, rgba(23,25,29,.55) 0%, rgba(23,25,29,.1) 40%, rgba(23,25,29,.1) 100%); }
}


/* ---------- Odometer stats ---------- */
.numbers b.odo { line-height: 1; }
.odo .reel { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.odo .strip { display: block; transition: transform var(--dur, 1.8s) cubic-bezier(.16, .8, .14, 1); will-change: transform; }
.odo .strip span { display: block; height: 1em; text-align: center; }

/* ---------- 404: off track ---------- */
.off { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: #1F2126; color: var(--pit); }
.off-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.off-car { display: none !important; }
.off-copy {
  position: relative; z-index: 2;
  padding: calc(120px + env(safe-area-inset-top, 0px)) var(--gutter) 40px;
  max-width: var(--max); margin: 0 auto;
}
.off-code { margin: 0 0 14px; font-size: 15px; color: rgba(238,239,241,.6); }
.off-title { margin: 0; line-height: 0; }
.pixel-title { display: block; width: min(100%, 760px); height: auto; }
.off-text { margin: 22px 0 30px; font-size: clamp(18px, 1.6vw, 22px); max-width: 26em; color: rgba(238,239,241,.82); }

/* ---------- Drive mode ---------- */
.drive-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px 7px 12px; border: 1.5px solid currentColor; border-radius: 999px;
  background: transparent; color: inherit;
  font-family: var(--body); font-weight: 600; font-size: 14px;
  transition: background .2s, color .2s, border-color .2s;
}
.drive-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.drive-btn img { flex: none; max-width: none; width: 11px; height: 24px; image-rendering: pixelated; image-rendering: crisp-edges; transform: rotate(180deg); }
.drive-btn[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
body:not(.page-home) .drive-btn { display: none; }
body.menu-open .drive-btn { visibility: hidden; }
@media (max-width: 800px) { .drive-btn { padding: 6px 11px; } .drive-label { display: none; } }
.drive-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 35; }
.drive-touch { position: fixed; inset: 0; z-index: 44; touch-action: none; }
body.driving { -webkit-user-select: none; user-select: none; }
.kl { display: inline-block !important; width: auto !important; will-change: transform; }
.kl-shimmer { animation: klWave .7s var(--ease) both; }
@keyframes klWave { 0% { transform: none; } 35% { transform: translateY(-.12em); } 70% { transform: none; } }
.drive-hit { animation: driveHit .26s linear; }
@keyframes driveHit { 20% { transform: translate(2px,-1px); } 45% { transform: translate(-2px,1px); } 70% { transform: translate(1px,0); } 100% { transform: none; } }
.kt, .kw { display: inline !important; width: auto !important; }
.kw { white-space: nowrap; }
.drive-portal {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  display: grid; place-content: center; text-align: center;
  background: rgba(216,18,28,0); color: #fff;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(56px, 10vw, 150px); line-height: .9;
  opacity: 0; transition: opacity .35s var(--ease), background .35s var(--ease);
}
.drive-portal span { display: block; font-family: var(--body); font-weight: 600; font-size: 16px; text-transform: none; letter-spacing: 0; margin-bottom: 14px; opacity: .8; }
.drive-portal.show { opacity: 1; background: rgba(216,18,28,.94); }
.split.portal-on .go { animation: portalPulse .5s ease-in-out infinite; background: #fff; color: var(--red); }
@keyframes portalPulse { 50% { transform: scale(1.18); } }
@media print { .drive-btn { display: none; } }
/* small phones: keep the name, drive button and menu on one line */
@media (max-width: 420px) { .mark { font-size: 23px; } .top-actions { gap: 8px; } }
@media (max-width: 360px) { .menu-btn .menu-label { display: none; } }

/* ---------- Race Georgia ---------- */
.race-head { padding-bottom: clamp(24px, 3vw, 40px); }
.race-prize {
  margin: 0; padding: 18px 22px; border-radius: 6px;
  background: var(--carbon); color: var(--pit); font-size: 17px; line-height: 1.45;
}
.race-prize strong { color: #FF4B53; }
.race-block { padding-bottom: clamp(70px, 9vw, 120px); }
.race-lights {
  position: absolute; top: clamp(8px, 1.6vw, 16px); left: 50%; transform: translateX(-50%); z-index: 2;
  justify-content: center; gap: clamp(4px, .9vw, 10px);
  background: var(--carbon); padding: clamp(5px, .9vw, 9px) clamp(7px, 1.2vw, 12px); border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.race-lights .light-col { padding: clamp(3px, .5vw, 5px); gap: clamp(3px, .5vw, 5px); border-radius: 6px; }
.race-lights .light { width: clamp(11px, 2.1vw, 26px); }
.race-lights .light-col.on .light:last-child { box-shadow: 0 0 16px 3px rgba(216, 18, 28, .6); }
.race-stage { position: relative; border-radius: 6px; overflow: hidden; background: #2B2D33; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.race-stage canvas { display: block; width: 100%; }
.race-controls { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.race-btn { min-width: 12em; justify-content: center; touch-action: manipulation; }
.race-btn.armed { animation: armedPulse 1.2s ease-in-out infinite; }
@keyframes armedPulse { 50% { box-shadow: 0 0 0 8px rgba(216, 18, 28, .18); } }
.race-status { margin: 0; font-size: 17px; flex: 1; min-width: 16em; }
@media (max-width: 700px) {
  .race-btn { width: 100%; padding: 20px; font-size: 17px; }
  .race-status { min-width: 0; }
}

/* podium */
.podium-overlay {
  position: fixed; inset: 0; z-index: 65; display: flex; padding: 20px; overflow-y: auto;
  background: rgba(23, 25, 29, .6); opacity: 0; transition: opacity .3s var(--ease);
}
.podium-overlay.show { opacity: 1; }
.podium-card {
  margin: auto;
  background: var(--pit); color: var(--carbon); border-radius: 8px; text-align: center;
  padding: clamp(26px, 4vw, 44px); width: min(440px, 100%);
  transform: translateY(16px) scale(.96); transition: transform .45s var(--ease);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.podium-overlay.show .podium-card { transform: none; }
.podium-trophy { width: min(210px, 70%); margin: 0 auto 10px; animation: trophyIn .7s var(--ease) both .1s; }
.podium-trophy svg { width: 100%; height: auto; display: block; }
@keyframes trophyIn { from { transform: translateY(-30px) scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.podium-pos { margin: 6px 0 0; font-family: var(--display); font-weight: 900; font-size: 84px; line-height: .85; color: var(--red); }
.podium-title { margin: 6px 0 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1; }
.podium-time { margin: 10px 0 0; color: var(--graphite); }
.podium-wall {
  margin: 22px 0 0; padding: 14px; border: 1.5px dashed var(--carbon); border-radius: 6px;
  display: flex; gap: 16px; align-items: center; text-align: left;
}
.podium-wall-img { flex: none; width: 92px; aspect-ratio: 1179 / 2556; height: auto; border-radius: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.25); image-rendering: pixelated; }
.podium-wall span { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1; }
.podium-wall small { display: block; font-size: 14px; color: var(--graphite); margin: 6px 0 12px; }
.podium-wall .btn { padding: 10px 18px; }
.podium-wall .podium-ios { margin: 10px 0 0; font-size: 12px; }
.podium-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 70; pointer-events: none; }
.race-sprite { display: none !important; }
.race-block .wrap { max-width: 920px; }
@media (min-width: 701px) and (max-height: 900px) { .race-block .wrap { max-width: min(920px, calc((100vh - 150px) * 16 / 9)); } }

/* the mini game: kept small and separate in the menu so it never competes with the main pages */
.menu-game {
  margin: 6px 0 0; width: fit-content;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 20px 10px 14px; border: 1px dashed rgba(238,239,241,.32); border-radius: 999px;
  color: var(--pit); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: border-color .2s, background .2s;
}
.menu-game img { flex: none; max-width: none; width: 11px; height: 24px; image-rendering: pixelated; image-rendering: crisp-edges; transform: rotate(180deg); }
.menu-game small { display: block; font-size: 12px; font-weight: 500; opacity: .6; }
.menu-game:hover, .menu-game[aria-current="page"] { border-color: var(--red); background: rgba(216,18,28,.14); }
.game-tag {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--carbon); color: var(--pit);
  font-size: 14px; font-weight: 600;
}
.game-tag img { flex: none; max-width: none; width: 9px; height: 20px; image-rendering: pixelated; transform: rotate(180deg); }
.menu-big.as-typed { text-transform: none; }

/* Partner logos, all in one colour (they take the text colour, so they turn red on hover like the rest) */
.current > *, .current > * + * {
  min-height: 0; padding: clamp(36px, 4.4vw, 56px) 24px !important;
  align-items: center; justify-content: center; text-align: center; gap: 20px;
}
/* every logo gets the same 100px-tall stage and is centred in it, so logos and labels line up across the row */
.logo {
  --s: 1; display: block; flex: none; background: currentColor;
  height: calc(100px * var(--s)); width: min(calc(var(--w) * var(--s)), 100%);
  -webkit-mask: var(--logo) no-repeat center / contain; mask: var(--logo) no-repeat center / contain;
}
/* widths tuned so each mark carries similar visual weight */
.logo-dwa      { --logo: url("../images/logos/dwa.webp");      --w: 112px; }
.logo-gtechniq { --logo: url("../images/logos/gtechniq.webp"); --w: 250px; }
.logo-kerb     { --logo: url("../images/logos/kerb.webp");     --w: 262px; }
.current small { font-size: 15px; }
@media (max-width: 1000px) { .logo { --s: .85; } }
@media (max-width: 800px)  { .current > *, .current > * + * { padding: 32px 0 !important; } .logo { --s: .8; } }

/* intro caption stays hidden until the heading font has loaded, so it never swaps fonts on screen */
.loader-caption { opacity: 0; transition: opacity .25s ease; }
.fonts-ready .loader-caption { opacity: 1; }

@media (max-height: 780px) { .podium-trophy { width: min(150px, 50%); } .podium-pos { font-size: 64px; } }

/* Results table on phones: each row becomes a stacked block, so nothing is cut off or needs sideways scrolling */
@media (max-width: 700px) {
  .table-wrap { overflow: visible; }
  .results { min-width: 0; }
  .results thead { display: none; }
  .results, .results tbody, .results tr, .results td { display: block; }
  .results tr {
    display: grid; grid-template-columns: 62px minmax(0, 1fr); column-gap: 14px;
    grid-template-areas: "yr ev" "yr res" "yr note";
    padding: 18px 0; border-bottom: 1px solid var(--line-dark);
  }
  .results td { padding: 0; border: 0; max-width: none; }
  .results td:first-child { grid-area: yr; font-size: 26px; padding-top: 2px; }
  .results td.ev { grid-area: ev; font-size: 16px; }
  .results td.res { grid-area: res; font-size: 26px; margin: 6px 0 4px; white-space: normal; }
  .results td.note { grid-area: note; font-size: 14px; }
  .results tbody tr:first-child { border-top: 1.5px solid var(--pit); }
}

/* drive mode: a small grey hint that sits in a clear gap, never on top of text */
.drive-hint {
  position: fixed; left: 50%; top: auto; z-index: 46; pointer-events: none; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(23, 25, 29, .82); color: rgba(238, 239, 241, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--body); font-size: 13px; font-weight: 500;
  transition: left .3s ease, top .3s ease, opacity .25s ease;
  animation: driveHint 3.6s ease forwards;
}
.drive-hint.placed-instantly { transition: opacity .25s ease; }
@keyframes driveHint {
  0% { opacity: 0; }
  12%, 80% { opacity: 1; }
  100% { opacity: 0; }
}


.cta-note { margin-top: clamp(18px, 2vw, 26px); }
.cta-note + .cta-row { margin-top: 26px; }
