/* ═══════════════════════════════════════════════════════════════════════════
   NEXUS PHANTOM VEIL - Brothers in Code
   ═══════════════════════════════════════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}
body { 
    width: 100vw; 
    min-height: 100vh; 
    overflow-x: hidden; 
    background: #ffffff; 
}

#layer-1 { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
#layer-1 canvas { display: block; width: 100%; height: 100%; }

/* SILICON Text Mobile — nur auf Phone Portrait sichtbar */
.silicon-text-mobile { display: none; }

.phantom-hero { 
    position: relative; 
    width: 100%; 
    height: 100vh; 
    overflow: hidden;
    scroll-snap-align: start;
}
.phantom-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
#layer-2 { z-index: 2; } #layer-3 { z-index: 3; } #layer-4 { z-index: 4; } #layer-5 { z-index: 5; }
#layer-2 canvas, #layer-3 canvas, #layer-4 canvas, #layer-5 canvas { display: block; width: 100%; height: 100%; }
#layer-6, #layer-7, #layer-8, #layer-9, #layer-10 { display: none; }

/* Nav */
.phantom-nav { position: fixed; top: 0; left: 0; width: 100%; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; background: rgba(255,255,255,0.01); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); box-shadow: 0 1px 8px rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.03); z-index: 1000; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: system-ui, sans-serif; font-size: 18px; font-weight: 600; color: #000; letter-spacing: 1.5px; }
.nav-logo { width: 36px; height: 36px; }
.sn-spine { fill: none; stroke: #000; stroke-width: 1.2; stroke-linecap: round; }
.sn-node-main { fill: #000; } .sn-node-sat { fill: rgba(0,0,0,0.5); } .sn-link { stroke: rgba(0,0,0,0.25); stroke-width: 0.6; }
.nav-links { display: flex; list-style: none; gap: 32px; margin: 0; padding: 0; }
.nav-links a { font-family: system-ui, sans-serif; font-size: 14px; font-weight: 500; color: rgba(0,0,0,0.65); text-decoration: none; letter-spacing: 0.5px; transition: color 0.3s; }
.nav-links a:hover { color: #000; }
.nav-btn { font-family: system-ui, sans-serif; font-size: 13px; font-weight: 600; color: #fff; background: rgba(0,0,0,0.8); padding: 10px 24px; border-radius: 8px; text-decoration: none; letter-spacing: 0.5px; transition: background 0.3s; }
.nav-btn:hover { background: #000; }
.nav-cta > a { margin-right: 50px; }
.nav-cta-btn { 
    color: rgba(0,0,0,0.5); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.85rem; 
    transition: color 0.3s; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    font-family: 'Exo 2', sans-serif;
}
.nav-cta-btn:hover { color: #000; }
.phantom-section { position: relative; z-index: 10; }

/* ═══════════════════════════════════════════════════════════════════════════
   8 SECTIONS — Alle gleiche Höhe (100vh)
   ═══════════════════════════════════════════════════════════════════════════ */
.pv-section {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 10;
    scroll-snap-align: start;
}

/* Section 4: NEXUS — Fäden treffen sich hier */
.section-nexus {
    display: flex;
    align-items: center;
    justify-content: center;
}
#nexus-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TIMELINE — Folgt den Fäden
   ═══════════════════════════════════════════════════════════════════════════ */
.section-timeline { padding: 100px 150px 150px; }

.timeline {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Vertikale Linie — der Faden */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.12) 5%, rgba(0,0,0,0.12) 95%, transparent);
    transform: translateX(-50%);
}

/* ═══ INTRO BLOCKS ═══ */
.tl-intro {
    max-width: 520px;
    margin-bottom: 100px;
    padding: 0 20px;
    position: relative;
}
/* Alignment-Klassen für abwechselnd links/rechts */
.tl-align-left { margin-left: 0; margin-right: auto; text-align: left; }
.tl-align-right { margin-left: auto; margin-right: 0; text-align: right; }
.tl-align-right .tl-accent { margin-left: auto; margin-right: 0; }

/* Nummer */
.tl-number {
    display: block;
    font-family: system-ui, sans-serif;
    font-size: 120px;
    font-weight: 800;
    color: rgba(0,0,0,0.15);
    letter-spacing: 12px;
    line-height: 1;
    margin-bottom: -20px;
}

/* Akzent-Linie */
.tl-accent {
    width: 60px;
    height: 1.5px;
    background: rgba(0,0,0,0.25);
    margin: 20px 0;
    transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
}
.revealed .tl-accent { width: 120px; }
.tl-intro h2 {
    font-family: system-ui, sans-serif;
    font-size: 62px;
    font-weight: 400;
    color: #000;
    letter-spacing: 4px;
    line-height: 1.15;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.tl-highlight {
    font-weight: 600;
    letter-spacing: 1px;
}
.tl-lead {
    font-family: system-ui, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: rgba(0,0,0,0.85);
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-style: italic;
}
.tl-intro p {
    font-family: system-ui, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: rgba(0,0,0,0.7);
    line-height: 1.9;
    margin-bottom: 14px;
}

/* ═══ TIMELINE CARDS ═══ */
.tl-card {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    width: 50%;
}
.tl-left { margin-right: auto; padding-right: 60px; justify-content: flex-end; }
.tl-right { margin-left: auto; padding-left: 60px; justify-content: flex-start; }

/* Node auf der Timeline-Linie */
.tl-node {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    border: 1.5px solid rgba(0,0,0,0.2);
}
.tl-node-inner {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    margin: 3.5px auto;
    animation: svgPulse 3s ease-in-out infinite;
}
.tl-left .tl-node { right: -8px; top: 50%; transform: translateY(-50%); }
.tl-right .tl-node { left: -8px; top: 50%; transform: translateY(-50%); }
/* Card innerhalb Timeline */
.tl-card .scard {
    position: relative;
    overflow: hidden;
    width: 400px;
    min-height: 300px;
    padding: 40px 32px;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(0,0,0,0.2);
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.scard-bg {
    position: absolute;
    width: 160px;
    height: 160px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    pointer-events: none;
}
.scard h3 { position: relative; z-index: 2; font-family: system-ui, sans-serif; font-size: 18px; font-weight: 600; color: #000; margin-bottom: 10px; letter-spacing: 0.5px; }
.scard p { position: relative; z-index: 2; font-family: system-ui, sans-serif; font-size: 14px; font-weight: 400; color: rgba(0,0,0,0.45); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL — Slide + Materialize
   ═══════════════════════════════════════════════════════════════════════════ */
.from-left {
    opacity: 0;
    filter: blur(20px);
    transform: translateX(-120px) scale(1.1);
    transition: opacity 1s cubic-bezier(0.16,1,0.3,1),
                filter 1s cubic-bezier(0.16,1,0.3,1),
                transform 1s cubic-bezier(0.16,1,0.3,1);
}
.from-right {
    opacity: 0;
    filter: blur(20px);
    transform: translateX(120px) scale(1.1);
    transition: opacity 1s cubic-bezier(0.16,1,0.3,1),
                filter 1s cubic-bezier(0.16,1,0.3,1),
                transform 1s cubic-bezier(0.16,1,0.3,1);
}
.revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) scale(1);
}

/* Hover */
.scard:hover { border-color: rgba(0,0,0,0.35); transition: border-color 0.3s; }
/* ═══════════════════════════════════════════════════════════════════════════
   SVG LEBENDIGE ANIMATIONEN
   ═══════════════════════════════════════════════════════════════════════════ */
.svg-orbit { stroke-dasharray: 12 8; animation: svgOrbit 8s linear infinite; transform-origin: center; }
.svg-orbit-r { stroke-dasharray: 8 6; animation: svgOrbit 12s linear infinite reverse; transform-origin: center; }
@keyframes svgOrbit { to { stroke-dashoffset: -60; } }

.svg-pulse { animation: svgPulse 3s ease-in-out infinite; transform-origin: center; }
@keyframes svgPulse { 0%,100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.4); opacity: 1; } }

.svg-float { animation: svgFloat 4s ease-in-out infinite; }
.svg-float-d { animation: svgFloat 4s ease-in-out infinite 2s; }
@keyframes svgFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.svg-dash { stroke-dasharray: 20 10; animation: svgDash 4s linear infinite; }
.svg-dash-d { stroke-dasharray: 20 10; animation: svgDash 4s linear infinite 1.5s; }
@keyframes svgDash { to { stroke-dashoffset: -60; } }

.svg-blink { animation: svgBlink 2.5s ease-in-out infinite; }
.svg-blink-d { animation: svgBlink 2.5s ease-in-out infinite 0.8s; }
.svg-blink-dd { animation: svgBlink 2.5s ease-in-out infinite 1.6s; }
@keyframes svgBlink { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

.svg-morph { animation: svgMorph 6s ease-in-out infinite; transform-origin: center; }
@keyframes svgMorph { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05) rotate(1deg); } }
.svg-spin { animation: svgSpin 3s linear infinite; transform-origin: 50px 88px; }
.svg-spin-r { animation: svgSpin 3s linear infinite reverse; transform-origin: 82px 88px; }
@keyframes svgSpin { to { transform: rotate(360deg); } }

.svg-rain { animation: svgRain 2s linear infinite; }
.svg-rain-d { animation: svgRain 2.5s linear infinite 0.5s; }
.svg-rain-dd { animation: svgRain 1.8s linear infinite 1s; }
@keyframes svgRain { to { stroke-dashoffset: -14; } }

.svg-scan { animation: svgScan 3s ease-in-out infinite; }
.svg-scan-d { animation: svgScan 3s ease-in-out infinite 0.8s; }
.svg-scan-dd { animation: svgScan 3s ease-in-out infinite 1.6s; }
@keyframes svgScan { 0%,100% { opacity: 0.3; stroke-dasharray: 0 100; } 50% { opacity: 1; stroke-dasharray: 100 0; } }

.svg-pulse-box { animation: svgPulseBox 4s ease-in-out infinite; transform-origin: center; }
@keyframes svgPulseBox { 0%,100% { opacity: 0.2; } 50% { opacity: 0.6; transform: scale(1.08); } }

.svg-bar { animation: svgBar 3s ease-in-out infinite; transform-origin: bottom; }
.svg-bar-d { animation: svgBar 3.5s ease-in-out infinite 0.5s; transform-origin: bottom; }
.svg-bar-dd { animation: svgBar 4s ease-in-out infinite 1s; transform-origin: bottom; }
@keyframes svgBar { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.2); } }

.svg-line-draw { stroke-dasharray: 200; animation: svgLineDraw 4s ease-in-out infinite; }
@keyframes svgLineDraw { 0% { stroke-dashoffset: 200; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -200; } }

.svg-breathe { animation: svgBreathe 5s ease-in-out infinite; transform-origin: center; }
@keyframes svgBreathe { 0%,100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.06); opacity: 0.9; } }



/* ═══════════════════════════════════════════════════════════════════════════
   BLOCK 05 SPACING — Margin unten für mehr Abstand zu Block 06
   ═══════════════════════════════════════════════════════════════════════════ */
.section-timeline-bottom .tl-block-row:first-of-type {
    margin-bottom: 50px;
}
