/* ── ABOUT PAGE ── */

/* ══════════════════════════════════════
   SPATIAL HERO
══════════════════════════════════════ */
.about-spatial-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Override global section { padding-block } */
    padding-block: 0;
}

/* Full-screen canvas — sphere + particles sit here */
.about-hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Container that holds the text stack */
.about-hero-overlay {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: var(--nav-h);
}

/* Text stack — max-width keeps text from pushing into orb zone */
.about-hero-text {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

/* Eyebrow */
.about-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #64748b;
    opacity: 0;
    /* initial state for GSAP */
}

/* Headline */
.about-main-title {
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 0.95;
    margin: 0;
    opacity: 0;
    /* initial state for GSAP */
}

.about-title-bold {
    display: block;
    font-family: var(--font-sans);
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.about-title-italic {
    display: block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: #6366f1;
    letter-spacing: -0.02em;
}

.about-dot {
    color: #818cf8;
}

/* Lead paragraph */
.about-sub-lead {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: #64748b;
    line-height: 1.8;
    max-width: 52ch;
    padding-bottom: 2.5rem;
    opacity: 0;
    /* initial state for GSAP */
}

/* Buttons row */
.about-hero-btns {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    /* initial state for GSAP */
}

.about-btn-solid {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    background: #0f172a;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.22s, transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.01em;
}

.about-btn-solid:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
}

.about-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    border: 1.5px solid #e2e8f0;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: border-color 0.22s, background 0.22s, transform 0.2s;
}

.about-btn-ghost:hover {
    border-color: #0f172a;
    background: rgba(15, 23, 42, 0.04);
    transform: translateY(-2px);
}

/* Vertical SCROLL cue — bottom-right */
.about-scroll-cue {
    position: absolute;
    right: clamp(1.5rem, 3vw, 3rem);
    bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 20;
}

.about-scroll-text {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #94a3b8;
    writing-mode: vertical-rl;
}

.about-scroll-line {
    width: 1.5px;
    height: 52px;
    background: linear-gradient(to bottom, #94a3b8, transparent);
    border-radius: 2px;
    animation: aboutScrollPulse 2.2s ease-in-out infinite;
}

@keyframes aboutScrollPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.18);
    }
}

/* Responsive: hide orb on mobile (canvas is transparent fallback) */
@media (max-width: 768px) {
    .about-main-title {
        font-size: clamp(2.6rem, 10vw, 4rem);
    }

    .about-scroll-cue {
        /* Restored SCROLL text per constraints */
        display: flex;
        bottom: 1.5rem;
        transform: scale(0.8);
        transform-origin: bottom right;
    }
}

/* ══ MOBILE FIX: SPATIAL HERO WHITESPACE (max-width: 767px) ══ */
@media (max-width: 767px) {
    .about-spatial-hero {
        height: 75vh !important;
        min-height: 0 !important;
        margin-bottom: -60px !important;
        padding-bottom: 0px !important;
    }

    .about-hero-canvas {
        height: 400px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
}

/* ── Old Hero Shapes (kept but unused by new section) ── */
.about-hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F4FF 100%);
    padding-bottom: 5rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
}


.about-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.25;
}

.hero-shape--1 {
    width: 400px;
    height: 400px;
    top: -10%;
    right: 10%;
    background: var(--accent-light);
}

.hero-shape--2 {
    width: 300px;
    height: 300px;
    bottom: -5%;
    left: 5%;
    background: #818CF8;
}

.hero-shape--3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 30%;
    background: #C7D2FE;
}

/* Mission */
.mission-section {
    background: var(--white);
}

.mission-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.mission-body {
    color: var(--mid-grey);
    line-height: 1.85;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.mission-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.value-pill {
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    transition: transform var(--smooth-transition, 0.5s cubic-bezier(0.23, 1, 0.32, 1)),
        box-shadow var(--smooth-transition, 0.5s cubic-bezier(0.23, 1, 0.32, 1));
    will-change: transform, box-shadow;
}

.value-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mission visual */
.mission-visual {
    overflow: hidden;
}

.mission-img-wrapper {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

.mission-abstract {
    position: relative;
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
}

.abstract-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(99, 102, 241, 0.25);
    animation: spin 18s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation-duration: 18s;
}

.ring-2 {
    width: 80%;
    height: 80%;
    animation-direction: reverse;
    animation-duration: 12s;
    border-color: rgba(99, 102, 241, 0.4);
}

.ring-3 {
    width: 55%;
    height: 55%;
    animation-duration: 8s;
    border-color: rgba(99, 102, 241, 0.6);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.abstract-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.abstract-text {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 900;
    font-style: italic;
    color: var(--accent);
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* Team */
.team-section {
    background: var(--off-white);
}

.profile-card-wrapper {
    display: flex;
    justify-content: center;
}

.profile-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    max-width: 960px;
    width: 100%;
    overflow: hidden;
    gap: 0;
}

.profile-card__image-col {
    background: linear-gradient(150deg, #EEF2FF, #E0E4FF);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.profile-img-frame {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-lg);
}

.profile-img-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.profile-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: grid;
    place-items: center;
    color: var(--mid-grey);
    transition: background var(--smooth-transition, 0.5s cubic-bezier(0.23, 1, 0.32, 1)),
        color 0.28s var(--premium-ease, cubic-bezier(0.23, 1, 0.32, 1)),
        transform var(--smooth-transition, 0.5s cubic-bezier(0.23, 1, 0.32, 1));
    will-change: transform;
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

.profile-card__text-col {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-badge {
    display: inline-flex;
    padding: 0.3rem 0.85rem;
    background: var(--accent-mist);
    border: 1px solid var(--accent-glow);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    align-self: flex-start;
}

.profile-name {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-family: var(--font-serif);
    font-style: italic;
    letter-spacing: -0.02em;
    color: var(--charcoal);
}

.profile-tagline {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--mid-grey);
}

.profile-bio {
    font-size: 0.9rem;
    color: var(--mid-grey);
    line-height: 1.8;
}

.profile-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.3rem 0.75rem;
    background: var(--soft-slate);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dark-grey);
}

.profile-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.pstat {
    text-align: center;
}

.pstat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.03em;
}

.pstat p {
    font-size: 0.78rem;
    color: var(--mid-grey);
    margin-top: 0.2rem;
}

/* Timeline */
.timeline-section {
    background: var(--white);
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 720px;
    margin-inline: auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-light), transparent);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    padding-bottom: 2.5rem;
    position: relative;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--accent-light);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: background 0.3s, border-color 0.3s;
    display: grid;
    place-items: center;
}

.timeline-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-light);
}

.timeline-dot.active {
    background: var(--accent);
    border-color: var(--accent);
}

.timeline-dot.active::after {
    background: #fff;
}

.timeline-card {
    padding: 1.75rem;
    flex: 1;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.timeline-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

.timeline-card.active {
    border-color: var(--accent-light);
}

.timeline-year {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.timeline-card p {
    font-size: 0.875rem;
    color: var(--mid-grey);
    line-height: 1.7;
}


@media (max-width: 768px) {
    .profile-card {
        grid-template-columns: 1fr;
    }

    .mission-layout {
        grid-template-columns: 1fr;
    }

    .profile-card__image-col {
        padding: 2rem 1.5rem;
    }
}


/* ══════════════════════════════════════════════════════
   NEURAL PROFILE STACK — Minds Behind WIN
   ══════════════════════════════════════════════════════ */

.minds-section {
    background: #f8fafc;
    padding-block: clamp(4rem, 8vw, 7rem);
}

.minds-header {
    text-align: center;
    margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

/* ── Horizontal row of mind-units ── */
.minds-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1.5rem, 3vw, 3rem);
    flex-wrap: wrap;
}

/* ── Single profile unit (card + connector + panel stacked vertically) ── */
.mind-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(220px, 28vw, 300px);
    /* entrance — driven by JS GSAP */
    opacity: 0;
    transform: translateX(-30px);
}

.mind-unit.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Profile card shell ── */
.mind-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 28px;
    padding: 2.2rem 1.8rem 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.07);
    position: relative;
    z-index: 5;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease;
}

.mind-unit:hover .mind-card,
.mind-unit[data-active="true"] .mind-card {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.14);
}

/* ── Avatar ring ── */
.mind-avatar-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    position: relative;
}

.mind-avatar-ring--teal {
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
}

.mind-avatar-ring--purple {
    background: linear-gradient(135deg, #a855f7, #6366f1);
}

.mind-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

/* Initials fallback (also used for non-photo members) */
.mind-avatar-initials {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 50%;
    background: #1e293b;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* ── Name & role ── */
.mind-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.02em;
    margin: 0;
}

.mind-role {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.mind-hint {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.3rem;
    transition: opacity 0.3s ease;
}

.mind-unit:hover .mind-hint,
.mind-unit[data-active="true"] .mind-hint {
    opacity: 0;
}

/* ══════════════════════════════════════════════════════
   VERTICAL CONNECTOR LINE
   ══════════════════════════════════════════════════════ */
.mind-connector {
    width: 20px;
    height: 0;
    overflow: visible;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.mind-unit:hover .mind-connector,
.mind-unit[data-active="true"] .mind-connector {
    height: 64px;
}

.mind-conn-svg {
    width: 20px;
    height: 64px;
    display: block;
    overflow: visible;
}

/* Path draw animation — stroke-dashoffset driven by hover state */
.mind-conn-path {
    transition: stroke-dashoffset 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.mind-unit:hover .mind-conn-path,
.mind-unit[data-active="true"] .mind-conn-path {
    stroke-dashoffset: 0;
}

/* Dot fade-in at the path end */
.mind-conn-dot {
    transition: opacity 0.3s ease 0.4s;
}

.mind-unit:hover .mind-conn-dot,
.mind-unit[data-active="true"] .mind-conn-dot {
    opacity: 1;
}

/* ══════════════════════════════════════════════════════
   DOWNWARD REVEAL PANEL
   ══════════════════════════════════════════════════════ */
.mind-panel {
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid #f1f5f9;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.08);
    transition:
        max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease 0.1s,
        padding 0.4s ease;
}

.mind-unit:hover .mind-panel,
.mind-unit[data-active="true"] .mind-panel {
    max-height: 500px;
    opacity: 1;
    padding: 1.6rem;
}

.mind-panel-inner {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* Panel header */
.mind-panel-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6366f1;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.mind-panel-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.02em;
    margin: 0 0 0.1rem;
}

.mind-panel-bio {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 0.4rem;
}

/* Detail items */
.mind-detail-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    /* stagger initial state — JS resets these */
    opacity: 0;
    transform: translateY(10px);
}

.mind-unit:hover .mind-detail-item,
.mind-unit[data-active="true"] .mind-detail-item {
    /* JS handles timing; CSS provides the end state */
    opacity: 1;
    transform: translateY(0);
}

.mind-detail-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mind-detail-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 0.15rem;
}

.mind-detail-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mind-verified {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */

/* ── Tablet & Mobile (≤ 900px): Stack cards into vertical column ──
   PC version (> 900px) is completely untouched. */
@media (max-width: 900px) {

    /* Section breathing room on smaller viewports */
    .minds-section {
        padding-inline: clamp(1rem, 5vw, 2rem);
    }

    /* Vertical column, centred */
    .minds-row {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    /* Card unit: constrained width, centred entrance animation */
    .mind-unit {
        width: min(340px, 92vw);
        transform: translateY(20px);
    }

    .mind-unit.visible {
        transform: translateY(0);
    }

    /* ── MINDS BEHIND WIN — Mobile Card Polish ──
       Spec: 40px border-radius, soft premium shadow,
       fully centred content, 110px avatar ring.      */
    .mind-card {
        width: 100%;
        background: #ffffff;
        border-radius: 40px;
        /* spec: large rounded corners */
        padding: 2.4rem 2rem 2rem;
        text-align: center;
        /* centre all text content */
        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.04),
            0 4px 16px rgba(99, 102, 241, 0.06);
        border: 1px solid rgba(99, 102, 241, 0.08);
        align-items: center;
        /* keep flex children centred */
    }

    /* Avatar ring: 110px as specified, centred, gradient border preserved */
    .mind-avatar-ring {
        width: 110px;
        height: 110px;
        margin: 0 auto 0.6rem;
        /* horizontal auto-centers in column */
        /* gradient border already defined globally; preserved here */
    }

    /* Name: fully centred */
    .mind-name {
        text-align: center;
    }

    /* Role badge: centred */
    .mind-role {
        text-align: center;
    }

    /* Hover-to-explore hint: centred block so it sits flush under role */
    .mind-hint {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* ── Mobile portrait (≤ 640px): timeline compact + hero buttons ── */
@media (max-width: 640px) {

    .about-hero-btns {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .about-btn-solid,
    .about-btn-ghost {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-item {
        gap: 1.25rem;
    }

    .timeline-dot {
        width: 26px;
        height: 26px;
        flex-shrink: 0;
    }

    /* ── Mind card on small phones: keep the 110px avatar, refine padding ──
       NOTE: We do NOT shrink avatar below 110px — the spec requires it
       prominent. Only internal padding reduces slightly on tiny screens. */
    .mind-card {
        padding: 2rem 1.6rem 1.8rem;
        border-radius: 36px;
        /* very slight reduction for 360px phones */
    }

    /* Avatar stays at 110px from the 900px rule above; initial size preserved */
    .mind-avatar-initials {
        font-size: 1.8rem;
        /* slightly scaled for 110px ring */
    }

    /* Ensure mission layout stacks on small phones too */
    .mission-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Very small phones (≤ 380px): final fine-tuning ── */
@media (max-width: 380px) {
    .mind-unit {
        width: 95vw;
    }

    .minds-row {
        padding-inline: 0;
    }
}

/* ══════════════════════════════════════════════════════
   MOBILE OPTIMISATION — Section 3: The Minds Behind WIN
   Fixes left-heavy alignment; ensures mathematical centring
   on all phones (≤ 768px).
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* 1. Equal side gutters — override any inherited padding */
    .minds-section {
        padding: 60px 20px !important;
        overflow: hidden;
    }

    /* 2. Centre the header text */
    .minds-header {
        text-align: center;
        margin-bottom: 40px;
    }

    /* 3. Transform the row into a centred vertical stack */
    .minds-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* pulls cards to the horizontal midpoint */
        gap: 30px;
        /* equal vertical spacing between cards */
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    /* 4. Standardise unit width for a professional, proportional look */
    .mind-unit {
        width: 100%;
        max-width: 350px;
        /* prevents over-stretching on large phones */
        margin: 0 auto !important;
        position: relative;
    }

    /* 5. Clean up card padding and internal alignment */
    .mind-card {
        padding: 40px 20px;
        /* generous internal breathing room */
        display: flex;
        flex-direction: column;
        align-items: center;
        /* centres avatar, text and badges inside */
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        border-radius: 24px;
    }

    /* 6. Adjust typography for mobile scale */
    .mind-name {
        font-size: 1.4rem;
        margin: 15px 0 5px 0;
    }

    .mind-role {
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* 7. Hide connector lines — they look cluttered in a vertical stack */
    .mind-connector {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════
   SECTION 4 — OUR JOURNEY: GSAP CARDSWAP WHITE THEME
   Clean white background · Left fixed text · Right GSAP card stack
   Glassmorphism-lite cards · Elastic.out physics · Auto-cycle 4.5s
   ══════════════════════════════════════════════════════ */

/* ── Section shell ── */
.journey-section {
    background: #ffffff;
    padding-block: clamp(5rem, 9vw, 8rem);
    overflow: hidden;
    position: relative;
}

/* subtle top decorative line */
.journey-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #06b6d4, #8b5cf6);
    opacity: 0.6;
}

/* ── Wide container ── */
.journey-container {
    max-width: 1280px;
    width: 100%;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ══ 2-COLUMN BODY GRID ════════════════════════════════ */
.journey-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 5vw, 6rem);
    align-items: center;
}

/* ══ LEFT COLUMN — Fixed Text ══════════════════════════ */
.journey-text-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Eyebrow */
.journey-eyebrow {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #6366f1;
    margin: 0;
}

/* Heading */
.journey-heading {
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0;
}

.journey-heading em {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    color: #6366f1;
    font-weight: 700;
}

/* Subtext */
.journey-subtext {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.75;
    margin: 0;
    max-width: 38ch;
}

/* ── Progress dots ── */
.journey-prog-dots {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 0.5rem;
}

.journey-prog-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, width 0.3s ease;
    flex-shrink: 0;
}

.journey-prog-dot--active,
.journey-prog-dot:hover {
    background: #6366f1;
    border-color: #6366f1;
    transform: scale(1.1);
}

.journey-prog-dot--active {
    width: 28px;
    border-radius: 5px;
}

/* ── Active milestone label ── */
.journey-active-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    border-left: 4px solid #6366f1;
    transition: border-left-color 0.4s ease;
}

.journey-active-year {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6366f1;
    transition: color 0.4s ease;
}

.journey-active-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    transition: color 0.3s ease;
}

/* ══ RIGHT COLUMN — CardSwap Stage ════════════════════ */
.journey-right-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The 3-D perspective stage */
.cardswap-stage {
    position: relative;
    width: 500px;
    height: 400px;
    perspective: 1200px;
    transform-style: preserve-3d;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

/* ── Base card: glassmorphism-lite ── */
.cs-card {
    position: absolute;
    inset: 0;
    width: 500px;
    height: 400px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.06);
    overflow: hidden;
    will-change: transform, opacity;
    transition: box-shadow 0.3s ease;
    pointer-events: none;
}

/* Top card is clickable and hoverable */
.cs-card[data-cs-pos="0"] {
    pointer-events: auto;
}

.cs-card[data-cs-pos="0"]:hover {
    box-shadow: 0 32px 40px -8px rgb(0 0 0 / 0.15), 0 12px 16px -8px rgb(0 0 0 / 0.08);
}

/* ── Top accent bar (colour-coded per card) ── */
.cs-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 28px 28px 0 0;
}

.cs-accent--indigo { background: linear-gradient(90deg, #6366f1, #818cf8); }
.cs-accent--sky    { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.cs-accent--violet { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.cs-accent--teal   { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }

/* ── Card inner layout ── */
.cs-card-inner {
    padding: 2.5rem 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    box-sizing: border-box;
}

/* Year badge */
.cs-year-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* Card title */
.cs-card-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin: 0;
}

/* Card description */
.cs-card-desc {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #64748b;
    margin: 0;
    flex: 1;
    max-width: 40ch;
}

/* Card footer */
.cs-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.cs-brand {
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.cs-arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.cs-card[data-cs-pos="0"]:hover .cs-arrow-btn {
    background: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
    transform: translateX(3px);
}

/* ── Colour accent per card: title accent on the active card ── */
.cs-card--0[data-cs-pos="0"] .cs-year-badge { color: #6366f1; }
.cs-card--1[data-cs-pos="0"] .cs-year-badge { color: #0ea5e9; }
.cs-card--2[data-cs-pos="0"] .cs-year-badge { color: #8b5cf6; }
.cs-card--3[data-cs-pos="0"] .cs-year-badge { color: #14b8a6; }

/* ══ RESPONSIVE ════════════════════════════════════════ */

@media (max-width: 1024px) {
    .journey-body-grid {
        grid-template-columns: 1fr;
        gap: clamp(2.5rem, 5vw, 4rem);
    }

    .journey-text-col {
        text-align: center;
        align-items: center;
    }

    .journey-subtext {
        max-width: 52ch;
    }

    .journey-right-col {
        order: -1;
    }

    .cardswap-stage {
        width: 460px;
        height: 380px;
    }

    .cs-card {
        width: 460px;
        height: 380px;
    }
}

@media (max-width: 768px) {
    .cardswap-stage {
        width: 360px;
        height: 300px;
        perspective: 1200px;
    }

    .cs-card {
        width: 360px;
        height: 300px;
        border-radius: 22px;
    }

    .cs-card-inner {
        padding: 2rem 1.75rem 1.5rem;
    }

    .cs-card-title {
        font-size: 1.4rem;
    }

    .journey-heading {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
    }
}

@media (max-width: 480px) {
    .cardswap-stage {
        width: 320px;
        height: 280px;
    }

    .cs-card {
        width: 320px;
        height: 280px;
        border-radius: 20px;
    }

    .cs-card-inner {
        padding: 1.75rem 1.5rem 1.25rem;
        gap: 0.5rem;
    }

    .cs-card-title {
        font-size: 1.2rem;
    }

    .cs-card-desc {
        font-size: 0.82rem;
        line-height: 1.65;
    }

    .journey-active-label {
        padding: 0.85rem 1rem;
    }
}

/* ══ MOBILE REFACTOR (Under 768px) ═════════════════════ */
@media (max-width: 767px) {
    .journey-body-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .journey-text-col {
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .journey-eyebrow,
    .journey-heading,
    .journey-subtext {
        text-align: center;
    }

    .journey-heading {
        /* Ensuring text-align applies fully */
        text-align: center;
    }

    .journey-prog-dots {
        justify-content: center;
        margin: 0 auto;
    }

    .journey-right-col {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cardswap-stage {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .cs-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .cs-card-inner {
        padding: 32px;
        text-align: center;
        align-items: center;
    }

    .cs-card-desc {
        text-align: center;
    }

    .journey-active-label {
        margin: 0 auto;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .cs-card-footer {
        width: 100%;
        justify-content: space-between;
    }
}








.journey-toggle-btn:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.06);
}

.journey-toggle-btn--active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.journey-toggle-btn--active:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Hide text labels on small screens */
.journey-toggle-label {
    display: inline;
}

/* ══ BODY GRID ════════════════════════════════════════ */
.journey-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 5vw, 6rem);
    align-items: start;
}

/* ══ LEFT COLUMN — BRANDED DYNAMIC TIMELINE ══════════════ */
.journey-timeline-col {
    padding-top: 0.5rem;
}

.journey-tl-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.journey-tl-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
}

/* Stem column: dot + vertical line */
.journey-tl-stem-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
    padding-top: 4px;
}

.journey-tl-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #27272a;        /* zinc-800 */
    border: 2px solid #3f3f46; /* zinc-700 */
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: background 0.35s ease, border-color 0.35s ease,
                box-shadow 0.35s ease, transform 0.35s ease;
}

/* Active dot — WIN blue (#3b82f6) */
.journey-tl-dot.js-tl-active {
    background: #3b82f6;
    border-color: #3b82f6;
    transform: scale(1.25);
    box-shadow: 0 0 0 5px rgba(59,130,246,0.2);
}

/* Vertical connector line (hidden on last item) */
.journey-tl-line {
    width: 2px;
    flex: 1;
    min-height: 60px;
    background: linear-gradient(to bottom, #3f3f46, rgba(63,63,70,0));
    border-radius: 2px;
    margin-top: 4px;
}

.journey-tl-item--last .journey-tl-line {
    display: none;
}

/* Body text column */
.journey-tl-body {
    padding-bottom: 2.4rem;
    flex: 1;
}

/* Year badge */
.journey-tl-year {
    display: block;
    font-family: 'Inter', 'ui-monospace', monospace;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #52525b;         /* zinc-600 */
    margin-bottom: 0.4rem;
    transition: color 0.35s ease;
}

/* Active year — blue */
.journey-tl-year.js-tl-active {
    color: #3b82f6;
}

.journey-tl-title {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 800;
    color: #e2e8f0;
    letter-spacing: -0.02em;
    margin: 0 0 0.45rem;
    line-height: 1.2;
    transition: color 0.35s ease;
}

.journey-tl-item[data-tl-active="true"] .journey-tl-title {
    color: #fff;
}

.journey-tl-desc {
    font-size: 0.82rem;
    color: #52525b;         /* zinc-600 */
    line-height: 1.7;
    margin: 0;
    max-width: 36ch;
    transition: color 0.35s ease;
}

.journey-tl-item[data-tl-active="true"] .journey-tl-desc {
    color: #a1a1aa;         /* zinc-400 */
}

/* ══ RIGHT COLUMN ══════════════════════════════════════ */
.journey-right-col {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

/* ── Stack host ── */
.journey-stack-wrap {
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    /* Default stack dimensions */
    width: 100%;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ── LIST VIEW host ── */
.journey-stack-wrap[data-view="list"] {
    height: auto;
    cursor: default;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    justify-content: flex-start;
}

/* ── GRID VIEW host ── */
.journey-stack-wrap[data-view="grid"] {
    height: auto;
    cursor: default;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

/* ══ BASE CARD ══════════════════════════════════════════ */
.journey-card {
    /* Stack mode defaults */
    position: absolute;
    width: min(400px, 92%);
    border-radius: 2rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 4px 16px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.12);
    will-change: transform, opacity;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    pointer-events: none;
}

/* Top card in stack is interactive */
.journey-card[data-stack-pos="0"] {
    pointer-events: auto;
}
.journey-card[data-stack-pos="0"]:hover {
    box-shadow: 0 36px 90px rgba(0,0,0,0.55), 0 8px 24px rgba(0,0,0,0.3);
}

/* LIST MODE card overrides */
.journey-stack-wrap[data-view="list"] .journey-card {
    position: relative;
    width: 100%;
    pointer-events: auto;
    border-radius: 1.25rem;
    transform: none !important;
    opacity: 1 !important;
}

/* GRID MODE card overrides */
.journey-stack-wrap[data-view="grid"] .journey-card {
    position: relative;
    width: 100%;
    pointer-events: auto;
    border-radius: 1.5rem;
    transform: none !important;
    opacity: 1 !important;
}

/* ── Card colour themes (preserved) ── */
.journey-card--indigo {
    background: linear-gradient(145deg, #4f46e5 0%, #6366f1 60%, #818cf8 100%);
    color: #fff;
}
.journey-card--sky {
    background: linear-gradient(145deg, #0284c7 0%, #0ea5e9 60%, #38bdf8 100%);
    color: #fff;
}
.journey-card--violet {
    background: linear-gradient(145deg, #7c3aed 0%, #8b5cf6 60%, #a78bfa 100%);
    color: #fff;
}
.journey-card--teal {
    background: linear-gradient(145deg, #0d9488 0%, #14b8a6 60%, #2dd4bf 100%);
    color: #fff;
}
.journey-card--accent {
    background: linear-gradient(145deg, #1e3a5f 0%, #1d4ed8 60%, #3b82f6 100%);
    color: #fff;
}

/* ── Card inner layout ── */
.journey-card-inner {
    padding: 2.25rem 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    height: 100%;
    box-sizing: border-box;
}

/* Year badge on card */
.journey-year {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* Card title */
.journey-card-title {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: inherit;
    margin: 0;
}

/* Compact title in grid / list modes */
.journey-stack-wrap[data-view="grid"] .journey-card-title,
.journey-stack-wrap[data-view="list"] .journey-card-title {
    font-size: 1.15rem;
}

/* Card description */
.journey-card-desc {
    font-size: 0.875rem;
    line-height: 1.72;
    opacity: 0.82;
    margin: 0;
    color: inherit;
    flex: 1;
}

/* Card footer: branding + arrow */
.journey-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
}

.journey-card-brand {
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.35;
}

.journey-card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.journey-card[data-stack-pos="0"]:hover .journey-card-arrow {
    background: rgba(255,255,255,0.22);
    transform: translateX(2px);
}

/* ── GRID MODE — compact footer ── */
.journey-stack-wrap[data-view="grid"] .journey-card-footer {
    margin-top: 0.75rem;
}
.journey-stack-wrap[data-view="grid"] .journey-card-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

/* ══ RESPONSIVE ════════════════════════════════════════ */
@media (max-width: 1024px) {
    .journey-body-grid {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 5vw, 3.5rem);
    }

    /* On tablet, stack goes above timeline column */
    .journey-right-col {
        order: -1;
        justify-content: center;
    }

    .journey-stack-wrap {
        height: 400px;
        max-width: 480px;
        margin-inline: auto;
    }

    .journey-timeline-col {
        max-width: 560px;
        margin-inline: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .journey-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .journey-toggle-label {
        display: none;  /* icon-only on mobile */
    }

    .journey-stack-wrap {
        height: 380px;
    }

    /* Grid collapses to single col */
    .journey-stack-wrap[data-view="grid"] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .journey-stack-wrap {
        height: 360px;
    }

    .journey-card-inner {
        padding: 1.75rem 1.75rem 1.5rem;
    }

    .journey-card-title {
        font-size: 1.25rem;
    }
}

/* ── Two-column wrapper ── */
.journey-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
    margin-top: clamp(2.5rem, 4vw, 4rem);
}

/* ── Stack host: fixed height, relative positioning context ── */
.journey-stack-wrap {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* Prevent text-select during rapid clicks */
    -webkit-user-select: none;
    user-select: none;
}

/* ── Base card ── */
.journey-card {
    position: absolute;
    width: min(420px, 90%);
    border-radius: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    /* GPU-accelerated for spring physics */
    will-change: transform, opacity;
    /* Smooth fallback when JS not yet ready */
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    pointer-events: none;  /* JS enables only the top card */
}

/* Top card gets pointer events and a subtle lift on hover */
.journey-card[data-stack-pos="0"] {
    pointer-events: auto;
}
.journey-card[data-stack-pos="0"]:hover {
    box-shadow: 0 30px 80px rgba(0,0,0,0.18), 0 8px 24px rgba(0,0,0,0.1);
}

/* ── Card colour themes ── */
.journey-card--indigo {
    background: linear-gradient(145deg, #4f46e5 0%, #6366f1 60%, #818cf8 100%);
    color: #fff;
}
.journey-card--sky {
    background: linear-gradient(145deg, #0284c7 0%, #0ea5e9 60%, #38bdf8 100%);
    color: #fff;
}
.journey-card--violet {
    background: linear-gradient(145deg, #7c3aed 0%, #8b5cf6 60%, #a78bfa 100%);
    color: #fff;
}
.journey-card--teal {
    background: linear-gradient(145deg, #0d9488 0%, #14b8a6 60%, #2dd4bf 100%);
    color: #fff;
}
.journey-card--accent {
    background: linear-gradient(145deg, #1e293b 0%, #334155 60%, #475569 100%);
    color: #fff;
}

/* ── Card inner padding and typography ── */
.journey-card-inner {
    padding: 2.5rem 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.journey-year {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.65;
    /* Glide transition driven by GSAP layoutId equivalent */
    transition: opacity 0.25s ease;
}

.journey-card-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: inherit;
    margin: 0;
}

.journey-card-desc {
    font-size: 0.9rem;
    line-height: 1.75;
    opacity: 0.82;
    margin: 0;
    color: inherit;
    max-width: 38ch;
}

/* Click hint on top card */
.journey-card-hint {
    margin-top: 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    opacity: 0.55;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}
.journey-card[data-stack-pos="0"]:hover .journey-card-hint {
    opacity: 0.9;
}

/* ── Side progress list ── */
.journey-list {
    display: flex;
    flex-direction: column;
}

.journey-list-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* Vertical line */
.journey-list-items::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent, #6366f1), rgba(99,102,241,0.1));
    border-radius: 2px;
}

.journey-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1rem 0 1rem 0;
    padding-left: 1.85rem;
    position: relative;
    cursor: pointer;
    transition: opacity 0.25s ease;
    opacity: 0.45;
}

.journey-list-item::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(99,102,241,0.35);
    background: #fff;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.journey-list-item--active,
.journey-list-item:hover {
    opacity: 1;
}

.journey-list-item--active::before {
    background: var(--accent, #6366f1);
    border-color: var(--accent, #6366f1);
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
}

.journey-list-year {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent, #6366f1);
    flex-shrink: 0;
    padding-top: 0.1rem;
    min-width: 2.8rem;
}

.journey-list-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .journey-layout {
        grid-template-columns: 1fr;
    }

    .journey-stack-wrap {
        height: 380px;
        width: 100%;
    }

    .journey-list {
        order: 2;
    }

    .journey-stack-wrap {
        order: 1;
    }
}

@media (max-width: 640px) {
    .journey-stack-wrap {
        height: 360px;
    }

    .journey-card-inner {
        padding: 2rem 1.75rem 1.75rem;
    }

    .journey-card-title {
        font-size: 1.3rem;
    }
}