/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background: #050505;
    color: #fffef5;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    /* palette: #0e0e0e #b8963e #d4cfc4 */
}

/* ===== STARFIELD CANVAS ===== */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== CONSTELLATION SVG ===== */
.constellation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ===== SECTIONS ===== */
.section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

/* ===== HERO: THE VOID ===== */
.section-void {
    height: 100vh;
    min-height: 100vh;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(5rem, 12vw, 10rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c9a84c;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 3s ease-out 0.5s forwards;
    text-shadow: 0 0 60px rgba(201, 168, 76, 0.15);
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 2s ease-out 4s forwards;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, #c9a84c, transparent);
    animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

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

/* ===== THE WHISPER ===== */
.section-whisper {
    min-height: 60vh;
}

.whisper-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    letter-spacing: 0.25em;
    color: #8a7d65;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2s ease-out, transform 2s ease-out;
}

.whisper-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECTION HEADINGS ===== */
.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.06em;
    color: #c9a84c;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease-out, transform 2s ease-out;
}

.section-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== THE CONSTELLATION (PROJECTS) ===== */
.section-constellation {
    min-height: 120vh;
    padding: 8rem 2rem;
}

.project-orbit {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    max-width: 800px;
    width: 100%;
}

@media (max-width: 600px) {
    .project-orbit {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.project-node {
    position: relative;
    padding: 2.5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 2.5s ease-out, transform 2.5s ease-out;
    cursor: default;
}

.project-node.visible {
    opacity: 1;
    transform: translateY(0);
}

.node-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 50%;
    transition: border-color 1.5s ease, transform 1.5s ease;
    pointer-events: none;
}

.project-node:hover .node-ring {
    border-color: rgba(201, 168, 76, 0.35);
    transform: scale(1.05);
}

.node-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #d4a373;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.node-desc {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.8rem;
    color: #8a7d65;
    letter-spacing: 0.02em;
    line-height: 1.7;
}

/* ===== THE SIGNAL ===== */
.section-signal {
    min-height: 80vh;
}

.signal-content {
    max-width: 600px;
    text-align: center;
}

.signal-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: #f0e5c9;
    line-height: 1.9;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2.5s ease-out, transform 2.5s ease-out;
}

.signal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.signal-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    opacity: 0;
    transition: opacity 2s ease-out 0.5s;
}

.signal-stats.visible {
    opacity: 1;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #c9a84c;
}

.stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.7rem;
    color: #8a7d65;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* ===== THE COORDINATES ===== */
.section-coordinates {
    min-height: 70vh;
    padding-bottom: 8rem;
}

.coordinates-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease-out, transform 2s ease-out;
}

.coordinates-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.coord-link {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    color: #d4a373;
    text-decoration: none;
    letter-spacing: 0.06em;
    position: relative;
    transition: color 1s ease;
}

.coord-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a84c;
    transition: width 1s ease;
}

.coord-link:hover {
    color: #c9a84c;
}

.coord-link:hover::after {
    width: 100%;
}

.coord-divider {
    width: 1px;
    height: 16px;
    background: rgba(201, 168, 76, 0.2);
}

.coordinates-farewell {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    color: #8a7d65;
    letter-spacing: 0.12em;
    opacity: 0;
    transition: opacity 3s ease-out;
}

.coordinates-farewell.visible {
    opacity: 0.6;
}

/* ===== TWINKLE ANIMATION ===== */
@keyframes twinkle {
    0%, 100% { opacity: var(--star-opacity); }
    50% { opacity: calc(var(--star-opacity) * 0.3); }
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(201, 168, 76, 0.25);
    color: #fffef5;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.2);
    border-radius: 2px;
}
