/* ============================================================
   Taper — runtaper.com
   Editorial art direction: cinematic photography, warm serif
   display (Fraunces), cream paper + deep ink + burnt orange.
   ============================================================ */

:root {
    --paper: #F4F1E8;
    --paper-warm: #F0E7D8;
    --ink: #141E2A;
    --ink-2: #1C2A3A;
    --ink-soft: #4A5A6A;
    --orange: #E8631F;
    --orange-deep: #C74E12;
    --teal: #2E9E7A;
    --line: #E3DFD0;
    --line-dark: rgba(255, 255, 255, 0.14);
    --white: #FFFFFF;
    --shadow-md: 0 14px 36px rgba(20, 30, 42, 0.12);
    --shadow-lg: 0 28px 70px rgba(20, 30, 42, 0.22);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2 { font-family: var(--font-display); font-weight: 420; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--orange); }

/* ---------------- Photo placeholders ----------------
   Real photos live at /images/photos/*.jpg. Until they exist,
   the <img> removes itself and the labelled gradient shows. */
.ph {
    position: relative; overflow: hidden; isolation: isolate; background:
        linear-gradient(155deg, #2b3a4d 0%, #16212d 55%, #3d2a1c 100%);
}
.ph::before {
    content: attr(data-label);
    position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center;
    padding: 6rem 2rem 2rem; text-align: center;
    color: rgba(244, 241, 232, 0.45); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
    opacity: 0; transition: opacity .22s ease;
}
.ph img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center center; display: block;
}
.ph.is-fallback::before { opacity: 1; }
.ratio-45 { aspect-ratio: 4 / 5; border-radius: 4px; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
    padding: 1rem 1.9rem; border: none; border-radius: 2px; text-decoration: none; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-solid { background: var(--orange); color: #fff; }
.btn-solid:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-outline { border: 1px solid rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* ---------------- Nav ---------------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
    transition: background .25s ease, padding .25s ease, box-shadow .25s ease;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1400px; margin: 0 auto; }
.nav-brand {
    font-family: var(--font-display); font-weight: 550; font-size: 1.45rem;
    color: #fff; text-decoration: none; transition: color .25s ease;
}
.nav-dot { color: var(--orange); }
.nav-links { display: flex; gap: 1.9rem; }
.nav-links a {
    color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 600; font-size: 0.85rem;
    letter-spacing: 0.04em; text-transform: uppercase; transition: color .18s ease;
}
.nav-links a:hover { color: var(--orange); }
.nav.scrolled { background: rgba(244, 241, 232, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding-top: 0.7rem; padding-bottom: 0.7rem; box-shadow: 0 1px 0 var(--line); }
.nav.scrolled .nav-brand { color: var(--ink); }
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav.scrolled .nav-links a:hover { color: var(--orange); }

/* Language dropdown */
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-dropdown { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 0.4rem; line-height: 1;
    font-family: var(--font-body); font-weight: 700; font-size: 0.8rem;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px; padding: 0.55rem 0.7rem; cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.lang-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.lang-caret { flex: 0 0 auto; transition: transform .2s ease; }
.lang-dropdown.open .lang-caret { transform: rotate(180deg); }
.nav.scrolled .lang-btn { color: var(--ink-soft); border-color: var(--line); }
.nav.scrolled .lang-btn:hover { color: var(--ink); border-color: var(--ink-soft); }

.lang-menu {
    position: absolute; top: calc(100% + 0.5rem); right: 0;
    min-width: 160px; list-style: none; margin: 0; padding: 0.4rem;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 8px; box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 200;
}
.lang-dropdown.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.55rem 0.7rem; border-radius: 4px;
    color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; font-weight: 600;
    transition: background .15s ease, color .15s ease;
}
.lang-menu a:hover { background: rgba(20, 30, 42, 0.05); color: var(--ink); }
.lang-menu a[aria-current="page"] { color: var(--orange); }
.lang-menu a[aria-current="page"]::after { content: "\2713"; font-size: 0.85rem; }

/* ---------------- Hero ---------------- */
.hero {
    position: relative; min-height: 100svh;
    display: flex; align-items: flex-end;
    color: #fff; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { will-change: transform; transform: scale(1.06); object-position: center 34%; }
.hero-scrim {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(20, 30, 42, 0.35) 0%, rgba(20, 30, 42, 0.05) 35%, rgba(20, 30, 42, 0.62) 100%);
}
.hero-content {
    position: relative; width: 100%; max-width: 1400px; margin: 0 auto;
    padding: 9rem clamp(1.25rem, 4vw, 3rem) clamp(4rem, 9vh, 7rem);
}
.hero-eyebrow {
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85); margin-bottom: 1.4rem;
}
.hero h1 {
    font-size: clamp(3rem, 8.5vw, 6.4rem); line-height: 1.02; margin-bottom: 1.5rem;
    text-wrap: balance;
}
.hero-lede {
    max-width: 520px; font-size: clamp(1.02rem, 2vw, 1.2rem); line-height: 1.6;
    color: rgba(255, 255, 255, 0.88); margin-bottom: 2.2rem;
}
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-scroll {
    position: absolute; bottom: 2rem; right: clamp(1.5rem, 4vw, 3rem);
    width: 1px; height: 72px; overflow: visible;
}
.hero-scroll span {
    position: absolute; left: 0; top: 0; width: 1px; height: 100%;
    background: rgba(255, 255, 255, 0.5); transform-origin: top;
    animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------- Marquee ---------------- */
.marquee {
    background: var(--ink); color: var(--paper);
    overflow: hidden; padding: 0.9rem 0; white-space: nowrap;
    border-top: 3px solid var(--orange);
}
.marquee-track { display: inline-block; animation: marquee 30s linear infinite; }
.marquee-track span {
    font-family: var(--font-display); font-style: italic; font-weight: 420;
    font-size: 1.05rem; letter-spacing: 0.06em;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- Manifesto ---------------- */
.manifesto { padding: clamp(6rem, 13vh, 10rem) 0; text-align: center; }
.manifesto-text {
    font-family: var(--font-display); font-weight: 380;
    font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.35; text-wrap: balance;
}
.manifesto-text em { font-style: italic; color: var(--orange); }
.manifesto-sig { margin-top: 2rem; color: var(--ink-soft); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

/* ---------------- Chapters ---------------- */
.chapter { padding: clamp(5rem, 11vh, 8.5rem) 0; }
.chapter-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.chapter-grid > * { min-width: 0; }
.chapter-grid-reverse .chapter-copy { order: 1; }
.chapter-grid-reverse .chapter-media { order: 2; }
.chapter-no {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--orange); margin-bottom: 1rem;
}
.chapter h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.06; margin-bottom: 1.3rem; text-wrap: balance; }
.chapter-lede { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 2rem; max-width: 54ch; }
.chapter-copy { min-width: 0; }
.chapter-copy p,
.chapter-copy li,
.fr-desc,
.cta-sub,
.cta-note { overflow-wrap: anywhere; }
.chapter-media figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.3rem 1.1rem;
    color: rgba(255, 255, 255, 0.92); font-size: 0.85rem; font-style: italic;
    font-family: var(--font-display);
    background: linear-gradient(180deg, transparent, rgba(20, 30, 42, 0.65));
}
.chapter-head { max-width: 720px; margin-bottom: 3rem; }

/* Begin list */
.begin-list { list-style: none; counter-reset: begin; display: grid; gap: 1.5rem; }
.begin-list li {
    counter-increment: begin; position: relative; padding-left: 3.4rem;
    color: var(--ink-soft); font-size: 1rem;
}
.begin-list li::before {
    content: "0" counter(begin);
    position: absolute; left: 0; top: 0.1rem;
    font-family: var(--font-display); font-style: italic; font-size: 1.5rem;
    color: var(--orange);
}
.begin-list strong { color: var(--ink); display: block; margin-bottom: 0.15rem; font-size: 1.05rem; }

/* Dark chapter (coach) */
.chapter-dark { background: var(--ink); color: var(--paper); }
.chapter-dark .chapter-lede { color: #A7B4C2; }
.chapter-dark h2 em { color: #F0A26B; }
.feature-rows { list-style: none; display: grid; }
.feature-rows li { display: grid; gap: 0.2rem; padding: 1.1rem 0; border-top: 1px solid var(--line-dark); }
.chapter:not(.chapter-dark) .feature-rows li { border-top-color: var(--line); }
.fr-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.fr-desc { color: #A7B4C2; font-size: 0.95rem; }
.chapter:not(.chapter-dark) .fr-desc { color: var(--ink-soft); }

.coach-note {
    position: relative; margin: -3.2rem 1.2rem 0 auto; max-width: 340px;
    background: var(--paper); color: var(--ink); border-radius: 4px;
    padding: 1.2rem 1.4rem; box-shadow: var(--shadow-lg);
    font-size: 0.93rem; line-height: 1.55;
}
.coach-note-who { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.4rem; }

/* Stride (gait) */
.stride-stage { position: relative; }
.stride-media { aspect-ratio: 21 / 9; min-height: 380px; }
.stride-chips {
    position: absolute; left: 0; right: 0; bottom: clamp(1.2rem, 4vw, 2.6rem);
    display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
    padding: 0 1.25rem;
}
.chip {
    display: grid; gap: 0.05rem; min-width: 150px;
    background: rgba(20, 30, 42, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 4px;
    padding: 0.85rem 1.1rem; color: #fff;
}
.chip-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #9FB0C0; }
.chip-value { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; }
.chip-note { font-size: 0.75rem; color: #6FD3AE; font-weight: 600; }
.stride-points {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
    margin-top: 3.2rem; color: var(--ink-soft); font-size: 0.98rem;
}
.stride-points strong { color: var(--ink); display: block; margin-bottom: 0.2rem; }

/* Fuel */
.chapter-warm { background: var(--paper-warm); }
.fuel-stat {
    display: grid; gap: 0.3rem; margin: 0 0 2rem;
    padding: 1.6rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
}
.fuel-stat-big {
    font-family: var(--font-display); font-style: italic; font-weight: 450;
    font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--orange);
}
.fuel-stat-sub { color: var(--ink-soft); font-size: 0.95rem; max-width: 42ch; }

/* Basics (for new runners) */
.basics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(1rem, 2.4vw, 1.6rem);
}
.basic-card {
    background: var(--white); border: 1px solid var(--line); border-radius: 14px;
    padding: 1.6rem 1.5rem 1.7rem;
    box-shadow: 0 1px 0 rgba(20, 30, 42, 0.03);
    transition: transform .18s ease, box-shadow .18s ease;
}
.basic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.basic-no {
    font-family: var(--font-display); font-style: italic; font-weight: 450;
    font-size: 1.6rem; line-height: 1; color: var(--orange); margin-bottom: 0.4rem;
}
.basic-title { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; margin-bottom: 0.6rem; }
.basic-what { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 0.8rem; }
.basic-why { font-size: 0.95rem; color: var(--ink); }
.basic-why strong { color: var(--orange); font-weight: 600; }
.basics-foot {
    margin-top: clamp(2rem, 4vw, 2.8rem); text-align: center;
    font-family: var(--font-display); font-style: italic; font-size: 1.15rem;
    color: var(--ink-soft); text-wrap: balance;
}
@media (min-width: 900px) {
    .basics-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------- London ---------------- */
.london {
    position: relative; min-height: 88svh;
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: #fff; overflow: hidden;
}
.london-media { position: absolute; inset: 0; }
.london-media img { object-position: center 45%; }
.london-scrim { position: absolute; inset: 0; background: rgba(20, 30, 42, 0.52); }
.london-content { position: relative; max-width: 760px; padding: 6rem 1.5rem; }
.london-content h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; margin-bottom: 1.4rem; }
.london-content h2 em { color: #F0A26B; }
.london-content p:last-child { color: rgba(255, 255, 255, 0.88); font-size: 1.1rem; max-width: 58ch; margin: 0 auto; }
.london .chapter-no { color: #F0A26B; }

/* ---------------- Phone frames (real app screenshots) ----------------
   Screenshots live at /images/app/*.png (see IMAGES.md). Until a file
   exists, the .ph fallback shows a labelled gradient inside the frame. */
.shot { margin: 0; }
.shot-frame {
    position: relative; background: var(--ink);
    border-radius: 36px; padding: 10px; box-shadow: var(--shadow-lg);
}
.shot-notch {
    position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
    width: 84px; height: 20px; background: var(--ink); border-radius: 100px; z-index: 2;
}
.shot-screen { position: relative; aspect-ratio: 9 / 19.5; border-radius: 27px; overflow: hidden; }
.shot-screen::before { padding: 4.2rem 1.1rem 1.1rem; font-size: 0.7rem; }
.shot figcaption {
    text-align: center; margin-top: 1.1rem;
    font-family: var(--font-display); font-style: italic;
    font-size: 1.02rem; color: var(--ink-soft);
}

/* Goals (pick your finish line) */
.goals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.6rem); align-items: stretch; }
.goal-card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line); border-radius: 14px;
    padding: 1.6rem 1.5rem 0;
    box-shadow: 0 1px 0 rgba(20, 30, 42, 0.03);
    transition: transform .18s ease, box-shadow .18s ease;
}
.goal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.goal-dist {
    font-family: var(--font-display); font-style: italic; font-weight: 450;
    font-size: 1.6rem; line-height: 1; color: var(--orange); margin-bottom: 0.4rem;
}
.goal-title { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; margin-bottom: 0.6rem; }
.goal-copy { color: var(--ink-soft); font-size: 0.97rem; }
.goal-peek { margin-top: auto; padding-top: 1.6rem; height: 300px; overflow: hidden; }
.goal-peek .shot-frame { width: min(78%, 230px); margin: 0 auto; }
.goals-cta { margin-top: clamp(2.2rem, 5vw, 3rem); text-align: center; }

/* ---------------- App section (screenshot gallery) ---------------- */
.app-section { padding: clamp(5rem, 11vh, 8.5rem) 0; }
.app-head { max-width: 720px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.app-section h2 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-bottom: 1.2rem; }
.app-meta { color: var(--ink-soft); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 1.6rem; }
.app-shots {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
    max-width: 980px; margin: 0 auto;
}
.app-shots .shot:nth-child(2) { margin-top: -1.4rem; }

/* ---------------- CTA / Footer ---------------- */
.cta {
    background: var(--ink); color: var(--paper); text-align: center;
    padding: clamp(6rem, 13vh, 9rem) 0;
}
.cta h2 { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.06; margin-bottom: 1.3rem; }
.cta h2 em { color: #F0A26B; }
.cta-sub { color: #A7B4C2; font-size: 1.1rem; margin-bottom: 2.2rem; }
.cta-row { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }
.cta-note { margin-top: 1.4rem; color: #7B8A99; font-size: 0.85rem; }

/* Beta signup form (writes to Firestore) — input + submit as one framed field */
.beta-form {
    display: flex; align-items: stretch;
    max-width: 520px; margin: 0 auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px; padding: 6px;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.beta-form:focus-within {
    border-color: rgba(232, 99, 31, 0.65);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 4px rgba(232, 99, 31, 0.14);
}
.beta-input {
    flex: 1 1 auto; min-width: 0;
    background: transparent; border: none; outline: none;
    color: #fff; caret-color: var(--orange);
    font-family: var(--font-body); font-size: 1rem; letter-spacing: 0.01em;
    padding: 0 0.7rem 0 1rem;
}
.beta-input::placeholder { color: rgba(167, 180, 194, 0.6); }
.beta-input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }
.beta-form .btn { flex: 0 0 auto; white-space: nowrap; }
.beta-form .btn:hover { transform: none; }
.beta-form.is-sending { opacity: 0.65; pointer-events: none; }
.beta-status { min-height: 1.3em; margin-top: 1.2rem; font-size: 0.92rem; color: #A7B4C2; }
.beta-status.is-error { color: #F0A26B; }
.beta-status.is-success { color: #6FD3AE; }

@media (max-width: 540px) {
    .beta-form { flex-direction: column; gap: 8px; padding: 8px; border-radius: 12px; }
    .beta-input { padding: 0.9rem; text-align: center; }
    .beta-form .btn { width: 100%; }
}

.footer { background: var(--ink); color: #7B8A99; border-top: 1px solid var(--line-dark); padding: 2.4rem 0; }
.footer-inner { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--paper); }
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a { color: #A7B4C2; text-decoration: none; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-links a:hover { color: var(--orange); }
.footer-note { font-size: 0.85rem; }
.footer-note a { color: #A7B4C2; }

/* ---------------- Reveal on scroll ---------------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    .marquee-track, .hero-scroll span { animation: none; }
    .hero-media img { transform: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 920px) {
    .nav-links { display: none; }
    .nav { padding-top: 0.9rem; padding-bottom: 0.9rem; }
    .chapter-grid { grid-template-columns: 1fr; }
    .chapter-grid-reverse .chapter-copy { order: 1; }
    .chapter-grid-reverse .chapter-media { order: 2; }
    .goals-grid { grid-template-columns: 1fr; }
    .goal-peek { height: 260px; }
    .app-shots .shot:nth-child(2) { margin-top: 0; }
    .stride-points { grid-template-columns: 1fr; gap: 1.4rem; }
    .stride-media { aspect-ratio: auto; height: 62svh; }
    .coach-note { margin: 1rem 0 0; max-width: none; }
    .hero-content { padding-top: 7rem; }
    .london { min-height: 70svh; }
}

@media (max-width: 680px) {
    .wrap, .wrap-narrow { padding-left: 1.25rem; padding-right: 1.25rem; }
    .hero { min-height: 96svh; }
    .hero-content { padding-top: 6.2rem; padding-bottom: 3.2rem; }
    .hero h1 { font-size: clamp(2.5rem, 14vw, 4rem); line-height: 1.04; }
    .hero-lede { font-size: 1.04rem; margin-bottom: 1.5rem; }
    .hero-cta { width: 100%; }
    .hero-cta .btn { width: 100%; }
    .hero-scroll { display: none; }
    .stride-media { height: min(58svh, 460px); }
    .stride-chips {
        position: static;
        margin-top: 1rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
        justify-content: stretch;
    }
    .chip { min-width: 0; width: 100%; }
    .chapter-media figcaption { font-size: 0.82rem; padding: 1rem; }
    .app-shots {
        display: flex; gap: 1rem;
        overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -1.25rem; padding: 0.5rem 1.25rem 0.5rem;
    }
    .app-shots::-webkit-scrollbar { display: none; }
    .app-shots .shot { flex: 0 0 72%; scroll-snap-align: center; }
}

@media (max-width: 430px) {
    .nav { padding-left: 1rem; padding-right: 1rem; }
    .nav-brand { font-size: 1.2rem; }
    .nav-right { gap: 0.6rem; }
    .lang-btn { font-size: 0.72rem; padding: 0.48rem 0.55rem; }
    .btn-sm { padding: 0.58rem 0.95rem; font-size: 0.8rem; }
    .hero-eyebrow { font-size: 0.72rem; letter-spacing: 0.1em; }
    .london-content p:last-child,
    .chapter-lede,
    .cta-sub { font-size: 1rem; }
}
