/* ════════════════════════════════════════════
   AZ FIT — styles.css
   Base: hero v3 · Cards: v6 · Quote interstitials
   ════════════════════════════════════════════ */

:root {
    --bg:      #060606;
    --surface: #0e0e0e;
    --card:    #141414;
    --accent:  #D44D7A;
    --text:    #EDEAE4;
    --muted:   #4a4a4a;
    --quiet:   #252525;
    --border:  rgba(255,255,255,0.055);
    --ease:    cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* overflow-x: clip (not hidden) contains horizontal overflow WITHOUT
   turning html/body into a scroll container — which would break the
   position:sticky pinned quote bands. */
html { overflow-x: clip; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

::selection { background: rgba(212,77,122,0.35); color: #fff; }

/* Film grain — fixed overlay, very low opacity */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 998;
    pointer-events: none;
    opacity: 0.032;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

/* ── NAV ─────────────────────────────────── */
nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 56px;
    height: 68px;
    background: rgba(6,6,6,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: transform 0.5s var(--ease), border-color 0.4s ease, background 0.4s ease;
    will-change: transform;
}
nav.scrolled {
    background: rgba(6,6,6,0.92);
    border-bottom-color: var(--border);
}
nav.nav-hidden { transform: translateY(-100%); }

.logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
}
.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-links a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-btn {
    padding: 9px 20px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.25s var(--ease);
}
.nav-btn:hover { opacity: 0.88; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.2s;
    transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
    display: none;
    position: fixed;
    inset: 68px 0 0 0;
    background: rgba(6,6,6,0.97);
    z-index: 199;
    padding: 40px 32px;
    flex-direction: column;
    border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 36px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.15s;
}
.nav-mobile a:hover { color: var(--text); }
.nav-mobile .nav-btn {
    margin-top: 28px;
    align-self: flex-start;
    width: auto;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    border-bottom: none;
    padding: 10px 24px;
}

/* ── HERO ─────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(76px, 8vh, 96px) 56px clamp(14px, 2vh, 22px);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 120%;
    max-width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(212,77,122,0.04) 0%, transparent 70%);
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}

/* Subtle real-gym backdrop — heavily darkened so it reads as
   atmosphere, never competing with the copy. */
.hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center 55%;
    pointer-events: none;
}
.hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6,6,6,0.72) 0%, rgba(6,6,6,0.78) 55%, var(--bg) 100%),
        radial-gradient(ellipse at center, rgba(6,6,6,0.35) 0%, rgba(6,6,6,0.74) 75%);
}
/* Lift all hero content above the backdrop */
.hero > *:not(.hero-photo) {
    position: relative;
    z-index: 2;
}

.hero-h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(36px, 4.4vw, 68px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--text);
    max-width: 900px;
    margin-bottom: 20px;
    opacity: 0;
    animation: riseIn 0.7s ease 0.2s forwards;
}
.hero-h1 em {
    font-style: normal;
    color: var(--accent);
    font-weight: 900;
}

.hero-sub {
    font-size: 16px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.75;
    max-width: 460px;
    margin: 0 auto 0;
    opacity: 0;
    animation: riseIn 0.7s ease 0.35s forwards;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 22px;
    opacity: 0;
    animation: riseIn 0.7s ease 0.45s forwards;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    box-shadow: 0 8px 28px rgba(212,77,122,0.3);
}
.cta-primary:hover {
    box-shadow: 0 14px 36px rgba(212,77,122,0.4);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    background: transparent;
    color: var(--muted);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: 1px solid var(--quiet);
    transition: all 0.2s;
}
.cta-secondary:hover { color: var(--text); border-color: #333; }

/* ── BEFORE / AFTER CARDS (Zach's own) ────── */
.results-showcase {
    width: 100%;
    max-width: 640px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    animation: riseIn 0.9s ease 0.55s forwards;
    position: relative;
}

.results-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-bottom: 40px;
}
.results-arrow {
    font-size: 22px;
    color: var(--accent);
    opacity: 0.7;
}

.result-photo-card {
    flex: 1;
    max-width: 232px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 0 0 1px var(--border),
        0 32px 64px rgba(0,0,0,0.55);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    cursor: default;
}
.result-photo-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 48px 80px rgba(0,0,0,0.65);
}

.result-photo-card.before {
    max-width: 218px;
    aspect-ratio: 3 / 3.3;
    background: linear-gradient(160deg, #161412 0%, #0c0b0a 100%);
    transform-origin: bottom right;
    transform: rotate(-1.5deg);
}
.result-photo-card.before:hover {
    transform: rotate(-1.5deg) translateY(-6px);
}

.result-photo-card.after {
    max-width: 256px;
    aspect-ratio: 3 / 3.7;
    background: linear-gradient(160deg, #1c1714 0%, #100e0c 100%);
    transform-origin: bottom left;
}

.card-photo {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    /* Real photos drop in via inline background-image; favour the
       upper body so faces aren't cropped out. */
    background-size: cover;
    background-position: center 18%;
    background-repeat: no-repeat;
}
.card-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 18px,
            rgba(255,255,255,0.008) 18px,
            rgba(255,255,255,0.008) 19px
        );
}
.card-photo::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

/* Placeholder label — sits centered in photo area until real images drop in */
.ph-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--quiet);
    white-space: nowrap;
    pointer-events: none;
}

.card-label {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-label-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 4px;
}
.before .card-label-tag {
    background: rgba(255,255,255,0.06);
    color: var(--muted);
}
.after .card-label-tag {
    background: rgba(212,77,122,0.15);
    color: var(--accent);
}
.card-label-metric {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.after .card-label-metric { color: var(--text); }

.after-strip {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 80%);
    z-index: 3;
}

/* ── STATS STRIP ──────────────────────────── */
.stats-strip {
    width: 100%;
    border-top: 1px solid var(--border);
    opacity: 0;
    animation: riseIn 0.7s ease 0.75s forwards;
}
.stats-inner {
    max-width: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0 0 14px;
}
.stat {
    padding: 13px 0;
    border-right: 1px solid var(--border);
    text-align: center;
}
.stat:last-child { border-right: none; }
.stat-val {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 5px;
}
.stat-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

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

/* ── FEATURE ROW ──────────────────────────── */
.feature-row {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.feature-row-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 0 56px;
}
.feat {
    padding: 32px 0;
    border-right: 1px solid var(--border);
    padding-right: 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.feat:not(:first-child) { padding-left: 26px; }
.feat:last-child { border-right: none; }
.feat-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}
.feat-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
    font-weight: 300;
}
.feat-accent {
    width: 18px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 4px;
}

/* ── QUOTE INTERSTITIALS (pinned) ─────────── */
/* Each band is taller than the viewport; the inner track
   is sticky, so the quote pins centered and "holds" while
   you scroll through it — feels like it was always there.
   JS (updateScroll) drives opacity / scale / drift from
   scroll progress + Lenis velocity. Word wipe: each word is
   wrapped in .qw (mask) > .qwi (sliding inner). */
.quote-band {
    position: relative;
    height: 150vh;
    border-bottom: 1px solid var(--border);
}
.quote-track {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 56px;
    overflow: hidden;
}
.quote-inner {
    max-width: 820px;
    margin: 0 auto;
    will-change: transform, opacity;
}
.quote-line {
    font-size: clamp(22px, 3.2vw, 38px);
    font-weight: 300;
    font-style: italic;
    color: rgba(237,234,228,0.5);
    line-height: 1.5;
}
.quote-line em {
    font-style: italic;
    color: var(--accent);
}
.qw {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    /* breathing room so descenders aren't clipped by the mask */
    padding-bottom: 0.14em;
    margin-bottom: -0.14em;
}
.qwi {
    display: inline-block;
    transform: translateY(115%);
    transition: transform 0.9s var(--ease);
}
.quote-band.inview .qwi { transform: translateY(0); }

.quote-attr {
    display: inline-block;
    margin-top: 24px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--quiet);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.quote-band.inview .quote-attr { opacity: 1; transform: translateY(0); }

/* ── SECTION SCAFFOLD ─────────────────────── */
.section {
    padding: clamp(48px, 6vh, 84px) 56px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.section-head { margin-bottom: clamp(28px, 4vh, 48px); }
.eyebrow-s {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}
/* Short pink rule instead of the generic dot */
.eyebrow-s::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}
.h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(34px, 4.6vw, 60px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--text);
    max-width: 720px;
}
.h2 em { font-style: normal; color: var(--accent); }
.section-sub {
    font-size: 15px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.75;
    max-width: 520px;
    margin-top: 18px;
}

/* ── ABOUT ────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(32px, 4vw, 60px);
    align-items: start;
}
.about-media { position: sticky; top: 90px; max-width: 360px; }
.about-photo {
    aspect-ratio: 3 / 3.7;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(160deg, #1a1715 0%, #0d0c0b 100%);
    box-shadow: 0 0 0 1px var(--border), 0 32px 64px rgba(0,0,0,0.5);
}
.about-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 18px,
            rgba(255,255,255,0.008) 18px,
            rgba(255,255,255,0.008) 19px
        );
}
.about-photo .after-strip { border-radius: 16px 16px 0 0; }

.cert-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.chip {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--quiet);
    border-radius: 100px;
    padding: 6px 14px;
    transition: color 0.25s, border-color 0.25s;
}
.chip:hover { color: var(--text); border-color: #3a3a3a; }
.chip.chip-accent {
    color: var(--accent);
    border-color: rgba(212,77,122,0.3);
}

.about-lead {
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 300;
    line-height: 1.55;
    color: var(--text);
    margin-bottom: 22px;
}
.about-lead strong { font-weight: 500; color: var(--accent); }
.about-body p {
    font-size: 15px;
    font-weight: 300;
    color: #8a857c;
    line-height: 1.72;
    margin-bottom: 16px;
}
.about-body p strong { font-weight: 500; color: var(--text); }

/* Who this is for */
.fit-box {
    margin-top: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 28px;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}
.fit-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 70%);
}
.fit-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.fit-list { list-style: none; }
.fit-list li {
    font-size: 14px;
    font-weight: 300;
    color: #8a857c;
    line-height: 1.6;
    padding: 6px 0 6px 26px;
    position: relative;
}
.fit-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ── RESULTS / CASE STUDIES ───────────────── */
/* ── RESULTS CAROUSEL (marquee) ───────────── */
.results-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.results-track {
    display: flex;
    align-items: stretch;   /* all cards match the tallest */
    width: max-content;
    padding: 16px 56px;
}
/* main.js clones the cards and adds .is-marquee once the loop is ready.
   CSS keyframes are the no-JS fallback; when main.js drives the transform
   it adds .js-driven (disabling the keyframes) for hover speed control. */
.results-track.is-marquee {
    padding-left: 0;
    padding-right: 0;
    will-change: transform;
    animation: marquee 52s linear infinite;
}
.results-track.is-marquee.js-driven { animation: none; }
.results-marquee:hover .results-track.is-marquee:not(.js-driven) { animation-play-state: paused; }
.results-track .case-card {
    flex: 0 0 320px;
    margin-right: 20px;
}
@keyframes marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

/* Edge speed controls — hover left/right thirds to rewind / fast-forward;
   hover the middle to pause for clicking. */
.marquee-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,10,10,0.55);
    border: 1px solid var(--border);
    color: var(--text);
    opacity: 0;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    pointer-events: none;
    z-index: 5;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.marquee-arrow svg { width: 20px; height: 20px; }
.marquee-arrow.left  { left: 20px; }
.marquee-arrow.right { right: 20px; }
.results-marquee.hint-left  .marquee-arrow.left,
.results-marquee.hint-right .marquee-arrow.right {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.case-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s var(--ease);
}
.case-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 70%);
}
.case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 28px 56px rgba(0,0,0,0.5);
}

.case-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.case-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}
.case-role {
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 2px;
}
.case-weeks {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: right;
}
.case-divider { height: 1px; background: var(--border); }
.case-metric {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.case-val {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: var(--accent);
    line-height: 1;
    white-space: nowrap;
}
/* Qualitative (word) metric — smaller + uppercase so it reads as a label,
   not a number, and never overflows the card. */
.case-val.qual {
    font-size: 24px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.case-label {
    font-size: 12px;
    font-weight: 400;
    color: rgba(237,234,228,0.45);
    line-height: 1.4;
}
.case-quote {
    font-size: 12px;
    font-weight: 300;
    font-style: italic;
    color: rgba(237,234,228,0.35);
    line-height: 1.6;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    flex: 1;
}
.case-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.25s;
}
.case-cta .arrow { transition: transform 0.3s var(--ease); }
.case-card:hover .case-cta { color: var(--accent); }
.case-card:hover .case-cta .arrow { transform: translateX(5px); }

/* ── METHOD ───────────────────────────────── */
.method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
}
.step {
    padding: 36px 28px 36px 0;
    border-right: 1px solid var(--border);
    position: relative;
}
.step:not(:first-child) { padding-left: 28px; }
.step:last-child { border-right: none; padding-right: 0; }
.step::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--accent);
}
.step:not(:first-child)::before { left: 28px; }
.step-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(48px, 5vw, 72px);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(237,234,228,0.22);
    margin-bottom: 18px;
}
.step-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 21px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.step-desc {
    font-size: 13px;
    font-weight: 300;
    color: #8a857c;
    line-height: 1.7;
}

/* ── SERVICES ─────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: clamp(28px, 3.5vw, 44px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.35s;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 70%);
}
.service-card:hover { border-color: rgba(255,255,255,0.1); }

.service-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.service-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(26px, 2.6vw, 34px);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.service-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(212,77,122,0.1);
    padding: 5px 12px;
    border-radius: 100px;
    white-space: nowrap;
}
.service-desc {
    font-size: 14px;
    font-weight: 300;
    color: #8a857c;
    line-height: 1.75;
    margin-bottom: 24px;
}
.service-list {
    list-style: none;
    margin-bottom: 28px;
    flex: 1;
}
.service-list li {
    font-size: 13.5px;
    font-weight: 300;
    color: #8a857c;
    line-height: 1.65;
    padding: 9px 0 9px 26px;
    position: relative;
    border-bottom: 1px solid var(--border);
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
}
.service-list li strong { font-weight: 500; color: var(--text); }
.service-note {
    font-size: 12px;
    font-weight: 300;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 24px;
}
.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    width: fit-content;
}
.service-cta .arrow { color: var(--accent); transition: transform 0.3s var(--ease); }
.service-cta:hover .arrow { transform: translateX(5px); }

/* ── CONTACT ──────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
}
.contact-info p {
    font-size: 15px;
    font-weight: 300;
    color: #8a857c;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 400px;
}
.contact-rows { display: flex; flex-direction: column; gap: 22px; }
.c-row-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 5px;
}
.c-row-val {
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}
a.c-row-val:hover { color: var(--accent); }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: clamp(28px, 3.5vw, 44px);
    position: relative;
    overflow: hidden;
}
.contact-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 70%);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #101010;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--text);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    appearance: none;
    -webkit-appearance: none;
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234a4a4a' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #3a3a3a; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(212,77,122,0.5);
    box-shadow: 0 0 0 3px rgba(212,77,122,0.08);
}
.form-submit {
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    margin-top: 6px;
}
.form-micro {
    text-align: center;
    font-size: 11px;
    font-weight: 300;
    color: var(--muted);
    margin-top: 14px;
}

/* ── FOOTER ───────────────────────────────── */
footer {
    padding: 56px;
    background: var(--bg);
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links {
    display: flex;
    gap: 28px;
    list-style: none;
}
.footer-links a {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
    font-size: 11px;
    font-weight: 300;
    color: var(--quiet);
}

/* ── CASE STUDY PAGE ──────────────────────── */
.cs-hero {
    padding: clamp(140px, 18vh, 200px) 56px clamp(56px, 8vh, 88px);
    border-bottom: 1px solid var(--border);
}
.cs-hero-inner { max-width: 860px; margin: 0 auto; }
.cs-meta-row {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.cs-meta-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.cs-meta-val {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.cs-meta-val.accent { color: var(--accent); }

.cs-body {
    padding: clamp(56px, 8vh, 88px) 56px;
}
.cs-body-inner { max-width: 1000px; margin: 0 auto; }
/* Story-only case studies: narrow, centered text column */
.cs-section { max-width: 680px; margin: 0 auto 48px; }
.cs-h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.cs-h3 span { color: var(--accent); margin-right: 10px; }
.cs-section p,
.cs-row-text p {
    font-size: 15px;
    font-weight: 300;
    color: #8a857c;
    line-height: 1.85;
    margin-bottom: 16px;
}
.cs-row-text p:last-child { margin-bottom: 0; }

/* Photo-rich case studies: text + photo, alternating sides */
.cs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    margin: 0 0 clamp(48px, 7vh, 88px);
}
.cs-row.reverse .cs-row-text { order: 2; }
.cs-row-photo {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background-color: var(--card);
    background-size: cover;
    background-position: center 16%;
    background-repeat: no-repeat;
    box-shadow: 0 0 0 1px var(--border), 0 28px 60px rgba(0,0,0,0.5);
}
.cs-row-photo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 70%);
    z-index: 2;
}
.cs-showcase {
    display: flex;
    gap: 16px;
    margin: 48px 0 56px;
}
.cs-showcase .result-photo-card { max-width: none; flex: 1; }
.cs-pull {
    border-left: 2px solid var(--accent);
    padding: 8px 0 8px 28px;
    margin: 48px auto;
    max-width: 760px;
}
.cs-pull p {
    font-size: clamp(18px, 2vw, 22px);
    font-style: italic;
    font-weight: 300;
    color: rgba(237,234,228,0.6);
    line-height: 1.6;
    margin-bottom: 10px;
}
.cs-pull cite {
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.cs-cta-band {
    text-align: center;
    padding: clamp(64px, 10vh, 100px) 56px;
    border-top: 1px solid var(--border);
}
.cs-cta-band .h2 { margin: 0 auto 28px; }

/* ── NAV: current page ────────────────────── */
.nav-links a.is-current { color: var(--text); }

/* ── GALLERY ──────────────────────────────── */
.gallery-section {
    padding: clamp(24px, 4vh, 48px) 56px clamp(64px, 10vh, 120px);
}
/* CSS-columns masonry — portrait shots tile naturally */
.gallery {
    max-width: 1200px;
    margin: 0 auto;
    columns: 3;
    column-gap: 18px;
}
.gallery-item {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    border: none;
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    break-inside: avoid;
    cursor: pointer;
    box-shadow: 0 0 0 1px var(--border);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.7s var(--ease), opacity 0.4s ease;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(212,77,122,0.22) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}
/* Expand glyph, top-right */
.gallery-item::before {
    content: '⤢';
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    font-size: 15px;
    color: #fff;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(212,77,122,0.5), 0 24px 56px rgba(0,0,0,0.55);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover::before { opacity: 1; transform: translateY(0); }

/* ── LIGHTBOX ─────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(6,6,6,0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-stage {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.lightbox-img {
    max-width: min(88vw, 720px);
    max-height: 82vh;
    border-radius: 12px;
    box-shadow: 0 40px 90px rgba(0,0,0,0.6);
    transform: scale(0.96);
    transition: transform 0.32s var(--ease);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-count {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.lightbox-close,
.lightbox-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20,20,20,0.6);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.lightbox-close { top: 24px; right: 24px; width: 46px; height: 46px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; }
.lightbox-nav.lb-prev { left: 24px; }
.lightbox-nav.lb-next { right: 24px; }
.lightbox-close svg, .lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-close:hover,
.lightbox-nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.08); }

/* ── CUSTOM CURSOR ────────────────────────── */
/* A small accent dot tracks the mouse, growing slightly over
   interactive elements. Only enabled by JS on fine-pointer,
   non-reduced-motion devices (adds .has-cursor, hides native). */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;                       /* revealed on first mouse move */
    transform: scale(1);
    transition: transform 0.18s var(--ease), opacity 0.25s ease;
    will-change: left, top, transform;
}
.cursor-dot.ready  { opacity: 1; }
.cursor-dot.hover  { transform: scale(2); }      /* over a clickable element */
.cursor-dot.down   { transform: scale(0.55); }   /* mouse pressed — click feedback */
.cursor-dot.hover.down { transform: scale(1.5); }
.cursor-dot.hidden { opacity: 0 !important; }    /* over text fields (show caret instead) */

/* Hide the native pointer, but restore meaningful cursors where they
   carry intent: a text caret in fields, a pointer on the select. */
.has-cursor,
.has-cursor * { cursor: none !important; }
.has-cursor input,
.has-cursor textarea { cursor: text !important; }
.has-cursor select { cursor: pointer !important; }

/* ── REVEAL SYSTEM ────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    will-change: opacity, transform;
}
[data-reveal].inview {
    opacity: 1;
    transform: translateY(0);
}

/* ── REDUCED MOTION ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; }
    .qwi { transform: none; }
    .quote-attr { opacity: 1; transform: none; }
    .hero-h1, .hero-sub, .hero-ctas,
    .results-showcase, .stats-strip { opacity: 1; animation: none; }
    /* Collapse the pinned quote bands to normal stacked blocks */
    .quote-band { height: auto; }
    .quote-track { position: static; height: auto; padding: 88px 24px; }
    .quote-inner { opacity: 1 !important; transform: none !important; }
    /* Carousel: no auto-scroll — static, manually scrollable */
    .results-track { animation: none !important; }
    .results-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .results-track .case-card.dup { display: none; }
}

/* ── TABLET ───────────────────────────────── */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-media { position: static; max-width: 380px; }
    .method-grid { grid-template-columns: 1fr 1fr; }
    .step:nth-child(2) { border-right: none; }
    .step:nth-child(3) { border-top: 1px solid var(--border); padding-left: 0; }
    .step:nth-child(3)::before { left: 0; }
    .step:nth-child(4) { border-top: 1px solid var(--border); }
    .services-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .gallery { columns: 2; }
    .gallery-section { padding-left: 32px; padding-right: 32px; }
}

/* ── MOBILE ───────────────────────────────── */
@media (max-width: 768px) {
    nav { padding: 0 24px; }
    .nav-links, nav > .nav-btn { display: none; }
    .nav-toggle { display: flex; }

    .hero { padding: clamp(88px, 11vh, 112px) 24px 20px; }
    .hero-h1 { font-size: clamp(24px, 7.2vw, 40px); }
    .hero-sub { font-size: 15px; max-width: 100%; }

    .results-showcase {
        flex-direction: row;
        align-items: flex-end;
        max-width: 100%;
        gap: 8px;
    }
    .result-photo-card { flex: 1; max-width: none; }
    .result-photo-card.before { transform: none; aspect-ratio: 3/3.8; }
    .result-photo-card.after { aspect-ratio: 3/4.2; }
    .results-connector { display: none; }

    .stats-inner { max-width: 100%; }

    .feature-row-inner { grid-template-columns: 1fr 1fr; padding: 0 24px; }
    .feat { padding-right: 24px; }
    .feat:not(:first-child) { padding-left: 24px; }
    .feat:nth-child(odd) { padding-left: 0; }
    .feat:nth-child(even) { border-right: none; padding-right: 0; }
    .feat:nth-child(n+3) { border-top: 1px solid var(--border); }
    .feat:nth-child(5) { border-right: none; }

    .section { padding: 72px 24px; }
    /* Carousel becomes a swipeable, snap scroller on mobile */
    .results-marquee {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .results-marquee::-webkit-scrollbar { display: none; }
    .results-track { animation: none !important; padding: 14px 24px; }
    .results-track .case-card { flex: 0 0 80vw; scroll-snap-align: center; margin-right: 14px; }
    .results-track .case-card.dup { display: none; }
    .quote-band { height: 135vh; }
    .quote-track { height: 100svh; padding: 0 24px; }

    .method-grid { grid-template-columns: 1fr; }
    .step { border-right: none; padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--border); }
    .step:last-child { border-bottom: none; }
    .step:not(:first-child) { padding-left: 0; border-top: none; }
    .step:not(:first-child)::before { left: 0; }

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

    .cs-hero { padding-left: 24px; padding-right: 24px; }
    .cs-body { padding-left: 24px; padding-right: 24px; }
    .cs-showcase { flex-direction: row; gap: 8px; }
    .cs-row { grid-template-columns: 1fr; gap: 22px; margin-bottom: 48px; }
    .cs-row.reverse .cs-row-text { order: 0; }
    .cs-row-photo { max-width: 440px; width: 100%; }
    .cs-cta-band { padding-left: 24px; padding-right: 24px; }

    .gallery-section { padding: 8px 16px 56px; }
    .gallery { columns: 2; column-gap: 12px; }
    .gallery-item { margin-bottom: 12px; }
    .lightbox { padding: 16px; }
    .lightbox-img { max-width: 92vw; max-height: 78vh; }
    .lightbox-close { top: 14px; right: 14px; width: 42px; height: 42px; }
    .lightbox-nav { width: 44px; height: 44px; }
    .lightbox-nav.lb-prev { left: 10px; }
    .lightbox-nav.lb-next { right: 10px; }

    footer { padding: 40px 24px; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 480px) {
    nav { padding: 0 16px; }
    .hero { padding: clamp(84px, 11vh, 100px) 16px 16px; }
    .hero-ctas { flex-direction: column; width: 100%; }
    .hero-ctas a { width: 100%; justify-content: center; }
    .feature-row-inner { grid-template-columns: 1fr; padding: 0 16px; }
    .feat { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); }
    .feat:last-child { border-bottom: none; }
    .feat:not(:first-child) { padding-left: 0; border-top: none; }
    .section { padding: 64px 16px; }
    .quote-band { height: 130vh; }
    .quote-track { padding: 0 16px; }
    .fit-box { padding: 24px; }
}
