:root {
  --navy: #172b46;
  --gold: #f4aa20;
  --red: var(--gold);
  --black: var(--navy);
  --ink: #172b46;
  --muted: #6e6e6e;
  --line: #e9e9e9;
  --soft: #f6f6f4;
  --white: #fff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --max: 1180px;
  --display-font:
    "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --body-font: "Figtree", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  scroll-margin-top: 110px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body-font);
  letter-spacing: 0;

}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 52px);
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.header-logo {
  width: auto;
  height: 46px;
  max-width: min(44vw, 190px);
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease;
}

.site-header.is-scrolled .header-logo {
  opacity: 1;
  visibility: visible;
}

nav {
  display: none;
  align-items: center;
  gap: 24px;
  color: #222;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

nav a {
  color: var(--white);
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--red);
}

.hero,
.final-cta {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 110px clamp(20px, 5vw, 76px) 34px;
  color: var(--white);
}

.hero-image,
.final-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.hero-image {
  background-image: url("./assets/hero-community-runners.png");
}

.final-image {
  background-image: url("./assets/final-finish-line.png");
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.16)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 46%);
}

.diagonal {
  position: absolute;
  pointer-events: none;
  transform: skewX(-18deg);
}

.diagonal-hero {
  right: -14vw;
  bottom: 12vh;
  width: 52vw;
  height: 34vh;
  border: 2px solid rgba(244, 170, 32, 0.78);
  border-right-width: 22px;
}

.hero-content,
.final-content {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
}

.hero-content.reveal {
  opacity: 1;
  transform: none;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.eyebrow {
  position: relative;
  top: 50px;
  left: 15px;
}

.hero h1 {
  margin: 0;
  max-width: 980px;
  font-size: 3.35rem;
  line-height: 0.9;
  font-weight: 1000;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  font-size: 1.2rem;
  line-height: 1.18;
  font-weight: 750;
}

.hero-actions,
.final-content .button {
  margin-top: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: var(--body-font);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-red {
  color: var(--black);
  background: var(--red);
}

.button-light {
  color: var(--black);
  background: var(--white);
}

.button-dark {
  color: var(--white);
  background: var(--black);
}

.button-wide {
  width: 100%;
}

.hero-meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 38px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-meta span {
  padding-top: 12px;
  border-top: 2px solid var(--red);
}

.run-line {
  position: fixed;
  top: 0;
  left: clamp(14px, 3vw, 34px);
  z-index: 30;
  width: 3px;
  height: 100vh;
  pointer-events: none;
  background: rgba(244, 170, 32, 0.16);
}

.run-line span {
  display: block;
  width: 100%;
  height: var(--progress, 0%);
  background: var(--red);
}

.editorial-section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(38px, 5.5vw, 75px) clamp(20px, 5vw, 42px);
}

.editorial-grid {
  display: grid;
  gap: 28px;
}

h2 {
  margin: 0;
  max-width: 980px;
  font-size: 1.8rem;
  line-height: 1.06;
  font-family: var(--display-font);
  font-weight: 1000;
  text-transform: uppercase;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.12;
  font-family: var(--display-font);
  font-weight: 950;
  text-wrap: balance;
}

.hero h1,
.footer-logo,
.logo-mark,
.stat strong,
.race-card h3,
.member-card h3 {
  font-family: var(--display-font);
}

.lead {
  margin: 24px 0 0;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.34;
  font-weight: 650;
}

.mission-ambassador-grid {
  display: grid;
  gap: 40px;
}

.mission-card,
.signup-card,
.countdown-card,
.challenge-card,
.expert-card,
.partner-hero,
.mini-article,
.team-locked,
.profile-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.06);
}

.mission-card {
  padding: clamp(24px, 4vw, 44px);
  font-size: 1.12rem;
  line-height: 1.58;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 42px;
}

.value-card {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--black);
  font-size: 1.18rem;
  font-weight: 900;
}

.value-card:nth-child(2n) {
  background: var(--red);
}

.value-card span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.75rem;
}

.portrait-card {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow);
}

.portrait-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 48%, rgba(0, 0, 0, 0.12) 78%);
}

.portrait-copy {
  position: relative;
  z-index: 2;
  padding: clamp(26px, 5vw, 56px);
}

.portrait-copy h2 {
  font-size: 1.5rem;
}

.portrait-copy p {
  color: #d7d7d7;
  line-height: 1.55;
}

blockquote {
  margin: 28px 0;
  padding-left: 18px;
  border-left: 4px solid var(--red);
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1.25;
}

.video-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.play-button {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  color: var(--red);
  background: var(--white);
  cursor: pointer;
}

.section-heading {
  display: grid;
  gap: 22px;
  margin-bottom: 44px;
}

.benefit-section {
  padding: clamp(38px, 5.5vw, 75px) clamp(20px, 5vw, 42px);
  background: var(--navy);
}
.join-heading {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius);
  color: var(--white);
}

.join-heading .lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.section-intro {
  max-width: 840px;
  margin: 0;
  color: #303030;
  font-size: 1.08rem;
  line-height: 1.48;
  font-weight: 650;
}

.join {
  max-width: 1280px;
}

.join-layout {
  display: grid;
  gap: 18px;
}

.benefit-grid {
  display: grid;
  gap: 14px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.benefit-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--black);
  background: var(--red);
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
}

.benefit-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  line-height: 1.42;
  font-weight: 650;
}

.signup-card {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
}

.form-row {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: #222;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 14px 16px;
  outline: 0;
  background: #fbfbfb;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(244, 170, 32, 0.14);
}

.consent-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: #303030;
  font-size: 0.78rem;
  line-height: 1.35;
  text-transform: none;
}

.consent-field input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--red);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 750;
}

.form-status[data-type="success"] {
  color: #1e6b3a;
}

.form-status[data-type="error"] {
  color: #a51f1f;
}

.form-status[data-type="loading"] {
  color: var(--black);
}

.signup-card .button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.upload-box {
  place-items: center;
  min-height: 156px;
  border: 2px dashed #cfcfcf;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 170, 32, 0.12), transparent 44%),
    var(--soft);
  text-align: center;
}

.upload-box input {
  display: none;
}

.countdown-card {
  align-self: start;
  padding: 28px;
  background: var(--black);
  color: var(--white);
}

.countdown-card p {
  margin: 0 0 8px;
  color: #cfcfcf;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 900;
}

.countdown-card strong {
  display: block;
  margin-bottom: 24px;
  color: var(--red);
  font-size: 2.2rem;
  line-height: 0.85;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

#stravaKilometers {
  font-size: 4rem;
  line-height: 0.85;
  text-transform: uppercase;
}

.info-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: var(--soft);
}

.info-card-label {
  color: var(--muted);
  font-size: 0.75rem;

}
.info-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-card-head p {
  margin: 0;
  color: var(--black);
  font-size: 1.02rem;
  font-weight: 850;
}

.info-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
}

.info-icon svg {
  width: 18px;
  height: 18px;
}

.info-card p:last-child {
  margin: 0;
  color: #454545;
  font-size: 0.92rem;
  line-height: 1.55;
}

.countdown span {
  display: grid;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.countdown b {
  font-size: 1.45rem;
}

.team-locked {
  padding: 42px;
  color: var(--muted);
  text-align: center;
  font-size: 1.2rem;
  font-weight: 850;
}

.member-grid {
  display: grid;
  gap: 16px;
}

.member-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.07);
}

.member-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.member-card div {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.member-card small,
.member-card p {
  color: var(--muted);
}

.member-card h3 {
  font-size: 1.35rem;
}

.member-card progress,
.challenge-card progress {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #ececec;
}

progress::-webkit-progress-bar {
  background: #ececec;
}

progress::-webkit-progress-value {
  background: var(--red);
}

.profile {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-hero {
  display: grid;
  gap: 24px;
}

.profile-hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
}

.profile-grid {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.profile-grid article {
  padding: 22px;
}

.profile-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-grid strong {
  font-size: 1.35rem;
}

.timeline {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-top: 24px;
  padding-bottom: 8px;
}

.timeline button {
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.timeline button.active {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.challenge-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 28px;
  scroll-snap-type: x mandatory;
}

.challenge-card {
  min-width: min(84vw, 360px);
  scroll-snap-align: start;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.badge {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 950;
}

.badge-red {
  background: var(--red);
}

.badge-black {
  background: var(--black);
}

.expert-grid,
.article-grid {
  display: grid;
  gap: 16px;
}

.race-slider {
  position: relative;
}

.race-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.race-track::-webkit-scrollbar {
  display: none;
}

.race-track .race-card {
  scroll-snap-align: start;
}

.race-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.slider-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease;
}

.slider-btn:hover {
  transform: translateY(-2px);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: var(--line);
  cursor: pointer;
}

.slider-dots button.active {
  background: var(--red);
}

.race-card {
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow);
}

.race-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.race-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
}

.race-card p {
  margin: 0;
  color: #d5d5d5;
  font-size: 1rem;
  line-height: 1.45;
}

.race-meta {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.race-meta span {
  display: grid;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  color: var(--red);
  font-weight: 950;
  line-height: 1.16;
  text-transform: uppercase;
}

.race-meta b {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.race-card h3 {
  max-width: 18ch;
  font-size: 1.45rem;
  line-height: 1.14;
}

.featured-article {
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.featured-article img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.featured-article div {
  padding: clamp(24px, 5vw, 44px);
}

.featured-article span,
.mini-article span {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.featured-article h3 {
  margin-top: 10px;
  font-size: 1.8rem;
}

.mini-article,
.expert-card {
  min-height: 180px;
  padding: 22px;
}

.expert-card {
  background: var(--soft);
}

.expert-card p,
.mini-article p {
  color: var(--muted);
}

.partner-hero {
  display: grid;
  gap: 22px;
  padding: clamp(26px, 6vw, 64px);
  color: var(--white);
  background: var(--black);
}

.partner-hero p {
  margin: 0;
  color: var(--red);
  font-weight: 950;
  text-transform: uppercase;
}

.logo-mark {
  width: fit-content;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 24px 36px;
  font-size: 2rem;
  font-weight: 1000;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.logo-grid span {
  display: grid;
  place-items: center;
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #777;
  font-weight: 950;
  text-transform: uppercase;
}

.social-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  gap: 12px;
}

.social-post {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 170, 32, 0.78), rgba(0, 0, 0, 0.2)),
    url("https://images.unsplash.com/photo-1518611012118-696072aa579a?auto=format&fit=crop&w=900&q=82")
      center/cover;
}

.social-post:nth-child(2) {
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(244, 170, 32, 0.14)),
    url("https://images.unsplash.com/photo-1571008887538-b36bb32f4571?auto=format&fit=crop&w=900&q=82");
}

.social-post:nth-child(3) {
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(244, 170, 32, 0.42)),
    url("https://images.unsplash.com/photo-1513593771513-7b58b6c4af38?auto=format&fit=crop&w=900&q=82");
}

.tall {
  grid-row: span 2;
}

.wide {
  grid-column: span 2;
}

.stat-grid {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.stat {
  min-height: 150px;
  display: grid;
  align-content: center;
  border-top: 3px solid var(--red);
  background: var(--soft);
  padding: 20px;
}

.stat strong {
  font-size: 2.4rem;
  line-height: 0.9;
}

.stat span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.stat-wide {
  min-height: 210px;
  text-align: center;
}

.stat-wide span {
  max-width: 560px;
  justify-self: center;
  line-height: 1.25;
}

.stat-source {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.final-cta {
  min-height: 82svh;
  align-items: center;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 42px clamp(20px, 5vw, 64px);
  color: var(--white);
  background: var(--black);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -12%;
  width: 46%;
  height: 72%;
  border: 2px solid rgba(244, 170, 32, 0.58);
  border-right-width: 18px;
  transform: skewX(-18deg);
}

.footer-line {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: 26px;
  left: clamp(20px, 5vw, 64px);
  height: 2px;
  background: linear-gradient(90deg, var(--red), rgba(244, 170, 32, 0), var(--red));
  opacity: 0.72;
}

.footer-top {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  gap: 24px;
  align-items: start;
}

.footer-logo {
  width: min(100%, 250px);
  height: auto;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 32px calc(-1 * clamp(20px, 5vw, 64px)) -42px;
  padding: 22px clamp(20px, 5vw, 64px);
  background: rgba(0, 0, 0, 0.32);
  text-align: center;
}

.footer-bottom-logo img {
  width: auto;
}

.footer-bottom-copyright p {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer-bottom-copyright a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 680px) {
  nav {
    display: flex;
  }

  .hero h1 {
    font-size: 6.1rem;
  }

  .header-logo {
    height: 54px;
    max-width: 220px;
  }

  h2 {
    font-size: 2.76rem;
  }

  h3 {
    font-size: 1.45rem;
  }

  .hero-copy {
    font-size: 1.55rem;
  }

  .lead {
    font-size: 1.38rem;
  }

  .countdown-card strong {
    font-size: 3.8rem;
  }

  .featured-article h3 {
    font-size: 2.7rem;
  }

  .stat strong {
    font-size: 4rem;
  }

  .editorial-grid,
  .join-layout,
  .profile-hero,
  .featured-article {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .join-layout {
   align-items: flex-start;
  }

  .form-row,
  .profile-grid,
  .expert-grid,
  .article-grid,
  .member-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .race-track {
    grid-auto-columns: 70%;
  }

  .race-card {
    grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1.08fr);
  }

  .race-card img {
    height: 100%;
    min-height: 285px;
  }

  .race-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .value-card:last-child {
    grid-column: span 2;
  }

  .footer-top {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-logo {
    width: min(100%, 500px);
  }
}

@media (min-width: 980px) {
  .hero h1 {
    font-size: 8.9rem;
  }

  .mission-ambassador-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .mission-ambassador-grid .editorial-grid {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    min-height: 620px;
  }

  .portrait-copy h2 {
    font-size: 1.9rem;
  }

  .header-logo {
    height: 60px;
    max-width: 250px;
  }

  h2 {
    font-size: 3.52rem;
  }

  h3 {
    font-size: 1.78rem;
  }

  .hero-copy {
    font-size: 1.9rem;
  }

  .lead {
    font-size: 1.7rem;
  }

  .countdown-card strong {
    font-size: 5rem;
  }

  .featured-article h3 {
    font-size: 3.5rem;
  }

  .stat strong {
    font-size: 5.2rem;
  }

  .member-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .race-track {
    grid-auto-columns: 46%;
    gap: 22px;
  }

  .race-card {
    grid-template-columns: 0.92fr 1.08fr;
  }

  .race-card img {
    min-height: 330px;
  }

  .expert-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .social-wall {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-auto-rows: 210px;
  }

  .site-footer {
    padding-top: 72px;
  }

  .footer-logo {
    width: min(100%, 380px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
