/* ============================================
   bable.pro - Design System
   Vertical Timeline / Luxury-Premium / Calm-Serene
   ============================================ */

/* Custom Properties */
:root {
    --color-warm: #C4A97D;
    --color-cool: #4A6670;
    --color-bg-light: #F7F3ED;
    --color-bg-dark: #1E1E24;
    --color-bg-warm-end: #EDE8E0;
    --color-text-primary: #3A3A3C;
    --color-text-secondary: #B8A09A;
    --color-accent-glow: #E8D6B0;
    --color-contrast: #0F1419;
    --color-soft-graphite: #4A4A4A;
    --color-jade: #8BA89A;
    --color-mist: #D1DFE4;
    --color-teal-mid: #6B8F9E;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
    --font-micro: 'Space Grotesk', 'Courier New', monospace;

    --elastic-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
    --axis-progress: 0;
    --scroll-y: 0;
    --page-height: 1;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: var(--color-text-primary);
    background: linear-gradient(
        to bottom,
        var(--color-bg-light) 0%,
        var(--color-bg-warm-end) 70%,
        var(--color-bg-dark) 90%,
        var(--color-bg-dark) 100%
    );
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   Watermark
   ============================================ */
.watermark {
    position: fixed;
    top: 2rem;
    left: 2rem;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.03em;
    color: var(--color-text-primary);
    opacity: 0.4;
    z-index: 1000;
    pointer-events: none;
}

/* ============================================
   Timeline Axis
   ============================================ */
.timeline-axis {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--color-warm) 0%,
        var(--color-jade) 50%,
        var(--color-cool) 100%
    );
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.timeline-axis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--axis-lit-height, 0%);
    background: linear-gradient(
        to bottom,
        var(--color-warm) 0%,
        var(--color-jade) 50%,
        var(--color-cool) 100%
    );
    opacity: 1;
}

@keyframes axisPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ============================================
   Ghost Title (Hero)
   ============================================ */
.section-threshold {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ghost-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(15vw, 20vw, 25vw);
    letter-spacing: 0.03em;
    line-height: 1.15;
    color: var(--color-text-primary);
    opacity: 0.08;
    text-align: center;
    position: relative;
    z-index: 2;
    user-select: none;
}

/* ============================================
   Gradient Mesh Backgrounds
   ============================================ */
.gradient-mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.mesh-circle {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

/* Warm mesh circles for threshold */
.mc-1 {
    width: 60vw;
    height: 60vw;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(196, 169, 125, 0.35) 0%, rgba(232, 214, 176, 0.15) 50%, transparent 70%);
    animation: meshDrift1 16s ease-in-out infinite;
}
.mc-2 {
    width: 45vw;
    height: 45vw;
    top: 30%;
    right: -5%;
    background: radial-gradient(circle, rgba(232, 214, 176, 0.3) 0%, rgba(247, 243, 237, 0.1) 60%, transparent 80%);
    animation: meshDrift2 20s ease-in-out infinite;
}
.mc-3 {
    width: 35vw;
    height: 35vw;
    bottom: 10%;
    left: 20%;
    background: radial-gradient(circle, rgba(196, 169, 125, 0.2) 0%, transparent 70%);
    animation: meshDrift3 14s ease-in-out infinite;
}
.mc-4 {
    width: 80vw;
    height: 80vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(247, 243, 237, 0.4) 0%, rgba(232, 214, 176, 0.1) 40%, transparent 70%);
    animation: meshDrift4 18s ease-in-out infinite;
}

@keyframes meshDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(3vw, 2vh) scale(1.05); }
    66% { transform: translate(-2vw, 4vh) scale(0.95); }
}
@keyframes meshDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-4vw, 3vh) scale(1.08); }
}
@keyframes meshDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40% { transform: translate(2vw, -3vh) scale(1.1); }
    70% { transform: translate(-1vw, 2vh) scale(0.98); }
}
@keyframes meshDrift4 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-48%, -52%) scale(1.03); }
}

/* ============================================
   Sections
   ============================================ */
.section {
    position: relative;
}

.section-emergence {
    padding: 10vh 0 20vh;
}

.section-deepening {
    padding: 10vh 0 20vh;
}

.section-dusk {
    padding: 10vh 0 20vh;
}

.section-resolution {
    background: var(--color-bg-dark);
    padding: 15vh 0 30vh;
    position: relative;
}

/* ============================================
   Timeline Nodes
   ============================================ */
.timeline-node {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 30vh;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s var(--elastic-ease);
}

.timeline-node.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Left nodes */
.node-left {
    flex-direction: row-reverse;
    padding-right: calc(50% + 2rem);
    padding-left: 3vw;
}

.node-left .node-connector {
    position: absolute;
    right: calc(50% - 4px);
    top: 2rem;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.node-left .connector-line {
    width: 2rem;
    height: 0.5px;
    background: var(--color-warm);
    opacity: 0.15;
}

/* Right nodes */
.node-right {
    padding-left: calc(50% + 2rem);
    padding-right: 3vw;
}

.node-right .node-connector {
    position: absolute;
    left: calc(50% - 4px);
    top: 2rem;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

.node-right .connector-line {
    width: 2rem;
    height: 0.5px;
    background: var(--color-warm);
    opacity: 0.15;
}

/* Connector dot */
.connector-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--color-warm);
    background: transparent;
    flex-shrink: 0;
    transition: background-color 0.6s ease, box-shadow 0.6s ease, transform 3s ease-in-out;
    animation: markerPulse 3s ease-in-out infinite;
}

.timeline-node.is-centered .connector-dot {
    background: var(--color-warm);
    box-shadow: 0 0 20px rgba(196, 169, 125, 0.3);
}

@keyframes markerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ============================================
   Node Content Types
   ============================================ */

/* Frosted Glass */
.frosted-glass {
    background: rgba(247, 243, 237, 0.7);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid rgba(196, 169, 125, 0.15);
    border-radius: 3px;
}

/* Text Node */
.text-node {
    padding: clamp(2rem, 5vw, 5rem);
    width: 100%;
}

.text-node .node-label {
    font-family: var(--font-micro);
    font-weight: 500;
    font-size: clamp(0.65rem, 0.8vw, 0.75rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 1.5rem;
}

.text-node h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    letter-spacing: 0.03em;
    line-height: 1.15;
    color: var(--color-contrast);
    margin-bottom: 1.5rem;
}

.text-node .body-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: var(--color-soft-graphite);
    max-width: 50ch;
}

/* Image Node */
.image-node {
    width: 100%;
    height: 45vh;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.large-image-node {
    height: 55vh;
}

.image-node .gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Warm mesh composition */
.mesh-warm-composition .mc-5 {
    width: 70%;
    height: 70%;
    top: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(196, 169, 125, 0.5) 0%, rgba(232, 214, 176, 0.2) 50%, transparent 70%);
    animation: meshDrift1 16s ease-in-out infinite;
}
.mesh-warm-composition .mc-6 {
    width: 50%;
    height: 50%;
    top: 40%;
    right: -10%;
    background: radial-gradient(circle, rgba(232, 214, 176, 0.4) 0%, rgba(247, 243, 237, 0.15) 60%, transparent 80%);
    animation: meshDrift2 14s ease-in-out infinite;
}
.mesh-warm-composition .mc-7 {
    width: 60%;
    height: 60%;
    bottom: -20%;
    left: 30%;
    background: radial-gradient(circle, rgba(196, 169, 125, 0.3) 0%, transparent 70%);
    animation: meshDrift3 18s ease-in-out infinite;
}
.mesh-warm-composition .mc-8 {
    width: 40%;
    height: 40%;
    top: 20%;
    left: 50%;
    background: radial-gradient(circle, rgba(247, 243, 237, 0.5) 0%, transparent 60%);
    animation: meshDrift4 12s ease-in-out infinite;
}
.mesh-warm-composition .mc-9 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(232, 214, 176, 0.15) 0%, transparent 50%);
    animation: meshDrift1 22s ease-in-out infinite reverse;
}

/* Cool mesh composition */
.mesh-cool-composition .mc-10 {
    width: 65%;
    height: 65%;
    top: -5%;
    right: -10%;
    background: radial-gradient(circle, rgba(74, 102, 112, 0.4) 0%, rgba(107, 143, 158, 0.15) 50%, transparent 70%);
    animation: meshDrift2 18s ease-in-out infinite;
}
.mesh-cool-composition .mc-11 {
    width: 55%;
    height: 55%;
    bottom: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(209, 223, 228, 0.4) 0%, transparent 65%);
    animation: meshDrift1 15s ease-in-out infinite;
}
.mesh-cool-composition .mc-12 {
    width: 45%;
    height: 45%;
    top: 30%;
    left: 40%;
    background: radial-gradient(circle, rgba(74, 102, 112, 0.25) 0%, transparent 70%);
    animation: meshDrift3 20s ease-in-out infinite;
}
.mesh-cool-composition .mc-13 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    background: radial-gradient(circle, rgba(107, 143, 158, 0.2) 0%, transparent 55%);
    animation: meshDrift4 16s ease-in-out infinite;
}
.mesh-cool-composition .mc-14 {
    width: 35%;
    height: 35%;
    top: 60%;
    right: 10%;
    background: radial-gradient(circle, rgba(209, 223, 228, 0.3) 0%, transparent 60%);
    animation: meshDrift2 13s ease-in-out infinite reverse;
}

/* Transition mesh composition */
.mesh-transition-composition .mc-15 {
    width: 60%;
    height: 60%;
    top: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(196, 169, 125, 0.3) 0%, rgba(139, 168, 154, 0.15) 50%, transparent 70%);
    animation: meshDrift1 17s ease-in-out infinite;
}
.mesh-transition-composition .mc-16 {
    width: 50%;
    height: 50%;
    top: 35%;
    right: -8%;
    background: radial-gradient(circle, rgba(74, 102, 112, 0.3) 0%, rgba(139, 168, 154, 0.1) 55%, transparent 75%);
    animation: meshDrift2 19s ease-in-out infinite;
}
.mesh-transition-composition .mc-17 {
    width: 70%;
    height: 70%;
    bottom: -15%;
    left: 20%;
    background: radial-gradient(circle, rgba(139, 168, 154, 0.35) 0%, transparent 65%);
    animation: meshDrift3 15s ease-in-out infinite;
}
.mesh-transition-composition .mc-18 {
    width: 40%;
    height: 40%;
    top: 10%;
    left: 55%;
    background: radial-gradient(circle, rgba(232, 214, 176, 0.25) 0%, transparent 60%);
    animation: meshDrift4 21s ease-in-out infinite;
}
.mesh-transition-composition .mc-19 {
    width: 55%;
    height: 55%;
    top: 50%;
    left: 5%;
    background: radial-gradient(circle, rgba(74, 102, 112, 0.15) 0%, transparent 50%);
    animation: meshDrift1 14s ease-in-out infinite reverse;
}
.mesh-transition-composition .mc-20 {
    width: 45%;
    height: 45%;
    top: 5%;
    right: 15%;
    background: radial-gradient(circle, rgba(196, 169, 125, 0.2) 0%, transparent 55%);
    animation: meshDrift2 16s ease-in-out infinite reverse;
}

/* Dusk mesh composition */
.mesh-dusk-composition .mc-21 {
    width: 70%;
    height: 70%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(74, 102, 112, 0.5) 0%, rgba(107, 143, 158, 0.2) 45%, transparent 70%);
    animation: meshDrift2 20s ease-in-out infinite;
}
.mesh-dusk-composition .mc-22 {
    width: 55%;
    height: 55%;
    top: 40%;
    right: -5%;
    background: radial-gradient(circle, rgba(139, 168, 154, 0.3) 0%, transparent 65%);
    animation: meshDrift1 16s ease-in-out infinite;
}
.mesh-dusk-composition .mc-23 {
    width: 60%;
    height: 60%;
    bottom: -15%;
    left: 25%;
    background: radial-gradient(circle, rgba(74, 102, 112, 0.35) 0%, rgba(209, 223, 228, 0.1) 50%, transparent 75%);
    animation: meshDrift3 18s ease-in-out infinite;
}
.mesh-dusk-composition .mc-24 {
    width: 40%;
    height: 40%;
    top: 15%;
    left: 50%;
    background: radial-gradient(circle, rgba(196, 169, 125, 0.15) 0%, transparent 55%);
    animation: meshDrift4 22s ease-in-out infinite;
}
.mesh-dusk-composition .mc-25 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(107, 143, 158, 0.15) 0%, transparent 50%);
    animation: meshDrift2 25s ease-in-out infinite reverse;
}

/* Kinetic Node */
.kinetic-node {
    padding: clamp(2rem, 5vw, 5rem);
    width: 100%;
}

.kinetic-node h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    letter-spacing: 0.03em;
    line-height: 1.15;
    color: var(--color-contrast);
}

/* Dusk-specific node styles */
.dusk-node {
    background: rgba(237, 232, 224, 0.7);
    border-color: rgba(74, 102, 112, 0.15);
}

.dusk-node h2 {
    color: var(--color-cool);
}

/* Dark node styles (resolution section) */
.dark-node {
    background: rgba(30, 30, 36, 0.8);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-color: rgba(74, 102, 112, 0.25);
}

.dark-node .node-label {
    color: var(--color-teal-mid);
}

.dark-node h2 {
    color: var(--color-mist);
}

.dark-node .body-text,
.dark-text {
    color: #E8E2D8;
}

/* Resolution section node colors */
.section-resolution .connector-dot {
    border-color: var(--color-cool);
}

.section-resolution .connector-line {
    background: var(--color-cool);
}

.section-resolution .timeline-node.is-centered .connector-dot {
    background: var(--color-cool);
    box-shadow: 0 0 20px rgba(74, 102, 112, 0.3);
}

.section-resolution .kinetic-node h2 {
    color: var(--color-mist);
}

/* ============================================
   Timeline Terminus
   ============================================ */
.timeline-terminus {
    display: flex;
    justify-content: center;
    padding: 10vh 0;
}

.terminus-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-cool);
    box-shadow: 0 0 30px rgba(74, 102, 112, 0.4);
}

/* Final kinetic node */
.final-kinetic-node {
    text-align: center;
    padding: 5vh 5vw 10vh;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s var(--elastic-ease);
}

.final-kinetic-node.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.final-kinetic-node h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    letter-spacing: 0.03em;
    line-height: 1.15;
    color: var(--color-accent-glow);
}

/* Final dot */
.final-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-warm);
    margin: 10vh auto;
    animation: finalDotPulse 4s ease-in-out infinite;
}

@keyframes finalDotPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); box-shadow: 0 0 10px rgba(196, 169, 125, 0.2); }
    50% { opacity: 1; transform: scale(1.5); box-shadow: 0 0 30px rgba(196, 169, 125, 0.5); }
}

/* ============================================
   Floating Elements
   ============================================ */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Luminous Dots */
.luminous-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--color-warm);
    will-change: transform;
}

.dot-1 { width: 5px; height: 5px; opacity: 0.25; top: 15%; left: 10%; animation: dotDrift1 32s linear infinite; z-index: 1; }
.dot-2 { width: 7px; height: 7px; opacity: 0.2; top: 35%; left: 80%; animation: dotDrift2 28s linear infinite; z-index: 2; }
.dot-3 { width: 4px; height: 4px; opacity: 0.35; top: 55%; left: 25%; animation: dotDrift3 35s linear infinite; z-index: 1; }
.dot-4 { width: 6px; height: 6px; opacity: 0.3; top: 70%; left: 65%; animation: dotDrift4 30s linear infinite; z-index: 3; }
.dot-5 { width: 5px; height: 5px; opacity: 0.2; top: 20%; left: 50%; animation: dotDrift5 38s linear infinite; z-index: 2; }
.dot-6 { width: 8px; height: 8px; opacity: 0.25; top: 80%; left: 15%; animation: dotDrift6 26s linear infinite; z-index: 1; }
.dot-7 { width: 4px; height: 4px; opacity: 0.4; top: 45%; left: 90%; animation: dotDrift7 34s linear infinite; z-index: 2; }
.dot-8 { width: 6px; height: 6px; opacity: 0.2; top: 10%; left: 70%; animation: dotDrift8 40s linear infinite; z-index: 1; }
.dot-9 { width: 5px; height: 5px; opacity: 0.3; top: 60%; left: 40%; animation: dotDrift1 29s linear infinite reverse; z-index: 3; }
.dot-10 { width: 7px; height: 7px; opacity: 0.25; top: 90%; left: 55%; animation: dotDrift3 36s linear infinite reverse; z-index: 2; }

@keyframes dotDrift1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(15vw, -10vh); }
    50% { transform: translate(5vw, -25vh); }
    75% { transform: translate(-10vw, -15vh); }
    100% { transform: translate(0, 0); }
}
@keyframes dotDrift2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-12vw, 8vh); }
    50% { transform: translate(-8vw, -15vh); }
    75% { transform: translate(5vw, -5vh); }
    100% { transform: translate(0, 0); }
}
@keyframes dotDrift3 {
    0% { transform: translate(0, 0); }
    33% { transform: translate(10vw, -18vh); }
    66% { transform: translate(-5vw, 10vh); }
    100% { transform: translate(0, 0); }
}
@keyframes dotDrift4 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-8vw, -12vh); }
    50% { transform: translate(12vw, -5vh); }
    75% { transform: translate(3vw, 8vh); }
    100% { transform: translate(0, 0); }
}
@keyframes dotDrift5 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-15vw, 12vh); }
    100% { transform: translate(0, 0); }
}
@keyframes dotDrift6 {
    0% { transform: translate(0, 0); }
    33% { transform: translate(18vw, -8vh); }
    66% { transform: translate(5vw, 15vh); }
    100% { transform: translate(0, 0); }
}
@keyframes dotDrift7 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-20vw, -5vh); }
    50% { transform: translate(-10vw, 10vh); }
    75% { transform: translate(-15vw, -8vh); }
    100% { transform: translate(0, 0); }
}
@keyframes dotDrift8 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(10vw, 20vh); }
    100% { transform: translate(0, 0); }
}

/* Hairline Fragments */
.hairline-fragment {
    position: absolute;
    height: 0.5px;
    background: var(--color-cool);
    opacity: 0.15;
    will-change: transform;
}

.frag-1 { width: 60px; top: 25%; left: 15%; animation: fragFloat1 45s linear infinite; }
.frag-2 { width: 45px; top: 40%; left: 75%; animation: fragFloat2 50s linear infinite; }
.frag-3 { width: 70px; top: 60%; left: 30%; animation: fragFloat3 40s linear infinite; }
.frag-4 { width: 55px; top: 15%; left: 60%; animation: fragFloat4 55s linear infinite; }
.frag-5 { width: 40px; top: 75%; left: 45%; animation: fragFloat1 48s linear infinite reverse; }
.frag-6 { width: 65px; top: 85%; left: 20%; animation: fragFloat3 52s linear infinite reverse; }

@keyframes fragFloat1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10vw, -8vh) rotate(22.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes fragFloat2 {
    0% { transform: translate(0, 0) rotate(5deg); }
    50% { transform: translate(-8vw, 5vh) rotate(-17.5deg); }
    100% { transform: translate(0, 0) rotate(5deg); }
}
@keyframes fragFloat3 {
    0% { transform: translate(0, 0) rotate(-3deg); }
    50% { transform: translate(5vw, 10vh) rotate(12deg); }
    100% { transform: translate(0, 0) rotate(-3deg); }
}
@keyframes fragFloat4 {
    0% { transform: translate(0, 0) rotate(8deg); }
    50% { transform: translate(-12vw, -6vh) rotate(-15deg); }
    100% { transform: translate(0, 0) rotate(8deg); }
}

/* Typographic Ghosts */
.typographic-ghost {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 300;
    color: var(--color-text-primary);
    pointer-events: none;
    user-select: none;
    will-change: transform;
}

.ghost-b { font-size: 300px; opacity: 0.04; top: 10%; left: 5%; animation: ghostDrift1 55s linear infinite; }
.ghost-a { font-size: 250px; opacity: 0.03; top: 30%; right: 8%; animation: ghostDrift2 60s linear infinite; }
.ghost-b2 { font-size: 350px; opacity: 0.035; top: 55%; left: 15%; animation: ghostDrift3 65s linear infinite; }
.ghost-l { font-size: 280px; opacity: 0.04; top: 70%; right: 12%; animation: ghostDrift1 58s linear infinite reverse; }
.ghost-e { font-size: 320px; opacity: 0.03; top: 85%; left: 35%; animation: ghostDrift2 62s linear infinite reverse; }

@keyframes ghostDrift1 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(3vw, -5vh); }
    100% { transform: translate(0, 0); }
}
@keyframes ghostDrift2 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-4vw, 3vh); }
    100% { transform: translate(0, 0); }
}
@keyframes ghostDrift3 {
    0% { transform: translate(0, 0); }
    33% { transform: translate(2vw, -4vh); }
    66% { transform: translate(-3vw, 2vh); }
    100% { transform: translate(0, 0); }
}

/* ============================================
   Kinetic Text Character Animation
   ============================================ */
.kinetic-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    transition-property: opacity, transform;
    transition-timing-function: var(--elastic-ease);
}

.kinetic-text .char.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.kinetic-text .char-space {
    display: inline-block;
    width: 0.3em;
}

/* Exit state */
.kinetic-text.is-exiting .char {
    opacity: 0;
    transition-duration: 200ms;
    transition-timing-function: ease-out;
    transition-delay: 0ms;
    transform: translateY(0);
}

/* ============================================
   Parallax on image nodes
   ============================================ */
.image-node .gradient-mesh {
    transition: transform 0.1s linear;
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .kinetic-text .char {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .luminous-dot,
    .hairline-fragment,
    .typographic-ghost,
    .mesh-circle {
        animation: none;
    }

    .connector-dot {
        animation: none;
    }

    .final-dot {
        animation: none;
        opacity: 0.6;
    }

    .timeline-node {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .final-kinetic-node {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .node-left,
    .node-right {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .node-left {
        flex-direction: column;
        padding-right: 5vw;
    }

    .node-right {
        padding-left: 5vw;
    }

    .node-left .node-connector,
    .node-right .node-connector {
        display: none;
    }

    .timeline-axis {
        left: 5vw;
    }

    .ghost-title {
        font-size: clamp(12vw, 18vw, 22vw);
    }

    .timeline-node {
        margin-bottom: 20vh;
    }

    .text-node h2,
    .kinetic-node h2 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .typographic-ghost {
        display: none;
    }
}
