/* ==========================================================================
   Homepage — Concept B (Figma 964:822), 1280 desktop reproduced 1:1.
   Section comments carry the Figma node id and the SRS section number.
   Custom sections are written as reusable blocks (class names are generic)
   so WT can register each once and reuse it on About / Product / Collection.
   ========================================================================== */

/* H1 · Hero — 973:2616 */
.hero { position: relative; height: calc(100vh - var(--ann-h)); height: calc(100svh - var(--ann-h)); /* bar + hero = exactly one screen */ overflow: hidden; color: var(--white); }
.hero__media, .hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img { object-position: 50% 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 77.125%, rgba(0,0,0,.32) 98.475%); pointer-events: none; }
.hero__caption { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: 30px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.hero__caption .t-btn { opacity: .9; }

/* H2 · Ride Further (Editorial split) — 964:854 */
.split { display: flex; gap: var(--gap); padding: 30px var(--gutter) var(--section-y); background: var(--white); }
.split__text { position: relative; flex: 0 0 595px; height: 685px; display: flex; flex-direction: column; }
.split__title { margin: 0; }
.split__statement { position: absolute; inset: 0; margin: auto; height: fit-content; width: 350px; /* centred without transform, so the reveal animation can't push it off-centre */ display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.split__media { flex: 1; height: 685px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.brands { position: absolute; left: 0; bottom: 0; display: flex; }
.brands a { display: flex; align-items: center; justify-content: center; width: 74.375px; height: 42.038px; padding: 8.6px 12.9px; opacity: 1; transition: opacity .2s; }
.brands a:hover { opacity: .55; }
.brands img { width: auto; max-width: 100%; height: auto; }

/* H3 · Featured bike story (Product story) — 964:955 */
.story { background: var(--bg-soft); padding: 30px var(--gutter) var(--section-y); display: flex; flex-direction: column; gap: 30px; }
.story__media { height: 500px; }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.story__text { width: 387px; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.story__text > div { display: grid; gap: 15px; }
.story__cutout { width: 269.129px; height: 170px; overflow: visible; position: relative; } /* visible: the PNG's transparent margin may overflow; the bike is never clipped */
.story__cutout img { position: absolute; left: 0; top: -27.97%; width: 100%; height: 158.31%; max-width: none; object-fit: cover; transition: transform .8s var(--ease); }
.story:hover .story__cutout img { transform: translateX(-6px); }

/* H4 · Shoppable feature — 964:965 */
.shoppable { position: relative; height: 800px; padding: 30px var(--gutter); display: flex; align-items: flex-end; justify-content: flex-end; overflow: hidden; }
.shoppable__bg { position: absolute; inset: 0; }
.shoppable__bg img { position: absolute; left: 0; top: .05%; width: 100%; height: 125.16%; max-width: none; object-fit: cover; }
.shoppable .pcard { width: 420px; z-index: 1; } /* Figma 387 x 475 */

/* H5 · Gravel Ready (Collage) — 964:970 */
.collage { background: var(--bg-sand); padding: var(--section-y) var(--gutter) 30px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.collage__detail { flex: 0 0 178px; height: 300px; }
.collage__main { flex: 0 0 595px; height: 652px; }
.collage__detail img, .collage__main img { width: 100%; height: 100%; object-fit: cover; }
.collage__text { flex: 0 0 387px; height: 300px; display: flex; flex-direction: column; justify-content: space-between; }
.collage__text > div { display: grid; gap: 15px; }

/* H6 · Top Picks of the Week — 964:978 */
.picks { padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 60px; }
.picks__grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; } /* minmax(0) = cards may shrink below their content width, no sideways scroll */

/* H7 · Bike spotlight — 964:986 */
.spotlight { padding: 0 var(--gutter) 30px; }
.spotlight__panel { position: relative; height: 600px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); overflow: hidden; background: #0b0b0b; }
.spotlight__bg { position: absolute; left: -11.92%; top: -24.65%; width: 127.98%; height: 124.7%; max-width: none; object-fit: cover; }
.spotlight__copy { position: relative; width: 325px; display: grid; gap: 30px; }
.spotlight__copy > div:first-child { display: grid; gap: 15px; }
.spotlight__copy p { color: var(--gray); }
.stats { display: grid; gap: 25px; }
.stats hr { height: 1px; border: 0; margin: 0; background: var(--rule-dark); }
.stats__row { display: flex; }
.stat { flex: 1; display: flex; align-items: flex-end; gap: 6px; }
.stat b { font-weight: 700; font-size: 20px; line-height: normal; text-transform: uppercase; }
.stat span { font-size: 12px; line-height: 16px; color: var(--gray); padding-bottom: 3px; }
.spotlight .link-dot { position: relative; }

/* H8 · Giant / Liv carousel (Tabbed product carousel) — 964:1030 / 917:1762 */
.brandtabs { display: flex; overflow: hidden; height: 800px; background: var(--bg-ice); transition: background .5s var(--ease); }
.brandtabs[data-active="liv"] { background: var(--bg-soft); } /* 11 Nov: lighter grey panel (#F7F7F7, was #F2F2F2) */
.brandtabs__left { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.brandtabs__tabs { display: flex; gap: 30px; align-items: center; height: 13px; }
.brandtabs__tabs button { position: relative; display: block; }
.brandtabs__tabs button img { transition: opacity .3s; }
.brandtabs__tabs button .on { position: absolute; inset: 0; opacity: 0; }
.brandtabs__tabs button[aria-selected="true"] .on { opacity: 1; }
.brandtabs__tabs button[aria-selected="true"] .off { opacity: 0; }
.brandtabs__left > [data-panel] { width: 100%; display: flex; justify-content: center; }
.brandtabs__track { position: relative; width: 420px; display: grid; } /* Figma 387 x 508; height = the card (cards stacked in one cell) */
.brandtabs__track > .pcard { grid-area: 1 / 1; opacity: 0; transform: translateX(24px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.brandtabs__track > .pcard.is-active { opacity: 1; transform: none; pointer-events: auto; }
.arrows { display: flex; gap: 16px; align-items: center; }
.arrows button { width: 16px; height: 13px; display: grid; place-items: center; color: var(--velocity); transition: color .2s; }
.arrows button.is-dim { color: var(--gray); }
.brandtabs__media { flex: 1; position: relative; overflow: hidden; }
.brandtabs__media img { position: absolute; top: 0; height: 100%; max-width: none; object-fit: cover; transition: opacity .6s var(--ease); }
.brandtabs__media .giant { left: -46.94%; width: 187.48%; }
.brandtabs__media .liv { left: 0; top: -5%; width: 100%; height: 142.22%; opacity: 0; }
.brandtabs[data-active="liv"] .brandtabs__media .giant { opacity: 0; }
.brandtabs[data-active="liv"] .brandtabs__media .liv { opacity: 1; }

/* H9 · Tradition & Community — 964:1031 */
.tradition { background: var(--white); padding: var(--section-y) var(--gutter) 177px; display: grid; grid-template-columns: 1fr 770px 1fr; column-gap: 9px; }
.tradition__word { align-self: center; margin-top: -6px; }
.tradition__word--r { text-align: right; }
.tradition__media { height: 544px; }
.tradition__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; } /* image = Figma frame export (already cropped as designed) */
.tradition__caption { grid-column: 2; margin-top: 30px; display: flex; justify-content: space-between; align-items: flex-end; }
.tradition__caption p { width: 450px; max-width: calc(100% - 170px); } /* 3 lines at 16px (was 336px = 4 lines) */

/* H10 · Services tabs — 964:1046 (Modal 2 variants 917:1731 / 1741 / 1751) */
.services { display: flex; height: 800px; }
.services__media { flex: 0 0 50%; position: relative; overflow: hidden; }
.services__media img { position: absolute; top: 0; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.services__media img[data-for="repair"] { left: -56.24%; width: 156.29%; }
.services__media img[data-for="rent"] { left: 0; width: 100%; }
.services__media img[data-for="fitting"] { left: -16.06%; width: 156.24%; }
.services[data-active="repair"] img[data-for="repair"], .services[data-active="rent"] img[data-for="rent"], .services[data-active="fitting"] img[data-for="fitting"] { opacity: 1; }
.services__panel { --panel: var(--velocity); --ink: var(--white); --dim: .5; position: relative; flex: 1; padding: 30px; background: var(--panel); color: var(--ink); transition: background .5s var(--ease), color .5s var(--ease); }
.services[data-active="rent"] .services__panel { --panel: var(--sunset); }
.services[data-active="fitting"] .services__panel { --panel: var(--attack); --ink: var(--asphalt); --dim: .24; }
.services__tabs { display: flex; justify-content: space-between; }
.services__tabs button { font-weight: 700; font-size: 24px; line-height: 28px; text-transform: uppercase; opacity: var(--dim); transition: opacity .3s; }
.services__tabs button[aria-selected="true"], .services__tabs button:hover { opacity: 1; }
.services__body { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 350px; display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.services__body[hidden] { display: none; }
.services__body .link-dot { color: var(--ink); }
.services__body .link-dot::after { background: var(--ink); }
.services[data-active="fitting"] .services__body .link-dot::after { background: var(--velocity); }

/* H11 · Community Wall — 964:1069 */
.wall { display: flex; min-height: 800px; }
.wall__text { flex: 1; min-width: 0; background: var(--bg-ice); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.wall__quotes { position: relative; display: grid; gap: 30px; }
.wall__slides { display: grid; }
.wall__slide { grid-area: 1 / 1; width: 448px; max-width: 100%; display: grid; gap: 12px; align-content: start; opacity: 0; transition: opacity .5s var(--ease); }
.wall__slide.is-active { opacity: 1; }
.wall__slide cite { font-style: normal; font-weight: 600; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.wall__foot { display: flex; justify-content: space-between; align-items: center; }
.wall__media { flex: 0 0 50%; height: 800px; /* 50/50 split at every desktop width (Figma: 640 of 1280) */ position: relative; overflow: hidden; }
.wall__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.wall__media img.is-active { opacity: 1; }

/* H12 · Ride With Us — 964:1090 */
.ride { position: relative; background: var(--white); padding: var(--section-y) 0 30px var(--gutter); display: grid; grid-template-columns: 595px 1fr; column-gap: 30px; overflow: hidden; }
.ride__media { height: 672px; overflow: hidden; position: relative; }
.ride__media img { position: absolute; left: -9.07%; top: 0; width: 170.48%; height: 100%; max-width: none; object-fit: cover; }
.ride__side { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.ride__intro { display: grid; grid-template-columns: 178px minmax(0, 340px); /* 340 = description in 3 lines (was 273 = 4) */ column-gap: 30px; align-items: start; }
.ride__intro > div { display: grid; gap: 0; }
.ride__strava { margin: 26px 0 16px; width: 77.3px; height: auto; }
.ride__strip { display: flex; align-items: flex-end; gap: 9.109px; overflow-x: auto; scrollbar-width: none; padding-right: var(--gutter); }
.ride__strip::-webkit-scrollbar { display: none; }
.ride__strip figure { flex: none; overflow: hidden; position: relative; }
.ride__strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ride__strip figure:hover img { transform: scale(1.05); }

/* H13 · Real Riders. Real Stories. — 964:1108 */
.riders { background: var(--bg-soft); /* 11 Nov: #F7F7F7, was #F2F2F2 */ padding: var(--section-y) var(--gutter) 30px; display: flex; justify-content: space-between; gap: 30px; }
.riders__list { width: 803px; display: flex; flex-direction: column; gap: 30px; }
.riders__item { display: flex; align-items: flex-start; gap: 30px; }
.riders__item img { flex: none; width: 133px; height: 75px; object-fit: cover; }
.riders__item p { flex: 1; }
.riders__item:hover p { color: var(--velocity); }
.riders__list hr { height: 1px; border: 0; margin: 0; background: #E6E6E6; }
.riders__all { display: flex; justify-content: flex-end; }

/* ---------- Full-screen sections ----------
   On desktop (≥901px) every content section is at least 95% of the screen tall, with its content centred
   vertically, so each section gets room to breathe. Banners (Hero, H4 Shoppable,
   H7 Spotlight) keep their own height. Sections grow past one screen if their
   content needs it (min-height, never a fixed height). */
@media (min-width: 901px) { /* desktop only — phones/tablets keep natural section heights */
  .fs { min-height: 95vh; min-height: 95svh; } /* 95% of the screen; hero stays 100% */
  .spotlight { padding: 60px; }                 /* H7 banner sits 60px in from the page edges */
  .spotlight__panel { padding: 60px; }          /* content 60px from the banner's border */
  .shoppable { height: 95vh; height: 95svh; min-height: 680px; padding: 60px; } /* H4 banner matches the sections around it; card sits 60px from the edges */
  .shoppable__bg img { top: 0; height: 100%; object-position: 50% 6%; } /* photo moved down (more sky above the riders) */

  /* One spacing rule for the homepage: 60px on every side of each content area.
     (60px top also clears the 55px sticky header.) Full-bleed photos keep 0 padding. */
  .story.fs, .collage.fs, .picks.fs, .tradition.fs, .ride.fs, .riders.fs { padding: 60px; }
  .wall.fs .wall__text, .services.fs .services__panel { padding: 60px; }

  /* Ride Further: 50/50 split — photo full-bleed (no padding), text column 60px all round */
  .split.fs { align-items: stretch; padding: 0; gap: 0; }
  .split.fs .split__text, .split.fs .split__media { flex: 0 0 50%; height: auto; min-height: 640px; } /* exact 50/50 */
  .split.fs .split__text { padding: 60px; align-items: center; }
  .split.fs .split__title { text-align: center; } /* title, statement and logos share one centre line */
  .split.fs .brands { left: 60px; right: 60px; bottom: 60px; justify-content: center; }
  .split.fs .split__media { position: relative; overflow: hidden; }
  .split.fs .split__media img { position: absolute; inset: 0; left: auto; width: 112%; max-width: none; object-position: 100% 50%; } /* anchored right + 12% wider = photo shifted left */

  /* Vertical centring inside the 95% height */
  .story.fs, .picks.fs { justify-content: center; }
  /* Top Picks: equal space above the title and below the cards (down to the Explore banner).
     Content box = title → VIEW BIKE (cards hug their content, no empty card bottom),
     top padding 60 mirrors the banner section's 60 top padding below, then the rest is split evenly. */
  .picks.fs { min-height: 0; padding: 120px 60px 20px; justify-content: flex-start; } /* 120 above the title; 120 visible below the cards = card 40 + this 20 + banner 60. Height follows content (no 95% rule) */
  .collage.fs, .riders.fs { flex-wrap: wrap; align-content: center; }
  .collage.fs > *, .riders.fs > * { flex-grow: 0; }
  .collage.fs .collage__text { flex: 1 1 260px; max-width: 387px; } /* lets the row fit inside the wider 60px margins */
  .collage.fs { justify-content: flex-start; align-content: flex-end; } /* images + text packed left from the 60px margin, all sitting on the bottom 60px line; open space on the right */
  .tradition.fs, .ride.fs { align-content: center; }
  .riders.fs { justify-content: space-between; }
  .riders.fs { min-height: 0; padding-top: 120px; padding-bottom: 60px; align-content: flex-start; } /* 120 top, 60 bottom; height follows content (no 95% rule) */

  /* Split image sections: photo fills the full height */
  .brandtabs.fs, .services.fs, .wall.fs { height: auto; }
  /* Giant/Liv: card stays dead centre; logos and arrows sit a little closer to the card than the middle of each gap (2/5 of the gap from the card) */
  .brandtabs.fs .brandtabs__left { display: grid; grid-template-rows: 3fr auto 2fr auto 2fr auto 3fr; justify-items: center; align-items: center; gap: 0; }
  .brandtabs.fs .brandtabs__tabs { grid-row: 2; }
  .brandtabs.fs .brandtabs__left > [data-panel] { grid-row: 4; }
  .brandtabs.fs .brandtabs__left > .arrows { grid-row: 6; }
  .wall.fs { min-height: 95svh; }
  .wall.fs .wall__media { height: auto; }

  /* Images that were taller than the available space scale with the screen (120 = 60 top + 60 bottom) */
  .story.fs { min-height: 95vh; min-height: 95svh; } /* at least 95%; grows on short laptops so the 120px bottom padding is never squeezed */
  .story.fs .story__media { flex: 1 1 0; height: auto; min-height: 320px; } /* photo takes whatever height is left */
  .story.fs { gap: 60px; padding-bottom: 120px; } /* 60px between the photo and the product info; 120px below the bike/Discover row */
  .story.fs .story__cutout { width: 403.69px; height: 255px; } /* bike cut-out +50% (Figma 269 x 170) */
  .story.fs .story__row { align-items: stretch; }                    /* text column = bike height */
  .story.fs .story__text { min-height: 0; justify-content: space-between; } /* headline + description top, button bottom */
  /* Gravel Ready: both images scale together so the main photo fills the 60px top-to-bottom padding.
     --ch = main photo height; capped by width so photos + 260px text always fit in one row (773 = 595 + 178 image widths at 652 tall) */
  .collage.fs { padding-top: 120px; --ch: min(calc(95svh - 180px), calc((100vw - 460px) * 652 / 773)); }
  .collage.fs .collage__main { height: var(--ch); width: auto; aspect-ratio: 595 / 652; flex-basis: auto; }
  .collage.fs .collage__detail { height: calc(var(--ch) * 300 / 652); width: auto; aspect-ratio: 178 / 300; flex-basis: auto; }
  .collage.fs .collage__text { height: calc(var(--ch) * 300 / 652); } /* title lines up with the top of the detail photo */
  .ride.fs { padding-top: 120px; padding-bottom: 60px; }
  .ride.fs { grid-template-columns: 50% minmax(0, 1fr); column-gap: 60px; }   /* photo's right edge = middle of the page (same split as Community Wall above); text starts 60 after it */
  .ride.fs .ride__media { height: calc(95svh - 180px); min-height: 500px; } /* photo fills from the 120px top line to the 60px bottom line */
  .tradition.fs .tradition__media { height: min(544px, calc(95svh - 208px)); }
}


/* ---------------------------------------------------------- responsive ---------- */
@media (max-width: 1240px) {
  .split__text { flex-basis: 46%; }
  .collage__main { flex-basis: 46%; height: auto; aspect-ratio: 595 / 652; }
  .collage__text { flex-basis: 30%; }
  .tradition { grid-template-columns: 1fr 60% 1fr; }
  .wall__media { flex-basis: 50%; }
  .ride { grid-template-columns: 46% 1fr; }
  .ride__intro { grid-template-columns: 1fr; row-gap: 16px; }
  .riders__list { width: 63%; }
}
@media (max-width: 900px) {
  .split { flex-direction: column; }
  .split__text { flex: none; height: auto; gap: 48px; }
  .split__statement { position: static; transform: none; margin: 0; width: auto; max-width: 420px; align-items: flex-start; text-align: left; }
  .brands { position: static; flex-wrap: wrap; }
  .split__media { height: auto; aspect-ratio: 4 / 5; }
  .story__media { height: auto; aspect-ratio: 16 / 9; }
  .collage { flex-wrap: wrap; }
  .collage__main { order: -1; flex-basis: 100%; }
  .collage__detail { flex-basis: 34%; height: auto; aspect-ratio: 178 / 300; }
  .collage__text { flex: 1; height: auto; min-height: 220px; }
  .picks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picks__grid > :nth-child(3) { display: none; }
  .brandtabs, .services, .wall { flex-direction: column; height: auto; }
  .brandtabs__left { padding: 48px var(--gutter); }
  .brandtabs__media, .services__media { flex: none; height: 70vw; }
  .services__panel { min-height: 460px; }
  .wall__media { flex: none; height: 110vw; max-height: 640px; order: -1; }
  .tradition { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .tradition__word { grid-row: 1; align-self: end; }
  .tradition__media { grid-column: 1 / -1; height: auto; aspect-ratio: 770 / 544; }
  .tradition__caption { grid-column: 1 / -1; }
  .ride { grid-template-columns: 1fr; padding-right: 0; row-gap: 40px; }
  .ride__media { height: auto; aspect-ratio: 595 / 672; margin-right: var(--gutter); }
  .ride__side { gap: 40px; }
  .riders { flex-direction: column; gap: 40px; }
  .riders__list { width: 100%; }
}
@media (max-width: 767px) {
  .hero__media img { object-position: 78% 100%; }
  .t-display { font-size: clamp(44px, 14vw, 64px); }
  .story__row { flex-direction: column; align-items: stretch; }
  .story__text { width: auto; min-height: 0; }
  .story__cutout { align-self: flex-end; width: 70%; height: auto; aspect-ratio: 269 / 170; }
  .shoppable { height: auto; min-height: 0; padding-top: 70vw; justify-content: center; }
  .shoppable__bg img { height: 100%; object-position: 30% 0; }
  .shoppable .pcard { width: 100%; }
  .collage__text { flex-basis: 100%; min-height: 160px; gap: 30px; }
  .collage__detail { display: none; }
  .picks { gap: 32px; }
  .picks__grid { grid-template-columns: 1fr; gap: 1px; background: var(--line); }
  .picks__grid > :nth-child(3) { display: flex; }
  .spotlight__panel { height: auto; min-height: 640px; gap: 40px; }
  .spotlight__bg { left: -55%; width: 210%; top: auto; bottom: -10%; height: 70%; }
  .spotlight__copy { width: 100%; }
  .brandtabs__track { width: 100%; max-width: 387px; }
  .services__tabs button { font-size: 18px; }
  .services__body { width: calc(100% - 32px); }
  .wall__slide { width: 100%; }
  .tradition { padding-bottom: var(--section-y); }
  .tradition__caption { flex-direction: column; align-items: flex-start; gap: 20px; }
  .tradition__caption p { width: auto; }
  .riders__item { flex-wrap: wrap; gap: 12px 16px; }
  .riders__item img { width: 104px; height: 59px; }
  .riders__item .link-dot { display: none; }
}

/* 11 Nov · Ride With Us strip: show only photos that fit whole (no cut-off photo at the edge).
   Photos wrap; the ones that don't fit drop to a hidden second line. Phones keep the swipe row. */
@media (min-width: 768px) {
  .ride__strip { flex-wrap: wrap; overflow: hidden; height: 202px; align-content: flex-start; row-gap: 202px; padding-right: 0; }
  .ride__strip::before { content: ""; flex: none; width: 0; height: 202px; margin-right: -9.109px; } /* keeps the visible line 202 tall so photos sit on the bottom line */
  /* With JS (site.js, 11 Nov): visible photos scale to fill the row to the right margin; strip height follows the tallest. */
  .ride__strip.is-fitted { flex-wrap: nowrap; row-gap: 0; }
  .ride__strip.is-fitted::before { display: none; }
  .ride__strip figure[hidden] { display: none; }
}

/* ---------- 12 Nov · Mobile homepage flow (≤767). Same sections and order as desktop; only the tight spots opened up to the 64 / 30 phone rhythm. Impulse: Close (CSS, no new blocks). ---------- */
@media (max-width: 767px) {
  /* Ride further: 64 under the hero photo (was 30) and 40 from the partner logos to the photo (was 16, they touched) */
  .split { padding-top: var(--section-y); }
  .split__text { gap: 40px; }
  .brands { margin-bottom: 24px; }
  /* Gravel ready: text → FIND OUT MORE 30, like every other section (was 75: a desktop min-height pushing the link down) */
  .collage__text { min-height: 0; justify-content: flex-start; gap: 30px; }
  /* Tradition & community: the two words read as one heading on one line (were pushed to opposite edges), text uses the full width (was squeezed to half) */
  .tradition { grid-template-columns: auto 1fr; column-gap: .3em; row-gap: 30px; }
  .tradition__word, .tradition__word--r { text-align: left; margin-top: 0; }
  .tradition__caption { margin-top: 0; }
  .tradition__caption p { max-width: none; }
  /* Services tabs: REPAIR · RENT · BIKE FITTING had 7px between them and read as one phrase; the row now uses the 16px phone margin so each gap is ~20 */
  .services__panel { padding-left: var(--gutter); padding-right: var(--gutter); }
  /* Community wall: quote → READ ALL REVIEWS 40 via the existing gap (was ~90: space-between pushed the link to the bottom of the panel) */
  .wall__text { justify-content: flex-start; }
}
/* 12 Nov · Ride further on phones/tablets (stacked, ≤900): centred — title, text, EXPLORE OUR COLLECTION and the partner logos; title → text = text → button (one gap) */
@media (max-width: 900px) {
  .split__text { align-items: center; text-align: center; gap: 40px; }
  .split__statement { align-items: center; text-align: center; margin-inline: auto; gap: 40px; }
  .split__statement br { display: none; }      /* the desktop line break left a ragged short line when centred */
  .brands { justify-content: center; }
}
/* 12 Nov · partner logos (stacked, ≤900): always 2 rows of 4 (were 6 + 2 on wider phones). Same logo size: the row is just 4 logo boxes wide (4 × 74.375) */
@media (max-width: 900px) { .brands { max-width: calc(4 * 74.375px); margin-inline: auto; } }
/* 12 Nov · phones: coloured panels that open with a photo start it 30 from the panel top (Propel story already did; Gravel ready was 64). Same 16 sides, so the photo sits in an even frame of colour. */
@media (max-width: 767px) { .collage { padding-top: 30px; } }
/* 12 Nov · phones: every product card that sits on a photo or a colour (helmet on the shoppable photo, Giant/Liv tabs, product page Complete your ride) is the same card: max 387 wide, centred, so its inner air (which scales with the card width) is identical everywhere */
@media (max-width: 767px) { .shoppable .pcard { width: 100%; max-width: 387px; margin-inline: auto; } }
/* 12 Nov · phones: every framed photo (inset 16 at the sides) uses the Propel story spacing — 30 between the photo and the section edge, 30 from the photo to the title.
   Ride with us: photo 30 from the top (was 64), photo → title 30 (was 40). Ride further: photo is the last thing, so 30 under it (was 64). Full-bleed photos (Community wall, Giant/Liv lifestyle, Services) stay edge to edge. */
@media (max-width: 767px) {
  .ride { padding-top: 30px; row-gap: 30px; }
  .split { padding-bottom: 30px; }
  /* Top picks: +20% space between the stacked products — 24 above each name and below each VIEW BIKE (was 20), so 48 + keyline between products (was 40) */
  .picks__grid .pcard { --pcard-air: 12px; }
}
/* 12 Nov · phones: helmet card on the photo has the same photo margin below it as at its sides (padding % = the page width; card = min(387, page − 32)) */
@media (max-width: 767px) { .shoppable { padding-bottom: calc((100% - min(387px, 100% - 2 * var(--gutter))) / 2); } }
/* 12 Nov · phones: every homepage section with padding = 50 top / 50 bottom (Bruno; replaces today's 30 / 64 mix, incl. the 30 framed-photo tops). Full-bleed photo sections (hero, shoppable photo, spotlight, Giant/Liv media, services, community wall) have no padding of their own and keep their photo edges. */
@media (max-width: 767px) {
  .split, .story, .collage, .picks, .tradition, .ride, .riders { padding-top: 50px; padding-bottom: 50px; }
}
@media (max-width: 767px) { .spotlight { padding-bottom: 50px; } }   /* 12 Nov · rhythm 50 (was 30) */

/* 12 Nov · Top picks on phones = the Bikes page grid: 2 columns, 4 bikes, no size row, keyline between the rows with 25 above (VIEW BIKE → line) and 25 below (line → next name); VIEW ALL • under the grid. Desktop / tablet keep 3 bikes, no View all. Impulse: Close (Featured collection: products per row on mobile = 2, View all button on). */
.pcard--phone-only, .picks__all { display: none; }
@media (max-width: 767px) {
  .picks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--gap); background: none; }
  .picks__grid > .pcard--phone-only { display: flex; }
  .picks__grid .pcard { --pcard-air: 8px; position: relative; }          /* 12 + 8 = 20 inside the card, + 5 = 25 to the line */
  .picks__grid .pcard__opts { min-height: 0; }
  .picks__grid .pcard__opts .sizes { display: none; }
  .picks__grid .pcard:nth-child(-n+2)::after { content: ""; position: absolute; bottom: -5.5px; height: 1px; background: var(--line); pointer-events: none; }
  .picks__grid .pcard:nth-child(1)::after { left: 0; right: calc(-1 * var(--gap) / 2); }
  .picks__grid .pcard:nth-child(2)::after { left: calc(-1 * var(--gap) / 2); right: 0; }
  .picks__all { display: inline-flex; }
}
/* 12 Nov · Top picks phones: a 2-line name (Giant Explore E+ 3 DD) no longer pushes its card out of line — every name block reserves 2 lines and sits on its price line, so prices, photos, stock and VIEW BIKE align across each row */
@media (max-width: 767px) {
  .picks__grid .pcard { justify-content: flex-start; }
  .picks__grid .pcard__head { min-height: calc(2 * 21.6px + 4px + 18px); align-content: start; }   /* names start on one line, 25 under the keyline; photos, stock and VIEW BIKE align */
}
/* 12 Nov, later · VIEW ALL • under TOP PICKS OF THE WEEK on every screen (was phones only, under the grid): heading → 30 → VIEW ALL, then the section's own gap to the bikes */
.picks__all { display: inline-flex; margin-top: -30px; }          /* desktop: section gap 60 → 30 under the heading */
@media (max-width: 767px) { .picks__all { margin-top: -2px; } }   /* phones: section gap 32 → 30 */
/* 12 Nov, later · Top picks phones: 50 from VIEW BIKE to the keyline and 50 from the keyline to the next name (was 25 / 25). Card has 20 inside, so rows sit 60 apart with the line in the middle. */
@media (max-width: 767px) {
  .picks__grid { row-gap: 60px; }
  .picks__grid .pcard:nth-child(-n+2)::after { bottom: -30.5px; }
}
/* 12 Nov · phones: Giant/Liv section = just the card with the bikes (lifestyle photo under it removed, Bruno); panel keeps the 50 rhythm top and bottom */
@media (max-width: 767px) {
  .brandtabs .brandtabs__media { display: none; }   /* homepage Giant/Liv + product Complete your ride (12 Nov) */
  .brandtabs .brandtabs__left { padding-top: 50px; padding-bottom: 50px; }
}
/* 12 Nov · phones: Tradition & community = photo first, then the heading with the text (same order and gaps as the Propel story: photo → 30 → heading → 15 → text → 30 → OUR HISTORY) */
@media (max-width: 767px) {
  .tradition__media { grid-row: 1; }
  .tradition__word { grid-row: 2; }
  .tradition__caption { grid-row: 3; margin-top: -15px; gap: 30px; }
}
/* 12 Nov · phones: Ride with us photo strip = 3 photos, one row, edge to edge of the screen (over the 16 page margins), equal size, no swipe */
@media (max-width: 767px) {
  .ride__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9.109px; overflow: visible; height: auto; padding: 0; margin-left: calc(-1 * var(--gutter)); width: calc(100% + var(--gutter)); }
  .ride__strip::before { display: none; }
  .ride__strip figure { width: auto !important; height: auto !important; aspect-ratio: 4 / 5; }
  .ride__strip figure:nth-child(n+4) { display: none; }
}
/* 12 Nov · phones: Real riders — heading on one line, READ ALL • on the left */
@media (max-width: 767px) {
  .riders__all { justify-content: flex-start; }
}
@media (min-width: 370px) and (max-width: 767px) {   /* one line needs ~337 of text width; smaller phones (360 / 320) keep 2 lines rather than cut it off */
  .riders h2 br { display: none; }
  .riders h2 { white-space: nowrap; }
}
/* 12 Nov, later · phones: Ride with us photos sit inside the 16 page margins (left and right), still 3 equal photos, no swipe */
@media (max-width: 767px) { .ride__strip { margin-left: 0; width: calc(100% - var(--gutter)); } }
/* 12 Nov · phones: Strava logo → JOIN OUR STRAVA CLUB = 26, same as text → Strava logo (was 16) */
@media (max-width: 767px) { .ride__strava { margin-bottom: 26px; } }
/* 12 Nov · Spotlight (Explore E+), desktop + phones: spec table → DISCOVER THIS BIKE = 30, same as description → table (the button was pinned to the panel bottom, 158–276 below). Panel keeps its height; the bike photo fills the space under the text. */
.spotlight__panel { justify-content: flex-start; gap: 30px; }
@media (max-width: 767px) { .spotlight__panel { gap: 30px; } }
/* 12 Nov · phones: spotlight spec table — each value stays on one line (22 SPEED, 105 DI2 were breaking) with its small label underneath (value + label side by side didn't fit in a half-width cell) */
@media (max-width: 767px) {
  .stat { flex-direction: column; align-items: flex-start; gap: 2px; }
  .stat b { white-space: nowrap; }
  .stat span { padding-bottom: 0; }
}

/* 16 Nov · Shoppable photo with several products (Bruno: "how does this look with multiple products?").
   One hotspot per product, sitting on the item in the photo; tapping one swaps the card. Impulse: Close (hotspot section + card CSS). */
.hotspots { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hotspot { position: absolute; width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 0; border-radius: 50%; padding: 0; cursor: pointer; pointer-events: auto;
  background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.25); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.hotspot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--asphalt); transition: background .3s, transform .3s var(--ease); }
.hotspot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--ease); }
.hotspot:hover { transform: scale(1.08); }
.hotspot:hover::after, .hotspot[aria-pressed="true"]::after { background: var(--velocity); }
.hotspot[aria-pressed="true"]::before { opacity: 1; transform: none; }
.hotspot:focus-visible { outline: 2px solid var(--velocity); outline-offset: 8px; }
.shoppable .pcard { z-index: 2; }
.shoppable .pcard[hidden] { display: none; }
.shoppable .pcard.is-swap { animation: hsIn .45s var(--ease); }
@keyframes hsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* phones/tablets: the photo is cropped to the first rider, so dots off the crop hide and the card gets the shared prev/next arrows (beside the product image) */
.hotspot.is-off { display: none; }
.hs-arrows { display: none; }
/* (any screen where a dot falls outside the cropped photo: phones, tablets) */
.shoppable .pcard { position: relative; }
.shoppable.has-off .hs-arrows { display: flex; position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); justify-content: space-between; pointer-events: none; }
.shoppable.has-off .hs-arrows button { pointer-events: auto; width: 32px; height: 32px; }

/* 16 Nov · phones only: Services panel, description + button 25px under the tabs and 25px above the panel's bottom (Bruno);
   the panel fits its content instead of a 460px block with the text floating in the middle. Desktop/tablet unchanged. */
@media (max-width: 767px) {
  .services__panel { min-height: 0; padding-bottom: 25px; }
  .services__body { position: static; transform: none; width: auto; margin-top: 25px; }
}
/* 16 Nov, later · phones: Services description + button gaps 25 → 50px (Bruno), same 50 rhythm as the sections */
@media (max-width: 767px) {
  .services__panel { padding-bottom: 50px; }
  .services__body { margin-top: 50px; }
}
/* 16 Nov, later again · phones: Services description + button gaps 50 → 75px (Bruno) */
@media (max-width: 767px) {
  .services__panel { padding-bottom: 75px; }
  .services__body { margin-top: 75px; }
}
/* 16 Nov · phones: shoppable photo shorter so the 3 dots AND the whole card fit on one screen under the sticky bar (Bruno).
   Card starts 160px from the top (was 70vw ≈ 262); the jersey dot moved up to the shoulder so it stays clear of the card.
   Section ≈ 611px at 375 (was 713): fits a 667-tall phone under the 53px bar. */
@media (max-width: 767px) { .shoppable { padding-top: 160px; } }
/* 16 Nov, later · phones: a bit more photo above the card (160 → 210) so the dots breathe (Bruno). Section ≈ 661 at 375: still one screen under the bar on 375×812 and bigger phones. */
@media (max-width: 767px) { .shoppable { padding-top: 210px; } }
/* 16 Nov, later · phones: shoppable = clean photo, no card. Tapping a dot opens a small product pop-up next to it
   (thumb + title + price + VIEW •), tapping the dot again / anywhere else closes it (Bruno: a dot in the middle of the
   product hides it, so the pop-up shows what the product is). Photo zoomed on the rider so the 3 dots spread out.
   Tablet/desktop keep the card. Impulse: Close (same hotspot blocks; pop-up = snippet + JS). */
.hs-pop { display: none; }
@media (max-width: 767px) {
  .shoppable { height: 125vw; min-height: 0; padding: 0; }
  .shoppable__bg img { top: 0; height: 176%; object-position: 38% 0; }
  .shoppable .pcard, .shoppable.has-off .hs-arrows { display: none; }
  .hotspot[aria-pressed="true"]::before { opacity: 0; transform: scale(.8); }
  .hotspot[aria-pressed="true"]::after { background: var(--asphalt); }
  .hotspot.is-open::before { opacity: 1; transform: none; }
  .hotspot.is-open::after { background: var(--velocity); }
  .hs-pop { display: block; position: absolute; z-index: 3; width: 236px; background: var(--white); box-shadow: 0 6px 24px rgba(0,0,0,.22);
    opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
  .hs-pop.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .hs-pop.is-above { transform: translateY(-6px); }
  .hs-pop.is-above.is-open { transform: none; }
  .hs-pop a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 12px; color: inherit; text-decoration: none; }
  .hs-pop img { width: 64px; height: 64px; object-fit: contain; }
  .hs-pop .pcard__title { display: block; }
  .hs-pop .pcard__price { display: block; margin-top: 2px; }
  .hs-pop .link-dot { margin-top: 10px; }
}

/* 17 Nov · Hero calls to action (Bruno/Trav: "show we've thought about it"), later 17 Nov restyled like Bruno's reference:
   two big stacked text links bottom left, all caps in the existing Title style (same as the product name): SHOP BIKES white,
   BOOK A SERVICE dimmed, full white on hover. Lined up with the logo's left edge (60px) and 60px from the bottom on desktop.
   Impulse: Close (hero button blocks; text-link look = CSS). */
.hero__ctas { position: absolute; z-index: 2; left: var(--gutter); bottom: 30px; display: flex; flex-direction: column; align-items: flex-start; color: var(--white); }
.hero__ctas a { transition: opacity .25s var(--ease); }
.hero__ctas a + a { opacity: .6; }
.hero__ctas a:hover, .hero__ctas:hover a:hover { opacity: 1; }
.hero__ctas:hover a:not(:hover) { opacity: .6; }
@media (min-width: 901px) { .hero__ctas { left: 60px; bottom: 60px; } }
@media (max-width: 767px) { .hero__ctas { bottom: var(--gutter); } }
