/* ===========================================================
   Tata Ultra Marathon — home page
   Design reference: Figma "Final / Frame 6" (1440px artboard)
   Fluid from 320px up; breakpoints at 1180 / 900 / 620.
   =========================================================== */

/* Self-hosted variable font (supplied). Google Fonts still serves the rest. */
@font-face {
  font-family: "Unbounded";
  src: url("assets/fonts/Unbounded-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --lime: #B6FF1C;
  --ink: #000;
  --ink-soft: #191919;
  --ink-mid: #343434;
  --grey-line: #EAEAEA;
  --grey-field: #F4F4F4;
  --grey-row: #F5F5F5;
  --grey-panel: #F2F2F2;
  --grey-muted: #B9B9B9;
  --faq-ink: #1B1139;
  --gutter: clamp(18px, 6.4vw, 92px);
  --max: 1440px;

  --f-display: "Unbounded", system-ui, sans-serif;
  --f-funnel: "Funnel Display", system-ui, sans-serif;
  --f-text: "Montserrat", system-ui, sans-serif;
  --f-ui: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

/* Keep section headings clear of the fixed header when jumping via nav links */
.hero, .prizes, .rd, .impact, .board, .faq { scroll-margin-top: clamp(80px, 10vw, 140px); }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: #6F9E10; }

h1, h2, h3, p { margin: 0; }

/* Lime plate with the clipped bottom-right corner (from the Figma paths) */
.badge,
.btn-notch {
  --cut: 0.55em;
  background: var(--lime);
  color: var(--ink-soft);
  clip-path: polygon(0 0, 100% 0, 100% 50%, calc(100% - var(--cut)) 100%, 0 100%);
  border-radius: 4px;
}

/* ---------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: clamp(60px, 6vw, 84px);
  padding: 0 var(--gutter);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header__logo img { width: clamp(120px, 11vw, 156px); }

.site-header__right { display: flex; align-items: center; gap: 14px; }
.site-header__tata { width: clamp(44px, 4.2vw, 61px); }

.nav { display: flex; align-items: center; gap: 6.5px; position: absolute; left: 50%; transform: translateX(-50%); }

.nav__pill {
  padding: 11.3px 16.2px;
  border-radius: 48.5px;
  background: rgba(215, 215, 215, 0.4);
  backdrop-filter: blur(42px);
  font-size: 11.33px;
  line-height: 1;
  white-space: nowrap;
}
.nav__pill:hover { background: var(--lime); color: var(--ink); }

.burger {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  padding: 0;
  border: 0; border-radius: 10px;
  background: var(--ink);
  cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: #fff; }

.mobile-menu {
  position: fixed;
  top: clamp(60px, 6vw, 84px); left: 0; right: 0;
  z-index: 59;
  display: flex;
  flex-direction: column;
  padding: 6px var(--gutter) 22px;
  background: #fff;
  border-top: 1px solid var(--grey-line);
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 16px 2px; border-bottom: 1px solid #F0F0F0; }
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 520px;
  background: #0A0A0A;
  overflow: hidden;
}

/* Keep the hero's box close to the photo's own 1.6:1 shape so `cover`
   has almost nothing to crop at any width. */
.hero__inner { aspect-ratio: 1.6 / 1; max-height: 860px; }

.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.hero__scrim {
  position: absolute; inset: 0;
  background: rgba(6, 6, 6, .78);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(clamp(74px, 9vw, 131px) + clamp(20px, 2.6vw, 40px)) var(--gutter) clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero__copy { display: flex; flex-direction: column; gap: clamp(18px, 2.2vw, 30px); align-items: flex-start; }

.hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 63.57px);
  line-height: 1.08;
  color: #fff;
  text-transform: uppercase;
}
/* small line under the headline; the negative margin tucks it closer to the
   title than the column gap would otherwise place it */
.hero__sub {
  margin: calc(-1 * clamp(8px, 1.2vw, 16px)) 0 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
}

.btn-notch {
  --cut: 1.1em;
  font-family: var(--f-funnel);
  font-weight: 800;
  font-size: clamp(17px, 2vw, 28.55px);
  line-height: 1;
  text-transform: uppercase;
  padding: 0.62em 2.1em 0.62em 0.72em;
  white-space: nowrap;
}
.btn-notch:hover { background: #C6FF45; color: var(--ink-soft); }

/* photo mosaic — the exported Figma collage on desktop */
.collage-art { width: 100%; height: auto; }

.collage { display: none; }

.collage__tile {
  margin: 0;
  border-radius: 15.5px;
  overflow: hidden;
  background: #D0D1D3;
  aspect-ratio: 4 / 3;
}
.collage__tile--portrait { aspect-ratio: 3 / 4; }
.collage__tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------- prizes */

.prizes { padding: clamp(48px, 6.5vw, 96px) 0 0; }

.prizes__head { display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 1.6vw, 22px); padding: 0 var(--gutter); text-align: center; }

.badge {
  --cut: 0.55em;
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 30.56px);
  line-height: 1;
  text-transform: uppercase;
  padding: 0.38em 1.1em 0.38em 0.68em;
}
.badge--lg { font-size: clamp(22px, 2.8vw, 38.97px); }

.prizes__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 35.57px);
  line-height: 1.14;
  text-transform: uppercase;
}

.prizes__grid { margin-top: clamp(26px, 3.4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.prize { position: relative; display: flex; flex-direction: column; height: clamp(380px, 39vw, 557px); }
.prize__media { flex: 1; min-height: 0; }
.prize__media img { width: 100%; height: 100%; object-fit: cover; }

.prize__panel { padding: clamp(18px, 2vw, 30px) clamp(18px, 2.1vw, 32px) clamp(24px, 2.6vw, 38px); }
.prize__panel--dark { background: var(--ink); color: #fff; }
.prize__panel--light { background: var(--grey-panel); }
.prize__panel--lime { background: var(--lime); }

.prize__eyebrow {
  font-family: var(--f-funnel);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 20px);
  line-height: 1.14;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}
.prize__panel--light .prize__eyebrow,
.prize__panel--lime .prize__eyebrow { color: #2B2B2B; }

.prize__title {
  font-family: var(--f-funnel);
  font-size: clamp(22px, 2.5vw, 35px);
  line-height: 1.04;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}
.prize__title span { font-weight: 300; }
.prize__title strong { font-weight: 800; }

.prize__body { margin: 0.7em 0 1em; font-size: clamp(12px, 1.1vw, 15px); line-height: 1.45; color: #3A3A3A; max-width: 30ch; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--f-text);
  font-size: clamp(12px, 1.15vw, 15.96px);
  text-transform: uppercase;
  color: var(--ink);
}
.link-arrow svg { width: 0.85em; height: 0.85em; }
.link-arrow--lg { font-size: clamp(13px, 1.5vw, 20.91px); color: var(--ink-mid); }

/* ---------------------------------------------------------- impact */

.impact {
  position: relative;
  overflow: hidden;
  /* protected centre band the headline owns, and the corridor either side */
  --band: 600px;
  /* clear air between the headline band and the inner photo lanes */
  --lane-gap: clamp(20px, 3vw, 56px);
  --corridor: calc((100% - var(--band)) / 2 - var(--lane-gap));
}

.impact__row { position: relative; z-index: 5; display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: var(--lane-gap); padding-inline: clamp(16px, 2.5vw, 40px); }
.impact__scatter { display: contents; }
.impact__pic {
  position: absolute;
  margin: 0;
  border-radius: 14.5px;
  overflow: hidden;
  background: #D9D9D9;
  box-shadow: 0 22px 46px -28px rgba(0, 0, 0, .5);
  will-change: transform;
}
.impact__pic img { width: 100%; height: 100%; object-fit: cover; }

/* Sized as a share of the corridor, so the photos grow with the viewport
   but can never reach the headline. Outer lanes hug the viewport edge,
   inner lanes hug the band edge. */
.impact__pic--1 { position: static; order: 1; flex-shrink: 0; width: clamp(180px, 18vw, 360px); aspect-ratio: 524 / 418; }
.impact__pic--2 { position: static; order: 3; flex-shrink: 0; width: clamp(200px, 20vw, 410px); aspect-ratio: 684 / 394; }
.impact__pic--3 { right: calc(50% + var(--band) / 2 + var(--lane-gap)); top: 38%; width: min(410px, calc(var(--corridor) * 0.90)); aspect-ratio: 652 / 538; }
.impact__pic--4 { left: calc(50% + var(--band) / 2 + var(--lane-gap));  top: 43%; width: min(360px, calc(var(--corridor) * 0.80)); aspect-ratio: 624 / 538; }
.impact__pic--5 { left: 1.5%;  top: 72%; width: min(410px, calc(var(--corridor) * 0.90)); aspect-ratio: 640 / 551; }
.impact__pic--6 { right: 1.5%; top: 66%; width: min(300px, calc(var(--corridor) * 0.70)); aspect-ratio: 522 / 652; }

@media (max-width: 1280px) { .impact { --band: 560px; } }
@media (max-width: 1100px) { .impact { --band: 500px; } }
@media (max-width: 1000px) { .impact { --band: 440px; } }

.impact__copy {
  flex-shrink: 1;
  min-width: 0;
  order: 2;
  position: relative;
  z-index: 3;
  max-width: calc(var(--band) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 120px) var(--gutter) clamp(16px, 2vw, 28px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
}

.impact__title {
  font-family: var(--f-funnel);
  font-weight: 700;
  font-size: clamp(22px, 2.9vw, 40px);
  line-height: 1.4;
  text-transform: uppercase;
  text-wrap: balance;
}
.impact__title span { color: var(--grey-muted); }

/* mobile: all six impact photos as a swipeable horizontal strip */
.impact__mobile-pics {
  display: none;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;
  padding: clamp(18px, 5vw, 28px) var(--gutter) clamp(44px, 10vw, 72px);
}
.impact__mobile-pics::-webkit-scrollbar { display: none; }
.impact__mobile-pics .collage__tile { flex: 0 0 60%; aspect-ratio: 3 / 4; border-radius: 14.5px; overflow: hidden; scroll-snap-align: start; }
.impact__mobile-pics .collage__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.impact__mobile-pics::after { content: ""; flex: 0 0 2px; }

.mountains {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: clamp(2px, 0.6vw, 10px);
  aspect-ratio: 1440 / 460;
  max-height: 460px;
  background: url("assets/mountains-band.png") 50% 50% / cover no-repeat;
  transform-origin: 50% 70%;
  will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 9%, #000 74%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 9%, #000 74%, rgba(0,0,0,0) 100%);
}

/* ---------------------------------------------------------- leaderboard */

.board[hidden] { display: none; }
.board { max-width: 1259px; margin: 0 auto; padding: clamp(40px, 5vw, 80px) var(--gutter) clamp(56px, 7vw, 110px); }

.board__head { display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 1.8vw, 24px); text-align: center; }

.board__sub {
  max-width: 62ch;
  font-size: clamp(11px, 1.3vw, 18.2px);
  line-height: 1.5;
  text-transform: uppercase;
}

.board__filter { margin-top: clamp(26px, 3.4vw, 48px); display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
.board__filter label { font-weight: 500; font-size: clamp(15px, 1.8vw, 25px); }

.select { position: relative; width: min(248px, 62vw); }
.select select {
  appearance: none;
  width: 100%;
  min-height: 44px;
  border: 0; border-radius: 10px;
  background: var(--grey-field);
  padding: 9px 42px 9px 14px;
  font-family: var(--f-text);
  font-weight: 500;
  font-size: clamp(14px, 1.4vw, 20px);
  color: var(--ink);
  cursor: pointer;
}
.select svg { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; }

.board__status { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #9A9A9A; }

.podium { margin-top: clamp(24px, 3vw, 42px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 32px); align-items: stretch; }

.podium__card {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  min-width: 0;
  padding: clamp(10px, 1.1vw, 15px) clamp(16px, 2vw, 30px);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
}
.podium__card--1 { width: 100%; padding-block: clamp(12px, 1.4vw, 19px); }
.podium__card--2 { width: 100%; margin-top: 0; }
.podium__card--3 { width: 100%; margin-top: 0; }

.podium__name {
  font-family: var(--f-text);
  font-weight: 700;
  font-size: clamp(14px, 1.7vw, 24px);
  letter-spacing: .04em;
  line-height: 1.12;
  text-transform: uppercase;
  white-space: normal; word-break: break-word;
}
.podium__card--1 .podium__name { font-size: clamp(15px, 1.9vw, 27px); }

/* rosette medals */
.medal { flex: none; width: clamp(30px, 2.9vw, 42px); height: auto; aspect-ratio: 42 / 50; filter: drop-shadow(2px 3px 3px rgba(0, 0, 0, .28)); }
.podium__card--1 .medal { width: clamp(34px, 3.4vw, 48px); }

.table { margin-top: clamp(28px, 4vw, 56px); }
.table__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: clamp(12px, 1.3vw, 18px) clamp(14px, 1.8vw, 26px);
  border-radius: 999px;
  font-size: clamp(11px, 1.3vw, 18px);
  font-weight: 700;
  letter-spacing: .04em;
}
.table__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table__row--head {
  padding-block: 0 clamp(10px, 1.2vw, 16px);
  font-size: clamp(10px, 1.1vw, 15px);
  font-weight: 500;
  letter-spacing: .08em;
  color: #1A1A1A;
}
.table__row--alt { background: #F1F1F1; }

/* ---------------------------------------------------------- faq */

.faq { background: var(--ink); padding: clamp(44px, 5.5vw, 75px) var(--gutter) 0; }

.faq__head { display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 1.5vw, 20px); text-align: center; }
.faq__sub {
  font-family: var(--f-funnel);
  font-size: clamp(12px, 1.7vw, 25px);
  line-height: 1.67;
  text-transform: uppercase;
  color: #fff;
}

.faq__grid {
  max-width: 1230px;
  margin: 0 auto;
  padding-top: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 60px);
  align-items: center;
}

.faq__photo { align-self: end; }
.faq__photo img { width: 100%; height: auto; }

.faq__list { display: flex; flex-direction: column; gap: 14.5px; padding-bottom: clamp(30px, 5vw, 70px); }

.faq__item { background: #fff; border-radius: 4.23px; box-shadow: 0 21px 28px -12.7px rgba(149, 149, 149, .25); overflow: hidden; }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(16px, 1.9vw, 27px) clamp(16px, 1.9vw, 28px);
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--f-ui);
}

.faq__plus { position: relative; flex: none; width: 15.5px; height: 15.5px; opacity: .8; }
.faq__plus::before,
.faq__plus::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--faq-ink); border-radius: 17px; }
.faq__plus::before { width: 15.5px; height: 2.58px; }
.faq__plus::after { width: 2.58px; height: 15.5px; transition: opacity .18s; }

.faq__label { flex: 1; font-weight: 600; font-size: clamp(12px, 1.15vw, 15.5px); line-height: 1.3; color: var(--faq-ink); opacity: .88; }

.faq__dot {
  flex: none;
  width: 20.66px; height: 20.66px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
}

.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq__a > p { overflow: hidden; margin: 0; padding: 0 clamp(16px, 1.9vw, 28px); font-family: var(--f-ui); font-size: clamp(12px, 1.1vw, 14.5px); line-height: 1.6; color: #4A4A4A; }

.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > p { padding-bottom: clamp(16px, 1.9vw, 24px); }
.faq__item.is-open .faq__plus::after { opacity: 0; }
.faq__item.is-open .faq__dot { font-size: 18px; }

/* ---------------------------------------------------------- footer */

.site-footer {
  padding: clamp(24px, 3vw, 44px) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__logo { width: clamp(150px, 16vw, 220px); }

.socials { display: flex; gap: 30px; }
.socials a { width: 44px; height: 44px; border-radius: 40px; background: #262626; display: grid; place-items: center; }
.socials a:hover { background: #3C3C3C; }
.socials img { width: 24px; height: 24px; filter: brightness(0) invert(1); }

/* ---------------------------------------------------------- cookie bar */

.cookie {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 70;
  background: #0A0A0A;
  color: #fff;
  padding: 14px clamp(16px, 3vw, 32px);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.cookie[hidden] { display: none; }
.cookie p { max-width: 62ch; font-size: 12px; line-height: 1.5; color: #D8D8D8; }
.cookie code { color: var(--lime); }
.cookie__actions { display: flex; gap: 10px; }
.cookie button {
  font-family: var(--f-text);
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 20px; border-radius: 6px; cursor: pointer;
  background: none; border: 1px solid #4A4A4A; color: #fff;
}
.cookie button[data-cookie-accept] { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* ===========================================================
   Responsive
   Ranges: >1180 full desktop · 1024–1180 compact desktop ·
           900–1024 tablet landscape · 600–900 tablet/portrait ·
           <600 phone · <380 small-phone safety
   =========================================================== */

/* ---- compact the nav so the pills never wrap or crowd the logos ---- */
@media (max-width: 1180px) {
  .nav { gap: 4px; }
  .nav__pill { padding: 9px 12px; font-size: 10.5px; }
}

@media (max-width: 1024px) {
  .nav__pill { padding: 8px 10px; font-size: 10px; }
  .hero__inner { gap: clamp(20px, 3vw, 44px); }
}

/* ---- tablet & below: burger nav, swipeable hero, 2-up prizes ---- */
@media (max-width: 900px) {
  .site-header { gap: 14px; }
  .nav { display: none; }
  .burger { display: flex; }

  /* hero stacks: copy over a swipeable photo strip */
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    aspect-ratio: auto;
    max-height: none;
    gap: clamp(22px, 4vw, 40px);
  }
  .hero { min-height: 0; }

  .collage-art { display: none; }
  .collage {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 6px;
  }
  .collage::-webkit-scrollbar { display: none; }
  .collage__tile { flex: 0 0 46%; aspect-ratio: 3 / 4; scroll-snap-align: center; }

  /* prizes: two columns, grand prize as a full-width banner */
  .prizes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
  }
  .prize { height: auto; }
  .prize__media { height: clamp(220px, 32vw, 320px); flex: none; }
  .prizes__grid .prize:nth-child(3) { grid-column: 1 / -1; }
  .prizes__grid .prize:nth-child(3) .prize__media { height: clamp(200px, 30vw, 300px); }

  /* impact: hide the desktop scatter, show the tidy 2-up strip */
  .impact__scatter { display: none; }
  .impact__copy {
  order: 2; padding-block: clamp(48px, 10vw, 84px); }
  .impact__mobile-pics { display: flex; }
  .mountains { aspect-ratio: 1440 / 560; }

  .faq { padding-inline: clamp(16px, 2.5vw, 40px); }
  .faq__grid { grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); }
  .faq__photo { max-width: 340px; margin: 0 auto; }
  .faq__list { padding-bottom: 40px; }

  .site-footer { flex-direction: column; gap: 26px; text-align: center; }
}

/* ---- phone: single-column prizes & podium, roomier photo strip ---- */
@media (max-width: 600px) {
  .prizes__grid { grid-template-columns: minmax(0, 1fr); }
  .prize__media,
  .prizes__grid .prize:nth-child(3) .prize__media { height: clamp(240px, 62vw, 360px); }

  .collage__tile { flex: 0 0 68%; }

  .podium { grid-template-columns: minmax(0, 1fr); }
  .podium__card,
  .podium__card--1,
  .podium__card--2,
  .podium__card--3 { width: 100%; margin-top: 0; padding: 12px 18px; }
  .podium__card--1 .medal,
  .medal { width: 34px; }
  .podium__card--1 .podium__name { font-size: 17px; }

  .table__row { grid-template-columns: 1.5fr 0.7fr 0.8fr; }
  .board__sub { font-size: 11px; }
  .socials a { width: 44px; height: 44px; }

  .cookie { padding: 12px 16px; gap: 10px; }
  .cookie p { font-size: 11px; }
}

/* ---- small-phone safety: never let anything overflow 320px ---- */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .site-header__logo img { width: 118px; }
  .hero__title { font-size: clamp(30px, 9vw, 40px); }
  .prizes__title { font-size: clamp(19px, 6vw, 26px); }
  .impact__title { font-size: clamp(20px, 6.2vw, 30px); }
  .site-footer__logo { width: min(240px, 68vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq__a { transition: none; }
}

/* ===========================================================
   Register modal (registration + already-registered flows)
   =========================================================== */

.rf-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 6, 6, .82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}
.rf-overlay.is-open { opacity: 1; visibility: visible; }

.rf-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  transform: translateY(24px) scale(.98);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.rf-overlay.is-open .rf-modal { transform: translateY(0) scale(1); }

.rf-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .12);
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.rf-close:hover { background: rgba(0, 0, 0, .22); }

.rf-head {
  --cut: 0.9em;
  background: var(--lime);
  color: var(--ink-soft);
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(100% - var(--cut)) 78%, 0 78%);
  padding: 26px 30px 30px;
  border-radius: 18px 18px 0 0;
}
.rf-eyebrow {
  font-family: var(--f-funnel);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .75;
  margin: 0 0 6px;
}
.rf-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(20px, 4vw, 26px);
  text-transform: uppercase;
  line-height: 1.1;
}

.rf-modal.is-success .rf-head,
.rf-modal.is-success .rf-tabs,
.rf-modal.is-success .rf-pane { display: none; }

.rf-body { padding: 22px 30px 30px; }

.rf-tabs { display: flex; gap: 6px; margin-bottom: 22px; }
.rf-tab {
  flex: 1;
  padding: 11px 10px;
  border: 1.5px solid var(--grey-line);
  border-radius: 48.5px;
  background: #fff;
  font-family: var(--f-funnel);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink-mid);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.rf-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.rf-pane { display: none; }
.rf-pane.is-active { display: block; }

.rf-field { margin-bottom: 16px; position: relative; }
.rf-field label {
  display: block;
  font-family: var(--f-funnel);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-mid);
  margin-bottom: 7px;
}
.rf-optional { text-transform: none; font-weight: 500; color: var(--grey-muted); letter-spacing: 0; }

.rf-field input,
.rf-field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--grey-line);
  background: var(--grey-field);
  font-family: var(--f-text);
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
  appearance: none;
}
.rf-field input::placeholder { color: var(--grey-muted); }
.rf-field input:focus,
.rf-field select:focus { border-color: var(--lime); background: #fff; }

.rf-field--error input,
.rf-field--error select { border-color: #E4483A; }
.rf-err { display: none; font-size: 12px; color: #E4483A; margin-top: 6px; }
.rf-field--error .rf-err { display: block; }

.rf-select-wrap { position: relative; }
.rf-select-wrap select { padding-right: 36px; cursor: pointer; }
.rf-select-wrap svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }

.rf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .rf-row2 { grid-template-columns: 1fr; } }

.rf-club { position: relative; }
.rf-club-list {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 4px);
  z-index: 5;
  background: #fff;
  border: 1.5px solid var(--grey-line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
  max-height: 220px;
  overflow-y: auto;
}
.rf-club-list[hidden] { display: none; }
.rf-club-option {
  padding: 11px 14px;
  font-size: 14px;
  cursor: pointer;
}
.rf-club-option:hover,
.rf-club-option.is-active { background: var(--grey-field); }
.rf-club-option small { display: block; color: var(--grey-muted); font-size: 12px; margin-top: 2px; }
.rf-club-empty { padding: 12px 14px; font-size: 13px; color: var(--grey-muted); }
.rf-club-clear {
  position: absolute; right: 10px; top: 36px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.08); color: var(--ink-mid);
  font-size: 14px; line-height: 1; cursor: pointer;
  display: none; align-items: center; justify-content: center;
}
.rf-club.has-selection .rf-club-clear { display: flex; }
.rf-club.has-selection input { padding-right: 38px; border-color: var(--ink); background: #fff; }

.rf-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 20px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-mid);
}
.rf-consent input { margin-top: 3px; accent-color: var(--ink); flex-shrink: 0; }
.rf-consent a { color: var(--ink); text-decoration: underline; }

.rf-form-error {
  background: #FDEDEB;
  color: #B8281B;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  margin-bottom: 16px;
}
.rf-form-error[hidden] { display: none; }

.rf-form-note {
  background: var(--grey-field);
  color: var(--ink-mid);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.rf-form-note[hidden] { display: none; }

.rf-submit {
  position: relative;
  width: 100%;
  text-align: center;
  justify-content: center;
  clip-path: none;
  border-radius: 10px;
  padding: .95em 1em;
  font-size: clamp(15px, 2.4vw, 19px);   /* fit "Confirm registration" without clipping */
  letter-spacing: .01em;
}
.rf-submit .rf-btn-label { display: inline-block; max-width: 100%; }
.rf-submit:disabled { opacity: .55; cursor: not-allowed; }

.rf-foot { text-align: center; font-size: 12.5px; color: var(--grey-muted); margin-top: 16px; }

.rf-btn-label.is-hidden { visibility: hidden; }
.rf-spinner {
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2.5px solid rgba(0, 0, 0, .25);
  border-top-color: var(--ink-soft);
  border-radius: 50%;
  display: none;
  animation: rf-spin .7s linear infinite;
}
.rf-submit.is-loading .rf-btn-label { visibility: hidden; }
.rf-submit.is-loading .rf-spinner { display: block; }
@keyframes rf-spin { to { transform: rotate(360deg); } }

.rf-success { display: none; text-align: center; padding: 40px 30px 36px; }
.rf-success.is-visible { display: block; }
.rf-success-badge {
  --cut: 0.5em;
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 50%, calc(100% - var(--cut)) 100%, 0 100%);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.rf-success-badge svg { width: 28px; height: 28px; }
.rf-success-title {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 22px;
  margin: 0 0 10px;
}
.rf-success-body { font-size: 14px; color: var(--ink-mid); line-height: 1.55; margin: 0 0 20px; }
.rf-success-cta { margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  .rf-overlay, .rf-modal { transition: none; }
}


/* leaderboard — coming-soon state (pre-launch) */
.board__soon {
  margin-top: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 14px;
  padding: clamp(34px, 5vw, 68px) clamp(20px, 4vw, 56px);
  border: 1.5px dashed var(--grey-line);
  border-radius: 20px;
  background: var(--grey-row);
}
.board__soon-k { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #8A8A8A; }
.board__soon-h {
  margin: 0; max-width: 22ch;
  font-family: var(--f-funnel); font-weight: 700;
  font-size: clamp(20px, 2.4vw, 32px); line-height: 1.2; text-transform: uppercase;
}
.board__soon-sub { margin: 0; max-width: 54ch; font-size: clamp(12px, 1.2vw, 15px); line-height: 1.6; color: #5A5A5A; }
.board__soon .btn-notch { margin-top: 8px; }


/* no blue tap-flash on mobile; clean keyboard focus ring */
.burger:focus, .nav__pill:focus, .mobile-menu a:focus { outline: none; }
.burger:focus-visible, .nav__pill:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* smaller footer */

/* success CTAs: keep the label inside the button */
.rf-success .btn-notch {
  padding: .95em 1em;
  font-size: clamp(15px, 2.4vw, 19px);
  line-height: 1.2;
  letter-spacing: .01em;
}


/* ---------------------------------------------------- race details */
.prize__panel--dark .prize__body { color: #D8D8D8; max-width: 34ch; margin-bottom: 0; }

.rd {
  padding: clamp(48px, 7vw, 110px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.rd__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 62px);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0.5em 0 0.4em;
  max-width: 14ch;
}
.rd__title span { font-weight: 300; }
.rd__lead { font-size: clamp(15px, 1.4vw, 20px); line-height: 1.5; max-width: 52ch; margin: 0 0 1em; color: var(--ink-mid); }
.rd__live {
  display: inline-block;
  font-family: var(--f-funnel);
  font-weight: 800;
  font-size: clamp(14px, 1.3vw, 18px);
  text-transform: uppercase;
  border-bottom: 3px solid var(--lime);
  padding-bottom: 2px;
  margin: 0 0 clamp(32px, 4vw, 64px);
}
.rd__cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
.rd__h { font-family: var(--f-display); font-weight: 600; font-size: clamp(16px, 1.6vw, 22px); text-transform: uppercase; margin: 0 0 1.1em; }
.rd__steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.rd__steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 1.3em 2.6em;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.5;
  color: var(--ink-mid);
}
.rd__steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -0.1em;
  font-family: var(--f-display); font-weight: 800; font-size: 1.5em; color: var(--ink);
}
.rd__steps strong { color: var(--ink); }
.rd__list { margin: 0; }
.rd__list > div {
  display: grid;
  grid-template-columns: minmax(84px, 9em) 1fr;
  gap: 1em 1.5em;
  padding: 1.1em 0;
  border-top: 1px solid var(--grey-line);
}
.rd__list > div:last-child { border-bottom: 1px solid var(--grey-line); }
.rd__list dt { font-family: var(--f-display); font-weight: 800; font-size: clamp(15px, 1.4vw, 20px); text-transform: uppercase; }
.rd__list dd { margin: 0; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.5; color: var(--ink-mid); }
.rd__track { margin: clamp(32px, 4vw, 56px) 0 1.2em; font-size: clamp(14px, 1.3vw, 18px); font-weight: 600; }
.rd__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4em 2em; }
.rd__cta .btn-notch { font-size: clamp(15px, 1.5vw, 20px); }
.rd__terms { font-family: var(--f-funnel); font-weight: 700; text-transform: uppercase; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .rd__cols { grid-template-columns: 1fr; }
  .rd__list > div { grid-template-columns: 1fr; gap: 0.3em; }
}

.prize__body + .prize__body { margin-top: -0.5em; }

.rf-head { padding: 22px 30px 34px; }
.rf-head .rf-eyebrow { margin: 0; opacity: 1; font-size: 14px; }
