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

html {
    overflow-x: hidden;
}

body {
    background: #141218;
    color: #e8e0d8;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    --neon-accent: #64c8ff;
    --neon-bright: #80d4ff;
}

/* Noguchi lamp */
.noguchi-lamp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 5;
    opacity: 1;
    animation: lampSpin 120s linear infinite;
}

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

/* Mid-century silhouettes */
.silhouette {
    position: absolute;
    pointer-events: auto;
    opacity: 0.03;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.silhouette:hover {
    opacity: 0.08;
}

.sil-chair {
    top: 35vh;
    right: 12vw;
}

.sil-clock {
    top: 65vh;
    left: 6vw;
}

/* Neon connecting lines */
.neon-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.neon-connect {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1s ease-in-out;
}

.neon-connect.drawn {
    stroke-dashoffset: 0;
}

/* Cover Section */
.cover-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.cover-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    color: #e8e0d8;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: coverFade 1s ease-out 1s forwards;
}

.cover-wave {
    margin: 24px 0;
    opacity: 0;
    animation: coverFade 1s ease-out 1.5s forwards;
}

.wave-draw {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: waveDraw 2s ease-in-out 2s forwards;
}

.cover-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1rem;
    color: #a09888;
    opacity: 0;
    animation: coverFade 1s ease-out 2.5s forwards;
}

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

@keyframes waveDraw {
    to { stroke-dashoffset: 0; }
}

/* Panel Sections */
.panel-section {
    padding: 12vh 0;
    position: relative;
    z-index: 5;
}

/* Report Panel */
.report-panel {
    max-width: 620px;
    padding: 2.5rem;
    background: #1c1820;
    position: relative;
}

.report-panel.fade-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Panel positioning */
.panel-left {
    margin-left: 8vw;
}

.panel-right {
    margin-left: auto;
    margin-right: 8vw;
}

.panel-center {
    max-width: 800px;
    margin: 0 auto;
}

.panel-signoff {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

/* Panel ambient glow */
.panel-ambient {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    pointer-events: none;
    z-index: -1;
}

.ambient-1 {
    background: radial-gradient(ellipse at 30% 40%, rgba(100, 200, 255, 0.03) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 60%, rgba(200, 150, 100, 0.02) 0%, transparent 60%);
}

.ambient-2 {
    background: radial-gradient(ellipse at 60% 30%, rgba(100, 200, 255, 0.025) 0%, transparent 60%),
                radial-gradient(ellipse at 30% 70%, rgba(200, 150, 100, 0.015) 0%, transparent 60%);
}

.ambient-3 {
    background: radial-gradient(ellipse at 40% 50%, rgba(100, 200, 255, 0.035) 0%, transparent 60%);
}

.ambient-4 {
    background: radial-gradient(ellipse at 50% 30%, rgba(100, 200, 255, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 70%, rgba(200, 150, 100, 0.02) 0%, transparent 50%);
}

.panel-code {
    display: block;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: #64c8ff;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: #e8e0d8;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.15;
}

.panel-text {
    font-family: 'Inter', sans-serif;
    color: #a09888;
    margin-bottom: 24px;
}

/* Data metrics */
.panel-data {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.data-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #a09888;
}

.data-value {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #64c8ff;
    letter-spacing: 0.04em;
}

/* Panel wave accent */
.panel-wave-accent {
    margin-top: 20px;
}

/* Comparison grid */
.comparison-grid {
    margin-top: 24px;
}

.comp-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(100, 200, 255, 0.06);
}

.comp-header {
    border-bottom: 1px solid rgba(100, 200, 255, 0.15);
    padding-bottom: 12px;
}

.comp-row .data-label {
    font-size: 0.8rem;
}

.comp-row .data-value {
    font-size: 0.8rem;
}

/* Sign-off */
.signoff-text {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    color: #a09888;
    margin-bottom: 20px;
    line-height: 1.8;
}

.signoff-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #80d4ff;
    letter-spacing: 0.04em;
}

/* Wave dividers */
.wave-divider {
    width: 80vw;
    margin: 0 auto;
    height: 40px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.wave-svg {
    width: 100%;
    height: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .panel-left,
    .panel-right {
        margin-left: 5vw;
        margin-right: 5vw;
    }

    .panel-center {
        margin: 0 5vw;
    }

    .report-panel {
        padding: 1.5rem;
    }

    .panel-data {
        gap: 16px;
    }

    .comp-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .silhouette {
        display: none;
    }

    .noguchi-lamp {
        opacity: 0.5;
    }

    .wave-divider {
        width: 95vw;
    }
}
