/* MTB / downhill - design tokens */
:root {
  --color-bg: #1e1c19;
  --color-text: #f1ece2;
  --color-muted: #d8d2c6;
  --color-accent: #ff6a13;

  --font-display: "Anton", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

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

body {
  margin: 0;
  overflow-x: clip;
  font: 400 16px/1.6 var(--font-body);
  text-wrap: pretty;
  background: var(--color-bg);
  color: var(--color-text);
}

a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
a:hover { opacity: .75; }
a:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
h1 { text-wrap: balance; }

/* - page - */
/* Full-bleed hero; only the text column is capped (see .hero-content). */
.page {
  margin: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  /* Fade the photo's own left edge so it melts into the background (no seam). */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0, #000 55%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: grayscale(1) contrast(1.2) brightness(.55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 28, 25, .95) 0 45%, rgba(30, 28, 25, 0) 100%);
}

.hero-content {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100%;
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.badges {
  display: flex;
  gap: 12px;
  font: 400 15px var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.badge-fill { background: var(--color-accent); color: var(--color-bg); padding: 6px 12px; }
.badge-outline { border: 2px solid var(--color-text); padding: 4px 12px; }

.hero-role {
  display: block;
  font: 400 20px var(--font-display);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-title {
  font: 400 clamp(72px, 15vw, 200px)/.94 var(--font-display);
  margin: 16px 0 0;
  text-transform: uppercase;
  transform: skewX(-8deg);
  transform-origin: left;
}

.hero-lede {
  font: 500 19px/1.55 var(--font-body);
  margin: 32px 0 0;
  max-width: 40ch;
  color: var(--color-muted);
}

.stats-row {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  flex-wrap: wrap;
  font: 400 15px var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label { color: var(--color-accent); }
.stat-value { font-size: clamp(28px, 3vw, 40px); letter-spacing: 0; }

.ctas {
  margin-left: auto;
  display: flex;
  gap: 12px;
}

.cta {
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 16px 26px;
  font-size: 20px;
  border: 2px solid var(--color-accent);
}

.cta-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

/* - tablet - */
@media (max-width: 1023px) {
  .hero-media { width: 55%; }
  .hero-title { font-size: clamp(64px, 11vw, 140px); }
}

/* - mobile - */
@media (max-width: 759px) {
  .hero { min-height: auto; display: flex; flex-direction: column; }
  .hero-media {
    position: relative;
    width: 100%;
    height: 42vh;
    min-height: 260px;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(30, 28, 25, 0) 55%, rgba(30, 28, 25, .95) 100%);
  }
  .hero-content {
    min-height: auto;
    flex: 1;
    padding: 24px 20px 32px;
    gap: 24px;
  }
  .hero-title {
    font-size: clamp(40px, 15vw, 64px);
    transform: skewX(-6deg);
  }
  .hero-lede { max-width: none; }
  .stats-row { gap: 20px; }
  .ctas { margin-left: 0; width: 100%; }
  .cta { flex: 1; text-align: center; }
}
