/* ============================================
   diplomatic.quest — Styles
   Cartographic War Room / Dirigible Command Center
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --atlantic-midnight: #0A1E2A;
    --stratosphere-blue: #0D2B3A;
    --navigation-brass: #B8965A;
    --phosphor-green: #5AAF8A;
    --instrument-parchment: #C8D4CC;
    --verdigris-mist: #7A9A8A;
    --signal-flare: #D4623A;
    --patina-bronze: #4A5A3A;
    --radar-sweep: #1A6A8A;
    --dimmed-brass: #8A7A4E;
    --rivet-center: #C8B87A;
    --rivet-edge: #6A5A3A;
    --panel-inner-bg: #1A2F3A;
    --deep-surface: #0D1A1E;
    --ticker-border: #3A5A4A;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--atlantic-midnight);
    color: var(--instrument-parchment);
    font-family: 'Alegreya', Georgia, serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- SVG Defs (hidden) --- */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* --- Noise Overlay --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    filter: url(#noise);
    background: rgba(200, 212, 204, 0.5);
}

/* --- Altitude Indicator (Fixed Right Sidebar) --- */
.altitude-indicator {
    position: fixed;
    right: 0;
    top: 0;
    width: 3vw;
    min-width: 36px;
    height: 100vh;
    z-index: 100;
    background: rgba(10, 30, 42, 0.85);
    border-left: 1px solid rgba(74, 90, 58, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.altitude-track {
    position: relative;
    width: 100%;
    height: 80vh;
}

.altitude-tick {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.altitude-tick::before {
    content: '';
    position: absolute;
    left: 0;
    width: 40%;
    height: 1px;
    background: var(--dimmed-brass);
    opacity: 0.4;
}

.altitude-tick span {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.5rem, 0.8vw, 0.65rem);
    color: var(--verdigris-mist);
    opacity: 0.5;
    letter-spacing: 0.06em;
    margin-left: 2px;
}

.altitude-chevron {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--phosphor-green);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    filter: drop-shadow(0 0 4px rgba(90, 175, 138, 0.6));
    transition: top 0.15s ease-out;
}

/* --- Briefing Ribbon (Fixed Bottom Ticker) --- */
.briefing-ribbon {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: #0D1A1E;
    background: rgba(13, 26, 30, 0.95);
    border-top: 1px solid #3A5A4A;
    z-index: 100;
    overflow: hidden;
    display: flex;
    align-items: center;
    transform: translateY(48px);
    opacity: 0;
}

.briefing-ribbon.visible {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 60s linear infinite;
}

.ticker-content {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.7rem, 1.1vw, 0.85rem);
    color: var(--phosphor-green);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-right: 4rem;
    flex-shrink: 0;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 3vw;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 18vw 1fr 18vw;
    grid-template-rows: 18vh 1fr 18vh;
    grid-template-areas:
        "compass title baro"
        "compass map baro"
        "signal map clock";
    width: calc(100% - 3vw);
    height: 100%;
    gap: 12px;
    padding: 12px;
    position: relative;
}

/* --- Instrument Panels (Corner) --- */
.instrument-panel {
    background: rgba(13, 43, 58, 0.6);
    border: 1px solid rgba(138, 122, 78, 0.5);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.5s ease;
}

.instrument-panel.visible {
    opacity: 1;
}

.instrument-panel.collapsed {
    transform: scale(0.6);
    opacity: 0.3;
}

/* Panel rivets */
.panel-rivets::before,
.panel-rivets::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, var(--rivet-center), var(--rivet-edge));
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
    z-index: 2;
}
.panel-rivets::before {
    top: 8px;
    left: 8px;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.4),
        calc(100% - 22px) 0 0 0 var(--rivet-edge);
}
.panel-rivets::after {
    bottom: 8px;
    left: 8px;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.4),
        calc(100% - 22px) 0 0 0 var(--rivet-edge);
}

/* Individual panel corner rivets using background gradients */
.panel-rivets {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.corner-panel .panel-rivets::before {
    top: 8px;
    left: 8px;
}

/* --- Corner Panel positions --- */
#compassPanel {
    grid-area: compass;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

#baroPanel {
    grid-area: baro;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

#signalPanel {
    grid-area: signal;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
}

#clockPanel {
    grid-area: clock;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

/* --- Panel Header (instrument label) --- */
.panel-header {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: clamp(0.65rem, 1.2vw, 0.85rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navigation-brass);
    line-height: 1.15;
    margin-bottom: 8px;
}

/* --- Compass Rose --- */
.compass-rose {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.compass-ring {
    stroke-dasharray: 566;
    stroke-dashoffset: 566;
}

.compass-ring.drawn {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 2.2s ease-out;
}

.compass-needle {
    transform-origin: 100px 100px;
    transition: transform 0.1s ease-out;
}

.intercardinal-tick {
    animation: intercardinalPulse 4s ease-in-out infinite;
}
.intercardinal-tick:nth-child(5) { animation-delay: 0s; }
.intercardinal-tick:nth-child(6) { animation-delay: 0.5s; }
.intercardinal-tick:nth-child(7) { animation-delay: 1s; }
.intercardinal-tick:nth-child(8) { animation-delay: 1.5s; }

@keyframes intercardinalPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* --- Barometric Gauge --- */
.baro-gauge {
    width: 100%;
    max-width: 160px;
    height: auto;
}

#baroNeedle {
    transform-origin: 80px 80px;
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gauge-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.55rem, 0.9vw, 0.7rem);
    color: var(--verdigris-mist);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 6px;
    text-align: center;
}

/* --- Signal Intercept Panel --- */
.signal-feed {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.signal-line {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.6rem, 0.9vw, 0.75rem);
    color: var(--phosphor-green);
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.8;
    line-height: 1.4;
}

.signal-freq {
    color: var(--navigation-brass);
    margin-right: 8px;
}

.signal-msg {
    color: var(--phosphor-green);
}

/* --- Mission Clock --- */
.mission-clock {
    text-align: center;
}

.clock-display {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    color: var(--phosphor-green);
    letter-spacing: 0.1em;
    text-shadow: 0 0 8px rgba(90, 175, 138, 0.4);
}

.clock-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.5rem, 0.8vw, 0.65rem);
    color: var(--verdigris-mist);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.clock-date {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    color: var(--navigation-brass);
    letter-spacing: 0.06em;
}

/* --- Map Table (Center) --- */
.map-table {
    grid-area: map;
    position: relative;
    border: 2px solid var(--navigation-brass);
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, width 0.6s ease, height 0.6s ease;
}

.map-table.visible {
    opacity: 1;
}

.map-surface {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0D3B4F 0%, var(--atlantic-midnight) 100%);
    opacity: 0.9;
    position: relative;
}

.contour-lines,
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contour {
    transition: transform 8s ease-in-out;
}

/* Map Table border draw animation */
.map-table.drawing {
    border-color: transparent;
    background:
        linear-gradient(var(--atlantic-midnight), var(--atlantic-midnight)) padding-box,
        linear-gradient(to right, var(--navigation-brass), var(--navigation-brass)) border-box;
}

/* --- Hero Title --- */
.hero-title-area {
    grid-area: title;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 12px;
    z-index: 5;
}

.hero-title {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--navigation-brass);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid var(--navigation-brass);
    width: 0;
}

.hero-title.typing {
    animation: typeCursor 0.6s step-end infinite;
}

.hero-title.typed {
    width: auto;
    border-right-color: transparent;
}

@keyframes typeCursor {
    0%, 100% { border-right-color: var(--navigation-brass); }
    50% { border-right-color: transparent; }
}

.hero-subtitle {
    font-family: 'Alegreya', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(0.9rem, 1.6vw, 1.2rem);
    color: var(--instrument-parchment);
    letter-spacing: 0.04em;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-subtitle.visible {
    opacity: 1;
}

/* ============================================
   DISPATCH SECTION — Bento Grid
   ============================================ */
.dispatch-section {
    position: relative;
    padding: 60px 2vw 120px 2vw;
    padding-right: calc(3vw + 2vw);
    min-height: 100vh;
}

.wireframe-globe {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    max-width: 500px;
    height: auto;
    pointer-events: none;
    z-index: 0;
    animation: globeRotate 60s linear infinite;
}

@keyframes globeRotate {
    0% { transform: translate(-50%, -50%) rotateY(0deg); }
    100% { transform: translate(-50%, -50%) rotateY(360deg); }
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* --- Bento Panel --- */
.bento-panel {
    background: rgba(13, 43, 58, 0.7);
    border: 1px solid var(--patina-bronze);
    border-radius: 4px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.4s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    perspective: 1000px;
}

.bento-panel.visible {
    transform: scale(1);
    opacity: 1;
}

.bento-panel:hover {
    border-color: var(--navigation-brass);
    transform: translateY(-3px) scale(1);
    box-shadow: 0 6px 20px rgba(10, 30, 42, 0.5);
}

/* Outline effect: inner border */
.bento-panel::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid var(--dimmed-brass);
    border-radius: 2px;
    pointer-events: none;
    opacity: 0.3;
}

/* Span classes */
.span-2 {
    grid-column: span 2;
}

.span-row-2 {
    grid-row: span 2;
}

/* Panel content */
.bento-panel .panel-coord {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.6rem, 0.9vw, 0.75rem);
    color: var(--phosphor-green);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.8;
}

.bento-panel .panel-body {
    position: relative;
    z-index: 1;
}

.bento-panel .panel-body p {
    margin-bottom: 12px;
    color: var(--instrument-parchment);
}

.bento-panel .panel-body p:last-child {
    margin-bottom: 0;
}

/* Panel back (hidden, revealed on expand) */
.bento-panel .panel-back {
    display: none;
    padding-top: 16px;
    border-top: 1px solid rgba(138, 122, 78, 0.3);
    margin-top: 16px;
}

.bento-panel .panel-back p {
    color: var(--instrument-parchment);
    font-style: italic;
}

/* Expanded panel */
.bento-panel.expanded {
    position: fixed;
    top: 5vh;
    left: 5vw;
    width: 87vw;
    height: 85vh;
    z-index: 500;
    overflow-y: auto;
    transform: scale(1);
    border-color: var(--navigation-brass);
    background: rgba(13, 43, 58, 0.97);
    box-shadow: 0 0 60px rgba(10, 30, 42, 0.9);
    padding: 40px;
    cursor: default;
}

.bento-panel.expanded .panel-back {
    display: block;
}

.bento-panel.dimmed {
    opacity: 0.15;
    pointer-events: none;
}

/* --- Bar Chart --- */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 140px;
    padding-top: 10px;
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.bar-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.45rem, 0.7vw, 0.6rem);
    color: var(--verdigris-mist);
    letter-spacing: 0.04em;
    margin-top: 6px;
    text-transform: uppercase;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(to top, var(--phosphor-green), rgba(90, 175, 138, 0.4));
    border-radius: 2px 2px 0 0;
    min-height: 4px;
    transition: height 0.8s ease-out;
}

/* --- Registry Entries --- */
.registry-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(74, 90, 58, 0.2);
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.6rem, 0.9vw, 0.75rem);
    letter-spacing: 0.04em;
}

.reg-callsign {
    color: var(--navigation-brass);
    min-width: 80px;
}

.reg-status {
    font-size: clamp(0.5rem, 0.7vw, 0.6rem);
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.reg-status.active {
    color: var(--phosphor-green);
    border: 1px solid rgba(90, 175, 138, 0.4);
}

.reg-status.standby {
    color: var(--verdigris-mist);
    border: 1px solid rgba(122, 154, 138, 0.3);
}

.reg-status.transit {
    color: var(--navigation-brass);
    border: 1px solid rgba(184, 150, 90, 0.4);
}

.reg-status.recalled {
    color: var(--signal-flare);
    border: 1px solid rgba(212, 98, 58, 0.4);
}

.reg-sector {
    color: var(--verdigris-mist);
    margin-left: auto;
}

/* --- Weather Data --- */
.weather-data {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wx-row {
    display: flex;
    justify-content: space-between;
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.6rem, 0.9vw, 0.75rem);
    letter-spacing: 0.04em;
}

.wx-label {
    color: var(--verdigris-mist);
}

.wx-value {
    color: var(--phosphor-green);
}

.wx-value.alert {
    color: var(--signal-flare);
    font-weight: 700;
}

/* --- Treaty List --- */
.treaty-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.treaty-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.6rem, 0.9vw, 0.75rem);
    letter-spacing: 0.04em;
}

.treaty-name {
    color: var(--instrument-parchment);
}

.treaty-status {
    font-size: clamp(0.5rem, 0.7vw, 0.6rem);
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.treaty-status.ratified {
    color: var(--phosphor-green);
    border: 1px solid rgba(90, 175, 138, 0.4);
}

.treaty-status.disputed {
    color: var(--signal-flare);
    border: 1px solid rgba(212, 98, 58, 0.4);
}

.treaty-status.pending {
    color: var(--navigation-brass);
    border: 1px solid rgba(184, 150, 90, 0.4);
}

.treaty-status.draft {
    color: var(--verdigris-mist);
    border: 1px solid rgba(122, 154, 138, 0.3);
}

/* --- Fuel Gauge --- */
.fuel-gauge {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fuel-bar {
    width: 100%;
    height: 12px;
    background: rgba(10, 30, 42, 0.6);
    border: 1px solid var(--patina-bronze);
    border-radius: 2px;
    overflow: hidden;
}

.fuel-bar.secondary {
    height: 8px;
    margin-top: 4px;
}

.fuel-level {
    height: 100%;
    background: linear-gradient(to right, var(--phosphor-green), rgba(90, 175, 138, 0.6));
    border-radius: 1px;
    transition: width 1s ease;
}

.fuel-level.reserve {
    background: linear-gradient(to right, var(--navigation-brass), rgba(184, 150, 90, 0.6));
}

.fuel-readout {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.55rem, 0.85vw, 0.7rem);
    color: var(--phosphor-green);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ============================================
   FINALE — Radar Sweep
   ============================================ */
.finale {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 2vw 100px 2vw;
    padding-right: calc(3vw + 2vw);
}

.radar-container {
    width: 60vw;
    max-width: 500px;
    aspect-ratio: 1;
    margin-bottom: 40px;
}

.radar-display {
    width: 100%;
    height: 100%;
}

#radarSweep {
    transform-origin: 200px 200px;
    animation: radarSpin 3s linear infinite;
}

@keyframes radarSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Radar sweep trail using conic gradient overlay */
.radar-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(90, 175, 138, 0.15) 0deg,
        rgba(90, 175, 138, 0) 90deg,
        transparent 90deg,
        transparent 360deg
    );
    animation: radarSpin 3s linear infinite;
    pointer-events: none;
}

.radar-container {
    position: relative;
}

.finale-text {
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.finale-text.visible {
    opacity: 1;
}

.closing-quote {
    font-family: 'Alegreya', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    color: var(--instrument-parchment);
    letter-spacing: 0.02em;
    line-height: 1.72;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE — Below 768px
   ============================================ */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto auto;
        grid-template-areas:
            "title"
            "compass"
            "baro"
            "map"
            "signal"
            "clock";
        width: 100%;
        padding: 12px;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-right: 0;
    }

    .corner-panel {
        max-height: 200px;
    }

    #compassPanel {
        max-width: 200px;
        margin: 0 auto;
        height: 200px;
    }

    #baroPanel {
        max-width: 200px;
        margin: 0 auto;
        height: 200px;
    }

    .map-table {
        height: 50vh;
        min-height: 300px;
    }

    .altitude-indicator {
        display: none;
    }

    .dispatch-section {
        padding-right: 2vw;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .span-row-2 {
        grid-row: span 1;
    }

    .radar-container {
        width: 80vw;
    }

    .finale {
        padding-right: 2vw;
    }

    .hero-title {
        font-size: clamp(1.4rem, 6vw, 2.2rem);
        letter-spacing: 0.1em;
    }

    .bento-panel.expanded {
        top: 2vh;
        left: 2vw;
        width: 96vw;
        height: 92vh;
        padding: 20px;
    }
}

/* ============================================
   ANIMATIONS — Contour line drift
   ============================================ */
@keyframes contourDrift1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(3px, -2px); }
}
@keyframes contourDrift2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2px, 4px); }
}
@keyframes contourDrift3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5px, 2px); }
}
@keyframes contourDrift4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-3px, -5px); }
}

.contour.c1 { animation: contourDrift1 8s ease-in-out infinite; }
.contour.c2 { animation: contourDrift2 9s ease-in-out infinite 0.5s; }
.contour.c3 { animation: contourDrift3 10s ease-in-out infinite 1s; }
.contour.c4 { animation: contourDrift4 11s ease-in-out infinite 1.5s; }
.contour.c5 { animation: contourDrift1 9s ease-in-out infinite 2s; }
.contour.c6 { animation: contourDrift2 8s ease-in-out infinite 2.5s; }
.contour.c7 { animation: contourDrift3 10s ease-in-out infinite 3s; }
.contour.c8 { animation: contourDrift4 9s ease-in-out infinite 3.5s; }

/* ============================================
   SCROLLBAR HIDE (using altitude indicator instead)
   ============================================ */
body::-webkit-scrollbar {
    width: 0;
    background: transparent;
}
body {
    scrollbar-width: none;
}

/* ============================================
   PAGE LOAD PADDING for fixed elements
   ============================================ */
body {
    padding-bottom: 48px;
}
