/* =====================================================
   muhan.ai - Infinite Recursion Design System
   Colors from DESIGN.md palette
   ===================================================== */

:root {
    --void-depth: #1A1A2E;
    --infinite-white: #F5F5FF;
    --recursive-purple: #7A5AFF;
    --spiral-flame: #FF6B4A;
    --infinite-cyan: #4AE8C8;
    --eternal-gold: #FFB347;
    --recursive-lavender: #B8A8FF;
    --bg-dark: #2A2A3E;
    --text-on-dark: #E5E5F5;
    --text-dark: #2A2A3E;
    --aurora-top: #2D1B69;
    --aurora-bottom: #0F0F1E;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-on-dark);
    background-color: var(--void-depth);
    overflow-x: hidden;
}

/* =====================================================
   Recursive Typography Overlay
   ===================================================== */

.recursive-text-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.recursive-word {
    position: absolute;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--recursive-lavender);
    pointer-events: none;
    user-select: none;
}

/* =====================================================
   Floating Blobs
   ===================================================== */

.blob {
    position: fixed;
    border-radius: 40% 60% 50% 50% / 50% 50% 50% 40%;
    pointer-events: none;
    z-index: 2;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse at 50% 50%, rgba(122, 90, 255, 0.08) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation: blobDrift1 25s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse at 50% 50%, rgba(74, 232, 200, 0.06) 0%, transparent 70%);
    top: 30%;
    right: -10%;
    animation: blobDrift2 30s ease-in-out infinite;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 107, 74, 0.05) 0%, transparent 70%);
    bottom: 10%;
    left: 20%;
    animation: blobDrift3 20s ease-in-out infinite;
}

.blob-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 179, 71, 0.06) 0%, transparent 70%);
    bottom: -5%;
    right: 15%;
    animation: blobDrift4 28s ease-in-out infinite;
}

@keyframes blobDrift1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(60px, 40px) rotate(5deg); }
    66% { transform: translate(-30px, 70px) rotate(-3deg); }
}

@keyframes blobDrift2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-50px, 30px) rotate(-4deg); }
    66% { transform: translate(40px, -50px) rotate(6deg); }
}

@keyframes blobDrift3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -60px) rotate(3deg); }
    66% { transform: translate(-40px, 20px) rotate(-5deg); }
}

@keyframes blobDrift4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -40px) rotate(-6deg); }
    66% { transform: translate(50px, 30px) rotate(4deg); }
}

/* =====================================================
   Depth Indicators (left margin)
   ===================================================== */

.depth-indicators {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 50;
}

.depth-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.3;
    transition: opacity 0.6s ease;
    animation: depthPulse 3s ease-in-out infinite;
}

.depth-badge.active {
    opacity: 1;
}

.depth-badge[data-level="1"] { animation-delay: 0s; }
.depth-badge[data-level="2"] { animation-delay: 0.4s; }
.depth-badge[data-level="3"] { animation-delay: 0.8s; }
.depth-badge[data-level="4"] { animation-delay: 1.2s; }
.depth-badge[data-level="5"] { animation-delay: 1.6s; }
.depth-badge[data-level="6"] { animation-delay: 2.0s; }
.depth-badge[data-level="7"] { animation-delay: 2.4s; }

.depth-num {
    font-family: 'Victor Mono', monospace;
    font-weight: 500;
    font-size: 14px;
    color: var(--recursive-purple);
    width: 20px;
    text-align: center;
}

.depth-label {
    font-family: 'Victor Mono', monospace;
    font-weight: 500;
    font-size: 10px;
    color: #5A5A7E;
    letter-spacing: 0.04em;
}

.depth-badge[data-level="2"] .depth-num { font-size: 13px; }
.depth-badge[data-level="3"] .depth-num { font-size: 12px; }
.depth-badge[data-level="4"] .depth-num { font-size: 11px; }
.depth-badge[data-level="5"] .depth-num { font-size: 10px; }
.depth-badge[data-level="6"] .depth-num { font-size: 9px; }
.depth-badge[data-level="7"] .depth-num { font-size: 8px; }

@keyframes depthPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* =====================================================
   Panels Container
   ===================================================== */

.panels-container {
    position: relative;
    z-index: 10;
}

/* =====================================================
   Base Panel Styles
   ===================================================== */

.panel {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 100px;
    overflow: hidden;
    filter: blur(8px);
    opacity: 0.5;
    transition: filter 600ms cubic-bezier(0.34, 1.56, 0.64, 1.0),
                opacity 600ms cubic-bezier(0.34, 1.56, 0.64, 1.0);
}

.panel.in-view {
    filter: blur(0);
    opacity: 1;
}

.panel-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    width: 100%;
}

.panel-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--aurora-top) 0%, var(--aurora-bottom) 100%);
    z-index: 0;
}

.panel-bg-dark {
    position: absolute;
    inset: 0;
    background: var(--void-depth);
    z-index: 0;
}

.panel-bg-inverted {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--infinite-white) 0%, #D8D8F0 100%);
    z-index: 0;
}

/* =====================================================
   Spiral Motif (conic gradient)
   ===================================================== */

.spiral-motif {
    position: absolute;
    border-radius: 50%;
    background: conic-gradient(from 0deg at 50% 50%, #7A5AFF 0deg, #FF6B4A 120deg, #4AE8C8 240deg, #7A5AFF 360deg);
    opacity: 0.08;
    z-index: 3;
    animation: spiralRotate 120s linear infinite;
}

.spiral-hero {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spiral-panel2 {
    width: 500px;
    height: 500px;
    top: 10%;
    right: -100px;
    animation-duration: 90s;
}

.spiral-panel3 {
    width: 600px;
    height: 600px;
    bottom: -150px;
    left: -100px;
    animation-duration: 100s;
    animation-direction: reverse;
}

.spiral-panel4 {
    width: 700px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 45s;
}

.spiral-panel5 {
    width: 500px;
    height: 500px;
    top: 20%;
    left: -80px;
    animation-duration: 80s;
    animation-direction: reverse;
}

@keyframes spiralRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spiral-hero {
    animation-name: spiralRotateCenter;
}

.spiral-panel4 {
    animation-name: spiralRotateCenter;
}

@keyframes spiralRotateCenter {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =====================================================
   Infinity Watermark
   ===================================================== */

.infinity-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 600px;
    font-weight: 600;
    color: var(--recursive-purple);
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 0 20px rgba(122, 90, 255, 0.6), 0 0 40px rgba(74, 232, 200, 0.3);
}

/* =====================================================
   Mandelbrot Watermark
   ===================================================== */

.mandelbrot-watermark {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.03;
    pointer-events: none;
}

/* =====================================================
   Panel 01 - The Axiom
   ===================================================== */

.panel-01 {
    background: linear-gradient(180deg, var(--aurora-top) 0%, var(--aurora-bottom) 100%);
}

.panel-01 .panel-bg-gradient {
    display: none;
}

.panel-01-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.infinity-symbol {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 300px;
    font-weight: 600;
    color: var(--recursive-purple);
    line-height: 1;
    text-shadow: 0 0 20px rgba(122, 90, 255, 0.6), 0 0 40px rgba(74, 232, 200, 0.3);
    animation: infinityGlow 3s ease-in-out infinite;
}

@keyframes infinityGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(122, 90, 255, 0.6), 0 0 40px rgba(74, 232, 200, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(122, 90, 255, 0.9), 0 0 80px rgba(74, 232, 200, 0.5), 0 0 120px rgba(255, 107, 74, 0.2);
    }
}

.hero-headline {
    font-family: 'Anybody', sans-serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    letter-spacing: 0.02em;
    color: var(--infinite-white);
    line-height: 1.15;
}

.margin-annotation {
    font-family: 'Victor Mono', monospace;
    font-weight: 500;
    font-size: 12px;
    color: #5A5A7E;
    letter-spacing: 0.04em;
}

/* =====================================================
   Panel 02 - Mandelbrot Spiral
   ===================================================== */

.panel-02 {
    background-color: var(--infinite-white);
}

.concentric-composition {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ellipse-layer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 1px solid rgba(122, 90, 255, 0.15);
    border-radius: 50%;
    position: relative;
}

.ellipse-outer {
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 179, 71, 0.05) 0%, transparent 70%);
    animation: ellipseRotateOuter 120s linear infinite;
}

.ellipse-middle {
    width: 85%;
    height: 85%;
    opacity: 0.7;
    transform: rotate(5deg);
    border-color: rgba(74, 232, 200, 0.2);
    background: linear-gradient(180deg, rgba(122, 90, 255, 0.05) 0%, transparent 50%, rgba(74, 232, 200, 0.03) 100%);
}

.ellipse-inner {
    width: 72%;
    height: 72%;
    opacity: 0.5;
    transform: rotate(10deg);
    border-color: rgba(255, 107, 74, 0.15);
}

@keyframes ellipseRotateOuter {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ellipse-headline {
    font-family: 'Anybody', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--text-dark);
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 16px;
}

.ellipse-body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    text-align: center;
    max-width: 400px;
    margin-bottom: 24px;
}

.ellipse-quote {
    font-family: 'Anybody', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--recursive-purple);
    text-align: center;
    font-style: italic;
    max-width: 300px;
    line-height: 1.5;
}

.ellipse-meta {
    font-family: 'Victor Mono', monospace;
    font-weight: 500;
    font-size: 11px;
    color: #5A5A7E;
    letter-spacing: 0.04em;
}

/* =====================================================
   Panel 03 - Recursive Depth
   ===================================================== */

.panel-03 {
    background: var(--void-depth);
}

.panel-03 .panel-bg-dark {
    display: none;
}

.recursive-depth-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.recursive-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 40px;
    position: relative;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.recursive-level[data-depth="1"] { transform: scale(1) rotate(0deg); }
.recursive-level[data-depth="2"] { transform: scale(0.92) rotate(3deg); opacity: 0.85; }
.recursive-level[data-depth="3"] { transform: scale(0.84) rotate(6deg); opacity: 0.7; }
.recursive-level[data-depth="4"] { transform: scale(0.76) rotate(9deg); opacity: 0.55; }
.recursive-level[data-depth="5"] { transform: scale(0.68) rotate(12deg); opacity: 0.4; }

.recursive-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--text-on-dark);
    margin-bottom: 8px;
}

.recursive-heading.depth-1 { font-size: 2rem; }
.recursive-heading.depth-2 { font-size: 1.6rem; }
.recursive-heading.depth-3 { font-size: 1.3rem; }
.recursive-heading.depth-4 { font-size: 1rem; }
.recursive-heading.depth-5 { font-size: 0.8rem; }

.recursive-text {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #D8D8E8;
    max-width: 500px;
}

.recursive-text.depth-1 { font-size: 17px; }
.recursive-text.depth-2 { font-size: 15px; }
.recursive-text.depth-3 { font-size: 13px; }
.recursive-text.depth-4 { font-size: 11px; }
.recursive-text.depth-5 { font-size: 10px; }

/* Recursive fade animation (breathing) */
.recursive-level[data-depth="2"] { animation: recursiveBreathe 10s ease-in-out infinite; }
.recursive-level[data-depth="3"] { animation: recursiveBreathe 8s ease-in-out infinite 1s; }
.recursive-level[data-depth="4"] { animation: recursiveBreathe 12s ease-in-out infinite 2s; }
.recursive-level[data-depth="5"] { animation: recursiveBreathe 9s ease-in-out infinite 3s; }

@keyframes recursiveBreathe {
    0%, 100% { opacity: var(--base-opacity, 0.7); }
    50% { opacity: calc(var(--base-opacity, 0.7) * 0.5); }
}

.recursive-level[data-depth="2"] { --base-opacity: 0.85; }
.recursive-level[data-depth="3"] { --base-opacity: 0.7; }
.recursive-level[data-depth="4"] { --base-opacity: 0.55; }
.recursive-level[data-depth="5"] { --base-opacity: 0.4; }

/* =====================================================
   Panel 04 - The Eternal Loop
   ===================================================== */

.panel-04 {
    background: linear-gradient(180deg, var(--aurora-top) 0%, var(--void-depth) 100%);
}

.panel-04 .panel-bg-gradient {
    display: none;
}

.eternal-loop-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.eternal-nest {
    position: relative;
    width: 600px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: eternalRotate 45s linear infinite;
}

@keyframes eternalRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nest-level {
    position: absolute;
    border: 1px solid rgba(122, 90, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease;
}

.nest-level[data-nest="1"] {
    width: 100%;
    height: 100%;
    border-color: rgba(122, 90, 255, 0.4);
}
.nest-level[data-nest="2"] {
    width: 85%;
    height: 85%;
    transform: rotate(5deg);
    opacity: 0.85;
    border-color: rgba(255, 107, 74, 0.3);
}
.nest-level[data-nest="3"] {
    width: 72%;
    height: 72%;
    transform: rotate(10deg);
    opacity: 0.7;
    border-color: rgba(74, 232, 200, 0.3);
}
.nest-level[data-nest="4"] {
    width: 61%;
    height: 61%;
    transform: rotate(15deg);
    opacity: 0.6;
    border-color: rgba(255, 179, 71, 0.3);
}
.nest-level[data-nest="5"] {
    width: 52%;
    height: 52%;
    transform: rotate(20deg);
    opacity: 0.5;
    border-color: rgba(184, 168, 255, 0.3);
}
.nest-level[data-nest="6"] {
    width: 44%;
    height: 44%;
    transform: rotate(25deg);
    opacity: 0.4;
    border-color: rgba(122, 90, 255, 0.25);
}
.nest-level[data-nest="7"] {
    width: 37%;
    height: 37%;
    transform: rotate(30deg);
    opacity: 0.3;
    border-color: rgba(255, 107, 74, 0.2);
}

.nest-text {
    font-family: 'Anybody', sans-serif;
    font-weight: 400;
    color: var(--text-on-dark);
    text-align: center;
    white-space: nowrap;
    animation: eternalRotateReverse 45s linear infinite;
}

@keyframes eternalRotateReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.nest-level[data-nest="1"] .nest-text { font-size: 16px; }
.nest-level[data-nest="2"] .nest-text { font-size: 14px; }
.nest-level[data-nest="3"] .nest-text { font-size: 12px; }
.nest-level[data-nest="4"] .nest-text { font-size: 11px; }
.nest-level[data-nest="5"] .nest-text { font-size: 10px; }
.nest-level[data-nest="6"] .nest-text { font-size: 9px; }
.nest-level[data-nest="7"] .nest-text { font-size: 8px; }

/* Staggered breathing for nest levels */
.nest-level[data-nest="2"] { animation: nestBreathe 8s ease-in-out infinite; }
.nest-level[data-nest="3"] { animation: nestBreathe 10s ease-in-out infinite 1s; }
.nest-level[data-nest="4"] { animation: nestBreathe 9s ease-in-out infinite 2s; }
.nest-level[data-nest="5"] { animation: nestBreathe 11s ease-in-out infinite 3s; }
.nest-level[data-nest="6"] { animation: nestBreathe 8s ease-in-out infinite 4s; }
.nest-level[data-nest="7"] { animation: nestBreathe 12s ease-in-out infinite 5s; }

@keyframes nestBreathe {
    0%, 100% { opacity: var(--nest-opacity, 0.5); }
    50% { opacity: calc(var(--nest-opacity, 0.5) * 0.4); }
}

.nest-level[data-nest="2"] { --nest-opacity: 0.85; }
.nest-level[data-nest="3"] { --nest-opacity: 0.7; }
.nest-level[data-nest="4"] { --nest-opacity: 0.6; }
.nest-level[data-nest="5"] { --nest-opacity: 0.5; }
.nest-level[data-nest="6"] { --nest-opacity: 0.4; }
.nest-level[data-nest="7"] { --nest-opacity: 0.3; }

/* Iterative line decorations */
.iterative-lines {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 400px;
    z-index: 4;
    pointer-events: none;
}

.iterative-left {
    left: 40px;
}

.iterative-right {
    right: 40px;
}

/* =====================================================
   Panel 05 - Fractal Expansion
   ===================================================== */

.panel-05 {
    background: var(--infinite-white);
}

.panel-05 .panel-bg-inverted {
    display: none;
}

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

.expansion-headline {
    font-family: 'Anybody', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.expansion-body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dark);
    max-width: 600px;
}

.expansion-rings {
    position: relative;
    width: 400px;
    height: 400px;
    margin-top: 40px;
}

.expansion-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(122, 90, 255, 0.2);
    border-radius: 50%;
    animation: expandPulse 8s ease-in-out infinite;
}

.expansion-ring[data-ring="1"] {
    width: 80px;
    height: 80px;
    margin-top: -40px;
    margin-left: -40px;
    border-color: rgba(122, 90, 255, 0.5);
    animation-delay: 0s;
}
.expansion-ring[data-ring="2"] {
    width: 160px;
    height: 160px;
    margin-top: -80px;
    margin-left: -80px;
    border-color: rgba(255, 107, 74, 0.4);
    animation-delay: 0.5s;
}
.expansion-ring[data-ring="3"] {
    width: 240px;
    height: 240px;
    margin-top: -120px;
    margin-left: -120px;
    border-color: rgba(74, 232, 200, 0.3);
    animation-delay: 1s;
}
.expansion-ring[data-ring="4"] {
    width: 320px;
    height: 320px;
    margin-top: -160px;
    margin-left: -160px;
    border-color: rgba(255, 179, 71, 0.25);
    animation-delay: 1.5s;
}
.expansion-ring[data-ring="5"] {
    width: 400px;
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
    border-color: rgba(184, 168, 255, 0.2);
    animation-delay: 2s;
}

@keyframes expandPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

/* =====================================================
   Panel 06 - Return to Axiom
   ===================================================== */

.panel-06 {
    background: linear-gradient(180deg, var(--aurora-top) 0%, var(--aurora-bottom) 100%);
}

.panel-06 .panel-bg-gradient {
    display: none;
}

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

.infinity-trace {
    width: 400px;
    height: 200px;
    margin-bottom: 20px;
}

.infinity-svg {
    width: 100%;
    height: 100%;
}

.infinity-svg path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: traceInfinity 6s ease-in-out infinite;
}

@keyframes traceInfinity {
    0% { stroke-dashoffset: 1200; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1200; }
}

.return-headline {
    font-family: 'Anybody', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: var(--infinite-white);
    letter-spacing: 0.02em;
}

.return-body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 18px;
    color: var(--text-on-dark);
    line-height: 1.7;
}

.return-meta {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.meta-item {
    font-family: 'Victor Mono', monospace;
    font-weight: 500;
    font-size: 12px;
    color: #5A5A7E;
    letter-spacing: 0.04em;
}

/* =====================================================
   Hue Rotation Animation
   ===================================================== */

.panel-01 {
    animation: hueShift 45s linear infinite;
}

.panel-04 {
    animation: hueShift 45s linear infinite;
    animation-delay: -15s;
}

@keyframes hueShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Override hue when in-view (combine with blur transition) */
.panel-01.in-view {
    filter: hue-rotate(var(--hue, 0deg));
}

.panel-04.in-view {
    filter: hue-rotate(var(--hue, 0deg));
}

/* =====================================================
   Responsive Design
   ===================================================== */

@media (max-width: 768px) {
    .panel {
        padding: 60px 24px;
    }

    .depth-indicators {
        display: none;
    }

    .infinity-symbol {
        font-size: 150px;
    }

    .hero-headline {
        font-size: clamp(1.8rem, 5vw, 3rem);
    }

    .ellipse-outer {
        width: 340px;
        height: 340px;
        padding: 20px;
    }

    .ellipse-body {
        font-size: 13px;
        max-width: 200px;
    }

    .ellipse-quote {
        font-size: 12px;
        max-width: 160px;
    }

    .eternal-nest {
        width: 300px;
        height: 300px;
    }

    .expansion-rings {
        width: 280px;
        height: 280px;
    }

    .infinity-trace {
        width: 280px;
        height: 140px;
    }

    .recursive-level[data-depth="4"],
    .recursive-level[data-depth="5"] {
        display: none;
    }

    .blob {
        display: none;
    }
}

@media (max-width: 480px) {
    .panel {
        padding: 40px 16px;
    }

    .infinity-symbol {
        font-size: 100px;
    }

    .ellipse-outer {
        width: 280px;
        height: 280px;
        padding: 16px;
    }

    .ellipse-middle {
        transform: rotate(0deg);
    }

    .ellipse-inner {
        transform: rotate(0deg);
    }

    .eternal-nest {
        width: 250px;
        height: 250px;
    }

    .nest-level[data-nest="5"],
    .nest-level[data-nest="6"],
    .nest-level[data-nest="7"] {
        display: none;
    }

    .recursive-level[data-depth="3"],
    .recursive-level[data-depth="4"],
    .recursive-level[data-depth="5"] {
        display: none;
    }
}
