/* Cycling Markhor — style.css */

:root {
  --charcoal: #2B2E33;
  --stone: #A89F91;
  --snow: #FAFAF8;
  --turquoise: #2E9E9B;
  --blossom: #B8A6C9;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 68rem;
  --pad: 1.25rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--turquoise); text-decoration: none; }
a:hover { color: var(--blossom); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.25rem 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo { display: block; flex-shrink: 0; }
.logo img {
  width: clamp(120px, 14vw, 155px);
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: clamp(0.85rem, 1.6vw, 1.4rem);
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--turquoise); }

/* Rides dropdown — hover/focus opens on desktop; inside the mobile panel
   it renders as a nested, always-visible list */
.nav-item { position: relative; }
.nav-item > a::after {
  content: "";
  display: inline-block;
  margin-left: 0.35rem;
  vertical-align: 0.15em;
  border: 4px solid transparent;
  border-top-color: currentColor;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  min-width: 12.5rem;
  padding: 0.5rem 0;
  background: rgba(43, 46, 51, 0.97);
  border-radius: 0 0 4px 4px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
/* Hover-open is pointer-device only (a touch tap must not need to fight the
   link's navigation); transition-delay gives ~120ms open / ~250ms close
   intent so a mouse crossing the nav doesn't flash the menu */
@media (hover: hover) and (pointer: fine) {
  .nav-dropdown { transition-delay: 0.25s, 0.25s; }
  .nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.12s, 0.12s;
  }
}
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s, 0s;
}
.nav-dropdown a {
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
  white-space: nowrap;
}
.nav-dropdown a:hover { background: rgba(255, 255, 255, 0.06); }

/* Solid header variant (contact page etc.) */
.site-header--solid { position: static; background: var(--charcoal); }

/* Hamburger — shown under 52rem, sits above the fullscreen nav panel */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 30;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 52rem) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 20;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    background: rgba(43, 46, 51, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }

  .site-nav a {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: #fff;
  }
  .nav-open { overflow: hidden; }

  /* Nested rides list inside the panel — one scrollable column (the
     taller menu would otherwise wrap into a second column) */
  .site-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 4.5rem 0 2.5rem;
    overflow-y: auto;
  }
  .site-nav .nav-item {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .nav-item > a::after { display: none; }
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    min-width: 0;
    padding: 0.65rem 0 0;
    gap: 0.55rem;
    align-items: center;
  }
  .site-nav .nav-dropdown a {
    font-family: var(--sans);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 0;
  }
  .site-nav .nav-dropdown a:hover { background: none; color: #fff; }
}

/* ---------- Hero reel ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 30rem;
  overflow: hidden;
  background: var(--charcoal);
  display: flex;
  align-items: flex-end;
}

.hero-poster,
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero video {
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: opacity;
  transform: translateZ(0);
}
.hero video.is-visible { opacity: 1; }

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(20, 22, 26, 0.42) 0%,
      rgba(20, 22, 26, 0.10) 30%,
      rgba(20, 22, 26, 0.14) 55%,
      rgba(20, 22, 26, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(3rem, 10vh, 6rem);
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  max-width: 14ch;
  text-wrap: balance;
}

.hero .subline {
  margin-top: 1rem;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 1.75rem;
  background: var(--turquoise);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 3px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover {
  background: var(--blossom);
  color: #fff;
  transform: translateY(-1px);
}

.btn--big {
  font-size: 1.15rem;
  padding: 1.1rem 2.5rem;
}

/* ---------- Status strip ---------- */

.status-strip {
  background: var(--charcoal);
  color: var(--stone);
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 0.9rem var(--pad);
}
.status-strip strong {
  color: #fff;
  font-weight: 600;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  margin-bottom: 1.75rem;
}

.section h2 .accent { color: var(--turquoise); }

.section p + p { margin-top: 1.25rem; }

.kicker {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.9rem;
}

/* Story: text beside photo on wide screens */

.story-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.story-grid img {
  width: 100%;
  border-radius: 4px;
}

@media (min-width: 48rem) {
  .story-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

/* Seasons */

.section--seasons {
  background: #fff;
}

.section--seasons .lede {
  max-width: 42rem;
}

/* The place: even 3-column collage — one 4:5 vertical + one 16:9
   horizontal per column, so with equal gaps all columns end dead level */

.collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 2.75rem;
}
.collage-col {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.collage img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.collage img.tall { aspect-ratio: 4 / 5; }
.collage img.wide { aspect-ratio: 16 / 9; }
@media (min-width: 62rem) {
  .collage { grid-template-columns: repeat(3, 1fr); }
}

/* Moments: full-width Ken Burns slideshow */

.slideshow {
  position: relative;
  overflow: hidden;
  height: 60vh;
  background: var(--charcoal);
  margin-top: 2.75rem;
}
@media (min-width: 48rem) {
  .slideshow { height: 75vh; }
}

/* Each slide is two layers: a blurred, darkened cover copy filling the
   stage + the full photo contained on top, so nothing is ever cropped out. */
.slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: opacity;
}
.slideshow .slide.is-visible { opacity: 1; }

.slide-bg,
.slide-fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slide-bg {
  object-fit: cover;
  filter: blur(22px) brightness(0.5);
  transform: scale(1.12);   /* hide the blur's soft edges */
}
.slide-fg {
  object-fit: contain;
  will-change: transform;
}

@keyframes kb-a {
  from { transform: scale(1); }
  to   { transform: scale(1.045) translate(-0.6%, 0.4%); }
}
@keyframes kb-b {
  from { transform: scale(1.045) translate(0.6%, -0.4%); }
  to   { transform: scale(1); }
}
.slideshow .slide.kb-a .slide-fg { animation: kb-a 6s linear forwards; }
.slideshow .slide.kb-b .slide-fg { animation: kb-b 6s linear forwards; }

@media (prefers-reduced-motion: reduce) {
  .slideshow .slide-fg,
  .slideshow .slide { animation: none !important; transition: none; }
}

.slide-dots {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}
.slide-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.slide-dots button.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* Compact slideshow — constrained width, for small photo sets (Prado) */
.slideshow--compact {
  max-width: 46rem;
  margin: 2.5rem auto 0;
  height: 45vh;
  border-radius: 4px;
}
@media (min-width: 48rem) {
  .slideshow--compact { height: 55vh; }
}

/* Optional slideshow caption line (kids slideshow) — fixed height so the
   stage doesn't jump when a slide has no caption */
.slide-caption {
  margin: 0.75rem auto 0;
  max-width: 44rem;
  min-height: 1.3em;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--stone);
}

/* Moments */

.moments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.moments-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

@media (min-width: 48rem) {
  .moments-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 26rem) {
  .moments-grid { grid-template-columns: 1fr; }
  .moments-grid img { aspect-ratio: 4 / 3; }
}

/* Photo-only mosaic variant (Team): every tile at its native aspect —
   portraits are 4:5, the one landscape closes the grid full-width at 16:9.
   In the two-column band the first portrait leads full-width so the nine
   portraits still pack into even rows. */
.moments-grid.moments-grid--natural img { aspect-ratio: 4 / 5; }
.moments-grid.moments-grid--natural img.mosaic-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
@media (min-width: 26rem) and (max-width: 47.99rem) {
  .moments-grid--natural img:first-child { grid-column: 1 / -1; }
}

/* ---------- Contact page ---------- */

.contact-main {
  padding: clamp(4rem, 12vh, 8rem) 0;
  text-align: center;
}

.contact-main h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}

.contact-main .contact-body {
  max-width: 34rem;
  margin: 1.5rem auto 0;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.btn--ghost {
  margin-top: 0;
  background: transparent;
  border: 1px solid var(--turquoise);
  color: var(--turquoise);
  font-weight: 500;
}
.btn--ghost:hover {
  background: var(--turquoise);
  color: #fff;
  transform: none;
}

.contact-strip {
  max-width: 22rem;
  margin: 3.5rem auto 0;
}
.contact-strip img {
  width: 100%;
  border-radius: 4px;
}

.contact-main .location {
  margin-top: 2.5rem;
  color: var(--stone);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ---------- Interior page hero ---------- */

.page-hero {
  position: relative;
  height: 72svh;
  min-height: 26rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
}

.page-hero .page-hero-media,
.page-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Crop anchors — for cover-cropped photos whose subject is off-center.
   Every use is screenshot-verified (standing rule: no blind cover crops). */
.pos-bottom { object-position: center bottom !important; }
.pos-low { object-position: center 75% !important; }
.pos-high { object-position: center 22% !important; }

/* Precious Humans hero: full-bleed collage of three 4:5 verticals in
   equal thirds. Per-tile crops screenshot-verified (standing rule).
   Phone: first tile full-width on top, the other two side by side. */
.hero-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 44rem) {
  .hero-collage {
    grid-template-columns: 1fr 1fr;
    /* minmax(0,…) so the rows split the hero exactly — a plain 1fr track
       refuses to shrink below the image's intrinsic height and the second
       row would spill past the hero's clipped edge */
    grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr);
  }
  .hero-collage img:first-child { grid-column: 1 / -1; }
}

/* Bottom-anchored cover crop — for photos whose subject sits low in frame */
.page-hero-media--bottom { object-position: center bottom; }

/* Heroes whose subject sits in the lower third (sand drawings, the kids'
   escort) — position tuned and screenshot-verified at desktop + phone widths */
.page-hero-media--low { object-position: center 85%; }

/* Fleet hero: wide landscape whose subject spans the full width — cover
   crop (tuned) on desktop, contain-on-blur below tablet width so all
   three bikes stay visible on phones */
.page-hero-blur {
  filter: blur(22px) brightness(0.55);
  transform: scale(1.12);
}
.page-hero-media--fleet { object-position: center 75%; }
@media (max-width: 48rem) {
  .page-hero .page-hero-media--fleet { object-fit: contain; object-position: center 40%; }
}

.page-hero .hero-shade { position: absolute; inset: 0; }

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(2.5rem, 7vh, 4.5rem);
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  max-width: 16ch;
  text-wrap: balance;
}

.page-hero .subline {
  margin-top: 0.9rem;
  max-width: 44ch;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Card trios (fleet lead, founders, riders) ---------- */

.trio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 44rem) {
  .trio-grid { grid-template-columns: repeat(3, 1fr); }
  .trio-grid--two { grid-template-columns: repeat(2, 1fr); }
}

.info-card img { width: 100%; border-radius: 4px; }
.trio-grid--two .info-card > img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.info-card .video-card { margin: 0; }

/* Card slideshow: a mini in-card crossfade (Ejju's counterpart to Broko's
   tap-to-play). All slides are native 4:5 portraits — no crop. */
.card-slideshow {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
}
.card-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.card-slideshow img.is-visible { opacity: 1; }
.info-card h3 { margin-top: 1rem; font-size: 1.3rem; }
.info-card .role { color: var(--turquoise); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.info-card p { margin-top: 0.5rem; font-size: 0.975rem; line-height: 1.65; }

/* ---------- Landscape gallery grid ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 2.5rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}
@media (min-width: 48rem) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- The whole stable ---------- */

.stable-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem 2rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.stable-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(168, 159, 145, 0.25);
  font-size: 1rem;
}
@media (min-width: 44rem) {
  .stable-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Candids strip + tall video cards ---------- */

.candids-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 2rem;
}
.candids-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}
.candids-grid .video-card { aspect-ratio: 3 / 4; }
@media (min-width: 48rem) {
  .candids-grid { grid-template-columns: repeat(4, 1fr); }
}

.video-card.video-card--tall { aspect-ratio: 4 / 5; }

/* ---------- Two-up photo row ---------- */

.duo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 2.5rem;
}
@media (min-width: 44rem) {
  .duo-grid { grid-template-columns: repeat(2, 1fr); }
}
.duo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}
.duo-grid--anchor-bottom img { object-position: center bottom; }

/* ---------- Route cards (Where We Ride) ---------- */

.route-list {
  display: grid;
  gap: clamp(3rem, 7vw, 4.5rem);
  margin-top: 3rem;
}

.route h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); }

.route .blurb {
  max-width: 62ch;
  margin-top: 0.5rem;
}

.route-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.25rem;
}
@media (min-width: 44rem) {
  .route-media { grid-template-columns: repeat(var(--cols, 2), 1fr); }
  .route-media--one { --cols: 1; max-width: 44rem; }
  .route-media--three { --cols: 3; }
}

.route-media > video,
.route-media > img,
.route-media > .ambient {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: var(--charcoal);
}

.route-media .phone-card {
  width: 100%;
  max-width: 15rem;
  justify-self: center;
  aspect-ratio: 9 / 16;
}

/* Ambient used as a page-hero media layer: fill, don't ratio-lock */
.page-hero .ambient {
  aspect-ratio: auto;
  border-radius: 0;
}

/* ---------- Captions + centered media (Precious Humans) ---------- */

figure { margin: 0; }
figcaption.caption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--stone);
}

.gallery-grid .video-card,
.moments-grid .video-card { aspect-ratio: 3 / 2; }

.media-center {
  max-width: 26rem;
  margin: 3rem auto 0;
}
.media-center img { width: 100%; border-radius: 4px; }

.media-wide-center {
  max-width: 44rem;
  margin: 2.5rem auto 0;
}
.media-wide-center img { width: 100%; border-radius: 4px; }

/* And-friends collage: two phone-frames flanking a middle column of two
   stacked wide clips — 13:20:13 column ratio makes the 16:9 pair (plus gap)
   land level with the 9:16 phone frames. Wides cover-crop by a hair. */
.friends-collage {
  display: grid;
  grid-template-columns: 13fr 20fr 13fr;
  gap: 0.9rem;
  margin-top: 2.5rem;
}
.friends-collage .phone-card { width: 100%; }
.friends-wides {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.9rem;
}
.friends-wides video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  background: var(--charcoal);
}
@media (max-width: 44rem) {
  .friends-collage { grid-template-columns: 1fr 1fr; }
  .friends-wides { grid-column: 1 / -1; grid-template-rows: none; order: 1; }
  .friends-wides video { height: auto; aspect-ratio: 16 / 9; }
}

.section--stillness {
  padding: clamp(5rem, 12vw, 8.5rem) 0;
}
.section--stillness .lede { max-width: 40rem; }

/* ---------- Timeline (Our Dream) ---------- */

.timeline {
  margin-top: 2.25rem;
  max-width: 40rem;
}
.timeline-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(168, 159, 145, 0.25);
}
.timeline-row dt {
  font-weight: 600;
  color: var(--turquoise);
  letter-spacing: 0.03em;
}
.timeline-row dd { margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--charcoal);
  color: var(--snow);
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}
.cta-band h2 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.4rem); }
.cta-band .btn { margin-top: 1.75rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: var(--stone);
  padding: 3rem 0;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.site-footer a { color: var(--turquoise); }
.site-footer a:hover { color: var(--blossom); }

@media (min-width: 64rem) {
  .site-footer .wrap {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- Explore cards (home) ---------- */

.explore-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.explore-card {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--charcoal);
}

.explore-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.explore-card:hover img { transform: scale(1.04); }

.explore-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(20, 22, 26, 0) 35%,
    rgba(20, 22, 26, 0.72) 100%);
}

.explore-card-text {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  color: #fff;
}

.explore-card h3 {
  font-size: 1.35rem;
  color: #fff;
}

.explore-card p {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

/* Contact door-card: flat turquoise, no photo */
.explore-card--contact {
  background: var(--turquoise);
  display: flex;
  align-items: center;
  justify-content: center;
}
.explore-card--contact::after { display: none; }
.explore-card--contact .explore-card-text {
  position: static;
  text-align: center;
  padding: 2rem;
}
.explore-card--contact p { font-size: 1.05rem; }
.explore-card--contact:hover { background: #278b88; }

@media (min-width: 40rem) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-card { aspect-ratio: 4 / 3.2; }
}
@media (min-width: 62rem) {
  .explore-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Ambient palindrome loop ---------- */

.ambient {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  aspect-ratio: 16 / 9;
}

.ambient .ambient-poster,
.ambient video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ambient video {
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: opacity;
  transform: translateZ(0);
}
.ambient video.is-visible { opacity: 1; }

/* ---------- Video card (poster + tap/hover to play) ---------- */

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: var(--charcoal);
}

.video-card img,
.video-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card { aspect-ratio: 16 / 9; }
.video-card img { position: absolute; }

.video-card video {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.video-card.is-playing video { opacity: 1; }

.video-card .play-badge {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(20, 22, 26, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.video-card .play-badge::before {
  content: "";
  display: block;
  margin-left: 4px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.video-card.is-playing .play-badge { opacity: 0; }

.video-card figcaption {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(to bottom, rgba(20,22,26,0), rgba(20,22,26,0.6));
}

/* ---------- Valley pages (rides/): rows of wide clips ----------
   Flex-wrap, not Grid: partial final rows centre automatically on every
   page regardless of clip count (Grid left-aligns orphans with a hole). */

.clip-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
.clip-grid > * { flex: 0 1 100%; min-width: 0; }

@media (min-width: 44rem) {
  .clip-grid > * {
    flex: 0 1 calc((100% - (var(--cols, 3) - 1) * 0.9rem) / var(--cols, 3));
  }
}
.clip-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: var(--charcoal);
}
.clip-grid .ambient { border-radius: 4px; }
.clip-grid .phone-card { flex: 0 1 clamp(180px, 22vw, 250px); align-self: center; }

/* Portrait clips ride in their own centred row beneath the landscape grid —
   never mixed into it */
.clip-grid--portrait { justify-content: center; }
.clip-grid--portrait > * { flex: 0 1 clamp(180px, 22vw, 250px); }

/* Sparse sections: one clip large and centred, or a pair at half width —
   a multi-column grid holding one or two items reads as broken */
@media (min-width: 44rem) {
  .clip-grid--solo > * { flex: 0 1 70%; }
  .clip-grid--pair > * { flex: 0 1 calc((100% - 0.9rem) / 2); }
}

/* One portrait clip + several landscape clips: two-column split — portrait
   at natural 9:16 on the left (~1/3), landscape clips stacked right (~2/3).
   Collapses to one column (portrait first) below 44rem. */
.clip-split {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
.clip-split .clip-split-portrait video,
.clip-split > .phone-card video { width: 100%; height: 100%; object-fit: cover; }
.clip-split .clip-split-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}
.clip-split .clip-split-stack video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: var(--charcoal);
}
@media (min-width: 44rem) {
  .clip-split {
    flex-direction: row;
    align-items: flex-start;
  }
  .clip-split > .phone-card,
  .clip-split .clip-split-portrait { flex: 0 1 33.5%; }
  .clip-split .clip-split-stack { flex: 1 1 0; }
}
@media (max-width: 44rem) {
  /* flex-basis auto: in the column layout the inherited basis would become
     the card's HEIGHT and squash the 9:16 frame square */
  .clip-split > .phone-card {
    flex: 0 0 auto;
    align-self: center;
    width: clamp(180px, 58vw, 250px);
  }
}

/* ---------- Vertical reel strip (phone-frame cards) ---------- */

.phone-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.phone-card {
  flex: 0 0 clamp(200px, 58vw, 250px);
  scroll-snap-align: center;
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  border: 5px solid var(--charcoal);
  background: var(--charcoal);
  box-shadow: 0 10px 30px rgba(43, 46, 51, 0.18);
}

.phone-card video,
.phone-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
