
/* Data Labels / Metadata */
.data-label, .panel-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===========================================
   datatelomere.com - Styles
   Aurora Gradient + Pop-Art Bio-Decay
   =========================================== */

/* CSS Custom Properties */
:root {
    --void-base: #0a0818;
    --panel-surface: #12102a;
    --aurora-magenta: #e63988;
    --aurora-teal: #2de2b8;
    --aurora-violet: #7b2ff7;
    --noise-gray: #3d3a4f;
    --pop-yellow: #f5e642;
    --body-text: #c8c3d8;
    --muted-rose: #b83070;
    --dimmed-text: #9590a8;

    --scroll-progress: 0;
    --aurora-sat: 100%;
    --noise-opacity: 0.03;
    --bubble-blur: 0px;
    --gutter: clamp(8px, 1.2vw, 16px);
}

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

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

body {
    background-color: var(--void-base);
    color: var(--body-text);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.125rem);
    line-height: 1.7;
    overflow-x: hidden;
}

/* SVG Filters - Hidden */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ==========================================
   Chromosome Banding Sidebar
   ========================================== */
.chromosome-banding {
    position: fixed;
    left: 0;
    top: 0;
    width: 24px;
    height: 100vh;
    z-index: 100;
    background:
        linear-gradient(180deg,
            #e63988 0%, #e63988 2%,
            #0a0818 2%, #0a0818 4%,
            #7b2ff7 4%, #7b2ff7 5.5%,
            #0a0818 5.5%, #0a0818 7%,
            #2de2b8 7%, #2de2b8 8%,
            #e63988 8%, #e63988 10%,
            #0a0818 10%, #0a0818 11.5%,
            #7b2ff7 11.5%, #7b2ff7 14%,
            #0a0818 14%, #0a0818 15%,
            #e63988 15%, #e63988 16%,
            #2de2b8 16%, #2de2b8 18.5%,
            #0a0818 18.5%, #0a0818 20%,
            #7b2ff7 20%, #7b2ff7 21%,
            #0a0818 21%, #0a0818 23%,
            #e63988 23%, #e63988 25.5%,
            #0a0818 25.5%, #0a0818 27%,
            #2de2b8 27%, #2de2b8 28%,
            #7b2ff7 28%, #7b2ff7 31%,
            #0a0818 31%, #0a0818 33%,
            #e63988 33%, #e63988 34.5%,
            #0a0818 34.5%, #0a0818 36%,
            #2de2b8 36%, #2de2b8 37%,
            #7b2ff7 37%, #7b2ff7 40%,
            #0a0818 40%, #0a0818 42%,
            #e63988 42%, #e63988 43%,
            #0a0818 43%, #0a0818 45%,
            #7b2ff7 45%, #7b2ff7 48%,
            #2de2b8 48%, #2de2b8 49%,
            #0a0818 49%, #0a0818 52%,
            #e63988 52%, #e63988 53.5%,
            #7b2ff7 53.5%, #7b2ff7 56%,
            #0a0818 56%, #0a0818 58%,
            #2de2b8 58%, #2de2b8 59%,
            #0a0818 59%, #0a0818 62%,
            #7b2ff7 62%, #7b2ff7 65%,
            #0a0818 65%, #0a0818 67%,
            #e63988 67%, #e63988 68%,
            #0a0818 68%, #0a0818 72%,
            #7b2ff7 72%, #7b2ff7 75%,
            #0a0818 75%, #0a0818 78%,
            #3d3a4f 78%, #3d3a4f 80%,
            #0a0818 80%, #0a0818 83%,
            #7b2ff7 83%, #7b2ff7 86%,
            #0a0818 86%, #0a0818 89%,
            #3d3a4f 89%, #3d3a4f 91%,
            #0a0818 91%, #0a0818 94%,
            #7b2ff7 94%, #7b2ff7 96%,
            #0a0818 96%, #0a0818 100%
        );
    background-size: 100% 200%;
    transition: filter 0.6s ease;
}

@media (max-width: 1200px) {
    .chromosome-banding {
        display: none;
    }
}

/* ==========================================
   State Navigation Dots
   ========================================== */
.state-nav {
    position: fixed;
    top: 50%;
    right: 28px;
    transform: translateY(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.state-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--noise-gray);
    border: 1px solid rgba(200, 195, 216, 0.2);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.state-dot.active {
    background-color: var(--aurora-magenta);
    box-shadow: 0 0 12px rgba(230, 57, 136, 0.5);
    transform: scale(1.4);
}

/* ==========================================
   Floating Bubbles
   ========================================== */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.floating-bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 1.5s ease;
}

.floating-bubble span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    color: rgba(200, 195, 216, 0.25);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ==========================================
   Section / State Base Styles
   ========================================== */
.state {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Noise Overlay */
.noise-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 2;
    pointer-events: none;
    opacity: var(--noise-opacity);
    filter: url(#noise-coarse);
    mix-blend-mode: overlay;
}

/* ==========================================
   STATE 1 - INTACT
   ========================================== */
.state-1 {
    z-index: 10;
}

.aurora-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 80%;
    background: radial-gradient(
        ellipse at 60% 30%,
        rgba(230, 57, 136, 0.18) 0%,
        rgba(123, 47, 247, 0.12) 30%,
        rgba(45, 226, 184, 0.06) 60%,
        transparent 80%
    );
    z-index: 1;
    pointer-events: none;
}

.state-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 0 clamp(20px, 5vw, 80px);
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(2.8rem, 7vw, 6rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(135deg, #e63988 0%, #7b2ff7 40%, #2de2b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-feature-settings: 'liga' 1, 'kern' 1;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    color: var(--body-text);
    letter-spacing: 0.02em;
    max-width: 600px;
    margin: 0 auto;
}

/* Blur Focus Animation */
.blur-focus {
    filter: blur(12px);
    opacity: 0;
    transition: filter 1.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blur-focus.focused {
    filter: blur(0px);
    opacity: 1;
}

.blur-focus.defocused {
    filter: blur(6px);
    opacity: 0.4;
}

/* ==========================================
   STATE 2 - REPLICATING
   ========================================== */
.state-2 {
    z-index: 10;
}

.dashboard-grid {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1280px;
    padding: 0 clamp(20px, 3vw, 48px);
    padding-left: clamp(40px, 5vw, 80px);
    margin: 0 auto;
}

.grid-2col {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--gutter);
}

/* Panel Styles */
.panel {
    position: relative;
    background: rgba(18, 16, 42, 0.85);
    border: 1px solid rgba(45, 226, 184, 0.12);
    padding: clamp(20px, 3vw, 48px);
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(123, 47, 247, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.panel-label {
    display: inline-block;
    font-family: 'Playfair Display SC', serif;
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--aurora-teal);
    margin-bottom: 1.5rem;
}

.panel-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: -0.04em;
    color: var(--aurora-magenta);
    margin-bottom: 1.2rem;
    font-feature-settings: 'liga' 1, 'kern' 1;
}

.panel-body {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    color: var(--body-text);
    margin-bottom: 1rem;
}

.panel-body:last-child {
    margin-bottom: 0;
}

.panel-right {
    box-shadow: 0 0 15px rgba(45, 226, 184, 0.1);
}

/* Halftone Overlay */
.panel-halftone::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, #e63988 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.05;
    pointer-events: none;
}

.panel-halftone-coarse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, #e63988 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.12;
    pointer-events: none;
}

/* Bubble Cluster */
.bubble-cluster {
    position: relative;
    width: 100%;
    height: 300px;
    margin-top: 1rem;
}

.cluster-bubble {
    position: absolute;
    width: var(--size);
    height: var(--size);
    left: var(--x);
    top: var(--y);
    border-radius: 50%;
    background-color: var(--color);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 4s ease-in-out infinite;
}

.cluster-bubble span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    color: rgba(200, 195, 216, 0.3);
    letter-spacing: 0.08em;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
}

/* ==========================================
   STATE 3 - SHORTENING
   ========================================== */
.state-3 .noise-overlay {
    opacity: 0.08;
}

.grid-3col {
    display: grid;
    grid-template-columns: 4fr 5fr 3fr;
    gap: var(--gutter);
    align-items: start;
}

.panel-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(4rem, 10vw, 8rem);
    background: linear-gradient(135deg, #e63988 0%, #7b2ff7 60%, #2de2b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.panel-body.fragment {
    font-size: 0.9rem;
    color: var(--dimmed-text);
}

/* ==========================================
   STATE 4 - CRITICAL
   ========================================== */
.state-4 .noise-overlay {
    opacity: 0.12;
}

.grid-stacked {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 8vh, 80px);
    max-width: 800px;
}

.panel-critical-top {
    border-color: rgba(123, 47, 247, 0.08);
}

.panel-critical-top::before {
    background: radial-gradient(ellipse at 30% 20%, rgba(123, 47, 247, 0.08) 0%, transparent 70%);
}

.panel-body.dimmed {
    color: var(--dimmed-text);
}

.panel-sentence {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--muted-rose);
    letter-spacing: -0.02em;
}

.panel-critical-bottom {
    border-color: rgba(184, 48, 112, 0.15);
}

/* ==========================================
   STATE 5 - SENESCENCE
   ========================================== */
.state-5 {
    z-index: 10;
}

.state-5 .noise-overlay {
    opacity: 0.18;
}

.senescence-content {
    position: relative;
    z-index: 5;
    text-align: center;
}

.senescence-phrase {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--noise-gray);
    letter-spacing: -0.02em;
    position: relative;
}

.senescence-phrase::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
/* Data Labels / Metadata (0.75rem per spec) */
.data-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dimmed-text);
}

@media (max-width: 768px) {
    .grid-2col,
    .grid-3col {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        padding-left: clamp(20px, 3vw, 48px);
    }

    .state-nav {
        right: 12px;
    }

    .state-dot {
        width: 6px;
        height: 6px;
    }

    .bubble-cluster {
        height: 200px;
    }

    .countdown-number {
        font-size: clamp(3rem, 15vw, 5rem);
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .panel {
        padding: clamp(16px, 4vw, 24px);
    }
}
