/* ============================================================
   imouto.quest — Editorial Naturalism
   Palette: Ocean-Deep
   Fonts: Barlow Condensed 700, Barlow 600, Lora 400/italic
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --abyssal:    #0a1520;
    --deep-ocean: #0d2b3e;
    --midwater:   #1a4a6b;
    --surface-teal: #2d7a9a;
    --seafoam:    #a8d5e2;
    --paper-tone: #f0ece4;
    --muted-sage: #7a9e8c;

    --font-display: 'Barlow Condensed', sans-serif;
    --font-label:   'Barlow', sans-serif;
    --font-body:    'Lora', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--abyssal);
    color: var(--paper-tone);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.75;
    overflow-x: hidden;
}

/* ---------- Navigation ---------- */
#site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(10, 21, 32, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transform: translateY(0);
    transition: transform 0.35s ease;
}

#site-nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 40px;
}

.nav-wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--paper-tone);
}

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

.nav-links a {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--paper-tone);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--seafoam);
}

/* ---------- Scenes — shared ---------- */
.scene {
    position: relative;
    width: 100%;
}

/* ---------- Bokeh Image System ---------- */
.bokeh-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 40%;
    filter: brightness(0.85) saturate(0.9);
}

.scene-image-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Scene-specific bokeh backgrounds — SVG-based procedural bokeh */
.bokeh-surface {
    background-color: var(--midwater);
    background-image:
        radial-gradient(ellipse 200px 200px at 15% 30%, rgba(168, 213, 226, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 300px 280px at 60% 60%, rgba(45, 122, 154, 0.25) 0%, transparent 65%),
        radial-gradient(ellipse 160px 160px at 85% 20%, rgba(168, 213, 226, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 40% 80%, rgba(13, 43, 62, 0.6) 0%, transparent 80%),
        radial-gradient(ellipse 250px 200px at 75% 45%, rgba(26, 74, 107, 0.3) 0%, transparent 65%),
        radial-gradient(ellipse 180px 180px at 30% 55%, rgba(122, 158, 140, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 500px 400px at 50% 50%, rgba(26, 74, 107, 0.4) 0%, transparent 100%),
        linear-gradient(175deg, var(--midwater) 0%, var(--deep-ocean) 40%, var(--abyssal) 100%);
    background-position: center 40%;
}

.bokeh-shore {
    background-color: var(--deep-ocean);
    background-image:
        radial-gradient(ellipse 120px 120px at 20% 25%, rgba(168, 213, 226, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 200px 180px at 65% 40%, rgba(122, 158, 140, 0.15) 0%, transparent 65%),
        radial-gradient(ellipse 150px 130px at 80% 70%, rgba(45, 122, 154, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 300px 250px at 35% 65%, rgba(13, 43, 62, 0.5) 0%, transparent 80%),
        linear-gradient(160deg, var(--deep-ocean) 0%, var(--abyssal) 100%);
    background-position: center center;
}

.bokeh-canopy {
    background-color: var(--abyssal);
    background-image:
        radial-gradient(ellipse 180px 180px at 25% 20%, rgba(122, 158, 140, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 140px 200px at 70% 35%, rgba(122, 158, 140, 0.15) 0%, transparent 65%),
        radial-gradient(ellipse 100px 100px at 55% 65%, rgba(168, 213, 226, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 250px 300px at 40% 55%, rgba(13, 43, 62, 0.7) 0%, transparent 80%),
        radial-gradient(ellipse 160px 120px at 85% 80%, rgba(26, 74, 107, 0.2) 0%, transparent 60%),
        linear-gradient(185deg, #0a1520 0%, #0d2b3e 50%, #071018 100%);
    background-position: center 35%;
}

.bokeh-abyss {
    background-color: var(--abyssal);
    background-image:
        radial-gradient(ellipse 200px 150px at 20% 60%, rgba(45, 122, 154, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 150px 150px at 75% 30%, rgba(168, 213, 226, 0.12) 0%, transparent 65%),
        radial-gradient(ellipse 300px 200px at 50% 70%, rgba(10, 21, 32, 0.8) 0%, transparent 80%),
        radial-gradient(ellipse 180px 120px at 35% 40%, rgba(26, 74, 107, 0.25) 0%, transparent 65%),
        linear-gradient(190deg, #0d2b3e 0%, #071018 50%, #020810 100%);
    background-position: center 50%;
}

.bokeh-depth-inline {
    background-color: var(--midwater);
    background-image:
        radial-gradient(ellipse 100px 80px at 25% 30%, rgba(168, 213, 226, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 80px 100px at 70% 60%, rgba(45, 122, 154, 0.25) 0%, transparent 65%),
        radial-gradient(ellipse 200px 150px at 50% 50%, rgba(26, 74, 107, 0.4) 0%, transparent 80%),
        linear-gradient(160deg, var(--midwater) 0%, var(--deep-ocean) 100%);
}

/* ---------- Scene 1: The Surface ---------- */
.scene-surface {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-surface-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.headline-display {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 96px;
    letter-spacing: -0.02em;
    line-height: 0.92;
    color: var(--paper-tone);
    text-transform: none;
}

.surface-subhead {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--seafoam);
}

.scroll-chevron {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: chevron-pulse 2.4s ease-in-out infinite;
    cursor: pointer;
}

@keyframes chevron-pulse {
    0%   { opacity: 0; }
    40%  { opacity: 0.6; }
    100% { opacity: 0; }
}

/* ---------- Scene 2: The Shore ---------- */
.scene-shore {
    background-color: var(--paper-tone);
    color: var(--deep-ocean);
    padding: 100px 80px 80px;
    overflow: hidden;
    position: relative;
}

.scene-shore .scene-watermark {
    color: var(--deep-ocean);
    opacity: 0.06;
    right: -20px;
    top: -60px;
}

.shore-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.shore-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-label {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--seafoam);
    display: block;
    margin-bottom: 4px;
}

.scene-shore .section-label {
    color: var(--surface-teal);
}

.body-excerpt {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.78;
    color: var(--deep-ocean);
}

.shore-right {
    position: relative;
}

.shore-image-wrap {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-left: 2px solid var(--surface-teal);
    overflow: hidden;
}

.shore-image-wrap .bokeh-image {
    height: 100%;
}

.pull-quote-wrap {
    max-width: 1200px;
    margin: 60px auto 0;
    text-align: center;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.divider-rule {
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--surface-teal);
}

.cedar-sprig {
    flex-shrink: 0;
}

.pull-quote {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 24px;
    line-height: 1.5;
    color: var(--deep-ocean);
    max-width: 680px;
    margin: 0 auto;
    border: none;
}

/* ---------- Scene 3: The Canopy ---------- */
.scene-canopy {
    height: 80vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.canopy-overlay {
    position: relative;
    z-index: 2;
    padding: 40px 80px 60px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.canopy-overlay.revealed {
    opacity: 1;
    transform: translateY(0);
}

.canopy-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.headline-canopy {
    font-size: 80px;
    color: var(--paper-tone);
}

/* ---------- Scene Watermarks ---------- */
.scene-watermark {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 500px;
    line-height: 1;
    color: var(--deep-ocean);
    opacity: 0.08;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    right: -40px;
    top: -80px;
    letter-spacing: -0.05em;
}

.scene-canopy .scene-watermark {
    color: var(--paper-tone);
    opacity: 0.06;
    right: -20px;
    bottom: 60px;
    top: auto;
    z-index: 1;
    font-size: 400px;
}

/* ---------- Scene 4: The Depth ---------- */
.scene-depth {
    background-color: var(--paper-tone);
    padding: 120px 40px 120px;
    position: relative;
    overflow: hidden;
}

.prose-column {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.prose-column .section-label {
    color: var(--surface-teal);
    margin-bottom: 12px;
}

.headline-section {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--deep-ocean);
    margin-bottom: 36px;
}

.body-prose {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.78;
    color: var(--abyssal);
    margin-bottom: 28px;
}

.body-prose em {
    font-style: italic;
}

.depth-ornament {
    position: absolute;
    left: calc(50% - 260px - 48px);
    top: 120px;
}

.depth-ornament-inline {
    display: flex;
    justify-content: center;
    margin: 8px 0 28px;
}

.depth-image-wrap {
    width: 100%;
    margin: 36px 0 36px;
}

.depth-image-wrap .bokeh-image {
    width: 100%;
    height: 280px;
    border-radius: 2px;
    display: block;
}

.image-caption {
    display: block;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--surface-teal);
    margin-top: 10px;
}

/* ---------- Scene 5: The Abyssal Close ---------- */
.scene-abyss {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
}

.scene-abyss.revealed {
    opacity: 1;
}

.abyss-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, var(--abyssal) 0%, transparent 60%);
}

.abyss-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 40px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.footer-wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 32px;
    letter-spacing: -0.02em;
    color: var(--paper-tone);
}

.footer-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.footer-links a {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--seafoam);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--paper-tone);
}

.footer-note {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 14px;
    color: var(--surface-teal);
    opacity: 0.7;
}

/* ---------- Scroll-Reveal Utility ---------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .headline-display {
        font-size: 64px;
    }

    .shore-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0;
    }

    .scene-shore {
        padding: 80px 32px 60px;
    }

    .headline-canopy {
        font-size: 56px;
    }

    .canopy-overlay {
        padding: 32px 32px 48px;
    }

    .depth-ornament {
        display: none;
    }

    .scene-depth {
        padding: 80px 24px 80px;
    }

    .nav-inner {
        padding: 14px 24px;
    }

    .nav-links {
        gap: 24px;
    }

    .scene-watermark {
        font-size: 280px;
    }
}

@media (max-width: 600px) {
    .headline-display {
        font-size: 48px;
    }

    .nav-links {
        display: none;
    }

    .scene-watermark {
        font-size: 180px;
    }

    .shore-image-wrap {
        aspect-ratio: 3 / 4;
    }
}
