/* ============================================================
   sim-ai.net  —  a luminous digital terrarium
   Fairycore × machine learning, candy-bright neon-glow palette
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --c-bg-light: #F0E6FF;       /* pale wisteria */
    --c-bg-mid:   #D4C5F9;       /* mid lavender */
    --c-bg-deep:  #1A0E2E;       /* midnight aubergine */
    --c-bg-deep2: #2A1B3D;       /* deep plum */

    --c-pink:     #FF6FB7;       /* hot orchid pink */
    --c-mint:     #44D7B6;       /* bioluminescent mint */
    --c-gold:     #FFCF56;       /* firefly gold */
    --c-violet:   #7B68EE;       /* slate blue */

    --c-text:     #2A1B3D;       /* deep plum */
    --c-text-mute:#6B5B7B;       /* muted lavender */
    --c-text-soft:#D4C5F9;       /* soft lavender (on dark) */

    --c-card:     rgba(255, 255, 255, 0.35);
    --c-card-deep: rgba(42, 27, 61, 0.45);
    --c-glow-pink: rgba(255, 111, 183, 0.15);

    --shadow-soft:
        0 6px 22px rgba(123, 104, 238, 0.18),
        0 1px 3px  rgba(42, 27, 61, 0.12);

    --grid-gap: clamp(16px, 2.5vw, 32px);

    --font-body:    "Commissioner", "Inter", system-ui, sans-serif;
    --font-display: "Baloo 2", "Commissioner", system-ui, sans-serif;

    --scroll-depth: 0;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: var(--c-text);

    background:
        radial-gradient(1200px 800px at 12% -10%,
            rgba(255, 207, 86, 0.16), transparent 60%),
        radial-gradient(1000px 700px at 88% 8%,
            rgba(68, 215, 182, 0.18), transparent 60%),
        radial-gradient(1400px 1000px at 50% 110%,
            rgba(123, 104, 238, 0.22), transparent 65%),
        linear-gradient(
            180deg,
            var(--c-bg-light) 0%,
            var(--c-bg-light) calc(20% - var(--scroll-depth) * 0%),
            var(--c-bg-mid)   45%,
            #5a4380           75%,
            var(--c-bg-deep2) 90%,
            var(--c-bg-deep)  100%
        );
    background-attachment: fixed;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* SVG defs holder is invisible */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ---------- Particle field ---------- */
#particle-field {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Connection thread overlay ---------- */
#thread-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: visible;
}

/* ---------- Navigation cluster ---------- */
#nav-cluster {
    position: fixed;
    top: clamp(18px, 2.5vw, 32px);
    right: clamp(18px, 2.5vw, 32px);
    z-index: 50;
}

#nav-toggle {
    position: relative;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(14px) saturate(1.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    box-shadow:
        0 0 14px rgba(255, 111, 183, 0.35),
        0 0 30px rgba(123, 104, 238, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease;
    will-change: transform;
}

#nav-toggle:hover { transform: scale(1.08) rotate(8deg); }

.nav-shape {
    position: absolute;
    width: 12px;
    height: 12px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-circle {
    background: var(--c-pink);
    border-radius: 50%;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(255, 111, 183, 0.7);
}

.nav-triangle {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 12px solid var(--c-mint);
    bottom: 14px;
    left: 16px;
    filter: drop-shadow(0 0 6px rgba(68, 215, 182, 0.7));
}

.nav-hexagon {
    background: var(--c-violet);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    bottom: 14px;
    right: 16px;
    box-shadow: 0 0 6px rgba(123, 104, 238, 0.7);
}

#nav-cluster.open .nav-circle   { transform: translate(-50%, -34px) scale(1.2); }
#nav-cluster.open .nav-triangle { transform: translate(-22px, 22px) scale(1.2); }
#nav-cluster.open .nav-hexagon  { transform: translate(22px, 22px) scale(1.2); }

#nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    margin: 0;
    padding: 14px 18px;
    list-style: none;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-radius: 18px;
    box-shadow:
        0 10px 30px rgba(42, 27, 61, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    transform: translateY(-8px) scale(0.95);
    transform-origin: top right;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.25s ease;
    min-width: 180px;
}

#nav-cluster.open #nav-links {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

#nav-links li { margin: 6px 0; }

#nav-links a {
    display: block;
    padding: 6px 8px;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-text);
    border-radius: 8px;
    transition: color 0.25s ease, background 0.25s ease, text-shadow 0.3s ease;
}

#nav-links a:hover {
    color: var(--nav-color, var(--c-pink));
    background: rgba(255, 255, 255, 0.4);
    text-shadow: 0 0 10px var(--nav-color, var(--c-pink));
}

/* ---------- Sections common ---------- */
section {
    position: relative;
    z-index: 1;
}

.section-intro,
.deep-intro {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 40px) clamp(28px, 4vw, 48px);
    text-align: center;
}

.section-eyebrow {
    margin: 0 0 14px;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-violet);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    color: var(--c-text);
}

.section-title em {
    font-style: normal;
    background: linear-gradient(120deg, var(--c-pink), var(--c-mint));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 24px rgba(255, 111, 183, 0.25);
}

.section-body {
    margin: 0 auto;
    max-width: 56ch;
    color: var(--c-text-mute);
}

/* ---------- HERO ---------- */
.hero-zone {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(60px, 8vw, 100px) clamp(20px, 4vw, 40px);
    position: relative;
}

.terrarium-frame {
    position: relative;
    width: min(86vw, 760px);
    aspect-ratio: 5 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terrarium-outline {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.terrarium-path {
    fill: rgba(255, 255, 255, 0.18);
    stroke: var(--c-violet);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    filter:
        drop-shadow(0 0 8px rgba(123, 104, 238, 0.55))
        drop-shadow(0 0 22px rgba(255, 111, 183, 0.28));
    animation: draw-terrarium 1.5s ease 0.4s forwards,
               terrarium-breathe 7s ease-in-out 2s infinite;
}

.terrarium-inner {
    fill: rgba(255, 255, 255, 0.10);
    stroke: var(--c-pink);
    stroke-width: 1.2;
    stroke-linejoin: round;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    opacity: 0.65;
    animation: draw-terrarium 1.6s ease 0.7s forwards;
}

.corner-orn {
    fill: var(--c-gold);
    filter: drop-shadow(0 0 6px rgba(255, 207, 86, 0.85));
    opacity: 0;
    animation: orn-pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s forwards,
               specimen-breathe 4s ease-in-out 2.5s infinite;
}

@keyframes draw-terrarium {
    to { stroke-dashoffset: 0; }
}

@keyframes terrarium-breathe {
    0%, 100% {
        filter:
            drop-shadow(0 0 8px rgba(123, 104, 238, 0.55))
            drop-shadow(0 0 22px rgba(255, 111, 183, 0.28));
    }
    50% {
        filter:
            drop-shadow(0 0 14px rgba(123, 104, 238, 0.75))
            drop-shadow(0 0 38px rgba(255, 111, 183, 0.45));
    }
}

@keyframes orn-pop {
    0%   { opacity: 0; transform: scale(0); }
    60%  { opacity: 1; transform: scale(1.4); }
    100% { opacity: 1; transform: scale(1); }
}

.terrarium-inner-content {
    position: relative;
    width: 70%;
    padding: 1.5rem;
    text-align: center;
    z-index: 2;
}

.seed-cloud {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.seed {
    position: absolute;
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
    animation: seed-rise 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.seed-tri {
    top: 18%;
    left: 22%;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 12px solid var(--c-mint);
    filter: drop-shadow(0 0 6px rgba(68, 215, 182, 0.8));
    animation-delay: 0.6s;
}

.seed-hex {
    top: 70%;
    left: 18%;
    background: var(--c-violet);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    box-shadow: 0 0 8px rgba(123, 104, 238, 0.85);
    animation-delay: 0.75s;
}

.seed-cir {
    top: 30%;
    left: 78%;
    background: var(--c-pink);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 111, 183, 0.85);
    animation-delay: 0.85s;
}

.seed-pen {
    top: 76%;
    left: 80%;
    background: var(--c-gold);
    clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
    box-shadow: 0 0 8px rgba(255, 207, 86, 0.9);
    animation-delay: 0.95s;
}

.seed-sta {
    top: 50%;
    left: 50%;
    background: var(--c-mint);
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    box-shadow: 0 0 12px rgba(68, 215, 182, 0.85);
    animation-delay: 0.45s;
}

.seed-tri2 {
    top: 84%;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 11px solid var(--c-pink);
    filter: drop-shadow(0 0 6px rgba(255, 111, 183, 0.8));
    animation-delay: 1.0s;
}

.seed-hex2 {
    top: 14%;
    left: 56%;
    background: var(--c-gold);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    box-shadow: 0 0 8px rgba(255, 207, 86, 0.8);
    animation-delay: 1.05s;
}

@keyframes seed-rise {
    0%   { opacity: 0; transform: translate(-50%, -30%) scale(0.4) rotate(-30deg); }
    60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.2) rotate(8deg); }
    100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

.site-title {
    position: relative;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.6rem, 8vw, 5.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0;
    color: #fff;
    text-shadow:
        0 0 10px rgba(255, 111, 183, 0.6),
        0 0 30px rgba(255, 111, 183, 0.3),
        0 0 60px rgba(68, 215, 182, 0.25);
    z-index: 2;
}

.title-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px) scale(0.4) rotate(-12deg);
    filter: blur(6px);
    animation: letter-morph 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.title-letter:nth-child(1)  { animation-delay: 1.6s; }
.title-letter:nth-child(2)  { animation-delay: 1.7s; }
.title-letter:nth-child(3)  { animation-delay: 1.8s; }
.title-letter:nth-child(4)  { animation-delay: 1.9s; }
.title-letter:nth-child(5)  { animation-delay: 2.0s; }
.title-letter:nth-child(6)  { animation-delay: 2.1s; }
.title-letter:nth-child(7)  { animation-delay: 2.2s; }
.title-letter:nth-child(8)  { animation-delay: 2.3s; }
.title-letter:nth-child(9)  { animation-delay: 2.4s; }
.title-letter:nth-child(10) { animation-delay: 2.5s; }

.title-letter.dash, .title-letter.dot {
    color: var(--c-gold);
}

@keyframes letter-morph {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.4) rotate(-18deg);
        filter: blur(6px);
    }
    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.18) rotate(4deg);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
        filter: blur(0);
    }
}

.hero-tagline {
    margin: 1.2rem auto 1.4rem;
    max-width: 32ch;
    color: var(--c-text-mute);
    font-style: italic;
    opacity: 0;
    animation: fade-in 1s ease 2.6s forwards;
}

.hero-invitation {
    margin: 0;
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-violet);
    opacity: 0;
    animation: fade-in 1s ease 2.9s forwards,
               pulse-invite 3.6s ease-in-out 4s infinite;
}

@keyframes fade-in { to { opacity: 1; } }

@keyframes pulse-invite {
    0%, 100% { opacity: 1; text-shadow: 0 0 14px rgba(123, 104, 238, 0.4); }
    50%      { opacity: 0.55; text-shadow: 0 0 24px rgba(123, 104, 238, 0.7); }
}

.hero-arrow {
    margin-top: 1.8rem;
    color: var(--c-pink);
    opacity: 0;
    animation: fade-in 1s ease 3.2s forwards,
               arrow-bob 2.6s ease-in-out 4s infinite;
    display: flex;
    justify-content: center;
}

@keyframes arrow-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(8px); }
}

/* ---------- Masonry gallery ---------- */
.masonry-gallery {
    position: relative;
    padding: 0 clamp(20px, 4vw, 60px) clamp(80px, 9vw, 130px);
}

.masonry-grid {
    column-count: 3;
    column-gap: var(--grid-gap);
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 1024px) {
    .masonry-grid { column-count: 2; }
}

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

.specimen-card {
    position: relative;
    display: block;
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 var(--grid-gap);
    margin-top: var(--card-offset, 0px);
    padding: clamp(20px, 2.4vw, 32px);
    border-radius: 20px;

    background:
        linear-gradient(160deg,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(255, 255, 255, 0.30) 100%);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);

    box-shadow:
        var(--shadow-soft),
        inset 0 0 0 1px rgba(255, 255, 255, 0.55),
        inset 0 0 0 2px rgba(123, 104, 238, 0.10);

    transition:
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.45s ease,
        background 0.45s ease;

    /* entrance morph state */
    opacity: 0;
    transform: scale(0.06) rotate(-12deg);
    will-change: transform, opacity;
}

.specimen-card.in-view {
    opacity: 1;
    transform: scale(1) rotate(0);
    animation: card-morph 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes card-morph {
    0%   { opacity: 0;   transform: scale(0.06) rotate(-14deg); border-radius: 50%; }
    40%  { opacity: 0.7; transform: scale(0.6)  rotate(-4deg);  border-radius: 32px; }
    70%  { opacity: 0.92;transform: scale(0.96) rotate(1deg);   border-radius: 22px; }
    100% { opacity: 1;   transform: scale(1)    rotate(0);      border-radius: 20px; }
}

.specimen-card.tall  { min-height: clamp(380px, 36vw, 480px); }
.specimen-card.wide  { /* same column, just visual: deeper background tint */ }
.specimen-card.sparse{ min-height: clamp(280px, 28vw, 360px); }

.specimen-card[data-accent="pink"] {
    background:
        linear-gradient(160deg,
            rgba(255, 207, 230, 0.55) 0%,
            rgba(255, 255, 255, 0.30) 100%);
}

.specimen-card[data-accent="mint"] {
    background:
        linear-gradient(160deg,
            rgba(202, 245, 232, 0.55) 0%,
            rgba(255, 255, 255, 0.30) 100%);
}

.specimen-card:hover {
    transform: translateY(-6px) scale(1.012);
    box-shadow:
        0 18px 42px rgba(123, 104, 238, 0.30),
        0 0 0 1px rgba(255, 111, 183, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7),
        0 0 28px rgba(255, 111, 183, 0.25);
}

.specimen-card:hover .card-specimen { filter: hue-rotate(15deg); }
.specimen-card:hover .card-glow { opacity: 1; }

.card-glow {
    position: absolute;
    inset: 6px;
    border-radius: 18px;
    background: radial-gradient(
        circle at 50% 30%,
        rgba(255, 111, 183, 0.22) 0%,
        rgba(255, 111, 183, 0)   60%
    );
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    z-index: 0;
}

.specimen-card[data-accent="mint"] .card-glow {
    background: radial-gradient(
        circle at 50% 30%,
        rgba(68, 215, 182, 0.25) 0%,
        rgba(68, 215, 182, 0)   60%
    );
}

.card-specimen {
    position: relative;
    width: clamp(80px, 8vw, 110px);
    height: clamp(80px, 8vw, 110px);
    margin: 0 0 14px;
    z-index: 1;
    transition: filter 0.5s ease, transform 0.6s ease;
    animation: specimen-breathe 4s ease-in-out infinite;
}

.specimen-card[data-seed="triangle"] .card-specimen { animation: specimen-drift 18s ease-in-out infinite; }
.specimen-card[data-seed="hexagon"]  .card-specimen { animation: specimen-breathe 5s ease-in-out infinite; }
.specimen-card[data-seed="circle"]   .card-specimen { animation: specimen-breathe 4.5s ease-in-out infinite; }
.specimen-card[data-seed="pentagon"] .card-specimen { animation: specimen-bob 6s ease-in-out infinite; }
.specimen-card[data-seed="star"]     .card-specimen { animation: specimen-drift 22s ease-in-out infinite; }

@keyframes specimen-breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

@keyframes specimen-drift {
    0%   { transform: rotate(0deg)  translateY(0); }
    50%  { transform: rotate(8deg)  translateY(-4px); }
    100% { transform: rotate(0deg)  translateY(0); }
}

@keyframes specimen-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-6px) rotate(-3deg); }
}

.card-title {
    position: relative;
    z-index: 1;
    margin: 0 0 0.55em;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.specimen-card[data-accent="pink"] .card-title { color: var(--c-pink); }
.specimen-card[data-accent="mint"] .card-title { color: var(--c-mint); }

.card-body {
    position: relative;
    z-index: 1;
    margin: 0 0 0.85em;
    color: var(--c-text);
}

.card-body em {
    font-style: italic;
    color: var(--c-violet);
}

.card-meta {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.4em;
    padding-top: 0.9em;
    border-top: 1px dashed rgba(123, 104, 238, 0.35);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--c-text-mute);
    text-transform: lowercase;
}

.card-tag {
    color: var(--c-violet);
}

.card-status {
    position: relative;
    padding-left: 14px;
}

.card-status::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-gold);
    box-shadow: 0 0 8px rgba(255, 207, 86, 0.85);
    transform: translateY(-50%);
    animation: meta-pulse 2.4s ease-in-out infinite;
}

@keyframes meta-pulse {
    0%, 100% { transform: translateY(-50%) scale(1);   opacity: 1;   }
    50%      { transform: translateY(-50%) scale(1.4); opacity: 0.5; }
}

/* ---------- Deep garden ---------- */
.deep-garden {
    position: relative;
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 60px) clamp(80px, 9vw, 130px);
}

.deep-intro .section-title { color: #fff; }
.deep-intro .section-title em {
    background: linear-gradient(120deg, var(--c-mint), var(--c-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.deep-intro .section-eyebrow { color: var(--c-mint); }
.deep-intro .section-body { color: var(--c-text-soft); }

.deep-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: clamp(40px, 6vw, 80px);
}

@media (max-width: 720px) {
    .deep-grid { grid-template-columns: 1fr; }
}

.specimen-card.sparse {
    background:
        linear-gradient(160deg,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(42, 27, 61, 0.28)    100%);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        0 0 24px rgba(123, 104, 238, 0.30);
}

.specimen-card.sparse .card-body { color: var(--c-text-soft); }
.specimen-card.sparse .card-meta { color: var(--c-text-soft); border-top-color: rgba(255, 255, 255, 0.2); }

/* ---------- Closing — stellated dodecahedron ---------- */
.closing {
    position: relative;
    padding: clamp(60px, 9vw, 120px) clamp(20px, 4vw, 40px) clamp(80px, 10vw, 160px);
    display: flex;
    justify-content: center;
}

.finale-card {
    position: relative;
    max-width: 720px;
    width: 100%;
    padding: clamp(40px, 5vw, 70px) clamp(28px, 4vw, 50px);
    text-align: center;
    border-radius: 28px;
    background:
        linear-gradient(160deg,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(42, 27, 61, 0.45)    100%);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.22),
        0 0 40px rgba(255, 111, 183, 0.30),
        0 0 80px rgba(123, 104, 238, 0.25);
    color: #fff;
    overflow: hidden;
}

.finale-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 111, 183, 0.25) 0%,
        rgba(123, 104, 238, 0.18) 35%,
        rgba(0, 0, 0, 0)         70%
    );
    pointer-events: none;
    animation: finale-breathe 8s ease-in-out infinite;
}

@keyframes finale-breathe {
    0%, 100% { transform: scale(1) rotate(0); opacity: 0.9; }
    50%      { transform: scale(1.1) rotate(8deg); opacity: 1; }
}

.dodeca-stage {
    perspective: 800px;
    width: clamp(180px, 22vw, 240px);
    height: clamp(180px, 22vw, 240px);
    margin: 0 auto 1.6rem;
    transform-style: preserve-3d;
}

.dodeca {
    width: 100%;
    height: 100%;
    overflow: visible;
    transform-style: preserve-3d;
    animation: dodeca-rotate 30s linear infinite;
    filter:
        drop-shadow(0 0 14px rgba(255, 111, 183, 0.55))
        drop-shadow(0 0 32px rgba(123, 104, 238, 0.45));
}

@keyframes dodeca-rotate {
    0%   { transform: rotateX(0)    rotateY(0)    rotateZ(0); }
    50%  { transform: rotateX(180deg) rotateY(180deg) rotateZ(15deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(0); }
}

.finale-title {
    position: relative;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: #fff;
    text-shadow:
        0 0 14px rgba(255, 111, 183, 0.55),
        0 0 32px rgba(255, 207, 86, 0.30);
}

.finale-body {
    position: relative;
    margin: 0 0 0.9em;
    color: var(--c-text-soft);
}

.finale-signature {
    position: relative;
    margin-top: 1.6em;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    color: var(--c-mint);
    text-shadow: 0 0 12px rgba(68, 215, 182, 0.6);
}

/* ---------- Footer ---------- */
.garden-footer {
    position: relative;
    z-index: 1;
    padding: 30px 20px 60px;
    text-align: center;
    color: var(--c-text-soft);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.footer-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-gold);
    box-shadow: 0 0 10px rgba(255, 207, 86, 0.8);
    margin: 0 6px -1px;
    animation: meta-pulse 2.4s ease-in-out infinite;
}

/* ---------- Connection threads ---------- */
.thread-line {
    fill: none;
    stroke: #7B68EE;
    stroke-width: 1;
    stroke-linecap: round;
    opacity: 0.30;
    filter: drop-shadow(0 0 3px rgba(123, 104, 238, 0.5));
    transition: opacity 0.5s ease, stroke 0.5s ease;
}

.thread-line.active {
    opacity: 0.95;
    stroke: var(--c-pink);
    filter: drop-shadow(0 0 5px rgba(255, 111, 183, 0.7));
}

.thread-pulse {
    fill: var(--c-gold);
    filter: drop-shadow(0 0 4px rgba(255, 207, 86, 0.9));
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
    .specimen-card { opacity: 1; transform: none; }
}
