/* ppuzzle.net - Avant-Garde Data Observatory */

:root {
    --dark-earth: #3D2E25;
    --dusty-rose: #B8A090;
    --terracotta: #C87648;
    --cream: #F0E8E0;
    --ember: #E07050;
    --salmon: #D4917A;
    --copper: #8B5E3C;
    --deep-brown: #2A1F1A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--deep-brown);
    color: var(--cream);
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Aurora Layers */
.aurora-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.aurora-1 {
    background: conic-gradient(from 0deg at 30% 40%, var(--terracotta), transparent 120deg, var(--ember), transparent 240deg, var(--salmon));
    animation: auroraRotate1 30s linear infinite;
}

.aurora-2 {
    background: conic-gradient(from 180deg at 70% 60%, var(--copper), transparent 120deg, var(--terracotta), transparent 240deg, var(--dusty-rose));
    animation: auroraRotate2 45s linear infinite;
    opacity: 0.1;
}

@keyframes auroraRotate1 {
    from { transform: rotate(0deg) scale(1.3); }
    to { transform: rotate(360deg) scale(1.3); }
}

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

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 80px 40px;
}

/* Dome */
.dome {
    flex-direction: column;
    text-align: center;
}

.dome-content {
    position: relative;
    z-index: 2;
}

.wordmark {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.01em;
    color: var(--cream);
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeUp 1.5s ease-out 0.3s forwards;
}

.dome-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--terracotta);
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 1.2s ease-out 0.7s forwards;
}

.dome-desc {
    font-size: 15px;
    color: var(--dusty-rose);
    max-width: 420px;
    opacity: 0;
    animation: fadeUp 1.2s ease-out 1s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

.dome-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    animation: slowSpin 60s linear infinite;
}

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

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

/* Canopy Panels */
.canopy-panel {
    background: rgba(42, 31, 26, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(200, 118, 72, 0.15);
    padding: 48px 40px;
    max-width: 620px;
    width: 100%;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.canopy-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-panel {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.panel-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--terracotta);
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-left: 16px;
    position: relative;
}

.panel-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 1px;
    background: var(--terracotta);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: 0.01em;
    color: var(--cream);
    margin-bottom: 16px;
}

.section-body {
    font-size: 15px;
    color: var(--dusty-rose);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Data Bar Chart */
.data-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bar-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--dusty-rose);
    letter-spacing: 0.04em;
    width: 90px;
    flex-shrink: 0;
    text-align: right;
}

.bar-track {
    flex-grow: 1;
    height: 8px;
    background: rgba(184, 160, 144, 0.1);
    border-radius: 1px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--terracotta), var(--ember));
    border-radius: 1px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill.animated {
    /* width set by JS */
}

/* Node Cluster */
.node-cluster {
    position: relative;
    height: 180px;
    margin-top: 16px;
}

.cluster-node {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--terracotta);
    background: rgba(200, 118, 72, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.cluster-node:hover {
    transform: scale(1.3);
    border-color: var(--ember);
    background: rgba(224, 112, 80, 0.15);
}

/* Tutorial Steps */
.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--terracotta);
    flex-shrink: 0;
    width: 28px;
}

.step-text {
    font-size: 14px;
    color: var(--dusty-rose);
    line-height: 1.7;
}

/* Aurora Floor */
.aurora-floor {
    text-align: center;
    flex-direction: column;
}

.floor-content {
    max-width: 500px;
}

.floor-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--cream);
    margin-bottom: 16px;
}

.floor-text {
    font-size: 15px;
    color: var(--dusty-rose);
    line-height: 1.8;
}

.floor-contact {
    margin-top: 32px;
}

.floor-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--terracotta);
    letter-spacing: 0.04em;
    opacity: 0.7;
}
