@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=Inter:wght@400;600;700;800;900&display=swap");

:root {
  --ink: #090d13;
  --steel: #2b3440;
  --paper: #f3f6fa;
  --white: #ffffff;
  --blue: #0a74c9;
  --blue-bright: #20a7ff;
  --blue-soft: #d6ebff;
  --ice: #edf6ff;
  --line: rgba(9, 13, 19, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(9, 13, 19, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  background: var(--white);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong,
h1,
h2,
h3,
.metric-band strong {
  font-family: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  letter-spacing: 0;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 92vh;
  padding: 140px clamp(18px, 5vw, 72px) 64px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    url("assets/gallery-mountain-family.jpg") center / cover no-repeat,
    linear-gradient(135deg, #101820, #0a4a82);
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 13, 19, 0.95) 0%, rgba(9, 13, 19, 0.6) 48%, rgba(9, 13, 19, 0.2) 100%),
    linear-gradient(0deg, rgba(9, 13, 19, 0.9) 0%, rgba(10, 116, 201, 0.08) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-bright);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--blue);
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(5rem, 15vw, 12rem);
  line-height: 0.78;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 0.9;
}

h3 {
  font-size: 1.55rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
}

.race-card {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 5vw, 72px);
  bottom: 48px;
  width: min(330px, calc(100% - 36px));
  padding: 20px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.race-card strong,
.race-card span {
  display: block;
}

.card-kicker {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.race-card p {
  margin: 8px 0 0;
  color: var(--steel);
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--white);
  background: var(--ink);
  border-top: 4px solid var(--blue-bright);
}

.metric-band div {
  min-height: 142px;
  padding: 26px clamp(18px, 4vw, 42px);
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.metric-band strong {
  display: block;
  color: var(--blue-bright);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1;
}

.metric-band span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

section {
  padding: clamp(72px, 9vw, 130px) clamp(18px, 5vw, 72px);
}

.inline-photo,
.lab-photo,
.photo-slot {
  background:
    linear-gradient(135deg, rgba(9, 13, 19, 0.08), rgba(9, 13, 19, 0.78)),
    repeating-linear-gradient(135deg, #182331 0 12px, #233346 12px 24px);
}

.inline-photo {
  display: grid;
  place-items: end start;
  min-height: 360px;
  margin: 34px 0 0;
  padding: 18px;
  overflow: hidden;
  color: var(--white);
}

.inline-photo span,
.lab-photo span {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-photo,
.lab-photo {
  background:
    linear-gradient(135deg, rgba(9, 13, 19, 0.06), rgba(9, 13, 19, 0.78)),
    url("assets/gallery-mountain-family.jpg") center / cover no-repeat;
}

.action-photo {
  background:
    linear-gradient(135deg, rgba(9, 13, 19, 0.12), rgba(9, 13, 19, 0.78)),
    url("assets/gallery-forest-speed.jpg") center / cover no-repeat;
}

.trail-photo {
  background:
    linear-gradient(135deg, rgba(9, 13, 19, 0.14), rgba(9, 13, 19, 0.74)),
    url("assets/gallery-trail-action.jpg") center / cover no-repeat;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.8fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.intro-copy,
.trail-panel {
  color: var(--steel);
  font-size: 1.08rem;
}

.intro-copy p:last-child,
.trail-panel p:last-child {
  margin-bottom: 0;
}

.lab {
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(32, 167, 255, 0.2), transparent 34%),
    var(--ink);
}

.section-heading {
  max-width: 880px;
  margin-bottom: clamp(28px, 5vw, 58px);
}

.lab .section-heading h2 {
  color: var(--white);
}

.lab-feature {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(260px, 0.62fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.lab-photo {
  display: grid;
  place-items: end start;
  min-height: 320px;
  padding: 20px;
  color: var(--white);
}

.lab-feature p {
  display: flex;
  align-items: end;
  min-height: 320px;
  margin: 0;
  padding: 28px;
  color: rgba(255, 255, 255, 0.76);
  background: #151c25;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.lab-grid article {
  min-height: 260px;
  padding: 26px;
  background: #151c25;
}

.lab-grid span {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--blue-bright);
  font-weight: 900;
}

.lab-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.trail-section {
  background: var(--white);
}

.trail-panel {
  padding: clamp(24px, 4vw, 44px);
  border-left: 7px solid var(--blue);
  background: var(--ice);
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.team-section {
  background: var(--paper);
}

.roster-note {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--steel);
  font-weight: 700;
}

.rider-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rider-grid article {
  min-height: 100%;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
}

.rider-card {
  display: grid;
  align-content: start;
  gap: 20px;
}

.rider-photo {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center top;
  border-bottom: 4px solid var(--blue-bright);
}

.rider-photo-nate {
  object-position: center 28%;
}

.rider-photo-blake {
  object-position: center 18%;
}

.rider-photo-marshall {
  object-position: center 44%;
}

.rider-photo-mesa {
  object-position: center 24%;
}

.rider-card-header strong,
.rider-position,
.rider-stats dt,
.rider-stats dd {
  display: block;
}

.rider-card-header strong {
  font-size: 1.45rem;
  line-height: 1.1;
}

.rider-position {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rider-stats {
  display: grid;
  gap: 12px;
  margin: 0;
}

.rider-stats div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.rider-stats dt {
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rider-stats dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.rider-card p {
  margin: 0;
  color: var(--steel);
}

.sponsors {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(32, 167, 255, 0.18), transparent 42%),
    var(--ink);
}

.sponsors .section-heading h2,
.sponsors .roster-note {
  color: var(--white);
}

.sponsors .roster-note {
  color: rgba(255, 255, 255, 0.72);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sponsor-card {
  display: grid;
  align-content: space-between;
  min-height: 290px;
  padding: 26px;
  overflow: hidden;
  background: #151c25;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 4px solid var(--blue-bright);
}

.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 26px;
  padding: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  text-align: center;
}

.chickfila .sponsor-logo {
  color: #ffffff;
  background: #d71920;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.mcdonalds .sponsor-logo {
  color: #ffcc00;
  background: #b61c23;
  font-family: Arial Black, Impact, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
}

.ktm .sponsor-logo {
  color: #111111;
  background: #ff7a00;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(4.4rem, 8vw, 6.5rem);
  line-height: 0.8;
  letter-spacing: 0;
}

.sponsor-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-bright);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sponsor-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.reviews {
  background: var(--white);
}

blockquote {
  margin: 0;
  min-height: 220px;
  padding: 28px;
  color: var(--white);
  background: var(--steel);
}

blockquote:nth-child(2) {
  background: var(--blue);
}

blockquote:nth-child(3) {
  color: var(--ink);
  background: var(--blue-soft);
}

blockquote p {
  font-size: 1.2rem;
  font-weight: 800;
}

cite {
  display: block;
  color: inherit;
  font-style: normal;
  opacity: 0.78;
}

.gallery {
  background: #e8eef5;
}

.photo-grid {
  columns: 2 360px;
  column-gap: clamp(14px, 2vw, 22px);
}

.photo-slot {
  position: relative;
  display: block;
  break-inside: avoid;
  margin: 0 0 clamp(14px, 2vw, 22px);
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.photo-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 13, 19, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.photo-slot img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-slot span {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.photo-race-podium {
  max-width: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--ink);
}

.site-footer span {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
  color: var(--blue-bright);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1000px) {
  .race-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 36px;
  }

  .metric-band,
  .lab-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-grid,
  .rider-grid,
  .review-grid,
  .sponsor-grid,
  .lab-feature {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    columns: 1;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: absolute;
  }

  .hero {
    min-height: 760px;
    padding-top: 130px;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.5rem);
  }

  .metric-band,
  .lab-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .metric-band div {
    min-height: 112px;
  }

  .rider-photo {
    aspect-ratio: 16 / 11;
  }

  .photo-grid {
    columns: 1;
  }
}
