/* ============================================
   nonri.xyz - Nordic Rationalism / Aurora Light
   ============================================ */
:root {
    --arctic-night: #1E1E1E;
    --deep-charcoal: #2C2C2C;
    --birch-parchment: #E8E0D4;
    --warm-stone: #A89B8C;
    --moss-green: #6B8F71;
    --forest-teal: #4A7B6B;
    --birch-bark: #8B7355;
    --amber-lichen: #C9A86C;
    --peat-brown: #5B4A3F;
    --aurora-white: #F5F0E8;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    background: var(--arctic-night);
    color: var(--birch-parchment);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    line-height: 1.85;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* ==============================
   GRAIN OVERLAY
   ============================== */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* ==============================
   ZONES
   ============================== */
.zone {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 45fr 55fr;
    position: relative;
    overflow: hidden;
}
.zone--parting {
    min-height: 120vh;
    grid-template-columns: 35fr 65fr;
}
.zone--convergence {
    min-height: 120vh;
    grid-template-columns: 1fr;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zone--stillness {
    min-height: 80vh;
    grid-template-columns: 1fr;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--arctic-night);
}

/* ==============================
   PANELS
   ============================== */
.panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem);
    position: relative;
    overflow: hidden;
}
.panel--structure {
    background: var(--deep-charcoal);
    z-index: 2;
}
.panel--atmosphere {
    background: var(--arctic-night);
    z-index: 1;
}
.panel--atmosphere-inverted {
    background: var(--deep-charcoal);
    position: relative;
    overflow: hidden;
}
.panel--structure-inverted {
    background: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem);
}

/* ==============================
   DIVIDER LINE
   ============================== */
.divider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 45%;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--birch-bark) 20%, var(--birch-bark) 80%, transparent 100%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.zone--parting .divider-line {
    left: 35%;
}
.zone.active .divider-line {
    opacity: 0.5;
}
.zone--inversion .divider-line,
.zone--convergence .divider-line,
.zone--stillness .divider-line {
    display: none;
}

/* ==============================
   HERO TITLE
   ============================== */
.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 6vw, 5.5rem);
    letter-spacing: 0.04em;
    color: var(--birch-parchment);
    font-variation-settings: 'wght' 100;
    transition: font-variation-settings 2.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.hero-title.weighted {
    font-variation-settings: 'wght' 700;
}

/* ==============================
   TEXT STACK (Zone 2)
   ============================== */
.text-stack {
    max-width: 380px;
}
.statement {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    line-height: 1.85;
    color: var(--birch-parchment);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.statement.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================
   READING COLUMN (Zone 3, 4)
   ============================== */
.reading-column {
    max-width: 460px;
}
.zone-heading {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--amber-lichen);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.zone-heading.visible {
    opacity: 1;
    transform: translateY(0);
}
.zone-heading--light {
    color: var(--aurora-white);
}
.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    line-height: 1.85;
    color: var(--birch-parchment);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.body-text.visible {
    opacity: 1;
    transform: translateY(0);
}
.body-text--light {
    color: var(--aurora-white);
}

/* ==============================
   AURORA BANDS (Zone 4)
   ============================== */
.aurora-bands {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.aurora-band {
    position: absolute;
    top: -20vh;
    opacity: 0.15;
    animation: auroraDrift linear infinite;
}
@keyframes auroraDrift {
    0% { transform: translateY(0); }
    100% { transform: translateY(130vh); }
}

/* ==============================
   ZONE 5: CONVERGENCE
   ============================== */
.convergence-center {
    position: relative;
    text-align: center;
    padding: clamp(2rem, 5vw, 4rem);
}
.convergence-statement {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--birch-parchment);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    position: relative;
    z-index: 2;
}
.convergence-statement.visible {
    opacity: 1;
    transform: translateY(0);
}
.micro-bokeh-field {
    position: absolute;
    inset: -100px;
    z-index: 1;
    pointer-events: none;
}

/* ==============================
   ZONE 6: STILLNESS
   ============================== */
.stillness-word {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--warm-stone);
    opacity: 0;
    transition: opacity 1.5s ease;
}
.stillness-word.visible {
    opacity: 1;
}

/* ==============================
   BOKEH ELEMENTS
   ============================== */
.bokeh {
    position: absolute;
    border-radius: 50%;
    will-change: transform, filter;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* ==============================
   MACRO BOKEH (Zone 3)
   ============================== */
.macro-bokeh {
    position: absolute;
    border-radius: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 60% 40%, var(--amber-lichen), transparent 70%);
    opacity: 0.06;
    filter: blur(150px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: macroPulse 8s ease-in-out infinite;
    will-change: transform;
}
@keyframes macroPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.03); }
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
    .zone {
        grid-template-columns: 1fr;
    }
    .zone--parting {
        grid-template-columns: 1fr;
    }
    .zone--inversion {
        grid-template-columns: 1fr;
    }
    .panel--atmosphere,
    .panel--atmosphere-inverted {
        position: absolute;
        inset: 0;
        z-index: 0;
    }
    .panel--structure,
    .panel--structure-inverted {
        position: relative;
        z-index: 2;
        background: rgba(44, 44, 44, 0.85);
    }
    .panel--structure-inverted {
        background: rgba(26, 26, 26, 0.85);
    }
    .divider-line {
        display: none;
    }
    .convergence-statement {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
}
