/* =========================================================
   MORTALS — v2
   1. Tokens   2. Base   3. Navbar   4. Mobile menu
   5. Shared   6. Hero   7. About    7b. Exhibitions   8. Gallery
   9. Story   10. Collection / finale   11. Footer
   12. Reduced motion
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
    --blue: #365eff;
    --blue-deep: #2a4fd9;
    --indigo: #5f78fc;
    --navy: #13286b;
    --ink: #071236;
    --sky: #a1d3ff;
    --white: #ffffff;

    --font-display: 'Tondu', 'Outfit', sans-serif;
    --font-body: 'Outfit', system-ui, sans-serif;

    --gutter: clamp(1rem, 4vw, 3rem);
    --radius-lg: clamp(1.25rem, 2vw, 2rem);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    --bg: var(--blue);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, p { margin: 0; }

.section-title {
    font-family: var(--font-display);
    font-weight: normal;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: 0.01em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(7, 18, 54, 0.25); }
.btn--light { background: var(--white); color: var(--blue-deep); border-color: var(--white); }

/* brand logo inside a button (OpenSea, Discord, X) */
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: currentColor; }
.btn .ico { margin-right: 0.55em; }
.btn--light:hover { background: var(--white); }

:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

/* Depth: the viewport is a touch lighter at the top and deeper at the bottom.
   A fixed layer (not background-attachment: fixed) so it also holds on iOS. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, #5b7fff 0%, #4268ff 30%, #365eff 55%, #2448c8 100%);
}

/* ---------- 3. Desktop navbar ---------- */
/* One scale drives everything: --nav-fs grows smoothly from 1180px to 1920px wide.
   Links and buttons share the same font size and the same 2.6em height, so every item
   lines up; spacing is set in em so it grows with the type. */
.desktop-navbar {
    --nav-fs: clamp(0.88rem, 0.42rem + 0.62vw, 1.04rem);
    --nav-h: 2.6em;                      /* height of a link pill and of a button */
    position: fixed;
    top: clamp(16px, 2.2vw, 36px);
    left: 0;
    right: 0;
    z-index: 5000;
    width: min(1500px, calc(100% - 2 * clamp(16px, 2vw, 40px)));
    margin: 0 auto;
    padding: 0.55em 0.55em 0.55em 1.5em; /* tighter on the right: buttons have their own frame */
    font-size: var(--nav-fs);
    display: flex;
    align-items: center;
    background: rgba(42, 79, 217, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(54, 94, 255, 0.25), 0 2px 8px rgba(255, 255, 255, 0.1) inset;
}

/* logo | links (centred in the space left) | buttons */
.navbar-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.5em;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.45em;
    flex-shrink: 0;
    font-family: var(--font-body);
    font-size: 1.75em;
    font-weight: bold;
    line-height: 1;
    letter-spacing: 0.06em;
    color: var(--white);
    text-decoration: none;
    transition: text-shadow 0.2s;
}
.navbar-logo img { width: 1.05em; height: 1.05em; }
.navbar-logo:hover { text-shadow: 0 2px 12px #ffffffaa; }

.navbar-links {
    flex: 1;
    /* reserve the widest button's extra width ("Explore Our " on GIPHY), so the links are centred
       between the logo and a fully opened button and nothing touches when one opens */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.15em;
    list-style: none;
    margin: 0 5.9em 0 0;
    padding: 0;
}
.navbar-links a {
    display: inline-flex;
    align-items: center;
    height: calc(var(--nav-h) / 1.12); /* same pill height as the buttons */
    padding: 0 0.8em;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1.12em; /* page links a step larger than the buttons */
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: var(--white);
    text-decoration: none;
    transition: background 0.25s, box-shadow 0.25s;
}
/* small laptops: links step back down a little so the bar still fits on one row */
/* six page links: tighten the pill padding and outer gaps on narrower desktops so one row fits */
@media (max-width: 1439px) {
    .navbar-container { gap: 1.2em; }
    .navbar-links a { padding: 0 0.55em; }
}
@media (max-width: 1279px) {
    .navbar-links a { font-size: 1.04em; padding: 0 0.45em; height: calc(var(--nav-h) / 1.04); }
}
.navbar-links a:hover {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 1px 4px rgba(255, 255, 255, 0.1) inset;
}

.navbar-actions {
    display: flex;
    justify-content: flex-end; /* JS locks the closed width: an opening button grows to the left, over free space */
    align-items: center;
    gap: 0.45em;
    flex-shrink: 0;
}
/* Compact buttons: icon + one word. On hover (or keyboard focus) the rest of the label slides in
   and the pill grows to fit it: the hidden part is a grid column animating from 0fr to 1fr,
   so the width follows the real text length with no measuring. */
.navbar-action-btn {
    --nab-ease: cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0; /* the group has a locked width; an opening button must not be squeezed back */
    display: inline-flex;
    align-items: center;
    height: var(--nav-h);
    padding: 0 1.05em 0 0.9em;            /* a touch less on the icon side, optically even */
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 1px 4px rgba(255, 255, 255, 0.1) inset;
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: var(--white);
    text-decoration: none;
    transition: background 0.35s, border-color 0.35s, box-shadow 0.45s, transform 0.45s var(--nab-ease);
}
.navbar-action-btn .ico {
    width: 1.15em;
    height: 1.15em;
    margin-right: 0.5em;
    transition: transform 0.6s cubic-bezier(0.34, 1.7, 0.5, 1); /* springy pop */
}
.nab-more {
    display: inline-grid;
    grid-template-columns: 0fr;
    transition: grid-template-columns 0.55s var(--nab-ease);
}
.nab-more > span {
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    filter: blur(4px);
    transform: translateX(-0.6em);
    transition: opacity 0.3s ease, filter 0.4s ease, transform 0.55s var(--nab-ease);
}
.navbar-action-btn:hover,
.navbar-action-btn:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.36);
    box-shadow: 0 8px 24px rgba(161, 211, 255, 0.18), 0 1px 4px rgba(255, 255, 255, 0.15) inset;
    transform: translateY(-1px);
}
.navbar-action-btn:hover .nab-more,
.navbar-action-btn:focus-visible .nab-more { grid-template-columns: 1fr; }
.navbar-action-btn:hover .nab-more > span,
.navbar-action-btn:focus-visible .nab-more > span {
    opacity: 1;
    filter: blur(0);
    transform: none;
    transition-delay: 0.06s;
}
.navbar-action-btn:hover .ico,
.navbar-action-btn:focus-visible .ico { transform: scale(1.18) rotate(-8deg); }
@media (prefers-reduced-motion: reduce) {
    .nab-more, .nab-more > span, .navbar-action-btn .ico { transition: none; }
}
.navbar-actions.is-measuring .nab-more { grid-template-columns: 0fr; transition: none; }

/* ---------- 4. Mobile menu (unchanged look) ---------- */
.floating-hamburger,
.floating-menu { display: none; }

/* below 1180px the full navbar no longer fits: the floating menu takes over */
@media (max-width: 1179px) {
    .desktop-navbar { display: none; }

    .floating-hamburger {
        position: fixed;
        top: 1.5rem;
        right: 1.5rem;
        z-index: 5001;
        width: 54px;
        height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
        background: rgba(26, 18, 64, 0.95);
        border: 1.5px solid rgba(95, 120, 252, 0.5);
        box-shadow: 0 8px 30px rgba(26, 18, 64, 0.4);
        cursor: pointer;
        transition: background 0.2s, transform 0.15s;
    }
    .floating-hamburger:active { transform: scale(0.92); }

    .hamburger-icon {
        width: 26px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .hamburger-icon span {
        display: block;
        height: 3px;
        background: var(--white);
        border-radius: 2px;
        transition: transform 0.3s cubic-bezier(.4, 2, .6, 1), opacity 0.2s;
    }
    .floating-hamburger.open .hamburger-icon span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .floating-hamburger.open .hamburger-icon span:nth-child(2) { opacity: 0; }
    .floating-hamburger.open .hamburger-icon span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .floating-menu {
        position: fixed;
        top: 5rem;
        left: 1.5rem;
        right: 1.5rem;
        z-index: 5000;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        padding: 1.5rem;
        max-height: calc(100vh - 7rem);
        overflow-y: auto;
        background: rgba(26, 18, 64, 0.97);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 1.2rem;
        box-shadow: 0 20px 60px rgba(26, 18, 64, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(24px) scale(0.96);
        transition: opacity 0.3s, transform 0.35s cubic-bezier(.4, 2, .6, 1), visibility 0.3s;
    }
    .floating-menu.open { opacity: 1; visibility: visible; transform: none; }

    .floating-menu a {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        padding: 0.8rem 1rem;
        border-radius: 0.8rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: var(--white);
        font-size: 1.1rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-decoration: none;
    }
    .floating-menu a:last-child { border-bottom: none; }
    .floating-menu a:hover,
    .floating-menu a:active { background: rgba(95, 120, 252, 0.25); }

    .floating-menu svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.4;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .floating-menu svg.fill { fill: currentColor; stroke: none; width: 20px; height: 20px; }
}

@media (max-width: 480px) {
    .floating-hamburger { top: 1rem; right: 1rem; width: 48px; height: 48px; }
    .hamburger-icon { width: 22px; gap: 4px; }
    .hamburger-icon span { height: 2.5px; }
    .floating-hamburger.open .hamburger-icon span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .floating-hamburger.open .hamburger-icon span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    .floating-menu { top: 4.5rem; left: 0.75rem; right: 0.75rem; padding: 1.2rem; }
    .floating-menu a { font-size: 1rem; padding: 0.7rem 0.9rem; }
}

/* ---------- 6. Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(161, 211, 255, 0.25), transparent 60%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(7, 18, 54, 0.35), transparent 70%);
}

.hero__pin {
    position: relative;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

.hero__title {
    position: absolute;
    left: 0;
    right: 0;
    /* top is set by JS to sit above the final frame */
    top: var(--title-y, 18vh);
    text-align: center;
    font-family: var(--font-display);
    font-weight: normal;
    font-size: var(--title-size, min(15vw, 26vh));
    line-height: 0.85;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 10px 40px rgba(7, 18, 54, 0.25);
    z-index: 1;
    will-change: transform;
}

.hero__tagline {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: var(--tagline-y, 85vh);
    text-align: center;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    z-index: 4;
}

/* Box the characters stand around = final frame rect (set by JS) */
.hero__stage {
    position: absolute;
    left: var(--box-x, 20vw);
    top: var(--box-y, 30vh);
    width: var(--box-w, 60vw);
    height: var(--box-h, 40vh);
    z-index: 3;
    pointer-events: none;
}

.hero__char {
    position: absolute;
    width: auto;
    filter: drop-shadow(0 18px 30px rgba(7, 18, 54, 0.35));
    will-change: transform;
}
.hero__char--reader    { height: 82%; left: -11%; bottom: -14%; }

.hero__frame {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    background: var(--ink);
    /* centre the oversized video; flex lets it overflow evenly on both sides */
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: clip-path;
}

.hero__video {
    flex-shrink: 0;
    /* cover the viewport while keeping the video's native 2534:1080 ratio,
       so scaling down reveals the full frame */
    width: max(100vw, 234.6vh);
    width: max(100vw, 234.6svh);
    max-width: none;
    height: auto;
    aspect-ratio: 2534 / 1080;
    object-fit: cover;
    transform-origin: 50% 50%;
}

.hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7, 18, 54, 0.25), transparent 30%, transparent 65%, rgba(7, 18, 54, 0.55));
    pointer-events: none;
}

/* Until the intro animation is set up, the characters and tagline (which only appear at the end
   of it) stay hidden; otherwise they flash for a moment on first load. GSAP takes over with inline
   styles; the static fallback (.is-static) shows them. */
.js .hero__char,
.js .hero__tagline { visibility: hidden; opacity: 0; }
.js.is-static .hero__char,
.js.is-static .hero__tagline { visibility: visible; opacity: 1; }

/* Sound controls: anchored bottom-right of the viewport, JS moves them
   onto the frame's corner as the video shrinks */
.hero__sound {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px;
    border-radius: 999px;
    background: rgba(7, 18, 54, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero__mute {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s;
}
.hero__mute:hover { background: rgba(255, 255, 255, 0.26); }
.hero__mute svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hero__mute .spk { fill: currentColor; }
.hero__sound .cross,
.hero__sound.is-muted .wave { display: none; }
.hero__sound.is-muted .cross { display: inline; }

/* Volume slider slides open on hover/focus (pointer devices only) */
.hero__volume {
    order: -1;
    width: 0;
    margin: 0;
    opacity: 0;
    accent-color: var(--white);
    cursor: pointer;
    transition: width 0.3s var(--ease-out), opacity 0.2s, margin 0.3s var(--ease-out);
}
.hero__sound:hover .hero__volume,
.hero__sound:focus-within .hero__volume { width: 96px; margin-left: 0.6rem; opacity: 1; }
@media (hover: none) {
    .hero__volume { display: none; }
    .hero__mute { width: 44px; height: 44px; }
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 3.5vh;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-decoration: none;
}
.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, #fff);
    animation: scrollLine 1.8s var(--ease-out) infinite;
    transform-origin: top;
}
@keyframes scrollLine {
    0% { transform: scaleY(0); opacity: 1; }
    60% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 767px) {
    /* phones play a 4:3 centre crop of the video (hero-mobile.mp4) */
    .hero__video {
        width: max(100vw, 133.34vh);
        width: max(100vw, 133.34svh);
        aspect-ratio: 4 / 3;
    }
    /* no dark glow under the card on phones */
    .hero { background: none; }
    /* Poster layout: title + tagline inside the card's bottom */
    .hero__title {
        z-index: 4;
        left: var(--box-x);
        right: auto;
        width: var(--box-w);
        padding: 0 20px;
        text-align: left;
        transform-origin: left bottom;
        text-shadow: 0 6px 30px rgba(7, 18, 54, 0.45);
    }
    .hero__tagline {
        z-index: 4;
        left: calc(var(--box-x) + 20px);
        /* leave room for the sound button on the right */
        right: calc(100% - var(--box-x) - var(--box-w) + 76px);
        text-align: left;
        font-size: 0.95rem;
        line-height: 1.35;
    }
    .hero__shade {
        background: linear-gradient(to top, rgba(7, 18, 54, 0.92) 0%, rgba(7, 18, 54, 0.45) 30%, transparent 55%);
    }
    .hero__stage { display: none; } /* characters are desktop-only */
    .hero__scroll { display: none; }
}

/* ---------- 7. About ---------- */
.about { position: relative; }

.about__pin {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem var(--gutter);
    overflow: hidden;
}

.about__inner {
    position: relative;
    z-index: 2;
    max-width: 880px;
    /* frosted glass card; the PFPs behind it blur through */
    padding: clamp(1.5rem, 3vw, 2.75rem);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 30px 80px rgba(7, 18, 54, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    will-change: transform;
}

.about .section-title { margin-bottom: 1.2rem; font-size: clamp(2.4rem, 4.2vw, 4rem); }

.about__text {
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.about__text + .about__text { margin-top: 1em; }

.nowrap { white-space: nowrap; }


.about__pfps {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.pfp {
    position: absolute;
    width: clamp(100px, 10vw, 170px);
    aspect-ratio: 1;
    border-radius: 1.4rem;
    overflow: hidden;
    background: var(--navy);
    border: 2px solid var(--white);
    box-shadow: 0 18px 40px rgba(7, 18, 54, 0.3);
}
.pfp img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 991px) {
    /* phones: just the card, no PFPs around it */
    .about__pin { min-height: 0; padding: 3rem var(--gutter) 4rem; align-items: flex-start; }
    .about__pfps { display: none; }
    .about__inner { max-width: 640px; padding: 1.6rem 1.4rem; }
    .about__text { font-size: 1.05rem; line-height: 1.5; }
    .pfp { width: 92px; border-width: 1.5px; border-radius: 1rem; }
}

/* ---------- 7b. Exhibitions ---------- */
.exhibitions { position: relative; padding: clamp(5rem, 12vh, 9rem) var(--gutter); }
.ex__inner { max-width: 1240px; margin: 0 auto; }

.ex__head { margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.ex__future p,
.ex-card__text {
    font-size: clamp(1.02rem, 1.2vw, 1.18rem);
    line-height: 1.7;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.86);
}
.ex__future p + p { margin-top: 1em; }

.ex__list { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }

.ex-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* photo viewer: one large photo, arrows, counter */
.ex-card__viewer { display: flex; justify-content: center; }
.ex-card__stage {
    position: relative;
    width: min(100%, 54vh);
    aspect-ratio: 3 / 4;
    border-radius: calc(var(--radius-lg) - 0.5rem);
    overflow: hidden;
    background: var(--navy);
    touch-action: pan-y;
}
.ex-card__main {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ex-card__nav {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(7, 18, 54, 0.5);
    color: var(--white);
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.2s;
}
.ex-card__nav:hover { background: var(--blue); }
.ex-card__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ex-card__nav--prev { left: 12px; }
.ex-card__nav--next { right: 12px; }
.ex-card__count {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(7, 18, 54, 0.55);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* thumbnails under the text */
.ex-card__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.8rem;
}
.ex-card__thumb {
    width: 72px;
    aspect-ratio: 3 / 4;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0.7rem;
    overflow: hidden;
    background: var(--navy);
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}
.ex-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ex-card__thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.ex-card__thumb.is-active { opacity: 1; border-color: var(--white); }

.ex-card__num {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--sky);
    margin-bottom: 1.4rem;
}
.ex-card__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: normal;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1.05;
}
.ex-card__meta {
    margin-top: 1.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
}
.ex-card__text { margin-top: 1.8rem; max-width: 30em; }

/* generous inner space around the text block, on whichever side it sits */
.ex-card__body { padding: clamp(1.5rem, 4vw, 4rem) clamp(1rem, 3.5vw, 4rem); }

/* every second card mirrors: photos on the right */
@media (min-width: 992px) {
    .ex-card:nth-child(even) .ex-card__viewer { order: 2; }
}

/* video exhibition card: landscape video gets the wider column */
@media (min-width: 992px) {
    .ex-card--video { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
}
.ex-card__stage--video {
    width: 100%;
    aspect-ratio: 16 / 9;
}
.ex-card__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* sound: button + volume slider that slides open on hover (pointer devices) */
.ex-card__soundbox {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 999px;
    background: rgba(7, 18, 54, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.ex-card__sound {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s;
}
.ex-card__sound:hover { background: var(--blue); }
.ex-card__volume {
    width: 0;
    margin: 0;
    opacity: 0;
    accent-color: var(--white);
    cursor: pointer;
    transition: width 0.3s var(--ease-out), opacity 0.2s, margin 0.3s var(--ease-out);
}
.ex-card__soundbox:hover .ex-card__volume,
.ex-card__soundbox:focus-within .ex-card__volume { width: 96px; margin: 0 0.6rem; opacity: 1; }
@media (hover: none) {
    .ex-card__volume { display: none; }
    .ex-card__sound { width: 44px; height: 44px; }
}
.ex-card__sound svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ex-card__sound .spk { fill: currentColor; }
.ex-card__sound .cross,
.ex-card__soundbox.is-muted .wave { display: none; }
.ex-card__soundbox.is-muted .cross { display: inline; }

/* full-screen button, top-right of the video */
.ex-card__expand {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(7, 18, 54, 0.5);
    color: var(--white);
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.2s;
}
.ex-card__expand:hover { background: var(--blue); transform: scale(1.06); }
.ex-card__expand svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(4, 10, 32, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__video {
    max-width: min(1600px, 100%);
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    background: #000;
    transform: scale(0.94);
    transition: transform 0.35s var(--ease-out);
}
.lightbox.is-open .lightbox__video { transform: none; }
.lightbox__close {
    position: absolute;
    top: clamp(0.75rem, 2vw, 1.5rem);
    right: clamp(0.75rem, 2vw, 1.5rem);
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s;
}
.lightbox__close:hover { background: var(--blue); }
.lightbox__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
html.lightbox-open, html.lightbox-open body { overflow: hidden; }

.ex__future {
    /* closing note, styled as one more card in the list (no number) */
    margin-top: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1rem, 2vw, 1.5rem); /* same frame as the exhibition cards */
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.ex__future p { max-width: 52em; }
.ex__future-body { padding: clamp(1.8rem, 4vw, 3.5rem) clamp(0.6rem, 4.5vw, 4.5rem) clamp(1.2rem, 3vw, 3rem); }

/* New York skyline: wide banner at the top of the closing card (the next stop) */
.ex__future-img {
    display: block;
    width: 100%;
    height: auto; /* let aspect-ratio win over the height attribute */
    aspect-ratio: 21 / 8;
    object-fit: cover;
    object-position: center 55%;
    border-radius: calc(var(--radius-lg) - 0.5rem);
    box-shadow: 0 24px 50px rgba(7, 18, 54, 0.35);
    background: var(--navy);
}
@media (max-width: 767px) {
    .ex__future-img { aspect-ratio: 16 / 9; }
}

/* where Mortals has been and where it is heading */
.ex__route {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2.2rem 0 0;
    padding: 0;
}
.ex__route li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}
.ex__route li.is-done { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.ex__route li.is-done::before { content: "\2713"; color: var(--sky); }
.ex__route li.is-next { background: var(--white); color: var(--blue-deep); border-color: var(--white); }
.ex__route li.is-soon { border-style: dashed; color: rgba(255, 255, 255, 0.6); font-weight: 500; }
.ex__route li.is-next span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
}

@media (max-width: 991px) {
    .ex-card { grid-template-columns: 1fr; }
    /* compact route chips so they sit on fewer rows */
    .ex__route { gap: 0.4rem; margin-top: 1.6rem; }
    .ex__route li { padding: 0.4rem 0.75rem; font-size: 0.8rem; gap: 0.35rem; }
    .ex__route li.is-next span { font-size: 0.62rem; padding: 0.1rem 0.4rem; }
    .ex-card__stage { width: 100%; max-height: 72svh; }
    .ex-card__body { padding: 0 0.3rem 0.6rem; }
    .ex-card__thumb { width: 60px; }
}

/* ---------- 7c. Team: Meet the Founders ---------- */
.team { position: relative; padding: clamp(2rem, 6vh, 4rem) var(--gutter) clamp(5rem, 12vh, 9rem); }
.team__inner { max-width: 1240px; margin: 0 auto; }
.team__head { margin-bottom: clamp(2rem, 5vh, 3.5rem); text-align: center; }
.team__list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: clamp(1.25rem, 3.5vw, 3.5rem);
}
.team-card { flex: 0 1 400px; }
.team-card img {
    width: 100%;
    height: auto;
    /* the image is cropped just inside the card's own cyan frame; the frame and glow are drawn here,
       so the rounded corners line up exactly */
    border-radius: 6.5% / 5%;
    box-shadow: 0 0 0 2px #74f4fe, 0 0 22px rgba(80, 210, 255, 0.55), 0 30px 60px rgba(7, 18, 54, 0.35);
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}
@media (hover: hover) {
    .team-card:hover img {
        transform: translateY(-8px);
        box-shadow: 0 0 0 2px #8cf7ff, 0 0 34px rgba(80, 210, 255, 0.7), 0 40px 70px rgba(7, 18, 54, 0.4);
    }
}
/* founder socials under each card */
.team-card__links {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.4rem;
}
/* icon-only round buttons; the name is in aria-label */
.team-card__links a {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.team-card__links .ico { width: 19px; height: 19px; }
.team-card__links a:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}
@media (max-width: 559px) {
    .team-card__links { margin-top: 1rem; }
}
@media (max-width: 559px) {
    .team__list { flex-direction: column; align-items: center; gap: 2.5rem; }
    .team-card { flex: none; width: min(100%, 340px); }
}

/* ---------- 7d. Mortals on Spotify ---------- */
.spotify { position: relative; padding: clamp(2rem, 6vh, 4rem) var(--gutter) clamp(5rem, 12vh, 9rem); }
.sp__inner { max-width: 1240px; margin: 0 auto; }
.sp__head { text-align: center; margin-bottom: clamp(2.2rem, 5vh, 3.5rem); }
.sp__lead {
    max-width: 40em; /* wide enough for the second sentence on one line */
    margin: 1rem auto 0;
    font-size: clamp(1.02rem, 1.2vw, 1.18rem);
    line-height: 1.6;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.86);
}

.sp__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.sp-card {
    position: relative;
    isolation: isolate; /* keeps the colour glow behind the card's content */
    padding: clamp(1rem, 1.6vw, 1.4rem);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 50px rgba(7, 18, 54, 0.25);
    /* hover lift uses `translate`, not `transform`: GSAP owns transform for the entrance */
    transition: translate 0.5s var(--ease-out), background 0.4s, border-color 0.4s, box-shadow 0.5s;
}
.sp-card::before { /* soft glow in the cover's colours */
    content: "";
    position: absolute;
    inset: 12% 10% auto;
    height: 55%;
    z-index: -1;
    background: var(--cover) center / cover;
    filter: blur(48px) saturate(1.4);
    opacity: 0;
    transition: opacity 0.6s;
}

/* cover + the record that slides out from behind it */
.sp-card__art { position: relative; margin: 0 9%; } /* centred cover (even space both sides); the record slides out to the right */
.sp-card__cover {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.9rem;
    box-shadow: 8px 0 24px rgba(7, 18, 54, 0.45);
}
.sp-card__vinyl {
    position: absolute;
    z-index: 1;
    top: 3%;
    left: 3%;
    width: 94%;
    aspect-ratio: 1;
    transform: translateX(0);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.sp-card__disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 50%, transparent 0 30%, rgba(255, 255, 255, 0.06) 30.5%, transparent 31.5%),
        repeating-radial-gradient(circle at 50% 50%, #0d0f18 0 1.2px, #1b1e2c 1.6px 3px),
        #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
    animation: sp-spin 4.5s linear infinite;
    animation-play-state: paused;
}
.sp-card__disc::after { /* light sheen across the grooves */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 30deg, transparent 0 18%, rgba(255, 255, 255, 0.13) 24%, transparent 30% 68%, rgba(255, 255, 255, 0.09) 74%, transparent 80%);
}
.sp-card__label {
    position: relative;
    width: 34%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: center / cover no-repeat;
    box-shadow: 0 0 0 3px #0b0d14;
}
.sp-card__label::after { /* spindle hole */
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #0b0d14;
    transform: translate(-50%, -50%);
}
@keyframes sp-spin { to { transform: rotate(360deg); } }

.sp-card__body { position: relative; padding: 1.3rem 0.3rem 0.2rem; }
.sp-card__num { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.2em; color: var(--sky); }
.sp-card__title { margin: 0.35rem 0 0.5rem; font-family: var(--font-display); font-weight: normal; font-size: clamp(1.45rem, 2vw, 1.9rem); line-height: 1.05; }
.sp-card__text { font-size: 0.98rem; line-height: 1.55; font-weight: 300; color: rgba(255, 255, 255, 0.82); min-height: 3.1em; }

.sp-card__actions { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.2rem; }
.sp-card__play {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.35rem 0.7rem 1.1rem;
    border-radius: 999px;
    background: var(--white);
    color: var(--blue-deep);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(7, 18, 54, 0.25);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.3s;
}
.sp-card__play .i-play { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.sp-card__play:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 30px rgba(7, 18, 54, 0.32); }
.sp-card__open {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: background 0.25s, transform 0.25s var(--ease-out);
}
.sp-card__open svg { width: 20px; height: 20px; fill: currentColor; }
.sp-card__open:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }

/* equaliser bars, shown instead of the play triangle while a playlist is on */
.sp-eq { display: none; align-items: flex-end; gap: 2px; width: 1.1rem; height: 1rem; }
.sp-eq i { flex: 1; background: currentColor; border-radius: 1px; animation: sp-eq 0.9s ease-in-out infinite; }
.sp-eq i:nth-child(2) { animation-delay: -0.3s; }
.sp-eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes sp-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* hover: the record slides out and turns slowly; playing: it stays out and spins */
@media (hover: hover) {
    .sp-card:hover { translate: 0 -6px; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); }
    .sp-card:hover::before { opacity: 0.55; }
    .sp-card:hover .sp-card__vinyl { transform: translateX(22%); }
    .sp-card:hover .sp-card__disc { animation-play-state: running; }
}
.sp-card.is-playing { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.34); }
.sp-card.is-playing::before { opacity: 0.6; }
.sp-card.is-playing .sp-card__vinyl { transform: translateX(22%); }
.sp-card.is-playing .sp-card__disc { animation-play-state: running; animation-duration: 2.2s; }
.sp-card.is-playing .i-play { display: none; }
.sp-card.is-playing .sp-eq { display: inline-flex; }

/* one shared Spotify player under the cards; opens on the first Play */
.sp-player {
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 1.1rem;
    overflow: hidden;
    background: rgba(7, 18, 54, 0.35);
    box-shadow: 0 24px 60px rgba(7, 18, 54, 0.35);
}
.sp-player iframe { display: block; width: 100%; height: 352px; border: 0; }
.sp-player.is-open { animation: sp-open 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes sp-open { from { opacity: 0; transform: translateY(16px); } }

.sp__follow { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }

@media (prefers-reduced-motion: reduce) {
    .sp-card__disc, .sp-eq i { animation: none; }
}

/* tablets: two up; phones: swipe sideways */
@media (max-width: 991px) {
    .sp__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .sp__list {
        display: flex;
        gap: 1rem;
        margin: 0 calc(-1 * var(--gutter));
        padding: 0.5rem var(--gutter) 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--gutter);
        scrollbar-width: none;
    }
    .sp__list::-webkit-scrollbar { display: none; }
    .sp-card { flex: 0 0 80%; scroll-snap-align: center; }
    .sp-card__vinyl { transform: translateX(22%); } /* no hover on phones: show the record */
    .sp-player iframe { height: 352px; }
}

/* ---------- 8. Gallery ---------- */
.gallery { position: relative; }

.gallery__pin {
    position: relative;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.gallery__track {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.5rem);
    padding: 0 var(--gutter);
    will-change: transform;
}

.gallery__intro {
    flex: 0 0 auto;
    width: clamp(220px, 26vw, 420px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.gallery__count {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
}
.gallery__current { color: var(--white); }

.gallery-card {
    position: relative;
    flex: 0 0 auto;
    height: min(66vh, 640px);
    aspect-ratio: var(--ratio, 4 / 5);
    max-width: 82vw;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.gallery-card img {
    position: absolute;
    top: 0;
    left: -8%;
    width: 116%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    will-change: transform;
}
.gallery-card figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(7, 18, 54, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--white);
}

/* Download button: top-right, appears on hover (always shown on touch screens) */
.gallery-card__dl {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(7, 18, 54, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(-6px) scale(0.9);
    transition: opacity 0.25s, transform 0.25s var(--ease-out), background 0.2s;
}
.gallery-card__dl svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.gallery-card:hover .gallery-card__dl,
.gallery-card__dl:focus-visible { opacity: 1; transform: none; }
.gallery-card__dl:hover { background: var(--blue); }
@media (hover: none) {
    .gallery-card__dl { opacity: 1; transform: none; width: 44px; height: 44px; top: 10px; right: 10px; }
}

.gallery__progress {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 5vh;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}
.gallery__progress span {
    display: block;
    height: 100%;
    background: var(--white);
    transform-origin: left;
    transform: scaleX(0);
}

@media (max-width: 767px) {
    .gallery-card { height: 56svh; }
    .gallery__intro { width: 64vw; }
}

/* ---------- 9. Story ---------- */
.story { position: relative; }

.story__pin {
    position: relative;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: clamp(2rem, 4vw, 5rem);
    padding: 8rem var(--gutter) 4rem;
}

.story__media {
    position: relative;
    height: min(68vh, 680px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.story__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.story__text { position: relative; z-index: 4; }
.story__text .section-title { margin-bottom: 2rem; }

.story__beats { display: grid; }
.story__beat {
    grid-area: 1 / 1;
    font-size: clamp(1.05rem, 1.35vw, 1.3rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}
.story__beat p + p { margin-top: 1.1em; }
.story__quote {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    line-height: 1.15;
    background: linear-gradient(90deg, #fff 0%, #dceaff 50%, var(--sky) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.story__steps {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 2.5rem 0 0;
    padding: 0;
}
.story__steps li {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s, width 0.3s var(--ease-out);
}
.story__steps li.is-active { background: var(--white); width: 48px; }

@media (max-width: 991px) {
    .story__pin {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        align-items: start;
        gap: 1.5rem;
        padding: 5.5rem var(--gutter) 2rem;
    }
    .story__media { height: 32svh; }
    .story__text .section-title { margin-bottom: 0.9rem; font-size: 2.2rem; }
    .story__beat { font-size: 0.98rem; line-height: 1.55; }
    .story__beat p + p { margin-top: 0.8em; }
    .story__quote { font-size: 1.45rem; }
    .story__steps { margin-top: 1.2rem; }
}

/* tall phones: there is room for a bigger image */
@media (max-width: 991px) and (min-height: 800px) {
    .story__media { height: 36svh; }
}

/* short phones: give the longer beats more room */
@media (max-width: 991px) and (max-height: 720px) {
    .story__pin { padding-top: 4.75rem; gap: 1rem; }
    .story__media { height: 24svh; }
    .story__text .section-title { font-size: 1.9rem; margin-bottom: 0.6rem; }
    .story__beat { font-size: 0.92rem; line-height: 1.5; }
    .story__quote { font-size: 1.3rem; }
}

/* ---------- 10. Collection / finale ---------- */
.collection { position: relative; overflow: hidden; padding-top: clamp(4rem, 10vh, 8rem); }

.marquee {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transform: rotate(-2deg);
    margin: 0 -2vw;
}
.marquee__row {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    will-change: transform;
}
.marquee .pfp {
    position: relative;
    width: clamp(140px, 17vw, 250px);
    border-width: 3px;
    border-radius: 2rem;
    flex-shrink: 0;
}

.finale {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(5rem, 14vh, 9rem) var(--gutter) clamp(5rem, 14vh, 9rem);
}
.finale__title {
    font-family: var(--font-display);
    font-weight: normal;
    /* sized so each of the two lines fits the screen width */
    font-size: clamp(1.5rem, 7.4vw, 5.5rem);
    white-space: nowrap;
    line-height: 0.98;
}
.finale__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}
/* five buttons: one row on wide screens; where they don't fit, a balanced 3 + 2 instead of 4 + 1 */
@media (max-width: 1279px) and (min-width: 768px) {
    .finale__actions { max-width: 46rem; margin-left: auto; margin-right: auto; }
}

@media (max-width: 767px) {
    .finale__actions { flex-direction: column; align-items: center; }
    .finale__actions .btn { width: min(100%, 260px); }
    .marquee .pfp { width: 130px; border-width: 2px; border-radius: 1.2rem; }
}

/* ---------- 11. Footer ---------- */
.site-footer {
    position: relative;
    z-index: 2;
    width: 100%;
    background: rgba(31, 62, 196, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-family: var(--font-body);
    color: var(--white);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 4vw, 4rem);
    padding: clamp(3.5rem, 7vw, 5rem) var(--gutter) clamp(2.5rem, 5vw, 3.5rem);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--white);
    text-decoration: none;
}
.footer-favicon { width: 34px; height: 34px; }
.footer-logo-text { font-size: 1.7rem; font-weight: bold; letter-spacing: 0.08em; }
.footer-blurb {
    margin-top: 1.1rem;
    max-width: 26em;
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-title {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-weight: normal;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}
.footer-col a,
.footer-mail a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-col a:hover,
.footer-mail a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.4rem;
    text-align: right;
}
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    transition: background 0.2s, transform 0.2s;
}
.footer-social a:hover { background: var(--white); color: var(--blue-deep); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-mail { font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); }

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem var(--gutter) 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
}
.footer-top {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
}
.footer-top:hover { color: var(--white); }
.footer-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 991px) {
    .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 2.2rem; }
    /* finger-sized tap targets */
    .footer-col { gap: 0; }
    .footer-col a { padding: 0.6rem 0; }
    .footer-mail a,
    .footer-top { display: inline-block; padding: 0.6rem 0; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-contact { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
}

/* ---------- 12. Reduced motion / no-JS fallbacks ---------- */
/* .is-static is set on phones and when animations are off: sections flow normally */
.is-static .hero__scroll { display: none; }
.is-static .about__pin { min-height: 0; padding: clamp(4rem, 10vh, 6rem) var(--gutter); }
.is-static .gallery__intro {
    width: auto;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding: clamp(3rem, 8vh, 5rem) var(--gutter) 0;
}
.is-static .gallery__pin {
    height: auto;
    padding: 1.6rem 0 clamp(3.5rem, 8vh, 5rem);
    scroll-padding: 0 var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.is-static .gallery__pin::-webkit-scrollbar { display: none; }
.is-static .gallery__track { will-change: auto; }
.is-static .gallery-card { scroll-snap-align: center; }
.is-static .gallery__progress { bottom: clamp(1.2rem, 3vh, 2rem); }
.is-static .story__pin { height: auto; }
.is-static .story__beats { display: flex; flex-direction: column; gap: 1.2rem; }
.is-static .story__beat { grid-area: auto; }
.is-static .story__steps { display: none; }

@media (prefers-reduced-motion: reduce) {
    .hero__scroll-line { animation: none; }
}
