/* ========================================================================
   ppuzzl.com — v2 · Botanical Telemetry Garden
   Aesthetic: botanical (cyanotype + dual-neon halation)
   Layout:    dashboard (4-pane greenhouse-console grid)
   Typography: handwritten (Caveat Brush / Caveat) + typewriter (Special Elite) +
               italic serif Latin captions (Cormorant Garamond)
               + Inter / Space Mono as supporting fallbacks
   Palette:   warm-earthy + restrained dual-neon
     Conservatory Cream  #F2E7D2
     Pressed Linen       #E8D9BA
     Loam Brown          #4A3424
     Bog Black           #2B1F14
     Ledger Ink          #3A2B1C
     Filament Coral      #FF7A4C  (neon glow #1)
     Phosphor Lime       #C6E26A  (neon glow #2)
     Sage Wash           #8FA579
     Faded Indigo        #4A6378
     Aged Brass          #B5894A
   ======================================================================== */

/* ---------- root tokens ---------- */
:root {
    --c-cream:      #F2E7D2;
    --c-linen:      #E8D9BA;
    --c-loam:       #4A3424;
    --c-bog:        #2B1F14;
    --c-ink:        #3A2B1C;
    --c-coral:      #FF7A4C;
    --c-lime:       #C6E26A;
    --c-sage:       #8FA579;
    --c-indigo:     #4A6378;
    --c-brass:      #B5894A;

    --font-brush:   "Caveat Brush", "Caveat", "Inter", cursive;
    --font-hand:    "Caveat", "Inter", cursive;
    --font-type:    "Special Elite", "Space Mono", monospace;
    --font-latin:   "Cormorant Garamond", "Inter", serif;
    --font-ui:      "Inter", "Space Mono", sans-serif;

    --shadow-coral: drop-shadow(0 0 12px rgba(255, 122, 76, 0.45));
    --shadow-lime:  drop-shadow(0 0 12px rgba(198, 226, 106, 0.45));

    --rail-brass-height: 60px;
    --rail-soil-height:  90px;
    --pane-left:    260px;
    --pane-right:   220px;

    --ease-settle:  cubic-bezier(0.32, 0.72, 0.32, 1);
}

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

html, body {
    background: var(--c-cream);
    color: var(--c-ink);
    font-family: var(--font-hand);
    overflow-x: hidden;
    min-height: 100vh;
}

/* aged-paper grain across the whole page */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 25% 35%, rgba(181, 137, 74, 0.10), transparent 55%),
        radial-gradient(circle at 75% 70%, rgba(74, 99, 120, 0.07), transparent 55%),
        repeating-linear-gradient(
            0deg,
            rgba(74, 52, 36, 0.025) 0px,
            rgba(74, 52, 36, 0.025) 1px,
            transparent 1px,
            transparent 3px
        );
    mix-blend-mode: multiply;
}

/* hide the SVG defs container */
.wallpaper-defs {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

a, button {
    font: inherit;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: none;
}

/* hide native cursor everywhere — firefly is the only signaling system */
html, body, a, button, input, textarea, select, label {
    cursor: none;
}

/* selection */
::selection {
    background: rgba(255, 122, 76, 0.35);
    color: var(--c-ink);
}

/* ============================================================
   CURSOR-FOLLOW FIREFLY
   ============================================================ */
.firefly {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 9000;
    pointer-events: none;
    transform: translate3d(50vw, 50vh, 0);
    will-change: transform;
}

.firefly-core {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF7A4C;
    box-shadow:
        0 0 8px rgba(255, 122, 76, 0.95),
        0 0 22px rgba(255, 122, 76, 0.65);
    transition: background 0.4s var(--ease-settle), box-shadow 0.4s var(--ease-settle), transform 0.4s var(--ease-settle);
}

.firefly-glow {
    position: absolute;
    top: -14px;
    left: -14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 76, 0.45), rgba(255, 122, 76, 0));
    filter: blur(2px);
    transition: width 0.6s var(--ease-settle), height 0.6s var(--ease-settle), top 0.6s var(--ease-settle), left 0.6s var(--ease-settle), opacity 0.6s var(--ease-settle);
}

.firefly.is-near .firefly-core {
    background: #FFA383;
    box-shadow:
        0 0 14px rgba(255, 122, 76, 1),
        0 0 36px rgba(255, 122, 76, 0.75),
        0 0 60px rgba(198, 226, 106, 0.35);
}

.firefly.is-near .firefly-glow {
    width: 46px;
    height: 46px;
    top: -23px;
    left: -23px;
}

.firefly.is-parked .firefly-core {
    animation: heartbeat 2.6s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(0.85); opacity: 0.65; }
    50%      { transform: scale(1.0);  opacity: 1;    }
}

/* ============================================================
   CONSERVATORY GRID  (dashboard / 4 panes)
   ============================================================ */
.conservatory {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: var(--pane-left) 1fr var(--pane-right);
    grid-template-rows: var(--rail-brass-height) 1fr var(--rail-soil-height);
    grid-template-areas:
        "rail rail rail"
        "index central telemetry"
        "soil soil soil";
    min-height: 100vh;
}

/* ============================================================
   TOP BRASS RAIL
   ============================================================ */
.brass-rail {
    grid-area: rail;
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--rail-brass-height);
    background:
        linear-gradient(
            180deg,
            #caa169 0%,
            #B5894A 40%,
            #8a6634 100%
        );
    border-bottom: 2px solid #5a4022;
    box-shadow: 0 4px 14px rgba(43, 31, 20, 0.35);
    transform: translateY(-100%);
    animation: assemble-rail 1.0s 0.0s var(--ease-settle) forwards;
    overflow: hidden;
}

/* scan-line texture on brass */
.brass-rail::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(43, 31, 20, 0.16) 0px,
        rgba(43, 31, 20, 0.16) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: multiply;
}

.brass-rail-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    gap: 24px;
}

.wordmark {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}

.wordmark-mark {
    font-family: var(--font-brush);
    font-size: clamp(22px, 2.4vw, 30px);
    color: var(--c-cream);
    letter-spacing: 0.04em;
    text-shadow:
        0 0 4px rgba(43, 31, 20, 0.5),
        1px 1px 0 rgba(43, 31, 20, 0.7);
    transform: rotate(-1.2deg);
}

.wordmark-sub {
    font-family: var(--font-type);
    font-size: 10px;
    color: rgba(242, 231, 210, 0.78);
    letter-spacing: 0.18em;
    margin-top: 2px;
}

.weather-readout {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 18px;
    background: rgba(43, 31, 20, 0.35);
    border: 1px solid #5a4022;
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.weather-cell {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.weather-label {
    font-family: var(--font-type);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: rgba(242, 231, 210, 0.7);
    text-transform: uppercase;
}

.weather-value {
    font-family: var(--font-type);
    font-size: 13px;
    color: var(--c-cream);
    letter-spacing: 0.04em;
    min-width: 56px;
}

.weather-divider {
    width: 1px;
    height: 16px;
    background: rgba(242, 231, 210, 0.3);
}

.brass-knobs {
    display: flex;
    gap: 14px;
    align-items: center;
}

.knob {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.knob svg {
    width: 32px;
    height: 32px;
    transition: transform 0.35s var(--ease-settle), filter 0.35s var(--ease-settle);
}

.knob:hover svg {
    filter: drop-shadow(0 0 8px rgba(255, 122, 76, 0.65));
}

.knob.is-on svg {
    transform: rotate(140deg);
    filter: drop-shadow(0 0 10px rgba(255, 122, 76, 0.8));
}

.knob-label {
    font-family: var(--font-type);
    font-size: 9px;
    letter-spacing: 0.18em;
    color: rgba(242, 231, 210, 0.7);
    text-transform: uppercase;
}

.brass-underglow {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 12px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 122, 76, 0.8), rgba(255, 122, 76, 0) 70%);
    filter: blur(6px);
    opacity: 0;
    animation: underglow-warm 0.6s 1.4s var(--ease-settle) forwards;
    pointer-events: none;
}

@keyframes assemble-rail {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

@keyframes underglow-warm {
    from { opacity: 0; }
    to   { opacity: 0.7; }
}

/* ============================================================
   LEFT SPECIMEN INDEX  (ledger)
   ============================================================ */
.specimen-index {
    grid-area: index;
    position: sticky;
    top: var(--rail-brass-height);
    align-self: start;
    height: calc(100vh - var(--rail-brass-height) - var(--rail-soil-height));
    background: var(--c-linen);
    border-right: 1px solid rgba(74, 52, 36, 0.25);
    padding: 28px 22px 22px;
    overflow-y: auto;
    transform: translateX(-100%);
    animation: assemble-left 1.0s 0.15s var(--ease-settle) forwards;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='48'><g fill='none' stroke='%23B5894A' stroke-width='0.9' opacity='0.32'><path d='M14 24 q-6 -10 0 -18 q6 8 0 18 z'/><path d='M14 24 q-10 -2 -14 8 q12 4 14 -8 z'/><path d='M14 24 q-10 2 -14 -8 q12 -4 14 8 z'/><path d='M40 8 l10 6 v12 l-10 6 l-10 -6 v-12 z'/><path d='M40 8 v28 M30 14 l20 12 M30 26 l20 -12'/></g></svg>");
    background-repeat: repeat;
    background-blend-mode: multiply;
}

@keyframes assemble-left {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

.specimen-index::-webkit-scrollbar { width: 6px; }
.specimen-index::-webkit-scrollbar-thumb { background: rgba(74, 52, 36, 0.3); border-radius: 3px; }

.ledger-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(74, 52, 36, 0.4);
}

.ledger-eyebrow {
    font-family: var(--font-type);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--c-loam);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ledger-title {
    font-family: var(--font-brush);
    font-size: clamp(26px, 2.4vw, 32px);
    line-height: 1.05;
    color: var(--c-ink);
    transform: rotate(-1.2deg);
    margin-bottom: 8px;
}

.ledger-stamp {
    font-family: var(--font-type);
    font-size: 10px;
    color: var(--c-indigo);
    letter-spacing: 0.12em;
}

.ledger-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ledger-entry {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 10px;
    background: var(--c-cream);
    border: 1px solid rgba(74, 52, 36, 0.18);
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(74, 52, 36, 0.1);
    transition: transform 0.45s var(--ease-settle), box-shadow 0.45s var(--ease-settle), background 0.45s var(--ease-settle);
}

.ledger-entry:hover,
.ledger-entry.is-active {
    transform: translateX(4px);
    background: #fff5dc;
    box-shadow:
        0 0 0 1px rgba(255, 122, 76, 0.4),
        0 0 14px rgba(255, 122, 76, 0.25);
}

.ledger-leaf {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 0 4px rgba(255, 122, 76, 0.45));
}

.ledger-leaf svg {
    width: 26px;
    height: 26px;
}

.ledger-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.ledger-name {
    font-family: var(--font-latin);
    font-style: italic;
    font-size: 16px;
    color: var(--c-indigo);
    line-height: 1.2;
}

.ledger-note {
    font-family: var(--font-type);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: rgba(58, 43, 28, 0.6);
}

.ledger-footer {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px dashed rgba(74, 52, 36, 0.4);
    font-family: var(--font-hand);
    font-size: 15px;
    color: var(--c-ink);
}

.ledger-footer em {
    font-family: var(--font-latin);
    color: var(--c-indigo);
}

.marginalia {
    position: absolute;
    width: 80px;
    height: 28px;
    pointer-events: none;
    opacity: 0.75;
    transition: transform 0.5s var(--ease-settle), filter 0.5s var(--ease-settle);
    will-change: transform, filter;
}

.margin-arrow-1 {
    bottom: 30px;
    right: 14px;
    width: 96px;
    height: 32px;
}

.marginalia-note {
    position: absolute;
    bottom: 60px;
    right: 14px;
    font-family: var(--font-hand);
    font-size: 16px;
    color: var(--c-ink);
    transform: rotate(-3deg);
    pointer-events: none;
    opacity: 0.85;
}

/* ============================================================
   CENTRAL CONSERVATORY  (scroll narrative)
   ============================================================ */
.central-conservatory {
    grid-area: central;
    position: relative;
    padding: 40px 56px 60px;
    opacity: 0;
    animation: fade-dome 0.9s 0.6s var(--ease-settle) forwards;
    background:
        linear-gradient(180deg, rgba(242, 231, 210, 0.0), rgba(242, 231, 210, 0.0));
}

@keyframes fade-dome {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* outer trefoil-puzzle wallpaper border on the central pane */
.central-conservatory::before {
    content: "";
    position: absolute;
    inset: 8px;
    pointer-events: none;
    border: 8px solid transparent;
    border-image-source: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='48'><g fill='none' stroke='%23B5894A' stroke-width='0.9' opacity='0.45'><path d='M14 24 q-6 -10 0 -18 q6 8 0 18 z'/><path d='M14 24 q-10 -2 -14 8 q12 4 14 -8 z'/><path d='M14 24 q-10 2 -14 -8 q12 -4 14 8 z'/><path d='M40 8 l10 6 v12 l-10 6 l-10 -6 v-12 z'/><path d='M40 8 v28 M30 14 l20 12 M30 26 l20 -12'/></g></svg>");
    border-image-slice: 24;
    border-image-repeat: repeat;
    opacity: 0.7;
}

/* opening note */
.opening-note {
    position: relative;
    padding: 60px 40px 80px;
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: left;
}

.opening-stamp {
    font-family: var(--font-type);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--c-indigo);
    margin-bottom: 18px;
    text-transform: lowercase;
}

.opening-title {
    font-family: var(--font-brush);
    font-size: clamp(36px, 4.4vw, 60px);
    line-height: 1.05;
    color: var(--c-ink);
    transform: rotate(-1.2deg);
    margin-bottom: 22px;
}

.opening-title em {
    font-family: var(--font-latin);
    font-style: italic;
    color: var(--c-indigo);
    font-size: 0.78em;
}

.opening-body {
    font-family: var(--font-hand);
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.7;
    color: var(--c-ink);
    letter-spacing: 0.01em;
    max-width: 58ch;
    margin-bottom: 18px;
}

.opening-signature {
    font-family: var(--font-hand);
    font-size: 16px;
    color: var(--c-indigo);
    transform: rotate(-1.4deg);
    margin-top: 14px;
}

.margin-asterisk {
    position: absolute;
    top: 50%;
    right: -8px;
    width: 28px;
    height: 28px;
    opacity: 0.55;
}

/* pressed-leaf separators */
.leaf-separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 30px 0 30px;
}

.pressed-leaf {
    width: 200px;
    height: 80px;
    filter: drop-shadow(0 0 4px rgba(255, 122, 76, 0.18));
    transform: rotate(-4deg);
}

.leaf-caption {
    font-family: var(--font-latin);
    font-style: italic;
    font-size: 13px;
    color: var(--c-indigo);
    letter-spacing: 0.04em;
}

.leaf-caption em {
    color: var(--c-loam);
}

/* specimen cards */
.specimen-card {
    position: relative;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: center;
    min-height: 80vh;
    padding: 48px 36px;
    margin: 0 auto;
    max-width: 920px;
    background: rgba(242, 231, 210, 0.55);
    backdrop-filter: blur(0.4px);
    border-radius: 2px;
}

.specimen-card > .card-border-top,
.specimen-card > .card-border-bottom,
.specimen-card > .card-border-left,
.specimen-card > .card-border-right {
    position: absolute;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='48'><g fill='none' stroke='%23B5894A' stroke-width='0.9' opacity='0.4'><path d='M14 24 q-6 -10 0 -18 q6 8 0 18 z'/><path d='M14 24 q-10 -2 -14 8 q12 4 14 -8 z'/><path d='M14 24 q-10 2 -14 -8 q12 -4 14 8 z'/><path d='M40 8 l10 6 v12 l-10 6 l-10 -6 v-12 z'/></g></svg>");
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.7;
}

.card-border-top    { top: 0;    left: 0;  right: 0;  height: 8px; }
.card-border-bottom { bottom: 0; left: 0;  right: 0;  height: 8px; }
.card-border-left   { top: 8px;  bottom: 8px; left: 0; width: 8px; }
.card-border-right  { top: 8px;  bottom: 8px; right: 0; width: 8px; }

/* magnetic tilt set as CSS variables by JS */
.specimen-card {
    transform: rotate(var(--tilt, 0deg));
    transition: transform 0.7s var(--ease-settle);
}

.card-illustration {
    position: relative;
    width: 320px;
    height: 420px;
    align-self: center;
}

.specimen-svg {
    width: 100%;
    height: 100%;
    animation: breathe 7s ease-in-out infinite;
    transform-origin: 50% 100%;
    filter:
        drop-shadow(0 0 calc(10px * var(--glow, 0.4)) rgba(255, 122, 76, calc(0.55 * var(--glow, 0.4))))
        drop-shadow(0 0 calc(14px * var(--glow, 0.4)) rgba(198, 226, 106, calc(0.35 * var(--glow, 0.4))));
    transition: filter 0.5s var(--ease-settle);
}

@keyframes breathe {
    0%, 100% { transform: scale(1.000); }
    50%      { transform: scale(1.012); }
}

/* veins: pre-set stroke-dasharray so they can self-draw on activation */
.specimen-svg .vein {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.2s var(--ease-settle);
}

.specimen-card.is-active .specimen-svg .vein {
    stroke-dashoffset: 0;
}

.specimen-svg .blossoms circle {
    animation: blossom-pulse 4.5s ease-in-out infinite;
    transform-origin: center;
}
.specimen-svg .blossoms circle:nth-child(2) { animation-delay: 0.6s; }
.specimen-svg .blossoms circle:nth-child(3) { animation-delay: 1.2s; }

@keyframes blossom-pulse {
    0%, 100% { opacity: 0.7; transform: scale(0.9); }
    50%      { opacity: 1.0; transform: scale(1.15); }
}

.card-latin {
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-latin);
    font-style: italic;
    font-size: 14px;
    color: var(--c-indigo);
    letter-spacing: 0.04em;
}

.card-fieldnote {
    padding-right: 16px;
    max-width: 58ch;
}

.card-stamp {
    font-family: var(--font-type);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--c-loam);
    text-transform: lowercase;
    margin-bottom: 14px;
}

.card-name {
    font-family: var(--font-brush);
    font-size: clamp(28px, 3.2vw, 42px);
    color: var(--c-ink);
    line-height: 1.05;
    transform: rotate(-1.2deg);
    margin-bottom: 18px;
}

.card-paragraph {
    font-family: var(--font-hand);
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.7;
    color: var(--c-ink);
    letter-spacing: 0.01em;
    margin-bottom: 14px;
    max-width: 58ch;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.7s var(--ease-settle), transform 0.7s var(--ease-settle);
}

.card-paragraph:nth-of-type(1) { transition-delay: 0.00s; }
.card-paragraph:nth-of-type(2) { transition-delay: 0.18s; }
.card-paragraph:nth-of-type(3) { transition-delay: 0.36s; }
.card-paragraph:nth-of-type(4) { transition-delay: 0.54s; }

.specimen-card.is-active .card-paragraph {
    opacity: 1;
    transform: translateY(0);
}

/* alternate ink-density for paragraphs over 80 words simulated by faint variation */
.card-paragraph:nth-of-type(odd) { opacity: 1; }
.specimen-card.is-active .card-paragraph:nth-of-type(even) { opacity: 0.92; }

.card-margin {
    font-family: var(--font-hand);
    font-size: 15px;
    color: var(--c-loam);
    transform: rotate(-1.6deg);
    margin-top: 8px;
    opacity: 0.85;
}

/* closing note */
.closing-note {
    max-width: 720px;
    margin: 60px auto 40px;
    padding: 50px 36px 30px;
    text-align: left;
}

.closing-stamp {
    font-family: var(--font-type);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--c-indigo);
    margin-bottom: 18px;
    text-transform: lowercase;
}

.closing-headline {
    font-family: var(--font-brush);
    font-size: clamp(30px, 3.6vw, 50px);
    color: var(--c-ink);
    transform: rotate(-1.2deg);
    line-height: 1.05;
    margin-bottom: 22px;
}

.closing-body {
    font-family: var(--font-hand);
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.7;
    color: var(--c-ink);
    letter-spacing: 0.01em;
    margin-bottom: 18px;
    max-width: 58ch;
}

.closing-body em {
    font-family: var(--font-latin);
    font-style: italic;
    color: var(--c-indigo);
}

.closing-signature {
    font-family: var(--font-hand);
    font-size: 17px;
    color: var(--c-indigo);
    transform: rotate(-1.4deg);
    margin-bottom: 14px;
}

.closing-signature em {
    font-family: var(--font-latin);
    font-style: italic;
}

.curator-mail {
    display: inline-block;
    margin-top: 6px;
    font-family: var(--font-brush);
    font-size: 24px;
    color: var(--c-coral);
    text-decoration: none;
    text-shadow: 0 0 12px rgba(255, 122, 76, 0.45);
    transform: rotate(-1deg);
    transition: text-shadow 0.5s var(--ease-settle);
}

.curator-mail:hover {
    text-shadow:
        0 0 6px rgba(255, 122, 76, 0.9),
        0 0 22px rgba(255, 122, 76, 0.7),
        0 0 36px rgba(198, 226, 106, 0.4);
}

/* ============================================================
   RIGHT TELEMETRY RAIL
   ============================================================ */
.telemetry-rail {
    grid-area: telemetry;
    position: sticky;
    top: var(--rail-brass-height);
    align-self: start;
    height: calc(100vh - var(--rail-brass-height) - var(--rail-soil-height));
    padding: 24px 16px;
    background: var(--c-linen);
    border-left: 1px solid rgba(74, 52, 36, 0.25);
    overflow-y: auto;
    transform: translateX(100%);
    animation: assemble-right 1.0s 0.3s var(--ease-settle) forwards;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='48'><g fill='none' stroke='%23B5894A' stroke-width='0.9' opacity='0.28'><path d='M14 24 q-6 -10 0 -18 q6 8 0 18 z'/><path d='M14 24 q-10 -2 -14 8 q12 4 14 -8 z'/><path d='M14 24 q-10 2 -14 -8 q12 -4 14 8 z'/><path d='M40 8 l10 6 v12 l-10 6 l-10 -6 v-12 z'/></g></svg>");
    background-repeat: repeat;
    background-blend-mode: multiply;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

@keyframes assemble-right {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

.telemetry-rail::-webkit-scrollbar { width: 6px; }
.telemetry-rail::-webkit-scrollbar-thumb { background: rgba(74, 52, 36, 0.3); border-radius: 3px; }

.instrument {
    background: var(--c-cream);
    border: 1px solid rgba(74, 52, 36, 0.2);
    border-radius: 3px;
    padding: 12px 10px;
    box-shadow: 0 1px 2px rgba(74, 52, 36, 0.12);
}

.instrument-label {
    font-family: var(--font-type);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--c-loam);
    text-transform: uppercase;
    margin-bottom: 8px;
    text-align: center;
}

.dial-frame,
.graph-frame,
.moon-frame,
.today-portrait {
    display: grid;
    place-items: center;
    margin-bottom: 6px;
}

.dial-svg {
    width: 130px;
    height: 130px;
    filter: drop-shadow(0 0 6px rgba(181, 137, 74, 0.45));
}

#dialNeedle {
    transition: transform 0.6s var(--ease-settle);
    transform-origin: 80px 80px;
    transform-box: fill-box;
}

.graph-svg {
    width: 190px;
    height: 86px;
    filter: drop-shadow(0 0 4px rgba(198, 226, 106, 0.3));
}

.moon-svg {
    width: 110px;
    height: 110px;
    filter: drop-shadow(0 0 6px rgba(74, 99, 120, 0.35));
}

.today-svg {
    width: 110px;
    height: 110px;
    border: 1px solid rgba(74, 52, 36, 0.25);
    filter: drop-shadow(0 0 4px rgba(255, 122, 76, 0.3));
}

.instrument-readout,
.today-name {
    text-align: center;
    font-family: var(--font-type);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--c-ink);
}

.today-name {
    font-family: var(--font-latin);
    font-style: italic;
    font-size: 14px;
    color: var(--c-indigo);
    letter-spacing: 0.03em;
    margin-top: 6px;
}

.today-meta {
    text-align: center;
    font-family: var(--font-hand);
    font-size: 13px;
    color: var(--c-loam);
    margin-top: 2px;
}

/* ============================================================
   SOIL BED
   ============================================================ */
.soil-bed {
    grid-area: soil;
    position: relative;
    height: var(--rail-soil-height);
    background:
        radial-gradient(ellipse at 30% 0%, rgba(143, 165, 121, 0.18), transparent 60%),
        linear-gradient(180deg, var(--c-loam) 0%, var(--c-bog) 100%);
    border-top: 2px solid #1a120a;
    overflow: hidden;
    transform: translateY(100%);
    animation: assemble-soil 1.0s 0.45s var(--ease-settle) forwards;
}

@keyframes assemble-soil {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* granular noise texture */
.soil-bed::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 12% 30%, rgba(143, 165, 121, 0.06) 1px, transparent 1.6px),
        radial-gradient(circle at 28% 70%, rgba(74, 52, 36, 0.7)  0.8px, transparent 1.4px),
        radial-gradient(circle at 55% 40%, rgba(143, 165, 121, 0.05) 1px, transparent 1.6px),
        radial-gradient(circle at 72% 78%, rgba(43, 31, 20, 0.7)  0.6px, transparent 1.2px),
        radial-gradient(circle at 88% 30%, rgba(255, 122, 76, 0.05) 1px, transparent 1.4px);
    background-size: 28px 28px, 22px 22px, 32px 32px, 18px 18px, 36px 36px;
    mix-blend-mode: screen;
    opacity: 0.85;
}

.soil-tendrils {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.soil-tendrils .tendril {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    transition: stroke-dashoffset 1.8s var(--ease-settle);
}

.soil-bed.is-rooting .tendril-1 { stroke-dashoffset: 0; transition-delay: 0.0s; }
.soil-bed.is-rooting .tendril-2 { stroke-dashoffset: 0; transition-delay: 0.2s; }
.soil-bed.is-rooting .tendril-3 { stroke-dashoffset: 0; transition-delay: 0.4s; }

.soil-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0 24px;
}

.soil-cursive {
    font-family: var(--font-brush);
    font-size: 22px;
    color: var(--c-cream);
    transform: rotate(-1.4deg);
    text-shadow: 0 0 10px rgba(255, 122, 76, 0.65);
    opacity: 0;
    transition: opacity 0.6s var(--ease-settle);
}

.soil-bed.is-rooting .soil-cursive {
    opacity: 1;
}

.soil-meta {
    font-family: var(--font-type);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: rgba(242, 231, 210, 0.65);
    text-align: center;
}

/* ============================================================
   REDUCED MOTION RESPECT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .firefly { display: none; }
    html, body, a, button { cursor: auto; }
    .specimen-svg,
    .specimen-svg .blossoms circle,
    .firefly-core,
    .soil-tendrils .tendril {
        animation: none !important;
        transition: none !important;
    }
    .brass-rail,
    .specimen-index,
    .telemetry-rail,
    .soil-bed,
    .central-conservatory {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ============================================================
   RESPONSIVE (panes stack below 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .conservatory {
        grid-template-columns: 1fr;
        grid-template-rows: var(--rail-brass-height) auto auto auto var(--rail-soil-height);
        grid-template-areas:
            "rail"
            "index"
            "central"
            "telemetry"
            "soil";
    }

    .specimen-index {
        position: relative;
        top: auto;
        height: auto;
        max-height: 320px;
        border-right: 0;
        border-bottom: 1px solid rgba(74, 52, 36, 0.25);
    }

    .telemetry-rail {
        position: relative;
        top: auto;
        height: auto;
        border-left: 0;
        border-top: 1px solid rgba(74, 52, 36, 0.25);
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
    }

    .telemetry-rail .instrument {
        min-width: 180px;
        flex-shrink: 0;
    }

    .specimen-card {
        grid-template-columns: 1fr;
        gap: 22px;
        min-height: auto;
        padding: 36px 22px;
    }

    .card-illustration {
        margin: 0 auto;
    }

    .central-conservatory {
        padding: 30px 24px 50px;
    }

    .brass-rail-inner {
        padding: 0 14px;
        gap: 10px;
    }

    .weather-readout {
        padding: 4px 10px;
        gap: 8px;
    }

    .weather-value {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .wordmark-sub,
    .knob-label,
    .weather-cell:nth-child(5) {
        display: none;
    }
    .brass-knobs {
        gap: 8px;
    }
    .knob svg { width: 26px; height: 26px; }
}
