/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --midnight-trench: #0a1628;
    --bathyal-blue: #0f2847;
    --twilight-zone: #163a5c;
    --moonlight: #e0f4ff;
    --sea-glass: #b8d4e3;
    --bioluminescent-teal: #00e5c7;
    --jellyfish-pink: #ff6b9d;
    --crystal-facet: #7eb8da;
    --abyss: #0a2540;
    --kelp-shadow: #0d1f33;
    --depth: 0;
}

html {
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(180deg, #0a1628 0%, #0f2847 40%, #163a5c 100%);
    color: var(--moonlight);
    overflow-x: hidden;
    min-height: 500vh;
}

/* === PARTICLE CANVAS === */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* === SCROLL CONTAINER === */
#scroll-container {
    position: relative;
    z-index: 2;
}

/* === SPREAD BASE === */
.spread {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
}

.spread-inner {
    height: 100%;
    width: 100%;
    padding: 4vh 5vw;
}

.spread-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === GRID LAYOUTS === */
.spread-grid {
    display: grid;
    align-items: center;
    gap: 2vw;
}

.spread-odd {
    grid-template-columns: 1fr 1.618fr;
}

.spread-even {
    grid-template-columns: 1.618fr 1fr;
}

/* === TYPOGRAPHY === */
.domain-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: var(--moonlight); /* #e0f4ff on dark, #0a2540 on light */
    text-shadow: 0 0 40px rgba(0, 229, 199, 0.3);
    transform: rotate(-1deg);
}

.domain-title-small {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.invitation {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--sea-glass);
    opacity: 0.85;
    margin-top: 1.5rem;
    letter-spacing: 0.15em;
}

.invitation-sub {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    color: var(--sea-glass);
    opacity: 0.5;
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

.surface-content,
.ascent-content {
    text-align: center;
}

/* === SPREAD 1 — THE SURFACE === */
.spread-1 {
    background: radial-gradient(ellipse at 50% 80%, rgba(0, 229, 199, 0.05) 0%, transparent 60%);
}

.surface-content {
    padding-top: 23.6vh; /* golden ratio positioning */
}

/* === SPREAD 2 — THE DESCENT === */
.spread-2 .spread-text {
    padding: 2rem;
}

.vertical-text {
    writing-mode: vertical-rl;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 300;
    margin-bottom: 2rem;
    height: 35vh;
    overflow: hidden;
}

.japanese-body {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: var(--sea-glass);
    opacity: 0.85;
    line-height: 2;
    letter-spacing: 0.08em;
}

.spread-heading {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--moonlight);
    text-shadow: 0 0 40px rgba(0, 229, 199, 0.3);
    transform: rotate(-1deg);
    margin-bottom: 1rem;
}

.spread-body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    color: var(--sea-glass);
    opacity: 0.85;
    line-height: 1.8;
    letter-spacing: 0.01em;
    max-width: 45ch;
}

.spread-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crystal-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* === SPREAD 3 — THE BAR === */
.jellyfish-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jellyfish {
    width: 280px;
    height: 380px;
    opacity: 0.9;
}

.jelly-bell {
    animation: bellPulse 3s ease-in-out infinite;
    transform-origin: 150px 120px;
}

@keyframes bellPulse {
    0%, 100% { transform: scaleX(1) scaleY(1); }
    50% { transform: scaleX(0.92) scaleY(1.06); }
}

.menu-section {
    padding: 3rem 2rem;
}

.menu-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--moonlight);
    text-shadow: 0 0 40px rgba(0, 229, 199, 0.3);
    transform: rotate(-1.5deg);
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.menu-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(126, 184, 218, 0.15);
}

.menu-item:last-child {
    border-bottom: none;
}

.cocktail-name {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--jellyfish-pink);
    transform: rotate(-0.5deg);
    margin-bottom: 0.5rem;
}

.cocktail-desc {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: var(--sea-glass);
    opacity: 0.85;
    line-height: 1.8;
    max-width: 45ch;
    margin-bottom: 0.5rem;
}

.cocktail-price {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--crystal-facet);
    opacity: 0.6;
}

/* === SPREAD 4 — THE CONVERSATION === */
.spread-4 .spread-inner {
    grid-template-columns: 1fr 40px 1fr;
}

.poetry-left,
.poetry-right {
    padding: 2rem;
}

.poetry-line {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.poetry-line.caveat {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    color: var(--moonlight);
    text-shadow: 0 0 30px rgba(0, 229, 199, 0.15);
    transform: rotate(-0.5deg);
}

.poetry-line.zen {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    color: var(--sea-glass);
    opacity: 0.85;
}

.bubble-gutter {
    position: relative;
    height: 100%;
    overflow: hidden;
}

/* === SPREAD 5 — THE ASCENT === */
.spread-5 {
    background: radial-gradient(ellipse at 50% 20%, rgba(0, 229, 199, 0.06) 0%, transparent 60%);
}

.ascent-content {
    padding-bottom: 23.6vh;
}

/* === ANIMATIONS — ENTRANCE === */
.spread-text,
.surface-content,
.ascent-content {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

.spread-text.visible,
.surface-content.visible,
.ascent-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.menu-item,
.poetry-line {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

.menu-item.visible,
.poetry-line.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Restore rotation for visible items that need it */
.poetry-line.caveat.visible {
    transform: translateY(0) rotate(-0.5deg);
}

/* === DECORATIVE FLOURISHES === */
.spread-heading::after {
    content: '〰';
    display: block;
    color: var(--sea-glass);
    opacity: 0.3;
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.menu-title::before {
    content: '✦';
    font-size: 1rem;
    color: var(--sea-glass);
    opacity: 0.3;
    margin-right: 0.75rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .spread-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto;
    }
    
    .spread-4 .spread-inner {
        grid-template-columns: 1fr !important;
    }

    .bubble-gutter {
        display: none;
    }

    .vertical-text {
        writing-mode: horizontal-tb;
        height: auto;
    }

    .spread-inner {
        padding: 3vh 6vw;
    }

    .jellyfish {
        width: 200px;
        height: 260px;
    }
}
