/* =========================================================
   Peter Willis Racing: #99  |  British Sportbike 2026
   Theme: deep navy + PW yellow, slick motorsport feel
   ========================================================= */

:root {
  --bg:        #070b16;
  --bg-2:      #0b1226;
  --navy:      #101a36;
  --navy-2:    #16213f;
  --panel:     #0e1730;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  --yellow:    #ffd400;
  --yellow-2:  #ffc400;
  --teal:      #2bb7c4;
  --red:       #e2342b;

  --text:      #eef2fb;
  --muted:     #9aa6c2;
  --muted-2:   #6f7c9c;

  --white:     #ffffff;

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-head: "Saira", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--alt { background:
    radial-gradient(1200px 600px at 80% -10%, rgba(43,183,196,0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section--dark { background: var(--bg-2); }

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; font-size: 0.74rem; color: var(--yellow);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--yellow); }
.section-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  line-height: 0.92; letter-spacing: 0.01em;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
}
.section-title .thin { font-weight: 300; color: var(--muted); -webkit-text-stroke: 0; }
.section-intro { color: var(--muted); max-width: 60ch; margin-top: 18px; font-size: 1.04rem; }
.section-head { margin-bottom: clamp(34px, 5vw, 56px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.86rem;
  padding: 14px 26px; border-radius: 100px; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--yellow); color: #14110a; }
.btn--primary:hover { background: var(--yellow-2); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn svg { width: 16px; height: 16px; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 11, 22, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; }
.brand__num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--yellow); letter-spacing: 0.04em;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.82rem; color: var(--muted);
  padding: 9px 13px; border-radius: 8px; position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; }
.nav-links > .btn { display: none; } /* mobile-menu CTA only; hidden on desktop */

.nav-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--text);
  transition: transform .3s var(--ease), opacity .2s; border-radius: 2px;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-bottom: clamp(48px, 8vh, 96px); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,11,22,0.55) 0%, rgba(7,11,22,0.2) 35%, rgba(7,11,22,0.85) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7,11,22,0.7), transparent 55%);
}
.hero__watermark {
  position: absolute; right: -3vw; top: 4vh; z-index: -1; pointer-events: none;
  font-family: var(--font-display); font-weight: 700; font-size: 40vh; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 2px rgba(255,212,0,0.12);
  user-select: none;
}
.hero__inner { position: relative; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem;
  color: var(--yellow); margin-bottom: 18px;
}
.hero__tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 14px var(--yellow); }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  line-height: 0.86; letter-spacing: 0.01em; font-size: clamp(3.2rem, 12vw, 8.5rem);
  text-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.hero h1 .line2 { color: var(--yellow); }
.hero__sub { margin-top: 18px; font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: var(--text); max-width: 46ch; }
.hero__sub strong { color: var(--yellow); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  color: var(--muted); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-family: var(--font-head); display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll .mouse { width: 22px; height: 36px; border: 2px solid var(--muted-2); border-radius: 12px; position: relative; }
.hero__scroll .mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; background: var(--yellow);
  border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.6s var(--ease) infinite;
}
@keyframes scrolldot { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 16px; } 100% { opacity: 0; } }

/* ---------- SEO intro band ---------- */
.intro-band { background: var(--bg); padding: clamp(40px, 6vw, 64px) 0; border-bottom: 1px solid var(--line); }
.intro-band__text {
  font-family: var(--font-head); font-weight: 400; text-align: left;
  font-size: clamp(1.15rem, 2.3vw, 1.6rem); line-height: 1.55; color: var(--muted);
  max-width: 62ch;
}
.intro-band__text strong { color: var(--text); font-weight: 600; }

/* ---------- Stat strip ---------- */
.stat-strip { background: var(--navy); border-block: 1px solid var(--line); }
.stat-strip .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 28px 18px; text-align: center; border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1; color: var(--yellow); }
.stat__label { margin-top: 8px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--muted); }

/* =========================================================
   Story
   ========================================================= */
.story-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.story-copy p { color: var(--muted); margin-bottom: 18px; }
.story-copy p strong { color: var(--text); }
.story-copy .lead { font-size: 1.18rem; color: var(--text); }
.story-media { position: relative; }
.story-media__main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.story-media__main img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.story-media__badge {
  position: absolute; left: -18px; bottom: -22px; background: var(--yellow); color: #14110a;
  border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow); max-width: 220px;
}
.story-media__badge .b-num { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 0.9; }
.story-media__badge .b-text { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.74rem; }

/* =========================================================
   Cards / feature grids (Grid + Bike)
   ========================================================= */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: linear-gradient(180deg, var(--navy-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.card__icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,212,0,0.12); color: var(--yellow); margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

.grid-layout { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.grid-machines { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em;
  padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 100px; color: var(--text);
  background: rgba(255,255,255,0.03);
}
.chip.is-mine { background: var(--yellow); color: #14110a; border-color: var(--yellow); }

/* =========================================================
   Calendar
   ========================================================= */
.calendar { display: grid; gap: 10px; }
.cal-row {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 20px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); border-left: 3px solid var(--yellow);
  transition: transform .25s var(--ease), border-color .25s;
}
.cal-row:hover { transform: translateX(6px); border-left-color: var(--teal); }
.cal-row.is-tbc { border-left-color: var(--muted-2); opacity: 0.78; }
.cal-rnd { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--yellow); line-height: 1; text-align: center; }
.cal-rnd small { display: block; font-size: 0.55rem; letter-spacing: 0.18em; color: var(--muted); font-family: var(--font-head); }
.cal-venue { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; }
.cal-venue span { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.cal-races { font-family: var(--font-head); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }

/* Championship standing banner */
.standings {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,212,0,0.10), transparent 55%),
    linear-gradient(180deg, var(--navy-2), var(--panel));
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px);
  display: grid; gap: 18px;
}
.standings__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.standings__season { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.standings__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.standings__stat { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; }
.standings__val { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 0.95; color: var(--yellow); }
.standings__label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--muted); margin-top: 6px; }
.standings__note { font-size: 0.84rem; color: var(--muted-2); margin: 0; }
.standings[data-state="error"] .standings__note { color: var(--red); }

.cal-hint { color: var(--muted-2); font-size: 0.84rem; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.cal-hint::before { content: "▾"; color: var(--yellow); }

/* Expandable calendar item (wraps a round row + its results panel) */
.cal-item {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--yellow);
  border-radius: var(--radius-sm); overflow: hidden; transition: border-left-color .25s var(--ease);
}
.cal-item.open { border-left-color: var(--teal); }
.cal-item .cal-row {
  background: none; border: 0; border-radius: 0; border-left: 0; width: 100%; text-align: left;
  cursor: pointer; transition: background .2s; grid-template-columns: 70px 1fr auto 30px;
}
.cal-item .cal-row:hover { background: rgba(255,255,255,0.04); transform: none; border-left: 0; }
.cal-item .cal-row:focus-visible { outline-offset: -2px; }
.cal-chev { width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); transition: transform .3s var(--ease), color .2s; justify-self: end; }
.cal-chev svg { width: 18px; height: 18px; }
.cal-item.open .cal-chev { transform: rotate(180deg); color: var(--yellow); }
.cal-item .cal-row[data-has-results="0"] .cal-chev { opacity: 0.5; }

.cal-results { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.cal-item.open .cal-results { max-height: 360px; }
.cal-results__inner { padding: 4px 20px 18px 70px; border-top: 1px solid var(--line); margin-top: -1px; }
.res-table { width: 100%; border-collapse: collapse; }
.res-table th { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; color: var(--muted); text-align: left; padding: 10px 8px 8px; border-bottom: 1px solid var(--line); }
.res-table th:not(:first-child), .res-table td:not(:first-child) { text-align: center; width: 90px; }
.res-table td { padding: 10px 8px; font-family: var(--font-head); font-size: 0.95rem; border-bottom: 1px solid var(--line); }
.res-table .res-pos { font-weight: 700; color: var(--text); }
.res-table .res-pts { font-weight: 700; color: var(--yellow); }
.res-table tfoot td { border-bottom: 0; color: var(--muted); text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.08em; padding-top: 12px; }
.res-table tfoot .res-pts { font-family: var(--font-display); font-size: 1.2rem; }
.res-empty { color: var(--muted-2); font-size: 0.9rem; padding: 12px 0 4px; }
@media (max-width: 620px) {
  .standings__stats { grid-template-columns: 1fr; }
  .cal-item .cal-row { grid-template-columns: 54px 1fr 26px; }
  .cal-item .cal-row .cal-races { grid-column: 2; }
  .cal-item .cal-row .cal-chev { grid-row: 1; grid-column: 3; }
  .cal-results__inner { padding-left: 20px; }
}

/* =========================================================
   Team
   ========================================================= */
.team-lead { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 40px); margin-bottom: 40px; align-items: center; }
.team-banner { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.team-banner img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.team-principals { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.principal {
  background: linear-gradient(180deg, var(--navy-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.principal__photo { aspect-ratio: 1/1; overflow: hidden; }
.principal__photo img { width: 100%; height: 100%; object-fit: cover; }
.principal__body { padding: 22px; }
.principal__role { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--yellow); }
.principal h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin: 4px 0 10px; }
.principal p { color: var(--muted); font-size: 0.94rem; }
.crew { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.crew-member { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.crew-member img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--yellow); }
.crew-member b { font-family: var(--font-head); font-size: 1rem; }
.crew-member span { display: block; color: var(--muted); font-size: 0.8rem; }

/* =========================================================
   Bike
   ========================================================= */
.bike-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.bike-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.bike-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .6s var(--ease); }
.bike-media:hover img { transform: scale(1.04); }
.bike-media__plate {
  position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(7,11,22,0.7); backdrop-filter: blur(6px);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 14px; font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.06em; color: var(--yellow);
}
.bike-brand { height: 48px; width: auto; margin-bottom: 18px; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0; }
.spec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.spec__val { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--yellow); line-height: 1; }
.spec__label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--muted); margin-top: 6px; }
.bike-partner { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.bike-partner b { color: var(--text); }

/* =========================================================
   Rider profile + career
   ========================================================= */
.profile-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.profile-card { background: linear-gradient(180deg, var(--navy-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.profile-card__img { aspect-ratio: 3/4; overflow: hidden; }
.profile-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile-card__info { padding: 22px; }
.profile-card__info dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.profile-card__info dt { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--muted); align-self: center; }
.profile-card__info dd { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; text-align: right; }

.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--yellow);
}
.tl-item.is-win::before { background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,212,0,0.18); }
.tl-year { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--yellow); line-height: 1; }
.tl-team { font-family: var(--font-head); color: var(--muted); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.08em; }
.tl-list { margin-top: 8px; }
.tl-list li { color: var(--text); padding-left: 18px; position: relative; font-size: 0.95rem; margin-bottom: 4px; }
.tl-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.tl-list li.win::before { background: var(--yellow); }
.tl-list li b { color: var(--yellow); }

/* =========================================================
   Gallery
   ========================================================= */
.gallery { columns: 3; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; border-radius: var(--radius-sm); overflow: hidden; position: relative; cursor: pointer; border: 1px solid var(--line); }
.gallery img { width: 100%; transition: transform .6s var(--ease); }
.gallery figure::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,11,22,0.7));
  opacity: 0; transition: opacity .3s;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure:hover::after { opacity: 1; }
.gallery figure .zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: var(--yellow); color: #14110a; display: grid; place-items: center; opacity: 0; transform: scale(.7);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery figure:hover .zoom { opacity: 1; transform: scale(1); }
.gallery figure .zoom svg { width: 18px; height: 18px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(4,7,14,0.94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow); }
.lb-btn { position: absolute; background: rgba(255,255,255,0.08); border: 1px solid var(--line-2); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: var(--yellow); color: #14110a; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   Media exposure
   ========================================================= */
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.media-stat { text-align: center; padding: 30px 16px; background: linear-gradient(180deg, var(--navy-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); }
.media-stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--yellow); line-height: 1; }
.media-stat__label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--muted); margin-top: 8px; }
.broadcast { margin-top: 32px; text-align: center; }
.broadcast p { color: var(--muted); margin-bottom: 14px; }
.broadcast .channels { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.broadcast .channels span {
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.04em; padding: 10px 20px;
  border: 1px solid var(--line-2); border-radius: 100px; color: var(--text); background: rgba(255,255,255,0.03);
}

/* =========================================================
   Sponsors
   ========================================================= */
.sponsor-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.sponsor-tile {
  background: #fff; border-radius: var(--radius); aspect-ratio: 3/2; display: grid; place-items: center;
  padding: 24px; transition: transform .3s var(--ease); filter: grayscale(0.1);
  min-width: 0; overflow: hidden;
}
.sponsor-tile:hover { transform: translateY(-6px) scale(1.02); }
.sponsor-tile img { width: 100%; height: 100%; object-fit: contain; }
.sponsor-tile--text { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #1a2342; letter-spacing: 0.02em; text-align: center; }
.sponsor-tile--text small { display: block; font-family: var(--font-head); font-size: 0.6rem; letter-spacing: 0.2em; color: #7a86a0; }

/* =========================================================
   Partner CTA
   ========================================================= */
.cta {
  background:
    linear-gradient(180deg, rgba(255,212,0,0.05), transparent),
    linear-gradient(180deg, var(--navy), var(--bg-2));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta .section-title { margin-bottom: 18px; }
.cta p { color: var(--muted); max-width: 60ch; margin: 0 auto 14px; }
.cta__perks { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 22px 0 30px; }
.cta__perks li { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-family: var(--font-head); font-size: 0.9rem; }
.cta__perks li svg { width: 18px; height: 18px; color: var(--yellow); }
.cta__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 34px; margin-bottom: 14px; }
.footer__brand p { color: var(--muted); max-width: 38ch; font-size: 0.92rem; }
.footer h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--yellow); margin-bottom: 14px; }
.footer__links a { display: block; color: var(--muted); padding: 5px 0; transition: color .2s; font-size: 0.92rem; }
.footer__links a:hover { color: var(--text); }
.socials { display: flex; gap: 12px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); transition: background .2s, color .2s, transform .2s; }
.socials a:hover { background: var(--yellow); color: #14110a; transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted-2); font-size: 0.82rem; }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-layout, .bike-layout { grid-template-columns: 1fr; }
  .grid-layout .grid-side { order: -1; }
}
@media (max-width: 860px) {
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8,12,24,0.98); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    padding: 10px 18px 24px; transform: translateY(-120%); transition: transform .4s var(--ease);
    max-height: calc(100svh - 72px); overflow-y: auto;
  }
  .nav-open .nav-links { transform: translateY(0); }
  .nav-links a { padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links > .btn { display: flex; margin-top: 14px; justify-content: center; border-bottom: 0; }
  .story-grid, .profile-layout, .team-lead { grid-template-columns: 1fr; }
  .team-principals { grid-template-columns: 1fr; }
  .profile-card { max-width: 380px; }
  .gallery { columns: 2; }
}
@media (max-width: 620px) {
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(odd) { border-left: 0; }
  .cards { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .crew { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; }
  .cal-row { grid-template-columns: 54px 1fr; }
  .cal-races { grid-column: 2; }
  .hero__watermark { display: none; }
  .story-media__badge { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
