/* ===========================================================
   archetype.works — styles
   Skeuomorphic Pastoral: Victorian greenhouse + bioluminescent
   Palette: neon-electric on dark loam
   =========================================================== */

/* --- CSS custom properties ----------------------------------- */
:root {
    /* Palette (from DESIGN.md) */
    --loam-deepest: #0d0b07;   /* Background / deep loam */
    --loam-dark:    #1c1814;   /* Specimen surface */
    --sage:         #8a9a7b;   /* Secondary text (muted sage) */
    --bone:         #f5efe6;   /* Primary text (warm cream) */
    --neon-green:   #39ff14;   /* Primary neon (vine) */
    --neon-rose:    #ff6b9d;   /* Secondary neon (highlights) */
    --neon-lavender:#b388ff;   /* Tertiary neon (ambient) */
    --brass:        #7a6c3e;   /* Border / oxidized brass */

    /* Typography */
    --font-heading: 'Nunito Sans', 'Inter', sans-serif;
    --font-body:    'Source Serif 4', 'Lora', Georgia, serif;
    --font-hand:    'Caveat', 'Lora', cursive;

    /* Golden-ratio spacing */
    --sp-1: 16px;
    --sp-2: 26px;
    --sp-3: 42px;
    --sp-4: 68px;
    --sp-5: 110px;

    /* Radius */
    --r-card: 12px;

    /* Bounce easing */
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: var(--loam-deepest);
}

body {
    background-color: var(--loam-deepest);
    color: var(--bone);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.85;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;

    /* Subtle vignette over the whole page */
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(57, 255, 20, 0.035), transparent 55%),
        radial-gradient(ellipse at 100% 50%, rgba(255, 107, 157, 0.025), transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(179, 136, 255, 0.03), transparent 55%);
    background-attachment: fixed;
}

p { font-family: var(--font-body); }

::selection {
    background: rgba(57, 255, 20, 0.25);
    color: var(--bone);
}

/* --- bokeh field -------------------------------------------- */
#bokeh-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: bokeh-drift linear infinite;
    will-change: transform;
}

@keyframes bokeh-drift {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(16px, -22px) scale(1.06); }
    50%  { transform: translate(-12px, -38px) scale(0.94); }
    75%  { transform: translate(22px, -16px) scale(1.03); }
    100% { transform: translate(0, 0) scale(1); }
}

/* --- central vine SVG --------------------------------------- */
#vine-svg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    max-width: 1200px;
    z-index: 1;
    pointer-events: none;
}

#main-vine {
    /* Dasharray/offset are set precisely by JS */
    stroke-dasharray: 16000;
    stroke-dashoffset: 16000;
}

.vine-branch {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1s ease-out;
}
.vine-branch.visible {
    stroke-dashoffset: 0;
}

.vine-leaf {
    opacity: 0;
    transition: opacity 1.2s ease-out;
}
.vine-leaf.visible {
    opacity: 0.45;
}

/* --- generic section ---------------------------------------- */
.section-full {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4) var(--sp-2);
}

/* ================================================
   HERO
   ================================================ */
#hero {
    text-align: center;
    overflow: hidden;
}

/* The "ur-bloom" — rotating stylized magnolia cross-section */
.ur-bloom {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(680px, 90vw);
    height: min(680px, 90vw);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: ur-bloom-spin 60s linear infinite;
    opacity: 0;
    animation-delay: 0s, 1.2s;
    animation-name: ur-bloom-spin, ur-bloom-fade;
    animation-duration: 60s, 2.5s;
    animation-timing-function: linear, ease-out;
    animation-iteration-count: infinite, 1;
    animation-fill-mode: none, forwards;
}

@keyframes ur-bloom-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes ur-bloom-fade {
    to { opacity: 0.55; }
}

.ur-bloom-petal {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    mix-blend-mode: screen;
    filter: blur(18px);
}
.petal-a {
    background: radial-gradient(circle at 50% 30%,
        rgba(57, 255, 20, 0.32), transparent 55%);
}
.petal-b {
    background: radial-gradient(circle at 72% 68%,
        rgba(255, 107, 157, 0.28), transparent 55%);
    transform: rotate(120deg);
}
.petal-c {
    background: radial-gradient(circle at 28% 68%,
        rgba(179, 136, 255, 0.28), transparent 55%);
    transform: rotate(240deg);
}
.ur-bloom-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18%;
    height: 18%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(245, 239, 230, 0.25),
        rgba(57, 255, 20, 0.18) 40%,
        transparent 70%);
    filter: blur(6px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero-eyebrow {
    font-family: var(--font-hand);
    color: var(--neon-rose);
    font-size: 20px;
    letter-spacing: 0.02em;
    margin-bottom: var(--sp-2);
    text-shadow: 0 0 14px rgba(255, 107, 157, 0.35);
    opacity: 0;
    animation: eyebrow-in 1.4s ease-out 0.6s forwards;
}
@keyframes eyebrow-in {
    to { opacity: 0.9; transform: translateY(0); }
}

#hero-title-container {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    line-height: 1;
}

/* The word "archetype" is rendered letter-by-letter in Caveat,
   populated by JS so each letter can animate in as if written. */
#hero-title {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: clamp(64px, 12vw, 128px);
    color: var(--neon-green);
    letter-spacing: 0.01em;
    text-shadow:
        0 0 20px rgba(57, 255, 20, 0.55),
        0 0 40px rgba(57, 255, 20, 0.3);
    line-height: 1;
    position: relative;
    top: 4px;
}

#hero-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px) rotate(-3deg);
    animation: letter-write 0.45s var(--ease-bounce) forwards;
}

@keyframes letter-write {
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

.hero-dot {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 400;
    color: var(--bone);
    letter-spacing: 0.05em;
    margin-left: 0.1em;
    opacity: 0;
    animation: dot-in 1s ease-out 2s forwards;
    text-shadow: 0 0 18px rgba(245, 239, 230, 0.15);
}
@keyframes dot-in {
    to { opacity: 0.85; }
}

.hero-tagline {
    margin-top: var(--sp-3);
    font-family: var(--font-body);
    font-size: clamp(16px, 2.1vw, 19px);
    font-weight: 400;
    font-style: italic;
    color: var(--sage);
    line-height: 2;
    opacity: 0;
    animation: hero-tagline-in 2s ease-out 2.3s forwards;
}
.hero-tagline span {
    display: block;
}
@keyframes hero-tagline-in {
    to { opacity: 0.9; }
}

.hero-annotation {
    margin-top: var(--sp-3);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-hand);
    color: var(--neon-lavender);
    font-size: 18px;
    opacity: 0;
    animation: annotation-in 1.4s ease-out 3s forwards;
}
.annotation-line {
    display: inline-block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
@keyframes annotation-in {
    to { opacity: 0.75; }
}

.scroll-indicator {
    position: absolute;
    bottom: var(--sp-3);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation:
        scroll-fade-in 1s ease-out 3.2s forwards,
        scroll-bounce 2.2s ease-in-out 4.2s infinite;
}
.scroll-label {
    font-family: var(--font-hand);
    font-size: 15px;
    color: var(--neon-green);
    letter-spacing: 0.02em;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
}
@keyframes scroll-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 10px); }
}
@keyframes scroll-fade-in {
    to { opacity: 0.75; }
}

/* ================================================
   SPECIMEN CARDS (bounce-enter)
   ================================================ */
.specimen-card {
    position: relative;
    z-index: 2;
    display: flex;
    padding: var(--sp-3) var(--sp-2);
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.9s var(--ease-bounce),
        transform 0.9s var(--ease-bounce);
}
.specimen-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-right { justify-content: flex-end;   padding-right: calc(var(--sp-2) + 8px); }
.card-left  { justify-content: flex-start; padding-left:  calc(var(--sp-2) + 8px); }

/* --- specimen frame ----------------------------------------- */
.specimen-frame {
    position: relative;
    max-width: 520px;
    width: 100%;
    padding: var(--sp-3) var(--sp-3);
    background:
        linear-gradient(145deg, rgba(28, 24, 20, 0.96), rgba(13, 11, 7, 0.92));
    border: 1px solid rgba(122, 108, 62, 0.4);
    border-radius: var(--r-card);
    box-shadow:
        inset 0 1px 0 rgba(245, 239, 230, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(122, 108, 62, 0.12),
        0 10px 40px rgba(0, 0, 0, 0.55),
        0 2px 8px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}

/* Linen-paper texture overlay */
.specimen-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-card);
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
        repeating-linear-gradient(0deg, rgba(245, 239, 230, 0.012) 0 2px, transparent 2px 4px),
        repeating-linear-gradient(90deg, rgba(245, 239, 230, 0.012) 0 2px, transparent 2px 4px);
    background-size: 160px, auto, auto;
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: screen;
}

/* Hover: subtle lift + neon rim */
.specimen-frame:hover {
    border-color: rgba(57, 255, 20, 0.35);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(245, 239, 230, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(122, 108, 62, 0.18),
        0 14px 44px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(57, 255, 20, 0.12);
    animation: frame-glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes frame-glow-pulse {
    0%   { box-shadow:
        inset 0 1px 0 rgba(245, 239, 230, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(122, 108, 62, 0.18),
        0 14px 44px rgba(0, 0, 0, 0.6),
        0 0 10px rgba(57, 255, 20, 0.1); }
    100% { box-shadow:
        inset 0 1px 0 rgba(245, 239, 230, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(122, 108, 62, 0.22),
        0 14px 44px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(57, 255, 20, 0.22); }
}

/* --- brass clasps ------------------------------------------- */
.specimen-clasp {
    position: absolute;
    width: 24px;
    height: 9px;
    background:
        linear-gradient(180deg, #a89356 0%, #7a6c3e 45%, #4d4224 100%);
    border-radius: 3px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(245, 239, 230, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35);
    z-index: 3;
}
.specimen-clasp::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #5a4c2e;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6);
}
.specimen-clasp-top    { top: -5px; }
.specimen-clasp-bottom { bottom: -5px; }

/* --- corner rosettes (botanical motif) ---------------------- */
.rosette {
    position: absolute;
    width: 28px;
    height: 28px;
    pointer-events: none;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%2339ff14' stroke-width='0.8' opacity='0.9'%3E%3Cpath d='M14 6 C15 10 18 11 20 11 C18 12 15 14 14 18 C13 14 10 12 8 11 C10 11 13 10 14 6 Z'/%3E%3Cpath d='M20 11 C20 13 22 16 22 17 C20 16 16 16 14 18 C16 16 18 13 20 11 Z' opacity='0.5'/%3E%3Cpath d='M8 11 C8 13 6 16 6 17 C8 16 12 16 14 18 C12 16 10 13 8 11 Z' opacity='0.5'/%3E%3Ccircle cx='14' cy='13' r='1.2' fill='%2339ff14' opacity='0.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.rosette-tl { top: 8px;  left: 8px;  }
.rosette-br { bottom: 8px; right: 8px; transform: rotate(180deg); }

/* --- specimen content --------------------------------------- */
.specimen-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--sp-2);
    margin-bottom: var(--sp-1);
    flex-wrap: wrap;
}

.specimen-number {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass);
    opacity: 0.8;
}

.specimen-latin {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    color: var(--sage);
    opacity: 0.75;
}

.specimen-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--bone);
    line-height: 1.18;
    margin-bottom: var(--sp-1);
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.05);
}

.specimen-divider {
    width: 60px;
    height: 1.5px;
    background: linear-gradient(90deg, var(--neon-green), transparent);
    margin-bottom: var(--sp-2);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.45);
    animation: divider-pulse 4s ease-in-out infinite alternate;
}

@keyframes divider-pulse {
    0%   { box-shadow: 0 0 10px rgba(57, 255, 20, 0.35); opacity: 0.7; }
    100% { box-shadow: 0 0 22px rgba(57, 255, 20, 0.65); opacity: 1;   }
}

.specimen-body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.85;
    color: rgba(245, 239, 230, 0.85);
    margin-bottom: var(--sp-2);
}

/* Handwritten "marginalia" quote */
.specimen-margin {
    font-family: var(--font-hand);
    font-size: 20px;
    color: var(--neon-rose);
    padding-left: 14px;
    border-left: 2px solid rgba(255, 107, 157, 0.5);
    margin-bottom: var(--sp-2);
    text-shadow: 0 0 12px rgba(255, 107, 157, 0.3);
    line-height: 1.4;
}

.specimen-illustration {
    display: flex;
    justify-content: center;
    padding: var(--sp-1) 0;
}
.specimen-svg {
    width: 200px;
    height: 120px;
    opacity: 0.88;
    transition: transform 0.8s ease-out, opacity 0.4s ease;
}
.specimen-frame:hover .specimen-svg {
    opacity: 1;
}

.specimen-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: var(--sp-1);
    border-top: 1px dashed rgba(122, 108, 62, 0.35);
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brass);
}
.footer-tag { opacity: 0.6; }
.footer-val { color: var(--neon-lavender); opacity: 0.85;
              text-shadow: 0 0 8px rgba(179, 136, 255, 0.35); }

/* --- section dividers (vine tendril between cards) ---------- */
.section-divider {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: var(--sp-2) 0;
    opacity: 0.85;
}

/* ================================================
   CLOSING
   ================================================ */
.closing-section {
    padding: var(--sp-5) var(--sp-2);
    text-align: center;
}

.closing-content {
    max-width: 640px;
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 1s var(--ease-bounce),
        transform 1s var(--ease-bounce);
}
.closing-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.closing-ornament {
    margin: 0 auto var(--sp-3);
    width: 120px;
    height: 120px;
    animation: ornament-spin 45s linear infinite;
    filter: drop-shadow(0 0 16px rgba(57, 255, 20, 0.25));
}
.bloom-petal {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.6s var(--ease-bounce);
}
.closing-content.visible .bloom-petal {
    stroke-dashoffset: 0;
}

@keyframes ornament-spin {
    to { transform: rotate(360deg); }
}

.closing-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--bone);
    margin-bottom: var(--sp-1);
    text-shadow: 0 0 30px rgba(57, 255, 20, 0.1);
}

.closing-divider {
    margin: 0 auto var(--sp-2);
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
}

.closing-body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.85;
    color: rgba(245, 239, 230, 0.78);
    margin-bottom: var(--sp-3);
}

.closing-signature {
    font-family: var(--font-hand);
    font-size: clamp(28px, 4vw, 38px);
    color: var(--neon-green);
    text-shadow:
        0 0 16px rgba(57, 255, 20, 0.55),
        0 0 32px rgba(57, 255, 20, 0.3);
    margin-bottom: var(--sp-3);
    line-height: 1.2;
}

.closing-domain {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: lowercase;
    color: var(--neon-green);
    text-shadow: 0 0 14px rgba(57, 255, 20, 0.4);
    opacity: 0.85;
    margin-bottom: var(--sp-2);
}

.colophon {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    color: var(--sage);
    opacity: 0.6;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.colophon-sep {
    color: var(--brass);
    opacity: 0.6;
}

/* ================================================
   BOTANICAL INDEX (fixed bottom-right buds)
   ================================================ */
#botanical-index {
    position: fixed;
    bottom: var(--sp-2);
    right: var(--sp-2);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 12px 10px;
    background: linear-gradient(145deg, rgba(28, 24, 20, 0.7), rgba(13, 11, 7, 0.55));
    border: 1px solid rgba(122, 108, 62, 0.35);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        inset 0 1px 0 rgba(245, 239, 230, 0.04),
        0 6px 24px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(20px);
    animation: index-in 1.2s var(--ease-bounce) 1s forwards;
}
@keyframes index-in {
    to { opacity: 1; transform: translateY(0); }
}

.bud {
    position: relative;
    width: 14px;
    height: 14px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s var(--ease-bounce);
}

.bud-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--neon-green);
    background: transparent;
    box-shadow: 0 0 6px rgba(57, 255, 20, 0.4);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.bud:hover {
    transform: scale(2);
}
.bud:hover .bud-dot {
    background: var(--neon-green);
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.9);
}

.bud.active .bud-dot {
    background: var(--neon-green);
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.8);
}

/* Tooltip — handwritten botanical label */
.bud::before {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    font-family: var(--font-hand);
    font-size: 16px;
    color: var(--neon-rose);
    white-space: nowrap;
    padding: 4px 10px;
    background: rgba(13, 11, 7, 0.85);
    border: 1px solid rgba(122, 108, 62, 0.45);
    border-radius: 4px;
    box-shadow: 0 0 14px rgba(255, 107, 157, 0.25);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.35s ease,
        transform 0.35s var(--ease-bounce);
}
.bud:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* ================================================
   LEAF PARTICLES (hover hint on cards)
   ================================================ */
#leaf-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 60;
    overflow: hidden;
}
.leaf {
    position: absolute;
    width: 8px;
    height: 12px;
    border-radius: 0 100% 0 100%;
    opacity: 0;
    animation: leaf-rise 1.1s ease-out forwards;
    will-change: transform, opacity;
    filter: drop-shadow(0 0 6px rgba(57, 255, 20, 0.45));
}
@keyframes leaf-rise {
    0%   { opacity: 0; transform: translate(0, 0) rotate(0deg); }
    15%  { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--lx, 20px), -70px) rotate(var(--lr, 180deg)); }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
    .card-right,
    .card-left {
        justify-content: center;
        padding-left: var(--sp-1);
        padding-right: var(--sp-1);
    }

    .specimen-frame {
        max-width: 100%;
        width: 94%;
        padding: var(--sp-2) var(--sp-2);
    }

    #vine-svg {
        left: 20px;
        transform: none;
        width: 40px;
        opacity: 0.5;
    }

    #botanical-index {
        bottom: 12px;
        right: 12px;
        padding: 8px 6px;
        gap: 10px;
    }

    .ur-bloom {
        width: 120vw;
        height: 120vw;
    }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    .specimen-frame { padding: var(--sp-2) var(--sp-1); }
    .specimen-body  { font-size: 15px; }
    .specimen-title { font-size: 28px; }
    #hero-title     { font-size: 64px; }
    .hero-dot       { font-size: 22px; }

    .specimen-header {
        flex-direction: column;
        gap: 4px;
    }

    .bud::before { display: none; }
}

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--loam-deepest); }
::-webkit-scrollbar-thumb {
    background: var(--brass);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--sage); }
