/* ====================================================================
   licensor.directory — Summit Registry
   Honeyed-neutral palette, diagonal-section layout, gradient-mesh imagery,
   morph animation system, slab-serif + IBM Plex Mono typography.
   ==================================================================== */

:root {
    /* Palette */
    --c-midnight-timber: #1A150E;
    --c-charcoal-bark:   #2C2318;
    --c-peat-earth:      #362B1E;
    --c-oxidized-amber:  #C4943A;
    --c-warm-parchment:  #F5E6C8;
    --c-honey-amber:     #D4A853;
    --c-lichen-green:    #8FBF6A;
    --c-sunset-coral:    #E87D5F;
    --c-weathered-stone: #8A7A5C;
    --c-summit-mist:     #C8B89A;

    /* Diagonal slice */
    --slice: 4vw;

    /* Typography */
    --f-display: 'Alfa Slab One', 'Zilla Slab', Georgia, serif;
    --f-secondary: 'Zilla Slab', Georgia, serif;
    --f-mono: 'IBM Plex Mono', 'Menlo', 'Consolas', monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--c-midnight-timber);
    color: var(--c-warm-parchment);
    font-family: var(--f-mono);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-feature-settings: "ss01", "cv01";
}

/* ============================
   GLOBAL: scan-line overlay
   ============================ */
.scan-line-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 200;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(26, 21, 14, 0.12) 2px,
        rgba(26, 21, 14, 0.12) 4px
    );
    mix-blend-mode: multiply;
}

/* ============================
   BAND - diagonal sections
   ============================ */
.band {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--slice) + 4rem) 5vw calc(var(--slice) + 4rem);
    overflow: hidden;
    isolation: isolate;
    margin-top: calc(var(--slice) * -1);
}

.band:first-of-type {
    margin-top: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--slice)));
}

.band:not(:first-of-type):not(:last-of-type) {
    clip-path: polygon(0 var(--slice), 100% 0, 100% 100%, 0 calc(100% - var(--slice)));
}

.band:last-of-type {
    clip-path: polygon(0 var(--slice), 100% 0, 100% 100%, 0 100%);
    padding-bottom: 6rem;
}

.band__mesh {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.mesh-layer {
    position: absolute;
    inset: 0;
    will-change: background-position, transform;
}

/* breathing gradient mesh animation */
@keyframes mesh-breathe {
    0%   { background-position: 0% 0%, 30% 50%, 70% 30%, 50% 70%; }
    50%  { background-position: 5% -3%, 27% 53%, 73% 27%, 53% 73%; }
    100% { background-position: 0% 0%, 30% 50%, 70% 30%, 50% 70%; }
}

.band__inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    z-index: 2;
}
.band__inner--wide {
    max-width: 1480px;
}

.band__header {
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}
.band__header--left { padding-left: 0; }

.band__eyebrow {
    display: inline-block;
    font-family: var(--f-mono);
    font-weight: 300;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-weathered-stone);
    border-left: 2px solid var(--c-oxidized-amber);
    padding-left: 0.85rem;
    margin-bottom: 1.2rem;
}

.band__lede {
    max-width: 56ch;
    color: var(--c-summit-mist);
    font-size: 1.05rem;
    line-height: 1.7;
}

.band__metaline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    margin-top: 2rem;
    padding: 0.85rem 1.2rem;
    border-top: 1px dashed rgba(196, 148, 58, 0.35);
    border-bottom: 1px dashed rgba(196, 148, 58, 0.35);
    color: var(--c-weathered-stone);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.band__signoff {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-weathered-stone);
}

.meta-tag {
    color: var(--c-oxidized-amber);
    font-weight: 500;
    margin-right: 0.4rem;
}
.meta-val {
    color: var(--c-warm-parchment);
    font-weight: 300;
    margin-right: 0.6rem;
}

/* ============================
   DISPLAY HEADINGS
   ============================ */
.display-heading {
    font-family: var(--f-display);
    color: var(--c-warm-parchment);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 0.95;
    margin: 0 0 1rem;
    text-shadow:
        0 0 28px rgba(196, 148, 58, 0.22),
        0 4px 0 rgba(26, 21, 14, 0.4);
}

.display-heading--observatory {
    font-size: clamp(3.6rem, 10vw, 8rem);
    margin-bottom: 1.5rem;
}
.display-heading--observatory .display-heading__line {
    display: block;
    transform-origin: bottom center;
    animation: heading-rise 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
.display-heading--observatory .display-heading__sub {
    display: block;
    font-family: var(--f-mono);
    font-weight: 400;
    color: var(--c-honey-amber);
    font-size: 0.18em;
    letter-spacing: 0.4em;
    text-transform: lowercase;
    margin-top: 0.4em;
    text-shadow: none;
}

.display-heading--secondary {
    font-size: clamp(2.6rem, 6.4vw, 5rem);
}

@keyframes heading-rise {
    0%   { transform: scaleY(0.3) translateY(40%); opacity: 0; filter: blur(6px); }
    60%  { transform: scaleY(1.08) translateY(-2%); opacity: 1; filter: blur(0); }
    100% { transform: scaleY(1) translateY(0); opacity: 1; filter: blur(0); }
}

.display-heading--secondary {
    transform-origin: bottom center;
    transform: scaleY(0.3);
    opacity: 0;
    transition: transform 1.1s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.9s ease-out;
}
.band.is-visible .display-heading--secondary {
    transform: scaleY(1);
    opacity: 1;
}

/* ============================
   SECTION 1: OBSERVATORY mesh
   ============================ */
.band--observatory {
    background: linear-gradient(180deg, #2C2318 0%, #1A150E 100%);
}
.band--observatory .mesh-layer--sky {
    background:
        radial-gradient(circle at 30% 20%, rgba(245, 230, 200, 0.10), transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(212, 168, 83, 0.18), transparent 55%),
        radial-gradient(ellipse at 50% 0%, rgba(196, 148, 58, 0.20), transparent 70%);
    background-size: 200% 200%, 200% 200%, 200% 200%;
    animation: mesh-breathe 60s ease-in-out infinite;
}
.band--observatory .mesh-layer--peak1 {
    background:
        conic-gradient(from 200deg at 50% 100%, transparent 0deg, rgba(54, 43, 30, 0.85) 30deg, rgba(44, 35, 24, 0.95) 60deg, transparent 90deg);
    clip-path: polygon(0 60%, 18% 35%, 32% 50%, 48% 25%, 62% 42%, 78% 30%, 92% 48%, 100% 38%, 100% 100%, 0 100%);
    opacity: 0.9;
}
.band--observatory .mesh-layer--peak2 {
    background:
        radial-gradient(ellipse at 50% 80%, rgba(54, 43, 30, 0.95), rgba(26, 21, 14, 0.98) 70%);
    clip-path: polygon(0 80%, 25% 60%, 50% 75%, 75% 55%, 100% 70%, 100% 100%, 0 100%);
}
.band--observatory .mesh-layer--fog {
    background:
        radial-gradient(ellipse at 30% 60%, rgba(200, 184, 154, 0.15), transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(245, 230, 200, 0.10), transparent 55%);
    mix-blend-mode: screen;
    animation: mesh-breathe 45s ease-in-out infinite reverse;
}

/* ============================
   SECTION 2: PERMIT WALL mesh
   ============================ */
.band--permits {
    background: linear-gradient(180deg, #1A150E 0%, #2C2318 50%, #362B1E 100%);
}
.band--permits .mesh-layer--midsky {
    background:
        radial-gradient(circle at 25% 30%, rgba(212, 168, 83, 0.14), transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(196, 148, 58, 0.12), transparent 50%);
    animation: mesh-breathe 50s ease-in-out infinite;
}
.band--permits .mesh-layer--ridge1 {
    background: linear-gradient(180deg, transparent 0%, rgba(54, 43, 30, 0.55) 70%, rgba(44, 35, 24, 0.85) 100%);
    clip-path: polygon(0 65%, 12% 50%, 26% 60%, 40% 40%, 55% 55%, 70% 38%, 84% 52%, 100% 42%, 100% 100%, 0 100%);
}
.band--permits .mesh-layer--ridge2 {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 21, 14, 0.7) 70%);
    clip-path: polygon(0 80%, 20% 70%, 40% 78%, 60% 65%, 80% 75%, 100% 68%, 100% 100%, 0 100%);
    opacity: 0.85;
}
.band--permits .mesh-layer--haze {
    background:
        radial-gradient(ellipse at 50% 75%, rgba(200, 184, 154, 0.10), transparent 50%);
    mix-blend-mode: screen;
}

/* ============================
   SECTION 3: LEDGER mesh
   ============================ */
.band--ledger {
    background: linear-gradient(180deg, #362B1E 0%, #2C2318 50%, #362B1E 100%);
}
.band--ledger .mesh-layer--ambersky {
    background:
        radial-gradient(circle at 50% 35%, rgba(212, 168, 83, 0.20), transparent 60%),
        radial-gradient(circle at 20% 25%, rgba(196, 148, 58, 0.14), transparent 50%);
    animation: mesh-breathe 55s ease-in-out infinite;
}
.band--ledger .mesh-layer--midridge {
    background: linear-gradient(180deg, transparent 60%, rgba(54, 43, 30, 0.6) 90%, rgba(44, 35, 24, 0.9) 100%);
    clip-path: polygon(0 70%, 30% 60%, 55% 70%, 80% 58%, 100% 65%, 100% 100%, 0 100%);
}
.band--ledger .mesh-layer--lampglow {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(212, 168, 83, 0.10), transparent 70%);
    mix-blend-mode: screen;
    animation: mesh-breathe 35s ease-in-out infinite;
}

/* ============================
   SECTION 4: TRAIL LOG (twilight)
   ============================ */
.band--traillog {
    background: linear-gradient(180deg, #2C2318 0%, #1A150E 60%, #1A150E 100%);
}
.band--traillog .mesh-layer--twilightsky {
    background:
        radial-gradient(ellipse at 50% 80%, rgba(232, 125, 95, 0.18), transparent 50%),
        radial-gradient(ellipse at 50% 65%, rgba(212, 168, 83, 0.10), transparent 60%),
        radial-gradient(circle at 30% 30%, rgba(196, 148, 58, 0.06), transparent 60%);
    animation: mesh-breathe 50s ease-in-out infinite;
}
.band--traillog .mesh-layer--alpenglow {
    background:
        linear-gradient(180deg, transparent 65%, rgba(232, 125, 95, 0.2) 72%, transparent 80%);
    mix-blend-mode: screen;
}
.band--traillog .mesh-layer--darkridge1 {
    background: rgba(26, 21, 14, 0.92);
    clip-path: polygon(0 75%, 15% 65%, 30% 72%, 48% 60%, 65% 70%, 82% 62%, 100% 70%, 100% 100%, 0 100%);
}
.band--traillog .mesh-layer--darkridge2 {
    background: rgba(15, 12, 8, 0.95);
    clip-path: polygon(0 88%, 22% 80%, 44% 86%, 68% 78%, 88% 84%, 100% 80%, 100% 100%, 0 100%);
}

/* ============================
   SECTION 5: BASE CAMP (deepest)
   ============================ */
.band--basecamp {
    background: linear-gradient(180deg, #1A150E 0%, #15110A 100%);
}
.band--basecamp .mesh-layer--deepsky {
    background:
        radial-gradient(circle at 50% 90%, rgba(212, 168, 83, 0.14), transparent 50%),
        radial-gradient(circle at 30% 60%, rgba(196, 148, 58, 0.06), transparent 55%);
    animation: mesh-breathe 60s ease-in-out infinite;
}
.band--basecamp .mesh-layer--lasthorizon {
    background: rgba(20, 16, 10, 0.95);
    clip-path: polygon(0 80%, 25% 72%, 50% 78%, 75% 70%, 100% 76%, 100% 100%, 0 100%);
}
.band--basecamp .mesh-layer--cabin {
    background:
        radial-gradient(ellipse at 50% 70%, rgba(212, 168, 83, 0.18), transparent 35%);
    mix-blend-mode: screen;
    animation: mesh-breathe 25s ease-in-out infinite;
}

/* ============================
   CONTOUR SVG
   ============================ */
.contour-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.contour-svg path {
    fill: none;
    stroke: var(--c-oxidized-amber);
    stroke-width: 0.5;
    stroke-opacity: 0.22;
}
.contour-svg--dense path { stroke-opacity: 0.28; }
.contour-svg--twilight path { stroke: var(--c-sunset-coral); stroke-opacity: 0.22; }

/* ============================
   TERMINAL PANELS
   ============================ */
.terminal {
    position: relative;
    background: var(--c-peat-earth);
    border: 2px solid var(--c-oxidized-amber);
    box-shadow:
        inset 0 0 26px rgba(212, 168, 83, 0.10),
        0 12px 32px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(196, 148, 58, 0.25);
    border-radius: 2px;
    overflow: hidden;
    color: var(--c-honey-amber);
    font-family: var(--f-mono);
    font-variant-ligatures: none;

    /* morph entry */
    transform: scaleY(0.04);
    transform-origin: center;
    opacity: 0.4;
    transition:
        transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 500ms ease-out,
        box-shadow 400ms ease-out;
}
.terminal.is-visible {
    transform: scaleY(1);
    opacity: 1;
}

/* scanlines on every terminal */
.terminal::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(26, 21, 14, 0.12) 2px,
        rgba(26, 21, 14, 0.12) 4px
    );
    z-index: 2;
}
.terminal::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(26, 21, 14, 0.5) 100%);
    z-index: 1;
}

.terminal__titlebar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.95rem;
    background: linear-gradient(180deg, #2C2318 0%, #221A11 100%);
    border-bottom: 1px solid rgba(196, 148, 58, 0.45);
    color: var(--c-warm-parchment);
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    position: relative;
    z-index: 3;
}
.terminal__title {
    color: var(--c-summit-mist);
    margin-left: 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.terminal__dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--c-weathered-stone);
    box-shadow: inset 0 0 4px rgba(0,0,0,0.6);
}
.terminal__dot--coral  { background: var(--c-sunset-coral); }
.terminal__dot--amber  { background: var(--c-honey-amber); }
.terminal__dot--lichen { background: var(--c-lichen-green); }

.terminal__body {
    padding: 1.4rem 1.6rem;
    position: relative;
    z-index: 3;
}

.term-line {
    margin: 0.25rem 0;
    color: var(--c-honey-amber);
    font-size: 1rem;
    line-height: 1.7;
}
.term-line--strong {
    color: var(--c-warm-parchment);
    font-weight: 600;
    font-size: 1.1rem;
}
.term-line--success { color: var(--c-lichen-green); }
.term-line--meta {
    color: var(--c-weathered-stone);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.term-prompt {
    color: var(--c-oxidized-amber);
    margin-right: 0.5rem;
    font-weight: 500;
}
.term-typed {
    display: inline;
}
.term-cursor {
    display: inline-block;
    width: 0.6em;
    color: var(--c-oxidized-amber);
    animation: cursor-flicker 1.2s cubic-bezier(0.55, 0.05, 0.45, 0.95) infinite;
}
@keyframes cursor-flicker {
    0%   { opacity: 1.0; text-shadow: 0 0 8px rgba(212,168,83,0.8); }
    25%  { opacity: 0.6; text-shadow: 0 0 4px rgba(212,168,83,0.4); }
    50%  { opacity: 0.3; text-shadow: 0 0 2px rgba(212,168,83,0.2); }
    75%  { opacity: 0.7; text-shadow: 0 0 5px rgba(212,168,83,0.5); }
    100% { opacity: 1.0; text-shadow: 0 0 8px rgba(212,168,83,0.8); }
}

.kv {
    color: var(--c-oxidized-amber);
    margin-right: 0.4rem;
}

.term-link {
    color: var(--c-honey-amber);
    text-decoration: underline;
    text-decoration-color: rgba(212, 168, 83, 0.4);
    text-underline-offset: 3px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
.term-link:hover {
    color: var(--c-warm-parchment);
    text-decoration-color: var(--c-warm-parchment);
}

/* status pills */
.status-pill {
    display: inline-block;
    padding: 0.05em 0.55em;
    border: 1px solid currentColor;
    border-radius: 2px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    margin-left: 0.4rem;
    line-height: 1.4;
    vertical-align: 1px;
}
.status-pill--ok   { color: var(--c-lichen-green); }
.status-pill--warn { color: var(--c-sunset-coral); }

/* corner pins */
.terminal__pin {
    position: absolute;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--c-honey-amber);
    box-shadow:
        inset -1px -1px 2px rgba(0,0,0,0.6),
        inset 1px 1px 2px rgba(245, 230, 200, 0.6),
        0 0 0 1px rgba(26, 21, 14, 0.7),
        0 2px 4px rgba(0, 0, 0, 0.65);
    z-index: 4;
}
.terminal__pin--tl { top: -4px; left: -4px; }
.terminal__pin--tr { top: -4px; right: -4px; }
.terminal__pin--bl { bottom: -4px; left: -4px; }
.terminal__pin--br { bottom: -4px; right: -4px; }

/* primary observatory terminal */
.terminal--primary {
    margin: 2rem 0 0 auto;
    width: min(620px, 90%);
    transform: rotate(0.4deg);
}
.terminal--primary .terminal__body {
    min-height: 220px;
}

/* ============================
   PERMIT GRID (cards)
   ============================ */
.permit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem 1.6rem;
    margin-top: 2.2rem;
}
.terminal--card {
    transform: scaleY(0.04) translateY(20px);
    transition:
        transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--idx, 0) * 150ms),
        opacity 500ms ease-out calc(var(--idx, 0) * 150ms);
}
.terminal--card.is-visible {
    transform: scaleY(1) translateY(0);
}
.terminal--card:nth-child(odd)  { transform-origin: top left; }
.terminal--card:nth-child(even) { transform-origin: top right; }
.terminal--card:nth-child(3n+1) { transform: scaleY(0.04) translateY(30px) rotate(-0.5deg); }
.terminal--card:nth-child(3n+2) { transform: scaleY(0.04) translateY(20px) rotate(0.4deg); }
.terminal--card:nth-child(3n+3) { transform: scaleY(0.04) translateY(40px) rotate(-0.3deg); }
.terminal--card.is-visible:nth-child(3n+1) { transform: scaleY(1) translateY(0) rotate(-0.5deg); }
.terminal--card.is-visible:nth-child(3n+2) { transform: scaleY(1) translateY(0) rotate(0.4deg); }
.terminal--card.is-visible:nth-child(3n+3) { transform: scaleY(1) translateY(0) rotate(-0.3deg); }

/* ============================
   LEDGER terminal
   ============================ */
.terminal--ledger {
    margin: 1.4rem 0;
    width: 100%;
}
.terminal__body--ledger {
    padding: 1.2rem 1.2rem 1.6rem;
    overflow-x: auto;
}
.ledger-table {
    margin: 0 0 1.2rem;
    color: var(--c-weathered-stone);
    font-size: 0.74rem;
    line-height: 1.55;
    white-space: pre;
    opacity: 0.55;
}
.ledger-interactive {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--f-mono);
    font-size: 0.92rem;
}
.ledger-interactive thead th {
    text-align: left;
    padding: 0.7rem 0.85rem;
    color: var(--c-oxidized-amber);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.74rem;
    border-bottom: 1px solid rgba(196, 148, 58, 0.5);
    background: rgba(26, 21, 14, 0.45);
}
.ledger-interactive tbody td {
    padding: 0.7rem 0.85rem;
    color: var(--c-honey-amber);
    border-bottom: 1px dashed rgba(196, 148, 58, 0.18);
    background-color: transparent;
    transition: background-color 600ms cubic-bezier(0.34, 1.2, 0.64, 1);
}
.ledger-interactive tbody tr td:first-child {
    color: var(--c-warm-parchment);
    font-weight: 600;
}
.ledger-interactive tbody tr:hover td {
    background-color: rgba(196, 148, 58, 0.08);
    color: var(--c-warm-parchment);
}
.ledger-interactive tbody tr.is-lit td {
    background-color: rgba(196, 148, 58, 0.12);
}

/* ============================
   TRAIL LOG terminal
   ============================ */
.terminal--log {
    margin: 1.4rem 0;
    width: 100%;
    max-width: 900px;
}
.terminal__body--log {
    padding: 1.6rem 1.8rem;
    min-height: 360px;
    font-size: 0.95rem;
}
.log-line {
    margin: 0.45rem 0;
    color: var(--c-honey-amber);
    font-family: var(--f-mono);
    white-space: pre-wrap;
    overflow: hidden;
    /* will fill with text via JS morph */
}
.log-line .log-stamp {
    color: var(--c-weathered-stone);
    margin-right: 0.6rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.log-line .log-arrow {
    color: var(--c-oxidized-amber);
    margin-right: 0.4rem;
}
.log-line.is-visible {
    animation: log-emerge 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes log-emerge {
    0%   { letter-spacing: 0.4em; opacity: 0; transform: translateY(8px); }
    60%  { letter-spacing: 0.04em; opacity: 1; transform: translateY(-1px); }
    100% { letter-spacing: 0.02em; opacity: 1; transform: translateY(0); }
}

/* ============================
   BASE CAMP
   ============================ */
.terminal--basecamp {
    width: min(660px, 95%);
    margin: 2rem auto 1rem;
}

.ascii-campfire {
    margin: 1rem auto;
    text-align: center;
    color: var(--c-honey-amber);
    font-family: var(--f-mono);
    font-size: 0.92rem;
    line-height: 1.2;
    white-space: pre;
    text-shadow: 0 0 8px rgba(232, 125, 95, 0.5);
    animation: campfire-flicker 1.6s ease-in-out infinite;
}
@keyframes campfire-flicker {
    0%   { color: var(--c-honey-amber); text-shadow: 0 0 6px rgba(232,125,95,0.4); transform: translateY(0) scale(1); }
    20%  { color: var(--c-sunset-coral); text-shadow: 0 0 14px rgba(232,125,95,0.7); transform: translateY(-1px) scale(1.01); }
    40%  { color: var(--c-honey-amber); text-shadow: 0 0 8px rgba(232,125,95,0.5); transform: translateY(0) scale(1); }
    60%  { color: var(--c-warm-parchment); text-shadow: 0 0 16px rgba(245,230,200,0.55); transform: translateY(-1px) scale(1.005); }
    80%  { color: var(--c-honey-amber); text-shadow: 0 0 7px rgba(232,125,95,0.4); transform: translateY(0) scale(1); }
    100% { color: var(--c-honey-amber); text-shadow: 0 0 6px rgba(232,125,95,0.4); transform: translateY(0) scale(1); }
}

/* ============================
   ASCII MOUNTAIN dividers
   ============================ */
.ascii-mountain {
    color: var(--c-weathered-stone);
    opacity: 0.55;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    line-height: 1.0;
    white-space: pre;
    margin: 2.8rem 0 1.2rem;
    text-align: center;
}
.ascii-mountain--low { font-size: 0.72rem; opacity: 0.4; }
.ascii-mountain--frame { margin: 1.5rem 0; opacity: 0.45; }
.ascii-mountain--invert { transform: scaleY(-1); }

/* ============================
   ALTIMETER COMPASS
   ============================ */
.altimeter {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    width: 92px;
    height: 92px;
}
.altimeter__core {
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 2px solid var(--c-oxidized-amber);
    background: rgba(54, 43, 30, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow:
        inset 0 0 18px rgba(212, 168, 83, 0.18),
        0 6px 22px rgba(0,0,0,0.6);
    color: var(--c-warm-parchment);
    font-family: var(--f-mono);
    cursor: pointer;
    padding: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.altimeter__core:hover { transform: scale(1.05); }
.altimeter__core::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px dashed rgba(196, 148, 58, 0.45);
    pointer-events: none;
}
.altimeter__needle {
    position: absolute;
    left: 50%; top: 50%;
    width: 2px;
    height: 30px;
    background: var(--c-oxidized-amber);
    transform-origin: 50% 100%;
    transform: translate(-50%, -100%) rotate(0deg);
    transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 8px rgba(212, 168, 83, 0.6);
}
.altimeter__needle::after {
    content: "";
    position: absolute;
    top: -4px; left: 50%;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-honey-amber);
    transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(212, 168, 83, 0.8);
}
.altimeter__elev {
    position: absolute;
    left: 50%; top: 56%;
    transform: translate(-50%, 0);
    font-size: 0.78rem;
    color: var(--c-warm-parchment);
    font-weight: 500;
    letter-spacing: 0.04em;
    pointer-events: none;
}
.altimeter__elev small { font-size: 0.65em; color: var(--c-honey-amber); margin-left: 1px; }
.altimeter__band {
    position: absolute;
    left: 50%; bottom: 8px;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--c-weathered-stone);
    letter-spacing: 0.18em;
    pointer-events: none;
}

.altimeter__menu {
    position: absolute;
    inset: 0;
    list-style: none;
    margin: 0; padding: 0;
    pointer-events: none;
}
.altimeter__menu li {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%) rotate(var(--deg, 0deg)) translate(0, -120px) rotate(calc(var(--deg, 0deg) * -1));
    opacity: 0;
    transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 350ms ease-out;
}
.altimeter.is-open .altimeter__menu li {
    pointer-events: auto;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--deg, 0deg)) translate(0, -84px) rotate(calc(var(--deg, 0deg) * -1));
}
.altimeter__menu a {
    display: block;
    padding: 0.4rem 0.7rem;
    background: rgba(26, 21, 14, 0.92);
    border: 1px solid rgba(196, 148, 58, 0.6);
    border-radius: 2px;
    color: var(--c-warm-parchment);
    font-family: var(--f-mono);
    font-size: 0.72rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.altimeter__menu a:hover {
    background: rgba(54, 43, 30, 0.95);
    border-color: var(--c-honey-amber);
    color: var(--c-honey-amber);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 720px) {
    :root { --slice: 6vw; }
    .band { padding-left: 1.2rem; padding-right: 1.2rem; }
    .display-heading--observatory { font-size: clamp(2.8rem, 13vw, 5.5rem); }
    .display-heading--secondary { font-size: clamp(2rem, 9vw, 3rem); }
    .terminal--primary { width: 100%; }
    .ledger-interactive { font-size: 0.78rem; }
    .ledger-interactive thead th { font-size: 0.62rem; padding: 0.5rem 0.4rem; }
    .ledger-interactive tbody td { padding: 0.5rem 0.4rem; }
    .ledger-table { font-size: 0.55rem; }
    .altimeter, .altimeter__core { width: 76px; height: 76px; }
    .altimeter__menu li { font-size: 0.6rem; }
    .altimeter.is-open .altimeter__menu li {
        transform: translate(-50%, -50%) rotate(var(--deg, 0deg)) translate(0, -64px) rotate(calc(var(--deg, 0deg) * -1));
    }
}

@media (prefers-reduced-motion: reduce) {
    .terminal, .terminal--card, .display-heading--secondary,
    .display-heading--observatory .display-heading__line,
    .ascii-campfire, .term-cursor, .mesh-layer {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
