/* HERO */

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 110px 22px 30px;
  isolation: isolate;
}

.hero > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.08) 42%, rgba(0,0,0,.82));
}

.hero-logo {
  position: absolute;
  z-index: 2;
  top: 180px;
  left: 50%;
  width: min(58vw, 250px);
  transform: translateX(-50%);
  scale: .75;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.3));
}

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

.hero-title {
  font-size: clamp(4.2rem, 17vw, 11rem);
  line-height: .76;
  letter-spacing: -.07em;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-sub {
  max-width: 430px;
  margin-top: 24px;
  color: var(--lime);
  font-size: var(--fs-md);
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts {
  margin-top: 14px;
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-facts {
    max-width: 100%;
    font-size: clamp(var(--fs-2xs), 2.9vw, var(--fs-xs));
    white-space: normal;
  }

  .hero-facts span { white-space: nowrap; }
}

/* SCROLL ALTIMETER (fixed, right edge, whole page) */

.altimeter {
  position: fixed;
  z-index: 9000;
  right: calc(env(safe-area-inset-right, 0px) + 20px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  pointer-events: none;
}

.altimeter-track {
  position: relative;
  width: 1px;
  height: clamp(90px, 26vh, 240px);
  margin-right: 4px;
  background: var(--line-strong);
}

.altimeter-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: calc(var(--altimeter-progress, 0) * 100%);
  background: var(--lime);
}

.altimeter-head {
  position: absolute;
  left: -3px;
  bottom: calc(var(--altimeter-progress, 0) * 100%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  transform: translateY(50%);
  box-shadow: 0 0 0 4px rgba(224,241,49,.18);
}

.altimeter-tick {
  position: absolute;
  right: 0;
  width: 5px;
  height: 1px;
  background: var(--line-strong);
  transition: width .3s, background-color .3s;
}

.altimeter-tick.is-passed {
  width: 7px;
  background: var(--lime);
}

.altimeter-value {
  min-width: 9ch;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.altimeter-label {
  color: var(--muted);
  white-space: nowrap;
}

/* Phones: shrink into the 22px side gutter so it never sits on content.
   Value runs vertically (reads bottom → top, like the climb), label hidden. */
@media (max-width: 768px) {
  .altimeter {
    right: calc(env(safe-area-inset-right, 0px) + 5px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
    align-items: center;
    gap: 12px;
  }

  .altimeter-track {
    height: clamp(120px, 24vh, 210px);
    margin-right: 0;
  }

  /* Number runs vertically (bottom → top), the arrow stays upright on top. */
  .altimeter-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-size: 10px;
    letter-spacing: 1px;
  }

  .altimeter-metres {
    min-height: 7ch;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: left;
  }

  .altimeter-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .altimeter-tick { transition: none; }
}

/* PARTNERS */

.production-page {
  display: flex;
  flex-direction: column;
}

.production-page > .hero { order: 1; }
.production-page > .partners { order: 2; }
.production-page > .statement { order: 3; }
.production-page > .work { order: 4; }
.production-page > .concept { order: 5; }
.production-page > .race-modes { order: 6; }
.production-page > .route-section { order: 7; }
.production-page > .culture { order: 8; }
.production-page > .summit { order: 9; }
.production-page > .final { order: 10; }

.partners {
  min-width: 0;
  padding: 24px 22px 30px;
}

.partners-inner {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.partners-label {
  margin: 0 0 14px;
  color: var(--gray);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .62;
}

/* Same logo size as the former marquee strip (46px desktop / 38px mobile). */
.partners-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px clamp(28px, 6vw, 96px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-logo a {
  display: flex;
  align-items: center;
  height: 46px;
  opacity: .66;
  transition: opacity 220ms ease;
}

.partner-logo a:hover,
.partner-logo a:focus-visible {
  opacity: 1;
}

.partner-logo a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.partner-logo img {
  display: block;
  width: auto;
  max-width: 172px;
  height: 100%;
  object-fit: contain;
  overflow: visible;
}

/* Quiet hint, same voice as the "// Partners" label. */
.partner-reveal {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  color: var(--gray);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .62;
}

.partner-reveal-icon {
  font-size: var(--fs-md);
  line-height: 1;
}

@media (max-width: 768px) {
  .partners {
    padding: 22px 22px 26px;
  }

  /* One row on phones: logos scale down slightly on narrow screens instead of wrapping. */
  .partners-list {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: clamp(10px, 3vw, 28px);
  }

  .partner-logo a,
  .partner-reveal {
    height: clamp(24px, 15vw - 24px, 38px);
  }

  .partner-reveal {
    flex: 0 0 auto;
    gap: 6px;
  }
}

/* BIG STATEMENT */

.statement {
  min-height: 70svh;
  padding: 90px 22px;
  display: flex;
  align-items: center;
  background: var(--bg);
}

.statement h2 {
  margin-top: var(--eyebrow-gap);
  max-width: 1050px;
  font-size: clamp(3.6rem, 12vw, 10rem);
  line-height: .8;
  letter-spacing: -.065em;
  font-weight: 900;
  text-transform: uppercase;
}

.statement h2 span { color: var(--lime); }

/* MOVEMENT */

.movement {
  padding: 0 12px 100px;
  background: var(--bg);
}

.movement-frame {
  position: relative;
  height: 78svh;
  min-height: 520px;
  overflow: hidden;
}

.movement-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movement-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent 48%);
}

.movement-meta {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 20px;
}

/* CONCEPT */

.concept {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5vw, 88px) 12px clamp(80px, 7vw, 128px);
  background: transparent;
}

.race-modes::before,
.race-modes::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.race-modes::before {
  z-index: 0;
  background-image: url("../assets/pics/petzen_web_optimized.jpg");
  background-size: cover;
  background-position: center;
}

.race-modes::after {
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(52, 40, 40, .72),
    rgba(52, 40, 40, .58)
  );
}

.concept > * {
  position: relative;
  z-index: 2;
}

.concept-head {
  padding: 0 0 var(--eyebrow-gap);
}

.concept-heading {
  margin-top: 12px;
  max-width: 340px;
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: .8;
  letter-spacing: -.07em;
  font-weight: 900;
  text-transform: uppercase;
}

.concept-selector {
  width: 100%;
  margin: 0 auto;
}

.concept-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  text-align: center;
  transition: opacity .12s ease, transform .12s ease;
}

.concept-display-icon-row {
  display: grid;
  grid-template-columns: clamp(48px, 5vw, 56px) auto clamp(48px, 5vw, 56px);
  column-gap: clamp(4px, .5vw, 8px);
  align-items: center;
}

.concept-display-arrow {
  display: grid;
  width: 100%;
  min-width: 48px;
  min-height: 48px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gray);
  font: inherit;
  font-size: var(--fs-xl);
  font-weight: 300;
  line-height: 1;
  opacity: .78;
  cursor: pointer;
  transition: opacity .18s ease;
}

@media (hover: hover) {
  .concept-display-arrow:hover {
    opacity: 1;
  }
}

.concept-display-arrow:active {
  opacity: .85;
}

.concept-display-arrow:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 5px;
}

.concept-display.is-changing {
  opacity: .35;
  transform: translateY(8px);
}

.concept-display-icon {
  width: min(20vw, 140px);
  max-width: 140px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  touch-action: pan-y;
}

.concept-display-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(83%) sepia(45%) saturate(500%) hue-rotate(25deg) brightness(110%) contrast(95%);
  transition: transform .24s ease, opacity .24s ease;
}

.concept-display-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, .65vw, 12px);
}

.concept-display-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: .84;
  letter-spacing: -.06em;
  font-weight: 900;
  text-transform: uppercase;
  transition: opacity .24s ease, transform .24s ease;
}

.concept-display-description {
  margin: 0;
  max-width: 460px;
  color: var(--gray);
  font-size: var(--fs-xs);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: opacity .24s ease, transform .24s ease;
}

.concept-horizontal {
  display: none;
  max-width: 980px;
  margin: 0 auto;
  padding-top: 8px;
}

body[data-concept-variant="horizontal"] .concept-shell {
  display: none;
}

body[data-concept-variant="horizontal"] .concept-horizontal {
  display: block;
}

.concept-horizontal-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.concept-horizontal-display-icon {
  width: min(28vw, 180px);
  min-width: 96px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.concept-horizontal-display-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(83%) sepia(45%) saturate(500%) hue-rotate(25deg) brightness(110%) contrast(95%);
}

.concept-horizontal-display-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: .84;
  letter-spacing: -.06em;
  font-weight: 900;
  text-transform: uppercase;
}

.concept-horizontal-display-description {
  margin-top: 14px;
  max-width: 540px;
  color: var(--gray);
  font-size: var(--fs-xs);
  line-height: 1.34;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.concept-horizontal-nav {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  margin-top: 28px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.concept-horizontal-nav::-webkit-scrollbar {
  display: none;
}

.concept-horizontal-nav-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 4px 0;
  border: 0;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  text-transform: uppercase;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  line-height: 1.1;
  letter-spacing: 1.4px;
  transition: color .2s ease, opacity .2s ease;
}

.concept-horizontal-nav-item img {
  width: clamp(36px, 5vw, 58px);
  height: clamp(36px, 5vw, 58px);
  object-fit: contain;
  opacity: .72;
  filter: brightness(0) saturate(100%) invert(77%) sepia(0) saturate(0) brightness(1);
}

.concept-horizontal-nav-item span {
  display: inline-block;
  min-height: 18px;
}

.concept-horizontal-nav-item.is-active {
  color: var(--lime);
}

.concept-horizontal-nav-item.is-active img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(83%) sepia(45%) saturate(500%) hue-rotate(25deg) brightness(110%) contrast(95%);
}

.concept-horizontal-nav-item.is-active span::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 6px;
  background: var(--lime);
}

.concept-horizontal-nav-item:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 6px;
}

.concept-selector-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(76%, 1100px);
  margin-right: auto;
  margin-left: auto;
  align-items: flex-end;
  margin-top: clamp(24px, 3vw, 54px);
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.concept-selector-list::-webkit-scrollbar {
  display: none;
}

.concept-selector-item {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 3px 8px;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--gray) 85%, var(--white) 15%);
  font-family: var(--mono);
  font-size: clamp(var(--fs-2xs), .75vw, var(--fs-xs));
  line-height: 1.15;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease;
}

.concept-selector-item img {
  width: clamp(40px, 5vw, 64px);
  height: clamp(40px, 5vw, 64px);
  object-fit: contain;
  opacity: .94;
  filter: brightness(0) saturate(100%) invert(70%) sepia(0) saturate(0) brightness(1);
  transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}

.concept-selector-item span {
  display: inline-flex;
  justify-content: center;
  min-height: 18px;
}

.concept-selector-item.is-active {
  color: var(--lime);
}

.concept-selector-item.is-active img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(83%) sepia(45%) saturate(500%) hue-rotate(25deg) brightness(110%) contrast(95%);
}

.concept-selector-item.is-active::after {
  content: "";
  display: block;
  width: 38%;
  height: 1px;
  background: var(--lime);
}

.concept-selector-item:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 6px;
}

.concept-horizontal-nav-item:focus-visible,
.concept-selector-item:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 6px;
}

@media (max-width: 768px) {
  .concept {
    padding: clamp(32px, 8vw, 56px) 22px clamp(48px, 10vw, 76px);
  }

  .race-modes::before {
    background-position: center center;
  }

  .concept-display-icon {
    width: min(25vw, 125px);
    max-width: 125px;
  }

  .concept-display-arrow {
    font-size: var(--fs-xl);
  }

  .concept-display-title {
    font-size: clamp(2.3rem, 8vw, 4rem);
  }

  .concept-display-description {
    max-width: min(84vw, 340px);
  }

  .concept-selector-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    justify-content: center;
    gap: clamp(6px, 2vw, 12px);
  }

  .concept-horizontal-display {
    gap: 14px;
  }

  .concept-horizontal-display-icon {
    width: min(32vw, 150px);
  }

  .concept-horizontal-display-title {
    font-size: clamp(2.2rem, 8vw, 3.8rem);
  }

  .concept-horizontal-display-description {
    max-width: 420px;
  }

  .concept-horizontal-nav {
    justify-content: flex-start;
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .concept-display,
  .concept-display-arrow,
  .concept-display-icon img,
  .concept-display-title,
  .concept-display-description,
  .concept-selector-item,
  .concept-selector-item img,
  .concept-horizontal-nav-item,
  .concept-horizontal-display {
    transition: none !important;
  }
}

/* EVENT INTRO */

.event-intro {
  padding: 0;
  background: var(--bg);
}

.event-visual {
  position: relative;
  height: 62svh;
  min-height: 430px;
  overflow: hidden;
  transition: height .35s ease;
}

.event-visual video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: var(--white);
  font-family: var(--display);
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

.event-intro-grid {
  max-width: 1000px;
  margin-top: 20px;
}

.event-intro h2 {
  max-width: 900px;
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: .82;
  letter-spacing: -.06em;
  font-weight: 900;
  text-transform: uppercase;
}

.event-intro h2 span {
  color: var(--lime);
}

.event-note-toggle {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 68%;
  max-width: 32rem;
  margin-left: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--gray);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  line-height: 1.55;
  text-transform: uppercase;
  text-align: right;
  cursor: pointer;
}

.event-note-toggle:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

.event-note-teaser {
  display: block;
  max-height: 4.8em;
  overflow: hidden;
  padding-right: 1.25rem;
  opacity: 1;
  transition: max-height .35s ease, opacity .2s ease, padding .35s ease;
}

.event-note-expanded {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  opacity: 0;
  transition: grid-template-rows .35s ease, opacity .2s ease;
}

.event-note-copy {
  display: grid;
  gap: .8rem;
  min-height: 0;
  overflow: hidden;
}

.event-note-toggle[aria-expanded="true"] .event-note-teaser {
  max-height: 0;
  padding-right: 0;
  opacity: 0;
}

.event-note-toggle[aria-expanded="true"] .event-note-expanded {
  grid-template-rows: 1fr;
  opacity: 1;
}

.event-note-indicator {
  position: absolute;
  right: 0;
  bottom: 0;
  padding-left: .35rem;
  font-family: var(--display);
  font-size: var(--fs-sm);
  line-height: 1;
}

.event-note-toggle[aria-expanded="true"] .event-note-indicator {
  position: static;
  align-self: flex-end;
  margin-top: .45rem;
  padding-left: 0;
}

/* ROUTE */

.route-section {
  padding: 82px 22px 90px;
  background-color: var(--bg);
  background-image:
    linear-gradient(
      to bottom,
      rgba(52, 40, 40, .2),
      rgba(52, 40, 40, .18) 45%,
      rgba(52, 40, 40, .3)
    ),
    url("../assets/pics/Mountain_web.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.route-section .data {
  background: transparent;
}

.route-facts {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: var(--eyebrow-gap);
  color: var(--gray);
  font-family: var(--display);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.route-facts-row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
  row-gap: .3rem;
}

.route-facts-date {
  color: var(--lime);
}

.route-head {
  display: grid;
  gap: 30px;
  margin-top: 24px;
  margin-bottom: 50px;
}

.route-head h2 {
  max-width: 950px;
  font-size: clamp(3.8rem, 12vw, 9rem);
  line-height: .78;
  letter-spacing: -.065em;
  font-weight: 900;
  text-transform: uppercase;
}

.route-head h2 span {
  color: var(--lime);
}

.route-copy {
  max-width: 520px;
  color: var(--gray);
  font-size: var(--fs-md);
  line-height: 1.35;
}

.route-interactive {
  display: grid;
  width: min(100%, 1200px);
  gap: 24px;
  margin-inline: auto;
  padding-bottom: 15px;
  color: var(--gray);
  font-family: var(--display);
  overflow: visible;
}

/* One calm panel for map, legend and profile. */
.route-panel {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: clamp(20px, 2.2vw, 28px);
  background: rgba(16, 11, 11, .55);
  box-shadow: inset 0 1px 0 rgba(244, 239, 231, .06);
}

.route-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.route-panel-title {
  margin: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(var(--fs-lg), 1.7vw, 22px);
  font-weight: 700;
  letter-spacing: -.01em;
}

.route-panel-sub {
  margin: 4px 0 0;
  color: var(--gray);
  font-size: var(--fs-sm);
}

.route-hint {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 245, 245, .06);
  color: var(--gray);
  font-size: var(--fs-xs);
  white-space: nowrap;
  transition: opacity .4s ease;
}

.route-hint-touch { display: none; }

@media (hover: none) {
  .route-hint-pointer { display: none; }
  .route-hint-touch { display: inline; }
}

.route-panel.is-explored .route-hint {
  opacity: 0;
}

.route-interactive .profile-hint-line {
  stroke: var(--lime);
  stroke-opacity: .35;
  stroke-width: 2;
  stroke-dasharray: 4 7;
}

.route-interactive .profile-hint-pulse {
  fill: var(--lime);
  fill-opacity: .25;
  transform-box: fill-box;
  transform-origin: center;
  animation: profile-hint-pulse 2.4s ease-out infinite;
}

@keyframes profile-hint-pulse {
  from { transform: scale(.4); opacity: .9; }
  to { transform: scale(1.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .route-interactive .profile-hint-pulse { animation: none; }
}

.route-interactive svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.route-interactive text {
  fill: var(--gray);
  font-family: var(--display);
}

.route-interactive .section-label {
  fill: var(--gray);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 2px;
}

.route-interactive .grid-line {
  stroke: var(--gray);
  stroke-dasharray: 2 12;
  opacity: .28;
}

.route-interactive .route-base {
  fill: none;
  stroke: var(--black);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-interactive .route-segment,
.route-interactive .profile-segment {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-interactive .profile-segment {
  stroke-width: 4;
}

.route-interactive .profile-fill {
  stroke: none;
}

.route-interactive .hover-line {
  stroke: var(--lime);
  stroke-width: 2;
  stroke-dasharray: 5 5;
  opacity: 0;
  pointer-events: none;
}

.route-interactive .hover-icon {
  opacity: 0;
  pointer-events: none;
}

.route-tooltip {
  position: fixed;
  z-index: 10003;
  min-width: 9rem;
  padding: .65rem .75rem;
  border: 1px solid var(--lime);
  background: var(--black);
  color: var(--gray);
  font-family: var(--display);
  font-size: .8rem;
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transform: translate(12px, 12px);
}

.route-tooltip strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--white);
  font-size: .95rem;
}

.route-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding: clamp(14px, 1.6vw, 20px) 0;
  border-top: 1px solid rgba(245, 245, 245, .10);
  border-bottom: 1px solid rgba(245, 245, 245, .10);
  color: var(--gray);
  font-family: var(--display);
  font-size: var(--fs-xs);
}

.route-legend-label {
  font-size: 13px;
}

.route-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.route-legend b {
  color: var(--white);
  font-weight: 700;
}

.route-legend em {
  font-style: normal;
}

.route-legend span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.route-swatch {
  width: 1.6rem;
  height: .25rem;
  border-radius: 1rem;
}

.route-flat { background: var(--slope-flat); }
.route-moderate { background: var(--slope-moderate); }
.route-steep { background: var(--slope-steep); }
.route-very-steep { background: var(--slope-very-steep); }
.route-downhill { background: var(--slope-downhill); }

/* RACE MODES */

.race-modes {
  position: relative;
  padding: 76px 22px 88px;
  background: transparent;
}

.race-modes-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1400px);
  margin: 0 auto;
}

.race-modes-head {
  margin: var(--eyebrow-gap) 0 52px;
}

.race-modes-head h2 {
  font-size: clamp(2.4rem, 8.8vw, 8rem);
  font-weight: 900;
  line-height: .82;
  text-transform: uppercase;
}

.race-modes-head h2 span { color: var(--lime); }

.race-mode {
  border-top: 1px solid var(--line);
}

.race-mode:last-child {
  border-bottom: 1px solid var(--line);
}

.race-mode-heading {
  font-size: inherit;
}

.race-mode-trigger {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
  cursor: pointer;
}

.race-mode-name {
  min-width: 0;
  font-family: var(--display);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 900;
  line-height: .92;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.race-mode-icon {
  flex: 0 0 1.25rem;
  padding-top: .3rem;
  color: var(--lime);
  font-family: var(--mono);
  font-size: .9rem;
  line-height: 1;
  text-align: right;
}

.race-mode-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 240ms ease, opacity 240ms ease;
}

.race-mode-panel > div {
  min-height: 0;
  overflow: hidden;
}

.race-mode-description {
  padding: 0 2.25rem 1.15rem 0;
  color: var(--gray);
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 400;
  line-height: 1.55;
}

.race-mode-lead {
  display: block;
  color: var(--white);
  font-weight: 700;
}

.race-mode.is-open .race-mode-name {
  color: var(--lime);
}

.race-mode.is-open .race-mode-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .race-mode-name,
  .race-mode-panel {
    transition-duration: 0.01ms;
  }
}

/* WORK */

.work {
  min-height: 88svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 30px 22px 34px;
  overflow: hidden;
  isolation: isolate;
}

.work video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.work::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.05) 72%);
}

.work h2 {
  margin-top: var(--eyebrow-gap);
  color: var(--white);
  font-size: clamp(4rem, 17vw, 11rem);
  line-height: .75;
  letter-spacing: -.07em;
  font-weight: 900;
  text-transform: uppercase;
}

.work h2 span { color: var(--lime); }

/* DATA */

.data {
  padding: 70px 22px 100px;
  background: var(--bg);
}

.data-primary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin-top: 30px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.data-fact {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .5rem;
  font-family: var(--mono);
  text-transform: uppercase;
}

.data-fact-value {
  color: var(--white);
  font-size: var(--fs-sm);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.data-fact-label {
  color: var(--gray);
  font-size: var(--fs-2xs);
  line-height: 1.3;
}

.data-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
  width: 100%;
  max-width: 1100px;
  margin-top: 14px;
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--gray);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  line-height: 1.4;
  text-transform: uppercase;
  cursor: pointer;
}

.data-toggle:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

.data-toggle-indicator {
  color: var(--lime);
  font-family: var(--display);
  font-size: var(--fs-md);
  line-height: 1;
}

.data-details {
  display: grid;
  grid-template-rows: 0fr;
  max-width: 1100px;
  margin-top: 0;
  opacity: 0;
  transition: grid-template-rows .3s ease, opacity .2s ease, margin-top .3s ease;
}

.data-details-inner {
  min-height: 0;
  overflow: hidden;
}

.data.is-expanded .data-details {
  grid-template-rows: 1fr;
  margin-top: 18px;
  opacity: 1;
}

.data-grid {
  width: 100%;
  border-top: 1px solid var(--line);
}

.data-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.data-row dt { color: var(--gray); }
.data-row dd { font-weight: 500; }

.data-row-text { align-items: start; }
.data-row-full { grid-template-columns: 1fr; }
.data-row-full dt { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.data-row-text dd {
  font-size: var(--fs-xs);
  line-height: 1.7;
  letter-spacing: .3px;
  text-transform: none;
  overflow-wrap: break-word;
}

/* CULTURE */

.culture {
  padding: 76px 0 0;
  background: var(--bg);
}

.culture-head {
  padding: 0 22px 50px;
}

.culture-head h2 {
  margin-top: var(--eyebrow-gap);
  font-size: clamp(4rem, 16vw, 11rem);
  line-height: .76;
  letter-spacing: -.07em;
  font-weight: 900;
  text-transform: uppercase;
}

.culture-head h2 span { color: var(--lime); }

.culture-feed {
  min-width: 0;
  padding: 0 4px;
}

.culture-feed feedsnap-feed {
  display: block;
  width: 100%;
  max-width: 100%;
}

.culture-note {
  padding: 18px 22px 85px;
  color: var(--gray);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  line-height: 1.5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* SUMMIT */

.summit {
  min-height: 90svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 30px 22px 40px;
  overflow: hidden;
  isolation: isolate;
}

.summit video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.summit::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.05) 75%);
}

.summit h2 {
  margin-top: var(--eyebrow-gap);
  color: var(--white);
  font-size: clamp(4rem, 17vw, 10rem);
  line-height: .75;
  letter-spacing: -.07em;
  font-weight: 900;
  text-transform: uppercase;
}

.summit h2 span { color: var(--lime); }

.summit-copy {
  max-width: 450px;
  margin-top: 25px;
  font-size: var(--fs-md);
  line-height: 1.2;
}

.summit-payoff {
  margin-top: 30px;
  color: var(--lime);
  font-size: var(--fs-lg);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

/* FINAL */

.final {
  padding: 100px 22px 40px;
  background: var(--bg);
}

.final h2 {
  margin-top: var(--eyebrow-gap);
  font-size: clamp(4.2rem, 18vw, 12rem);
  line-height: .74;
  letter-spacing: -.075em;
  font-weight: 900;
  text-transform: uppercase;
}

.final-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 30px;
}

.final .cta { margin-top: 40px; }

.newsletter {
  max-width: 560px;
  margin-top: 100px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.newsletter-form {
  display: flex;
  margin-top: var(--eyebrow-gap);
}

.newsletter input {
  min-width: 0;
  flex: 1;
  padding: 13px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--white);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
}

.newsletter button {
  width: 52px;
  border: 0;
  background: var(--lime);
  color: var(--black);
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 22px 50px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--gray);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* LEGAL NOTICE */

.legal {
  padding: calc(env(safe-area-inset-top, 0px) + 124px) 22px 68px;
}

.legal-inner {
  width: min(100%, 860px);
}

body.legal-page .site-header {
  left: 22px;
  right: 22px;
}

body.legal-page .site-header > a {
  flex: 0 0 auto;
  justify-content: flex-start;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.legal-page .legal-title {
  margin-top: 14px;
  font-size: clamp(3.6rem, 16vw, 6rem);
  line-height: .76;
}

.legal h2 {
  max-width: 560px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
}

.legal-details {
  display: grid;
  gap: 22px;
  max-width: 720px;
  margin-top: 34px;
}

.legal-detail {
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.legal-detail dt {
  padding-top: 4px;
}

.legal-detail dd {
  min-width: 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.legal-detail address {
  font-style: normal;
}

.legal-detail a {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 769px) {
  .legal {
    padding: calc(env(safe-area-inset-top, 0px) + 158px) 7vw 92px;
  }

  body.legal-page .site-header {
    left: 7vw;
    right: 7vw;
  }

  body.legal-page .legal-title {
    font-size: clamp(6rem, 10vw, 10rem);
  }
}

@media (max-width: 480px) {
  .legal-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .legal-detail dt {
    padding-top: 0;
  }

  .legal-details {
    gap: 18px;
    margin-top: 28px;
  }
}

/* NEWSLETTER STATES + CONTACT */

.newsletter-form input {
  font-size: 16px; /* >= 16px prevents iOS zoom on focus */
  letter-spacing: .5px;
}

.newsletter-form input::placeholder {
  color: var(--gray);
  opacity: 1;
}

.newsletter-form input:focus {
  border-color: var(--lime);
  outline: 0;
}

.newsletter-form button {
  cursor: pointer;
  font-size: 20px;
}

.newsletter-form button:disabled {
  cursor: wait;
  opacity: .6;
}

.newsletter-status {
  min-height: 1.5em;
  margin-top: 12px;
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}

.newsletter-status[data-state="success"] { color: var(--lime); }
.newsletter-status[data-state="error"] { color: #ffb8a9; }

.contact {
  max-width: 560px;
  margin-top: 56px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.contact .contact-button {
  min-height: 44px;
  margin-top: var(--eyebrow-gap, 20px);
}

.contact-address {
  margin-top: 12px;
  text-transform: none;
}

/* Keep browser autofill (Safari/Chrome yellow) from overriding the dark field */
.newsletter-form input:-webkit-autofill,
.newsletter-form input:-webkit-autofill:hover,
.newsletter-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
  transition: background-color 9999s ease-out 0s;
}

/* PRIVACY POLICY */

.privacy-updated {
  margin-top: 28px;
}

.privacy section {
  max-width: 720px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.privacy section h2 {
  margin-top: 0;
  color: var(--lime);
}

.privacy-copy {
  margin-top: 14px;
  color: var(--white);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
}

.privacy-copy p + p {
  margin-top: 12px;
}

.privacy-copy a,
.newsletter-consent a {
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.privacy-copy a:hover,
.newsletter-consent a:hover {
  color: var(--lime);
}

.newsletter-consent {
  margin-top: 4px;
  text-transform: none;
}

/* Legal pages: header has no glass background, so let it scroll away instead of overlapping the text */
body.legal-page .site-header {
  position: absolute;
}
