/* ===================================================
   sister.quest — Dark Neon Void CSS
   Palette:
     Background void:      #080C14
     Secondary surface:    #0E1520
     Primary accent (violet): #7B2FFF
     Secondary accent (teal): #00E5CC
     Text primary:         #E8F0FF
     Text secondary:       #4AABB8
     Glow diffuse:         #1A0A3D
     Whisper line:         #1C2A3A
   Fonts: Roboto Slab (300, 700), Space Mono (400, 700)
=================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #080C14;
    color: #E8F0FF;
    font-family: 'Space Mono', monospace;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==========================================
   CHAMBER BASE
========================================== */

.chamber {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chamber-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   BLOB LAYER
========================================== */

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

.blob {
    position: absolute;
    background: radial-gradient(ellipse at 40% 40%, #7B2FFF 0%, #00E5CC 60%, transparent 80%);
    filter: blur(40px);
    mix-blend-mode: screen;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
}

/* --- Chamber 1 Blobs --- */
.blob-a1 {
    width: 520px;
    height: 480px;
    top: -10%;
    left: -12%;
    opacity: 0.06;
    animation: morph-a 17s ease-in-out infinite alternate;
}

.blob-a2 {
    width: 380px;
    height: 420px;
    bottom: -8%;
    right: -8%;
    opacity: 0.05;
    animation: morph-b 23s ease-in-out infinite alternate;
}

.blob-a3 {
    width: 280px;
    height: 300px;
    top: 40%;
    right: 20%;
    opacity: 0.04;
    animation: morph-c 31s ease-in-out infinite alternate;
}

/* --- Chamber 2 Blobs --- */
.blob-b1 {
    width: 600px;
    height: 560px;
    top: -20%;
    right: -18%;
    opacity: 0.12;
    background: radial-gradient(ellipse at 40% 40%, #7B2FFF 0%, #00E5CC 50%, transparent 75%);
    animation: morph-b 23s ease-in-out infinite alternate;
}

.blob-b2 {
    width: 480px;
    height: 520px;
    bottom: -15%;
    left: -14%;
    opacity: 0.10;
    background: radial-gradient(ellipse at 60% 40%, #7B2FFF 0%, #1A0A3D 60%, transparent 80%);
    animation: morph-a 17s ease-in-out infinite alternate-reverse;
}

/* --- Chamber 3 Blobs --- */
.blob-c1 {
    width: 70vw;
    height: 60vh;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.06;
    background: radial-gradient(ellipse at 45% 45%, #00E5CC 0%, #4AABB8 40%, transparent 70%);
    animation: morph-c 31s ease-in-out infinite alternate;
}

/* --- Chamber 4 Blobs --- */
.blob-d1 {
    width: 220px;
    height: 200px;
    top: 8%;
    right: 10%;
    opacity: 0.08;
    background: radial-gradient(ellipse at 50% 50%, #7B2FFF 0%, #1A0A3D 60%, transparent 80%);
    animation: morph-a 31s ease-in-out infinite alternate;
}

/* --- Chamber 5 Blobs --- */
.blob-e1 {
    width: 440px;
    height: 400px;
    top: -5%;
    left: -10%;
    opacity: 0.07;
    animation: morph-b 23s ease-in-out infinite alternate;
}

.blob-e2 {
    width: 360px;
    height: 340px;
    bottom: 5%;
    right: -8%;
    opacity: 0.09;
    background: radial-gradient(ellipse at 40% 60%, #00E5CC 0%, #7B2FFF 50%, transparent 75%);
    animation: morph-a 17s ease-in-out infinite alternate-reverse;
}

.blob-e3 {
    width: 280px;
    height: 260px;
    top: 50%;
    left: 45%;
    opacity: 0.05;
    animation: morph-c 31s ease-in-out infinite alternate;
}

/* Blob Keyframe Morphing */
@keyframes morph-a {
    0%   { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; }
    20%  { border-radius: 44% 56% 38% 62% / 64% 31% 69% 36%; }
    40%  { border-radius: 57% 43% 71% 29% / 42% 58% 42% 58%; }
    60%  { border-radius: 38% 62% 47% 53% / 51% 39% 61% 49%; }
    80%  { border-radius: 71% 29% 55% 45% / 68% 47% 53% 32%; }
    100% { border-radius: 48% 52% 63% 37% / 44% 66% 34% 56%; }
}

@keyframes morph-b {
    0%   { border-radius: 44% 56% 38% 62% / 64% 31% 69% 36%; }
    25%  { border-radius: 63% 37% 54% 46% / 44% 66% 34% 56%; }
    50%  { border-radius: 38% 62% 47% 53% / 51% 39% 61% 49%; }
    75%  { border-radius: 71% 29% 55% 45% / 68% 47% 53% 32%; }
    100% { border-radius: 57% 43% 71% 29% / 42% 58% 42% 58%; }
}

@keyframes morph-c {
    0%   { border-radius: 71% 29% 55% 45% / 68% 47% 53% 32%; }
    33%  { border-radius: 48% 52% 63% 37% / 44% 66% 34% 56%; }
    66%  { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; }
    100% { border-radius: 38% 62% 47% 53% / 51% 39% 61% 49%; }
}

/* ==========================================
   CHAMBER 1: THE APPROACH
========================================== */

.approach-content {
    text-align: center;
    max-width: 720px;
}

.wordmark {
    font-family: 'Roboto Slab', serif;
    font-weight: 300;
    font-size: clamp(48px, 8vw, 88px);
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: #E8F0FF;
    display: block;
    white-space: nowrap;
}

.wm-char {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wm-char.materialized {
    opacity: 1;
    filter: blur(0);
}

.wordmark-underline {
    display: block;
    height: 1px;
    background: linear-gradient(90deg, #7B2FFF, #00E5CC);
    transform: scaleX(0);
    transform-origin: left;
    margin: 16px auto 0;
    width: 100%;
    opacity: 0;
    transition: transform 2.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.1s ease;
}

.wordmark-underline.drawn {
    transform: scaleX(1);
    opacity: 1;
}

/* ==========================================
   DRAW-LINE PATTERN (underline-draw)
========================================== */

.draw-line {
    position: relative;
}

.draw-line::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #7B2FFF, #00E5CC);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.draw-line.line-drawn::after {
    transform: scaleX(1);
}

/* Hover draw for signal lines */
.signal-line.draw-line:hover::after {
    transform: scaleX(1);
}

/* ==========================================
   SECTION ENTRY ANIMATION BASE
========================================== */

.chamber-content,
.telemetry-block,
.haiku-block {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.chamber-content.entered,
.telemetry-block.entered,
.haiku-block.entered {
    opacity: 1;
    transform: translateY(0);
}

/* Override: approach chamber shows content via JS wordmark animation */
.approach-content {
    opacity: 1;
    transform: none;
}

/* ==========================================
   CHAMBER 2: THE SIGNAL CHAMBER
========================================== */

.signal-content {
    text-align: center;
}

.signal-text-block {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.signal-line {
    font-family: 'Roboto Slab', serif;
    font-weight: 300;
    font-size: clamp(18px, 2.5vw, 26px);
    line-height: 1.6;
    color: #E8F0FF;
    letter-spacing: -0.01em;
    cursor: default;
}

.signal-final {
    font-weight: 700;
    font-size: clamp(22px, 3vw, 32px);
    color: #E8F0FF;
    letter-spacing: -0.02em;
    margin-top: 16px;
}

/* ==========================================
   CHAMBER 3: THE DEEP SCAN
========================================== */

.deepscan-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    padding: 0;
}

.telemetry-block {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 1px solid rgba(0, 229, 204, 0.3);
    padding-left: 16px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: #4AABB8;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.telemetry-block span {
    display: block;
    opacity: 0.7;
}

.tele-1 {
    top: 22%;
    left: 8%;
}

.tele-2 {
    top: 55%;
    right: 12%;
}

.tele-3 {
    top: 38%;
    left: 62%;
}

.tele-4 {
    top: 70%;
    right: 28%;
}

/* ==========================================
   CHAMBER 4: THE STILLNESS FIELD
========================================== */

.stillness-content {
    text-align: center;
    padding-top: 120px;
}

.haiku-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.haiku-line {
    font-family: 'Roboto Slab', serif;
    font-weight: 300;
    font-size: clamp(24px, 3.5vw, 40px);
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: #E8F0FF;
}

/* ==========================================
   CHAMBER 5: THE TRANSMISSION END
========================================== */

.end-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.end-wordmark {
    font-family: 'Roboto Slab', serif;
    font-weight: 300;
    font-size: clamp(22px, 4vw, 40px);
    letter-spacing: -0.02em;
    color: #E8F0FF;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: 4px;
}

.end-wordmark.entered {
    opacity: 1;
    transform: translateY(0);
}

.end-meta {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.end-meta.entered {
    opacity: 1;
    transform: translateY(0);
}

.meta-text {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    color: #4AABB8;
    opacity: 0.4;
    letter-spacing: 0.04em;
}

/* ==========================================
   SECTION DIVIDERS (whisper lines)
========================================== */

.chamber + .chamber {
    border-top: 1px solid #1C2A3A;
}

/* ==========================================
   SCROLLBAR STYLING
========================================== */

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #080C14;
}

::-webkit-scrollbar-thumb {
    background: #1C2A3A;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4AABB8;
}

/* ==========================================
   SELECTION
========================================== */

::selection {
    background: rgba(123, 47, 255, 0.3);
    color: #E8F0FF;
}
