/* =========================================================================
   OAK GYM — Dundalk, Co. Louth
   Design system: monumental expanded display + mono "spec-label" system.
   Palette: strict black / white / grey, warmed a hair toward oak.
   ========================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* ---------- Tokens ---------- */
:root {
  --ink:      #0B0B0C;
  --ink-2:    #141416;
  --ink-3:    #1C1C1F;
  --line:     #2B2B30;
  --line-2:   #3A3A40;
  --ash:      #8C8A85;   /* warm muted grey */
  --smoke:    #B8B6B0;
  --bone:     #F3F1EC;   /* warm off-white */
  --bone-2:   #E7E4DC;
  --white:    #FFFFFF;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1280px;
  --gut:  clamp(20px, 5vw, 64px);

  /* Fine film grain used across dark frames */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--bone);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Spec label — the recurring signature device */
.spec {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.spec::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-2);
}
.spec.solo::before { display: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(72px, 11vw, 150px); }
.section--tight { padding-block: clamp(52px, 7vw, 96px); }
.section--light { background: var(--bone); color: var(--ink); }
.section--panel { background: var(--ink-2); }

.eyebrow-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head { max-width: 62ch; }
.section-head h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); margin: 18px 0 0; }
.section-head p { margin-top: 20px; color: var(--ash); font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 54ch; }
.section--light .section-head p { color: #55534d; }
.section--light .spec { color: #6b6862; }
.section--light .spec::before { background: #cbc7bd; }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--smoke); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.05em 1.6em;
  border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  will-change: transform;
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn__icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--solid { background: var(--white); color: var(--ink); }
.btn--solid:hover { background: var(--bone); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-2); color: var(--bone); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.04); }
.section--light .btn--solid { background: var(--ink); color: var(--bone); }
.section--light .btn--solid:hover { background: #000; }
.section--light .btn--ghost { border-color: #bfbbb1; color: var(--ink); }
.section--light .btn--ghost:hover { border-color: var(--ink); background: rgba(0,0,0,.03); }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,11,12,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 38px; height: 38px; flex: none;
  display: block; overflow: hidden; border-radius: 50%;
  background: #0e0e0f;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow .3s var(--ease);
}
.brand__mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* crop in on the emblem, dropping the wordmark baked into the artwork */
  transform: translate(-1%, 10%) scale(1.3);
  filter: contrast(1.1) brightness(1.05);
}
.brand:hover .brand__mark { box-shadow: inset 0 0 0 1px var(--smoke); }
.brand__name { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; letter-spacing: 0.02em; font-size: 1.15rem; text-transform: uppercase; }
.brand__name span { color: var(--ash); }

.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--smoke); transition: color .25s var(--ease); position: relative; padding-block: 4px;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--white);
}
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav__toggle span { width: 20px; height: 2px; background: var(--bone); transition: transform .3s var(--ease), opacity .3s var(--ease); }

@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 28px;
    transform: translateY(-120%); transition: transform .4s var(--ease);
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
  .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .nav__cta .btn--solid { display: none; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: calc(100dvh - 68px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(48px, 9vw, 120px);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.hero__bg::before {
  /* slow moving spotlight */
  content: ""; position: absolute; inset: -20%; z-index: 2;
  background: radial-gradient(60% 55% at 70% 30%, rgba(255,255,255,.07), transparent 60%);
  animation: drift 22s ease-in-out infinite alternate;
}
/* Gym floor photograph */
.hero__photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 62%;
  filter: grayscale(.35) contrast(1.1) brightness(1.12);
  transform: scale(1.04);
}
/* Darkening wash so the type stays readable over the photo */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.74) 34%, rgba(11,11,12,.30) 70%, rgba(11,11,12,.45) 100%),
    linear-gradient(to top, var(--ink) 0%, rgba(11,11,12,.45) 24%, rgba(11,11,12,0) 60%),
    radial-gradient(130% 105% at 50% 50%, transparent 45%, rgba(11,11,12,.55) 100%);
}
.hero__grain { position: absolute; inset: 0; z-index: 3; opacity: .32; mix-blend-mode: overlay; }
@media (max-width: 720px) {
  .hero__photo { object-position: 62% 60%; }
  .hero__scrim { background:
    linear-gradient(to bottom, rgba(11,11,12,.80) 0%, rgba(11,11,12,.72) 45%, var(--ink) 100%),
    radial-gradient(120% 90% at 50% 40%, transparent 30%, rgba(11,11,12,.6) 100%); }
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }

@keyframes drift {
  from { transform: translate(-4%, -3%) scale(1); }
  to   { transform: translate(6%, 4%) scale(1.15); }
}

.hero__eyebrow { margin-bottom: clamp(22px, 4vw, 40px); }
.hero__title {
  font-size: clamp(2.5rem, 11vw, 9.5rem);
  margin: 0;
}
@media (max-width: 560px) {
  .hero__title { font-stretch: 100%; letter-spacing: -0.02em; }
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__title .thin { -webkit-text-stroke: 1.5px var(--smoke); color: transparent; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px);
  align-items: flex-end; justify-content: space-between;
  margin-top: clamp(34px, 5vw, 64px);
}
.hero__sub { max-width: 40ch; color: var(--smoke); font-size: clamp(1rem, 1.4vw, 1.18rem); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .hero__meta { flex-direction: column; align-items: stretch; gap: 26px; }
  .hero__sub { max-width: 100%; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero__eyebrow { font-size: 0.56rem; letter-spacing: 0.14em; flex-wrap: wrap; }
}

/* Reveal-on-load for hero lines */
.reveal-line { transform: translateY(105%); transition: transform .9s var(--ease); }
.loaded .reveal-line { transform: translateY(0); }
.loaded .hero__title .line:nth-child(2) .reveal-line { transition-delay: .08s; }
.loaded .hero__eyebrow, .loaded .hero__meta { animation: fadeUp .9s var(--ease) both; animation-delay: .35s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px);} to {opacity:1; transform: none;} }

/* =========================================================================
   Marquee ticker
   ========================================================================= */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
  padding-block: 18px;
}
.ticker__track {
  display: flex; gap: 0; white-space: nowrap;
  animation: marquee 34s linear infinite;
  will-change: transform;
}
.ticker__track span {
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
  text-transform: uppercase; font-size: clamp(1.3rem, 3vw, 2.2rem);
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  padding-inline: clamp(20px, 3vw, 44px);
}
.ticker__track span.fill { color: var(--bone); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================================
   Frames / placeholder imagery
   ========================================================================= */
.frame {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 100% at 30% 0%, #26262a 0%, #17171a 45%, #0e0e10 100%);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  isolation: isolate;
}
.frame::after { /* grain */
  content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: overlay;
  background-image: var(--grain); background-size: 220px;
}
.frame__ghost {
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(5rem, 20vw, 12rem); color: rgba(255,255,255,.04);
  text-transform: uppercase; line-height: 1; user-select: none;
}
.frame__tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  color: var(--smoke);
}
.frame__corner {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  color: var(--ash); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em;
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* Embedded map — framed like .frame, but kept interactive */
.map {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); background: var(--ink-2);
  aspect-ratio: 4 / 3;
}
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  /* darken Google's white map to sit with the rest of the palette */
  filter: invert(.9) hue-rotate(180deg) grayscale(.35) contrast(.9) brightness(.95);
}

/* =========================================================================
   Transformations
   ========================================================================= */
.trans-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.4vw, 30px); }

.trans-card {
  grid-column: span 4;
  border: 1px solid var(--line);
  background: var(--ink-2);
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.trans-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.trans-card__media { position: relative; flex: 1; }
/* Image-only cards: the card border does the framing, the photo fills the rest */
.trans-card .frame { border: 0; aspect-ratio: 1 / 1; height: 100%; }
.trans-card__weeks {
  position: absolute; top: 14px; left: 14px; z-index: 4;
  background: var(--white); color: var(--ink);
  font-family: var(--font-mono); font-weight: 700; font-size: .68rem; letter-spacing: .12em;
  padding: 7px 11px; text-transform: uppercase;
}

@media (max-width: 860px) { .trans-card { grid-column: span 6; } }
@media (max-width: 560px) { .trans-card { grid-column: span 12; } }

/* Full-width link through to the transformations page */
.trans-cta {
  margin-top: clamp(32px, 4vw, 56px);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(24px, 4vw, 56px); flex-wrap: wrap;
  padding: clamp(30px, 4vw, 54px) clamp(24px, 3.4vw, 52px);
  border: 1px solid var(--line-2); background: var(--ink);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease);
}
.trans-cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(70% 130% at 100% 50%, rgba(255,255,255,.07), transparent 62%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.trans-cta:hover { border-color: var(--white); transform: translateY(-4px); }
.trans-cta:hover::before { opacity: 1; }
.trans-cta > * { position: relative; z-index: 1; }
.trans-cta__text { display: block; }
.trans-cta__title {
  display: block; margin-top: 16px;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  max-width: 16ch;
}
.trans-cta__sub { display: block; margin-top: 16px; color: var(--ash); font-size: clamp(.95rem, 1.2vw, 1.05rem); max-width: 44ch; }
.trans-cta__go {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--ink);
  font-family: var(--font-mono); font-weight: 700; font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 18px 28px;
  transition: background-color .3s var(--ease);
}
.trans-cta:hover .trans-cta__go { background: var(--bone); }
.trans-cta:hover .arrow { transform: translateX(5px); }
.trans-cta .arrow { transition: transform .3s var(--ease); }
@media (max-width: 620px) {
  .trans-cta { flex-direction: column; align-items: stretch; }
  .trans-cta__go { justify-content: center; }
  /* Uppercase "TRANSFORMATIONS" is one unbreakable word; in the 125%-wide
     face it outgrew the card at the old 1.9rem floor, and align-items:stretch
     then widened every sibling to match, so the card clipped. Drop to the
     100%-width cut of Archivo (wdth 100 / wght 700 is a loaded instance) —
     that buys ~25% more room and keeps the headline at a display size. */
  .trans-cta__title {
    font-size: clamp(1.25rem, 7vw, 2.4rem);
    font-stretch: 100%;
    font-weight: 700;
    max-width: none;
  }
}

/* Section intro and the before/after slider, side by side on desktop */
@media (min-width: 1000px) {
  .trans-lead {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: clamp(36px, 5vw, 76px);
    align-items: center;
  }
  .trans-lead .eyebrow-row { margin-bottom: 0; }
  /* Half the width, so the headline needs a lower ceiling to stay on two lines */
  .trans-lead .section-head h2 { font-size: clamp(2.2rem, 3.3vw, 3.4rem); }
  /* Let the slider fill its column instead of centring in the old 600px cap */
  .trans-lead .ba:has(img),
  .trans-lead .ba:has(img) + .ba__caption { max-width: none; margin-inline: 0; }
}

/* Before / after slider — signature interactive moment */
.ba {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border: 1px solid var(--line); overflow: hidden; user-select: none; touch-action: none;
  background: var(--ink-2);
}
.ba__pane { position: absolute; inset: 0; display: grid; place-items: center; }
.ba__pane .frame__ghost { font-size: clamp(4rem, 14vw, 9rem); }

/* Sliders holding real photos crop the tall portrait shots to a square band
   running from the shoulder line down past the waistband — the part that
   actually shows the change — instead of standing at full height. Both panes
   crop identically so the wipe stays aligned.
   Sliders with only ghost placeholders keep the 16/10 box. */
.ba:has(img) { aspect-ratio: 1 / 1; max-width: 600px; margin-inline: auto; }
.ba:has(img) .frame__ghost { display: none; }
.ba:has(img) + .ba__caption { max-width: 600px; margin-inline: auto; }
.ba__after img, .ba__before img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 78%;
}
.ba__after  { background: radial-gradient(120% 120% at 70% 10%, #303036, #17171a 60%, #0d0d0f); }
.ba__before {
  background: radial-gradient(120% 120% at 30% 10%, #202024, #131315 60%, #0b0b0c);
  clip-path: inset(0 50% 0 0);
}
.ba__label {
  position: absolute; top: 14px; z-index: 5;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone); background: rgba(0,0,0,.45); padding: 6px 10px; border: 1px solid var(--line);
}
.ba__label.before { left: 14px; }
.ba__label.after  { right: 14px; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--white); z-index: 6; transform: translateX(-1px);
}
.ba__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--white); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.ba__grip svg { width: 22px; height: 22px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 7; }
.ba__caption { display:flex; justify-content:space-between; gap:16px; margin-top:16px; flex-wrap:wrap; }

/* =========================================================================
   Facilities
   ========================================================================= */
.fac-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 24px); }
.fac {
  position: relative; border: 1px solid var(--line); overflow: hidden;
  min-height: 240px; display: flex; align-items: flex-end;
  background: var(--ink-2);
  transition: transform .35s var(--ease);
}
.fac::after { content:""; position:absolute; inset:0; z-index: 1; opacity:.3; mix-blend-mode:overlay; background-image:var(--grain); background-size:200px; }

/* Card photo — fills the card and sits behind the text. Add a src to the card's
   <img> in the markup to switch it on; with no src the gradient shows through. */
.fac__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.fac__media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.32) contrast(1.12) brightness(.72);
  transform: scale(1.02);
  transition: transform .6s var(--ease), filter .6s var(--ease);
}
.fac:hover .fac__media img { transform: scale(1.07); filter: grayscale(.16) contrast(1.16) brightness(.84); }
/* Scrim only kicks in once a real path is set, so blank cards aren't double-darkened. */
.fac__media::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(to top, rgba(8,8,10,.94) 0%, rgba(8,8,10,.72) 34%, rgba(8,8,10,.22) 66%, rgba(8,8,10,.42) 100%);
}
.fac__media:has(img[src]:not([src=""]))::after { opacity: 1; }

.fac__inner { position: relative; z-index: 2; padding: 22px; width: 100%; }
.fac__n { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em; color: var(--ash); }
.fac h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin: 8px 0 6px; }
.fac p { color: var(--smoke); font-size: .92rem; max-width: 34ch; }
.fac:hover { transform: translateY(-4px); }
.fac--tall { grid-column: span 6; grid-row: span 2; min-height: 420px; background: radial-gradient(120% 90% at 20% 0%, #2a2a2f, #141416 55%, #0c0c0e); }
.fac--wide { grid-column: span 6; grid-row: span 2; min-height: 420px; }
.fac--half { grid-column: span 3; }
@media (max-width: 900px) {
  .fac--tall, .fac--wide { grid-column: span 12; }
  .fac--half { grid-column: span 6; }
}
@media (max-width: 560px) { .fac--half { grid-column: span 12; } }

/* Full-bleed facilities band — photo panel that links to the facilities page */
.fac-band {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(520px, 76vh, 800px);
  padding-block: clamp(56px, 8vw, 104px);
  border-block: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.fac-band__bg { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.fac-band__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 58% 52%;
  /* Source is a small square frame — the lift and slight softening make the
     upscale read as depth of field rather than pixels. */
  filter: grayscale(.4) contrast(1.14) brightness(1.28) saturate(1.1) blur(1.2px);
  transform: scale(1.1);
  transition: transform 1.4s var(--ease), filter .6s var(--ease);
}
.fac-band:hover .fac-band__bg img { transform: scale(1.16); filter: grayscale(.28) contrast(1.16) brightness(1.34) saturate(1.15) blur(1.2px); }
.fac-band__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(95deg, rgba(11,11,12,.94) 0%, rgba(11,11,12,.78) 38%, rgba(11,11,12,.18) 74%, rgba(11,11,12,.42) 100%),
    linear-gradient(to top, var(--ink) 0%, rgba(11,11,12,.35) 34%, rgba(11,11,12,0) 62%),
    radial-gradient(130% 105% at 50% 50%, transparent 40%, rgba(11,11,12,.6) 100%);
}
.fac-band__grain { position: absolute; inset: 0; z-index: 2; opacity: .34; mix-blend-mode: overlay; }
.fac-band__ghost {
  position: absolute; z-index: 1; right: var(--gut); bottom: -.16em;
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(8rem, 21vw, 21rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(243,241,236,.16);
  pointer-events: none; user-select: none;
}
.fac-band__inner { position: relative; z-index: 3; width: 100%; }
.fac-band__title {
  display: block; margin-top: clamp(18px, 2.4vw, 30px);
  font-size: clamp(2.8rem, 8.6vw, 7.2rem);
}
.fac-band__sub {
  display: block; margin-top: clamp(20px, 2.4vw, 28px);
  color: var(--smoke); font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 42ch;
}
.fac-band__go {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: clamp(26px, 3vw, 38px);
  background: var(--white); color: var(--ink);
  font-family: var(--font-mono); font-weight: 700; font-size: .76rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 19px 30px;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.fac-band__go .arrow { transition: transform .3s var(--ease); }
.fac-band:hover .fac-band__go { background: var(--bone); transform: translateY(-2px); }
.fac-band:hover .fac-band__go .arrow { transform: translateX(5px); }
@media (max-width: 560px) {
  .fac-band { min-height: 480px; }
  .fac-band__title { font-stretch: 100%; letter-spacing: -.02em; }
  .fac-band__go { width: 100%; justify-content: center; }
}

/* =========================================================================
   Trainers
   ========================================================================= */
.lead-trainer {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.lead-trainer__media { position: relative; }
.lead-trainer__media .frame { aspect-ratio: 3 / 4; }
.badge-owner {
  position: absolute; z-index: 5; left: -1px; top: 26px;
  background: var(--white); color: var(--ink);
  font-family: var(--font-mono); font-weight: 700; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  padding: 8px 14px;
}
.lead-trainer h2 { font-size: clamp(2.6rem, 6vw, 5rem); margin: 14px 0 10px; }
.lead-trainer__role { color: var(--smoke); font-size: 1.05rem; margin-bottom: 22px; }
.lead-trainer p + p { margin-top: 14px; }
.lead-trainer .creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--smoke); border: 1px solid var(--line-2); padding: 8px 12px;
}
.lead-trainer + .lead-trainer { margin-top: clamp(56px, 8vw, 110px); }
/* Second head coach mirrors the first so the two blocks alternate */
.lead-trainer--flip .lead-trainer__media { order: 2; }
@media (max-width: 820px) {
  .lead-trainer { grid-template-columns: 1fr; }
  .lead-trainer--flip .lead-trainer__media { order: 0; }
}

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); margin-top: clamp(40px, 6vw, 80px); }
.trainer { border: 1px solid var(--line); background: var(--ink-2); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.trainer:hover { border-color: var(--line-2); transform: translateY(-4px); }
.trainer .frame { aspect-ratio: 1 / 1; border: 0; border-bottom: 1px solid var(--line); }
.trainer__body { padding: 20px 20px 24px; }
.trainer h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: 1.4rem; }
.trainer__role { color: var(--ash); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 6px; }
.trainer p { color: var(--smoke); font-size: .9rem; margin-top: 14px; }
@media (max-width: 820px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Pricing
   ========================================================================= */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.price {
  border: 1px solid var(--line); background: var(--ink-2);
  color: var(--bone);
  padding: 26px 24px 30px; display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
/* Dark cards sit inside .section--light, which sets dark text — restore light text/buttons */
.section--light .price:not(.price--feature) .btn--ghost { border-color: var(--line-2); color: var(--bone); }
.section--light .price:not(.price--feature) .btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.04); }
.price:hover { transform: translateY(-5px); border-color: var(--line-2); }
.price__term { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }
.price__amount { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(2.8rem, 5vw, 3.8rem); line-height: 1; margin: 18px 0 4px; }
.price__amount sup { font-size: .38em; vertical-align: super; font-weight: 700; margin-right: 2px; }
.price__per { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; color: var(--ash); }
.price__list { margin: 22px 0 26px; display: grid; gap: 11px; }
.price__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--smoke); }
.price__list li::before { content: "—"; color: var(--ash); }
.price .btn { margin-top: auto; justify-content: center; }
/* Cards carry no button now — the pay band is the one action, so drop the
   trailing gap the button used to fill. */
.price__list:last-child { margin-bottom: 0; }
.price--feature { background: var(--white); color: var(--ink); border-color: var(--white); }
.price--feature .price__term,
.price--feature .price__per { color: #6b6862; }
.price--feature .price__list li { color: #3a3a3a; }
.price--feature .price__list li::before { color: #9a968c; }
.price--feature .btn--solid { background: var(--ink); color: var(--bone); }
.price__flag {
  align-self: flex-start; font-family: var(--font-mono); font-weight: 700; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  background: var(--ink); color: var(--bone); padding: 5px 9px; margin-bottom: 16px;
}
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .price-grid { grid-template-columns: 1fr; } }

/* Fine print under the price grid. Each phrase is its own flex item so a
   narrow screen breaks between phrases instead of mid-phrase; on the
   smallest screens they stack and the separators drop away. */
.fineprint {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 16px;
  margin-top: clamp(24px, 3vw, 32px);
  line-height: 1.5;
}
.fineprint li { display: inline-flex; align-items: center; gap: 16px; }
.fineprint li:not(:last-child)::after { content: "·"; color: var(--line-2); }
.fineprint a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .fineprint { flex-direction: column; align-items: flex-start; gap: 9px; }
  .fineprint li:not(:last-child)::after { display: none; }
}

/* Pay-online band — the loudest thing on the pricing page */
.pay-band {
  position: relative; overflow: hidden;
  margin-top: clamp(36px, 4.4vw, 60px);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(24px, 4vw, 56px); flex-wrap: wrap;
  padding: clamp(28px, 3.6vw, 48px) clamp(24px, 3.2vw, 48px);
  background: var(--ink); color: var(--bone);
  border: 2px solid var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pay-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 130% at 88% 50%, rgba(255,255,255,.10), transparent 60%);
}
.pay-band > * { position: relative; z-index: 1; }
.pay-band:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(11,11,12,.28); }
.pay-band__text { display: block; }
.pay-band__label {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 700; font-size: .62rem;
  letter-spacing: .2em; text-transform: uppercase;
  background: var(--white); color: var(--ink); padding: 6px 10px;
}
.pay-band__title { display: block; margin-top: 18px; font-size: clamp(1.8rem, 4.2vw, 3.2rem); max-width: 18ch; }
.pay-band__sub { display: block; margin-top: 14px; color: var(--smoke); font-size: clamp(.95rem, 1.2vw, 1.05rem); max-width: 42ch; }
.pay-band__btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--white); color: var(--ink);
  font-family: var(--font-mono); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 22px 38px;
  animation: payPulse 2.6s var(--ease) infinite;
}
.pay-band__btn .arrow { transition: transform .3s var(--ease); }
.pay-band:hover .pay-band__btn .arrow { transform: translateX(5px); }
@keyframes payPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  70%      { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
}
@media (max-width: 640px) {
  .pay-band { flex-direction: column; align-items: stretch; }
  .pay-band__label { align-self: flex-start; }
  .pay-band__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pay-band__btn { animation: none; }
}

/* =========================================================================
   Split CTA / generic feature rows
   ========================================================================= */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.split h2 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
.split p { color: var(--ash); margin-top: 18px; max-width: 46ch; }
.split--light p { color: #55534d; }
.split__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
/* Keeps related buttons on the same row when the set wraps */
.btn-group { display: inline-flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--ink); padding: 30px 24px; }
.section--light .stat-row { background: #d8d4ca; border-color: #d8d4ca; }
.section--light .stat { background: var(--bone); }
.stat .n { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: .9; }
.stat .l { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ash); margin-top: 12px; }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr 1fr; } }

/* Preview link cards (home) */
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px); }
.preview {
  position: relative; border: 1px solid var(--line); background: var(--ink-2);
  padding: clamp(24px, 3vw, 40px); min-height: 260px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.preview:hover { border-color: var(--line-2); transform: translateY(-4px); }
.preview__idx { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em; color: var(--ash); }
.preview h3 { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 60px 0 10px; }
.preview p { color: var(--smoke); font-size: .95rem; max-width: 40ch; }
.preview__go { margin-top: 22px; }
@media (max-width: 700px) { .preview-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: clamp(56px, 8vw, 90px); }
.footer-brand .display { font-size: clamp(3rem, 8vw, 6rem); line-height: .85; }
.footer-brand p { color: var(--ash); margin-top: 18px; max-width: 32ch; font-size: .95rem; }
.foot-col h4 { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ash); margin-bottom: 18px; }
.foot-col a, .foot-col p { display: block; color: var(--smoke); font-size: .92rem; margin-bottom: 12px; transition: color .25s var(--ease); }
.foot-col a:hover { color: var(--white); }
.socials { display: flex; gap: 10px; margin-top: 4px; }
.socials a {
  width: 42px; height: 42px; border: 1px solid var(--line-2); display: grid; place-items: center;
  color: var(--smoke); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.socials a:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-block: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ash);
}
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; } }

/* =========================================================================
   Page hero (interior pages)
   ========================================================================= */
.page-hero { position: relative; padding-block: clamp(70px, 12vw, 150px) clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(70% 90% at 85% 10%, rgba(255,255,255,.06), transparent 60%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.6rem, 11vw, 8.5rem); margin: 20px 0 0; }
@media (max-width: 560px) { .page-hero h1 { font-stretch: 100%; letter-spacing: -0.02em; } }
.page-hero p { color: var(--smoke); margin-top: 24px; max-width: 52ch; font-size: clamp(1rem, 1.4vw, 1.15rem); }

/* =========================================================================
   Reveal on scroll
   ========================================================================= */
.rise { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rise.in { opacity: 1; transform: none; }
.rise[data-d="1"] { transition-delay: .08s; }
.rise[data-d="2"] { transition-delay: .16s; }
.rise[data-d="3"] { transition-delay: .24s; }

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal-line { transform: none !important; }
  .rise { opacity: 1 !important; transform: none !important; }
  .ticker__track { animation: none; }
}
