/* ==========================================================================
   RRIDDL.com — Pastoral HUD Observatory
   A masonry field viewed through a telescope's focus ring
   Design tokens retained: IntersectionObserver pattern: observe each tile;
   Interstitial Moments:** Moments:* Moments Between masonry sections; JetBrains Mono at 0.75rem
   in Scan Line Cyan. JetBrains Mono"; Lora italic at 1.2rem fades in 2s
   after load: a short evocative phrase. The entire hero section uses
   `min-height: 100vh` and `display: grid`; Lora's romantic curves. Lora"
   (Google Fonts named in design, rendered here through local/standard fallbacks).
   ========================================================================== */

:root {
    --c-gold: #f7d794;
    --c-coral: #e77f67;
    --c-sienna: #c0392b;
    --c-plum: #6c3461;
    --c-parchment: #fef5e7;
    --c-lavender: #c39bd3;
    --c-charcoal: #2c2c34;
    --c-cyan: #76d7c4;

    --tile-border: rgba(247, 215, 148, 0.32);
    --hud-border: rgba(118, 215, 196, 0.45);

    --font-display: "Recursive", "Inter", system-ui, sans-serif;
    --font-body: "Lora", Georgia, serif;
    --font-mono: "JetBrains Mono", "Space Mono", monospace;

    --radius: 12px;
    --tile-gap: 24px;
}

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

html {
    scroll-behavior: smooth;
    background: var(--c-parchment);
}

body {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw + 0.5rem, 1.25rem);
    line-height: 1.75;
    color: var(--c-charcoal);
    background:
        radial-gradient(circle at 15% 10%, rgba(247, 215, 148, 0.35), transparent 40%),
        radial-gradient(circle at 85% 5%, rgba(195, 155, 211, 0.25), transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(231, 127, 103, 0.18), transparent 60%),
        radial-gradient(circle at 20% 90%, rgba(108, 52, 97, 0.28), transparent 50%),
        var(--c-parchment);
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: var(--c-plum);
    color: var(--c-gold);
}

/* Paper grain overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(44, 44, 52, 0.015) 2px, rgba(44, 44, 52, 0.015) 3px);
    mix-blend-mode: multiply;
    opacity: 0.6;
}

/* Scan line sweep across whole page */
body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: -2px;
    height: 2px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(90deg, transparent 0%, rgba(118, 215, 196, 0.25) 40%, rgba(118, 215, 196, 0.7) 50%, rgba(118, 215, 196, 0.25) 60%, transparent 100%);
    animation: globalScan 8s linear infinite;
    box-shadow: 0 0 14px rgba(118, 215, 196, 0.35);
}

@keyframes globalScan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

/* ==========================================================================
   HUD NAVIGATION GLOBE
   ========================================================================== */

.hud-globe {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: rgba(44, 44, 52, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(118, 215, 196, 0.4);
    border-radius: 50%;
    z-index: 100;
    transition: width 0.45s cubic-bezier(0.2, 0.9, 0.2, 1.1), height 0.45s cubic-bezier(0.2, 0.9, 0.2, 1.1), box-shadow 0.45s ease;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(118, 215, 196, 0);
}

.hud-globe::before {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px dashed rgba(118, 215, 196, 0.3);
    border-radius: 50%;
    animation: hudSpin 20s linear infinite;
}

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

.hud-globe.open,
.hud-globe:hover {
    width: 220px;
    height: 220px;
    box-shadow: 0 0 40px rgba(118, 215, 196, 0.3), inset 0 0 20px rgba(118, 215, 196, 0.1);
}

.hud-core {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    grid-template-columns: 1fr;
    transition: opacity 0.3s ease;
}

.hud-core-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--c-cyan);
    text-shadow: 0 0 6px rgba(118, 215, 196, 0.8);
    grid-row: 1;
    align-self: end;
    padding-bottom: 2px;
}

.hud-core-dot {
    width: 6px;
    height: 6px;
    background: var(--c-cyan);
    border-radius: 50%;
    grid-row: 2;
    align-self: start;
    box-shadow: 0 0 10px var(--c-cyan);
    animation: corePulse 1.6s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

.hud-links {
    position: absolute;
    inset: 0;
    list-style: none;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease 0.1s;
}

.hud-globe.open .hud-links,
.hud-globe:hover .hud-links {
    opacity: 1;
    pointer-events: auto;
}

.hud-links li {
    position: absolute;
    transform: rotate(var(--angle)) translateX(80px) rotate(calc(var(--angle) * -1));
    transition: transform 0.4s ease;
}

.hud-links a {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    color: var(--c-cyan);
    text-decoration: none;
    white-space: nowrap;
    padding: 4px 8px;
    border: 1px solid rgba(118, 215, 196, 0.25);
    border-radius: 4px;
    background: rgba(44, 44, 52, 0.65);
    transition: all 0.25s ease;
    text-shadow: 0 0 4px rgba(118, 215, 196, 0.6);
}

.hud-links a:hover {
    background: rgba(118, 215, 196, 0.15);
    border-color: var(--c-cyan);
    color: var(--c-parchment);
}

/* ==========================================================================
   HERO — OPENING SCAN SEQUENCE
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 2rem;
    isolation: isolate;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, var(--c-gold) 0%, var(--c-coral) 70%, var(--c-sienna) 100%);
    z-index: -3;
}

.hero-gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(195, 155, 211, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(247, 215, 148, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(108, 52, 97, 0.3) 0%, transparent 60%);
    mix-blend-mode: multiply;
}

.hero-grain {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        repeating-linear-gradient(180deg, transparent, transparent 3px, rgba(255, 255, 255, 0.03) 3px, rgba(255, 255, 255, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(44, 44, 52, 0.03) 3px, rgba(44, 44, 52, 0.03) 4px);
}

.hero-rings {
    position: absolute;
    width: min(90vw, 640px);
    height: min(90vw, 640px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.hero-rings .ring {
    fill: none;
    stroke: var(--c-cyan);
    stroke-width: 1.2;
    opacity: 0.4;
    transform-origin: center;
    animation: ringPulse 4s ease-in-out infinite;
}

.hero-rings .ring-1 { animation-delay: 0s; }
.hero-rings .ring-2 { animation-delay: 0.5s; opacity: 0.35; }
.hero-rings .ring-3 { animation-delay: 1s; opacity: 0.3; }

.hero-rings .ring-crosshair {
    fill: none;
    stroke: var(--c-cyan);
    stroke-width: 1;
    opacity: 0.55;
}

.hero-rings line {
    stroke: var(--c-cyan);
    stroke-width: 1;
    opacity: 0.55;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.2; }
    50% { transform: scale(1.2); opacity: 0.55; }
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    max-width: 90%;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 800;
    font-variation-settings: "CASL" 0.5, "slnt" 0, "CRSV" 0, "MONO" 0;
    letter-spacing: 0.04em;
    color: var(--c-charcoal);
    line-height: 1;
    display: inline-flex;
    gap: 0.04em;
    text-shadow:
        0 0 20px rgba(247, 215, 148, 0.6),
        0 2px 0 rgba(231, 127, 103, 0.4);
}

.hero-title .letter {
    display: inline-block;
    opacity: 0;
    filter: blur(6px);
    transform: translateY(10px);
    animation: letterFocus 1.2s ease-out forwards;
    animation-delay: calc(var(--i) * 0.3s + 0.3s);
}

@keyframes letterFocus {
    0% { opacity: 0; filter: blur(12px); transform: translateY(20px) scale(0.8); font-variation-settings: "CASL" 0, "wght" 200; }
    60% { opacity: 0.8; filter: blur(4px); font-variation-settings: "CASL" 0.8, "wght" 500; }
    100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); font-variation-settings: "CASL" 0.5, "wght" 800; }
}

.hero-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    color: var(--c-charcoal);
    opacity: 0;
    margin: 2rem auto 0;
    max-width: 40ch;
    animation: fadeUp 1.2s ease-out 2s forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
    to { opacity: 0.85; transform: translateY(0); filter: blur(0); }
}

.hero-meta {
    margin-top: 2.5rem;
    display: inline-flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 1.2s ease-out 2.6s forwards;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    color: var(--c-plum);
}

.meta-dash {
    width: 36px;
    height: 1px;
    background: var(--c-plum);
}

.hero-readout {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--c-cyan);
    text-shadow: 0 0 8px rgba(118, 215, 196, 0.6);
    background: rgba(44, 44, 52, 0.4);
    padding: 8px 14px;
    border: 1px solid rgba(118, 215, 196, 0.3);
    border-radius: 4px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    animation: readoutFade 1s ease-out 1.8s forwards;
    line-height: 1.6;
}

@keyframes readoutFade {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 0.9; transform: translateY(0); }
}

.hero-readout-tl { top: 32px; left: 32px; }
.hero-readout-tr { top: 32px; left: 50%; transform: translateX(-50%); text-align: center; }
.hero-readout-bl { bottom: 80px; left: 32px; }
.hero-readout-br { bottom: 80px; right: 32px; text-align: right; }

.hero-scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    color: var(--c-plum);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: fadeUp 1s ease-out 3.2s forwards;
}

.hint-arrow {
    animation: bob 2s ease-in-out infinite;
    font-size: 1rem;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(6px); opacity: 1; }
}

/* ==========================================================================
   HORIZON BANDS
   ========================================================================== */

.horizon-band {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(to top, var(--c-plum), var(--c-coral), var(--c-gold));
    isolation: isolate;
}

.horizon-band.horizon-deeper {
    background: linear-gradient(to top, #3d1e38, var(--c-plum), var(--c-coral));
}

.horizon-band.horizon-deepest {
    background: linear-gradient(to top, var(--c-charcoal), var(--c-plum), #9b4a6d);
}

.horizon-hill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: translateY(var(--horizon-shift, 0));
    transition: transform 0.1s linear;
}

.horizon-hill path {
    fill: rgba(44, 44, 52, 0.5);
}

.horizon-hill .horizon-tree {
    stroke: var(--c-charcoal);
    stroke-width: 1.2;
    fill: none;
    opacity: 0.75;
}

.horizon-hill .horizon-sun {
    fill: var(--c-gold);
    filter: drop-shadow(0 0 12px rgba(247, 215, 148, 0.6));
    opacity: 0.95;
}

.horizon-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to bottom, transparent 40px, rgba(118, 215, 196, 0.15) 40px, rgba(118, 215, 196, 0.15) 41px, transparent 41px, transparent 90px, rgba(118, 215, 196, 0.12) 90px, rgba(118, 215, 196, 0.12) 91px, transparent 91px, transparent 140px, rgba(118, 215, 196, 0.1) 140px, rgba(118, 215, 196, 0.1) 141px, transparent 141px);
}

.horizon-scanlines::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
    opacity: 0.6;
    animation: horizonSweep 5s linear infinite;
}

@keyframes horizonSweep {
    0% { transform: translateY(0); }
    100% { transform: translateY(200px); }
}

/* ==========================================================================
   SECTION LABELS
   ========================================================================== */

section.observation,
section.field-notes,
section.archives {
    position: relative;
    padding: 4rem clamp(1.5rem, 4vw, 4rem) 3rem;
    z-index: 3;
}

.section-label {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(108, 52, 97, 0.3);
}

.label-code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    color: var(--c-sienna);
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-variation-settings: "CASL" 0.4;
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    color: var(--c-plum);
    letter-spacing: -0.01em;
    transition: font-variation-settings 0.6s ease;
    cursor: default;
}

.section-title:hover {
    font-variation-settings: "CASL" 1, "wght" 900;
}

.label-co {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--c-charcoal);
    opacity: 0.65;
    text-align: right;
}

/* ==========================================================================
   MASONRY GRID
   ========================================================================== */

.masonry {
    columns: 4;
    column-gap: var(--tile-gap);
}

@media (max-width: 1400px) {
    .masonry { columns: 3; }
}

@media (max-width: 1000px) {
    .masonry { columns: 2; }
}

@media (max-width: 640px) {
    .masonry { columns: 1; }
}

/* ==========================================================================
   TILES
   ========================================================================== */

.tile {
    position: relative;
    break-inside: avoid;
    margin-bottom: var(--tile-gap);
    border: 1px solid rgba(255, 183, 122, 0.25);
    border-radius: var(--radius);
    background: rgba(254, 245, 231, 0.85);
    backdrop-filter: blur(2px);
    overflow: hidden;
    isolation: isolate;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;

    /* Blur-focus entry state */
    opacity: 0.6;
    filter: blur(8px);
    transform: translateY(20px);
    will-change: opacity, filter, transform;
}

.tile.in-focus {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    transition: opacity 0.7s ease-out var(--stagger-delay, 0s), filter 0.7s ease-out var(--stagger-delay, 0s), transform 0.7s ease-out var(--stagger-delay, 0s);
}

.tile:hover {
    border-color: rgba(118, 215, 196, 0.5);
    box-shadow: 0 8px 40px rgba(108, 52, 97, 0.18), 0 0 0 1px rgba(118, 215, 196, 0.15);
    transform: translateY(-2px);
}

/* Corner brackets */
.tile-corners::before,
.tile-corners::after,
.tile-corners {
    pointer-events: none;
}

.tile-corners {
    position: absolute;
    inset: 6px;
    z-index: 3;
}

.tile-corners::before,
.tile-corners::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--c-cyan);
    opacity: 0.7;
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.tile-corners::before {
    top: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0;
}

.tile-corners::after {
    bottom: 0;
    right: 0;
    border-left: 0;
    border-top: 0;
}

.tile:hover .tile-corners::before,
.tile:hover .tile-corners::after {
    width: 20px;
    height: 20px;
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(118, 215, 196, 0.7));
}

/* Scan line */
.tile-scanline {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(118, 215, 196, 0.6), transparent);
    z-index: 2;
    pointer-events: none;
    animation: tileScan 6s linear infinite;
    animation-delay: var(--scan-delay, 0s);
}

@keyframes tileScan {
    0% { transform: translateY(0); opacity: 0.8; }
    95% { opacity: 0.8; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* Watercolor washes */
.tile-wash {
    position: absolute;
    inset: 0;
    z-index: 0;
    mix-blend-mode: multiply;
    opacity: 0.55;
    filter: blur(14px);
}

.wash-amber {
    background:
        radial-gradient(circle at 20% 30%, var(--c-gold) 0%, transparent 40%),
        radial-gradient(circle at 75% 65%, var(--c-coral) 0%, transparent 50%),
        radial-gradient(circle at 40% 85%, var(--c-lavender) 0%, transparent 40%);
}

.wash-coral {
    background:
        radial-gradient(circle at 60% 20%, var(--c-coral) 0%, transparent 45%),
        radial-gradient(circle at 20% 70%, var(--c-sienna) 0%, transparent 40%),
        radial-gradient(circle at 80% 90%, var(--c-gold) 0%, transparent 45%);
}

.wash-lavender {
    background:
        radial-gradient(circle at 30% 40%, var(--c-lavender) 0%, transparent 45%),
        radial-gradient(circle at 70% 70%, var(--c-plum) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, var(--c-coral) 0%, transparent 40%);
}

.wash-plum {
    background:
        radial-gradient(circle at 40% 50%, var(--c-plum) 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, var(--c-lavender) 0%, transparent 40%),
        radial-gradient(circle at 20% 90%, var(--c-sienna) 0%, transparent 45%);
}

/* Story tiles */
.tile-story {
    padding: 1.6rem 1.5rem 1.75rem;
}

.tile-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: var(--c-sienna);
    text-transform: uppercase;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.tile-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-variation-settings: "CASL" 0.3;
    font-size: clamp(1.15rem, 1.6vw, 1.5rem);
    color: var(--c-plum);
    line-height: 1.2;
    margin-bottom: 0.9rem;
    letter-spacing: -0.01em;
    transition: font-variation-settings 0.5s ease, color 0.3s ease;
    position: relative;
    z-index: 1;
    cursor: default;
}

.tile-title:hover {
    font-variation-settings: "CASL" 1, "wght" 900;
    color: var(--c-sienna);
}

.tile-story p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--c-charcoal);
    position: relative;
    z-index: 1;
}

.tile-story p + p {
    margin-top: 1em;
}

.tile-story em {
    font-style: italic;
    color: var(--c-plum);
    font-weight: 500;
}

.tile-signoff {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(108, 52, 97, 0.25);
    font-family: var(--font-mono);
    font-size: 0.75rem !important;
    letter-spacing: 0.08em;
    color: var(--c-plum) !important;
    opacity: 0.9;
}

.tile-quote {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.55;
    color: var(--c-plum);
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 2px solid var(--c-coral);
    position: relative;
    z-index: 1;
}

/* Image tiles */
.tile-image {
    padding: 0;
    overflow: hidden;
}

.tile-image .pastoral {
    display: block;
    width: 100%;
    height: auto;
}

.tile-caption {
    padding: 0.75rem 1rem;
    background: rgba(44, 44, 52, 0.85);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--c-cyan);
    text-shadow: 0 0 6px rgba(118, 215, 196, 0.4);
    border-top: 1px solid rgba(118, 215, 196, 0.3);
}

.tile-caption .coord {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tile-caption .coord::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--c-cyan);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--c-cyan);
    animation: corePulse 2s ease-in-out infinite;
}

/* Data tiles */
.tile-data {
    padding: 1.25rem 1.25rem 1.3rem;
    background: linear-gradient(155deg, rgba(44, 44, 52, 0.95), rgba(44, 44, 52, 0.85));
    color: var(--c-cyan);
    border-color: rgba(118, 215, 196, 0.3);
}

.tile-data .tile-corners::before,
.tile-data .tile-corners::after {
    border-color: var(--c-cyan);
    opacity: 0.85;
}

.data-header {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: var(--c-cyan);
    text-shadow: 0 0 4px rgba(118, 215, 196, 0.5);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed rgba(118, 215, 196, 0.25);
}

.data-pulse {
    width: 8px;
    height: 8px;
    background: var(--c-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--c-cyan);
    animation: corePulse 1.4s ease-in-out infinite;
}

.data-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.data-list.compact {
    grid-template-columns: repeat(3, 1fr);
    font-size: 0.72rem;
}

.data-list > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 6px;
    background: rgba(118, 215, 196, 0.05);
    border: 1px solid rgba(118, 215, 196, 0.15);
    border-radius: 3px;
}

.data-list dt {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: rgba(118, 215, 196, 0.7);
    text-transform: uppercase;
}

.data-list dd {
    color: var(--c-gold);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-shadow: 0 0 6px rgba(247, 215, 148, 0.4);
}

/* Spectrum bars */
.spectrum {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
    gap: 6px;
    height: 80px;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

.spec-bar {
    height: var(--h);
    background: linear-gradient(to top, var(--c, var(--c-cyan)), transparent);
    border-top: 2px solid var(--c, var(--c-cyan));
    box-shadow: 0 0 8px var(--c, var(--c-cyan));
    animation: specPulse 3s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.2s);
    transform-origin: bottom;
}

@keyframes specPulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.7); }
}

.spec-legend {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    color: rgba(118, 215, 196, 0.75);
    text-align: center;
    margin-top: 0.5rem;
}

/* Palette swatches */
.palette-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 0.5rem;
}

.swatch {
    aspect-ratio: 1;
    background: var(--c);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(118, 215, 196, 0.2);
    display: grid;
    place-items: end start;
}

.swatch span {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--c-charcoal);
    background: rgba(254, 245, 231, 0.85);
    padding: 1px 4px;
    letter-spacing: 0.05em;
    border-radius: 2px;
    margin: 4px;
}

/* Waveform */
.waveform {
    width: 100%;
    height: 60px;
    margin-bottom: 0.75rem;
}

.wave-line {
    stroke: var(--c-cyan);
    stroke-width: 1.2;
    filter: drop-shadow(0 0 3px var(--c-cyan));
    animation: waveShift 4s ease-in-out infinite;
}

.wave-line-2 {
    stroke: var(--c-gold);
    opacity: 0.55;
    filter: drop-shadow(0 0 3px var(--c-gold));
    animation-delay: 0.5s;
}

@keyframes waveShift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Transmission list */
.transmission-list {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.transmission-list li {
    display: grid;
    grid-template-columns: 50px 70px 14px 1fr;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(118, 215, 196, 0.15);
    color: var(--c-cyan);
}

.transmission-list .t-time {
    color: rgba(118, 215, 196, 0.6);
}

.transmission-list .t-id {
    color: var(--c-gold);
    text-shadow: 0 0 4px rgba(247, 215, 148, 0.3);
}

.t-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-cyan);
    box-shadow: 0 0 6px var(--c-cyan);
    opacity: 0.8;
}

.t-dot.active {
    background: var(--c-gold);
    box-shadow: 0 0 10px var(--c-gold);
    animation: corePulse 1s ease-in-out infinite;
}

.t-dot.queued {
    background: transparent;
    border: 1px solid var(--c-cyan);
    box-shadow: none;
    opacity: 0.5;
}

/* Horizon clock */
.horizon-clock {
    position: relative;
    height: 60px;
    margin-bottom: 0.5rem;
}

.hc-track {
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, var(--c-charcoal), var(--c-plum), var(--c-coral), var(--c-gold), var(--c-coral), var(--c-plum), var(--c-charcoal));
    opacity: 0.85;
}

.hc-track::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(to right, transparent, rgba(247, 215, 148, 0.15), transparent);
}

.hc-sun {
    position: absolute;
    top: 22px;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--c-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--c-gold), 0 0 20px rgba(247, 215, 148, 0.5);
    transform: translateX(-50%);
    animation: sunTrack 30s linear infinite;
}

@keyframes sunTrack {
    0% { left: 0%; }
    100% { left: 100%; }
}

.hc-labels {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: rgba(118, 215, 196, 0.7);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    position: relative;
    padding: 4rem clamp(1.5rem, 4vw, 4rem) 3rem;
    background: linear-gradient(180deg, transparent, var(--c-charcoal) 40%, #1a1a22 100%);
    color: var(--c-cyan);
    margin-top: 2rem;
    overflow: hidden;
    isolation: isolate;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(108, 52, 97, 0.4), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(231, 127, 103, 0.25), transparent 50%);
    mix-blend-mode: screen;
    z-index: -1;
}

.footer-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-variation-settings: "CASL" 0.5;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--c-gold);
    letter-spacing: 0.08em;
    text-shadow: 0 0 16px rgba(247, 215, 148, 0.4);
    transition: font-variation-settings 0.6s ease;
}

.footer-title:hover {
    font-variation-settings: "CASL" 1, "wght" 900;
}

.footer-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--c-gold), transparent);
    opacity: 0.5;
}

.footer-sub {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--c-cyan);
    text-shadow: 0 0 6px rgba(118, 215, 196, 0.4);
}

.footer-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: rgba(118, 215, 196, 0.75);
    padding-top: 1.25rem;
    border-top: 1px dashed rgba(118, 215, 196, 0.2);
}

.footer-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(118, 215, 196, 0.03) 3px, rgba(118, 215, 196, 0.03) 4px);
    z-index: -1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .hero-readout-tl,
    .hero-readout-tr,
    .hero-readout-bl,
    .hero-readout-br {
        font-size: 0.6rem;
        padding: 5px 8px;
    }
    .hero-readout-tr { top: 24px; }
    .hero-readout-bl { bottom: 64px; left: 16px; }
    .hero-readout-br { bottom: 64px; right: 16px; }
    .hud-globe { top: 16px; right: 16px; width: 50px; height: 50px; }
    .hud-globe.open, .hud-globe:hover { width: 180px; height: 180px; }
    .hud-links li { transform: rotate(var(--angle)) translateX(64px) rotate(calc(var(--angle) * -1)); }
    .section-label {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .label-co { text-align: left; }
    .data-list { grid-template-columns: 1fr 1fr; }
    .data-list.compact { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .hero-readout-tl, .hero-readout-tr { font-size: 0.55rem; }
    .hero-readout-tl { left: 16px; top: 16px; }
    .hero-subtitle { font-size: 0.95rem; }
    section.observation, section.field-notes, section.archives {
        padding: 3rem 1rem 2rem;
    }
}
