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

:root {
    --deep-black: #0a0e1a;
    --deeper-black: #06080f;
    --warm-gold: #c0a870;
    --warm-parchment: #d4d0c8;
    --off-white: #f0ece4;
    --navy: #2a3f6e;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--deeper-black);
    color: var(--warm-parchment);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    cursor: none;
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 168, 112, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ===== BOKEH FIELD ===== */
.bokeh-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    animation: bokeh-drift linear infinite;
}

@keyframes bokeh-drift {
    0% { transform: translate(0, 0) scale(1); opacity: var(--bokeh-opacity); }
    25% { transform: translate(10px, -15px) scale(1.05); }
    50% { transform: translate(-5px, -25px) scale(0.95); opacity: calc(var(--bokeh-opacity) * 0.6); }
    75% { transform: translate(-15px, -10px) scale(1.02); }
    100% { transform: translate(0, 0) scale(1); opacity: var(--bokeh-opacity); }
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    mix-blend-mode: difference;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--off-white);
    letter-spacing: 0.05em;
}

.logo-dot {
    color: var(--warm-gold);
}

.header-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--warm-parchment);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.4s ease, color 0.4s ease;
}

.nav-link:hover {
    opacity: 1;
    color: var(--warm-gold);
}

/* ===== CONSTELLATION MAIN ===== */
#constellation {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 300vh;
    padding: 120px 40px 200px;
}

/* ===== BLOCKS ===== */
.block {
    position: absolute;
    padding: 32px;
    border: 1px solid rgba(192, 168, 112, 0.08);
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.4s ease;
}

.block.visible {
    opacity: 1;
    transform: translateY(0);
}

.block:hover {
    border-color: rgba(192, 168, 112, 0.25);
}

/* Block positions — constellation-mapped, asymmetric */
.block-01 {
    top: 80px;
    left: 8%;
    width: clamp(280px, 30vw, 420px);
}

.block-02 {
    top: 220px;
    right: 10%;
    width: clamp(240px, 25vw, 360px);
}

.block-03 {
    top: 520px;
    left: 15%;
    width: clamp(300px, 32vw, 440px);
}

.block-04 {
    top: 680px;
    right: 5%;
    width: clamp(260px, 28vw, 380px);
}

.block-05 {
    top: 980px;
    left: 5%;
    width: clamp(280px, 30vw, 400px);
}

.block-06 {
    top: 1150px;
    left: 40%;
    width: clamp(300px, 32vw, 440px);
}

.block-07 {
    top: 1450px;
    right: 12%;
    width: clamp(260px, 26vw, 380px);
}

.block-08 {
    top: 1700px;
    left: 10%;
    width: clamp(300px, 30vw, 420px);
}

.block-09 {
    top: 1900px;
    left: 50%;
    width: clamp(200px, 20vw, 300px);
}

.block-10 {
    top: 2150px;
    left: 20%;
    width: clamp(260px, 28vw, 380px);
}

/* ===== BLOCK ELEMENTS ===== */
.block-index {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--warm-gold);
    opacity: 0.4;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 16px;
}

.block-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.05;
    color: var(--off-white);
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.block-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--warm-gold);
    margin-bottom: 16px;
}

.block-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--warm-parchment);
    opacity: 0.7;
}

.gold-text {
    color: var(--warm-gold);
    opacity: 1;
}

/* ===== HAIRLINES ===== */
.hairline {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--warm-gold), transparent);
    opacity: 0.3;
    margin: 20px 0;
}

/* ===== CONSTELLATION LINES ===== */
.constellation-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, rgba(192, 168, 112, 0.15), transparent);
    margin-bottom: 20px;
}

.constellation-line.vertical {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, rgba(192, 168, 112, 0.15), transparent);
    margin-bottom: 20px;
}

/* ===== DATA GRID ===== */
.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.data-grid.single {
    grid-template-columns: 1fr;
}

.data-cell {
    border: 1px solid rgba(192, 168, 112, 0.06);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.data-cell.wide {
    text-align: center;
    padding: 24px;
}

.data-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--warm-gold);
    opacity: 0.5;
}

.data-value {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--off-white);
}

.data-value.large {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

/* ===== FOOTER ===== */
.site-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    padding: 40px;
    border-top: 1px solid rgba(192, 168, 112, 0.06);
}

.footer-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--warm-parchment);
    opacity: 0.3;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(192, 168, 112, 0.2);
    color: var(--off-white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .block {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        margin-bottom: 24px;
    }

    #constellation {
        min-height: auto;
        padding: 100px 20px 100px;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .site-header {
        padding: 16px 20px;
    }

    .site-footer {
        padding: 24px 20px;
        flex-direction: column;
        gap: 8px;
    }

    body {
        cursor: auto;
    }

    .cursor-glow {
        display: none;
    }
}
