/* Product page typography and surfaces. Viewer layout stays in style.css. */
:root {
  --paper: #f6f5f2;
  --ink: #1b1b20;
  --muted: #57565e;
  --slate: #202026;
  --pine: #24232a;
  --line: #dbd9df;
  --pad: max(clamp(22px, 5vw, 76px), calc((100vw - 1240px) / 2));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, .hero-promise, .footer-brand {
  font-family: inherit;
  letter-spacing: -.052em;
}

h2 {
  font-size: clamp(37px, 5.1vw, 72px);
  line-height: 1.02;
  text-transform: none;
  text-wrap: balance;
}

.eyebrow { letter-spacing: .09em; margin-bottom: 12px; }
.site-header {
  padding: 9px var(--pad);
  background: #f6f5f2ef;
  border-color: #1b1b2017;
  color: var(--ink);
  backdrop-filter: blur(20px) saturate(140%);
}
.brand { font-size: 27px; }
.brand-dot, .header-status > span { background: #8d53ad; }
.header-status { font-size: 12px; letter-spacing: 0; }
.site-header nav a:hover,
.site-header nav a[aria-current=location] {
  color: #6d378a;
  box-shadow: none;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #e9e9e1;
  color: var(--ink);
  text-align: center;
  padding: clamp(34px, 5vw, 74px) var(--pad) 30px;
}
.hero-copy { display: block; padding: 0; }
.hero .eyebrow { color: #674279; margin: 0 auto 12px; }
.hero h1 { font-size: clamp(67px, 9vw, 136px); line-height: .96; margin: 0; }
.hero-promise {
  text-transform: none;
  font-size: clamp(23px, 3.1vw, 42px);
  line-height: 1.1;
  letter-spacing: -.04em;
  margin: 10px 0 0;
  text-wrap: balance;
}
.hero .lede { color: #4f4e55; font-size: 16px; max-width: 500px; margin: 13px auto 0; }
.hero-actions { justify-content: center; gap: 14px 22px; margin-top: 19px; }
.hero .cta {
  background: #26232b;
  color: #fff;
  border-radius: 999px;
  padding: 11px 18px;
  gap: 12px;
}
.hero .cta:hover { background: #543366; }
.hero .cta span { font-size: 17px; }
.hero .text-link { color: #63337b; font-size: 13px; gap: 7px; border: 0; padding: 0; }
.hero .text-link:hover { text-decoration: underline; }
.hero-image {
  align-self: center;
  width: min(100%, 1070px);
  margin: 5px 0 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.4;
  object-fit: cover;
  object-position: center 48%;
}
.hero-facts { width: 100%; border-top: 1px solid #29263326; padding-top: 17px; margin-top: 0; }
.specs > div { display: grid; justify-content: center; justify-items: center; gap: 3px; }
.specs strong { font-family: inherit; font-size: clamp(22px, 3vw, 37px); letter-spacing: -.055em; }
.specs span, .mass-note { color: #55545a; font-size: 12px; max-width: none; }

main > section:not(.hero):not(.out-there) { padding-block: clamp(60px, 8vw, 118px); }
.section-heading { align-items: end; gap: 26px; margin-bottom: 30px; }
.section-heading .eyebrow { color: #68457a; }
.section-heading > p { font-size: 16px; max-width: 370px; }
#on-bike, #technical { background: #fbfaf9; }
#routing, #analysis, #fork-mounts { background: #efedf1; }
#motion .section-heading .eyebrow, #gallery .section-heading .eyebrow { color: #dcb6f1; }
.bike-player, .assembly-player, .scene-card, #gallery-stage, .fork-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #8a829639;
}
#gallery .thumbnail { border-radius: 12px; overflow: hidden; }
#gallery .thumbnail[aria-pressed=true] { box-shadow: inset 0 0 0 1px #dfb2f4; }
.fork-heading h2 { font-size: clamp(37px, 5vw, 68px); }
.trail-content h2 {
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.03;
  text-transform: none;
  letter-spacing: -.045em;
}
.closing { background: #e9dfef; }
.closing h3 { font-family: inherit; font-size: clamp(38px, 5vw, 69px); line-height: 1; }
footer { background: #202026; }

@media (max-width: 760px) {
  .menu-toggle { color: var(--ink); }
  .site-header nav { background: #f6f5f2; color: var(--ink); border-color: var(--line); }
  .hero { padding-top: 42px; }
  .hero-image { width: calc(100% + 44px); margin: 12px 0 0; }
  .hero-image img { aspect-ratio: 1.7; }
  .hero .lede { font-size: 15px; }
  .hero-facts { order: 4; }
  .specs { gap: 16px 10px; }
  .specs span, .mass-note { font-size: 11px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; font-size: 15px; }
  .bike-player, .assembly-player, .scene-card, #gallery-stage, .fork-card { border-radius: 15px; }
}

/* Wide interactive stages alternate with narrower reading sections. */
.brand img { flex: none; display: block; width: auto; height: 34px; }
#on-bike, #gallery { --stage-gutter: 0px; }
#bike-story, #gallery-stage {
  margin-inline: calc(var(--stage-gutter) - var(--pad));
}
#bike-story .bike-player, #gallery-stage {
  border-radius: 0;
  border-inline: 0;
}
#bike-story .bike-stage,
#gallery-stage canvas,
#gallery-stage .viewer-fallback {
  height: clamp(440px, 70svh, 780px);
}
#on-bike .section-heading, #gallery .section-heading { margin-bottom: clamp(24px, 4vw, 52px); }
#gallery .thumbnail-strip { margin-top: 22px; }
#motion, #routing, #fork-mounts {
  --pad: max(clamp(22px, 5vw, 76px), calc((100vw - 1060px) / 2));
}
#technical, #analysis {
  --pad: max(clamp(22px, 5vw, 76px), calc((100vw - 960px) / 2));
}
#technical h2, #analysis h2 {
  font-size: clamp(37px, 4.2vw, 60px);
}
#analysis .analysis-grid article h3 {
  font-family: inherit;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -.04em;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  font-size: clamp(40px, 9vw, 130px);
  line-height: 1;
}
.footer-brand img {
  width: clamp(200px, 30vw, 380px);
  height: auto;
  flex: none;
}
.will-reveal, .will-reveal.is-seen {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .will-reveal.is-seen { animation: section-arrival .45s ease-out both; }
  @keyframes section-arrival {
    from { opacity: .78; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 760px) {
  #bike-story .bike-stage,
  #gallery-stage canvas,
  #gallery-stage .viewer-fallback {
    height: clamp(350px, 62svh, 520px);
  }
  .brand { gap: 7px; }
  .brand img { height: 30px; }
}
