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

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

::selection {
    background: #E8A317;
    color: #000;
}

body {
    background: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

#experience {
    max-width: 720px;
    width: 100%;
    padding: 2rem;
}

/* Animations */

.fade-in {
    animation: fadeIn 3s ease forwards;
}

.fade-in-slow {
    animation: fadeIn 3s ease forwards;
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Typography */

.statement {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.4;
    max-width: 600px;
    opacity: 0;
}

.whisper {
    font-size: 0.875rem;
    font-weight: 400;
    color: #555;
    margin-top: 3rem;
    opacity: 0;
}

.dimmed {
    transition: opacity 2s ease;
    opacity: 0.3 !important;
}

/* Layer 1 — narrative lines */

.narrative-line {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    opacity: 0;
    color: #fff;
}

/* Layer 2 — data printout */

.data-printout {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    color: #ccc;
    white-space: pre;
    opacity: 0;
    letter-spacing: 0.02em;
    overflow-x: auto;
}

.quantum-line {
    cursor: default;
    transition: color 0.6s ease;
}

.quantum-line:hover {
    color: #E8A317;
}

/* Layer 3 — the shift */

.shift-text {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #999;
    letter-spacing: 0.06em;
    opacity: 0;
}

/* Layer 4 — the connection */

.layer4-container {
    position: relative;
    min-height: 60vh;
    opacity: 0;
}

.hidden-contact {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

.amber-line {
    width: 100%;
    height: 1px;
    background: #E8A317;
    margin-bottom: 3rem;
}

.reveal-text {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.amber {
    color: #E8A317;
}

/* Loader overlay — covers the contact info */

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.loader-spinner {
    width: 24px;
    height: 24px;
    border: 1.5px solid #333;
    border-top-color: #666;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 0.75rem;
    font-weight: 300;
    color: #444;
    letter-spacing: 0.1em;
}

/* Amber message (easter egg feedback) */

.amber-message {
    font-size: 0.95rem;
    font-weight: 400;
    color: #E8A317;
    line-height: 1.7;
    margin-top: 2.5rem;
    opacity: 0;
}

/* Contact info */

.contact-info .amber {
    font-size: 1.1rem;
    letter-spacing: 0.03em;
}

/* Responsive */

@media (max-width: 600px) {
    .statement {
        font-size: 1.75rem;
    }

    .narrative-line {
        font-size: 1.2rem;
    }

    .data-printout {
        font-size: 0.65rem;
    }

    .shift-text {
        font-size: 0.95rem;
    }

    .reveal-text {
        font-size: 1.1rem;
    }

    #experience {
        padding: 1.5rem;
    }
}
