/* ============================================================
   archetype.boo — frosted-glass botanical conservatory
   Palette: deep moss, sage, lichen, dusty rose, fern glow,
            parchment, annotation green, root bark.
   Compliance vocabulary: IBM Plex Mono" (Google Fonts Interaction Pattern:** Pattern* Pattern: Pattern:* Pattern:: Rather than the overused parallax (96% IntersectionObserver for all scroll-triggered animations (threshold: 0.15 Source Sans 3".
   ============================================================ */

:root {
    --moss:           #2d3a2d;
    --moss-soft:      #3a4a3a;
    --sage:           #4a5d4a;
    --sage-soft:      #7a8f7a;
    --lichen:         #7a8f7a;
    --parchment:      #f7f3ec;
    --parchment-deep: #ebe4d4;
    --fern:           #8bb89e;
    --fern-deep:      #8b9e8b;
    --rose:           #c4a0a0;
    --bark:           #5c4a3a;

    --glass-bg:       rgba(255, 252, 247, 0.42);
    --glass-bg-strong:rgba(255, 252, 247, 0.58);
    --glass-border:   rgba(255, 255, 255, 0.35);
    --glass-border-strong: rgba(255, 255, 255, 0.55);

    --font-display: 'Bricolage Grotesque', 'Lora', Georgia, serif;
    --font-body:    'Source Sans 3', 'Inter', -apple-system, sans-serif;
    --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

    --ease-bloom: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-soft:  cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--sage);
    background:
        radial-gradient(ellipse at 20% 10%, rgba(139, 184, 158, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 30%, rgba(196, 160, 160, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 90%, rgba(139, 158, 139, 0.10) 0%, transparent 60%),
        var(--parchment);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* ============================================================
   Layer 0 — Conservatory Floor (botanical background)
   ============================================================ */

.conservatory-floor {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    will-change: transform;
}

.floor-frond {
    position: absolute;
    width: 42vw;
    height: 55vh;
    max-width: 520px;
    max-height: 620px;
    opacity: 0.9;
    animation: breathe 20s ease-in-out infinite;
    transform-origin: center;
}

.floor-frond path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
}

.floor-frond--tl {
    top: -8vh;
    left: -6vw;
    transform: rotate(-8deg);
    animation-delay: 0s;
}

.floor-frond--br {
    bottom: -10vh;
    right: -8vw;
    transform: rotate(8deg);
    animation-delay: -10s;
}

@keyframes breathe {
    0%, 100% { transform: scale(1.0) rotate(var(--rot, 0deg)); }
    50%      { transform: scale(1.04) rotate(var(--rot, 0deg)); }
}

.floor-frond--tl { --rot: -8deg; }
.floor-frond--br { --rot: 8deg; }

.petal-blob {
    position: absolute;
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    background: radial-gradient(circle at 40% 40%, rgba(196, 160, 160, 0.22), rgba(196, 160, 160, 0.06) 65%, transparent 80%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    mix-blend-mode: multiply;
    animation: drift 28s ease-in-out infinite;
}

.petal-blob--1 {
    width: 32vw; height: 28vw;
    top: 12vh; right: 8vw;
    animation-delay: 0s;
}
.petal-blob--2 {
    width: 26vw; height: 24vw;
    top: 55vh; left: 6vw;
    border-radius: 50% 70% 40% 60% / 60% 30% 70% 40%;
    animation-delay: -7s;
    background: radial-gradient(circle at 50% 50%, rgba(139, 184, 158, 0.18), rgba(139, 184, 158, 0.04) 65%, transparent 80%);
}
.petal-blob--3 {
    width: 22vw; height: 22vw;
    top: 140vh; right: 20vw;
    border-radius: 70% 30% 60% 40% / 40% 60% 30% 70%;
    animation-delay: -14s;
}
.petal-blob--4 {
    width: 30vw; height: 26vw;
    top: 240vh; left: 10vw;
    animation-delay: -21s;
    background: radial-gradient(circle at 40% 60%, rgba(139, 158, 139, 0.16), rgba(139, 158, 139, 0.04) 60%, transparent 80%);
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33%      { transform: translate(18px, -22px) rotate(3deg) scale(1.03); }
    66%      { transform: translate(-14px, 18px) rotate(-2deg) scale(0.98); }
}

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

/* ============================================================
   Spore particles
   ============================================================ */

.spore-field {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.spore {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(196, 160, 160, 0.45), rgba(196, 160, 160, 0) 70%);
    animation-name: spore-float;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform, opacity;
}

.spore.spore--green {
    background: radial-gradient(circle at 35% 35%, rgba(139, 184, 158, 0.38), rgba(139, 184, 158, 0) 70%);
}

@keyframes spore-float {
    0%   { transform: translateY(20px) translateX(0); opacity: 0; }
    8%   { opacity: 0.9; }
    92%  { opacity: 0.6; }
    100% { transform: translateY(-110vh) translateX(var(--sway, 40px)); opacity: 0; }
}

/* ============================================================
   Shared — pins, underlines
   ============================================================ */

.conservatory {
    position: relative;
    z-index: 2;
}

.pin {
    position: absolute;
    width: 8px;
    height: 8px;
    pointer-events: none;
}

.pin::before,
.pin::after {
    content: "";
    position: absolute;
    background: var(--lichen);
    opacity: 0.55;
}

.pin::before {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

.pin::after {
    top: 50%;
    left: 0;
    height: 1px;
    width: 100%;
    transform: translateY(-50%);
}

.pin--tl { top: 10px; left: 10px; }
.pin--tr { top: 10px; right: 10px; }
.pin--bl { bottom: 10px; left: 10px; }
.pin--br { bottom: 10px; right: 10px; }

/* ============================================================
   Section 1 — The Atrium
   ============================================================ */

.atrium {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vh 5vw 6vh;
    position: relative;
}

.atrium-card {
    position: relative;
    width: min(60vw, 920px);
    min-width: 320px;
    min-height: 40vh;
    padding: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 5vw, 4rem);
    background: rgba(255, 252, 247, 0.55);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(45, 58, 45, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.6rem);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: atrium-in 1.5s var(--ease-soft) 0.2s forwards;
}

@keyframes atrium-in {
    to { opacity: 1; transform: translateY(0); }
}

.atrium-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--lichen);
    text-transform: uppercase;
    flex-wrap: wrap;
}

.meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--lichen);
    opacity: 0.55;
}

.atrium-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 10vw, 6rem);
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: var(--moss);
    font-variation-settings: "opsz" 96;
}

.title-dot {
    color: var(--rose);
    display: inline-block;
    transform: translateY(-0.05em);
}

.atrium-manifesto {
    font-family: var(--font-body);
    font-size: clamp(0.98rem, 1.4vw, 1.125rem);
    line-height: 1.7;
    color: var(--sage);
    max-width: 58ch;
    margin: 0 auto;
}

.atrium-taxonomy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--lichen);
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

.tax-bracket {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--fern-deep);
    line-height: 1;
}

.atrium-scroll-hint {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--lichen);
    opacity: 0.75;
    animation: scroll-hint-pulse 3s ease-in-out infinite;
}

@keyframes scroll-hint-pulse {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50%      { opacity: 1; transform: translateY(4px); }
}

/* ============================================================
   Section 2 — The Collection (specimen board)
   ============================================================ */

.collection {
    padding: 8vh 5vw 12vh;
    position: relative;
}

.collection-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 6vh;
}

.collection-header-line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--fern-deep), transparent);
    opacity: 0.45;
}

.collection-header-text {
    text-align: center;
    padding: 0 1rem;
}

.section-no {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    color: var(--lichen);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    letter-spacing: -0.02em;
    color: var(--moss);
    line-height: 1.05;
    margin-bottom: 0.6rem;
}

.section-lede {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--sage);
    max-width: 46ch;
    margin: 0 auto;
    line-height: 1.65;
}

.specimen-board {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px 24px;
    max-width: 1220px;
    margin: 0 auto;
    padding: 40px 12px 80px;
}

.annotation-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.annotation-path {
    fill: none;
    stroke: var(--fern-deep);
    stroke-width: 1;
    stroke-linecap: round;
    opacity: 0.45;
}

/* ----- Specimen Card base ----- */

.specimen-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 26px 22px 22px;
    box-shadow:
        0 6px 24px rgba(45, 58, 45, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: rotate(var(--card-tilt, 0deg)) translateY(var(--card-offset, 0px));
    transition:
        transform 600ms var(--ease-soft),
        box-shadow 400ms ease,
        background 400ms ease;
    z-index: 2;
    min-height: 340px;

    /* Enter state (pre-bloom) */
    opacity: 0;
    filter: blur(4px);
}

.specimen-card.in-view {
    animation: bloom 700ms var(--ease-bloom) forwards;
    animation-delay: var(--enter-delay, 0ms);
}

@keyframes bloom {
    0% {
        opacity: 0;
        transform: scale(0.92) rotate(calc(var(--card-tilt, 0deg) + 2deg)) translateY(calc(var(--card-offset, 0px) + 14px));
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(var(--card-tilt, 0deg)) translateY(var(--card-offset, 0px));
        filter: blur(0);
    }
}

.specimen-card:hover {
    box-shadow:
        0 14px 44px rgba(45, 58, 45, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    background: var(--glass-bg-strong);
    z-index: 3;
}

/* Leaf-venation texture overlay */
.specimen-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(139, 158, 139, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(196, 160, 160, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.spec-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--lichen);
    text-transform: uppercase;
    padding-top: 4px;
}

.spec-no {
    font-weight: 500;
}

.spec-date {
    opacity: 0.72;
}

.spec-preview {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(247, 243, 236, 0.5) 0%, rgba(235, 228, 212, 0.35) 100%);
    border: 1px solid rgba(122, 143, 122, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--moss);
    line-height: 1.15;
    padding: 2px 0 0;
}

.spec-name-inner {
    display: inline;
    background-image: linear-gradient(var(--fern), var(--fern));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    padding-bottom: 3px;
    transition: background-size 400ms var(--ease-soft);
    cursor: default;
}

.specimen-card:hover .spec-name-inner,
.specimen-card:focus-within .spec-name-inner {
    background-size: 100% 2px;
}

.spec-annotation {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--sage);
    flex: 1;
}

.spec-foot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 6px;
    border-top: 1px dashed rgba(122, 143, 122, 0.28);
}

.spec-taxon {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--lichen);
    text-transform: uppercase;
}

/* ----- Per-card tilt + grid placement overrides (organic scatter) ----- */

.specimen-card--1  { --card-offset: 0px;   grid-column: span 1; }
.specimen-card--2  { --card-offset: 34px;  }
.specimen-card--3  { --card-offset: 12px;  }
.specimen-card--4  { --card-offset: 38px;  }
.specimen-card--5  { --card-offset: 8px;   }
.specimen-card--6  { --card-offset: 30px;  }
.specimen-card--7  { --card-offset: 16px;  }
.specimen-card--8  { --card-offset: 40px;  }
.specimen-card--9  { --card-offset: 6px;   }
.specimen-card--10 { --card-offset: 26px;  }
.specimen-card--11 { --card-offset: 14px;  }
.specimen-card--12 { --card-offset: 32px;  }

/* ----- Miniature archetype previews ----- */

/* SPEC 001 — Brutalist */
.spec-preview--brutalist {
    background: #ebe4d4;
    padding: 10px;
    gap: 4px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    justify-items: stretch;
    align-items: stretch;
}
.brut-a { background: #2d3a2d; grid-column: 1; grid-row: 1 / span 2; }
.brut-b { background: #7a8f7a; grid-column: 2; grid-row: 1; }
.brut-c { background: #c4a0a0; grid-column: 2; grid-row: 2; }
.brut-d { display: none; }
.brut-label {
    position: absolute;
    bottom: 6px;
    left: 16px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: #f7f3ec;
    letter-spacing: 0.2em;
    z-index: 2;
    mix-blend-mode: difference;
}

/* SPEC 002 — Glass */
.spec-preview--glass {
    overflow: hidden;
    padding: 0;
}
.glass-bg-a {
    position: absolute;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle at 40% 40%, #c4a0a0, transparent 70%);
    top: -10%;
    left: -10%;
    opacity: 0.7;
}
.glass-bg-b {
    position: absolute;
    width: 70%;
    height: 110%;
    background: radial-gradient(circle at 60% 60%, #8bb89e, transparent 70%);
    top: 0;
    right: -20%;
    opacity: 0.7;
}
.glass-panel {
    position: relative;
    width: 74%;
    height: 58%;
    background: rgba(255, 252, 247, 0.55);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(45, 58, 45, 0.1);
    z-index: 2;
}

/* SPEC 003 — Swiss */
.spec-preview--swiss {
    padding: 14px;
    gap: 0;
    background: #f7f3ec;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}
.spec-preview--swiss {
    flex-direction: row;
    align-items: stretch;
    gap: 6px;
}
.swiss-col { flex: 1; background: transparent; border-top: 2px solid #2d3a2d; position: relative; }
.swiss-col::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 85%;
    height: 6px;
    background: #4a5d4a;
    opacity: 0.55;
}
.swiss-col::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    width: 60%;
    height: 3px;
    background: #7a8f7a;
    opacity: 0.55;
}
.swiss-col--2::after { width: 70%; }
.swiss-col--3::after { width: 90%; }
.swiss-col--4::after { width: 55%; }
.swiss-rule {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 18px;
    height: 1px;
    background: #2d3a2d;
}

/* SPEC 004 — Bento */
.spec-preview--bento {
    padding: 10px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    background: #ebe4d4;
}
.bento { border-radius: 6px; }
.bento--a { grid-column: 1; grid-row: 1 / span 2; background: #8bb89e; }
.bento--b { grid-column: 2; grid-row: 1; background: #c4a0a0; }
.bento--c { grid-column: 3; grid-row: 1; background: #7a8f7a; }
.bento--d { grid-column: 2 / span 2; grid-row: 2; background: #5c4a3a; }
.bento--e { display: none; }

/* SPEC 005 — Editorial */
.spec-preview--editorial {
    padding: 12px 14px;
    background: #f7f3ec;
    display: block;
}
.ed-headline {
    width: 90%; height: 12px; background: #2d3a2d; border-radius: 2px; margin-bottom: 4px;
}
.ed-sub {
    width: 60%; height: 6px; background: #7a8f7a; border-radius: 2px; margin-bottom: 8px;
}
.ed-line {
    width: 100%; height: 1px; background: #2d3a2d; margin-bottom: 8px;
}
.ed-body-a, .ed-body-b, .ed-body-c {
    height: 3px; background: #4a5d4a; margin-bottom: 4px; border-radius: 1px; opacity: 0.65;
}
.ed-body-a { width: 96%; }
.ed-body-b { width: 88%; }
.ed-body-c { width: 72%; }
.ed-figure {
    position: absolute;
    right: 14px;
    bottom: 12px;
    width: 36px;
    height: 28px;
    background: #c4a0a0;
    border-radius: 2px;
}

/* SPEC 006 — Atmospheric */
.spec-preview--atmos {
    overflow: hidden;
    padding: 0;
    background: linear-gradient(to bottom, #f7f3ec 0%, #ebe4d4 60%, #c4a0a0 100%);
}
.atmos-sun {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(247, 243, 236, 0.95), rgba(196, 160, 160, 0.4) 70%, transparent);
    filter: blur(1px);
}
.atmos-horizon {
    position: absolute;
    bottom: 30%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(92, 74, 58, 0.6);
}
.atmos-title {
    position: absolute;
    bottom: 16%;
    left: 14px;
    width: 62%;
    height: 8px;
    background: #2d3a2d;
    border-radius: 1px;
    opacity: 0.85;
}
.atmos-sub {
    position: absolute;
    bottom: 9%;
    left: 14px;
    width: 38%;
    height: 4px;
    background: #4a5d4a;
    border-radius: 1px;
    opacity: 0.7;
}

/* SPEC 007 — Terminal */
.spec-preview--terminal {
    background: #2d3a2d;
    padding: 10px 12px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: #8bb89e;
    letter-spacing: 0.04em;
    text-align: left;
    line-height: 1.55;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}
.term-prompt {
    color: #c4a0a0;
    margin-bottom: 6px;
}
.term-line { color: #8bb89e; }
.term-line--b { color: #f7f3ec; opacity: 0.8; }
.term-line--c { color: #8bb89e; font-weight: 500; }
.term-caret {
    display: inline-block;
    width: 6px;
    height: 9px;
    background: #8bb89e;
    margin-top: 4px;
    animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink {
    50% { opacity: 0; }
}

/* SPEC 008 — Organic Blob */
.spec-preview--organic {
    background: #f7f3ec;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
}
.blob--a {
    width: 70px; height: 60px;
    background: #c4a0a0; opacity: 0.7;
    top: 18%; left: 10%;
    animation: blob-morph 12s ease-in-out infinite;
}
.blob--b {
    width: 80px; height: 70px;
    background: #8bb89e; opacity: 0.65;
    bottom: 12%; right: 12%;
    border-radius: 50% 70% 40% 60% / 60% 30% 70% 40%;
    animation: blob-morph 14s ease-in-out -3s infinite;
}
.blob--c {
    width: 40px; height: 36px;
    background: #7a8f7a; opacity: 0.55;
    top: 40%; right: 30%;
    border-radius: 70% 30% 60% 40% / 40% 60% 30% 70%;
    animation: blob-morph 10s ease-in-out -6s infinite;
}
@keyframes blob-morph {
    0%, 100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; transform: scale(1); }
    33%      { border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%; transform: scale(1.08); }
    66%      { border-radius: 70% 30% 50% 50% / 40% 70% 30% 60%; transform: scale(0.96); }
}

/* SPEC 009 — Museum */
.spec-preview--museum {
    background: #f7f3ec;
}
.museum-frame {
    width: 40px;
    height: 54px;
    background: linear-gradient(135deg, #4a5d4a 0%, #2d3a2d 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(45, 58, 45, 0.2);
}
.museum-plate {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 8px;
    background: #ebe4d4;
    border: 1px solid #7a8f7a;
}
.museum-plate-line {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 2px;
    background: #4a5d4a;
    opacity: 0.5;
}

/* SPEC 010 — Tree (SVG inside) */
.spec-preview--tree {
    background: #f7f3ec;
    padding: 10px;
}

/* SPEC 011 — Layered */
.spec-preview--layered {
    background: linear-gradient(to bottom, #f7f3ec 0%, #ebe4d4 100%);
    overflow: hidden;
}
.layer {
    position: absolute;
    left: 0;
    right: 0;
}
.layer--1 {
    bottom: 0;
    height: 44%;
    background: linear-gradient(to top, #5c4a3a, #7a8f7a);
    opacity: 0.55;
    clip-path: polygon(0 60%, 20% 40%, 50% 55%, 75% 35%, 100% 50%, 100% 100%, 0 100%);
}
.layer--2 {
    bottom: 0;
    height: 60%;
    background: linear-gradient(to top, #7a8f7a, #8bb89e);
    opacity: 0.5;
    clip-path: polygon(0 70%, 25% 55%, 50% 70%, 75% 50%, 100% 65%, 100% 100%, 0 100%);
}
.layer--3 {
    bottom: 0;
    height: 80%;
    background: linear-gradient(to top, #8b9e8b, #c4a0a0);
    opacity: 0.35;
    clip-path: polygon(0 82%, 30% 70%, 60% 80%, 100% 72%, 100% 100%, 0 100%);
}
.layer--mark {
    top: 22%;
    left: 65%;
    width: 14px;
    height: 14px;
    background: #f7f3ec;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(247, 243, 236, 0.8);
}

/* SPEC 012 — Annotated diagram (SVG inside) */
.spec-preview--diagram {
    background: #f7f3ec;
    padding: 8px;
}

/* ----- Pressed flower divider ----- */

.pressed-flower {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 40px auto 20px;
    opacity: 0.55;
}

.pressed-flower .petal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 36px;
    margin-left: -11px;
    margin-top: -22px;
    background: var(--rose);
    opacity: 0.5;
    border-radius: 60% 60% 50% 50% / 80% 80% 30% 30%;
    transform-origin: 50% 100%;
}

.pressed-flower .petal:nth-child(1) { transform: translateY(-18px) rotate(0deg); }
.pressed-flower .petal:nth-child(2) { transform: translateY(-18px) rotate(72deg); }
.pressed-flower .petal:nth-child(3) { transform: translateY(-18px) rotate(144deg); }
.pressed-flower .petal:nth-child(4) { transform: translateY(-18px) rotate(216deg); }
.pressed-flower .petal:nth-child(5) { transform: translateY(-18px) rotate(288deg); }

.flower-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    margin-top: -6px;
    background: var(--bark);
    border-radius: 50%;
    opacity: 0.7;
}

/* ============================================================
   Section 3 — The Root System
   ============================================================ */

.root-system {
    min-height: 80vh;
    padding: 10vh 5vw 12vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    text-align: center;
}

.root-header {
    margin-bottom: 4vh;
    max-width: 640px;
}

.tree-wrap {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 600 / 520;
    margin: 0 auto;
    position: relative;
}

.tree-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.tree-svg .tree-branch,
.tree-svg .tree-root {
    stroke-dasharray: var(--path-len, 1000);
    stroke-dashoffset: var(--path-len, 1000);
    transition: stroke-dashoffset 3s var(--ease-soft);
}

.tree-svg.drawn .tree-branch,
.tree-svg.drawn .tree-root {
    stroke-dashoffset: 0;
}

.tree-svg .tree-node,
.tree-svg .tree-leaf,
.tree-svg .tree-core {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.tree-svg.drawn .tree-core { opacity: 1; transition-delay: 0.2s; }
.tree-svg.drawn .tree-node { opacity: 1; transition-delay: 1.4s; }
.tree-svg.drawn .tree-leaf { opacity: 1; transition-delay: 2.4s; }

.tree-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    fill: var(--sage);
}

.tree-label--core {
    font-size: 11px;
    fill: var(--bark);
    letter-spacing: 0.22em;
    font-weight: 500;
}

.tree-label--leaf {
    font-size: 9px;
    letter-spacing: 0.14em;
    fill: var(--lichen);
    text-transform: lowercase;
    font-style: italic;
}

.closing-line {
    margin-top: 3vh;
    font-family: var(--font-body);
    font-size: 16px;
    font-style: italic;
    color: var(--lichen);
    max-width: 52ch;
    line-height: 1.7;
    padding: 0 1rem;
}

.colophon {
    margin-top: 6vh;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--lichen);
    text-transform: uppercase;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0.8;
}

.colophon-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--lichen);
    opacity: 0.6;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 800px) {
    .atrium-card {
        width: 90vw;
        padding: 2.4rem 1.6rem;
    }

    .specimen-board {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 22px 18px;
        padding: 24px 4px 60px;
    }

    .specimen-card {
        --card-offset: 0px !important;
        min-height: 310px;
    }

    .collection-header {
        grid-template-columns: 1fr;
    }

    .collection-header-line {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
