/* Team Pedal Power - site styles
   Translated from the approved canvas mockup (Home = direction A + rider cards from B,
   Sponsors = direction D restyled). Mobile-first; desktop rules live in the media queries. */

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #161616;
  --line: #2c2c2c;
  --line-soft: #555555;
  --red: #e11d2a;
  --red-deep: #c8101e;
  --red-light: #ff5a5f;
  --text: #ffffff;
  --muted: #c9c9c9;
  --muted-2: #d4d4d4;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --gutter: 20px;
  --skew: skewX(-10deg);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--red-light); text-decoration: none; }
a:hover { color: #fff; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.display em { font-style: inherit; color: var(--red); }

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red-light);
}
.muted { color: var(--muted); }
.link-red {
  color: var(--red-light);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 0;
  white-space: nowrap;
}

/* ---- Buttons & tags --------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1;
  padding: 14px 26px;
  transform: var(--skew);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn-red { background: var(--red-deep); color: #fff; }
.btn-red:hover { background: var(--red); color: #fff; }
.btn-white { background: #fff; color: var(--bg); }
.btn-white:hover { background: var(--red); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--bg); }

/* Phones: the flags sit under the tag as a thin strip no wider than the tag itself,
   like the collar of the jersey. From tablet up they line up beside it at the tag's height. */
.hero-kicker { display: inline-flex; flex-direction: column; align-self: flex-start; gap: 8px; }
.flags { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.flags img { height: 13px; width: auto; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,0.6); }
/* Tablet up: tag and six flags on one row. 28px flags with 5px gaps fit the hero column
   at every desktop width, including 1280px laptops and the centred 1920px layout. */
@media (min-width: 720px) {
  .hero-kicker { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
  .flags { gap: 5px; }
  .flags img { height: 28px; }
}
.tag {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  height: 34px;
  background: var(--red-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 9px 14px;
  transform: var(--skew);
}

/* ---- Navigation ------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
  padding: 0 var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  margin-right: auto;
}
.brand img { width: 44px; height: auto; }
.brand span {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 21px;
  line-height: 1;
}
.nav-toggle { display: none; }
.nav-burger {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ''; display: block; width: 26px; height: 3px; background: #fff; position: relative;
  transition: transform .2s;
}
.nav-burger span::before { position: absolute; top: -8px; }
.nav-burger span::after { position: absolute; top: 8px; }
.nav-links {
  display: none;
  position: absolute;
  top: 72px; left: 0; right: 0;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 20px;
  background: var(--bg);
  border-bottom: 2px solid var(--red);
}
.nav-toggle:checked ~ .nav-links { display: flex; }
.nav-toggle:checked ~ .nav-burger span { background: transparent; }
.nav-toggle:checked ~ .nav-burger span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span::after { transform: translateY(-8px) rotate(-45deg); }
.nav-links a:not(.btn) {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a.active { border-bottom-color: var(--red); }
.nav-links .btn { font-size: 20px; padding: 11px 22px; margin-top: 8px; align-self: flex-start; }

/* ---- Sections --------------------------------------------------------- */
.section { padding: 56px var(--gutter); }
.section-dark { background: var(--surface); }
.section h2.display { font-size: clamp(44px, 9vw, 76px); }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

/* ---- Home: hero ------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 42% center;
  filter: contrast(1.08) saturate(0.95);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.55) 45%, var(--bg) 92%);
}
.hero-stripe {
  position: absolute; top: 0; bottom: 0;
  transform: skewX(-12deg);
  z-index: 1;
}
.hero-stripe-red { left: -60px; width: 90px; background: var(--red); }
.hero-stripe-white { left: 44px; width: 12px; background: #fff; }
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 20px;
  padding: 120px var(--gutter) 48px;
  width: 100%;
}
.hero-title { font-size: clamp(88px, 22vw, 184px); letter-spacing: -0.02em; line-height: 0.84; }
.hero-lead { font-size: 19px; color: #e6e6e6; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; padding-left: 6px; }

/* ---- Hero sponsor strip --------------------------------------------------
   Sponsor plates on the hero itself, like sponsor decals on a bike frame: visible without
   scrolling, part of the scene rather than a banner above it. Phones: a dark strip under
   the hero copy with a swipeable row. Desktop: a translucent band over the photo's bottom. */
.hero-sponsors {
  position: relative; z-index: 3;
  width: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px var(--gutter) 18px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.hero-sponsors-label {
  flex-shrink: 0;
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
/* Phones: two plates per row, all visible, no sideways scrolling. */
.hero-sponsors-list {
  display: flex; flex-wrap: wrap; gap: 10px 12px;
  width: 100%;
  padding: 2px 6px;
}
/* Every plate is the same box and each logo fills it by its own shape, so wide logos
   (Family Tax, Pit Lane) are as legible as compact ones (Trek). */
.hero-sponsors-list li { width: calc(50% - 6px); max-width: 170px; }
.hero-sponsors-list li a {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 50px;
  background: #ffffff;
  transform: skewX(-10deg);
  transition: transform .15s;
}
.hero-sponsors-list li a:hover { transform: skewX(-10deg) translateY(-2px); }
.hero-sponsors-list img { max-width: 108px; max-height: 38px; width: auto; height: auto; object-fit: contain; transform: skewX(10deg); }

/* ---- Next race bar ------------------------------------------------------ */
.next-race {
  background: var(--red-deep);
  color: #fff;
  padding: 16px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "label name" "label when" "link link";
  column-gap: 16px; row-gap: 2px;
  align-items: center;
}
.next-race-label {
  grid-area: label;
  align-self: center;
  background: #fff; color: var(--red-deep);
  font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 18px; line-height: 1;
  padding: 7px 10px 7px 8px;
  transform: var(--skew);
}
.next-race-name {
  grid-area: name;
  font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 24px; line-height: 1;
}
.next-race-when { grid-area: when; font-size: 14px; color: #ffd6d8; }
.next-race-link {
  grid-area: link;
  margin-top: 10px;
  color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 0;
}
.next-race-link:hover { color: #ffd6d8; }

/* ---- Home: team ------------------------------------------------------- */
.team { display: flex; flex-direction: column; gap: 36px; }
.team-photo { position: relative; }
.team-photo::before {
  content: '';
  position: absolute; left: -10px; top: 10px; width: 100%; height: 100%;
  background: var(--red);
  transform: skewX(-4deg);
}
.team-photo img {
  position: relative;
  width: 100%; aspect-ratio: 14 / 9; object-fit: cover; object-position: center 60%;
  transform: skewX(-4deg);
}
.team-photo .lightbox-link { display: block; cursor: zoom-in; }
.team-copy { display: flex; flex-direction: column; gap: 18px; }
.team-copy p { font-size: 18px; color: var(--muted-2); max-width: 760px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  border: 1px solid var(--line-soft);
  padding: 7px 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---- Home: riders ----------------------------------------------------- */
.rider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.rider-card {
  display: flex; flex-direction: column;
  background: var(--surface-2);
  border-bottom: 6px solid var(--red);
  overflow: hidden;
  color: #fff;
}
/* flex-shrink 0 keeps every photo the same height; without it, cards with less text below
   (no award) stretched their photo to fill the grid row. */
.rider-photo { position: relative; aspect-ratio: 1 / 1.1; flex-shrink: 0; background: var(--bg); }
.rider-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  filter: grayscale(1) contrast(1.15);
  transition: filter .25s;
}
.rider-card:hover .rider-photo img { filter: grayscale(0) contrast(1.05); }
.role {
  position: absolute; left: 10px; bottom: 10px;
  background: #fff; color: var(--bg);
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 8px;
}
.role-staff { background: var(--red-deep); color: #fff; }

/* Award: gold race-style plate on the winner's card, card outlined in gold, photo in colour. */
.rider-card.has-award { border-bottom-color: #d4a017; outline: 2px solid #d4a017; outline-offset: -2px; }
.has-award .rider-photo img { filter: contrast(1.05) saturate(1.05); }
.award {
  align-self: flex-start; max-width: 100%;
  margin: 2px 0 4px 4px;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  background: linear-gradient(135deg, #f7dc7a 0%, #e2b33a 45%, #b8860b 100%);
  color: #111;
  transform: skewX(-10deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}
.award > * { transform: skewX(10deg); }
.award-medal { width: 28px; height: 28px; flex-shrink: 0; }
.award-text small {
  display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
}
.award-text strong {
  display: block;
  font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 16px; line-height: 0.95;
}
.rider-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.rider-body h3 { font-size: 26px; line-height: 0.95; }
.rider-body h3 em { color: var(--red-light); }
.rider-body h3 .nick { color: var(--muted); font-size: 0.72em; }
/* Long surnames (Vandenheuvel) would run past the narrow phone card at the default size. */
@media (max-width: 719px) { .rider-body h3.long-name { font-size: 22px; } }
.rider-stats { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; }
.rider-stats dt { color: #a8a8a8; letter-spacing: 0.12em; text-transform: uppercase; }
.rider-stats dd { margin: 0; font-weight: 600; text-align: right; }
.rider-open {
  border: 3px dashed var(--red);
  border-bottom: 3px dashed var(--red);
  background: transparent;
  align-items: center; justify-content: center; text-align: center;
  gap: 8px; padding: 24px 16px;
}
.open-title { font-size: 40px; color: var(--red); }
.rider-open .muted { font-size: 14px; }

/* ---- Home: races ------------------------------------------------------ */
.race-list { margin-top: 20px; }
.race-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.race-date { font-size: 24px; color: var(--red); }
.race-name { font-size: 30px; }
.race-venue { font-size: 15px; color: var(--muted); }
.race-result {
  justify-self: start;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  border: 1px solid var(--line-soft); padding: 8px 14px; margin-top: 6px;
}

/* ---- Sponsors (shared grid) ------------------------------------------ */
.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
/* Sponsor logos sit on white tiles: that is what the logos are designed for (none of them
   has a white-on-dark version) and it reads like a race-day sponsor board. */
.sponsor-grid li a {
  display: flex; align-items: center; justify-content: center;
  height: 130px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-bottom: 5px solid var(--line);
  transition: border-color .2s;
}
.sponsor-grid li a:hover { border-color: var(--red); }
.sponsor-grid img { max-height: 84px; max-width: 80%; object-fit: contain; }

/* ---- Footer ----------------------------------------------------------- */
.footer {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 36px var(--gutter);
  border-top: 4px solid var(--red);
}
.footer img { width: 64px; height: auto; }
.footer-tagline { font-size: 28px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #bdbdbd; }
.footer-meta a { color: #fff; }
.footer-meta a:hover { color: var(--red-light); }

/* ---- Sponsors page ---------------------------------------------------- */
.shero { display: flex; flex-direction: column; }
.shero-copy { display: flex; flex-direction: column; gap: 20px; padding: 48px var(--gutter) 40px; }
.shero-title { font-size: clamp(60px, 15vw, 128px); line-height: 0.86; }
.shero-copy p { font-size: 18px; color: var(--muted-2); max-width: 540px; }
.shero-photo { position: relative; }
.shero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 45% center; filter: contrast(1.08) saturate(0.9); }
.shero-photo::before {
  content: '';
  position: absolute; left: 0; right: 0; top: -2px; height: 14px;
  background: var(--red);
}

.partners { display: flex; flex-direction: column; gap: 24px; }
.partners h2.partners-title { font-size: 34px; line-height: 0.95; }

.why h2 { margin-bottom: 32px; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.why-grid > div { border-top: 4px solid var(--red); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.why-num { font-size: 24px; color: var(--red-light); }
.why-grid h3 { font-size: 44px; }
.why-grid p { color: var(--muted-2); font-size: 16px; }

.package-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.package {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface-2);
  padding: 26px 24px 28px;
}
.package h3 { font-size: 48px; }
.package-price { font-size: 17px; font-weight: 700; color: var(--red-light); }
.package ul { display: flex; flex-direction: column; gap: 9px; flex-grow: 1; }
.package li { display: flex; gap: 10px; font-size: 15px; color: var(--muted-2); }
.package li::before { content: '/'; color: var(--red-light); font-weight: 800; }
.package .btn { font-size: 20px; align-self: stretch; margin-top: 6px; }
.package-featured { background: var(--red-deep); }
.package-featured .package-price, .package-featured li, .package-featured li::before { color: #fff; }

.wearing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wearing-grid li { display: flex; flex-direction: column; gap: 8px; }
.wearing-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.15); }
.wearing-grid .display { font-size: 20px; }
.wearing-grid small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-light); font-weight: 700; }

.contact {
  background: var(--red-deep);
  padding: 56px var(--gutter);
  display: flex; flex-direction: column; gap: 32px;
}
.contact-copy { display: flex; flex-direction: column; gap: 14px; }
.contact-copy h2 { font-size: clamp(48px, 11vw, 96px); line-height: 0.88; }
.contact-copy p { font-size: 18px; max-width: 620px; }
.contact-card {
  background: var(--bg);
  padding: 26px;
  display: flex; flex-direction: column; gap: 8px;
}
.contact-name { font-size: 40px; }
.contact-card .btn { margin-top: 10px; font-size: 18px; font-family: var(--body); font-style: normal; font-weight: 700; text-transform: none; transform: none; }

/* ---- Lightbox --------------------------------------------------------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 10, 10, 0.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lightbox-close {
  position: fixed; top: 16px; right: 16px;
  width: 48px; height: 48px;
  border: 2px solid #fff; background: var(--bg); color: #fff;
  font-size: 28px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: var(--red); border-color: var(--red); }

/* ---- Error ------------------------------------------------------------ */
.error-page { min-height: 60vh; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.error-page h1 { font-size: 96px; }

/* ======================================================================
   Tablet
   ====================================================================== */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .rider-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .race-list li { grid-template-columns: 120px 1fr auto; align-items: center; gap: 20px; }
  .race-result { margin-top: 0; }
  .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wearing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .contact { flex-direction: row; align-items: center; gap: 48px; }
  .contact-card { width: 360px; flex-shrink: 0; }
  .footer { flex-direction: row; align-items: center; }
  .footer-tagline { flex-grow: 1; }
}

/* ======================================================================
   Desktop
   ====================================================================== */
@media (min-width: 1024px) {
  :root { --gutter: 56px; }
  .nav { height: 88px; gap: 40px; }
  .brand img { width: 66px; }
  .brand span { font-size: 34px; }
  .nav-burger { display: none; }
  .nav-links {
    display: flex; position: static;
    flex-direction: row; align-items: center; gap: 36px;
    padding: 0; border: 0; background: transparent;
  }
  .nav-links .btn { margin: 0; font-size: 22px; padding: 12px 26px; }

  .section { padding: 88px var(--gutter); }

  /* Fill the screen below the nav so the sponsor strip at the bottom is in the first view,
     within a 660-888px range so the composition holds on very short or tall screens. */
  .hero { min-height: clamp(660px, calc(100vh - 88px), 888px); align-items: center; }
  .hero-sponsors {
    position: absolute; left: 0; right: 0; bottom: 0;
    flex-direction: row; align-items: center;
    padding: 12px var(--gutter);
    gap: 22px;
    background: linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.72) 100%);
    border-top: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
  }
  .hero-sponsors-label { font-size: 12px; }
  .hero-sponsors-list { flex-wrap: nowrap; gap: 16px; width: auto; }
  .hero-sponsors-list li { width: 150px; max-width: none; }
  .hero-sponsors-list li a { height: 52px; }
  .hero-sponsors-list img { max-width: 122px; max-height: 40px; }
  .hero-img { object-position: center 40%; }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(10,10,10,0) 42%, rgba(10,10,10,0.88) 64%, var(--bg) 100%),
      linear-gradient(180deg, rgba(10,10,10,0) 70%, var(--bg) 100%);
  }
  .hero-stripe-red { left: -70px; width: 120px; }
  .hero-stripe-white { left: 70px; width: 16px; }
  /* The rider sits around 42% of the photo width, so the copy starts past the helmet. */
  .hero-content { margin-left: 56%; width: 44%; padding: 64px var(--gutter) 112px 0; gap: 22px; }
  /* Title scales with screen height so the copy and the sponsor strip share the first view. */
  .hero-title { font-size: clamp(120px, 17vh, 184px); }
  .hero-lead { font-size: 21px; }
  .next-race {
    height: 64px; padding: 0 var(--gutter);
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas: "label name when link";
    column-gap: 24px;
  }
  .next-race-label { font-size: 22px; }
  .next-race-name { font-size: 28px; }
  .next-race-when { font-size: 16px; }
  .next-race-link { margin-top: 0; }

  .team { flex-direction: row; align-items: center; gap: 64px; }
  .team-photo { width: 760px; flex-shrink: 0; }
  .team-copy h2 { font-size: 64px; }
  .team-photo img { aspect-ratio: 14 / 9; }

  .rider-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .rider-body h3 { font-size: 34px; }
  .role { left: 14px; bottom: 12px; font-size: 12px; padding: 6px 10px; }
  .award { padding: 8px 14px 8px 10px; gap: 10px; }
  .award-medal { width: 36px; height: 36px; }
  .award-text small { font-size: 10px; }
  .award-text strong { font-size: 21px; }

  .race-list li { grid-template-columns: 150px 1fr 260px auto; gap: 32px; padding: 22px 0; }
  .race-date { font-size: 30px; }
  .race-name { font-size: 36px; }
  .race-venue { font-size: 17px; }

  .sponsor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .sponsor-grid li a { height: 150px; }
  .sponsor-grid img { max-height: 100px; max-width: 84%; }

  .shero { flex-direction: row; min-height: 640px; }
  .shero-copy { flex-grow: 1; justify-content: center; padding: 40px 24px 40px var(--gutter); }
  .shero-copy p { max-width: 460px; }
  /* Keep the copy column under ~640px tall; taller than that stretches the photo column
     into a portrait crop and the riders at the edges disappear. */
  .shero-copy { gap: 16px; }
  .shero-title { font-size: 104px; }
  /* 58% wide: at the hero's 640px height a 4:3 photo fits with almost no side crop, so the
     whole group stays in frame. */
  .shero-photo { width: 58%; flex-shrink: 0; }
  .shero-photo img { height: 100%; aspect-ratio: auto; }
  .shero-photo::before {
    top: 0; bottom: 0; right: auto; left: 22px; width: 12px; height: auto;
    transform: skewX(-6deg);
  }
  .shero-photo::after {
    content: '';
    position: absolute; left: -70px; top: 0; bottom: 0; width: 90px;
    background: var(--bg);
    transform: skewX(-6deg);
  }
  .shero-photo::before { z-index: 1; }

  .partners { flex-direction: row; align-items: center; gap: 48px; padding-top: 48px; padding-bottom: 48px; }
  .partners h2.partners-title { width: 190px; flex-shrink: 0; font-size: 40px; }
  .partners .sponsor-grid { flex-grow: 1; }

  .package-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  /* 8 riders: two even rows of four instead of seven plus one orphan. */
  .wearing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .wearing-grid img { height: 220px; }
  .contact { padding: 80px var(--gutter); gap: 64px; }
  .contact-card { width: 380px; }
}

@media (min-width: 1440px) {
  .section, .nav, .footer, .contact, .shero-copy, .hero-content { padding-left: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter))); }
  .hero-content { margin-left: 58%; width: 42%; padding-left: 0; }
}

/* Short laptop screens (e.g. 1366x768): a tighter hero so the copy and the sponsor
   strip both fit in the first view. Last in the file so it wins over the desktop rules. */
@media (min-width: 1024px) and (max-height: 800px) {
  .hero-title { font-size: clamp(104px, 15vh, 184px); }
  .hero-content { gap: 14px; padding-top: 44px; padding-bottom: 104px; }
  .hero-lead { font-size: 18px; }
}
