/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #0a0a0a;
    --white: #f5f5f5;
    --pure-white: #ffffff;
    --gray-100: #fafafa;
    --gray-200: #e8e8e8;
    --gray-300: #d0d0d0;
    --gray-400: #999999;
    --gray-500: #666666;
    --gray-600: #444444;
    --gray-700: #2a2a2a;
    --gray-800: #1a1a1a;
    --font-display: 'Work Sans', sans-serif;
    --font-body: 'Work Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--black);
    background: var(--pure-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-label {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.section-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.section-body {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 600px;
    line-height: 1.8;
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 3rem;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-logo img {
    height: 48px;
    transition: filter 0.4s ease, height 0.4s ease;
}

.nav:not(.scrolled) .nav-logo img {
    filter: brightness(0) invert(1);
    height: 54px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--black);
    position: relative;
    transition: color 0.3s ease;
}

.nav:not(.scrolled) .nav-links a {
    color: var(--pure-white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase;
    padding: 0.7rem 1.8rem !important;
    border: 1.5px solid;
    transition: all 0.3s ease !important;
}

.nav:not(.scrolled) .nav-cta {
    border-color: rgba(255,255,255,0.5);
    color: var(--pure-white) !important;
}

.nav:not(.scrolled) .nav-cta:hover {
    background: var(--pure-white);
    color: var(--black) !important;
    border-color: var(--pure-white);
}

.nav.scrolled .nav-cta {
    border-color: var(--black);
    color: var(--black) !important;
}

.nav.scrolled .nav-cta:hover {
    background: var(--black);
    color: var(--pure-white) !important;
}

.nav-cta::after { display: none !important; }

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 1.5px;
    background: var(--black);
    transition: all 0.3s ease;
}

.nav:not(.scrolled) .nav-toggle span {
    background: var(--pure-white);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    /* Fallback behind the photo stack, and what shows before the first slide
       decodes. */
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 40%, #2a2a2a 100%);
    background-size: cover;
    background-position: center;
    transform-origin: center;
    will-change: transform;
}

/* ---- Hero photo gallery ---------------------------------------------------
   Slides crossfade in place. Each also drifts a slow scale so the hero is never
   completely static, which is what stops a still photo reading as a stalled
   video slot. */
.hero-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    /* transform is transitioned too: when a slide loses .active its drift
       animation stops and the scale would otherwise snap back instantly
       while the slide is still half-visible mid-crossfade. */
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
    will-change: opacity, transform;
}

.hero-slides img.active {
    opacity: 1;
    /* 9s drift, then it holds until the crossfade takes it away. */
    animation: heroDrift 9s ease-out forwards;
}

@keyframes heroDrift {
    from { transform: scale(1.06); }
    to   { transform: scale(1.13); }
}

/* Fine grain over the photos. The sources are modest, so a little texture
   reads better than clean upscaled pixels. */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.012) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.012) 25%, transparent 25%);
    background-size: 4px 4px;
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse 90% 70% at 50% 45%, rgba(0,0,0,0.30), rgba(0,0,0,0.62) 100%),
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.62) 0%,
            rgba(0,0,0,0.42) 40%,
            rgba(0,0,0,0.72) 100%
        );
}

.hero-placeholder-hint {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.45);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px dashed rgba(255,255,255,0.25);
    padding: 0.5rem 1rem;
}

.hero-placeholder-hint svg {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: min(500px, 80vw);
    margin-bottom: 2rem;
    opacity: 0;
    transform: scale(0.9);
    animation: heroLogoIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes heroLogoIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-tagline {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-subline {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.72em;
    letter-spacing: 0.28em;
    color: rgba(255,255,255,0.5);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--pure-white);
    text-decoration: none;
    padding: 1.1rem 3.5rem;
    border: 2px solid var(--pure-white);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
    transition: color 0.4s ease, border-color 0.4s ease;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pure-white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.hero-cta:hover {
    color: var(--black);
}

.hero-cta:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}


/* ========== SECTION SPACING ========== */
section {
    padding: 8rem 3rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== INTRO / ABOUT STRIP ========== */
.intro {
    background: var(--black);
    color: var(--pure-white);
    text-align: center;
    padding: 6rem 3rem;
}

.intro-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    letter-spacing: -0.01em;
}

.intro-text strong {
    font-weight: 600;
    color: var(--pure-white);
}

.intro-text em {
    font-style: italic;
    color: var(--gray-300);
}

/* ========== ABOUT / BIO ========== */
.about {
    background: var(--pure-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    position: relative;
    aspect-ratio: 3/4;
    /* Replace with Bradley's photo */
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    overflow: hidden;
}

/* Once a real photo is in place the placeholder gradient and label must go. */
.about-image.has-photo { background: none; }
.about-image.has-photo::after { content: none; }
.about-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-image::after {
    content: 'Photo Coming Soon';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.about-content .section-heading {
    margin-bottom: 2rem;
}

.about-content p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.85;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--gray-200);
}

.stat h3 {
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
}

.stat p {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400) !important;
    margin-bottom: 0 !important;
}

/* ========== SERVICES ========== */
.services {
    background: var(--gray-100);
}

.services-header {
    text-align: center;
    margin-bottom: 5rem;
}

.services-header .section-body {
    margin: 0 auto;
}

/* Personal Training — Full Width Feature */
.service-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 4rem;
    background: var(--black);
    color: var(--pure-white);
    overflow: hidden;
}

.service-featured-image {
    min-height: 500px;
    /* Replace with training photo */
    background: linear-gradient(135deg, var(--gray-700), var(--gray-800));
    position: relative;
}

.service-featured-image::after {
    content: 'Photo Coming Soon';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.service-featured-content {
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-featured-content .section-label {
    color: var(--gray-400);
}

.service-featured-content .section-heading {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.service-featured-content p {
    color: var(--gray-300);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.service-featured-content ul {
    list-style: none;
    margin-bottom: 2.5rem;
}

.service-featured-content ul li {
    font-size: 0.95rem;
    color: var(--gray-300);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.service-featured-content ul li::before {
    content: '';
    width: 6px;
    height: 1px;
    background: var(--gray-400);
    flex-shrink: 0;
}

.btn-white {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--pure-white);
    text-decoration: none;
    padding: 1rem 2.5rem;
    transition: all 0.4s ease;
    align-self: flex-start;
}

.btn-white:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

/* Secondary Services Grid */
.services-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-card {
    background: var(--pure-white);
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-number {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 3.5rem;
    color: var(--gray-200);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-card-features {
    list-style: none;
}

.service-card-features li {
    font-size: 0.85rem;
    color: var(--gray-500);
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.service-card-features li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--black);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Service card accordion (collapses on mobile only) */
.sc-head {
    display: block;
    cursor: default;
    outline-offset: 4px;
}

.sc-toggle { display: none; }

.sc-body {
    display: grid;
    grid-template-rows: 1fr;
}

.sc-body-inner {
    min-height: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .services-secondary { gap: 1rem; }
    .service-card { padding: 0; }
    .service-card:hover { transform: none; }

    .sc-head {
        display: flex;
        align-items: center;
        gap: 1.1rem;
        cursor: pointer;
        padding: 1.5rem;
        -webkit-tap-highlight-color: transparent;
    }

    .sc-head .service-card-number {
        font-size: 1.5rem;
        margin-bottom: 0;
        color: var(--gray-300);
    }

    .sc-head h3 {
        font-size: 1.05rem;
        margin-bottom: 0;
        flex: 1;
    }

    .sc-toggle {
        display: block;
        position: relative;
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .sc-toggle::before,
    .sc-toggle::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 14px;
        height: 1.5px;
        margin-top: -0.75px;
        background: var(--black);
        transition: transform 0.3s ease;
    }

    .sc-toggle::after { transform: rotate(90deg); }
    .service-card.open .sc-toggle::after { transform: rotate(0deg); }

    .sc-body {
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .service-card.open .sc-body { grid-template-rows: 1fr; }

    .sc-body-inner { padding: 0 1.5rem; }
    .sc-body-inner > :last-child { margin-bottom: 1.6rem; }
    .service-card .sc-body .text-link { margin-top: 0.5rem; }
}

/* ========== WHY BRADLEY SECTION ========== */
.why {
    background: var(--black);
    color: var(--pure-white);
}

.why-header {
    text-align: center;
    margin-bottom: 5rem;
}

.why-header .section-label {
    color: var(--gray-400);
}

.why-header .section-body {
    color: var(--gray-400);
    margin: 0 auto;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.why-card {
    padding: 3rem 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    transition: border-color 0.4s ease, transform 0.4s ease;
    position: relative;
}

.why-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-4px);
}

.why-card-number {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 4rem;
    line-height: 1;
    color: rgba(255,255,255,0.06);
    margin-bottom: 1.5rem;
}

.why-card h3 {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.why-card p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ========== HOW IT WORKS ========== */
.process {
    background: var(--pure-white);
}

.process-header {
    text-align: center;
    margin-bottom: 5rem;
}

.process-header .section-body {
    margin: 0 auto;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    isolation: isolate;
}

.process-steps::after {
    content: '';
    position: absolute;
    top: 2rem;
    left: 12.5%;
    width: 0;
    height: 1px;
    background: var(--black);
    z-index: -1;
    transition: width 2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.process-steps.line-visible::after {
    width: 75%;
}

.process-step {
    text-align: center;
}

.step-number {
    width: 4rem;
    height: 4rem;
    border: 1.5px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1rem;
    background: var(--pure-white);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    background: var(--black);
    color: var(--pure-white);
}

/* Process on a gray page section (e.g. contact) — keep the hover readable */
.process.gray { background: var(--gray-100); }
.process.gray .step-number { background: var(--gray-100); }
.process.gray .process-step:hover .step-number {
    background: var(--black);
    color: var(--pure-white);
}

.process-step h4 {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
    background: var(--gray-100);
    text-align: center;
}

.testimonials-header {
    margin-bottom: 4rem;
}

.testimonials-header .section-body {
    margin: 0 auto;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial {
    min-width: 100%;
    padding: 0 2rem;
}

.testimonial blockquote {
    font-family: var(--font-body);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 0.3rem;
}

.testimonial-dots {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 3rem;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.testimonial-dot.active {
    background: var(--black);
    transform: scale(1.2);
}

/* ========== CTA BANNER ========== */
.cta-banner {
    background: var(--black);
    color: var(--pure-white);
    text-align: center;
    padding: 7rem 3rem;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.02) 0%, transparent 70%);
}

.cta-banner .section-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    position: relative;
}

.cta-banner p {
    color: var(--gray-400);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    position: relative;
}

.btn-outline-white {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--pure-white);
    text-decoration: none;
    padding: 1.1rem 3.5rem;
    border: 2px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease;
}

.btn-outline-white::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pure-white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-outline-white:hover {
    color: var(--black);
    border-color: var(--pure-white);
}

.btn-outline-white:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--gray-800);
    color: var(--gray-400);
    padding: 4rem 3rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 52px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer h4 {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 1.2rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.6rem;
}

.footer ul a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer ul a:hover {
    color: var(--pure-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--pure-white);
}

/* ========== CONTACT FORM (Modal) ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--pure-white);
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3.5rem;
    position: relative;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 1.5px;
    background: var(--gray-400);
    transition: background 0.3s ease;
}

.modal-close::before { transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }
.modal-close:hover::before,
.modal-close:hover::after { background: var(--black); }

.modal h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.modal .section-label {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 0;
    border: none;
    border-bottom: 1px solid var(--gray-200);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--black);
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--black);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--black);
    color: var(--pure-white);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: var(--gray-700);
    transform: translateY(-1px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    section { padding: 6rem 2rem; }

    .about-grid {
        gap: 4rem;
    }

    .service-featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-featured-image {
        aspect-ratio: 16/9;
        min-height: 0; /* min-height transfers through aspect-ratio into min-width and blows out the track */
    }

    .service-featured-content { min-width: 0; }

    .why-grid {
        gap: 2rem;
    }

    .why-card {
        padding: 2rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    section { padding: 5rem 1.5rem; }

    .nav { padding: 1.2rem 1.5rem; }
    .nav.scrolled { padding: 0.8rem 1.5rem; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--pure-white);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a,
    .nav:not(.scrolled) .nav-links a {
        color: var(--black);
        font-size: 1rem;
        letter-spacing: 0.15em;
    }

    .nav-cta,
    .nav:not(.scrolled) .nav-cta {
        border-color: var(--black) !important;
        color: var(--black) !important;
    }

    .nav-toggle { display: flex; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        aspect-ratio: 4/3;
    }

    .about-stats {
        gap: 2rem;
    }

    .services-secondary {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .process-steps::after { display: none; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-subline {
        letter-spacing: 0.16em;
        line-height: 2;
    }

    .hero-cta {
        padding: 1rem 2.5rem;
        font-size: 0.75rem;
    }

    .service-featured-content {
        padding: 2.5rem 1.5rem;
    }

    .service-card {
        padding: 2.5rem 2rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 2.5rem 1.5rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   INTERNAL PAGES
   ========================================================================== */

/* ========== PAGE HEADER (internal pages) ========== */
.page-header {
    position: relative;
    background: var(--black);
    color: var(--pure-white);
    padding: 11rem 3rem 6rem;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 55%),
        linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 60%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header .section-label {
    color: var(--gray-400);
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.page-header h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    max-width: 14ch;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.page-header p {
    margin-top: 2rem;
    font-size: 1.15rem;
    color: var(--gray-400);
    max-width: 600px;
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.page-header-actions {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.breadcrumb a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover { color: var(--pure-white); }

.breadcrumb span::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 1px;
    background: var(--gray-600);
    vertical-align: middle;
    margin-right: 0.8rem;
}

/* Generic buttons reused across pages */
.btn-black {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pure-white);
    background: var(--black);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border: 2px solid var(--black);
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-black:hover {
    background: var(--pure-white);
    color: var(--black);
}

.btn-outline-black {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--black);
    background: transparent;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border: 2px solid var(--black);
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-outline-black:hover {
    background: var(--black);
    color: var(--pure-white);
}

.page-header .btn-white { align-self: auto; }

/* ========== VIDEO FRAME (vertical 9:16 clips) ========== */
.video-frame {
    position: relative;
    aspect-ratio: 9 / 16;
    background: var(--gray-800);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35);
}

.video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--gray-800);
}

.video-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 45%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.video-frame.playing::after,
.video-frame.playing .video-play,
.video-frame.playing .video-caption {
    opacity: 0;
    pointer-events: none;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.7);
    background: rgba(10,10,10,0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, opacity 0.3s ease;
}

.video-play::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent var(--pure-white);
    margin-left: 4px;
}

.video-frame:hover .video-play {
    transform: scale(1.08);
    background: rgba(10,10,10,0.55);
}

.video-caption {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 2;
    color: var(--pure-white);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-caption span {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.4rem;
}

.video-caption strong {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.video-duration {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.3rem 0.6rem;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-frame.playing .video-duration { opacity: 0; }

/* ========== MEDIA + TEXT SPLIT ========== */
.split {
    background: var(--pure-white);
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 6rem;
    align-items: center;
}

.split-grid.reverse {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.split-grid.reverse .split-media { order: 2; }

.split-media {
    max-width: 420px;
    width: 100%;
    justify-self: center;
}

/* A 9:16 frame is 747px tall at the 420px column width, which badly outruns a
   short text column beside it. In split sections the frame is cropped to 4:5 -
   the video already uses object-fit: cover, so this trims the frame rather than
   letterboxing it. Biased above centre so faces survive the crop.
   The gallery's "In Motion" grid keeps the full 9:16; nothing sits beside it. */
.split-media .video-frame { aspect-ratio: 4 / 5; }
/* Where the 4:5 window sits over the 9:16 source. Default keeps the upper
   two-thirds, which suits a centred subject. Clips with burned-in captions need
   a lower value so the caption band stays inside the crop instead of being
   sliced in half - set --focus on the frame to override. */
.split-media .video-frame video { object-position: center var(--focus, 35%); }

/* The crop is kept during playback too. Expanding back to 9:16 on play would
   shove 222px of page down under the reader mid-click, and in these particular
   clips (talking head, room wide) nothing important sits at the top or bottom
   edge, so there is nothing to recover. */

.split-content .section-heading {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.split-content p {
    color: var(--gray-500);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.split-content p:last-of-type { margin-bottom: 0; }

.split.dark {
    background: var(--black);
    color: var(--pure-white);
}

.split.dark .section-label { color: var(--gray-400); }
.split.dark .split-content p { color: var(--gray-300); }
.split.gray { background: var(--gray-100); }

/* Checklist */
.checklist {
    list-style: none;
    margin: 2rem 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 2rem;
}

.checklist li {
    font-size: 0.95rem;
    color: var(--gray-600);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    line-height: 1.5;
}

.checklist li::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 0.45rem;
    border: 1.5px solid var(--black);
}

.split.dark .checklist li { color: var(--gray-300); }
.split.dark .checklist li::before { border-color: var(--gray-300); }

.checklist.single { grid-template-columns: 1fr; }

.split-content .actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========== FEATURE GRID (detail cards) ========== */
.features {
    background: var(--gray-100);
}

.features.white { background: var(--pure-white); }
.features.dark { background: var(--black); color: var(--pure-white); }
.features.dark .section-label { color: var(--gray-400); }
.features.dark .section-body { color: var(--gray-400); }

.features-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.features-header .section-body { margin: 0 auto; }

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

.features-grid.two { grid-template-columns: repeat(2, 1fr); }
.features-grid.four { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.feature {
    background: var(--pure-white);
    padding: 3rem 2.5rem;
    border: 1px solid var(--gray-200);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.15);
}

.features.dark .feature {
    background: transparent;
    border-color: rgba(255,255,255,0.08);
}

.features.dark .feature:hover {
    border-color: rgba(255,255,255,0.2);
    box-shadow: none;
}

.feature-number {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--gray-200);
    margin-bottom: 1.5rem;
}

.features.dark .feature-number { color: rgba(255,255,255,0.08); }

.feature h3 {
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.9rem;
}

.feature p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.75;
}

.features.dark .feature p { color: var(--gray-400); }

/* ========== FEATURED PROGRAM BANNER ========== */
.program {
    background: var(--gray-100);
}

.program-card {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    background: var(--black);
    color: var(--pure-white);
    overflow: hidden;
}

.program-content {
    padding: 4.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.program-content .section-label { color: var(--gray-400); }

.program-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
}

.program-content p {
    color: var(--gray-300);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.program-meta {
    display: flex;
    gap: 3rem;
    margin: 1rem 0 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.program-meta div h4 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.program-meta div span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.program-media {
    position: relative;
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.program-media .video-frame {
    width: 100%;
    max-width: 320px;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8);
}

/* ========== VIDEO PAIR (two clips side-by-side) ========== */
.video-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 320px));
    gap: 2.5rem;
    justify-content: center;
}

.video-pair .video-frame { width: 100%; }

/* ========== GALLERY PLACEHOLDER (home gym projects) ========== */
.gallery {
    background: var(--pure-white);
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-header .section-body { margin: 0 auto; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    overflow: hidden;
}

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item::after {
    content: 'Project Photo Coming Soon';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-400);
    text-align: center;
    padding: 1rem;
}

.media-placeholder {
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    position: relative;
}

/* Real photo in a split-media slot: Bradley's shots are 4:3 landscape, so the
   slot drops its 4:5 portrait ratio rather than cropping most of the room away. */
.media-placeholder.has-photo { aspect-ratio: 4 / 3; background: none; }
.media-placeholder.has-photo::after { content: none; }
.media-placeholder.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.media-placeholder::after {
    content: 'Photo Coming Soon';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-400);
    text-align: center;
    padding: 1rem;
}

.split.dark .media-placeholder {
    background: linear-gradient(135deg, #1c1c1c, #2b2b2b);
}

.split.dark .media-placeholder::after { color: var(--gray-600); }

/* Cross-link to Bradley's other brand. Deliberately understated: Focus Fuel Fire
   is a separate business, so it reads as a related venture rather than a merge. */
.footer-sister {
    margin-top: 0.9rem !important;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    color: var(--gray-500);
}

.footer-sister a {
    color: var(--gray-300);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.22);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-sister a:hover {
    color: var(--pure-white);
    border-bottom-color: var(--pure-white);
}

/* ========== RESULTS ==========
   Colours here carry meaning, not decoration: one hue for an improvement, one for
   a regression. Both were checked with the palette validator and pass the CVD,
   contrast and lightness gates in light and dark. Direction is ALSO carried by an
   arrow and the words "better"/"worse", so nothing depends on colour alone. */
:root {
    --res-better: #1d5486;
    --res-worse:  #b8541f;
    --res-before: #8d8d8d;
}

.sample-notice {
    background: #fff8e8;
    border-top: 1px solid #e8d9b4;
    border-bottom: 1px solid #e8d9b4;
    padding: 1.1rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.sample-notice strong { display: block; font-family: var(--font-display); font-weight: 900; margin-bottom: 0.2rem; }
.sample-notice span { color: var(--gray-600); font-weight: 300; }
.sample-notice code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; background: rgba(0,0,0,0.06); padding: 0.1em 0.35em; }

/* ---- summary strip ---- */
.results-summary { background: var(--black); color: var(--pure-white); padding: 3.5rem 0; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; text-align: center; }
.summary-cell .s-val { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.summary-cell .s-lab { margin-top: 0.6rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray-400); }
@media (max-width: 720px) { .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem; } }

/* ---- toolbar ---- */
.results { background: var(--gray-100); }
.results-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.table-toggle {
    font: inherit; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
    background: none; border: 1px solid var(--gray-300); color: var(--gray-600);
    padding: 0.6rem 1.1rem; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease;
}
.table-toggle:hover { border-color: var(--black); color: var(--black); }

/* ---- cards ---- */
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
@media (max-width: 900px) { .results-grid { grid-template-columns: 1fr; } }

.result-card {
    background: var(--pure-white);
    border: 1px solid var(--gray-200);
    padding: 2rem 2rem 1.6rem;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.result-card.in { opacity: 1; transform: none; }

.rc-head { border-bottom: 1px solid var(--gray-200); padding-bottom: 1.1rem; margin-bottom: 1.4rem; }
.rc-role { font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; letter-spacing: 0.01em; }
.rc-meta { margin-top: 0.35rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-400); }

/* ---- one metric row ---- */
.metric { padding: 0.95rem 0; border-bottom: 1px solid var(--gray-100); position: relative; }
.metric:last-child { border-bottom: none; }
.metric-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.7rem; }
.metric-name { font-size: 0.86rem; font-weight: 600; color: var(--gray-700); }
.metric-vals { font-size: 0.86rem; font-variant-numeric: tabular-nums; color: var(--gray-500); white-space: nowrap; }
.metric-vals .v-before { color: var(--res-before); }
.metric-vals .v-arrow { margin: 0 0.35rem; color: var(--gray-300); }
.metric-vals .v-after { font-weight: 700; color: var(--black); }

.delta {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
    padding: 0.16rem 0.45rem; border-radius: 2px; white-space: nowrap;
}
.delta.better { color: var(--res-better); background: rgba(29,84,134,0.08); }
.delta.worse  { color: var(--res-worse);  background: rgba(184,84,31,0.09); }
.delta .d-word { font-weight: 400; opacity: 0.75; }

/* ---- the track: a dumbbell between the two states ---- */
.track { position: relative; height: 12px; }
.track-rail { position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--gray-200); }
.track-fill { position: absolute; top: 5px; height: 2px; background: var(--res-better); width: 0; transition: left 1s cubic-bezier(0.22,1,0.36,1), width 1s cubic-bezier(0.22,1,0.36,1); }
.metric.is-worse .track-fill { background: var(--res-worse); }
.track-dot { position: absolute; top: 1px; width: 10px; height: 10px; border-radius: 50%; margin-left: -5px; transition: left 1s cubic-bezier(0.22,1,0.36,1); }
.track-dot.before { background: var(--pure-white); border: 2px solid var(--res-before); }
.track-dot.after  { background: var(--res-better); border: 2px solid var(--pure-white); box-shadow: 0 0 0 1px var(--res-better); }
.metric.is-worse .track-dot.after { background: var(--res-worse); box-shadow: 0 0 0 1px var(--res-worse); }

/* hover readout */
.metric-tip {
    position: absolute; left: 0; bottom: calc(100% - 0.5rem); z-index: 5;
    background: var(--black); color: var(--pure-white);
    font-size: 0.74rem; line-height: 1.5; padding: 0.5rem 0.7rem; white-space: nowrap;
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
}
.metric:hover .metric-tip, .metric:focus-within .metric-tip { opacity: 1; visibility: visible; transform: none; }

/* ---- table view ---- */
.results-table-wrap { margin-top: 2.5rem; overflow-x: auto; background: var(--pure-white); border: 1px solid var(--gray-200); }
.results-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.results-table caption { text-align: left; padding: 1rem 1.2rem 0; color: var(--gray-500); font-size: 0.8rem; }
.results-table th, .results-table td { text-align: left; padding: 0.7rem 1.2rem; border-bottom: 1px solid var(--gray-100); }
.results-table th { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-400); font-weight: 600; }
.results-table td.num { font-variant-numeric: tabular-nums; }
.results-table td.better { color: var(--res-better); font-weight: 600; }
.results-table td.worse { color: var(--res-worse); font-weight: 600; }

.results-note { margin-top: 2.5rem; font-size: 0.82rem; line-height: 1.7; color: var(--gray-500); max-width: 640px; }

@media (prefers-reduced-motion: reduce) {
    .result-card { opacity: 1; transform: none; transition: none; }
    .track-fill, .track-dot { transition: none; }
}

/* ========== CORPORATE WELLNESS (homepage band) ========== */
.corporate {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.corporate-head { text-align: center; margin-bottom: 3.5rem; }
.corporate-head .section-body { margin: 0 auto; }

.corporate-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4.5rem;
    align-items: center;
}

.corp-media { max-width: 420px; width: 100%; justify-self: center; }
.corp-media .video-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.corp-list { list-style: none; margin: 0 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; }
.corp-list li { display: flex; flex-direction: column; gap: 0.28rem; }
.corp-list strong { font-family: var(--font-display); font-weight: 900; font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase; }
.corp-list span { font-size: 0.9rem; font-weight: 300; line-height: 1.6; color: var(--gray-500); }

.corp-modes { display: flex; gap: 2.2rem; flex-wrap: wrap; margin: 0 0 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--gray-200); }
.corp-modes div { display: flex; flex-direction: column; gap: 0.2rem; }
.corp-modes b { font-family: var(--font-display); font-weight: 900; font-size: 0.9rem; }
.corp-modes span { font-size: 0.82rem; font-weight: 300; color: var(--gray-500); }

@media (max-width: 1024px) {
    .corporate-grid { grid-template-columns: 1fr; gap: 3rem; }
    .corp-media { order: -1; }
}

@media (max-width: 620px) {
    .corp-list { grid-template-columns: 1fr; }
    .corp-modes { gap: 1.4rem; }
}

/* ========== VIDEO GRID (gallery "In Motion") ========== */
/* Same 9:16 frame the rest of the site uses, three across. Capped so the
   clips are never blown up much past their native width. */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 340px));
    gap: 2rem;
    justify-content: center;
}

@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 320px)); } }
@media (max-width: 560px) { .video-grid { grid-template-columns: minmax(0, 320px); } }

/* ========== PHOTO LIGHTBOX ========== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(8,8,8,0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 4.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
    /* Source photos are 640-900px wide. Fill more of the screen than the grid
       tile does, but cap the enlargement so a small photo never turns to mush -
       when full-resolution originals arrive this same rule shows them bigger. */
    width: min(100%, 960px);
    height: auto;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8);
    transform: scale(0.97);
    transition: transform 0.28s ease;
}

.lightbox.open img { transform: scale(1); }

.lightbox-caption {
    position: absolute;
    left: 0; right: 0; bottom: 1.35rem;
    text-align: center;
    color: rgba(255,255,255,0.72);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    padding: 0 4.5rem;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: none;
    border: 0;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0.6rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover { color: #fff; }

.lightbox-close { top: 1.1rem; right: 1.4rem; font-size: 1.9rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 2.6rem; }
.lightbox-nav.prev { left: 0.9rem; }
.lightbox-nav.next { right: 0.9rem; }
.lightbox-nav[hidden] { display: none; }

/* Photos that open in the lightbox advertise it on hover. */
.gallery-grid.photos .gallery-item,
.media-placeholder.has-photo { cursor: zoom-in; }

@media (max-width: 640px) {
    .lightbox { padding: 3rem 1rem 4rem; }
    .lightbox-nav { font-size: 2rem; }
    .lightbox-nav.prev { left: 0.1rem; }
    .lightbox-nav.next { right: 0.1rem; }
}

/* ========== PHOTO GALLERIES ========== */
/* Bradley's project photos come in at 640x480. Rather than upscale them into
   the big feature tiles, this grid keeps tiles at ~285px inside the 1200px
   container, so nothing is ever enlarged past its native size and the images
   stay sharp on 2x displays. Tiles match the 4:3 source aspect exactly. */
.gallery-grid.photos {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    gap: 1rem;
}

.gallery-grid.photos .gallery-item {
    aspect-ratio: 4 / 3;
    background: var(--gray-200);
}

.gallery-grid.photos .gallery-item::after { content: none; }

.gallery-grid.photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-grid.photos .gallery-item:hover img { transform: scale(1.05); }

.gallery-group + .gallery-group { margin-top: 3.5rem; }

.gallery-group-head {
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--gray-200);
}

.gallery-group-head h3 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gallery-group-head p {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--gray-500);
    margin: 0;
}

@media (max-width: 1024px) {
    .gallery-grid.photos { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
}

@media (max-width: 768px) {
    .gallery-grid.photos { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
}

@media (max-width: 480px) {
    .gallery-grid.photos { grid-template-columns: repeat(2, 1fr); }
}

/* ========== FAQ ========== */
.faq {
    background: var(--gray-100);
}

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 5rem;
}

.faq-list {
    border-top: 1px solid var(--gray-200);
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.6rem 0;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gray-400);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
    padding: 0 0 1.6rem;
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 620px;
}

/* ========== TESTIMONIAL CARDS (testimonials page) ========== */
.testimonial-card blockquote {
    font-weight: 300;
    font-style: italic;
    font-size: 1.02rem;
    color: var(--gray-600);
    line-height: 1.85;
    margin-bottom: 1.8rem;
}

.testimonial-card blockquote::before {
    content: '\201C';
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--gray-300);
    margin-bottom: 0.8rem;
}

/* Client testimonials run to two paragraphs; keep them separated inside the
   single blockquote so the decorative quote mark still sits above the first. */
.testimonial-card blockquote p + p { margin-top: 1.1rem; }

.testimonial-card .t-author {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.testimonial-card .t-role {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-top: 0.3rem;
}

/* ========== QUOTE BAND ========== */
.quote-band {
    background: var(--gray-100);
    text-align: center;
    padding: 6rem 3rem;
}

.quote-band blockquote {
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.2rem, 2.8vw, 1.7rem);
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 820px;
    margin: 0 auto 1.5rem;
}

.quote-band cite {
    font-style: normal;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ========== CONTACT PAGE ========== */
.contact-page {
    background: var(--pure-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 6rem;
}

.contact-info h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 1.5rem;
}

.contact-info > p {
    color: var(--gray-500);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 2.5rem;
}

.contact-details {
    list-style: none;
    border-top: 1px solid var(--gray-200);
}

.contact-details li {
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.contact-details li span {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 0.4rem;
}

.contact-details li a,
.contact-details li strong {
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--black);
    text-decoration: none;
}

.contact-details li a:hover { text-decoration: underline; }

.contact-form-wrap {
    background: var(--gray-100);
    padding: 3.5rem;
}

.contact-form-wrap h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.contact-form-wrap .section-label { margin-bottom: 2.5rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

/* ========== NAV ACTIVE STATE ========== */
.nav-links a.active::after { width: 100%; }

/* ========== RESPONSIVE (internal pages) ========== */
@media (max-width: 1024px) {
    .page-header { padding: 9rem 2rem 5rem; }

    .split-grid,
    .split-grid.reverse {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .split-grid.reverse .split-media { order: 0; }

    .split-media { max-width: 360px; }

    .features-grid,
    .features-grid.four { grid-template-columns: 1fr 1fr; }

    .program-card { grid-template-columns: 1fr; }
    .program-media { padding: 2.5rem 2rem 3rem; }
    .program-content { padding: 3.5rem 2.5rem; }

    .faq-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .gallery-grid { grid-auto-rows: 220px; }
}

@media (max-width: 768px) {
    .page-header { padding: 8rem 1.5rem 4rem; }

    .features-grid,
    .features-grid.two,
    .features-grid.four { grid-template-columns: 1fr; }

    .checklist { grid-template-columns: 1fr; }

    .video-pair {
        grid-template-columns: minmax(0, 320px);
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 180px;
    }

    .gallery-item.wide { grid-column: span 2; }

    .program-meta { gap: 2rem; flex-wrap: wrap; }

    .contact-form-wrap { padding: 2.5rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.wide,
    .gallery-item.tall { grid-column: auto; grid-row: auto; }
    .feature { padding: 2.5rem 1.75rem; }
    .page-header-actions a { width: 100%; text-align: center; }
}

/* ========== TEXT LINKS & SERVICE ACTIONS ========== */
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--black);
    text-decoration: none;
    transition: gap 0.3s ease, opacity 0.3s ease;
}

.text-link::after {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.text-link:hover { gap: 0.9rem; }
.text-link:hover::after { width: 40px; }

.text-link.light { color: var(--pure-white); }

.service-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-card .text-link { margin-top: 2rem; }

/* Longer primary nav: tighten at mid widths */
/* The nav carries six links plus a CTA button and a wide wordmark. Measured, the
   row needs roughly 1050px even with the tightened mid-width type below, so it
   collapses to the hamburger at 1024px rather than 768px — otherwise it overflows
   on small laptops and landscape tablets. These rules mirror the mobile nav. */
@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--pure-white);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 90;
    }

    .nav-links.open { right: 0; }

    .nav-links a,
    .nav:not(.scrolled) .nav-links a {
        color: var(--black);
        font-size: 1rem;
        letter-spacing: 0.15em;
    }

    .nav-cta,
    .nav:not(.scrolled) .nav-cta {
        border-color: var(--black) !important;
        color: var(--black) !important;
        padding: 0.8rem 1.8rem !important;
    }

    .nav-toggle { display: flex; z-index: 95; }
}

/* Between the hamburger and full width the row still needs help: tighter gaps,
   smaller caps, and a slightly smaller wordmark. */
@media (max-width: 1320px) and (min-width: 1025px) {
    .nav-logo img { height: 42px; }
    .nav:not(.scrolled) .nav-logo img { height: 46px; }
}

@media (max-width: 1320px) and (min-width: 1025px) {
    .nav-links { gap: 1.6rem; }
    .nav-links a { font-size: 0.72rem; letter-spacing: 0.15em; }
    .nav-cta { padding: 0.6rem 1.3rem !important; }
}

/* Readers who ask for less motion get a still hero. */
@media (prefers-reduced-motion: reduce) {
    .hero-slides img { transition: none; animation: none; transform: none; }
    .hero-slides img:not(.active) { display: none; }
}
