/* ================================================================
   PPEBBL.com — Blobitecture Opulence
   Ethereal blue monochrome, slide-reveal, humanist typography.
   Design trace: Intersection Observer at `threshold: 0.15`. Each card's
   slide-reveal is accompanied by its background blob growing from zero.
   Intersection Observer that triggers CSS transitions on `transform` and
   `opacity`. Stagger children within a card-grid by applying
   `transition-delay: calc(var(--index`. Intersection Observer with
   `rootMargin: '0px 0px bottom-inset-60px 0px'`. Interstitial Blobs**: Between major
   sections. Source Sans 3" Source Sans 3" (Google Fonts.
   ================================================================ */

:root {
    --bg-deep: #0b1628;
    --bg-card: #111f36;
    --bg-elev: #162a4e;
    --accent-primary: #3d7ec7;
    --accent-secondary: #7bb4e8;
    --accent-glow: #a8d4f0;
    --text-primary: #e8edf5;
    --text-secondary: #a8bdd4;
    --text-body: #c4d0e0;
    --gold: #c7a94e;
    --label: #5b8abf;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);

    --radius-lg: clamp(24px, 4vw, 48px);
    --radius-xl: clamp(40px, 6vw, 72px);

    --pad-x: clamp(1.25rem, 5vw, 6rem);
}

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

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-deep);
    color: var(--text-body);
    font-family: "Source Sans 3", "Inter", system-ui, sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 90vw 60vh at 70% -10%, rgba(61, 126, 199, 0.18), transparent 60%),
        radial-gradient(ellipse 80vw 70vh at 10% 40%, rgba(168, 212, 240, 0.08), transparent 55%),
        radial-gradient(ellipse 70vw 50vh at 90% 80%, rgba(123, 180, 232, 0.1), transparent 60%),
        var(--bg-deep);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ================================================================
   Typography
   ================================================================ */

h1, h2, h3, h4 {
    font-family: "Cormorant Garamond", "Cormorant", "Inter", serif;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0;
    line-height: 1.08;
}

h1 { font-size: clamp(2.5rem, 6vw, 6rem); }
h2 { font-size: clamp(2rem, 4.8vw, 4.5rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }

p { margin: 0 0 1rem; }

.eyebrow,
.section-head__chapter,
.pebble-card__label,
.shore-label,
.gallery-pebble__num,
.chamber-blob__eyebrow,
.menu-pill__label,
.scroll-cue__label {
    font-family: "Outfit", "Inter", sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--label);
}

/* ================================================================
   Ambient layer (plankton + orbital rings + refraction)
   ================================================================ */

.ambient-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orbital-ring {
    position: absolute;
    width: 140vmax;
    height: 140vmax;
    opacity: 0.75;
    animation: ringSpin 120s linear infinite;
    transform-origin: center;
}

.orbital-ring--one {
    top: -30vmax;
    left: -20vmax;
    animation-duration: 180s;
}

.orbital-ring--two {
    bottom: -40vmax;
    right: -30vmax;
    animation-duration: 240s;
    animation-direction: reverse;
}

@keyframes ringSpin {
    0%   { transform: rotateX(60deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateZ(360deg); }
}

.refraction {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: refractionDrift 18s ease-in-out infinite alternate;
}

@keyframes refractionDrift {
    0%   { transform: translateY(-8px); }
    100% { transform: translateY(8px); }
}

.plankton {
    position: absolute;
    inset: 0;
}

.plankton span {
    position: absolute;
    width: var(--p-size, 3px);
    height: var(--p-size, 3px);
    background: var(--accent-glow);
    border-radius: 50%;
    opacity: 0;
    filter: blur(0.5px);
    box-shadow: 0 0 8px rgba(168, 212, 240, 0.55);
    animation: planktonFade var(--p-dur, 7s) ease-in-out infinite;
    animation-delay: var(--p-delay, 0s);
}

@keyframes planktonFade {
    0%, 100% { opacity: 0; transform: translateY(0); }
    30%      { opacity: 0.9; }
    60%      { opacity: 0.4; }
    100%     { opacity: 0; transform: translateY(-24px); }
}

/* ================================================================
   Floating menu pill
   ================================================================ */

.menu-pill {
    position: fixed;
    top: clamp(1.25rem, 2vw, 2rem);
    right: clamp(1.25rem, 2vw, 2rem);
    z-index: 80;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    background: rgba(17, 31, 54, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(168, 212, 240, 0.14);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.5s var(--ease-hover), background 0.5s var(--ease-hover), border-color 0.5s var(--ease-hover);
}

.menu-pill:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(22, 42, 78, 0.85);
    border-color: rgba(199, 169, 78, 0.5);
}

.menu-pill__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-glow);
    box-shadow: 0 0 14px rgba(168, 212, 240, 0.8);
    animation: pulseDot 3.2s ease-in-out infinite;
}

.menu-pill.is-open .menu-pill__dot {
    background: var(--gold);
    box-shadow: 0 0 14px rgba(199, 169, 78, 0.8);
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.35); opacity: 0.7; }
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: radial-gradient(ellipse at 70% 20%, rgba(22, 42, 78, 0.96), rgba(11, 22, 40, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s var(--ease-out);
}

.menu-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.menu-overlay__inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: var(--pad-x);
}

.menu-overlay__wordmark {
    width: min(320px, 60vw);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out) 0.1s, transform 0.9s var(--ease-out) 0.1s;
}

.menu-overlay.is-visible .menu-overlay__wordmark {
    opacity: 1;
    transform: translateY(0);
}

.menu-overlay__nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    width: min(1100px, 90vw);
}

.menu-blob {
    position: relative;
    padding: 2.2rem 1.8rem;
    background: rgba(17, 31, 54, 0.65);
    border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 160px;
    justify-content: center;
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    transition:
        transform 0.7s var(--ease-out),
        opacity 0.7s var(--ease-out),
        background 0.5s var(--ease-hover),
        border-radius 2.4s var(--ease-hover);
    border: 1px solid rgba(168, 212, 240, 0.1);
}

.menu-overlay.is-visible .menu-blob {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: calc(var(--d, 0) * 90ms + 220ms);
}

.menu-blob:nth-child(1) { --d: 0; }
.menu-blob:nth-child(2) { --d: 1; }
.menu-blob:nth-child(3) { --d: 2; }
.menu-blob:nth-child(4) { --d: 3; }
.menu-blob:nth-child(5) { --d: 4; }

.menu-blob:hover {
    background: rgba(22, 42, 78, 0.92);
    border-radius: 45% 55% 40% 60% / 60% 45% 55% 40%;
    border-color: rgba(199, 169, 78, 0.4);
}

.menu-blob__num {
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    color: var(--gold);
}

.menu-blob__label {
    font-family: "Cormorant Garamond", "Cormorant", serif;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 600;
}

.menu-overlay__note {
    font-family: "Outfit", sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: 0.02em;
}

/* ================================================================
   Chapter base
   ================================================================ */

main {
    position: relative;
    z-index: 1;
}

.chapter {
    position: relative;
    padding: clamp(6rem, 12vh, 10rem) var(--pad-x);
    overflow: hidden;
}

.section-head {
    max-width: 860px;
    margin: 0 auto clamp(3rem, 6vh, 5rem);
    text-align: center;
}

.section-head__title {
    margin: 0.75rem 0 1.25rem;
}

.section-head__lede {
    font-family: "Outfit", "Inter", sans-serif;
    font-weight: 300;
    color: var(--text-secondary);
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    letter-spacing: 0.03em;
    line-height: 1.55;
    max-width: 640px;
    margin: 0 auto;
}

/* ================================================================
   Chapter 1 — The Surface (Hero)
   ================================================================ */

.chapter--surface {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding-top: clamp(5rem, 10vh, 8rem);
    padding-bottom: clamp(3rem, 8vh, 6rem);
}

.hero-blob-wrap {
    position: relative;
    width: min(1080px, 94vw);
    height: min(85vh, 780px);
    display: grid;
    place-items: center;
}

.hero-blob {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 30px 80px rgba(11, 22, 40, 0.8));
    animation: heroEnter 1.2s var(--ease-out) forwards, heroPulse 9s ease-in-out 1.2s infinite alternate;
    transform: scale(0.3);
    opacity: 0;
}

@keyframes heroEnter {
    to { transform: scale(1); opacity: 1; }
}

@keyframes heroPulse {
    0%   { transform: scale(1); }
    100% { transform: scale(1.025); }
}

.hero-blob__halo {
    transform-origin: center;
    animation: haloPulse 6s ease-in-out infinite alternate;
}

@keyframes haloPulse {
    0%   { opacity: 0.9; transform: scale(1); }
    100% { opacity: 0.55; transform: scale(1.04); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
    padding: 0 clamp(1rem, 4vw, 3rem);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.9s var(--ease-out) 0.5s, transform 0.9s var(--ease-out) 0.5s;
}

.hero-content.is-revealed {
    opacity: 1;
    transform: scale(1);
}

.hero-content .eyebrow {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(199, 169, 78, 0.4);
    color: var(--gold);
    margin-bottom: 1.6rem;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
}

.hero-title__line {
    display: block;
    font-style: italic;
    font-weight: 500;
}

.hero-title__line:nth-child(2) { font-style: normal; font-weight: 600; }
.hero-title__line--gilt {
    color: var(--gold);
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-style: italic;
}

.hero-kicker {
    font-family: "Outfit", "Inter", sans-serif;
    font-weight: 300;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    margin: 1.4rem auto 2rem;
    max-width: 520px;
}

.hero-wordmark {
    display: inline-flex;
    gap: clamp(0.6rem, 1.2vw, 1.1rem);
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    letter-spacing: 0.4em;
    color: var(--gold);
    padding-top: 1.2rem;
    border-top: 1px solid rgba(199, 169, 78, 0.35);
}

.hero-wordmark span {
    display: inline-block;
    animation: letterFloat 5s ease-in-out infinite alternate;
    animation-delay: calc(var(--i, 0) * 0.15s);
}

.hero-wordmark span:nth-child(1) { --i: 0; }
.hero-wordmark span:nth-child(2) { --i: 1; }
.hero-wordmark span:nth-child(3) { --i: 2; }
.hero-wordmark span:nth-child(4) { --i: 3; }
.hero-wordmark span:nth-child(5) { --i: 4; }
.hero-wordmark span:nth-child(6) { --i: 5; }

@keyframes letterFloat {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

.drift-blob {
    position: absolute;
    width: clamp(140px, 20vw, 280px);
    height: clamp(140px, 20vw, 280px);
    filter: blur(20px);
    opacity: 0;
    animation: driftEnter 1s var(--ease-out) forwards, driftFloat 11s ease-in-out infinite alternate;
}

.drift-blob--a { top: 5%;  left: 2%;  animation-delay: 0.2s, 1.2s; }
.drift-blob--b { top: 10%; right: 4%; animation-delay: 0.4s, 1.4s; }
.drift-blob--c { bottom: 10%; left: 8%;  animation-delay: 0.6s, 1.6s; }
.drift-blob--d { bottom: 6%;  right: 6%; animation-delay: 0.8s, 1.8s; }

@keyframes driftEnter {
    from { transform: translateY(30px) scale(0.6); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes driftFloat {
    0%   { transform: translateY(0) scale(1) rotate(0deg); }
    50%  { transform: translateY(-16px) scale(1.05) rotate(4deg); }
    100% { transform: translateY(0) scale(1) rotate(-3deg); }
}

.scroll-cue {
    position: absolute;
    bottom: clamp(1rem, 3vh, 2rem);
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.scroll-cue__line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--accent-secondary), transparent);
    animation: scrollCue 2.4s ease-in-out infinite;
}

@keyframes scrollCue {
    0%   { transform: translateY(-10px) scaleY(0.6); opacity: 0; }
    40%  { opacity: 1; }
    100% { transform: translateY(10px) scaleY(1); opacity: 0; }
}

/* ================================================================
   Chapter 2 — The Descent (Content River)
   ================================================================ */

.chapter--descent {
    padding-top: clamp(4rem, 10vh, 8rem);
}

.content-river {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1280px;
    margin: 0 auto;
    z-index: 2;
}

.pebble-card {
    position: relative;
    padding: clamp(2rem, 3vw, 2.8rem);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.7s var(--ease-hover),
        background 0.6s var(--ease-hover),
        box-shadow 0.6s var(--ease-hover);
    box-shadow: 0 8px 40px rgba(22, 42, 78, 0.12);
}

.pebble-card:nth-child(3n+2) {
    transform: translateY(3vw);
}

.pebble-card:nth-child(3n+3) {
    transform: translateY(1.5vw);
}

.pebble-card:nth-child(3n+2).is-revealed {
    transform: translateY(3vw);
}

.pebble-card:nth-child(3n+3).is-revealed {
    transform: translateY(1.5vw);
}

.pebble-card:hover {
    transform: translateY(-4px);
    background: var(--bg-elev);
    box-shadow: 0 30px 80px rgba(11, 22, 40, 0.65), 0 0 0 1px rgba(168, 212, 240, 0.08);
}

.pebble-card:nth-child(3n+2):hover { transform: translateY(calc(3vw - 4px)); }
.pebble-card:nth-child(3n+3):hover { transform: translateY(calc(1.5vw - 4px)); }

.pebble-card__blob {
    position: absolute;
    inset: -3%;
    width: 106%;
    height: 106%;
    z-index: -1;
    opacity: 0.0;
    transition: opacity 0.9s var(--ease-hover);
}

.pebble-card.is-revealed .pebble-card__blob {
    opacity: 1;
    animation: cardBlobGrow 0.9s var(--ease-out) forwards;
}

@keyframes cardBlobGrow {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Iridescent shimmer on hover */
.pebble-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(168, 212, 240, 0.08) 50%, transparent 60%);
    background-size: 300% 100%;
    background-position: 200% 0;
    transition: background-position 0.9s var(--ease-hover);
    pointer-events: none;
    z-index: 1;
}

.pebble-card:hover::before {
    background-position: -200% 0;
}

.pebble-card__label {
    display: inline-block;
    margin-bottom: 1rem;
}

.pebble-card__title {
    margin: 0 0 1rem;
}

.pebble-card__body {
    color: var(--text-body);
    margin-bottom: 1.8rem;
}

.pebble-card__index {
    display: inline-block;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    padding-top: 0.9rem;
    border-top: 1px solid rgba(168, 212, 240, 0.14);
    width: 100%;
}

.interstitial {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
    width: clamp(320px, 45vw, 640px);
    height: clamp(320px, 45vw, 640px);
    animation: interstitialDrift 16s ease-in-out infinite alternate;
}

.interstitial--left {
    top: 20%;
    left: -12%;
}

.interstitial--right {
    bottom: 8%;
    right: -14%;
    animation-delay: 3s;
}

@keyframes interstitialDrift {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0.9; }
    100% { transform: translateY(-40px) rotate(6deg); opacity: 0.6; }
}

/* ================================================================
   Chapter 3 — The Gallery
   ================================================================ */

.chapter--gallery {
    background:
        radial-gradient(ellipse 90vw 60vh at 50% 10%, rgba(22, 42, 78, 0.55), transparent 60%),
        transparent;
}

.carousel {
    position: relative;
    margin: 0 calc(-1 * var(--pad-x));
    padding: 0 var(--pad-x);
}

.carousel__track {
    display: flex;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2rem 0 3rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel__track::-webkit-scrollbar { display: none; }

.gallery-pebble {
    flex: 0 0 clamp(260px, 34vw, 420px);
    scroll-snap-align: center;
    background: var(--bg-card);
    border-radius: 55% 45% 60% 40% / 45% 55% 40% 60%;
    padding: clamp(1.5rem, 2.5vw, 2.4rem);
    transform: scale(0.85);
    opacity: 0.55;
    transition:
        transform 0.7s var(--ease-out),
        opacity 0.7s var(--ease-out),
        border-radius 2.6s var(--ease-hover),
        border-color 0.5s var(--ease-hover),
        background 0.6s var(--ease-hover);
    border: 1px solid rgba(168, 212, 240, 0.06);
    box-shadow: 0 10px 40px rgba(11, 22, 40, 0.5);
    cursor: grab;
}

.gallery-pebble.is-centered {
    transform: scale(1);
    opacity: 1;
    border: 1px solid var(--gold);
    box-shadow: 0 30px 80px rgba(11, 22, 40, 0.65), 0 0 40px rgba(199, 169, 78, 0.1);
    background: var(--bg-elev);
}

.gallery-pebble:hover {
    border-radius: 45% 55% 40% 60% / 60% 45% 55% 40%;
}

.gallery-pebble__visual {
    aspect-ratio: 1;
    border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, var(--pebble-b, var(--accent-glow)), var(--pebble-a, var(--bg-elev)) 70%);
    margin-bottom: 1.4rem;
    display: grid;
    place-items: center;
    animation: pebbleMorph 14s ease-in-out infinite alternate;
}

@keyframes pebbleMorph {
    0%   { border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%; }
    33%  { border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%; }
    66%  { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
    100% { border-radius: 55% 45% 60% 40% / 50% 55% 45% 55%; }
}

.gallery-pebble__visual svg {
    width: 100%;
    height: 100%;
}

.gallery-pebble__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gallery-pebble__num {
    color: var(--gold);
}

.gallery-pebble__name {
    font-size: clamp(1.25rem, 1.8vw, 1.65rem);
}

.gallery-pebble__desc {
    font-family: "Outfit", sans-serif;
    font-weight: 300;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.carousel__shore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    margin-top: 1rem;
}

.carousel__btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-primary);
    display: grid;
    place-items: center;
    transition: transform 0.4s var(--ease-hover), background 0.4s var(--ease-hover), color 0.4s var(--ease-hover);
    border: 1px solid rgba(168, 212, 240, 0.1);
}

.carousel__btn:hover {
    transform: scale(1.08);
    background: var(--bg-elev);
    color: var(--gold);
    border-color: rgba(199, 169, 78, 0.4);
}

.carousel__btn svg {
    width: 20px;
    height: 20px;
}

.carousel__pips {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.carousel__pip {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(168, 189, 212, 0.28);
    transition: background 0.4s var(--ease-hover), transform 0.4s var(--ease-hover);
    cursor: pointer;
    border: none;
    padding: 0;
}

.carousel__pip.is-active {
    background: var(--gold);
    transform: scale(1.35);
}

/* ================================================================
   Chapter 4 — The Chamber
   ================================================================ */

.chapter--chamber {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(6rem, 14vh, 10rem) var(--pad-x);
}

.chamber-orbit {
    position: absolute;
    width: min(120vmin, 1400px);
    height: min(120vmin, 1400px);
    inset: auto;
    animation: chamberSpin 80s linear infinite;
    opacity: 0.85;
    pointer-events: none;
}

@keyframes chamberSpin {
    0%   { transform: rotateZ(0deg); }
    100% { transform: rotateZ(360deg); }
}

.chamber-blob {
    position: relative;
    width: min(90vw, 960px);
    min-height: min(60vh, 680px);
    background: radial-gradient(ellipse at 30% 30%, var(--bg-elev), var(--bg-card) 70%);
    display: grid;
    place-items: center;
    padding: clamp(2rem, 5vw, 4.5rem);
    text-align: center;
    border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
    box-shadow:
        inset 0 0 90px rgba(168, 212, 240, 0.08),
        0 40px 90px rgba(11, 22, 40, 0.7);
    animation: chamberMorph 12s ease-in-out infinite alternate;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
}

.chamber-blob.is-revealed {
    opacity: 1;
    transform: scale(1);
}

@keyframes chamberMorph {
    0%   { border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%; }
    25%  { border-radius: 45% 55% 40% 60% / 60% 45% 55% 40%; }
    50%  { border-radius: 50% 50% 65% 35% / 45% 60% 40% 55%; }
    75%  { border-radius: 55% 45% 50% 50% / 60% 45% 55% 40%; }
    100% { border-radius: 48% 52% 55% 45% / 55% 50% 50% 45%; }
}

.chamber-blob__core {
    max-width: 640px;
}

.chamber-blob__eyebrow {
    display: inline-block;
    margin-bottom: 1.4rem;
}

.chamber-blob__title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1.8rem;
    font-style: italic;
    font-weight: 500;
}

.chamber-blob__body {
    font-family: "Source Sans 3", sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--text-body);
    line-height: 1.72;
    margin-bottom: 1.1rem;
}

.chamber-blob__sig {
    margin-top: 2.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    color: var(--gold);
    padding-top: 1.3rem;
    border-top: 1px solid rgba(199, 169, 78, 0.35);
    max-width: 440px;
    margin-inline: auto;
}

.chamber-blob__sig-mark {
    font-size: 1.6rem;
    line-height: 1;
}

.chamber-blob__sig-name {
    font-size: 1rem;
    letter-spacing: 0.03em;
}

/* ================================================================
   Chapter 5 — The Shore (Footer Lagoon)
   ================================================================ */

.chapter--shore {
    padding: 0;
    position: relative;
    margin-top: clamp(4rem, 8vh, 8rem);
}

.shore-wave {
    display: block;
    width: 100%;
    height: clamp(120px, 18vh, 220px);
    margin-bottom: -1px;
}

.shore-footer {
    background: var(--bg-card);
    padding: clamp(3rem, 8vh, 6rem) var(--pad-x) clamp(2rem, 5vh, 4rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
    position: relative;
}

.shore-cluster {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: start;
    transform: translateY(calc(var(--shore-y, 0) * 1.2rem));
}

.shore-cluster:nth-child(1) { justify-self: start; }
.shore-cluster:nth-child(2) { justify-self: center; }
.shore-cluster:nth-child(3) { justify-self: end; }
.shore-cluster:nth-child(4) { justify-self: center; }

.shore-cluster--mark {
    grid-column: 1 / -1;
    margin-top: clamp(2rem, 4vh, 3rem);
    padding-top: 1.6rem;
    border-top: 1px solid rgba(168, 212, 240, 0.1);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    transform: none;
}

.shore-label {
    margin-bottom: 0.6rem;
}

.shore-line {
    font-family: "Outfit", "Inter", sans-serif;
    font-weight: 300;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0;
}

.shore-line--link {
    position: relative;
    display: inline-block;
    width: fit-content;
    transition: color 0.4s var(--ease-hover), transform 0.4s var(--ease-hover);
}

.shore-line--link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 0;
    background: var(--gold);
    transition: width 0.5s var(--ease-hover);
}

.shore-line--link:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.shore-line--link:hover::after { width: 100%; }

.shore-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-elev);
    border-radius: 999px;
    padding: 0.3rem 0.3rem 0.3rem 1.1rem;
    max-width: 360px;
    border: 1px solid rgba(168, 212, 240, 0.1);
    transition: border-color 0.4s var(--ease-hover);
}

.shore-form:focus-within {
    border-color: rgba(199, 169, 78, 0.45);
}

.shore-form__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: "Outfit", sans-serif;
    font-size: 0.95rem;
    padding: 0.55rem 0;
    outline: none;
}

.shore-form__input::placeholder {
    color: rgba(168, 189, 212, 0.6);
}

.shore-form__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: var(--accent-primary);
    color: var(--text-primary);
    font-family: "Outfit", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.4s var(--ease-hover), transform 0.4s var(--ease-hover), color 0.4s var(--ease-hover);
}

.shore-form__btn:hover {
    background: var(--gold);
    color: var(--bg-deep);
    transform: translateX(2px);
}

.shore-form__arrow {
    transition: transform 0.4s var(--ease-hover);
}

.shore-form__btn:hover .shore-form__arrow {
    transform: translateX(3px);
}

.shore-mark {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: 0.4em;
    color: var(--gold);
}

.shore-fine {
    font-family: "Outfit", sans-serif;
    font-weight: 300;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

/* ================================================================
   Progress ribbon (scroll)
   ================================================================ */

.progress-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 2px;
    background: rgba(168, 189, 212, 0.05);
    z-index: 90;
    pointer-events: none;
}

.progress-ribbon__fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-glow), var(--gold));
    transition: width 0.2s linear;
}

/* ================================================================
   Slide-reveal pattern
   ================================================================ */

.reveal {
    opacity: 0;
    transition:
        opacity 0.9s var(--ease-out),
        transform 0.9s var(--ease-out);
    transition-delay: calc(var(--index, 0) * 120ms);
}

[data-reveal="slide-up"]    { transform: translateY(60px); }
[data-reveal="slide-left"]  { transform: translateX(-80px); }
[data-reveal="slide-right"] { transform: translateX(80px); }
[data-reveal="scale-in"]    { transform: scale(0.85); }
[data-reveal="hero"]        { transform: translateY(30px) scale(0.96); }

.reveal.is-revealed {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

.pebble-card.reveal.is-revealed:nth-child(3n+2) {
    transform: translateY(3vw);
}

.pebble-card.reveal.is-revealed:nth-child(3n+3) {
    transform: translateY(1.5vw);
}

.pebble-card.reveal.is-revealed:nth-child(3n+2):hover {
    transform: translateY(calc(3vw - 4px));
}

.pebble-card.reveal.is-revealed:nth-child(3n+3):hover {
    transform: translateY(calc(1.5vw - 4px));
}

/* ================================================================
   Responsive tuning
   ================================================================ */

@media (max-width: 900px) {
    .pebble-card:nth-child(3n+2),
    .pebble-card:nth-child(3n+3) {
        transform: none;
    }

    .pebble-card:nth-child(3n+2):hover,
    .pebble-card:nth-child(3n+3):hover {
        transform: translateY(-4px);
    }

    .shore-cluster {
        justify-self: start;
        transform: none;
    }
}

@media (max-width: 600px) {
    :root {
        --pad-x: 1.25rem;
    }

    .menu-pill__label {
        display: none;
    }

    .menu-pill {
        padding: 0.9rem;
    }

    .hero-title { font-size: clamp(2.2rem, 10vw, 3.4rem); }

    .menu-overlay__nav {
        grid-template-columns: 1fr 1fr;
    }
}
