/* ============================================================
   TSF FITNESS STUDIO
   Editorial · Sophisticated · Aggressive
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    /* --- Dark theme (default) --- */
    --bg-page:        #0E0E10;
    --bg-surface:     #17171A;
    --bg-surface-2:   #1E1E22;
    --bg-inverse:     #F5F4F1;

    --text-primary:   #F5F4F1;
    --text-secondary: #A6A5A1;
    --text-muted:     #6B6A67;
    --text-inverse:   #0E0E10;

    --line-subtle:    rgba(245, 244, 241, 0.06);
    --line-default:   rgba(245, 244, 241, 0.10);
    --line-strong:    rgba(245, 244, 241, 0.20);

    --red-core:       #C81E1E;
    --red-hover:      #A31515;
    --red-subtle:     rgba(200, 30, 30, 0.10);
    --red-line:       rgba(200, 30, 30, 0.32);

    /* --- Type --- */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-sans:    'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

    /* --- Spacing scale --- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --space-10: 120px;

    /* --- Radii --- */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 999px;

    /* --- Motion --- */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 200ms;
    --dur-base: 320ms;
    --dur-slow: 500ms;

    /* --- Container --- */
    --container: 1200px;
    --container-pad: 24px;
    --header-h: 72px;

    /* --- Shadows --- */
    --shadow-2xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm:  0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-md:  0 12px 32px rgba(0, 0, 0, 0.12);
}

/* --- Light theme --- */
[data-theme="light"] {
    --bg-page:        #F7F6F3;
    --bg-surface:     #FFFFFF;
    --bg-surface-2:   #F0EFEB;
    --bg-inverse:     #151515;

    --text-primary:   #151515;
    --text-secondary: #5C5B58;
    --text-muted:     #9A9995;
    --text-inverse:   #F7F6F3;

    --line-subtle:    rgba(21, 21, 21, 0.06);
    --line-default:   rgba(21, 21, 21, 0.10);
    --line-strong:    rgba(21, 21, 21, 0.20);

    --red-core:       #B01818;
    --red-hover:      #8C1010;
    --red-subtle:     rgba(176, 24, 24, 0.08);
    --red-line:       rgba(176, 24, 24, 0.28);

    --shadow-2xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm:  0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-md:  0 12px 32px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-page);
    overflow-x: hidden;
    transition: background-color var(--dur-base) var(--ease-out),
                color var(--dur-base) var(--ease-out);
}

body.preloader-locked {
    overflow: hidden;
    height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

iframe {
    border: 0;
}

/* ============================================================
   3. LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

section {
    padding: var(--space-10) 0;
    border-top: 1px solid var(--line-subtle);
}

section:first-of-type {
    border-top: 0;
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
}

.eyebrow-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red-core);
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.section-head {
    max-width: 640px;
    margin-bottom: var(--space-9);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
}

.section-lede {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 560px;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 14px 24px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.005em;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out);
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn .arrow {
    display: inline-block;
    transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .arrow {
    transform: translateX(3px);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.875rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--red-core);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--red-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--line-strong);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: var(--bg-surface);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-secondary);
    padding: 14px 4px;
}

.btn-ghost:hover {
    color: var(--text-primary);
}

.btn:focus-visible {
    outline: 2px solid var(--red-core);
    outline-offset: 3px;
}
/* ============================================================
   6. PRELOADER — Tall Bodoni counter
   ============================================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 600ms var(--ease-out),
                visibility 600ms var(--ease-out);
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    width: 100%;
    max-width: 420px;
    padding: 0 var(--container-pad);
}

.preloader-counter {
    font-family: 'Bodoni Moda', 'Times New Roman', serif;
    font-optical-sizing: auto;
    font-variation-settings: 'opsz' 96;
    font-size: clamp(8rem, 30vw, 20rem);
    font-weight: 700;
    line-height: 0.78;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
    text-align: center;
    user-select: none;
    /* Optical vertical trim so the number sits centered */
    padding: 0.08em 0 0;
}

.preloader-bar-wrapper {
    width: 100%;
    height: 2px;
    background: var(--line-default);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.preloader-bar {
    width: 0;
    height: 100%;
    background: var(--red-core);
    transition: width 100ms linear;
}

@media (prefers-reduced-motion: reduce) {
    .preloader,
    .preloader-bar {
        transition: none;
    }
}
/* ============================================================
   7. HEADER — Floating pill
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 14px var(--container-pad);
    pointer-events: none;
    background: transparent;
    border: none;
    transition: padding var(--dur-base) var(--ease-out);
}
.header-pill {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    height: 56px;
    padding: 0 12px 0 18px;
    background: rgba(14, 14, 16, 0.62);
    border: 1px solid rgba(245, 244, 241, 0.08);
    border-radius: var(--radius-full);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
    transition: background-color var(--dur-base) var(--ease-out),
                border-color var(--dur-base) var(--ease-out);
}

[data-theme="light"] .header-pill {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(21, 21, 21, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* Nav: absolutely centered in the pill */
.primary-nav {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    gap: var(--space-5);
    white-space: nowrap;
}

@media (min-width: 900px) {
    .primary-nav {
        display: flex;
    }
}

.site-header.is-scrolled .header-pill {
    background: rgba(14, 14, 16, 0.78);
}

[data-theme="light"] .site-header.is-scrolled .header-pill {
    background: rgba(255, 255, 255, 0.82);
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-mark {
    height: 26px;
    width: auto;
    object-fit: contain;
}



.primary-nav a {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(245, 244, 241, 0.66);
    letter-spacing: -0.005em;
    position: relative;
    padding: 4px 0;
    transition: color var(--dur-fast) var(--ease-out);
}

[data-theme="light"] .primary-nav a {
    color: rgba(21, 21, 21, 0.66);
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: #F5F4F1;
}

[data-theme="light"] .primary-nav a:hover,
[data-theme="light"] .primary-nav a.is-active {
    color: #151515;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-left: auto;
}

.header-cta {
    display: none; /* hidden on mobile, revealed at desktop */
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: background-color var(--dur-fast) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover {
    background: rgba(245, 244, 241, 0.06);
}

[data-theme="light"] .menu-toggle:hover {
    background: rgba(21, 21, 21, 0.06);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: #F5F4F1;
    border-radius: var(--radius-full);
    transition: transform var(--dur-base) var(--ease-out);
    transform-origin: center;
}

[data-theme="light"] .menu-toggle span {
    background: #151515;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
}

/* ============================================================
   8. THEME SWITCH
   ============================================================ */
.theme-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.theme-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.theme-track {
    position: relative;
    display: block;
    width: 40px;
    height: 22px;
    background: rgba(245, 244, 241, 0.12);
    border: 1px solid rgba(245, 244, 241, 0.14);
    border-radius: var(--radius-full);
    transition: background-color var(--dur-base) var(--ease-out),
                border-color var(--dur-base) var(--ease-out);
}

[data-theme="light"] .theme-track {
    background: rgba(21, 21, 21, 0.10);
    border-color: rgba(21, 21, 21, 0.14);
}

.theme-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #F5F4F1;
    border-radius: 50%;
    transition: transform var(--dur-base) var(--ease-out),
                background-color var(--dur-base) var(--ease-out);
}

[data-theme="light"] .theme-thumb {
    background: #151515;
}

.theme-switch input:checked + .theme-track {
    background: var(--red-core);
    border-color: var(--red-core);
}

.theme-switch input:checked + .theme-track .theme-thumb {
    transform: translateX(18px);
    background: #FFFFFF;
}

.theme-switch:hover .theme-track {
    border-color: rgba(245, 244, 241, 0.28);
}

[data-theme="light"] .theme-switch:hover .theme-track {
    border-color: rgba(21, 21, 21, 0.28);
}

.theme-switch input:focus-visible + .theme-track {
    outline: 2px solid var(--red-core);
    outline-offset: 3px;
}

/* Hide header theme switch on mobile (it lives in the menu) */
.header-theme {
    display: none;
}

/* ============================================================
   9. MOBILE MENU
   ============================================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 850;
    background: var(--bg-page);
    padding: calc(14px + 56px + var(--space-6)) var(--container-pad) var(--space-7);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur-base) var(--ease-out),
                visibility var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out);
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    height: 100%;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.mobile-nav a {
    font-family: var(--font-display);
    font-size: 2.25rem;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--line-subtle);
}

.mobile-menu-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-top: auto;
    padding-top: var(--space-6);
    border-top: 1px solid var(--line-subtle);
}

.mobile-theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

/* ============================================================
   DESKTOP BREAKPOINT
   ============================================================ */
@media (min-width: 900px) {
    .site-header {
        padding: 18px var(--container-pad);
    }

    .header-pill {
        height: 60px;
        padding: 0 14px 0 20px;
        gap: var(--space-6);
    }

    .primary-nav {
        display: flex;
    }

    .header-theme {
        display: inline-flex;
    }

    .header-cta {
        display: inline-flex;
    }

    .menu-toggle {
        display: none;
    }

    .mobile-menu {
        display: none;
    }
}

/* ============================================================
   10. HERO — Full-bleed backdrop with parallax
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border-top: 0;
    isolation: isolate;
}

/* --- Background image layer --- */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0A0A0A;
}

.hero-img {
    position: absolute;
    top: -12%;
    left: 0;
    width: 100%;
    height: 124%;
    object-fit: cover;
    object-position: center 45%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* --- Overlay: darker, with left-side bias for copy readability --- */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        /* Horizontal: darkens the left column where text lives */
        linear-gradient(
            90deg,
            rgba(10, 10, 10, 0.62) 0%,
            rgba(10, 10, 10, 0.38) 45%,
            rgba(10, 10, 10, 0.30) 70%,
            rgba(10, 10, 10, 0.42) 100%
        ),
        /* Vertical: deeper overall + fade to page */
        linear-gradient(
            180deg,
            rgba(10, 10, 10, 0.80) 0%,
            rgba(10, 10, 10, 0.68) 35%,
            rgba(10, 10, 10, 0.78) 72%,
            rgba(10, 10, 10, 0.94) 92%,
            var(--bg-page) 100%
        );
}

[data-theme="light"] .hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(10, 10, 10, 0.58) 0%,
            rgba(10, 10, 10, 0.35) 45%,
            rgba(10, 10, 10, 0.28) 70%,
            rgba(10, 10, 10, 0.40) 100%
        ),
        linear-gradient(
            180deg,
            rgba(10, 10, 10, 0.74) 0%,
            rgba(10, 10, 10, 0.62) 35%,
            rgba(10, 10, 10, 0.74) 72%,
            rgba(10, 10, 10, 0.92) 92%,
            var(--bg-page) 100%
        );
}
/* --- Inner content (vertically centered) --- */
.hero-inner {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
    padding-top: calc(14px + 56px + var(--space-9));
    padding-bottom: var(--space-9);
}
.hero-copy {
    max-width: 720px;
    color: #F5F4F1;
}

/* Hero eyebrow sits over the image — override default muted color */
.hero .eyebrow {
    color: rgba(245, 244, 241, 0.78);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: #F5F4F1;
    margin-bottom: var(--space-5);
    text-wrap: balance;
}

.hero-headline em {
    font-style: italic;
    color: #E63946;
}

.hero-lede {
    font-size: 1.125rem;
    line-height: 1.55;
    color: rgba(245, 244, 241, 0.85);
    max-width: 540px;
    margin-bottom: var(--space-7);
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
}

/* Ghost button styled for over-image use (light text) */
.btn-ghost-on-image {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 14px 4px;
    background: transparent;
    color: rgba(245, 244, 241, 0.85);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    border: none;
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease-out);
}

.btn-ghost-on-image:hover {
    color: #F5F4F1;
}

.btn-ghost-on-image .arrow {
    display: inline-block;
    transition: transform var(--dur-fast) var(--ease-out);
}

.btn-ghost-on-image:hover .arrow {
    transform: translateX(3px);
}

/* --- Stats bar at bottom of hero --- */
.hero-stats-bar {
    position: relative;
    z-index: 2;
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(245, 244, 241, 0.14);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5) var(--space-6);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1;
    font-weight: 400;
    color: #F5F4F1;
    letter-spacing: -0.02em;
}

.stat-unit {
    font-size: 0.9em;
    color: rgba(245, 244, 241, 0.72);
    margin-left: 2px;
    letter-spacing: 0;
}

.stat-label {
    font-size: 0.8125rem;
    color: rgba(245, 244, 241, 0.65);
    line-height: 1.3;
}

/* --- Section immediately after hero: no divider, hero handles the fade --- */
.hero + section {
    border-top: 0;
}


/* ============================================================
   11. PROGRAMS — Expandable list
   ============================================================ */
.program-group {
    margin-top: var(--space-8);
}

.program-group:first-of-type {
    margin-top: 0;
}

.program-group-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-2);
    border-bottom: 1px solid var(--line-default);
}

.program-list {
    display: flex;
    flex-direction: column;
}

/* --- Row --- */
.program-row {
    border-bottom: 1px solid var(--line-subtle);
    transition: background-color var(--dur-fast) var(--ease-out);
}

.program-row:hover {
    background-color: color-mix(in srgb, var(--bg-page) 94%, var(--text-primary) 6%);
}

.program-row-head {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: var(--space-4);
    width: 100%;
    padding: var(--space-5) var(--space-4);
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

.program-row-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}

.program-row-meta {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

/* --- Toggle icon: + that becomes − --- */
.program-row-icon {
    position: relative;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    display: block;
}

.program-row-icon::before,
.program-row-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--text-secondary);
    transition: transform var(--dur-base) var(--ease-out),
                background-color var(--dur-base) var(--ease-out);
}

.program-row-icon::before {
    width: 14px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}

.program-row-icon::after {
    width: 1.5px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.program-row.is-open .program-row-icon::after,
.program-row:hover .program-row-icon::after {
    transform: translate(-50%, -50%) scaleY(0);
}

.program-row.is-open .program-row-icon::before,
.program-row:hover .program-row-icon::before {
    background: var(--red-core);
}

/* --- Body: expand/collapse via grid-template-rows --- */
.program-row-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur-slow) var(--ease-out);
}

.program-row-content {
    overflow: hidden;
}

.program-row.is-open .program-row-body {
    grid-template-rows: 1fr;
}

/* --- Details inside expanded body --- */
.program-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: 0 var(--space-4) var(--space-6);
}

.program-detail {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.program-detail-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1;
}

.program-detail-value {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* --- Desktop: hover expands + two-column details --- */
@media (hover: hover) and (pointer: fine) {
    .program-row:hover .program-row-body {
        grid-template-rows: 1fr;
    }
}

@media (min-width: 640px) {
    .program-row-head {
        grid-template-columns: 1fr auto 24px;
        gap: var(--space-6);
        padding: var(--space-6) var(--space-4);
    }

    .program-details {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5) var(--space-8);
        padding: var(--space-2) var(--space-4) var(--space-7);
        max-width: 900px;
    }

    .program-detail-value {
        font-size: 1rem;
    }
}

@media (min-width: 900px) {
    .program-row-head {
        padding: var(--space-6) var(--space-5);
    }

    .program-details {
        padding-left: var(--space-5);
        padding-right: var(--space-5);
    }

    .program-row-title {
        font-size: 1.75rem;
    }
}


/* ============================================================
   14. STUDIO STRIP
   ============================================================ */
.studio {
    padding-left: 0;
    padding-right: 0;
}

.studio > .container {
    margin-bottom: var(--space-8);
}

.studio-strip {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--container-pad);
    scrollbar-width: none;
    padding: var(--space-2) var(--container-pad) var(--space-4);
    -webkit-overflow-scrolling: touch;
}

.studio-strip::-webkit-scrollbar {
    display: none;
}

/* Every tile — uniform size, both wide + normal */
.strip-item,
.strip-item-wide {
    position: relative;
    flex: 0 0 auto;
    width: 260px;
    height: 340px;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    scroll-snap-align: start;
    border: 1px solid var(--line-subtle);
}

.strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--dur-slow) var(--ease-out);
}

.strip-item:hover img {
    transform: scale(1.03);
}

.strip-item figcaption {
    position: absolute;
    left: var(--space-3);
    bottom: var(--space-3);
    padding: 5px 10px;
    background: rgba(14, 14, 16, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius-sm);
    color: #F5F4F1;
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ============================================================
   16. CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

.contact-copy {
    display: flex;
    flex-direction: column;
}

.contact-lede {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: var(--space-6);
}

.contact-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--line-subtle);
    border-bottom: 1px solid var(--line-subtle);
    margin: 0 0 var(--space-6);
}

.contact-list > div {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.contact-list dt {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1;
}

.contact-list dd {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
}

.contact-list dd a {
    transition: color var(--dur-fast) var(--ease-out);
}

.contact-list dd a:hover {
    color: var(--red-core);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
}

/* --- Map: full width, clean aspect on mobile --- */
.contact-map {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-subtle);
    background: var(--bg-surface);
}

.contact-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) contrast(1.05);
    transition: filter var(--dur-base) var(--ease-out);
}

.contact-map:hover iframe {
    filter: grayscale(0.35) contrast(1.05);
}

[data-theme="light"] .contact-map iframe {
    filter: grayscale(0.6) contrast(1.05);
}

/* --- Tablet: two-column info grid --- */
@media (min-width: 640px) {
    .contact-list {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5) var(--space-6);
    }
}

/* --- Desktop: side-by-side copy + map --- */
@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1.1fr;
        gap: var(--space-10);
        align-items: stretch;
    }

    .contact-map {
        aspect-ratio: auto;
        height: 100%;
        min-height: 520px;
    }
}
/* ============================================================
   17. FOOTER — minimal
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--line-subtle);
    padding: var(--space-8) 0 var(--space-5);
    margin-top: var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-7);
    padding-bottom: var(--space-7);
    border-bottom: 1px solid var(--line-subtle);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-brand {
    gap: var(--space-4);
}

.footer-mark {
    height: 32px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    align-self: flex-start;
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-list a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    transition: color var(--dur-fast) var(--ease-out);
}

.footer-list a:hover {
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-5);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: color var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
}

.footer-social a svg {
    width: 15px;
    height: 15px;
}

.footer-social a:hover {
    color: var(--text-primary);
    border-color: var(--line-strong);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-5);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* --- Tablet --- */
@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-7) var(--space-6);
    }

    .footer-col-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* --- Desktop --- */
@media (min-width: 900px) {
    .site-footer {
        padding: var(--space-9) 0 var(--space-5);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: var(--space-8);
        align-items: start;
    }

    .footer-col-brand {
        grid-column: auto;
    }
}
/* ============================================================
   18. RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
    :root {
        --container-pad: 32px;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }

   
     

   


    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 900px) {
    :root {
        --header-h: 80px;
    }

    .primary-nav {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .hero-inner {
        padding-top: calc(18px + 60px + var(--space-10));
        padding-bottom: var(--space-10);
    }

.hero-stats-bar {
    padding: var(--space-7) 0;
}

    .founder-copy .section-title {
        margin-bottom: var(--space-6);
    }

    .founder-lede,
    .pull-quote,
    .founder-note {
        margin-bottom: var(--space-7);
    }

    .founder-credentials {
        margin-bottom: var(--space-7);
    }


    .contact-grid {
    
        gap: var(--space-9);
        align-items: stretch;
    }

    .contact-map {
        aspect-ratio: auto;
        height: 100%;
        min-height: 480px;
    }
}

@media (min-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.2fr;
    }

   
    @media (min-width: 640px) {
    .strip-item,
    .strip-item-wide {
        width: 300px;
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .strip-item,
    .strip-item-wide {
        width: 320px;
        height: 420px;
    }
}
}


/* ============================================================
   19. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

   
}

/* ============================================================
   20. FOCUS VISIBILITY
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--red-core);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}


/* ============================================================
   TEXT REVEAL
   ============================================================ */

/* Word container: masks the sliding word */
.split-text .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.14em;
    margin-bottom: -0.14em;
    line-height: inherit;
}

/* Inner word: starts below the mask, slides up */
.split-text .word-inner {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition:
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.split-text.is-revealed .word-inner {
    transform: translateY(0);
    opacity: 1;
}

/* Fade-up elements */
.fade-up {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.fade-up.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion: no animation at all */
@media (prefers-reduced-motion: reduce) {
    .split-text .word-inner,
    .fade-up {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

/* ============================================================
   FOUNDER — FINAL OVERRIDE (appended last for cascade priority)
   ============================================================ */
.founder {
    padding: var(--space-10) 0;
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: start;
}

.founder-media {
    display: block;
    width: 100%;
}

.founder-figure {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    margin: 0;
}

.founder-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

/* Meta row: stack cleanly on mobile, side-by-side on wide */
.founder-media-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-4);
    margin-top: var(--space-4);
    border-top: 1px solid var(--line-subtle);
}

.founder-media-meta .mono {
    line-height: 1.4;
}

.founder-copy {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.founder-copy .eyebrow {
    margin-bottom: var(--space-4);
}

.founder-copy .section-title {
    margin-bottom: var(--space-5);
}

.founder-lede {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    max-width: 100%;
}

/* Pull quote: mark pinned to first line */
.pull-quote {
    
    column-gap: var(--space-3);
    align-items: start;
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 5vw, 1.75rem);
    line-height: 1.3;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin: 0 0 var(--space-6);
    max-width: 100%;
}

.pull-quote-mark {
    color: var(--red-core);
    font-style: normal;
    line-height: 1.3;
}

.founder-note {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    max-width: 100%;
}

/* Credentials: single-column rows on mobile */
.founder-credentials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    border-top: 1px solid var(--line-subtle);
    border-bottom: 1px solid var(--line-subtle);
    margin: 0 0 var(--space-6);
}

.founder-credentials > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--line-subtle);
}

.founder-credentials > div:last-child {
    border-bottom: 0;
}

.founder-credentials dt {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.4;
    flex-shrink: 0;
}

.founder-credentials dd {
    font-family: var(--font-display);
    font-size: 1.125rem;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    text-align: right;
    margin: 0;
}

/* --- Tablet and up: three-column credentials --- */
@media (min-width: 640px) {
    .founder-media-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .founder-credentials {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5);
        padding: var(--space-6) 0;
        border-bottom: 1px solid var(--line-subtle);
    }

    .founder-credentials > div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: var(--space-2);
        padding: 0;
        border-bottom: 0;
    }

    .founder-credentials dd {
        text-align: left;
        font-size: 1.25rem;
    }
}

/* --- Desktop: two-column layout --- */
@media (min-width: 900px) {
    .founder-grid {
        grid-template-columns: 0.85fr 1fr;
        gap: var(--space-10);
    }

    .founder-figure {
        aspect-ratio: 3 / 4;
    }

    .founder-credentials dd {
        font-size: 1.375rem;
    }
}





/* --- Footer credit --- */
.footer-credit {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.footer-credit a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
}

.footer-credit a:hover {
    color: var(--text-secondary);
    border-bottom-color: var(--line-strong);
}



/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */

/* --- Firefox --- */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

/* --- Webkit (Chrome, Safari, Edge, Opera) --- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--line-strong);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-page);
    background-clip: padding-box;
    transition: background-color var(--dur-fast) var(--ease-out);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--red-core);
    border-color: var(--bg-page);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* --- The studio strip: keep it visible but subtle --- */
.studio-strip::-webkit-scrollbar {
    display: block;
    height: 4px;
}

.studio-strip::-webkit-scrollbar-track {
    background: var(--line-subtle);
    border-radius: var(--radius-full);
    margin: 0 var(--container-pad);
}

.studio-strip::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: var(--radius-full);
    border: none;
}

.studio-strip::-webkit-scrollbar-thumb:hover {
    background: var(--red-core);
}

/* Firefox — studio strip */
.studio-strip {
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

/* ============================================================
   LOGO — light theme inversion
   ============================================================ */
[data-theme="light"] .brand-mark,
[data-theme="light"] .footer-mark {
    filter: brightness(0);
}

/* Smooth the swap during theme transition */
.brand-mark,
.footer-mark {
    transition: filter var(--dur-base) var(--ease-out);
}

/* ============================================================
   FOUNDER PAGE
   ============================================================ */

/* ---------- Profile: sticky portrait + scrolling content ---------- */
.profile {
    padding-top: calc(var(--header-h) + var(--space-8));
    padding-bottom: var(--space-9);
    border-top: 0;
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-7);
    align-items: start;
}

/* --- Media column --- */
.profile-media {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.profile-portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    margin: 0;
}

.profile-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

.profile-media-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--line-subtle);
}

/* --- Content column --- */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    min-width: 0;
}

.profile-head {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.profile-head .eyebrow {
    margin-bottom: 0;
}

.profile-name {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.028em;
    color: var(--text-primary);
    margin: 0;
    text-wrap: balance;
}

.profile-role {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.profile-lede {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
}

/* --- Story inside the same column --- */
.profile-story {
    padding-top: var(--space-8);
    margin-top: var(--space-4);
    border-top: 1px solid var(--line-subtle);
    display: flex;
    flex-direction: column;
    gap: var(--space-7);
}

.profile-story-head {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.profile-story-head .section-title {
    margin: 0;
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
}

.profile-story-prose {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    max-width: 640px;
}

.profile-story-prose p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0;
}

.profile-story-prose .pull-quote {
    margin: var(--space-3) 0;
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    line-height: 1.3;
}

/* --- Desktop: two-column split with sticky media --- */
@media (min-width: 900px) {
    .profile {
        padding-top: calc(var(--header-h) + var(--space-9));
        padding-bottom: var(--space-10);
    }

    .profile-layout {
        grid-template-columns: 0.85fr 1fr;
        gap: var(--space-10);
    }

    /* The photo sticks to the viewport while the right column scrolls */
    .profile-media {
        position: sticky;
        top: calc(var(--header-h) + var(--space-6));
        align-self: start;
    }

    .profile-portrait {
        aspect-ratio: 3 / 4;
        max-height: calc(100vh - var(--header-h) - var(--space-8));
    }
}

/* ---------- Principles ---------- */
.profile-principles {
    padding: var(--space-9) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--line-subtle);
    border-bottom: 1px solid var(--line-subtle);
}

.principles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 640px) {
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .principles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.principle {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6);
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-lg);
    transition: border-color var(--dur-base) var(--ease-out);
}

.principle:hover {
    border-color: var(--line-strong);
}

.principle-number {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--red-core);
}

.principle-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-top: var(--space-1);
}

.principle-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ---------- Credentials ---------- */
.profile-credentials {
    padding: var(--space-9) 0;
    border-top: 1px solid var(--line-subtle);
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 640px) {
    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: var(--space-8);
    }
}

@media (min-width: 900px) {
    .credentials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.credential {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--line-subtle);
}

.credential-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.4;
}

.credential-value {
    font-family: var(--font-display);
    font-size: 1.375rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-top: var(--space-1);
}

.credential-note {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-secondary);
}
/* ---------- Beyond the studio ---------- */
.profile-beyond {
    padding: var(--space-9) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--line-subtle);
    border-bottom: 1px solid var(--line-subtle);
}

.beyond-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 900px) {
    .beyond-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }
}

.beyond-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-7);
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-lg);
    transition: border-color var(--dur-base) var(--ease-out);
}

.beyond-card:hover {
    border-color: var(--line-strong);
}

.beyond-copy {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex: 1;
}

.beyond-copy .mono {
    color: var(--red-core);
    font-size: 0.625rem;
}

.beyond-title {
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin: var(--space-1) 0 0;
}

.beyond-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.beyond-card .btn {
    align-self: flex-start;
}
/* ---------- CTA ---------- */
.profile-cta {
    padding: var(--space-10) 0;
    border-top: 1px solid var(--line-subtle);
}

.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-5);
    max-width: 680px;
    margin: 0 auto;
}

.cta-eyebrow {
    margin-bottom: 0;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.028em;
    color: var(--text-primary);
    margin: 0;
    text-wrap: balance;
}

.cta-title em {
    font-style: italic;
    color: var(--red-core);
}

.cta-desc {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

@media (max-width: 640px) {
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

/* ============================================================
   PAGE TRANSITION — wipe-up curtain
   ============================================================ */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: #050505;
    transform: translateY(0);
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Red leading edge */
.page-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red-core);
}

[data-theme="light"] .page-transition {
    background: #0A0A0A;
}

/* Reduced motion: skip the wipe entirely */
@media (prefers-reduced-motion: reduce) {
    .page-transition {
        display: none !important;
    }
}

/* ============================================================
   PAGE HERO — shared by programs.html and contact.html
   ============================================================ */
.page-hero {
    padding-top: calc(var(--header-h) + var(--space-9));
    padding-bottom: var(--space-8);
    border-top: 0;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.028em;
    color: var(--text-primary);
    margin: var(--space-4) 0 var(--space-5);
    text-wrap: balance;
    max-width: 800px;
}

.page-hero-lede {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 620px;
}

/* ============================================================
   PROGRAMS PAGE — sections, cards, media placeholders
   ============================================================ */

/* --- Section wrapper --- */
.programs-section {
    padding: var(--space-9) 0;
    border-top: 1px solid var(--line-subtle);
}

.programs-section:first-of-type {
    border-top: 0;
}

.programs-section-head {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    max-width: 640px;
}

.programs-section-head .section-title {
    margin: 0;
}

.programs-section-head .section-lede {
    margin-top: var(--space-2);
}

/* --- Card grid --- */
.program-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 640px) {
    .program-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (min-width: 1024px) {
    .program-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Individual card --- */
.program-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out);
}

.program-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

/* --- Media / image placeholder --- */
.program-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-surface-2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--dur-slow) var(--ease-out);
}

.program-card:hover .program-card-media img {
    transform: scale(1.03);
}

/* Placeholder state — diagonal stripe pattern + mono label */
.program-card-media.is-placeholder {
    background:
        repeating-linear-gradient(
            45deg,
            var(--bg-surface-2) 0px,
            var(--bg-surface-2) 8px,
            var(--bg-surface) 8px,
            var(--bg-surface) 16px
        );
    border-bottom: 1px solid var(--line-subtle);
}

.program-card-media-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 12px;
    border: 1px solid var(--line-default);
    border-radius: var(--radius-full);
    background: var(--bg-page);
    text-align: center;
}

/* --- Card body --- */
.program-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-5) var(--space-6);
    flex: 1;
}

.program-card-index {
    color: var(--red-core);
    font-size: 0.625rem;
}

.program-card-title {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin: 0;
}

.program-card-desc {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

/* --- Card meta table --- */
.program-card-meta {
    display: flex;
    flex-direction: column;
    margin-top: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line-subtle);
}

.program-card-meta > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-2) 0;
}

.program-card-meta dt {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    flex-shrink: 0;
}

.program-card-meta dd {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-primary);
    text-align: right;
    margin: 0;
}

/* ============================================================
   PAGE CTA — shared by programs.html and contact.html
   ============================================================ */
.page-cta {
    padding: var(--space-10) 0;
    border-top: 1px solid var(--line-subtle);
}

.page-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-5);
    max-width: 680px;
    margin: 0 auto;
}

.page-cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.028em;
    color: var(--text-primary);
    margin: 0;
    text-wrap: balance;
}

.page-cta-title em {
    font-style: italic;
    color: var(--red-core);
}

.page-cta-desc {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0;
}

.page-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

@media (max-width: 640px) {
    .page-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .page-cta-actions .btn {
        width: 100%;
    }
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */

/* ---------- Details + map ---------- */
.contact-section {
    padding: var(--space-9) 0;
    border-top: 1px solid var(--line-subtle);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: start;
}

@media (min-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--space-10);
    }
}

.contact-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--line-subtle);
}

.contact-block:first-child {
    padding-top: 0;
}

.contact-block:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contact-block-value {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin: 0;
}

.contact-block-value a {
    color: inherit;
    transition: color var(--dur-fast) var(--ease-out);
}

.contact-block-value a:hover {
    color: var(--red-core);
}

.contact-block-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--red-core);
    margin-top: var(--space-1);
}

.contact-block-link .arrow {
    transition: transform var(--dur-fast) var(--ease-out);
}

.contact-block-link:hover .arrow {
    transform: translateX(3px);
}

.contact-hours {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.contact-hours-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.contact-hours-row span:first-child {
    color: var(--text-secondary);
}

/* Social links list inside contact column */
.contact-social {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-1);
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color var(--dur-fast) var(--ease-out);
}

.contact-social-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--text-muted);
    transition: stroke var(--dur-fast) var(--ease-out);
}

.contact-social-link:hover {
    color: var(--text-primary);
}

.contact-social-link:hover svg {
    stroke: var(--red-core);
}

/* Map column */
.contact-map-column {
    position: relative;
}

.contact-map {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-subtle);
    background: var(--bg-surface);
}

.contact-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) contrast(1.05);
    transition: filter var(--dur-base) var(--ease-out);
}

.contact-map:hover iframe {
    filter: grayscale(0.3) contrast(1.05);
}

[data-theme="light"] .contact-map iframe {
    filter: grayscale(0.6) contrast(1.05);
}

@media (min-width: 900px) {
    .contact-map-column {
        position: sticky;
        top: calc(var(--header-h) + var(--space-6));
    }

    .contact-map {
        aspect-ratio: auto;
        height: 520px;
    }
}

/* ---------- Getting here ---------- */
.contact-directions {
    padding: var(--space-9) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--line-subtle);
    border-bottom: 1px solid var(--line-subtle);
}

.directions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 640px) {
    .directions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .directions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.direction {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6);
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-lg);
    transition: border-color var(--dur-base) var(--ease-out);
}

.direction:hover {
    border-color: var(--line-strong);
}

.direction-index {
    color: var(--red-core);
    font-size: 0.6875rem;
}

.direction-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin: var(--space-1) 0 0;
}

.direction-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ---------- FAQ ---------- */
.contact-faq {
    padding: var(--space-9) 0;
    border-top: 1px solid var(--line-subtle);
}

.faq-list {
    display: flex;
    flex-direction: column;
    max-width: 780px;
}

.faq-item {
    border-bottom: 1px solid var(--line-subtle);
}

.faq-item:first-child {
    border-top: 1px solid var(--line-subtle);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding: var(--space-5) 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    transition: color var(--dur-fast) var(--ease-out);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--red-core);
}

.faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    display: block;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--text-secondary);
    transition: transform var(--dur-base) var(--ease-out),
                background-color var(--dur-base) var(--ease-out);
}

.faq-icon::before {
    width: 14px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 1.5px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) scaleY(0);
}

.faq-item[open] .faq-question {
    color: var(--red-core);
}

.faq-item[open] .faq-icon::before {
    background: var(--red-core);
}

.faq-answer {
    padding: 0 0 var(--space-5);
    max-width: 640px;
}

.faq-answer p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.faq-answer a {
    color: var(--red-core);
    border-bottom: 1px solid var(--red-line);
    transition: color var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
}

.faq-answer a:hover {
    color: var(--red-hover);
    border-bottom-color: var(--red-hover);
}

/* ============================================================
   CONTACT PAGE — Mobile overflow fixes
   ============================================================ */

/* 1. Prevent any flex/grid child from forcing horizontal scroll */
.contact-layout,
.contact-column,
.contact-block,
.contact-block-value,
.contact-hours,
.contact-hours-row,
.contact-social,
.contact-social-link,
.faq-list,
.faq-item,
.faq-question,
.faq-answer {
    min-width: 0;
}

/* 2. Wrap long strings (emails, URLs) so they never force the page wide */
.contact-block-value,
.contact-block-value a,
.contact-block-link,
.contact-social-link span,
.faq-question span:first-child,
.faq-answer p,
.faq-answer a {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 3. Email/phone size — reduce on mobile so serif doesn't overflow */
@media (max-width: 640px) {
    .contact-block-value {
        font-size: 1.125rem;
        letter-spacing: -0.01em;
    }

    /* Stack the hours rows so both strings always fit */
    .contact-hours-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }

    .contact-hours-row span:last-child {
        font-family: var(--font-mono);
        font-size: 0.8125rem;
        letter-spacing: 0.04em;
        color: var(--text-primary);
    }

    /* FAQ question: reduce size, allow wrapping */
    .faq-question {
        font-size: 1.0625rem;
        padding: var(--space-4) 0;
        gap: var(--space-4);
    }

    .faq-answer {
        padding-bottom: var(--space-4);
    }

    /* Contact social links: tighter on mobile */
    .contact-social-link {
        font-size: 0.875rem;
    }

    /* Reduce contact layout vertical gap on mobile */
    .contact-layout {
        gap: var(--space-7);
    }
}

/* 4. Safety net — kill any horizontal scroll on the body */
html, body {
    overflow-x: clip;
    max-width: 100vw;
}

/* 5. Map iframe on mobile — force exact fit */
.contact-map,
.contact-map iframe {
    max-width: 100%;
}

@media (max-width: 640px) {
    .contact-map {
        aspect-ratio: 3 / 4;
    }
}