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

:root {
    --black: #000505;
    --silver: #6b6d6c;
    --olive: #7c6354;
    --alabaster: #dfe0e2;
    --red: #9e2a2b;
    --font-display: 'Familjen Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-num: 'Bricolage Grotesque', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
}

a {
    color: inherit;
}

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

.wrap {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ══════════ REVEAL ANIMATION ══════════ */
.reveal {
    opacity: 0;
    transform: scale(0.88) translateY(60px);
    transition: opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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


/* ══════════ NAV ══════════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--alabaster);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5vw;
    height: 64px;
    border-bottom: 1px solid var(--silver);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

nav.nav-visible {
    opacity: 1;
    pointer-events: auto;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    color: var(--black);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    color: var(--black);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--red);
    transition: width 0.3s;
}

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

.nav-cta {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    background: var(--red);
    color: var(--alabaster);
    padding: 10px 24px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    border-radius: 0;
}

.nav-cta:hover {
    opacity: 0.85;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 24px 5vw;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.mobile-menu-logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    color: var(--alabaster);
    text-decoration: none;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--alabaster);
    font-size: 28px;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-menu-links a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 32px;
    color: var(--alabaster);
    text-decoration: none;
}

.mobile-menu-links a:hover {
    color: var(--red);
}

.mobile-menu-footer {
    margin-top: auto;
    padding-bottom: 32px;
}

.mobile-menu-footer a {
    display: inline-block;
    background: var(--red);
    color: var(--alabaster);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 16px;
}

/* ══════════ FIXED STAR BACKGROUND ══════════ */
#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ══════════ HERO ══════════ */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: transparent;
    z-index: 1;
}

/* ══════════ QUOTE (inside problem-track) ══════════ */
.hero-big-quote {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 52px);
    color: #fff;
    max-width: 800px;
    width: 90%;
    margin: 0 auto -100vh;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-align: center;
    z-index: 0;
    pointer-events: none;
}


.hero-title {
    position: absolute;
    bottom: 18vh;
    left: 4vw;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(48px, 11vw, 180px);
    line-height: 1;
    color: var(--alabaster);
    white-space: nowrap;
    z-index: 1000;
    /* well above nav (z:100) so title stays on top during morph */
    will-change: transform;
}

.hero-tagline {
    position: absolute;
    top: 14vh;
    right: 5vw;
    max-width: 380px;
    text-align: right;
    z-index: 1;
}

.hero-quote-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(20px, 2.2vw, 32px);
    line-height: 1.2;
    color: var(--alabaster);
    margin-bottom: 12px;
}

.hero-sub-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(13px, 1.2vw, 16px);
    line-height: 1.55;
    color: var(--silver);
}


/* ══════════ SECTION SPACING ══════════ */
section:not(#hero) {
    padding: 120px 0;
    background: var(--alabaster);
    position: relative;
    z-index: 1;
}

.section-heading {
    font-size: clamp(32px, 5vw, 64px);
    margin-bottom: 48px;
    color: var(--black);
}

/* ══════════ THE PROBLEM — card-stack section ══════════ */
/*
 * Hero is sticky z:0 — stars visible behind everything.
 * .problem-track provides scroll runway for all steps.
 * .problem-stage is sticky z:1, full viewport, transparent.
 *
 * Scroll steps:
 *   0: Hero scrolls away → empty star screen (deliberate pause)
 *   1: Anchor card slides up, locks to LEFT half (desktop) / TOP half (mobile)
 *   2–5: Four problem cards slide up one-by-one on the RIGHT / BOTTOM (star side)
 *   6: Exit / transition out
 */
.panel-sequence {
    position: relative;
}

.problem-track {
    position: relative;
    z-index: 1;
}

.problem-stage {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
}

/* ── Anchor card — desktop: left half, full height ── */
.problem-anchor {
    position: absolute;
    top: 0;
    left: 0;
    width: 50vw;
    height: 100%;
    background: var(--alabaster);
    padding: 64px 56px;
    padding-top: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    will-change: transform;
    pointer-events: auto;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.12);
}

.problem-anchor-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 20px;
}

.problem-anchor-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 16px;
}

.problem-anchor-sub {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.55;
    color: var(--black);
    max-width: 440px;
}

/* ── Stacking problem cards — desktop: right half (star side) ── */
.problem-card-stack {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pcard {
    position: absolute;
    /* Center vertically in visible area (below 64px nav) */
    top: calc(50% + 32px);
    margin-top: -260px;
    /* half of min-height to center */
    /* Center horizontally within the 50vw container */
    left: 50%;
    transform-origin: center center;
    margin-left: max(-16vw, -220px);
    width: 32vw;
    max-width: 440px;
    min-height: 520px;
    background: var(--alabaster);
    border-radius: 16px;
    padding: 60px 44px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
    will-change: transform, opacity;
    pointer-events: auto;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pcard-num {
    font-family: var(--font-num);
    font-weight: 700;
    font-size: clamp(52px, 5.5vw, 80px);
    color: var(--red);
    line-height: 1;
    margin-bottom: 28px;
}

.pcard-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.6;
    color: var(--black);
}


/* ══════════ MENTORS SECTION ══════════ */
.coach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.coach-card {
    background: var(--black);
    color: var(--alabaster);
    padding: 48px 40px;
    border-radius: 16px;
}

.coach-initials {
    font-family: var(--font-num);
    font-weight: 700;
    font-size: 64px;
    color: var(--red);
    line-height: 1;
    margin-bottom: 24px;
}

.coach-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    color: var(--alabaster);
    margin-bottom: 4px;
}

.coach-title {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--silver);
    margin-bottom: 20px;
}

.coach-bio {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    color: var(--alabaster);
    margin-bottom: 24px;
}

.coach-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coach-tag {
    display: inline-block;
    background: var(--red);
    color: var(--alabaster);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 12px;
    padding: 4px 10px;
}

/* ══════════ CURRICULUM SECTION ══════════ */
.curriculum-list {
    display: flex;
    flex-direction: column;
}

.curriculum-item {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    align-items: center;
    padding: 28px 24px;
    background: var(--alabaster);
    border-bottom: 1px solid var(--silver);
    gap: 16px;
}

.curriculum-item:first-child {
    border-top: 1px solid var(--silver);
}

.curriculum-item:hover {
    background: var(--black);
}

.curriculum-item:hover .cur-num,
.curriculum-item:hover .cur-name,
.curriculum-item:hover .cur-desc {
    color: var(--alabaster);
}

.cur-num {
    font-family: var(--font-num);
    font-weight: 700;
    font-size: 48px;
    color: var(--red);
    line-height: 1;
    transition: color 0.2s;
}

.cur-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    color: var(--black);
    transition: color 0.2s;
}

.cur-desc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    color: var(--silver);
    text-align: right;
    transition: color 0.2s;
}

/* ══════════ PROGRAM PREVIEW CARDS ══════════ */
.prog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.prog-preview-card {
    background: var(--alabaster);
    border: 1px solid var(--silver);
    padding: 36px 28px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.prog-preview-card:hover {
    background: var(--black);
    transform: translateY(-4px);
}

.prog-preview-card:hover .prog-preview-num {
    color: var(--red);
}

.prog-preview-card:hover .prog-preview-name {
    color: var(--alabaster);
}

.prog-preview-card:hover .prog-preview-desc {
    color: var(--alabaster);
    opacity: 0.7;
}

.prog-preview-num {
    font-family: var(--font-num);
    font-weight: 700;
    font-size: 36px;
    color: var(--red);
    line-height: 1;
    transition: color 0.3s;
}

.prog-preview-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--black);
    line-height: 1.2;
    transition: color 0.3s;
}

.prog-preview-desc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--silver);
    line-height: 1.55;
    transition: color 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
    .prog-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════ CTA SECTION ══════════ */
#cta {
    padding: 180px 0;
    text-align: center;
}

.cta-heading {
    font-size: clamp(40px, 6vw, 88px);
    color: var(--black);
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cta-sub {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    color: var(--silver);
    max-width: 480px;
    margin: 0 auto 48px;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-red {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    background: var(--red);
    color: var(--alabaster);
    padding: 16px 32px;
    transition: opacity 0.2s;
}

.btn-red:hover {
    opacity: 0.85;
}

.btn-black {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    background: var(--black);
    color: var(--alabaster);
    padding: 16px 32px;
    transition: opacity 0.2s;
}

.btn-black:hover {
    opacity: 0.85;
}

/* ══════════ CONTACT ══════════ */
#contact {
    background: var(--alabaster);
    padding: 120px 0 100px;
    position: relative;
    z-index: 1;
}

.contact-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--silver);
    text-align: center;
    margin-bottom: 20px;
}

.contact-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(40px, 7vw, 88px);
    color: var(--black);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.05;
}

.contact-sub {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    color: var(--silver);
    text-align: center;
    max-width: 520px;
    margin: 0 auto 64px;
    line-height: 1.6;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-card {
    background: var(--alabaster);
    padding: 48px 36px;
    min-height: 280px;
    text-align: left;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s,
        color 0.3s;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid var(--silver);
    border-top: 3px solid var(--red);
    position: relative;
}

.contact-card:hover {
    transform: translateY(-6px);
    background: var(--black);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.contact-card:hover .contact-card-title {
    color: var(--alabaster);
}

.contact-card:hover .contact-card-value {
    color: var(--alabaster);
}

.contact-card:hover .contact-card-icon {
    background: var(--red);
}

.contact-card:hover .contact-card-icon svg {
    fill: var(--alabaster);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    border: 1px solid var(--red);
    flex-shrink: 0;
    transition: background 0.3s;
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--red);
    transition: fill 0.3s;
}

.contact-card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 24px;
    color: var(--black);
    transition: color 0.3s;
}

.contact-card-value {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    color: var(--silver);
    line-height: 1.5;
    transition: color 0.3s;
    margin-top: auto;
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .contact-card {
        min-height: auto;
    }
}

/* ══════════ FOOTER ══════════ */
footer {
    background: var(--black);
    color: var(--alabaster);
    padding: 80px 0 40px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    color: var(--alabaster);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--silver);
    max-width: 320px;
    line-height: 1.55;
}

.footer-right {
    font-size: 14px;
    color: var(--silver);
    text-align: right;
    line-height: 1.8;
}

.footer-right a {
    color: var(--silver);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-right a:hover {
    color: var(--red);
}

.footer-bottom {
    width: 90%;
    max-width: 1200px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: var(--silver);
}

/* ══════════ MOBILE ══════════ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta-wrap {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        position: absolute;
        bottom: 8vh;
        left: 5vw;
        padding: 0;
        font-size: clamp(36px, 12vw, 72px);
        white-space: normal;
    }

    .hero-tagline {
        position: absolute;
        top: 18vh;
        right: 5vw;
        left: auto;
        bottom: auto;
        text-align: right;
        padding: 0;
        max-width: 65%;
    }

    .hero-quote-text {
        font-size: clamp(16px, 4.5vw, 22px);
    }

    .hero-sub-text {
        font-size: clamp(11px, 3vw, 14px);
    }

    .hero-big-quote {
        font-size: clamp(22px, 6vw, 36px);
        max-width: 90%;
        width: 90%;
    }

    #hero {
        height: 100vh;
        min-height: 600px;
        padding-bottom: 0;
    }

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

    .curriculum-item {
        grid-template-columns: 60px 1fr;
        gap: 8px;
    }

    .cur-desc {
        grid-column: 1 / -1;
        text-align: left;
        padding-left: 76px;
    }

    .cur-num {
        font-size: 36px;
    }

    .cta-heading {
        font-size: clamp(32px, 8vw, 56px);
    }

    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer-right {
        text-align: left;
    }

    section:not(#hero) {
        padding: 80px 0;
    }

    #cta {
        padding: 100px 0;
    }

    /* Mobile problem section — anchor top, cards bottom */
    .problem-anchor {
        width: 100%;
        height: 35vh;
        top: 0;
        left: 0;
        padding: 72px 5vw 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        justify-content: flex-start;
    }

    .problem-anchor-heading {
        font-size: clamp(22px, 5.5vw, 32px);
        margin-bottom: 8px;
    }

    .problem-anchor-sub {
        font-size: 13px;
        line-height: 1.45;
    }

    .problem-anchor-label {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .problem-card-stack {
        width: 100%;
        height: 65vh;
        top: auto;
        bottom: 0;
        right: auto;
        left: 0;
    }

    .pcard {
        width: 72vw;
        max-width: 340px;
        min-height: 220px;
        /* Center within the 65vh container */
        top: 50%;
        margin-top: -110px;
        /* half of 220px min-height */
        left: 50%;
        margin-left: -36vw;
        padding: 28px 22px;
    }

    /* Clamp the margin offset when max-width kicks in */
    @media (min-width: 473px) and (max-width: 768px) {
        .pcard {
            margin-left: -170px;
        }
    }

    .pcard-num {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .pcard-text {
        font-size: 15px;
    }
}