/* ---------------------------------------------------------------
   KSYN Fitness Makati — Design System
   Dark, premium bodybuilding-gym aesthetic. Oswald for display type,
   Inter for body copy. Gold accent.
----------------------------------------------------------------- */

:root {
    --color-bg: #0b0b0c;
    --color-bg-alt: #151517;
    --color-bg-raised: #1c1c1f;
    --color-border: #2a2a2d;
    --color-text: #f2f2f0;
    --color-muted: #9c9c9f;
    --color-accent: #d4a017;
    --color-accent-hover: #e8b52e;
    --color-accent-text: #0b0b0c;

    --font-display: 'Oswald', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 40px;
    --space-5: 64px;
    --space-6: 96px;

    /* Section rhythm is fluid rather than a fixed 96px. At 390px that 96px was
       a quarter of the screen of nothing between every band; at 1920px it was
       too tight for the type scale below. */
    --space-section: clamp(56px, 7vw, 112px);
    --space-section-tight: clamp(40px, 5vw, 72px);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --container-width: 1160px;
    --container-wide: 1440px;

    /* Height of the fixed header. Everything that has to clear it — <main> on
       inner pages, anchor targets, sticky offsets — derives from this one
       value so they can never drift apart. */
    --header-h: 78px;

    --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
    --shadow-lg: 0 20px 48px rgba(0,0,0,0.45);
    --shadow-card: 0 1px 2px rgba(0,0,0,0.4), 0 12px 32px -12px rgba(0,0,0,0.6);
    --shadow-card-hover: 0 1px 2px rgba(0,0,0,0.4), 0 28px 60px -20px rgba(0,0,0,0.85);
    --glow-accent: 0 0 0 1px rgba(212,160,23,0.35), 0 18px 50px -18px rgba(212,160,23,0.45);

    /* Gold is the only accent, so it earns a gradient and a wash for the
       places where a flat fill reads cheap — headings, rules, card edges. */
    --gradient-accent: linear-gradient(135deg, #f0c04a 0%, #d4a017 55%, #a87a0c 100%);
    --gradient-fade-top: linear-gradient(180deg, var(--color-bg) 0%, transparent 100%);
    --wash-accent: rgba(212, 160, 23, 0.08);
    --hairline: rgba(255, 255, 255, 0.08);

    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 420ms cubic-bezier(0.4, 0, 0.2, 1);
    /* Decelerating curve — motion arrives fast and settles, which reads as
       responsive rather than floaty. */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
/* height:auto is what keeps a width/height attribute pair from being taken
   literally. Without it, an image carrying width="1200" height="1500" whose
   CSS sets only a width renders at the attribute's full 1500px height — see
   the mission collage, which was drawn 350x1500 instead of 350x437. Rules
   that set an explicit height (.cc-flag, .fac-gallery img, .coach-card img)
   are more specific and still win. */
img { max-width: 100%; height: auto; display: block; }

/* The hidden attribute is only the browser's default style, and any rule of
   ours that sets display beats it, "img" just above included. So the message
   form stayed on screen above "Message sent.", and the sign-up photo preview
   showed as an empty circle before a photo was chosen. Hidden means hidden,
   whatever else a rule says. */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* One focus ring for the whole site. Individual components used to each invent
   their own (or, more often, none) — keyboard users got an inconsistent outline
   on five elements and nothing on the rest. */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

::selection { background: var(--color-accent); color: var(--color-accent-text); }

/* Anchor links (the coach cards deep-link into coaches.php#slug) landed their
   target flush with the viewport top, where the fixed header covered it. */
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------------- Header ---------------- */
/* Fixed rather than sticky so the homepage hero can run full-bleed underneath
   it. <main> pays the height back on every other page (see below), so inner
   pages look exactly as they did. */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 11, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition), backdrop-filter var(--transition),
                border-color var(--transition), box-shadow var(--transition);
}

main { padding-top: var(--header-h); }
/* The hero supplies its own dark backdrop, so the bar sits on the video. */
body.homepage-cinematic main { padding-top: 0; }

/* At the very top of the homepage the bar is pure glass — no fill, no rule —
   so the hero reads as full-bleed. Everywhere else it keeps its dark fill from
   the first pixel, because there is no video behind it to carry the type. */
body.homepage-cinematic .site-header:not(.is-scrolled) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
}

/* Lighter once the page is scrolled. The blur goes up as the background goes
   down, so the nav stays readable over whatever is passing underneath. */
.site-header.is-scrolled {
    background: rgba(11, 11, 12, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: rgba(42, 42, 45, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
}

/* The logo shrinks via transform, and the bar keeps a constant height.
   Animating padding or height here would both thrash layout and — because the
   header is sticky — shift every element below it each time the bar resized. */
.site-header.is-scrolled .logo-mark { transform: scale(0.82); }

.logo {
    display: flex;
    align-items: center;
    cursor: default; /* not a link any more — no hand pointer */
}
.logo-mark {
    transform-origin: left center;
    transition: transform var(--transition);
}
.logo-mark { height: 42px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
    position: relative;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-muted);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
/* A gold rule wipes out from the center on hover and stays put on the current
   page, so the nav shows where you are and answers the pointer. */
.main-nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 2px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 260ms var(--ease-out);
}
.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta).is-active::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--color-text); background: rgba(255,255,255,0.04); }
.main-nav a.is-active { color: var(--color-text); }
.main-nav a.nav-cta {
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-weight: 600;
}
.main-nav a.nav-cta:hover { background: var(--color-accent-hover); }

/* The signed-in member's own link: a ring with their photo or initial, so it
   reads as an account and not as one more page. No underline wipe; the ring
   filling in is its hover and its "you are here". */
.main-nav a.nav-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 4px;
    border: 1px solid rgba(212, 160, 23, 0.45);
    border-radius: 999px;
    color: var(--color-text);
}
.main-nav a.nav-account::after { display: none; }
.main-nav a.nav-account:hover,
.main-nav a.nav-account.is-active {
    border-color: var(--color-accent);
    background: rgba(212, 160, 23, 0.12);
}
.nav-account-avatar {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}
.nav-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* In the phone menu the links are a column of full-width rows. The ring keeps
   to its own width there, with room above and below it to be pressed. */
@media (max-width: 900px) {
    .main-nav a.nav-account {
        align-self: flex-start;
        margin: 8px 0 8px 10px;
        padding: 7px 18px 7px 7px;
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Buttons ---------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    /* 48px floor keeps every button a comfortable touch target on phones,
       where several of these were 46px and sat right on the limit. */
    min-height: 48px;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    /* This class began life on <a>, which has no background or border of its
       own, so neither was ever declared here. Every <button class="btn"> --
       both modal Close buttons, and every Save in the admin panel -- was
       therefore painting Chrome's ButtonFace grey (rgb(240,240,240)) on a
       black page, with a 2px UA border around the primary ones.
       The modifiers below re-declare whichever of the two they need. */
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    isolation: isolate;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition),
                box-shadow var(--transition), color var(--transition),
                border-color var(--transition);
}
/* A light sweep crosses the face on hover. It is a pseudo-element transform,
   so it composites on the GPU and costs nothing on scroll. */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.28) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 620ms var(--ease-out);
}
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 80ms; }

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-accent-text);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 14px 34px -12px rgba(212,160,23,0.6);
}
.btn-secondary {
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    margin-top: var(--space-3);
}
.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-accent-text);
    transform: translateY(-2px);
}

/* Ghost: for the second action in a pair, where a gold outline would compete
   with the primary button beside it. */
.btn-ghost {
    border: 1px solid rgba(255,255,255,0.28);
    color: var(--color-text);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    /* svh, not vh: on iOS vh counts the area behind the address bar, so the
       CTA sat below the fold until the user scrolled. */
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #000;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Stands in until the first frame paints, and stays as the backdrop if the
       video never plays at all. Matched to whichever source this viewport gets
       — see the note in index.php for why this is not a poster attribute. */
    background-image: url('../images/posters/hero-landing.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
}
@media (max-width: 768px) {
    .hero-video { background-image: url('../images/posters/hero-landing-mobile.jpg'); }
}
/* Three layers, bottom-up:
   1. a vertical grade that sinks the bottom edge into the page background,
   2. a vignette that pulls the corners down,
   3. a soft scrim right where the copy sits.
   The third is doing real work: the video's brightest moment is the gym's own
   illuminated KSYN sign, which lands directly behind the headline. Without a
   scrim the white type competes with a white wordmark. */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(46% 42% at 50% 46%, rgba(0,0,0,0.62) 0%, transparent 78%),
        radial-gradient(120% 90% at 50% 40%, transparent 26%, rgba(0,0,0,0.62) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.45) 42%, rgba(11,11,12,0.97) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: var(--header-h) 24px var(--space-5);
}
.hero-line { opacity: 0; transform: translateY(20px); }


.mission-line { opacity: 0; transform: translateY(16px); }

/* .reveal-heading was removed with the old centerd headings; the section-head
   component uses the IntersectionObserver .reveal class instead, which works
   on every page rather than only where GSAP is loaded. */

body.homepage-cinematic .fan-panel,
body.homepage-cinematic .coach-card,
body.homepage-cinematic .price-card {
    opacity: 0;
    transform: translateY(24px);
}
/* Pill rather than bare text: the video behind it is busy, and a small gold
   caption on a photograph of a gold-lit sign was close to invisible. */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-3);
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1px solid rgba(212, 160, 23, 0.35);
    background: rgba(11, 11, 12, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero h1 {
    font-size: clamp(3rem, 9vw, 6.4rem);
    /* Negative tracking at display size. Oswald is a condensed face; the old
       +1px spacing pulled the three words apart and cost the headline its
       impact at the exact size where impact is the whole job. */
    letter-spacing: -1.5px;
    line-height: 0.94;
    font-weight: 700;
    text-shadow: 0 4px 40px rgba(0,0,0,0.75);
}
/* Last word carries the gold, so the headline has a focal point without
   needing a second type size.

   Solid, not the gradient. Gradient-filled type is decoration pretending to
   be hierarchy, and it cost real contrast: the gradient's dark end (#a87a0c)
   measures 5.11:1 on the page background where the solid accent measures
   8.28:1. One flat gold also just reads more certain at 100px. */
.hero h1 .accent { color: var(--color-accent); }
.hero-divider {
    display: block;
    width: 72px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin: var(--space-3) auto;
}
.hero p {
    color: #dedede;
    margin-bottom: var(--space-4);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
}


/* ---------------- Sections ---------------- */
section { padding: var(--space-section) 0; }
section h2 {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.06;
    letter-spacing: -0.5px;
    margin-bottom: var(--space-5);
    text-align: center;
}

/* ---- Section header component ----
   The old pattern was a single centerd h2 on every band, which is what made
   the page read as a template: center, center, center, all the way down. This
   gives a heading an eyebrow, an optional lede, and a left-aligned default,
   so sections can differ from one another on purpose. */
.section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    max-width: 720px;
}
.section-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
}
/* Short gold rule leading the eyebrow — the one repeated flourish that ties
   every section together. */
.section-head .eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-accent);
}
.section-head h2 {
    margin-bottom: 0;
    text-align: left;
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.04;
    letter-spacing: -0.5px;
}
.section-head .section-lede {
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 56ch;
}

.section-head--center {
    align-items: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.section-head--center h2 { text-align: center; }
.section-head--center .eyebrow::before { display: none; }
/* Centred variant gets rules on both sides instead, so it stays symmetrical. */
.section-head--center .eyebrow {
    padding: 6px 16px;
    border: 1px solid rgba(212, 160, 23, 0.28);
    border-radius: 999px;
    background: var(--wash-accent);
}

/* Heading + a trailing action (a "view all" link) on one baseline. */
.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
}
.section-head-row .section-head { margin-bottom: 0; }

/* Inline text link with a sliding arrow — lighter than a button for
   secondary navigation out of a section. */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-accent);
    padding: 8px 0;
    /* The arrow slides via a transform on the svg below; nothing here ever
       changes `gap`, so transitioning it only invited a layout animation. */
    transition: color var(--transition);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 260ms var(--ease-out); }
.link-arrow:hover { color: var(--color-accent-hover); }
.link-arrow:hover svg { transform: translateX(5px); }

.page-header {
    position: relative;
    padding: var(--space-5) 0 var(--space-3);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}
.page-header h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.02;
    letter-spacing: -1px;
}

/* ---------------- Grids & Cards ---------------- */
.coach-grid, .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-3);
}

.coach-card, .price-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-3);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.coach-card:hover, .price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 160, 23, 0.35);
}

.price-card h3 { font-size: 1.1rem; margin-bottom: var(--space-1); letter-spacing: 1px; }
.coach-card p { color: var(--color-muted); font-size: 0.95rem; }

/* ---------------- Facility Fan Accordion ---------------- */
.facility-fan {
    display: flex;
    height: 340px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.fan-panel {
    position: relative;
    flex: 1;
    cursor: pointer;
    overflow: hidden;
    background: var(--color-bg-alt);
    border-right: 1px solid var(--color-border);
    transition: flex 450ms ease;
}
.fan-panel:last-child { border-right: none; }
.fan-panel.is-active { flex: 8; }
.fan-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 450ms ease, transform 6s ease;
}
.fan-panel.is-active img { opacity: 1; transform: scale(1.04); }
.fan-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(11,11,12,0.92));
    z-index: 1;
}
.fan-panel.no-photo { display: flex; align-items: center; justify-content: center; }
.fan-placeholder-text {
    color: var(--color-muted);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    z-index: 2;
    padding: 0 8px;
}
.fan-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--space-3);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--color-text);
    font-family: var(--font-display);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.95rem;
    z-index: 2;
}
.fan-panel.is-active .fan-label { writing-mode: horizontal-tb; }
.fan-desc {
    position: absolute;
    left: var(--space-3);
    right: var(--space-3);
    bottom: 54px;
    z-index: 2;
    color: var(--color-muted);
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 300ms ease 150ms;
}
.fan-panel.is-active .fan-desc { opacity: 1; }
.fan-panel:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
    z-index: 3;
}

@media (max-width: 899px) {
    .facility-fan { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; }
    .facility-fan::-webkit-scrollbar { display: none; }
    .fan-panel { flex: 0 0 70px; min-width: 70px; scroll-snap-align: start; }
    .fan-panel.is-active { flex: 0 0 220px; min-width: 220px; }
}

.coach-card { overflow: hidden; padding: 0 0 var(--space-3); }
.coach-card .coach-photo-wrap {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: var(--space-3);
}
.coach-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 400ms ease;
}
.coach-card:hover img { transform: scale(1.06); }
.coach-card h3 { font-size: 1.05rem; letter-spacing: 1px; }
.coach-card p { padding: 0 var(--space-2); }

.price-card { position: relative; }
.price-card.is-featured { border-color: var(--color-accent); }
.price-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
}
.price-card .price {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-top: var(--space-1);
}

.sub-heading { margin: var(--space-5) 0 var(--space-2); text-align: center; }
.fee-list { list-style: none; max-width: 480px; margin: 0 auto; }
.fee-list li {
    display: flex;
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-muted);
}
.fee-list-note {
    justify-content: center !important;
    border-bottom: none !important;
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.7;
}

.pricing-table { width: 100%; border-collapse: collapse; margin-top: var(--space-3); }
.pricing-table th, .pricing-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--color-border); }
.pricing-table th {
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-family: var(--font-display);
}
.pricing-table tbody tr { transition: background var(--transition); }
.pricing-table tbody tr:hover { background: var(--color-bg-alt); }

.pricing-cta { text-align: center; margin: var(--space-4) 0; }

/* ---------------- Footer ---------------- */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-5) 0 var(--space-3);
    color: var(--color-muted);
    font-size: 0.9rem;
    background: var(--color-bg-alt);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
}
.footer-logo { font-family: var(--font-display); color: var(--color-text); font-size: 1.1rem; letter-spacing: 1px; margin-bottom: 4px; }
.footer-tagline { color: var(--color-muted); }
.footer-col h4 {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--color-accent); }
.footer-col .muted { color: #5c5c5f; }
/* The floating Message Us button is fixed to the bottom right of the window,
   so whatever the footer ends with lands underneath it. The last row used to
   be the Terms and Privacy links, which the button covered completely.
   Reserving the height here clears them at every width, and does it without
   scripting -- the button cannot move, so the footer gets out of its way. */
.site-footer--has-quick-contact { padding-bottom: 96px; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-3);
    font-size: 0.8rem;
}
.footer-legal { display: flex; gap: var(--space-3); }
.footer-legal a { color: var(--color-muted); }
.footer-legal a:hover { color: var(--color-accent); }

/* ---------------- Contact page ---------------- */
.contact-section p { padding: 10px 0; color: var(--color-muted); }
/* Not the buttons. A .btn-primary caught by this rule turned gold-on-gold and
   its label vanished; the button styles already set their own colour. */
.contact-section a:not(.btn) { color: var(--color-accent); }
.contact-section a:not(.btn):hover { color: var(--color-accent-hover); }
.contact-map {
    margin-top: var(--space-4);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 16 / 9;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------- 404 page ---------------- */
.not-found-section { text-align: center; }
.not-found-section p { color: var(--color-muted); margin-bottom: var(--space-3); font-size: 1.1rem; }
.page-header h1:has(+ *) { font-size: clamp(3rem, 8vw, 5rem); }

/* ---------------- Sticky quick-contact button ---------------- */
.quick-contact {
    position: fixed;
    bottom: var(--space-3);
    right: var(--space-3);
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    padding: 12px 20px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition), background var(--transition);
}
.quick-contact:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
.quick-contact svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (max-width: 500px) {
    .quick-contact span { display: none; }
    .quick-contact { padding: 14px; }
}

/* ---------------- Scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- Facility modal ---------------- */
.facility-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}
.facility-modal.is-open { display: block; }
.facility-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
}
.facility-modal-dialog {
    position: relative;
    z-index: 1;
    max-width: 720px;
    /* Clear of the fixed site header rather than starting underneath it. At
       6vh the dialog's top 30-odd pixels sat inside the header's band, so the
       first row of photos ran into the navigation. dvh because on a phone vh
       counts the space behind the browser chrome. */
    margin: calc(var(--header-h) + var(--space-2)) auto var(--space-2);
    max-height: calc(100dvh - var(--header-h) - var(--space-4));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    /* No padding at the top. A sticky child pins to the padding box, not the
       border box, so 40px here held the header 41px below the dialog's edge
       and the photos scrolled visibly through the gap above it. The header
       carries that space itself now. */
    padding: 0 var(--space-4) var(--space-4);
    box-shadow: var(--shadow-lg);
}
.facility-modal-dialog h3 {
    font-size: 1.6rem;
    margin-bottom: var(--space-1);
    padding-right: var(--space-4);
}
.facility-modal-desc { color: var(--color-muted); margin-bottom: var(--space-3); }
.facility-modal-close {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: var(--color-text);
    font-size: 1.4rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition);
}
.facility-modal-close:hover { background: rgba(255,255,255,0.14); }
.facility-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-2);
}
.facility-modal-gallery figure { margin: 0; }
.facility-modal-gallery img {
    width: 100%;
    border-radius: var(--radius-sm);
    pointer-events: none;
}
.facility-modal-gallery figcaption {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--color-muted);
}
.facility-modal-empty {
    color: var(--color-muted);
    font-style: italic;
    padding: var(--space-3) 0;
}
body.modal-open { overflow: hidden; }

/* ---------------- Gallery ---------------- */
.gallery-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-4);
}
.gallery-tab {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    padding: 8px 20px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.gallery-tab:hover { color: var(--color-text); border-color: var(--color-muted); }
.gallery-tab.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-accent-text);
}

.gallery-count {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-2);
}

.gallery-scroll-wrap { position: relative; }
.gallery-scroll {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: var(--space-2);
    scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-item {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: start;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition);
}
.gallery-item:hover { transform: translateY(-4px); border-color: rgba(212,160,23,0.35); }
.gallery-item:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; transform: translateY(-4px); }
.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    pointer-events: none;
}
.gallery-item figcaption {
    padding: 12px 14px;
    font-size: 0.85rem;
    color: var(--color-muted);
}
.gallery-item.is-hidden { display: none; }

.gallery-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: rgba(11,11,12,0.85);
    color: var(--color-text);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
    transition: background var(--transition), border-color var(--transition);
}
.gallery-arrow:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-text); }
.gallery-arrow-prev { left: -10px; }
.gallery-arrow-next { right: -10px; }

.gallery-load-more-wrap { text-align: center; }
.gallery-load-more-wrap .btn[hidden] { display: none; }

/* ---------------- Image lightbox ---------------- */
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}
.image-lightbox.is-open { display: block; }
.image-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.9); }
.image-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    max-height: 88vh;
    margin: 5vh auto;
    padding: 0 var(--space-3);
    text-align: center;
}
/* Shrink-wraps the image so the close button anchors to the photo's corner
   rather than to the fixed-width content box, which a portrait image never
   fills. */
.image-lightbox-figure {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}
.image-lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    margin: 0 auto;
    border-radius: var(--radius-sm);
}
.image-lightbox-caption { color: var(--color-muted); margin-top: var(--space-2); line-height: 1.6; }
.image-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    /* Solid and shadowed rather than translucent: these sit on top of the
       photo now, and a faint button vanishes over a bright frame. */
    background: rgba(11, 11, 12, 0.72);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--color-text);
    font-size: 1.4rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition);
}
.image-lightbox-close:hover { background: rgba(11, 11, 12, 0.92); }
.image-lightbox-close:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ---------------- Offset image collage ---------------- */
.collage-section { overflow: hidden; }
.collage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    align-items: center;
}
.collage-media { position: relative; padding: var(--space-3) 0; }
.collage-block {
    position: absolute;
    top: 0;
    left: -20px;
    width: 70%;
    height: 60%;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    z-index: 0;
}
.collage-media img {
    position: relative;
    z-index: 1;
    width: 78%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}
.collage-media img.collage-img-small {
    position: absolute;
    z-index: 2;
    width: 48%;
    bottom: -10%;
    right: 0;
    border: 6px solid var(--color-bg);
}
.collage-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
    font-weight: 600;
}
.collage-copy h2 { text-align: left; margin-bottom: var(--space-3); }
.collage-copy p { color: var(--color-muted); font-size: 1.05rem; margin-bottom: var(--space-2); }

/* ---------------- Protein shakes menu ----------------
   Product-page treatment: one product, generous space, quiet type. The old
   version drew the 4:5 photo with background-size:contain across a full-bleed
   stage, which left 58% of the width empty and forced the title to sit on top
   of the product. This is a two-column grid instead. */
.shakes-menu { background: var(--color-bg); padding: var(--space-6) 0 var(--space-4); }
.shakes-menu-meta {
    margin: var(--space-4) 0 0; padding-top: var(--space-3);
    border-top: 1px solid #26262a;
    font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase;
    color: var(--color-muted);
}
.shakes-menu-heading { text-align: center; margin-bottom: var(--space-5); }
.shakes-menu-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-5);
    /* Start-aligned, not centerd: the image is much taller than the text, so
       centring leaves the copy floating in the middle of the column with dead
       space above and below it. */
    align-items: start;
    justify-content: center;
}

/* The panel is pure #000 because the product photos carry their own solid
   black background (sampled: RGB 0,0,0). Any other surface colour makes the
   image's rectangular edge visible inside the frame. */
.shakes-menu-media {
    border: 1px solid #26262a;
    border-radius: 3px;
    background: #000;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    overflow: hidden;
}
/* The photo fills the frame instead of floating in the middle of it with black
   down both sides. cover crops rather than letterboxes; every one of these is a
   centred product shot, so the crop takes background, not the cup. */
.shakes-menu-media img {
    width: 100%; height: 520px; object-fit: cover; object-position: center;
    display: block; transition: opacity 240ms ease;
}
.shakes-menu-media img.is-switching { opacity: 0; }
.shakes-menu-nophoto { color: var(--color-muted); font-size: 0.8rem; font-style: italic; }

/* min-width:0 is load-bearing: grid items default to min-width:auto, which
   means this column refuses to shrink below the swatch row's intrinsic width
   (11 dots + gaps = 396px). Without it the column blows past the viewport on
   mobile and overflow-x on the swatch row never engages. */
.shakes-menu-detail { max-width: 440px; min-width: 0; }
.shakes-menu-base {
    font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--color-muted); font-weight: 600; margin-bottom: var(--space-2);
}
/* Display face, matching every other heading on the site. The global
   "h1, h2, h3, h4" rule centers headings, so text-align has to be reset
   explicitly — this one sits in a left-aligned detail column. */
.shakes-menu-name {
    text-align: left;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    letter-spacing: 0.5px; line-height: 1.05;
    color: var(--color-text); margin: 0 0 14px;
}
.shakes-menu-price { font-size: 1rem; color: var(--color-text); margin: 0 0 var(--space-3); }
.shakes-menu-desc { font-size: 0.95rem; line-height: 1.75; color: var(--color-muted); margin: 0 0 var(--space-4); max-width: 42ch; }

/* Photo thumbnails, full-width below the two columns. A flat colour dot works
   for one product in several finishes; these are eleven different drinks, so
   the photo is what identifies them. Sized big enough to actually read —
   the earlier 26px version was an unreadable smudge. */
.shakes-menu-swatches {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 12px; margin-top: var(--space-5);
}
.shakes-menu-dot {
    flex: 0 0 auto; width: 88px; background: none; border: 0; padding: 0;
    cursor: pointer; font: inherit; text-align: center;
}
.shakes-menu-thumb {
    display: block; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
    background-size: cover; background-position: center; background-color: var(--color-bg-alt);
    box-shadow: 0 0 0 2px transparent;
    transition: box-shadow 200ms ease, transform 200ms ease;
}
.shakes-menu-dot:hover .shakes-menu-thumb { transform: scale(1.08); }
.shakes-menu-dot:focus-visible { outline: none; }
.shakes-menu-dot:focus-visible .shakes-menu-thumb { box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-accent); }
.shakes-menu-dot.is-active .shakes-menu-thumb {
    box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 3px var(--color-accent);
    transform: scale(1.06);
}
/* Fixed height so the two-line names (Chocolate Butterscotch, Banana Peanut
   Butter, Banana Strawberry, Banana Cinnamon) don't break the row's baseline. */
.shakes-menu-dot-name {
    display: block; height: 30px; margin-top: 10px;
    font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.5px;
    text-transform: uppercase; color: var(--color-muted); line-height: 1.25;
    transition: color 200ms ease;
}
.shakes-menu-dot.is-active .shakes-menu-dot-name { color: var(--color-accent); }

@media (prefers-reduced-motion: reduce) {
    .shakes-menu-media img, .shakes-menu-dot { transition-duration: 1ms; }
    .shakes-menu-dot:hover { transform: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-2);
        gap: 4px;
        display: none;
        /* With nine languages the open menu is taller than a phone. It
           scrolls inside itself, and stops at its own ends instead of
           dragging the page behind it. */
        max-height: calc(100vh - var(--header-h));
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 12px 16px; }
    .main-nav a.nav-cta { text-align: center; margin-top: 8px; }

    .hero h1 { font-size: 2.2rem; }

    /* Single column, image first. Swatches scroll on one line rather than
       wrapping into three ragged rows at this width. */
    .shakes-menu { padding: var(--space-5) 0; }
    .shakes-menu-grid { grid-template-columns: 1fr; gap: var(--space-3); }
    .shakes-menu-media { padding: 0; min-height: 0; }
    .shakes-menu-media img { height: 300px; width: 100%; object-fit: cover; }
    .shakes-menu-detail { max-width: none; }
    .shakes-menu-swatches {
        flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
        scrollbar-width: none; margin-top: var(--space-4);
        /* Room for the selected flavour's ring. Setting overflow-x to auto
           makes overflow-y compute to auto as well -- the box clips on both
           axes whether you asked it to or not -- so the ring, which sits 3px
           outside the thumb and is scaled up another 6%, had its top 2px
           sliced off. The padding gives it somewhere to be inside the clip;
           the negative margin keeps the row where it was. */
        padding: 6px 0 8px;
        margin-bottom: -6px;
    }
    .shakes-menu-swatches::-webkit-scrollbar { display: none; }
    .shakes-menu-dot { width: 76px; }
    .shakes-menu-thumb { width: 56px; height: 56px; }
    section { padding: var(--space-5) 0; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }

    .gallery-item { width: 220px; }
    .gallery-arrow { display: none; }

    .collage-grid { grid-template-columns: 1fr; gap: var(--space-4); }
    .collage-copy h2 { text-align: center; }
    .collage-copy { text-align: center; }
    .collage-media { max-width: 360px; margin: 0 auto; }
}

/* ---------------- Testimonials ---------------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
}

/* Cards stretch to a shared height and the attribution is pushed to the
   bottom with margin-top:auto, so the name rows line up across the row even
   though the quotes differ in length. */
.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-3) var(--space-3);
    margin: 0;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 160, 23, 0.35);
}

/* Oversized quote mark, set behind the text as texture rather than content.
   aria-hidden is unnecessary because it is a CSS pseudo-element. */
.testimonial-card::before {
    content: "\201C";
    position: absolute;
    /* It used to sit at -18px, which put the top half of the glyph outside the
       card -- it read as a clipped grey stub rather than a quote mark. */
    top: 2px;
    left: 14px;
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--color-accent);
    opacity: 0.18;
    pointer-events: none;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: var(--space-2);
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: var(--color-accent);
}

.testimonial-card blockquote {
    margin: 0 0 var(--space-3);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text);
}

.testimonial-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
}

.testimonial-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.testimonial-source {
    font-size: 0.78rem;
    color: var(--color-muted);
}

/* ---------------- Day passes ---------------- */
.day-pass-intro {
    text-align: center;
    color: var(--color-muted);
    margin: calc(-1 * var(--space-2)) auto var(--space-3);
    max-width: 46ch;
}
.day-pass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    gap: var(--space-3);
    justify-content: center;
}
.day-pass-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.day-pass-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* Two lines' worth of height so a one-line label ("Walk-in Day Pass") and a
   two-line one ("Returning Member Day Pass") still put their prices on the
   same baseline. */
.day-pass-card h3 {
    font-size: 0.95rem; letter-spacing: 1px; margin-bottom: var(--space-1);
    line-height: 1.3; min-height: 2.6em; /* 2 lines x 1.3 == 2.6em, so the box fits
        a two-line label exactly and a one-line one sits at its bottom */
    display: flex; align-items: flex-end; justify-content: center;
}
.day-pass-card .price { font-family: var(--font-display); font-size: 2rem; color: var(--color-accent); }
.day-pass-who { color: var(--color-muted); font-size: 0.8rem; margin-top: 4px; }

/* ---------------- Coach profiles (coaches.php) ---------------- */
.page-header-sub { color: var(--color-muted); margin-top: var(--space-2); }

.coach-profile {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: var(--space-5);
    align-items: start;
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--color-border);
}
.coach-profile:last-child { border-bottom: 0; }

/* Alternating sides. Only the column order changes; the markup stays in
   reading order so the name still follows the portrait for screen readers. */
.coach-profile.is-flipped { grid-template-columns: 1fr 340px; }
.coach-profile.is-flipped .coach-profile-media { order: 2; }

.coach-profile-media {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-alt);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.coach-profile-media img { width: 100%; height: 100%; object-fit: cover; }
.coach-profile-nophoto { color: var(--color-muted); font-size: 0.85rem; font-style: italic; }

.coach-profile-name { font-size: 1.9rem; text-align: left; margin-bottom: 4px; }
.coach-profile-title {
    color: var(--color-accent); font-size: 0.8rem; letter-spacing: 2px;
    text-transform: uppercase; font-weight: 600; margin-bottom: var(--space-3);
}

.coach-creds { margin-bottom: var(--space-3); }
.coach-creds h3 {
    font-size: 0.72rem; letter-spacing: 2px; color: var(--color-muted);
    text-align: left; margin-bottom: var(--space-2);
}
.coach-creds ul { list-style: none; }
.coach-creds li {
    position: relative; padding-left: 18px; margin-bottom: 6px;
    font-size: 0.9rem; line-height: 1.6; color: var(--color-text);
}
.coach-creds li::before {
    content: ""; position: absolute; left: 0; top: 0.62em;
    width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent);
}

/* Specialisations read as a set of capabilities rather than a ranked list,
   so they get chips instead of bullets. */
.coach-creds-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.coach-creds-tags li {
    padding: 5px 12px; margin: 0; border: 1px solid var(--color-border);
    border-radius: 999px; font-size: 0.8rem; color: var(--color-muted);
}
.coach-creds-tags li::before { display: none; }

.coach-book-btn {
    display: inline-block; margin-top: var(--space-2);
    padding: 12px 26px; border-radius: var(--radius-sm);
    background: var(--color-accent); color: var(--color-accent-text);
    font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    transition: background var(--transition), transform var(--transition);
}
.coach-book-btn:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
.coach-book-note { color: var(--color-muted); font-size: 0.78rem; margin-top: var(--space-1); }

@media (max-width: 820px) {
    .coach-profile,
    .coach-profile.is-flipped { grid-template-columns: 1fr; gap: var(--space-3); }
    .coach-profile.is-flipped .coach-profile-media { order: 0; }
    .coach-profile-media { max-width: 300px; }
    .coach-profile-name { font-size: 1.5rem; }
    .coach-book-btn { display: block; text-align: center; }
}

/* Homepage coach cards link into the matching profile on coaches.php. */
.coach-card { cursor: pointer; }
.coach-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-accent);
}
.coach-card-cue {
    display: block;
    margin-top: var(--space-1);
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-muted);
    transition: color var(--transition);
}
.coach-card:hover .coach-card-cue { color: var(--color-accent); }

/* The header is sticky at ~78px, so an anchor jump would otherwise land the
   coach's name underneath it. html has scroll-behavior:smooth, so this also
   makes the arrival animate to the right spot. */
.coach-profile { scroll-margin-top: 100px; }

/* ---------------- Trial booking modal ---------------- */
.trial-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.trial-modal.is-open { display: block; }
.trial-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(3px); }
.trial-modal-dialog {
    position: relative;
    max-width: 480px;
    margin: 6vh auto;
    max-height: 88vh;
    /* dvh is the viewport as it actually is right now. vh on a phone means the
       viewport with the browser bars hidden, so 6vh + 88vh put the bottom of
       this dialog under the URL bar -- and with body locked there was nothing
       to scroll. The Send button was simply unreachable. */
    margin: 4dvh auto;
    max-height: 92dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-3);
    box-shadow: var(--shadow-lg);
}
.trial-modal-close {
    position: absolute; top: 8px; right: 12px;
    background: none; border: 0; color: var(--color-muted);
    font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.trial-modal-close:hover { color: var(--color-text); }
.trial-modal-dialog h3 { font-size: 1.3rem; text-align: left; margin-bottom: 6px; }
.trial-modal-sub { color: var(--color-muted); font-size: 0.88rem; margin-bottom: var(--space-3); line-height: 1.55; }

/* The sign-in popup borrows the inquiry form's fields. These are the two
   things a sign-in form has that an inquiry does not. */
.trial-form .signin-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: var(--space-2) 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-text);
    cursor: pointer;
}
.trial-form .signin-remember input {
    width: 20px;
    height: 20px;
    padding: 0;
    flex: none;
    accent-color: var(--color-accent);
    cursor: pointer;
}
.signin-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    margin-top: var(--space-3);
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
    font-size: 0.88rem;
    color: var(--color-muted);
}
.signin-links a { color: var(--color-accent); text-decoration: none; }
.signin-links a:hover { text-decoration: underline; }

.trial-form { display: flex; flex-direction: column; }
.trial-form label { font-size: 0.78rem; color: var(--color-muted); margin-top: var(--space-2); margin-bottom: 4px; }
.trial-optional { text-transform: none; letter-spacing: 0; opacity: 0.75; }
.trial-form input, .trial-form textarea {
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.92rem;
}
.trial-form input:focus, .trial-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212,160,23,0.15);
}
/* Direct children only. A descendant selector here also caught the country
   picker's button nested inside .phone-row, pushing it 24px down and
   stretching the grid row. */
.trial-form > button { margin-top: var(--space-3); }

/* Off-screen rather than display:none — bots skip hidden fields but fill
   ones that are merely positioned away. */
.trial-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.trial-err { color: #e04b4b; font-size: 0.78rem; min-height: 0; margin-top: 4px; }
.trial-err:empty { display: none; }
.trial-err-form { margin-top: var(--space-2); }
.trial-fallback-link { color: var(--color-accent); text-decoration: underline; }

.trial-done { text-align: center; padding: var(--space-3) 0; }
.trial-done-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--color-accent); margin-bottom: var(--space-1); }
.trial-done p { color: var(--color-muted); font-size: 0.9rem; }
.trial-done .btn { margin-top: var(--space-3); }

@media (max-width: 560px) {
    .trial-modal-dialog { margin: 0; max-width: none; min-height: 100vh; max-height: none; border-radius: 0; border: 0; }
}


/* ---------------- Country code picker ----------------
   Custom combobox rather than a native <select>: an <option> cannot contain
   an image, and these need real flags. The list is rendered server-side and
   this only styles it. */
/* The flag, the dial code and the caret need room side by side; at 116px they
   overlapped each other and ran into the number beside them. */
.phone-row { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 10px; }
/* On the narrowest phones the picker's 132px leaves the number less room than
   ten digits take, and the picker cannot give any up (see above). The number
   goes on its own line there instead. */
@media (max-width: 340px) {
    .phone-row { grid-template-columns: minmax(0, 1fr); }
}

.trial-form select {
    /* Room on the right for the arrow. The native caret is drawn hard against
       the inner edge, so without this it sits on the border. */
    padding: 11px 44px 11px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.92rem;
}
.trial-form select:focus {
    outline: none; border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212,160,23,0.15);
}

.cc { position: relative; }
.cc-button {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    padding: 11px 10px; /* matches the phone input beside it, so both are 42px */
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body); font-size: 0.92rem;
    cursor: pointer;
}
.cc-button:focus-visible {
    outline: none; border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212,160,23,0.15);
}
.cc-current { display: flex; align-items: center; gap: 7px; min-width: 0; }
.cc-caret { color: var(--color-muted); font-size: 0.7rem; flex-shrink: 0; }
.cc-flag {
    width: 20px; height: 15px; object-fit: cover; flex-shrink: 0;
    border-radius: 2px;
    /* Several flags are mostly white; without this they vanish on the dark
       surface and read as a gap rather than a flag. */
    box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
}
.cc-dial { white-space: nowrap; }

.cc-panel {
    position: absolute; z-index: 10; top: calc(100% + 6px); left: 0;
    width: 300px; max-width: 78vw;
    background: var(--color-bg-raised);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.cc-search {
    width: 100%; padding: 10px 12px;
    border: 0; border-bottom: 1px solid var(--color-border);
    background: var(--color-bg); color: var(--color-text);
    font-family: var(--font-body); font-size: 0.88rem;
}
.cc-search:focus { outline: none; border-bottom-color: var(--color-accent); }

.cc-list { list-style: none; max-height: 260px; overflow-y: auto; margin: 0; padding: 4px 0; }
.cc-option {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; cursor: pointer; font-size: 0.88rem;
}
.cc-option[hidden] { display: none; }
.cc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-code { color: var(--color-muted); font-size: 0.82rem; flex-shrink: 0; }
.cc-option:hover,
.cc-option.is-active { background: rgba(255,255,255,0.06); }
.cc-option.is-selected .cc-name { color: var(--color-accent); }
.cc-empty { padding: 14px 12px; color: var(--color-muted); font-size: 0.85rem; text-align: center; }

@media (max-width: 560px) {
    .cc-panel { width: 260px; }
    .cc-list { max-height: 42vh; }
}

/* --- Country picker corrections --- */

.phone-row { align-items: center; }

/* The list scrolls, and the platform default is a light scrollbar that reads
   as a bright stripe down a dark panel. */
.cc-list { scrollbar-width: thin; scrollbar-color: #4a4a4f transparent; }
.cc-list::-webkit-scrollbar { width: 8px; }
.cc-list::-webkit-scrollbar-track { background: transparent; }
.cc-list::-webkit-scrollbar-thumb { background: #3c3c41; border-radius: 4px; }
.cc-list::-webkit-scrollbar-thumb:hover { background: #55555b; }

/* The caret sat hard against the right edge with the dial code adrift. */
.cc-caret { margin-left: 6px; margin-right: 2px; opacity: 0.75; flex: 0 0 auto; }
/* The dial code keeps its own space rather than being squeezed by the caret. */
.cc-current { display: flex; align-items: center; gap: 7px; min-width: 0; }
.cc-dial { white-space: nowrap; }

/* ---------------- Facilities page sections ----------------
   Three tiers chosen by photo count in facility_layout_tier(). The homepage
   fan accordion is a separate component and is not affected. */
/* Three rules were each adding their own gap here — .page-header's 24px
   bottom, the global `section` 96px top, and .fac-section's own 64px — which
   stacked to 184px of empty space before the first facility. The section keeps
   its rhythm at the bottom; only the lead-in is collapsed. */
.facilities-full { padding-top: var(--space-4); }
.fac-section { padding: var(--space-5) 0; border-bottom: 1px solid var(--color-border); }
.fac-section:first-child { padding-top: 0; }
.fac-section:last-child { border-bottom: 0; }
.fac-head { margin-bottom: var(--space-3); }
.fac-name { font-size: clamp(1.5rem, 3vw, 2rem); text-align: left; margin-bottom: 6px; }
.fac-desc { color: var(--color-muted); font-size: 0.95rem; max-width: 56ch; }

/* Lead image spans two rows so a long gallery opens on one strong frame
   instead of a uniform grid that reads as a contact sheet. */
.fac-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fac-gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-bg-alt); }
.fac-gallery figure img { width: 100%; height: 170px; object-fit: cover; display: block; transition: transform 400ms ease; }
.fac-gallery .fac-gallery-lead { grid-column: span 2; grid-row: span 2; }
.fac-gallery .fac-gallery-lead img { height: 350px; }
.fac-gallery figure:hover img { transform: scale(1.04); }

/* Cells are capped rather than 1fr: with auto-fit, a facility holding a single
   photograph would stretch it across the full 1112px and crop it to a letterbox
   strip. Capped and start-aligned, one image reads as one image. */
.fac-compact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 360px)); gap: 10px; justify-content: start; }
.fac-compact figure { margin: 0; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-bg-alt); }
.fac-compact figure img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform 400ms ease; }
.fac-compact figure:hover img { transform: scale(1.04); }

/* A solid bordered panel, not a dashed or hatched one — those read as a
   broken image rather than a deliberate placeholder. */
.fac-pending {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
    padding: var(--space-4);
    text-align: center;
}
.fac-pending-note {
    color: var(--color-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
    .fac-gallery figure img, .fac-compact figure img { transition: none; }
    .fac-gallery figure:hover img, .fac-compact figure:hover img { transform: none; }
}

@media (max-width: 720px) {
    .fac-section { padding: var(--space-4) 0; }
    .fac-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .fac-gallery figure img { height: 120px; }
    .fac-gallery .fac-gallery-lead { grid-column: span 2; grid-row: auto; }
    .fac-gallery .fac-gallery-lead img { height: 200px; }
    .fac-compact figure img { height: 180px; }
}

/* Facility photos open the shared lightbox, so they need to read as clickable. */
.fac-gallery figure,
.fac-compact figure { cursor: zoom-in; }
.fac-gallery figure:focus-visible,
.fac-compact figure:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* =================================================================
   Premium layer
   Components added in the presentation pass. Appended rather than
   threaded through the file above so the cascade order is obvious:
   these are the last word on anything they name.
   ================================================================= */

/* ---------------- Stats band ---------------- */
.stats-band {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
    background:
        radial-gradient(60% 120% at 50% 0%, var(--wash-accent) 0%, transparent 70%),
        var(--color-bg);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-3);
}
.stat {
    text-align: center;
    padding: var(--space-2) var(--space-1);
    position: relative;
}
/* Hairline separators between columns rather than boxes around them — the
   band should read as one object, not as four more cards. */
.stat + .stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: var(--hairline);
}
.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--color-accent);
    /* Tabular figures so a counter ticking 0->11 does not jiggle its own
       width on every frame. */
    font-variant-numeric: tabular-nums;
}
.stat-value-text { font-size: clamp(1.15rem, 1.9vw, 1.5rem); letter-spacing: 0; }
.stat-label {
    margin-top: 8px;
    font-size: 0.78rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* ---------------- Closing CTA band ---------------- */
.cta-band {
    border-top: 1px solid var(--color-border);
    background:
        radial-gradient(80% 140% at 15% 0%, rgba(212,160,23,0.13) 0%, transparent 60%),
        var(--color-bg-alt);
}
.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}
.cta-band-copy { max-width: 620px; }
.cta-band-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}
.cta-band-copy .eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-accent);
}
.cta-band-copy h2 {
    text-align: left;
    margin-bottom: var(--space-2);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.06;
    letter-spacing: -0.5px;
}
.cta-band-copy p { color: var(--color-muted); font-size: 1.02rem; max-width: 52ch; }
.cta-band-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.cta-band-actions .btn { margin-top: 0; }

/* ---------------- Premium card surface ----------------
   One treatment shared by the coach, price and testimonial cards so they read
   as one family. A flat fill plus a 1px grey border is what made them look
   like a template; this adds a lit top edge, a soft interior gradient, and a
   hover state that lifts rather than just changing a border colour. */
.coach-card,
.price-card,
.testimonial-card,
.day-pass-card {
    position: relative;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.035) 0%, transparent 38%),
        var(--color-bg-alt);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow),
                border-color var(--transition-slow);
    overflow: hidden;
}
/* Hairline across the top edge that ignites on hover. Drawn as a
   pseudo-element so it can sit above the card's own overflow clip. */
.coach-card::after,
.price-card::after,
.testimonial-card::after,
.day-pass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}
.coach-card:hover,
.price-card:hover,
.testimonial-card:hover,
.day-pass-card:hover,
.coach-card:focus-visible,
.price-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(212, 160, 23, 0.4);
}
.coach-card:hover::after,
.price-card:hover::after,
.testimonial-card:hover::after,
.day-pass-card:hover::after,
.coach-card:focus-visible::after { opacity: 1; }

/* ---- Coach card ---- */
.coach-card { display: flex; flex-direction: column; }
.coach-card .coach-photo-wrap { position: relative; aspect-ratio: 4 / 5; margin-bottom: 0; }
/* Gradient foot on the photo so the name below never sits against a bright
   patch of the portrait, whatever the crop. */
.coach-card .coach-photo-wrap::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent 0%, rgba(21,21,23,0.92) 100%);
    pointer-events: none;
}
.coach-card img { transition: transform 620ms var(--ease-out); }
.coach-card:hover img { transform: scale(1.07); }
.coach-card-body {
    padding: var(--space-3) var(--space-3) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.coach-card h3 { font-size: 1.15rem; letter-spacing: 0.6px; }
.coach-card p { color: var(--color-muted); font-size: 0.9rem; padding: 0; }
.coach-card-cue {
    margin-top: var(--space-2);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--color-accent);
    transition: color var(--transition);
}
/* The rule grows on hover by scaling from its left edge rather than by
   animating `width`. Same result, but it composites instead of forcing a
   layout pass on every frame — and the cue sits inside a card that is also
   lifting and scaling its photograph at the same moment. */
.coach-card-cue::after {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0.583); /* 14px of the 24px box */
    transform-origin: left center;
    transition: transform var(--transition);
}
.coach-card:hover .coach-card-cue::after { transform: scaleX(1); }

/* ---- Price card ---- */
.price-card { padding: var(--space-4) var(--space-3); text-align: center; }
.price-card h3 {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--color-muted);
    margin-bottom: var(--space-2);
}
.price-card .price {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}
/* The featured plan is the one decision the grid is trying to help with, so
   it gets the gold edge, the wash and a permanent lit top rule. */
.price-card.is-featured {
    border-color: rgba(212, 160, 23, 0.55);
    background:
        linear-gradient(180deg, rgba(212,160,23,0.12) 0%, transparent 45%),
        var(--color-bg-alt);
    box-shadow: var(--shadow-card), var(--glow-accent);
}
.price-card.is-featured::after { opacity: 1; }
.price-card.is-featured .price { color: var(--color-accent); }
.price-card .badge { z-index: 2; }

/* ---- Testimonial card ---- */
.testimonial-card blockquote { font-size: 1rem; }

/* The Best Value badge straddles the card's top edge, so this card cannot
   clip its overflow the way the image cards do. The lit hairline is inset by
   the corner radius instead, so its ends stay inside the rounded corners. */
.price-card { overflow: visible; }
.price-card::after { left: var(--radius-lg); right: var(--radius-lg); }

/* The shared .coach-card/.price-card base centers its text. That suits the
   price cards, but on a coach card it left the name centerd and the "View
   profile" cue — an inline-flex child — hard against the left edge. The body
   is left-aligned throughout instead, which also reads more editorial. */
.coach-card-body { align-items: flex-start; text-align: left; }

/* The CTA band and the footer were both --color-bg-alt, so they merged into
   one long lighter slab with only a hairline between them. Dropping the
   footer to the page background separates the two and lets the CTA band read
   as the last piece of content rather than as the top of the footer. */
.site-footer { background: var(--color-bg); }

/* ---------------- Page masthead ----------------
   Was a thin bordered strip with a 2.8rem heading — the same weight as a
   section heading further down the page, so arriving on an inner page felt
   like landing mid-document. */
.page-header {
    padding: calc(var(--space-6) - 8px) 0 var(--space-5);
    background:
        radial-gradient(70% 160% at 12% 0%, rgba(212,160,23,0.10) 0%, transparent 62%),
        linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    overflow: hidden;
}
.page-header .container { position: relative; z-index: 1; }
.page-header-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}
.page-header-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-accent);
}
.page-header-sub {
    color: var(--color-muted);
    margin-top: var(--space-2);
    font-size: 1.05rem;
    max-width: 56ch;
}
/* 404 keeps the old centerd treatment — there is no content to align to. */
.not-found-section + .page-header,
body .page-header:has(h1:only-child) { text-align: center; }

/* ---------------- Contact page ---------------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--space-4);
    align-items: start;
}
.contact-panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.035) 0%, transparent 38%),
        var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: var(--space-4) var(--space-3);
}
.contact-list { list-style: none; display: flex; flex-direction: column; }
.contact-row {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--hairline);
}
.contact-row:first-child { padding-top: 0; }
.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--wash-accent);
    border: 1px solid rgba(212,160,23,0.22);
    color: var(--color-accent);
}
.contact-icon svg { width: 19px; height: 19px; }
.contact-row-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-muted);
}
.contact-value { color: var(--color-text); font-size: 1rem; line-height: 1.5; }
a.contact-value { transition: color var(--transition); }
a.contact-value:hover { color: var(--color-accent); }
.contact-cta {
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-accent);
    opacity: 0.85;
}
.contact-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--hairline);
}
.contact-actions .btn { margin-top: 0; flex: 1 1 auto; }

.contact-map {
    margin-top: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    aspect-ratio: 4 / 3;
}
/* The embed is a bright daylight map dropped into a dark page. Knocking the
   brightness and saturation down settles it into the palette without making
   the streets unreadable; it returns to full colour on hover, when the
   visitor is actually using it. */
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: saturate(0.75) brightness(0.86) contrast(1.05);
    transition: filter var(--transition-slow);
}
.contact-map:hover iframe { filter: none; }

@media (max-width: 860px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-map { aspect-ratio: 16 / 10; }
}

/* ---------------- Membership page ----------------
   The page was one long <section> with four centerd h2s stacked inside it, so
   there was no rhythm: four headings, four grids, four identical buttons. Each
   block is now its own band, and alternating bands give the page a pulse. */
.pricing-block { padding: var(--space-section-tight) 0; }
.pricing-block--alt {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.pricing-block .section-head { margin-bottom: var(--space-4); }

/* Left-aligned to match the section heads above them; a centerd button under
   a left-aligned heading read as a stray. */
.pricing-cta { text-align: left; margin: var(--space-4) 0 0; }
.pricing-cta .btn { margin-top: 0; }

.day-pass-grid { justify-content: start; }
.day-pass-card { border-color: rgba(212, 160, 23, 0.45); }
.day-pass-card .price {
    color: var(--color-accent);
    font-variant-numeric: tabular-nums;
}

.sub-heading {
    margin: var(--space-5) 0 var(--space-2);
    text-align: left;
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    color: var(--color-muted);
}
.fee-list { max-width: 560px; margin: 0; }
.fee-list li { border-bottom-color: var(--hairline); }
.fee-list-note { justify-content: flex-start !important; }
.fee-price {
    color: var(--color-text);
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
}

.pricing-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pricing-table td:last-child {
    font-family: var(--font-display);
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}
.pricing-table tbody tr:hover { background: rgba(255,255,255,0.03); }

/* Under 560px three columns cannot hold a package name, a validity and a
   price without wrapping every cell to two lines. Each row becomes its own
   labelled block instead. */
@media (max-width: 560px) {
    .pricing-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .pricing-table, .pricing-table tbody, .pricing-table tr, .pricing-table td { display: block; width: 100%; }
    .pricing-table tr {
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        background: var(--color-bg-alt);
        padding: var(--space-2);
        margin-bottom: var(--space-2);
    }
    .pricing-table td {
        display: flex;
        justify-content: space-between;
        gap: var(--space-2);
        border-bottom: 1px solid var(--hairline);
        padding: 10px 0;
        text-align: right;
    }
    .pricing-table td:last-child { border-bottom: 0; }
    .pricing-table td::before {
        content: attr(data-label);
        font-family: var(--font-display);
        font-size: 0.7rem;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--color-muted);
        text-align: left;
        flex-shrink: 0;
    }
}

/* ---------------- Facility fan: mobile affordance ----------------
   Below 900px the fan becomes a horizontal scroller. It always was, but
   nothing said so: the first panel expanded to 220px and the remaining four
   sat entirely off-screen with no fade, no peek and no hint, so on a phone the
   posing room, shake bar and massage chairs may as well not have existed. */
.facility-fan-wrap { position: relative; }
.facility-fan-hint { display: none; }

@media (max-width: 899px) {
    /* Fade the right edge so the panels visibly continue past the frame.
       pointer-events:none keeps the panels underneath tappable. */
    .facility-fan-wrap::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        width: 56px;
        pointer-events: none;
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        background: linear-gradient(90deg, transparent 0%, rgba(11,11,12,0.85) 100%);
        z-index: 3;
    }
    /* Wider collapsed panels: at 70px the vertical labels were a column of
       letters, and only two fitted on screen. */
    .fan-panel { flex: 0 0 84px; min-width: 84px; }
    .fan-panel.is-active { flex: 0 0 210px; min-width: 210px; }

    .facility-fan-hint {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: var(--space-2);
        font-family: var(--font-display);
        font-size: 0.68rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--color-muted);
    }
    .facility-fan-hint::after {
        content: '→';
        animation: fan-hint-nudge 1.8s var(--ease-out) infinite;
    }
    @keyframes fan-hint-nudge {
        0%, 100% { transform: translateX(0); opacity: 0.55; }
        50%      { transform: translateX(5px); opacity: 1; }
    }
}

/* .section-head is a flex column, so its children are sized to their content
   rather than to the column's width. A lede capped at 56ch therefore laid out
   at ~400px inside a 342px container on a 390px phone and ran off the right
   edge. Children are capped to the column instead. */
.section-head > * { max-width: 100%; }

/* ---------------- Header: tablet nav fix ----------------
   The logo is a 4:1 wordmark, but .logo was a shrinkable flex item. Between
   721px (where the hamburger used to appear) and ~880px the horizontal nav
   needed more room than was left, so flexbox took it out of the logo: the
   wordmark rendered at 41x34 — a 1.19:1 box holding a 4:1 image — and read as
   an unidentifiable smudge. Two independent fixes, because either alone
   leaves a bad state:
     1. the logo never shrinks, so the mark keeps its proportions;
     2. the nav collapses to the hamburger while there is still room for it,
        rather than after the row has already overflowed. */
.logo, .logo-mark { flex-shrink: 0; }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(11, 11, 12, 0.97);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        padding: var(--space-2);
        gap: 4px;
        display: none;
        /* With nine languages the open menu is taller than a phone. It
           scrolls inside itself, and stops at its own ends instead of
           dragging the page behind it. */
        max-height: calc(100vh - var(--header-h));
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .main-nav.is-open { display: flex; }
    /* 48px tall rows — the old 12px padding gave a 40px target. */
    .main-nav a { padding: 14px 16px; }
    .main-nav a.nav-cta { text-align: center; margin-top: 8px; }
    /* The center-out underline is a desktop affordance; in a stacked menu it
       reads as a stray rule under every row. */
    .main-nav a:not(.nav-cta)::after { display: none; }
}

/* ---------------- Wide desktop ----------------
   At 1920 the 1160px container left 373px of empty black down each side and
   the page read as a narrow column adrift on a big monitor. The container
   widens in one step; the measure-limited elements (section ledes, body copy)
   are capped in ch units, so lines do not get longer — only the images,
   grids and bands get bigger. */
@media (min-width: 1500px) {
    :root { --container-width: 1320px; }
}

/* The stats grid used auto-fit with five items, which laid out six tracks and
   collapsed the sixth to 0 — leaving its gap behind and pushing the row 24px
   off-center. Flex wrapping has no phantom tracks, and it handles the count
   changing when a setting is blank. */
.stats-grid { display: flex; flex-wrap: wrap; }
.stat { flex: 1 1 150px; }

/* ---------------- Gallery page grid ----------------
   The gallery page reused the homepage's horizontal strip, so the page whose
   whole purpose is 116 photographs showed four at a time. The .gallery-item
   sizing below has to undo the strip's fixed 280px flex basis. */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: var(--space-2);
}
.gallery-grid .gallery-item { width: auto; flex: initial; }
.gallery-grid .gallery-item img { aspect-ratio: 4 / 5; }

/* Caption over the image instead of in a bar beneath it, so the tiles stay a
   consistent height whether or not a photo has one. */
.gallery-grid .gallery-item { position: relative; }
.gallery-grid .gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--space-4) 12px 12px;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--color-text);
    background: linear-gradient(180deg, transparent 0%, rgba(11,11,12,0.9) 60%);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--transition), transform var(--transition);
}
.gallery-grid .gallery-item:hover figcaption,
.gallery-grid .gallery-item:focus-visible figcaption { opacity: 1; transform: translateY(0); }
.gallery-grid .gallery-item img { transition: transform 620ms var(--ease-out); }
.gallery-grid .gallery-item:hover img { transform: scale(1.06); }

.gallery-load-more-wrap { text-align: center; margin-top: var(--space-4); }

@media (max-width: 560px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    /* Hover cannot reveal a caption on a touch screen, so show it. */
    .gallery-grid .gallery-item figcaption { opacity: 1; transform: none; }
}
/* Touch devices of any size have no hover, same reasoning. */
@media (hover: none) {
    .gallery-grid .gallery-item figcaption { opacity: 1; transform: none; }
}

/* ---------------- Modal & form polish ----------------
   The dialog appeared instantly and the fields were flat boxes. Both work; a
   form that someone is handing over their name and number in should feel a
   little more considered than that. */
.trial-modal-backdrop {
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modal-fade 220ms var(--ease-out);
}
.trial-modal-dialog {
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 30%),
        var(--color-bg-alt);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04);
    padding: var(--space-4) var(--space-4) var(--space-4);
    animation: modal-rise 320ms var(--ease-out);
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise {
    from { opacity: 0; transform: translateY(18px) scale(0.985); }
    to   { opacity: 1; transform: none; }
}

.trial-modal-dialog h3 { font-size: 1.5rem; letter-spacing: -0.2px; }
/* 44px hit area and a visible resting state — it was a bare glyph before. */
.trial-modal-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.trial-modal-close:hover { background: rgba(255,255,255,0.12); transform: rotate(90deg); }

.trial-form label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-top: var(--space-3);
}
.trial-form input, .trial-form textarea {
    padding: 13px 14px;
    border-radius: var(--radius-md);
    background: rgba(0,0,0,0.35);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.trial-form input::placeholder, .trial-form textarea::placeholder { color: #6e6e72; }
.trial-form input:hover, .trial-form textarea:hover { border-color: #3a3a3f; }
.trial-form input:focus, .trial-form textarea:focus {
    background: rgba(0,0,0,0.55);
    box-shadow: 0 0 0 3px rgba(212,160,23,0.18);
}
.trial-form textarea { resize: vertical; min-height: 84px; }
.trial-form > button { width: 100%; margin-top: var(--space-4); }

/* The picker button has to keep matching the input's height, which just
   changed. */
.cc-button { padding: 13px 10px; border-radius: var(--radius-md); }

.trial-done { padding: var(--space-4) 0; }
.trial-done-title { font-size: 1.4rem; }

/* The dialog scrolls when the form is taller than the viewport, and the
   default scrollbar renders as a bright light-mode bar down the right edge of
   a dark panel. */
.trial-modal-dialog { scrollbar-width: thin; scrollbar-color: #3a3a3f transparent; }
.trial-modal-dialog::-webkit-scrollbar { width: 8px; }
.trial-modal-dialog::-webkit-scrollbar-track { background: transparent; }
.trial-modal-dialog::-webkit-scrollbar-thumb {
    background: #3a3a3f;
    border-radius: 999px;
    border: 2px solid var(--color-bg-alt);
}
.trial-modal-dialog::-webkit-scrollbar-thumb:hover { background: #4d4d53; }

/* ---------------- No-JavaScript safety net ----------------
   Five classes start at opacity:0 and wait for script to reveal them —
   .reveal (now on ~30 elements across six pages), plus the homepage's four
   GSAP-driven ones. With scripting off nothing ever revealed them, so whole
   sections were invisible: the stats band, every section heading, the closing
   CTA, all four membership blocks. Gating the hidden state on html.js means
   the unscripted document just shows its content. */
html:not(.js) .reveal,
html:not(.js) .hero-line,
html:not(.js) .mission-line,
html:not(.js) body.homepage-cinematic .fan-panel,
html:not(.js) body.homepage-cinematic .coach-card,
html:not(.js) body.homepage-cinematic .price-card {
    opacity: 1 !important;
    transform: none !important;
}

/* ---------------- Reduced motion ----------------
   One block covering everything, placed last so it wins. The two infinite
   animations added in this pass — the hero scroll dot and the swipe hint —
   matter most here: a looping movement that never stops is the kind that
   causes trouble for vestibular disorders. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    /* The transition is what normally brings these in, and it has just been
       reduced to nothing — so state them as visible outright rather than
       relying on a 0.01ms transition to land. */
    .reveal, .hero-line, .mission-line,
    body.homepage-cinematic .fan-panel,
    body.homepage-cinematic .coach-card,
    body.homepage-cinematic .price-card {
        opacity: 1 !important;
        transform: none !important;
    }
    .facility-fan-hint::after { animation: none; }
    .btn::before { display: none; }
    .coach-card:hover img,
    .gallery-grid .gallery-item:hover img,
    .fac-gallery figure:hover img,
    .fac-compact figure:hover img { transform: none; }
    .trial-modal-close:hover { transform: none; }
}

/* ---------------- Touch target sizes ----------------
   Audited at 390px: the hamburger was 40x40, the section "view all" links
   37px tall, and the footer links 23px. 44px is the floor for a reliable
   thumb tap. */
.nav-toggle { width: 44px; height: 44px; }

.link-arrow { min-height: 44px; }

/* The links sit in a flex column with a 10px gap; the gap comes off as each
   link grows, so the block keeps roughly the height it had. */
.footer-col { gap: 2px; }
.footer-col h4 { margin-bottom: var(--space-1); }
.footer-col a {
    display: flex;
    align-items: center;
    min-height: 44px;
    transition: color var(--transition), transform var(--transition);
}
/* translate, not padding-left: the nudge is the same but it does not reflow
   the column on every frame of the hover. */
.footer-col a:hover { transform: translateX(4px); }
/* Spans are static text, not targets — they keep the tighter rhythm. */
.footer-col span { padding: 3px 0; }

/* The shakes band kept the old fixed 96px top rhythm while every other
   section moved to the fluid one, which left a visibly bigger gap above it
   than anywhere else on the page. */
.shakes-menu { padding: var(--space-section) 0 var(--space-4); }

/* ---------------- Facility fan: awaiting-photo panels ----------------
   Three of the six facilities have no photograph yet. The placeholder text
   sat in the middle of the panel and collided with the vertical name label
   below it, so those panels read as broken rather than as pending. The note
   moves to the top of the panel, well clear of the label, and the panel gets
   a quiet diagonal hatch so it is legible as a deliberate empty state. */
.fan-panel.no-photo {
    display: block;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,0.022) 0px,
            rgba(255,255,255,0.022) 1px,
            transparent 1px,
            transparent 7px
        ),
        var(--color-bg-alt);
}
.fan-placeholder-text {
    position: absolute;
    top: var(--space-3);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 16px);
    font-size: 0.6rem;
    letter-spacing: 1.2px;
    color: #74747a;
    padding: 4px 8px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    line-height: 1.35;
}
/* The panel is narrow when collapsed, so the two-word note reads vertically
   like the label rather than fighting it for horizontal room. */
.fan-panel.no-photo:not(.is-active) .fan-placeholder-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    top: var(--space-2);
    padding: 8px 4px;
}

/* ---------------- Coach & pricing grid column counts ----------------
   Both grids held four items in `repeat(auto-fit, minmax(240px, 1fr))`, which
   resolves to three columns between roughly 900px and 1150px — so at 1024 the
   fourth card dropped onto a row of its own. On the pricing grid that orphan
   was the featured "Best Value" plan, sitting alone under the other three.

   auto-fit cannot avoid this for a four-item set: whatever minimum makes four
   fit at 1024 still resolves to three at 768. The counts are explicit instead,
   and they step 4 -> 2 -> 1 so a row is never left holding a single card. */
.coach-grid,
.pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* The two grids leave four-up at different points because they are holding
   different things. A pricing card carries three lines of figures and wants
   the width; a portrait does not, and a four-up row of portraits at 1024 is
   about 220px each -- wider than the same card gets on a phone. Dropping both
   at 1100 made each coach card half the container: 469px wide, 768px tall, so
   four coaches stacked to 1891px against neighbouring sections of 620-800.
   The section read as a hole in the middle of the page. */
@media (max-width: 1100px) {
    .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* Two-up portraits are still wide enough that a 4:5 crop towers. A square
   keeps the card proportionate; object-position already centres the faces. */
@media (max-width: 940px) and (min-width: 481px) {
    .coach-card .coach-photo-wrap { aspect-ratio: 1 / 1; }
}

/* Single column is a phone layout, not a small-tablet one. Going one-up at
   620 gave a 572px card with a 715px portrait -- four of those ran the
   section to 4034px, five screens to meet four coaches. Two-up holds until
   the cards would genuinely cramp, and the stack is capped and centred so a
   phone card stays a card rather than a full-bleed poster. */
@media (max-width: 480px) {
    .coach-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 400px;
        margin-inline: auto;
    }
}

/* ---------------- Team band ----------------
   A slow horizontal marquee of staff portraits. Two considerations shaped it:

   1. It must read as finished with no names at all, because that is how it
      ships. So the photographs carry the section and a caption is an addition,
      not a hole when absent.
   2. A loop that never stops is the motion most likely to cause trouble, so it
      pauses on hover and on keyboard focus, and stops outright under
      prefers-reduced-motion — where it becomes a normal scrollable strip
      rather than a frozen one with content stranded off-screen. */
.team-band { padding: var(--space-section) 0; overflow: hidden; }
.team-band .section-head { margin-bottom: var(--space-5); }

.team-marquee {
    position: relative;
    /* Full-bleed: the strip runs edge to edge while the heading above it stays
       in the container, which is what makes the band feel like a band. */
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.team-track {
    display: flex;
    gap: var(--space-2);
    width: max-content;
    /* The track holds two identical copies, so translating by exactly -50%
       lands the second copy where the first began and the restart is
       invisible. Any other distance shows a seam. */
    animation: team-scroll 68s linear infinite;
}
@keyframes team-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.team-marquee:hover .team-track,
.team-marquee:focus-within .team-track { animation-play-state: paused; }

.team-card {
    position: relative;
    flex: 0 0 auto;
    width: clamp(190px, 21vw, 280px);
    aspect-ratio: 4 / 5;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    transition: border-color var(--transition-slow), box-shadow var(--transition-slow);
}
.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Slightly knocked back so the strip reads as one object at rest, then
       each card comes up to full under the pointer. */
    filter: saturate(0.88) brightness(0.82);
    transform: scale(1.02);
    transition: filter var(--transition-slow), transform 700ms var(--ease-out);
}
.team-card:hover {
    border-color: rgba(212, 160, 23, 0.45);
    box-shadow: var(--shadow-card-hover);
}
.team-card:hover img {
    filter: none;
    transform: scale(1.06);
}

/* Caption only exists on a named card. The gradient comes with it, so an
   unnamed portrait is a clean photograph rather than a photograph with an
   empty bar across the bottom. */
.team-card figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: var(--space-4) var(--space-2) var(--space-2);
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 11, 12, 0.92) 65%);
}
.team-name {
    font-family: var(--font-display);
    font-size: 0.98rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--color-text);
}
.team-role {
    font-size: 0.76rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
    /* Stopping the animation alone would strand the second half of the track
       off-screen with no way to reach it. It becomes a scrollable strip. */
    .team-track { animation: none; width: auto; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
    .team-track::-webkit-scrollbar { display: none; }
    .team-card img { filter: none; transform: none; }
    .team-marquee {
        -webkit-mask-image: none;
        mask-image: none;
        width: auto;
        margin-left: 0;
        transform: none;
        padding: 0 24px;
    }
}

/* ---------------- Membership: value, benefits, recovery ----------------
   The prices were legible but did none of the reader's arithmetic. A longer
   plan is only visibly better value once the page divides it out. */
.price-permonth {
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}
.price-permonth span {
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    color: var(--color-muted);
}
.price-saving {
    margin-top: var(--space-2);
    padding: 6px 12px;
    display: inline-block;
    border-radius: 999px;
    background: var(--wash-accent);
    border: 1px solid rgba(212, 160, 23, 0.32);
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-accent);
    line-height: 1.3;
}
/* The featured card carries the strongest saving, so its badge is filled
   rather than outlined — it should read as the answer, not another option. */
.price-card.is-featured .price-saving {
    background: var(--gradient-accent);
    border-color: transparent;
    color: var(--color-accent-text);
}

/* ---- What membership includes ---- */
.benefits {
    margin-top: var(--space-5);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 40%),
        var(--color-bg);
}
.benefits-title {
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: var(--space-3);
}
.benefits-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--space-2) var(--space-3);
}
.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--color-text);
}
.benefit-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--wash-accent);
    border: 1px solid rgba(212, 160, 23, 0.22);
    color: var(--color-accent);
}
.benefit-icon svg { width: 18px; height: 18px; }

/* ---- Day pass detail ---- */
.day-pass-includes {
    list-style: none;
    margin-top: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}
.day-pass-includes li {
    position: relative;
    padding-left: 20px;
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.45;
}
.day-pass-includes li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.45em;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: rotate(-45deg);
}

/* ---- Recovery ----
   Cards, not a price list: recovery and personal training can both be called
   "1 Session", and a bare label beside a number is exactly how a reader ends
   up attaching the wrong price to the wrong service. */
.recovery-grid {
    display: grid;
    /* Fills the row: eight packages sit as two rows of four on desktop. */
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: var(--space-3);
}
.recovery-card {
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.035) 0%, transparent 38%),
        var(--color-bg);
    box-shadow: var(--shadow-card);
}
.recovery-service {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.66rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-1);
}
.recovery-card h3 { font-size: 1.05rem; letter-spacing: 0.5px; margin-bottom: 4px; }
.recovery-card .price {
    font-family: var(--font-display);
    font-size: 1.9rem;
    line-height: 1;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}
.recovery-validity { margin-top: 6px; font-size: 0.85rem; color: var(--color-muted); }
.recovery-card--pending {
    border-style: dashed;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.recovery-card--pending .recovery-service { color: var(--color-muted); }
.recovery-pending-note { font-size: 0.88rem; color: var(--color-muted); line-height: 1.5; }

/* ---------------- Contact channel chooser ----------------
   Opens above the floating button. Direct channels first, the form last,
   because tapping "call" beats composing a subject line for most of the
   questions a gym actually gets. */
.contact-channels {
    position: fixed;
    right: var(--space-3);
    bottom: calc(var(--space-3) + 60px);
    z-index: 151;
    width: min(300px, calc(100vw - 32px));
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    background: rgba(21, 21, 23, 0.97);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: contact-channels-in 220ms var(--ease-out);
}
@keyframes contact-channels-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
.contact-channels-title {
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--color-muted);
    padding: 6px 10px 10px;
}
.contact-channel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    /* 48px of tappable height per row — this is a phone control first. */
    min-height: 48px;
    transition: background var(--transition);
}
.contact-channel:hover,
.contact-channel:focus-visible { background: rgba(255, 255, 255, 0.06); }
.contact-channel-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--wash-accent);
    border: 1px solid rgba(212, 160, 23, 0.22);
    color: var(--color-accent);
}
.contact-channel-icon svg { width: 18px; height: 18px; }
.contact-channel-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.contact-channel-label { font-size: 0.92rem; color: var(--color-text); }
.contact-channel-meta { font-size: 0.76rem; color: var(--color-muted); }

/* The button turns into a close affordance while the panel is open. */
.quick-contact.is-open { background: var(--color-accent-hover); }

@media (prefers-reduced-motion: reduce) {
    .contact-channels { animation: none; }
}

/* ---------------- PT value ---------------- */
.pricing-table--pt tbody tr.is-best-value { background: rgba(212, 160, 23, 0.07); }
.pricing-table--pt tbody tr.is-best-value td { border-bottom-color: rgba(212, 160, 23, 0.25); }
.pt-best-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--gradient-accent);
    color: var(--color-accent-text);
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.pt-saving { display: inline-flex; align-items: baseline; gap: 8px; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.pt-saving-pct {
    font-family: var(--font-display);
    font-size: 0.66rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(212, 160, 23, 0.35);
    background: var(--wash-accent);
}
.pt-saving-none { color: #5c5c5f; }

/* The largest package is the one a reader is least likely to work out for
   themselves, so it is also stated in words below the table. */
.pt-highlight {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 160, 23, 0.4);
    background:
        radial-gradient(80% 140% at 0% 0%, rgba(212,160,23,0.16) 0%, transparent 62%),
        var(--color-bg-alt);
    box-shadow: var(--glow-accent);
}
.pt-highlight-figure { display: flex; align-items: baseline; gap: 6px; flex-shrink: 0; }
.pt-highlight-pct {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
    color: var(--color-accent);
    font-variant-numeric: tabular-nums;
}
.pt-highlight-off {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
}
.pt-highlight-copy h3 { font-size: 1.15rem; letter-spacing: 0.4px; margin-bottom: 6px; }
.pt-highlight-copy p { color: var(--color-muted); font-size: 0.98rem; line-height: 1.6; max-width: 52ch; }
.pt-highlight-copy strong { color: var(--color-text); }

/* ---------------- One-time fees ----------------
   Boxed so they read as a deliberate disclosure rather than small print
   tucked under the prices. */
.fees-panel {
    margin-top: var(--space-5);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    /* Capped because a fee list stretched across 1160px reads as a spreadsheet.
       620px left a stranded card with 516px of dead space beside it at 1440.
       Centring closed the gap but made this the only centred element on a page
       whose section heads and CTA buttons all start at the left edge, so it
       matches .section-head's measure instead: same left edge, same right edge,
       and the space beyond reads as the page's column rather than as a hole. */
    max-width: 720px;
}
.fees-title { font-size: 1rem; letter-spacing: 0.6px; margin-bottom: 4px; }
.fees-note { color: var(--color-muted); font-size: 0.88rem; margin-bottom: var(--space-3); }
.fees-grid { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
}
/* The last row's rule and the total's rule stacked into a double line with a
   sliver of panel between them. The total already draws the divider. */
.fee-item:last-child { border-bottom: 0; }
.fee-item-label { color: var(--color-text); }
.fee-item-price { font-family: var(--font-display); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.fees-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(212, 160, 23, 0.28);
}
.fees-total span { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--color-muted); }
.fees-total strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-accent); font-variant-numeric: tabular-nums; }
/* A fee that is not part of joining, under the total and quieter than it. */
.fees-later { margin-top: var(--space-3); opacity: 1; }
.fees-later .fee-item-label, .fees-later .fee-item-price { color: var(--color-muted); }
.fees-later-note { margin: 6px 0 0; }

/* ---------------- Recovery: what is free ---------------- */
.recovery-free {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 160, 23, 0.4);
    background:
        radial-gradient(70% 140% at 0% 0%, rgba(212,160,23,0.14) 0%, transparent 60%),
        var(--color-bg);
}
.recovery-free-tag {
    flex-shrink: 0;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--gradient-accent);
    color: var(--color-accent-text);
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}
.recovery-free h3 { font-size: 1.05rem; letter-spacing: 0.4px; margin-bottom: 4px; }
.recovery-free p { color: var(--color-muted); font-size: 0.92rem; }

/* ---- Recovery: NEXA Wellness physiotherapy ----
   A partner service, so it gets its own introduction rather than looking like
   one more KSYN price row: who NEXA is, and the four steps every plan follows.
   The steps are a real sequence -- assessment always comes first -- so they
   are numbered, and the assessment card below is marked as the place to start. */
.nexa {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: var(--space-4);
    align-items: start;
    margin: var(--space-4) 0 var(--space-3);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 140% at 0% 0%, var(--wash-accent) 0%, transparent 55%),
        var(--color-bg);
}
.nexa-mark {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}
.nexa-mark span {
    display: block;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 7px;
    color: var(--color-accent);
    text-transform: uppercase;
}
.nexa-intro h3 { font-size: 1.25rem; letter-spacing: 0.5px; margin-bottom: var(--space-1); }
.nexa-intro p:last-child { color: var(--color-muted); line-height: 1.65; max-width: 48ch; }
.nexa-path {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: nexa;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
}
.nexa-path li {
    counter-increment: nexa;
    position: relative;
    padding: var(--space-2) var(--space-2) var(--space-2) 52px;
    border-top: 1px solid var(--hairline);
}
.nexa-path li::before {
    content: "0" counter(nexa);
    position: absolute;
    left: 0;
    top: var(--space-2);
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1;
    color: var(--color-accent);
    font-variant-numeric: tabular-nums;
}
.nexa-path strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.nexa-path span { display: block; font-size: 0.88rem; color: var(--color-muted); line-height: 1.5; }
.recovery-card--start { border-color: rgba(212, 160, 23, 0.45); box-shadow: var(--glow-accent); }
.recovery-note {
    margin-top: var(--space-2);
    font-size: 0.82rem;
    color: var(--color-muted);
    max-width: 70ch;
}
@media (max-width: 860px) {
    .nexa { grid-template-columns: 1fr; gap: var(--space-3); padding: var(--space-3); }
}
@media (max-width: 480px) {
    .nexa-path { grid-template-columns: 1fr; }
}

/* ---------------- Terms and privacy notice ----------------
   Long-form reading, not marketing: one measured column, generous line height,
   and headings that are only just louder than the text around them. */
.legal-doc {
    max-width: 72ch;
    color: var(--color-muted);
    line-height: 1.85;
}
.legal-doc h2 {
    /* The site centres its section headings. In a document you read top to
       bottom that loses the left edge your eye follows, so these stay flush. */
    text-align: left;
    margin: var(--space-4) 0 var(--space-2);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--color-text);
}
.legal-doc h2::after { content: none; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p { margin-bottom: var(--space-2); }
.legal-doc ul {
    margin: 0 0 var(--space-2);
    padding-left: 1.25rem;
    list-style: disc;
}
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { color: var(--color-accent); }
.legal-foot {
    max-width: 72ch;
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-muted);
}
.legal-foot a { color: var(--color-accent); }

/* A signed-in member does not need to message anybody to buy: this band sits
   under the masthead on the membership page and goes straight to checkout. */
.member-band {
    border-bottom: 1px solid var(--color-border);
    background: rgba(212, 160, 23, 0.06);
}
.member-band .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
}
.member-band p { margin: 0; font-size: 0.9rem; color: var(--color-text); }

/* ---- Lightbox: stepping through photos, and looking closely ----
   The pane clips a magnified photo so it is dragged around inside its own
   frame instead of spilling over the caption and the controls. */
.image-lightbox-pane {
    overflow: hidden;
    border-radius: var(--radius-sm);
    line-height: 0;
    touch-action: none;
}
.image-lightbox-pane img {
    transform-origin: center center;
    transition: transform 0.18s var(--ease-out);
    will-change: transform;
    user-select: none;
}
/* Only offer the grab cursor when there is somewhere to drag to. */
.image-lightbox-pane.is-zoomed { cursor: grab; }
.image-lightbox-pane.is-zoomed:active { cursor: grabbing; }
/* A drag would otherwise fight the browser's own image-dragging. */
.image-lightbox-pane.is-zoomed img { transition: none; }

.image-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: rgba(11, 11, 12, 0.82);
    color: var(--color-text);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background var(--transition), border-color var(--transition);
    z-index: 2;
}
.image-lightbox-nav svg { width: 24px; height: 24px; }
.image-lightbox-nav:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-text); }
.image-lightbox-nav:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.image-lightbox-prev { left: -14px; }
.image-lightbox-next { right: -14px; }

.image-lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--space-2);
}
.image-lightbox-bar button {
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1;
    transition: background var(--transition), border-color var(--transition), opacity var(--transition);
}
.image-lightbox-bar button:hover:not(:disabled) { border-color: var(--color-accent); color: var(--color-accent); }
.image-lightbox-bar button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.image-lightbox-bar button:disabled { opacity: 0.35; cursor: default; }
.image-lightbox-reset { font-size: 0.78rem !important; letter-spacing: 0.04em; }
.image-lightbox-zoom-level,
.image-lightbox-count {
    font-size: 0.78rem;
    color: var(--color-muted);
    font-variant-numeric: tabular-nums;
    min-width: 52px;
    text-align: center;
}
.image-lightbox-count { min-width: auto; margin-left: var(--space-2); }

@media (max-width: 640px) {
    /* Off the photo's corners on a phone, where 52px of button either side
       would eat the picture. */
    .image-lightbox-prev { left: 2px; }
    .image-lightbox-next { right: 2px; }
    .image-lightbox-nav { width: 44px; height: 44px; }
}

/* An arrow that cannot go anywhere reads as disabled rather than sitting there
   live and doing nothing when pressed. */
.gallery-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}
.gallery-arrow:disabled:hover {
    background: rgba(11,11,12,0.85);
    border-color: var(--color-border);
    color: var(--color-text);
}

/* ---- Follow links in the footer ----
   An icon beside the name, so the column reads as social accounts at a glance
   rather than as two more text links among the others. */
.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}
.footer-social svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--color-accent);
    transition: transform var(--transition);
}
.footer-social:hover svg { transform: scale(1.12); }
/* A name with no link yet is dimmed, so it does not invite a click that goes
   nowhere. */
.footer-col span.footer-social { color: #5c5c5f; }
.footer-col span.footer-social svg { color: #5c5c5f; }

/* Stacked hero buttons share one width. Left to their own content they came out
   three different lengths down the middle of the screen, which reads as sloppy
   rather than as a hierarchy. */
@media (max-width: 560px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin-inline: auto;
    }
    .hero-actions .btn { width: 100%; }
}

/* ---- Stats band on a phone ----
   The separator is drawn as a left hairline on "every stat but the first",
   which is right for a single row and wrong the moment the band wraps: the
   first item of each new row gets a line with nothing to its left. Two fixed
   columns, and the line is drawn only on the right-hand one. */
@media (max-width: 560px) {
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2) 0;
    }
    .stat { flex: initial; }
    .stat + .stat::before { content: none; }
    .stat:nth-child(even)::before {
        content: '';
        position: absolute;
        left: 0;
        top: 18%;
        bottom: 18%;
        width: 1px;
        background: var(--hairline);
    }
    /* An odd one out sits across both columns, so it has no left neighbour. */
    .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .stat:last-child:nth-child(odd)::before { content: none; }
}

/* ---- The facility modal's header ----
   Title, blurb and close button stay at the top while the photographs scroll
   under them. Without this the only way out of a long facility was to scroll
   all the way back up to find the X. */
.facility-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    /* Bleeds sideways to the dialog's edges so the rule under it spans the
       full width; no negative top margin, which would lift it back off the
       edge it is supposed to sit on. */
    margin: 0 calc(var(--space-4) * -1) var(--space-3);
    padding: var(--space-4) var(--space-4) var(--space-2);
    /* Opaque, or the photos show through as they pass behind it. */
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}
.facility-modal-head h3 { margin-bottom: 4px; }
.facility-modal-head .facility-modal-desc { margin-bottom: 0; }
.facility-modal-head .facility-modal-close { top: var(--space-2); right: var(--space-3); }

/* The package name and its Best rate tag, kept together on the stacked
   mobile table where each cell is a space-between flex row. */
.pt-package { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pt-best-tag { margin-left: 0; }

/* ---- What is wrong with a field in the inquiry modals ----
   These carried a bare red sentence with nothing marking the field it was
   about. Same treatment as the member forms now: a glyph so the meaning does
   not rest on colour alone, and a red border on the offending box. */
.trial-err:not(:empty) {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
    color: #ff9a9a;
    font-size: 0.82rem;
    line-height: 1.45;
}
.trial-err:not(:empty)::before {
    content: "!";
    flex: none;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    border-radius: 50%;
    background: #ff6b6b;
    color: #1a0000;
    font-family: var(--font-display);
    font-size: 0.68rem;
    line-height: 15px;
    text-align: center;
}
.trial-form input[aria-invalid="true"],
.trial-form select[aria-invalid="true"],
.trial-form textarea[aria-invalid="true"] {
    border-color: #e04b4b;
    background: rgba(224, 75, 75, 0.05);
}
.trial-form input[aria-invalid="true"]:focus,
.trial-form select[aria-invalid="true"]:focus,
.trial-form textarea[aria-invalid="true"]:focus {
    border-color: #e04b4b;
    box-shadow: 0 0 0 3px rgba(224, 75, 75, 0.18);
}

/* The month-to-month card's chip. Same shape as the savings chips so the row
   reads as four comparable things, but quiet: it is the baseline, not an
   offer, and gold here would make the cheapest plan look like the best deal. */
.price-saving--baseline {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-muted);
}

/* The footer's legal links were 20px tall, which is a thumb-sized miss on a
   phone. The padding grows the target without moving the text. */
.footer-legal a {
    display: inline-block;
    padding: 8px 2px;
}

/* The phone number and email address on the contact page are the two things
   that page exists for, and they were 24px tall -- under a fingertip on a
   phone. The padding grows the target without moving the text. */
.contact-section a:not(.btn) {
    display: inline-block;
    padding: 6px 0;
}

/* ---------------------------------------------------------------------------
   Form text at 16px on phones

   iOS Safari zooms the whole page in when a field whose text is smaller than
   16px takes focus, and does not zoom back out afterwards. The Message Us and
   trial forms were at 15.2px, so tapping a field on an iPhone left the form
   magnified and half off the screen. 16px is the size at which Safari leaves
   the page alone.
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .trial-form input,
    .trial-form textarea,
    .trial-form select {
        font-size: 16px;
    }
}

/* Skip to content. Somebody using a keyboard would otherwise press Tab through
   the logo, six menu links, Contact and the language list on every page before
   reaching anything on it. Above the header, which is fixed. */
.skip-link {
    position: absolute;
    left: 12px;
    top: -64px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--color-accent);
    color: #0b0b0c;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* Read out by a screen reader, not shown. For a heading a page needs so that
   it has a name, where the design already says the same thing another way:
   the account page shows the member's own name where its title would be. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------------------
   Language menu

   A <details>, so it opens without a script. It sits after Contact on a wide
   screen. On a phone it is inside the menu panel, and its list opens in the
   flow of that panel rather than floating over it.
   --------------------------------------------------------------------------- */
.lang-switch { position: relative; margin-left: 4px; }
.lang-switch summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color var(--transition), border-color var(--transition);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover,
.lang-switch[open] summary { color: var(--color-text); border-color: var(--color-accent); }
.lang-switch summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-switch ul {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    min-width: 150px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}
.main-nav .lang-switch ul a {
    display: block;
    padding: 9px 12px;
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-muted);
}
.main-nav .lang-switch ul a::after { display: none; }
.main-nav .lang-switch ul a:hover { color: var(--color-text); background: rgba(255, 255, 255, 0.05); }
.main-nav .lang-switch ul a[aria-current="true"] { color: var(--color-accent); }

@media (max-width: 900px) {
    .lang-switch { margin: 8px 0 4px; }
    .lang-switch summary { width: 100%; justify-content: center; min-height: 44px; }
    .lang-switch ul { position: static; margin-top: 6px; box-shadow: none; }
    .main-nav .lang-switch ul a { padding: 12px; text-align: center; }
}

/* ---------------------------------------------------------------------------
   Chinese and Korean

   Oswald and Inter have no Chinese or Korean in them. Each language names the
   fonts that do, the ones already on the visitor's phone or computer, ahead of
   the generic fallback, so a heading is not drawn in whatever the browser
   happens to reach for first. Latin letters and numbers still use the site's
   own two.
   --------------------------------------------------------------------------- */
html:lang(zh-Hans) {
    --font-display: 'Oswald', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', sans-serif;
    --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', sans-serif;
}
html:lang(zh-Hant) {
    --font-display: 'Oswald', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', 'Noto Sans CJK TC', sans-serif;
    --font-body: 'Inter', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', 'Noto Sans CJK TC', sans-serif;
}
html:lang(ko) {
    --font-display: 'Oswald', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Noto Sans CJK KR', sans-serif;
    --font-body: 'Inter', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Noto Sans CJK KR', sans-serif;
}
html:lang(ja) {
    --font-display: 'Oswald', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', 'Noto Sans CJK JP', sans-serif;
    --font-body: 'Inter', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', 'Noto Sans CJK JP', sans-serif;
}
html:lang(th) {
    --font-display: 'Oswald', 'Thonburi', 'Leelawadee UI', 'Noto Sans Thai', 'Tahoma', sans-serif;
    --font-body: 'Inter', 'Thonburi', 'Leelawadee UI', 'Noto Sans Thai', 'Tahoma', sans-serif;
}
html:lang(hi) {
    --font-display: 'Oswald', 'Kohinoor Devanagari', 'Nirmala UI', 'Noto Sans Devanagari', 'Mangal', sans-serif;
    --font-body: 'Inter', 'Kohinoor Devanagari', 'Nirmala UI', 'Noto Sans Devanagari', 'Mangal', sans-serif;
}
/* Korean is broken between words, not in the middle of one. */
html:lang(ko) body { word-break: keep-all; }
/* Wide letter-spacing suits capitals. Between Chinese or Korean characters it
   only pulls a short heading apart. */
html:lang(zh-Hans) h1, html:lang(zh-Hans) h2, html:lang(zh-Hans) h3,
html:lang(zh-Hant) h1, html:lang(zh-Hant) h2, html:lang(zh-Hant) h3,
html:lang(ko) h1, html:lang(ko) h2, html:lang(ko) h3,
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3,
html:lang(th) h1, html:lang(th) h2, html:lang(th) h3,
html:lang(hi) h1, html:lang(hi) h2, html:lang(hi) h3 { letter-spacing: 0; }
/* Thai and Hindi stack marks above and below the letters, and the tight
   heading line-height cut them off. */
html:lang(th) h1, html:lang(th) h2, html:lang(th) h3,
html:lang(hi) h1, html:lang(hi) h2, html:lang(hi) h3 { line-height: 1.35; }
/* A browser may break a line between any two Chinese characters, and it broke
   the headline's last word in half: 恢 at the end of one line, 复 at the start
   of the next. The gold word stays in one piece, in every language. */
.hero h1 .accent { white-space: nowrap; }

/* The flag beside each language. A flag stands for a country, so it is only
   ever decoration next to the language's own name. */
.lang-flag {
    width: 20px;
    height: 14px;
    flex: 0 0 auto;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
/* nowrap: "Bahasa Melayu" broke onto two lines beside its flag. */
.main-nav .lang-switch ul a { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
@media (max-width: 900px) {
    .main-nav .lang-switch ul a { justify-content: center; }
}
