﻿.home-page {
  background: var(--paper-50);
  color: var(--ink-900);
}

header[data-include] {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 0;
}

.site-header {
  --nav-fg: var(--ink-900);
  --nav-fg-muted: rgba(20, 24, 26, 0.55);
  --nav-divider: rgba(20, 24, 26, 0.15);
  --nav-accent: var(--teal-700);
  --nav-mark: var(--teal-500);

  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.85rem clamp(1rem, 3vw, 3.5rem);
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--nav-fg);
  box-shadow: none;
  backdrop-filter: none;
  transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, backdrop-filter 0.24s ease, color 0.24s ease;
}

/* Three-column grid — brand left, toggle centered, CTA/auth right — rather than the previous
   flex row (brand, divider, inline nav that filled the remaining space, CTA, auth). The nav
   itself no longer lives in this bar at all; it's the full-panel dropdown below. */
.site-header__right {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: var(--space-2);
}

.is-header-pinned .site-header {
  border-bottom-color: rgba(20, 24, 26, 0.12);
  background: rgba(245, 243, 236, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
  box-shadow: inset 0 -3px 0 rgba(19, 128, 154, 0.16), 0 18px 40px rgba(20, 24, 26, 0.06);
}

/* Pages with a dark photo hero (see .page-hero) start with an inverted header
   — white text over the dark hero — and revert to normal once pinned/scrolled
   past it, since the pinned background is the same light paper color site-wide. */

.has-dark-hero .site-header {
  --nav-fg: var(--paper-50);
  --nav-fg-muted: rgba(245, 243, 236, 0.6);
  --nav-divider: rgba(245, 243, 236, 0.22);
  --nav-accent: var(--teal-300);
  --nav-mark: var(--paper-50);
}

.has-dark-hero.is-header-pinned .site-header {
  --nav-fg: var(--ink-900);
  --nav-fg-muted: rgba(20, 24, 26, 0.55);
  --nav-divider: rgba(20, 24, 26, 0.15);
  --nav-accent: var(--teal-700);
  --nav-mark: var(--teal-500);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--nav-fg);
}

/* Two stacked copies of the brand lockup — navy ink for paper backgrounds, a paper/teal version
   for dark heroes — cross-faded by the same .has-dark-hero / .is-header-pinned states that drive
   the --nav-* colours, so the logo flips in step with the rest of the bar. */
.site-header__brand {
  position: relative;
  justify-self: start;
  line-height: 0;
}

.site-header__logo-img {
  display: block;
  width: auto;
  height: clamp(2.9rem, 4.2vw, 3.75rem);
  transition: opacity 0.24s ease;
}

.site-header__logo-img--light {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
}

.has-dark-hero .site-header__logo-img--ink {
  opacity: 0;
}

.has-dark-hero .site-header__logo-img--light {
  opacity: 1;
}

.has-dark-hero.is-header-pinned .site-header__logo-img--ink {
  opacity: 1;
}

.has-dark-hero.is-header-pinned .site-header__logo-img--light {
  opacity: 0;
}

.site-header__divider {
  width: 1px;
  height: 1.8rem;
  flex: none;
  background: var(--nav-divider);
  transition: background 0.24s ease;
}

/* Decorative — closes out the bottom of the open mobile nav dropdown (see the
   max-width:720px override below). Hidden entirely on desktop. */
.site-header__mark-center {
  display: none;
}

/* Outline-pill button, same hover-fills-solid language as .about-blueprint__pill elsewhere on
   the site — makes this read as a clickable primary action rather than plain inline text. */
.site-header__cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1.1em;
  border: 1px solid var(--nav-accent);
  border-radius: 999px;
  color: var(--nav-accent);
  font-size: clamp(0.66rem, 0.74vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-header__cta:hover {
  background: var(--nav-accent);
  border-color: var(--nav-accent);
  color: var(--paper-50);
}

.site-header__cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.site-header__cta:hover .site-header__cta-arrow {
  transform: translateX(0.2em);
}

/* Separates the CTA button from the login link so the two read as distinct, intentional
   actions rather than two unrelated bits of inline text sitting side by side. */
.site-header__right-divider {
  width: 1px;
  height: 1.4rem;
  flex: none;
  background: var(--nav-divider);
}

.site-header__auth {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-size: clamp(0.68rem, 0.76vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Identical outline-pill treatment to .site-header__cta — same border color, padding, and
   hover-fills-solid behavior — so the two read as one uniform pair of button-style actions
   rather than a primary button next to a differently-styled secondary link. */
.site-header__auth a,
.site-header__auth-logout {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55em 1.1em;
  border: 1px solid var(--nav-accent);
  border-radius: 999px;
  color: var(--nav-accent);
  background: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-header__auth a:hover,
.site-header__auth-logout:hover {
  background: var(--nav-accent);
  border-color: var(--nav-accent);
  color: var(--paper-50);
}

/* Small user-icon mask, shared by the logged-out "Log In" link and the logged-in name link
   (see auth-nav.js) so both states get the same treatment from one rule. */
.site-header__auth-link::before {
  content: "";
  width: 0.95em;
  height: 0.95em;
  flex: none;
  background: currentColor;
  mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGNpcmNsZSBjeD0iMTIiIGN5PSI4IiByPSIzLjUiLz48cGF0aCBkPSJNNSAyMGMxLjItNCA0LTYgNy02czUuOCAyIDcgNiIvPjwvc3ZnPg==") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGNpcmNsZSBjeD0iMTIiIGN5PSI4IiByPSIzLjUiLz48cGF0aCBkPSJNNSAyMGMxLjItNCA0LTYgNy02czUuOCAyIDcgNiIvPjwvc3ZnPg==") center / contain no-repeat;
}

.site-header__auth-name {
  color: var(--nav-fg);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
}

/* This used to be a standalone full-width mobile dropdown row, hence the width:100% pill.
   The nav rebuild put .site-header__right in the top bar's grid at every width now, sharing
   space with the brand and toggle — so on narrow screens it needs to stay compact (sized to
   its own content) rather than trying to fill 100% of a column it doesn't own alone. The
   bordered CTA button below is also mobile-only-reverted for the same reason: there just
   isn't width in this column for a full pill button once brand + toggle take their share. */
@media (max-width: 720px) {
  .site-header__cta {
    padding: 0;
    border: none;
  }

  .site-header__cta:hover {
    background: none;
    color: var(--nav-fg);
  }

  .site-header__right-divider {
    display: none;
  }

  .site-header__auth a,
  .site-header__auth-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55em 1em;
    border: none;
    border-radius: 999px;
    background: var(--teal-700);
    color: var(--paper-50);
    white-space: nowrap;
  }

  .site-header__auth a:hover,
  .site-header__auth-logout:hover {
    background: var(--teal-500);
    color: var(--paper-50);
  }

  .site-header__auth-name {
    color: var(--nav-fg);
  }
}

/* The toggle is visible at every width now — it's not a mobile-only hamburger any more, it's
   the single entry point into the whole nav (see .site-header__panel below), matching the
   reference menu this was built from. */
.site-header__nav-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--nav-fg);
  cursor: pointer;
}

.site-header__nav-toggle-burger {
  display: flex;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
}

.site-header__nav-toggle-bar {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--nav-fg);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.24s ease;
}

body.is-nav-open .site-header__nav-toggle-bar:nth-child(1) {
  transform: translateY(0.56rem) rotate(45deg);
}

body.is-nav-open .site-header__nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.is-nav-open .site-header__nav-toggle-bar:nth-child(3) {
  transform: translateY(-0.56rem) rotate(-45deg);
}

/* "Menu" and "Close" sit in the same spot, cross-fading — see initNavPanel() in motion.js,
   which drives this with a GSAP opacity tween rather than CSS alone (matches how the reference
   menu does it, and keeps it in the same timeline as everything else so it's frame-perfect with
   the panel opening). */
.site-header__nav-toggle-label {
  position: relative;
  display: inline-block;
  min-width: 3.4em;
  height: 1.2em;
  font-size: clamp(0.68rem, 0.76vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

.site-header__nav-toggle-label-text {
  position: absolute;
  left: 0;
  top: 0;
}

.site-header__nav-toggle-label-text--close {
  opacity: 0;
}

/* ===== Full-width drop-down panel =====
   Nested inside .site-header (position:relative) rather than a sibling, specifically so
   top:100% resolves against .site-header's own real height — the shared header[data-include]
   wrapper is deliberately height:0 (see the comment on that rule) so it doesn't reserve layout
   space, which means top:100% on a panel positioned against *that* would just mean "0", not
   "below the visible header bar". */
.site-header__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 2;
  height: 0;
  overflow: hidden;
  background: var(--paper-50);
  color: var(--ink-900);
  box-shadow: 0 24px 60px rgba(20, 24, 26, 0.12);
}

.site-header__panel-inner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(3rem, 7vw, 7rem);
  padding: clamp(1.5rem, 4svh, 2.5rem) clamp(1rem, 3vw, 3.5rem) clamp(2rem, 5svh, 3rem);
}

/* Not flex:1 deliberately — sized to its own content (the two link columns) so the image sits
   right beside the text instead of getting pushed out to the panel's far edge with a dead gap
   of empty space between them. */
.site-header__panel-main {
  display: flex;
  flex-direction: column;
  flex: none;
}

/* Two explicit columns (Home/Canine Services/Studio & Equipment/Events & Adventures, then
   Pricing & Booking/About/FAQ/Resources/Contact) rather than either one tall rigid list or an
   auto-wrapping paragraph — with 9 destinations, letting wrap fall wherever gave inconsistent,
   hard-to-scan groupings. Explicit columns keep the grouping intentional every time. */
.site-header__panel-links {
  display: flex;
  flex-direction: row;
  gap: 0 clamp(2.5rem, 5vw, 5rem);
}

.site-header__panel-links-col {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.site-header__panel-link {
  position: relative;
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.2vw, 4.2rem);
  line-height: 1.2;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--ink-900);
  /* No CSS transition on opacity/filter: initNavPanel()'s GSAP hover tweens own those, and a CSS
     transition on the same properties re-eases every GSAP frame, making the fade feel laggy. */
}

.site-header__panel-link.is-current {
  color: var(--teal-700);
}

/* The split-letter spans come from splitElement()/data-split="letters" (see motion.js) — the
   same helper already used for every other big-type reveal on the site, rather than writing a
   second character-splitter just for this menu. */
.site-header__panel-link .split-letter {
  display: inline-block;
  overflow: hidden;
}

.site-header__panel-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.4em;
  margin-top: clamp(1.5rem, 4svh, 2.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(20, 24, 26, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(20, 24, 26, 0.55);
}

.site-header__panel-footer a:hover {
  color: var(--teal-700);
}

/* Sized to read as a real visual anchor next to the text, not a small afterthought — height
   matches the two link columns' own height (align-self:stretch against .panel-inner, which is
   align-items:flex-start... this is flex:none so it takes its OWN height from aspect-ratio
   against a wide flex-grown width instead, filling the space beside the columns properly). */
.site-header__panel-image {
  position: relative;
  flex: 1;
  align-self: stretch;
  min-width: 18rem;
  max-width: 34rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  opacity: 0;
}

.site-header__panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fills the leftover gap to the right of the (max-width-capped) image on wide screens rather
   than leaving it dead space. Hidden below 1200px — see media query — since there isn't room
   for a third column once the two link columns and the image are already fighting for space. */
.site-header__panel-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 12rem;
  max-width: 18rem;
  align-self: stretch;
}

.site-header__panel-quote-text {
  margin: 0;
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
}

.site-header__panel-quote-attr {
  margin: 0.9em 0 0;
  color: var(--teal-700);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 1200px) {
  .site-header__panel-quote {
    display: none;
  }
}

/* Dims the rest of the page while the panel is open — a separate element from the panel itself
   (which has its own solid paper background) since this needs to extend further down, covering
   whatever page content sits below the panel. */
.site-header__panel-backdrop {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1;
  height: 0;
  background: rgba(20, 24, 26, 0.4);
  pointer-events: none;
  transition: opacity 0.2s ease;
  opacity: 0;
}

body.is-nav-open .site-header__panel-backdrop {
  pointer-events: auto;
  opacity: 1;
}

.tag-coming-soon {
  display: none;
}

.home-canvas {
  overflow: hidden;
  background: var(--paper-50);
}

.home-page h1,
.home-page h2,
.home-page h3 {
  overflow-wrap: normal;
  text-wrap: balance;
}

.equipment-row h2
.served-panel__copy h2 {
  padding-block: 0.04em 0.08em;
}


.home-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(1rem, 3vw, 3.5rem);
}

.snap-panel {
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 7svh, 6.5rem) 0;
  position: relative;
  isolation: isolate;
}

.section-label {
  margin: 0;
  color: var(--teal-700);
  font-size: clamp(0.72rem, 0.8vw, 0.9rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.48rem 0.95rem;
  background: var(--ink-900);
  color: var(--paper-50);
  font-size: clamp(0.68rem, 0.78vw, 0.82rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mini-link:hover {
  background: var(--teal-500);
}

.race-hero {
  min-height: calc(100svh - 62px);
  padding-top: clamp(1rem, 2svh, 2rem);
  background: var(--paper-50);
}

.race-hero__inner {
  position: relative;
  min-height: calc(100svh - 92px);
  display: grid;
  align-items: center;
}

.race-hero__meta {
  position: absolute;
  z-index: 4;
  right: clamp(1rem, 4vw, 5rem);
  bottom: clamp(1rem, 4svh, 3.2rem);
  max-width: 28ch;
  padding-right: 0.9rem;
  border-right: 4px solid var(--teal-500);
  color: var(--teal-700);
  display: grid;
  justify-items: end;
  gap: 0.18rem;
  font-size: clamp(0.68rem, 0.9vw, 0.98rem);
  line-height: 1.02;
  text-align: right;
  text-transform: uppercase;
}

.race-hero__caption {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(1rem, 4svh, 3.2rem);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  text-align: center;
}

.race-hero__caption-hint {
  color: #697585;
  font-size: clamp(0.6rem, 0.72vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.race-hero__image {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: clamp(360px, 68svh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--paper-50);
}

.race-hero__wordmark {
  display: block;
  width: 100%;
  padding-top: 0.06em;
  background-image: url("../../assets/images/blueprint-hero-keyfob.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(9.2rem, min(30vw, 50svh), 40rem);
  line-height: 0.84;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  filter: saturate(1.1) contrast(1.12) brightness(0.62);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-blueprint {
  background: var(--paper-50);
  border-top: 1px solid rgba(19, 128, 154, 0.18);
  border-bottom: 1px solid rgba(19, 128, 154, 0.18);
}

.about-blueprint__inner {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding-block: clamp(6rem, 13vw, 11rem);
  text-align: center;
}

.about-blueprint__lede {
  max-width: 1180px;
  margin: 0 auto;
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: clamp(2.4rem, 5.2vw, 5.4rem);
  font-weight: 300;
  line-height: 1.36;
  letter-spacing: 0;
  text-transform: none;
}

.about-blueprint__lede .inline-photo {
  display: inline-block;
  width: 1.04em;
  height: 1.04em;
  margin: 0 0.12em;
  vertical-align: middle;
  transform: translateY(-0.08em);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(19, 128, 154, 0.22);
}

.about-blueprint__lede .inline-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-blueprint__body {
  max-width: 760px;
  margin: 2.1em auto 0;
  color: #45505e;
  font-size: clamp(0.98rem, 1.05vw, 1.14rem);
  font-weight: 400;
  line-height: 1.85;
}

.about-blueprint__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.about-blueprint__pill {
  margin-top: 2.4em;
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--teal-700);
  color: var(--teal-700);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, color 0.2s ease;
}

.about-blueprint__pill:hover {
  background: var(--teal-700);
  color: var(--paper-50);
}

.booking-strip {
  min-height: auto;
  padding: clamp(2.5rem, 5svh, 4.75rem) 0;
  background: var(--paper-50);
}
.race-hero__lower {
  width: 100%;
  display: grid;
  gap: clamp(1.15rem, 2vw, 2rem);
  margin-top: 0;
  padding: clamp(1.15rem, 2vw, 2rem) 0;
  border-top: 1px solid rgba(19, 128, 154, 0.22);
  border-bottom: 1px solid rgba(19, 128, 154, 0.22);
}

.booking-banner {
  position: relative;
  min-height: clamp(4.25rem, 8.5svh, 6.4rem);
  display: grid;
  grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: clamp(0.75rem, 1.4svh, 1.05rem) clamp(1rem, 2vw, 2rem);
  background: var(--teal-700);
  color: var(--paper-50);
  border: 1px solid rgba(245, 243, 236, 0.16);
  transition: background 0.2s ease, color 0.2s ease;
}

.booking-banner__wipe {
  background: var(--paper-50);
}

.booking-banner__cta-wipe {
  background: var(--teal-700);
}

.booking-banner:hover {
  background: var(--teal-500);
}

.booking-banner span {
  color: rgba(245, 243, 236, 0.76);
  font-size: clamp(0.64rem, 0.78vw, 0.82rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.booking-banner strong {
  position: relative;
  display: block;
  color: var(--paper-50);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.2vw, 7.7rem);
  font-weight: 400;
  line-height: 0.76;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.studio-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: clamp(0.65rem, 1.15vw, 1.15rem) 0;
  background: var(--paper-50);
  border: 1px solid rgba(19, 128, 154, 0.18);
}

.studio-stats span {
  min-height: clamp(3.25rem, 6.2svh, 4.85rem);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.7rem clamp(0.75rem, 1.3vw, 1.25rem);
  color: #717a88;
  font-size: clamp(0.68rem, 0.82vw, 0.9rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.studio-stats span + span {
  border-left: 1px solid rgba(19, 128, 154, 0.18);
}

.studio-stats strong {
  color: var(--teal-500);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 4.1rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 0.78;
}

@media (max-width: 720px) {
  .studio-stats strong {
    font-size: clamp(2.1rem, 9vw, 2.6rem);
    letter-spacing: 0.02em;
  }
}
.story-deck {
  position: relative;
  overflow: hidden;
  background: var(--paper-50);
  border-top: 1px solid rgba(19, 128, 154, 0.2);
  border-bottom: 1px solid rgba(19, 128, 154, 0.2);
}

/* Decorative outlined triangles — same motif as the page-loader's
   background shapes (see .page-loader__shape in components.css). */

.story-deck__shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.story-deck__shape {
  position: absolute;
  fill: none;
  stroke-width: 2px;
  overflow: visible;
  opacity: 0.18;
}

.story-deck__shape--1 {
  top: 6%;
  left: -4%;
  width: clamp(90px, 12vw, 200px);
  height: clamp(90px, 12vw, 200px);
  stroke: var(--teal-300);
  transform: rotate(-14deg);
}

.story-deck__shape--2 {
  bottom: 8%;
  right: -3%;
  width: clamp(110px, 14vw, 240px);
  height: clamp(110px, 14vw, 240px);
  stroke: var(--teal-700);
  transform: rotate(19deg);
}

.story-deck__shape--3 {
  top: 45%;
  left: 48%;
  width: clamp(60px, 8vw, 130px);
  height: clamp(60px, 8vw, 130px);
  stroke: var(--teal-500);
  transform: rotate(-32deg);
}

.story-deck__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
}

.section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pager {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.pager[hidden] {
  display: none;
}

.pager__btn {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.pager__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pager__btn span {
  position: relative;
  display: block;
  width: 1.7rem;
  height: 1.05rem;
  background: var(--teal-700);
}

.pager__btn span::before {
  content: "";
  position: absolute;
  inset: 0.33rem 0.62rem;
  border-top: 1px solid var(--paper-50);
  border-right: 1px solid var(--paper-50);
  transform: rotate(45deg);
}

.pager__btn--prev span::before {
  transform: rotate(225deg);
}

.services-hub {
  padding-block: clamp(2rem, 5svh, 4rem);
}

.services-hub__tagline {
  margin: 0.5em 0 0;
  color: #45505e;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
}

.services-hub__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.4vw, 1.55rem);
  margin-top: clamp(1.5rem, 3svh, 2.5rem);
}

@media (max-width: 1100px) {
  .services-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-hub__grid {
    grid-template-columns: 1fr;
  }
}

.services-hub .story-card h2 {
  font-size: clamp(2.2rem, 3.4vw, 3.6rem);
}

/* Brand badge pinned to the photo's lower-right corner. The photo stays the card's first <img>
   so initStoryCards()'s wipe still targets it; the badge just fades in once the card reveals. */
.story-card__media {
  position: relative;
}

.story-card .story-card__badge {
  position: absolute;
  right: clamp(0.5rem, 0.8vw, 0.85rem);
  bottom: clamp(0.5rem, 0.8vw, 0.85rem);
  width: clamp(4.25rem, 6vw, 6rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(11, 31, 75, 0.28));
  transition: opacity 0.4s ease 0.55s;
}

/* Adventures on the homepage: still reads as "coming soon" (softened photo) but, unlike
   .story-card--coming-soon, stays clickable through to the Adventures page. */
.story-card--soon img:first-child {
  filter: grayscale(0.45) saturate(1.05) contrast(1.04);
}

.story-card--soon:hover img:first-child,
.story-card--soon:focus-within img:first-child {
  filter: saturate(1.05) contrast(1.04);
}

.story-card--coming-soon .story-card__badge {
  filter: grayscale(0.6) drop-shadow(0 6px 14px rgba(11, 31, 75, 0.28));
}

.services-hub .story-card__cta--soon {
  color: var(--ink-900);
  opacity: 0.6;
}

/* A visible "Explore →" prompt so the whole-card stretched-link (.story-card__link) reads as
   obviously clickable rather than looking like a plain info tile. It's aria-hidden — the
   .story-card__link's own visually-hidden text is what screen readers announce — this is a
   sighted-only affordance layered on top of that existing link, not a second link. */
.services-hub .story-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-700);
  transition: color 0.3s ease, gap 0.2s ease;
}

.services-hub .story-card__cta svg {
  width: 1em;
  height: 1em;
  flex: none;
}

.services-hub .story-card:hover .story-card__cta,
.services-hub .story-card:focus-within .story-card__cta {
  color: var(--paper-50);
  gap: 0.65em;
}

.story-deck__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.4vw, 1.55rem);
}

.story-card {
  position: relative;
  min-height: clamp(340px, 52svh, 540px);
  padding: clamp(1rem, 1.5vw, 1.6rem);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 1rem;
  background: rgba(245, 243, 236, 0.78);
  border: 1px solid rgba(19, 128, 154, 0.18);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.24);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Stretched-link pattern: the whole card is clickable via this one link, kept as a real
   descendant anchor (not a wrapping one) specifically so .story-card:focus-within still
   triggers correctly — that only matches focus on itself or a descendant, not an ancestor. */
.story-card__link {
  position: absolute;
  inset: 0;
}

.story-card__link:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
}

.story-card--coming-soon {
  opacity: 0.7;
}

.story-card--coming-soon .story-card__link {
  display: none;
}

.story-card--coming-soon img {
  filter: grayscale(0.6) saturate(1.05) contrast(1.04);
}

.story-card:hover,
.story-card:focus-within {
  background: var(--teal-700);
  color: var(--paper-50);
  border-color: rgba(99, 182, 200, 0.34);
}

.story-card > span,
.story-card img {
  opacity: 0;
}

.story-card.is-revealed > span,
.story-card.is-revealed img {
  opacity: 1;
}

.story-card > span {
  color: var(--teal-500);
  font-size: 0.78rem;
  font-weight: 800;
  transition: color 0.3s ease;
}

.story-card:hover > span,
.story-card:focus-within > span,
.story-card:hover p,
.story-card:focus-within p {
  color: var(--paper-50);
}

.story-card h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
}

.story-card img {
  width: 100%;
  height: clamp(140px, 23svh, 260px);
  object-fit: cover;
  align-self: center;
  filter: saturate(1.05) contrast(1.04);
}

.story-card p {
  margin: 0;
  color: #414b59;
  font-size: clamp(0.82rem, 0.92vw, 1rem);
  line-height: 1.35;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

/* "See All" panel — same bordered-panel treatment as the pricing page's
   booking-widget placeholder (see .pricing-widget__panel). */

.story-deck__cta {
  margin-top: clamp(0.85rem, 1.4vw, 1.55rem);
  border: 1px solid var(--teal-300);
  background: var(--paper-50);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-1);
  padding: var(--space-3);
}

.story-deck__cta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.story-deck__cta p {
  color: #45505e;
  max-width: 46ch;
  margin: 0;
}

@media (max-width: 720px) {
  .story-card h2 {
    font-size: clamp(2rem, 8vw, 2.6rem);
    letter-spacing: 0.02em;
  }

  .story-deck__cta h2 {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
    letter-spacing: 0.02em;
  }
}

.about-ribbon {
  background: #fbfbf8;
  overflow: hidden;
}

.about-ribbon__inner {
  min-height: 100svh;
  position: relative;
  display: block;
  padding-block: clamp(3rem, 6svh, 5rem);
}

.about-ribbon__backdrop {
  position: absolute;
  /* Standard "break out of a constrained container" technique — left:50% + translateX(-50%) on
     a 100vw-wide element always centers it on the true viewport regardless of how narrow/padded
     its positioned ancestor (.about-ribbon__inner, a .home-container) is. This replaces the old
     -34vw overflow trick, which relied on the text being wide enough to cover that whole extra
     overflow area — that's what caused the horizontal gaps. Each .about-ribbon__row below is now
     exactly this 100vw with overflow:hidden, so it only ever needs to clip, never rely on an
     oversized area being fully covered by guesswork.  */
  top: clamp(1.5rem, 4svh, 3rem);
  bottom: clamp(1.5rem, 4svh, 3rem);
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: clamp(0.3rem, 1svh, 1rem);
  color: rgba(20, 24, 26, 0.045);
  font-family: var(--font-display);
  font-size: clamp(4.6rem, min(10.2vw, 16svh), 13.25rem);
  line-height: 0.88;
  text-transform: uppercase;
  pointer-events: none;
}

.about-ribbon__row {
  overflow: hidden;
  width: 100%;
}

.about-ribbon__backdrop span {
  display: block;
  min-width: max-content;
  white-space: nowrap;
  line-height: 0.88;
  will-change: transform;
  /* Each span's text is exactly two identical copies back to back (see index.html). A continuous
     linear CSS animation looping 0% -> -50% (or -50% -> 0%) of the span's own width always lands
     copy two exactly where copy one started, so the wrap is invisible and the row can never show
     a gap, at any viewport width or scroll position — because it isn't driven by scroll position
     at all. A scroll-scrubbed one-shot tween (the previous approach) has to start every row at
     xPercent:0, which shifts "right"-direction rows away from their covering position as they
     play, uncovering the edge they started flush against — that's what caused the desktop gap. */
  animation-duration: 32s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.about-ribbon__backdrop span[data-direction='left'] {
  animation-name: about-ribbon-scroll-left;
}

.about-ribbon__backdrop span[data-direction='right'] {
  animation-name: about-ribbon-scroll-right;
}

@keyframes about-ribbon-scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes about-ribbon-scroll-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-ribbon__backdrop span {
    animation: none;
  }
}

/* Extra rows that only exist to give mobile's taller, sparser backdrop more density — desktop's
   5 original rows already fill its 100svh band well at their much larger font-size. */
.about-ribbon__track--mobile-only {
  display: none;
}

.about-ribbon__badge,
.about-ribbon__note,
.about-ribbon__statement {
  position: absolute;
  z-index: 2;
}

.about-ribbon__badge,
.about-ribbon__note {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 1.6vw, 1.6rem);
  color: #161d27;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.9vw, 2.2rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-ribbon__badge p,
.about-ribbon__note p {
  margin: 0;
  max-width: 20ch;
}

.about-ribbon__badge--top {
  top: 9%;
  left: 50%;
  transform: translateX(-40%);
}

.about-ribbon__note--left {
  top: 22%;
  left: clamp(2rem, 6vw, 6rem);
}

.about-ribbon__note--right {
  top: 22%;
  left: 66%;
}

.about-ribbon__note--bottom-left {
  bottom: 14%;
  left: clamp(3rem, 8vw, 8rem);
}

.about-ribbon__note--bottom-right {
  bottom: 14%;
  left: 63%;
}

/* Unified "4-way arrow" icon — badge/notes get a soft, muted treatment so
   they read as secondary; the central statement (below) gets a bolder,
   full-teal version as the section's one dominant mark. */

.ribbon-arrow {
  width: clamp(1.6rem, 2.4vw, 2.6rem);
  height: clamp(1.6rem, 2.4vw, 2.6rem);
  flex: 0 0 auto;
  color: rgba(99, 182, 200, 0.75);
}

.about-ribbon__statement {
  left: 50%;
  top: 51%;
  transform: translate(-40%, -50%);
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 1.6vw, 1.8rem);
  color: var(--teal-500);
}

.about-ribbon__statement .ribbon-arrow {
  width: clamp(2.6rem, 4.5vw, 5rem);
  height: clamp(2.6rem, 4.5vw, 5rem);
  margin-top: 0.2rem;
  color: var(--teal-500);
}

.about-ribbon__statement h2 {
  margin: 0;
  color: var(--teal-500);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  letter-spacing: 0.02em;
  line-height: 0.94;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  /* Same composition as desktop — badge top-center, two notes side by side, center statement,
     two more notes side by side, all overlaid on the moving ribbon text — just fitted into one
     viewport instead of a taller scroll, with text/icons shrunk enough that a left/right pair
     still fits a narrow screen without colliding. */
  .about-ribbon__inner {
    min-height: 100svh;
    padding-block: clamp(1.5rem, 4svh, 2.5rem);
  }

  .about-ribbon__backdrop {
    top: clamp(1rem, 3svh, 2rem);
    bottom: clamp(1rem, 3svh, 2rem);
    grid-template-rows: repeat(14, minmax(0, 1fr));
    font-size: clamp(1.7rem, 10vw, 2.8rem);
    gap: 0.1rem;
  }

  .about-ribbon__track--desktop-only {
    display: none;
  }

  .about-ribbon__track--mobile-only {
    display: block;
  }

  .about-ribbon__badge,
  .about-ribbon__note {
    gap: 0.6rem;
    max-width: 46%;
    font-size: clamp(1.3rem, 6vw, 1.7rem);
  }

  .about-ribbon__badge p,
  .about-ribbon__note p {
    max-width: none;
  }

  .ribbon-arrow {
    width: clamp(1.6rem, 6.5vw, 2.1rem);
    height: clamp(1.6rem, 6.5vw, 2.1rem);
  }

  .about-ribbon__badge--top {
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
  }

  .about-ribbon__note--left {
    top: 25%;
    left: 4%;
  }

  .about-ribbon__note--right {
    top: 25%;
    left: 54%;
  }

  .about-ribbon__statement {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  .about-ribbon__statement h2 {
    font-size: clamp(2.3rem, 11vw, 3.1rem);
  }

  .about-ribbon__statement .ribbon-arrow {
    width: clamp(2.5rem, 9.5vw, 3.3rem);
    height: clamp(2.5rem, 9.5vw, 3.3rem);
  }

  .about-ribbon__note--bottom-left {
    bottom: 8%;
    left: 4%;
  }

  .about-ribbon__note--bottom-right {
    bottom: 8%;
    left: 54%;
  }
}

.equipment-stack {
  background: var(--paper-50);
  padding-block: clamp(4.5rem, 8svh, 7rem);
}

.equipment-preview {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  width: clamp(220px, 22vw, 340px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 60px rgba(20, 24, 26, 0.22);
}

.equipment-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.equipment-stack__inner {
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.8rem);
}

.equipment-list {
  display: grid;
  gap: clamp(0.45rem, 0.9vw, 0.9rem);
  border-top: 1px solid rgba(19, 128, 154, 0.2);
  border-bottom: 1px solid rgba(19, 128, 154, 0.2);
  padding-block: clamp(0.4rem, 1vw, 0.8rem);
}

.equipment-row {
  min-height: clamp(5rem, 9svh, 7.2rem);
  display: grid;
  grid-template-columns: minmax(10rem, 0.62fr) minmax(14rem, 0.72fr) minmax(20rem, 1.25fr) minmax(12rem, 0.72fr);
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.6rem);
  padding: clamp(0.45rem, 1svh, 0.9rem) clamp(0.75rem, 1.5vw, 1.5rem);
  border-bottom: 1px solid rgba(19, 128, 154, 0.18);
  overflow: hidden;
}

.equipment-row h2 {
  justify-self: start;
  min-width: 0;
  color: var(--ink-900);
  font-size: clamp(2.2rem, 5.05vw, 6.45rem);
  letter-spacing: 0.025em;
  transform: scaleX(0.94);
  transform-origin: left center;
  line-height: 0.78;
  white-space: nowrap;
  overflow: visible;
  text-transform: uppercase;
}

.equipment-row p,
.equipment-row span {
  margin: 0;
  max-width: 24ch;
  color: #333f4f;
  font-size: clamp(0.64rem, 0.72vw, 0.82rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.equipment-row img {
  width: 100%;
  height: clamp(3.25rem, 6.8svh, 5.65rem);
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.equipment-row--image:nth-child(1) {
  grid-template-columns: minmax(14rem, 0.78fr) minmax(21rem, 1.22fr) minmax(12rem, 0.72fr);
}

.equipment-row--image:nth-child(4) {
  grid-template-columns: minmax(21rem, 1.2fr) minmax(15rem, 0.8fr) minmax(12rem, 0.72fr);
}

.equipment-row--teal {
  grid-template-columns: minmax(20rem, 1.2fr) minmax(14rem, 0.74fr) minmax(13rem, 0.72fr);
  padding: clamp(0.45rem, 1svh, 0.75rem) clamp(1rem, 2vw, 2rem);
  background: var(--teal-700);
  color: var(--paper-50);
}

.equipment-row--teal h2,
.equipment-row--teal p,
.equipment-row--dark h2,
.equipment-row--dark p {
  color: var(--paper-50);
}

.equipment-row--dark {
  grid-template-columns: minmax(20rem, 1.2fr) minmax(14rem, 0.74fr) minmax(13rem, 0.72fr);
  padding: clamp(0.45rem, 1svh, 0.75rem) clamp(1rem, 2vw, 2rem);
  background: var(--ink-900);
  color: var(--paper-50);
}

.equipment-row > :first-child {
  justify-self: start;
}

.equipment-row > :last-child {
  justify-self: end;
  text-align: left;
}

.equipment-row:last-child {
  border-bottom: 0;
}

.equipment-row--slatmills {
  grid-template-columns: minmax(20rem, 0.95fr) minmax(18rem, 0.9fr) minmax(18rem, 0.88fr);
}

.equipment-row--wall {
  grid-template-columns: minmax(13rem, 0.72fr) minmax(16rem, 0.78fr) minmax(24rem, 1.35fr);
}

.equipment-row--weight {
  grid-template-columns: minmax(20rem, 0.95fr) minmax(12rem, 0.62fr) minmax(24rem, 1.35fr);
}

.equipment-row--weight h2 {
  justify-self: end;
}

.equipment-row--weight h2,
.equipment-row--slatmills h2,
.equipment-row--private h2 {
  transform-origin: right center;
}

.equipment-row--balance {
  grid-template-columns: minmax(24rem, 1.35fr) minmax(20rem, 0.95fr) minmax(11rem, 0.58fr);
}

.equipment-row--private {
  grid-template-columns: minmax(18rem, 0.9fr) minmax(26rem, 1.35fr) minmax(14rem, 0.72fr);
}

.served-panel {
  background:
    linear-gradient(90deg, rgba(10, 18, 32, 0.82) 0%, rgba(10, 18, 32, 0.54) 48%, rgba(10, 18, 32, 0.14) 100%),
    url("../../assets/images/blueprint-studio-ai-clean.webp") center / cover;
  color: var(--paper-50);
}

.served-panel::before {
  content: none;
}

.served-panel__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(0.8rem, 2svh, 1.4rem);
  padding-block: clamp(1.25rem, 3svh, 2.25rem);
}

.served-panel .section-label {
  color: var(--teal-300);
}

.served-panel__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
}

.served-panel__copy h2 {
  max-width: 12ch;
  color: var(--paper-50);
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 8.2vw, 9.6rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.served-panel__copy p {
  max-width: 42ch;
  margin: clamp(0.8rem, 1.8svh, 1.3rem) 0 clamp(0.9rem, 2svh, 1.5rem);
  color: rgba(245, 243, 236, 0.82);
  font-size: clamp(0.92rem, 1.08vw, 1.18rem);
  font-weight: 600;
  line-height: 1.45;
  text-transform: none;
}

.served-panel__copy .mini-link {
  margin-top: clamp(0.3rem, 1svh, 0.6rem);
}

.served-panel__places-group {
  margin-top: clamp(0.5rem, 1.8svh, 1.1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.served-panel__places-label {
  margin: 0 0 1rem;
  color: rgba(245, 243, 236, 0.6);
  font-size: clamp(0.7rem, 0.78vw, 0.85rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.served-panel__places {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.served-panel__places li {
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1rem;
  border: 1px solid rgba(245, 243, 236, 0.28);
  background: rgba(245, 243, 236, 0.08);
  color: var(--paper-50);
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 0.9vw, 0.95rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(12px);
}
.media-gallery {
  /* Second stop derived from var(--teal-300) so it tracks the brand palette. */
  background: linear-gradient(90deg, #e7e5dd 0%, color-mix(in srgb, var(--teal-300) 25%, var(--paper-50)) 100%);
}

.media-gallery__inner {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.media-gallery__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.media-gallery__watermark {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.2em;
  color: var(--teal-700);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.media-gallery__watermark-count {
  font-size: clamp(1.6rem, 2.8vw, 2.75rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.media-gallery__watermark-total {
  color: rgba(10, 102, 128, 0.4);
  font-size: clamp(0.7rem, 0.85vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-gallery__stage {
  position: relative;
  padding-block: clamp(2rem, 3.5vw, 2.75rem);
  overflow-x: hidden;
  overflow-y: visible;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.media-gallery__stage:active {
  cursor: grabbing;
}

.media-gallery__track {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  will-change: transform;
}

.media-gallery__slide {
  position: relative;
  flex: 0 0 clamp(200px, 24vw, 380px);
  aspect-ratio: 1 / 1;
}

.media-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
  transition: filter 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
  user-select: none;
}

.media-gallery.is-scrubbing .media-gallery__slide img {
  filter: blur(2px) saturate(1.05) brightness(0.95);
  opacity: 0.92;
}

.media-gallery__focus-frame {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: clamp(200px, 24vw, 380px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.media-gallery__corner {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--ink-900);
}

.media-gallery__corner--tl {
  top: -1rem;
  left: -1rem;
  border-right: 0;
  border-bottom: 0;
}

.media-gallery__corner--tr {
  top: -1rem;
  right: -1rem;
  border-left: 0;
  border-bottom: 0;
}

.media-gallery__corner--bl {
  bottom: -1rem;
  left: -1rem;
  border-right: 0;
  border-top: 0;
}

.media-gallery__corner--br {
  bottom: -1rem;
  right: -1rem;
  border-left: 0;
  border-top: 0;
}

.media-gallery__controls {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.media-gallery__title {
  flex: 0 0 auto;
  max-width: 40ch;
  margin: 0;
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.5rem);
  font-weight: 700;
  text-align: left;
  transition: opacity 0.25s ease;
}

.media-gallery.is-scrubbing .media-gallery__title {
  opacity: 0.4;
}

.media-gallery__progress-track {
  flex: 1 1 auto;
  height: 3px;
  background: rgba(10, 102, 128, 0.16);
  border-radius: 999px;
  overflow: hidden;
}

.media-gallery__progress-fill {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--teal-700);
  border-radius: 999px;
}

.media-gallery__nav {
  flex: 0 0 auto;
  display: flex;
  gap: 0.75rem;
}

.media-gallery__arrow {
  position: relative;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--teal-700);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(20, 24, 26, 0.14);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.media-gallery__arrow:hover {
  background: var(--teal-500);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 24, 26, 0.18);
}

.media-gallery__arrow:active {
  transform: translateY(0) scale(0.94);
}

.media-gallery__arrow::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  margin-left: -0.15rem;
  border-top: 2px solid var(--paper-50);
  border-right: 2px solid var(--paper-50);
  transform: rotate(45deg);
}

.media-gallery__arrow--prev::before {
  margin-left: 0.15rem;
  transform: rotate(225deg);
}

.media-gallery__arrow {
  position: relative;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--teal-700);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(20, 24, 26, 0.14);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.media-gallery__arrow:hover {
  background: var(--teal-500);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 24, 26, 0.18);
}

.media-gallery__arrow:active {
  transform: translateY(0) scale(0.94);
}

.media-gallery__arrow::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  margin-left: -0.15rem;
  border-top: 2px solid var(--paper-50);
  border-right: 2px solid var(--paper-50);
  transform: rotate(45deg);
}

.media-gallery__arrow--prev::before {
  margin-left: 0.15rem;
  transform: rotate(225deg);
}

@media (prefers-reduced-motion: reduce) {
  .media-gallery__track,
  .media-gallery__slide img,
  .media-gallery__focus-frame,
  .media-gallery__title {
    transition: none !important;
  }
}

.site-footer {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 70svh;
  max-height: 70svh;
  box-sizing: border-box;
  margin: 0;
  padding: clamp(2.4rem, 5svh, 4.75rem) clamp(1.25rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(20rem, 0.82fr);
  grid-template-rows: auto auto 1fr auto;
  gap: clamp(1.3rem, 3svh, 2.5rem) clamp(2rem, 6vw, 6.5rem);
  align-items: start;
  background: var(--teal-700);
  color: var(--paper-50);
  overflow: hidden;
}

.site-footer__mark {
  grid-column: 1;
  display: block;
  align-self: start;
  line-height: 0;
}

.site-footer__mark img {
  width: clamp(13rem, 22vw, 20rem);
  height: auto;
}

.site-footer__wordmark {
  grid-column: 2;
  justify-self: end;
  color: var(--paper-50);
  font-family: var(--font-body);
  font-size: clamp(5rem, 13vw, 13rem);
  font-weight: 450;
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.site-footer__divider {
  grid-column: 1 / -1;
  width: 100%;
  height: 1px;
  margin-top: clamp(1rem, 7svh, 6rem);
  background: rgba(245, 243, 236, 0.18);
}

.site-footer__nav {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(8rem, 1fr));
  gap: clamp(1.25rem, 4vw, 4.25rem);
}

.site-footer__group {
  display: grid;
  align-content: start;
  gap: 0.48rem;
}

.site-footer__group h3 {
  margin: 0 0 0.75rem;
  color: var(--paper-50);
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1vw, 1.05rem);
  font-weight: 650;
  line-height: 1;
  text-transform: none;
}

.site-footer__group a {
  color: rgba(245, 243, 236, 0.58);
  font-size: clamp(0.86rem, 1vw, 1.05rem);
  font-weight: 500;
  line-height: 1.25;
  text-transform: none;
  transition: color 0.2s ease;
}

.site-footer__group a:hover {
  color: var(--teal-300);
}

.site-footer__signup {
  grid-column: 2;
  margin: 0;
  display: grid;
  align-content: start;
  gap: clamp(1.2rem, 2.4svh, 2rem);
  color: var(--paper-50);
}

.site-footer__signup p {
  max-width: 34ch;
  margin: 0;
  color: rgba(245, 243, 236, 0.9);
  font-size: clamp(1rem, 1.28vw, 1.35rem);
  font-weight: 500;
  line-height: 1.3;
}

.site-footer__email {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding-bottom: clamp(0.75rem, 1svh, 1rem);
  border-bottom: 1px solid rgba(245, 243, 236, 0.62);
}

.site-footer__email span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-footer__email input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper-50);
  font: inherit;
  font-size: clamp(1.45rem, 2.4vw, 2.5rem);
  font-weight: 500;
}

.site-footer__email input::placeholder {
  color: rgba(245, 243, 236, 0.36);
}

.site-footer__email button {
  border: 0;
  background: transparent;
  color: var(--paper-50);
  font-size: clamp(1.6rem, 2.8vw, 3rem);
  line-height: 1;
  cursor: pointer;
}

.site-footer__signup small {
  max-width: 45ch;
  color: rgba(245, 243, 236, 0.42);
  font-size: clamp(0.72rem, 0.82vw, 0.82rem);
  font-weight: 600;
  line-height: 1.35;
}

.site-footer__credit,
.site-footer__top {
  align-self: end;
  margin: 0;
  color: rgba(245, 243, 236, 0.86);
  font-size: clamp(0.78rem, 0.9vw, 0.92rem);
  font-weight: 650;
  line-height: 1;
  text-transform: none;
}

.site-footer__credit {
  grid-column: 1;
}

.site-footer__social {
  grid-column: 1 / -1;
  grid-row: 4;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-footer__social a {
  color: var(--paper-50);
  font-size: 0.85rem;
  font-weight: 800;
}

.site-footer__top {
  grid-column: 2;
  justify-self: end;
}

@media (max-width: 1120px) {
  .snap-panel,
  .site-footer {
    min-height: auto;
  }

  .story-deck__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-card {
    min-height: 320px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .equipment-row,
  .equipment-row--teal,
  .equipment-row--dark {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    min-height: auto;
    padding: 1.25rem;
  }

  .equipment-row--teal,
  .equipment-row--dark {
    padding: 1.25rem;
  }

  .site-footer {
    min-height: auto;
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding-block: clamp(2.6rem, 6svh, 4rem);
  }

  .site-footer__wordmark {
    grid-column: 1;
    justify-self: start;
    font-size: clamp(4.2rem, 18vw, 8.5rem);
  }

  .site-footer__divider {
    margin-top: clamp(1rem, 3svh, 2rem);
  }

  .site-footer__nav,
  .site-footer__signup,
  .site-footer__credit,
  .site-footer__top,
  .site-footer__social {
    grid-column: 1;
  }

  .site-footer__signup {
    max-width: 38rem;
  }

  .site-footer__social {
    grid-row: auto;
    justify-self: start;
  }

  .site-footer__top {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  /* Brand and toggle sized to their own content instead of an even 1fr/1fr split with the
     right side — at narrow widths the equal split was squeezing the CTA+auth column down
     to almost nothing, which is what forced the auth pill to wrap onto two lines. */
  .site-header {
    position: relative;
    align-items: center;
    grid-template-columns: auto auto 1fr;
    gap: 0.6rem;
  }

  .site-header__right {
    gap: 0.6rem;
  }

  .site-header__logo-img {
    height: 2.4rem;
  }

  /* Panel becomes a single scrollable column — no room for the multi-column wrap or the side
     preview image, and there's no hover on touch to ever reveal that image anyway. */
  .site-header__panel-inner {
    padding-right: clamp(1rem, 3vw, 3.5rem);
  }

  /* The two desktop columns stack into one on mobile — .panel-links-col is already a column
     itself, so making the outer .panel-links row wrap this narrow just stacks the two column
     divs one above the other. */
  .site-header__panel-links {
    flex-direction: column;
    gap: 1.4rem;
  }

  .site-header__panel-link {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .site-header__panel-image,
  .site-header__panel-quote {
    display: none;
  }

  .site-header__panel {
    max-height: 85svh;
    overflow-y: auto;
  }

  .snap-panel {
    padding: 3.25rem 0;
  }

  .race-hero__inner {
    min-height: calc(100svh - 74px);
  }

  .race-hero__meta {
    right: clamp(1rem, 5vw, 1.4rem);
    bottom: clamp(1rem, 3svh, 1.6rem);
    max-width: 22ch;
    font-size: 0.66rem;
  }

  .race-hero__caption {
    bottom: clamp(1rem, 3svh, 1.6rem);
  }

  .race-hero__image {
    min-height: 58svh;
  }

  .race-hero__wordmark {
    font-size: clamp(4.9rem, min(26vw, 30svh), 9.5rem);
    text-align: center;
  }

  .booking-banner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.55rem;
    min-height: auto;
    padding: 1rem;
  }

  .booking-banner strong {
    font-size: clamp(2.65rem, 15vw, 4.75rem);
    text-align: left;
    white-space: normal;
  }

  .studio-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0;
  }

  .studio-stats span {
    justify-content: flex-start;
    min-height: 4.15rem;
    padding: 0.8rem 1rem;
  }

  .studio-stats span + span {
    border-left: 0;
  }

  .studio-stats span:nth-child(even) {
    border-left: 1px solid rgba(19, 128, 154, 0.18);
  }

  .studio-stats span:nth-child(n + 3) {
    border-top: 1px solid rgba(19, 128, 154, 0.18);
  }
  .served-panel__copy h2 {
    font-size: clamp(3.4rem, 16vw, 5.2rem);
  }


.story-deck__grid {
    grid-template-columns: 1fr;
  }


  .served-panel {
    background-position: 58% center;
  }

  .served-panel__copy p {
    max-width: 34ch;
  }

  .served-panel__places {
    gap: 0.45rem;
  }

  .served-panel__places li {
    min-height: 2.35rem;
    padding: 0.52rem 0.75rem;
    font-size: 0.72rem;
  }
  .equipment-row h2 {
    font-size: clamp(2.35rem, 10.5vw, 3.9rem);
  }

  .media-gallery__slide {
    flex-basis: 78vw;
  }
}






































.equipment-row--slatmills h2,
.equipment-row--private h2 {
  justify-self: end;
}











































/* Equipment list (15 Oct 2026): taller, equal-height rows so the photos and kit can be seen.
   Faces stay in frame via the object-position rules in base.css. */
.equipment-row {
  min-height: 19.5rem;
  padding-block: clamp(0.9rem, 1.6vw, 1.4rem);
}
.equipment-row img {
  height: clamp(12rem, 22vw, 19rem);
}
