:root {
    --sienna: #C0582A;
    --amber: #D4872E;
    --gold: #E8A64A;
    --dark: #1E1E1E;
    --void: #121210;
    --parchment: #E8DDD0;
    --khaki: #9E9588;
    --umber: #3A2E24;
    --white: #FFFFFF;
}

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

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

body {
    font-family: 'Source Sans 3', sans-serif;
    background-color: var(--void);
    color: var(--parchment);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: default;
}

/* ───────────────────────────────
   HUD STRIP
   ─────────────────────────────── */

.hud-strip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 24px;
    background: rgba(18, 18, 16, 0.88);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 100;
    border-bottom: 1px solid rgba(58, 46, 36, 0.5);
}

.hud-section-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: var(--amber);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hud-sweep {
    width: 120px;
    height: 2px;
    position: relative;
}

.hud-sweep-svg {
    width: 120px;
    height: 2px;
    display: block;
}

.hud-sweep-line {
    animation: sweepPulse 3s linear infinite;
}

.hud-indicators {
    display: flex;
    gap: 6px;
    align-items: center;
}

.hud-dot {
    width: 8px;
    height: 8px;
    display: block;
}

.hud-dot-amber {
    background: var(--amber);
}

.hud-dot-parchment {
    background: var(--parchment);
}

.hud-dot-sienna {
    background: var(--sienna);
}

/* ───────────────────────────────
   CURSOR FOLLOW RETICLE
   ─────────────────────────────── */

.cursor-reticle {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 200;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, border-width 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
    box-shadow: 0 0 15px rgba(232, 166, 74, 0.15);
    opacity: 0;
}

.cursor-reticle.active {
    opacity: 1;
}

.cursor-reticle.expanded {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

@media (hover: none) {
    .cursor-reticle {
        display: none;
    }
}

/* ───────────────────────────────
   STACKED SECTIONS (COMMON)
   ─────────────────────────────── */

.stacked-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Odd sections (0, 2, 4) = deep charcoal; Even sections (1, 3, 5) = warm black */
.stacked-section:nth-child(odd) {
    background: var(--dark);
}

.stacked-section:nth-child(even) {
    background: var(--void);
}

/* ───────────────────────────────
   BOKEH FIELDS
   ─────────────────────────────── */

.bokeh-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bokeh {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
}

/* ───────────────────────────────
   GRID OVERLAYS
   ─────────────────────────────── */

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image:
        repeating-linear-gradient(to right, var(--umber) 0px, var(--umber) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(to bottom, var(--umber) 0px, var(--umber) 1px, transparent 1px, transparent 60px);
    opacity: 0.15;
}

/* ───────────────────────────────
   ARC DECORATIONS
   ─────────────────────────────── */

.arc-decor {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.arc-hero-tl {
    top: 8%;
    left: 6%;
}

.arc-hero-br {
    bottom: 10%;
    right: 8%;
}

.arc-sec-br {
    bottom: 5%;
    right: 5%;
}

.arc-sec-tl {
    top: 5%;
    left: 5%;
}

.arc-rotate {
    animation: arcSpin 20s linear infinite;
    transform-origin: 50% 50%;
}

.arc-rotate-reverse {
    animation: arcSpinReverse 25s linear infinite;
    transform-origin: 50% 50%;
}

/* ───────────────────────────────
   INDICATOR DOTS
   ─────────────────────────────── */

.section-indicator-dots {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.section-indicator-dots-bottom {
    bottom: 5%;
}

.ind-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
}

.ind-dot-sienna {
    background: var(--sienna);
}

.ind-dot-amber {
    background: var(--amber);
}

.ind-dot-gold {
    background: var(--gold);
}

/* ───────────────────────────────
   SECTION 0: HERO
   ─────────────────────────────── */

.section-hero {
    background: var(--dark);
    flex-direction: column;
}

.hero-planet {
    position: absolute;
    width: clamp(280px, 40vw, 500px);
    height: clamp(280px, 40vw, 500px);
    border-radius: 50%;
    background: var(--sienna);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-orbit-ring {
    position: absolute;
    width: clamp(340px, 48vw, 600px);
    height: clamp(340px, 48vw, 600px);
    border-radius: 50%;
    border: 1px solid var(--amber);
    opacity: 0.3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: orbitSpin 60s linear infinite;
    will-change: transform;
}

.hero-content {
    position: absolute;
    bottom: 18%;
    left: 8%;
    z-index: 3;
    max-width: 500px;
}

.hero-title {
    font-family: 'Libre Franklin', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--parchment);
    line-height: 1;
    margin-bottom: 0.6rem;
}

.hero-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 400;
    color: var(--parchment);
    line-height: 1.75;
    opacity: 0.8;
}

/* ───────────────────────────────
   SECTIONS 1-4: DATA PLATES
   ─────────────────────────────── */

.section-data {
    padding: 0 6%;
}

.data-plate {
    display: flex;
    width: 100%;
    max-width: 1000px;
    gap: 3rem;
    position: relative;
    z-index: 3;
}

.plate-label-col {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.3rem;
}

.plate-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: var(--amber);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.plate-amber-line {
    width: 2px;
    height: 80px;
    background: var(--amber);
    opacity: 0.5;
}

.plate-content-col {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.plate-body {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 400;
    color: var(--parchment);
    line-height: 1.75;
}

.plate-shape {
    opacity: 0.6;
    display: block;
}

/* ───────────────────────────────
   SECTION 5: SIGNAL LOG
   ─────────────────────────────── */

.section-log {
    flex-direction: column;
    padding: 6rem 6%;
    background: var(--void);
}

.signal-log {
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 3;
}

.log-entry {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.log-timestamp {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: var(--amber);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.log-divider {
    display: block;
    width: 1px;
    height: 14px;
    background: var(--umber);
    flex-shrink: 0;
    align-self: center;
}

.log-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    font-weight: 400;
    color: var(--parchment);
    line-height: 1.6;
}

.log-separator {
    width: 100%;
    height: 1px;
    background: var(--umber);
    margin: 2.5rem 0;
}

.log-footer {
    text-align: left;
}

.log-domain {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 400;
    color: var(--amber);
    letter-spacing: 0.1em;
    opacity: 0.5;
}

/* ───────────────────────────────
   KEYFRAMES
   ─────────────────────────────── */

@keyframes sweepPulse {
    0% {
        transform: translateX(-30px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(120px);
        opacity: 0;
    }
}

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

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

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

/* ───────────────────────────────
   RESPONSIVE: TABLET (768px)
   ─────────────────────────────── */

@media (max-width: 768px) {
    .hud-strip {
        padding: 0 1rem;
    }

    .data-plate {
        flex-direction: column;
        gap: 1.5rem;
    }

    .plate-label-col {
        flex: none;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .plate-amber-line {
        width: 40px;
        height: 2px;
    }

    .plate-content-col {
        flex: none;
    }

    .hero-content {
        left: 5%;
        bottom: 12%;
    }

    .section-data {
        padding: 0 4%;
    }

    .log-entry {
        flex-direction: column;
        gap: 0.4rem;
    }

    .log-divider {
        display: none;
    }

    .section-log {
        padding: 4rem 4%;
    }
}

/* ───────────────────────────────
   RESPONSIVE: MOBILE (480px)
   ─────────────────────────────── */

@media (max-width: 480px) {
    .hud-sweep {
        display: none;
    }

    .hero-content {
        left: 4%;
        bottom: 10%;
        max-width: 90%;
    }

    .hero-planet {
        width: 220px;
        height: 220px;
    }

    .hero-orbit-ring {
        width: 280px;
        height: 280px;
    }

    .section-data {
        padding: 0 1.5rem;
    }

    .section-log {
        padding: 3rem 1.5rem;
    }

    .plate-shape {
        display: none;
    }

    .arc-decor {
        display: none;
    }

    .grid-overlay {
        display: none;
    }

    .bokeh:nth-child(n+3) {
        display: none;
    }
}
