/* ================================================================
   historic.day — cottagecore meets dopamine-neon
   ================================================================ */

:root {
    /* Palette */
    --plum: #1A0A2E;
    --indigo: #0D0628;
    --pink: #FF2D95;
    --mint: #00FFB2;
    --gold: #FFD700;
    --uv: #6B00FF;
    --cream: #FFF5E6;
    --coral: #FF6B4A;

    /* Per-section defaults */
    --bg: var(--plum);
    --text: var(--cream);
    --accent-1: var(--pink);
    --accent-2: var(--mint);

    /* Type */
    --font-display: "Baloo 2", "Quicksand", sans-serif;
    --font-sub: "Quicksand", "Nunito", sans-serif;
    --font-body: "Nunito", "Quicksand", sans-serif;
    --font-script: "Caveat", cursive;
}

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

html {
    scroll-behavior: smooth;
    background: var(--plum);
}

body {
    font-family: var(--font-body);
    color: var(--cream);
    background: var(--plum);
    overflow-x: hidden;
    line-height: 1.75;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
}

/* ===== Persistent scan-line overlay ===== */
.scan-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.04) 0px,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: overlay;
    opacity: 0.5;
}

/* ===== Scroll container ===== */
.scroll-container {
    scroll-snap-type: y proximity;
    overflow-y: auto;
}

/* ===== Generic Section ===== */
.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 5vw, 6rem);
    overflow: hidden;
    scroll-snap-align: start;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.section.glitch-active {
    animation: temporal-stutter 150ms steps(3) forwards;
}

@keyframes temporal-stutter {
    0% { transform: skewX(0); filter: hue-rotate(0deg); }
    33% { transform: skewX(2deg); filter: hue-rotate(90deg); }
    66% { transform: skewX(-1deg); filter: hue-rotate(180deg); }
    100% { transform: skewX(0); filter: hue-rotate(0deg); }
}

/* ============================================================
   SECTION 1 — THE GARDEN GATE (HERO)
   ============================================================ */
.section--hero {
    --bg: var(--plum);
    background: linear-gradient(170deg, #1A0A2E 0%, #0D0628 40%, #6B00FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,45,149,0.20) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0,255,178,0.18) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(107,0,255,0.30) 0%, transparent 50%);
    pointer-events: none;
}

.constellation-bg {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    pointer-events: none;
}

.constellation-bg svg {
    width: 100%;
    height: 100%;
}

.constellation-bg .stars circle {
    animation: twinkle 3s infinite ease-in-out;
}

.constellation-bg .stars circle:nth-child(2n) { animation-delay: 0.6s; }
.constellation-bg .stars circle:nth-child(3n) { animation-delay: 1.2s; }
.constellation-bg .stars circle:nth-child(5n) { animation-delay: 1.8s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.gate-stage {
    position: relative;
    width: min(900px, 92%);
    display: grid;
    place-items: center;
    z-index: 2;
}

.gate-svg {
    width: clamp(280px, 56vmin, 600px);
    height: auto;
    filter: drop-shadow(0 0 24px rgba(255, 45, 149, 0.45));
}

.gate-panel {
    transform-origin: 195px 405px;
    transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.gate-panel--right { transform-origin: 405px 405px; }

.gate-svg.is-open .gate-panel--left {
    transform: rotateY(-40deg);
}
.gate-svg.is-open .gate-panel--right {
    transform: rotateY(40deg);
}

/* Lanterns gently glow */
.lantern { animation: lantern-glow 3s infinite ease-in-out; }
.lantern--right { animation-delay: 1.5s; }

@keyframes lantern-glow {
    0%, 100% { opacity: 0.85; filter: drop-shadow(0 0 6px var(--gold)); }
    50% { opacity: 1; filter: drop-shadow(0 0 14px var(--gold)); }
}

.wildflower {
    transform-origin: center;
    animation: sway 3s infinite alternate ease-in-out;
}
.wildflower--1 { animation-delay: 0s; }
.wildflower--2 { animation-delay: 0.4s; }
.wildflower--3 { animation-delay: 0.8s; }
.wildflower--4 { animation-delay: 1.2s; }

@keyframes sway {
    0% { transform: rotate(-3deg); }
    100% { transform: rotate(3deg); }
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    width: 100%;
    pointer-events: none;
}

.hero-eyebrow {
    font-family: var(--font-script);
    color: var(--mint);
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    margin-bottom: 0.75rem;
    letter-spacing: 0.06em;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--pink);
    text-shadow:
        0 0 14px rgba(255, 45, 149, 0.7),
        0 0 30px rgba(255, 45, 149, 0.3),
        0 4px 0 rgba(0, 0, 0, 0.45);
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
}

.ht-letter {
    display: inline-block;
    transform: translateY(40px);
    opacity: 0;
    animation: letter-bounce 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--i) * 80ms + 200ms);
}

.ht-dot { color: var(--gold); text-shadow: 0 0 14px var(--gold); }

@keyframes letter-bounce {
    0% { transform: translateY(40px); opacity: 0; }
    60% { transform: translateY(-8px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}

.hero-tag {
    margin-top: 1.25rem;
    font-family: var(--font-sub);
    font-weight: 500;
    color: var(--cream);
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    letter-spacing: 0.04em;
    opacity: 0;
    animation: fade-in 1s ease forwards;
    animation-delay: 1.5s;
}

.hero-scroll-cue {
    margin-top: 2.5rem;
    font-family: var(--font-script);
    color: var(--mint);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    opacity: 0;
    animation: fade-in 1s ease forwards, drift 2s infinite alternate ease-in-out;
    animation-delay: 2s, 2.5s;
}

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

@keyframes drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(8px); }
}

/* ============================================================
   SECTION 2 — THE TAPESTRY HALL
   ============================================================ */
.section--tapestry {
    --bg: var(--plum);
    background:
        radial-gradient(ellipse at top, rgba(107,0,255,0.18), transparent 60%),
        var(--plum);
    padding-top: clamp(4rem, 10vh, 7rem);
}

.tapestry-rod {
    position: absolute;
    left: 0;
    right: 0;
    height: 18px;
    background: linear-gradient(180deg, var(--gold), var(--coral));
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.5);
}
.tapestry-rod--top { top: 2.5rem; }

.tapestry-column {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(2rem, 5vh, 4rem) 0;
}

.section-header {
    margin-bottom: clamp(2.5rem, 6vh, 4rem);
    text-align: left;
}
.section-header--centered { text-align: center; }

.caveat-note {
    font-family: var(--font-script);
    color: var(--mint);
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.caveat-note--dark { color: var(--uv); }

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--pink);
    text-shadow: 0 0 14px rgba(255, 45, 149, 0.45);
    margin-bottom: 0.75rem;
}

.section-lede {
    font-family: var(--font-sub);
    font-weight: 500;
    color: var(--cream);
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    letter-spacing: 0.04em;
    max-width: 60ch;
}

.tapestry-block {
    margin: clamp(2rem, 5vh, 3.5rem) 0;
    padding: 1.5rem 1.75rem;
    border-left: 3px solid var(--mint);
    background: linear-gradient(90deg, rgba(0,255,178,0.06), transparent);
    border-radius: 0 12px 12px 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 700ms ease, transform 700ms ease;
}
.tapestry-block.in-view {
    opacity: 1;
    transform: translateX(0);
}

.block-text {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    color: var(--cream);
    line-height: 1.8;
}

.emph {
    font-weight: 700;
    color: var(--coral);
    text-shadow: 0 0 8px rgba(255, 107, 74, 0.4);
}

.tapestry-panel {
    margin: clamp(3rem, 8vh, 5rem) 0;
    transform-origin: center top;
    opacity: 0;
    transform: translateY(60px) rotate(3deg);
    filter: hue-rotate(180deg) blur(2px);
    transition:
        opacity 800ms ease,
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 800ms ease;
}
.tapestry-panel.in-view {
    opacity: 1;
    filter: none;
}
.tapestry-panel--1.in-view { transform: translateY(0) rotate(-1.2deg); }
.tapestry-panel--2.in-view { transform: translateY(0) rotate(1.5deg); }
.tapestry-panel--3.in-view { transform: translateY(0) rotate(-0.8deg); }

.panel-frame {
    position: relative;
    border: 3px solid var(--pink);
    border-radius: 18px;
    overflow: visible;
    background: var(--indigo);
    box-shadow:
        0 0 0 1px rgba(0, 255, 178, 0.3),
        0 18px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 45, 149, 0.25);
}

.panel-illustration {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.data-block {
    position: absolute;
    width: 16px;
    height: 48px;
    opacity: 0.6;
    animation: data-pulse 2s infinite ease-in-out;
    border-radius: 2px;
}
.data-block--a { top: -10px; left: 18%; background: var(--pink); }
.data-block--b { bottom: -10px; right: 22%; background: var(--mint); animation-delay: 0.7s; }
.data-block--c { top: 30%; right: -8px; background: var(--gold); animation-delay: 1.4s; height: 32px; }

@keyframes data-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.85; }
}

.tapestry-panel figcaption {
    text-align: center;
    margin-top: 0.75rem;
    color: var(--gold);
}

/* Mesoamerican step-fret divider */
.step-fret-divider {
    margin: clamp(3rem, 7vh, 5rem) auto;
    width: 80%;
    height: 16px;
    background:
        repeating-linear-gradient(
            90deg,
            var(--coral) 0px,
            var(--coral) 14px,
            transparent 14px,
            transparent 22px,
            var(--coral) 22px,
            var(--coral) 28px,
            transparent 28px,
            transparent 36px
        );
    border-radius: 2px;
}

/* ============================================================
   SECTION 3 — THE CABINET OF CURIOSITIES
   ============================================================ */
.section--cabinet {
    --bg: var(--indigo);
    background:
        radial-gradient(ellipse at center, rgba(107,0,255,0.25) 0%, transparent 60%),
        var(--indigo);
    padding-bottom: clamp(5rem, 10vh, 8rem);
}

.cabinet-stars {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    pointer-events: none;
}
.cabinet-stars svg { width: 100%; height: 100%; }

.cabinet-grid {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    padding-top: 2rem;
    z-index: 2;
}

.artifact-card {
    background: linear-gradient(145deg, rgba(26,10,46,0.85), rgba(13,6,40,0.95));
    border: 2px solid var(--mint);
    border-radius: 24px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow:
        0 0 20px rgba(0, 255, 178, 0.35),
        0 0 40px rgba(0, 255, 178, 0.15);
    transform-origin: center;
    transition: transform 500ms ease, box-shadow 500ms ease;
    position: relative;
    opacity: 0;
    transform: translateY(40px) rotate(-1deg);
    transition: opacity 700ms ease, transform 700ms ease, box-shadow 400ms ease;
}
.artifact-card.in-view { opacity: 1; transform: translateY(0) rotate(0); }

.artifact-card:hover {
    transform: translateY(-6px) rotate(1deg);
    box-shadow:
        0 0 28px rgba(255, 45, 149, 0.5),
        0 0 60px rgba(0, 255, 178, 0.3);
    border-color: var(--pink);
}

/* Slight off-grid placement variations */
.artifact-card:nth-child(2n) { transform: translateY(40px) rotate(1.5deg); margin-top: 1.5rem; }
.artifact-card:nth-child(3n) { transform: translateY(40px) rotate(-1.8deg); margin-top: -1rem; }
.artifact-card:nth-child(4n) { margin-top: 2rem; }

.artifact-card.in-view:nth-child(2n) { transform: translateY(0) rotate(1.5deg); }
.artifact-card.in-view:nth-child(3n) { transform: translateY(0) rotate(-1.8deg); }

.artifact-card.drift {
    animation: card-drift 6s infinite ease-in-out alternate;
}
.artifact-card:nth-child(odd).drift { animation-delay: 0s; animation-duration: 7s; }
.artifact-card:nth-child(even).drift { animation-delay: 1.2s; animation-duration: 8s; }

@keyframes card-drift {
    0% { translate: 0 0; }
    50% { translate: 0 -10px; }
    100% { translate: 0 6px; }
}

.artifact-svg {
    width: 90px;
    height: 90px;
    margin: 0 auto 0.75rem;
    display: block;
    filter: drop-shadow(0 0 8px rgba(0, 255, 178, 0.4));
}

.card-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--pink);
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.card-meta {
    font-family: var(--font-script);
    color: var(--gold);
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    margin-bottom: 0.6rem;
}

.card-text {
    font-family: var(--font-body);
    color: var(--cream);
    font-size: 0.98rem;
    line-height: 1.55;
}

/* ============================================================
   SECTION 4 — THE CHRONICLE
   ============================================================ */
.section--chronicle {
    --bg: var(--plum);
    background:
        linear-gradient(180deg, var(--indigo) 0%, var(--plum) 50%, #2A0F47 100%);
    min-height: 200vh;
    padding-bottom: 6rem;
}

.chronicle-stage {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding-top: 3rem;
    min-height: 1200px;
}

.chronicle-path-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.4));
}

#garden-path {
    stroke-dasharray: var(--path-length, 2400);
    stroke-dashoffset: var(--path-length, 2400);
    transition: stroke-dashoffset 200ms linear;
}

.path-flowers circle {
    animation: twinkle 4s infinite ease-in-out;
}
.path-flowers circle:nth-child(2n) { animation-delay: 0.6s; }
.path-flowers circle:nth-child(3n) { animation-delay: 1.4s; }

.chronicle-events {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 7vh, 5rem);
    z-index: 2;
}

.chronicle-event {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 700ms ease, transform 700ms ease;
}
.chronicle-event.in-view { opacity: 1; transform: translateY(0); }

.chronicle-event:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
    max-width: 65%;
}
.chronicle-event:nth-child(even) {
    grid-template-columns: 1fr 80px;
    margin-left: auto;
    margin-right: 0;
    max-width: 65%;
    text-align: right;
}
.chronicle-event:nth-child(even) .event-marker { order: 2; }

.event-marker {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--indigo);
    border: 3px solid var(--gold);
    display: grid;
    place-items: center;
    box-shadow:
        0 0 18px rgba(255, 215, 0, 0.55),
        inset 0 0 12px rgba(255, 45, 149, 0.25);
}
.event-marker svg { width: 60%; height: 60%; }

.event-content {
    background: rgba(13, 6, 40, 0.7);
    border: 2px solid rgba(255, 45, 149, 0.4);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(4px);
}

.event-date {
    font-family: var(--font-script);
    color: var(--gold);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.event-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--pink);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.event-text {
    font-family: var(--font-body);
    color: var(--cream);
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================================
   SECTION 5 — THE ATTIC
   ============================================================ */
.section--attic {
    --bg: var(--cream);
    background: var(--cream);
    color: var(--plum);
    min-height: 110vh;
    padding-top: clamp(4rem, 8vh, 6rem);
    padding-bottom: clamp(4rem, 8vh, 6rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.attic-paper-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.04  0 0 0 0 0.18  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    mix-blend-mode: multiply;
}

.butterflies {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.butterfly {
    position: absolute;
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.butterfly--1 {
    top: 18%; left: -60px;
    animation: flutter-1 22s infinite linear;
}
.butterfly--2 {
    top: 45%; left: -60px;
    animation: flutter-2 28s infinite linear 4s;
}
.butterfly--3 {
    top: 70%; left: -60px;
    animation: flutter-3 26s infinite linear 9s;
}

@keyframes flutter-1 {
    0%   { transform: translate(0, 0) rotate(-8deg); }
    25%  { transform: translate(40vw, -40px) rotate(8deg); }
    50%  { transform: translate(80vw, 30px) rotate(-8deg); }
    75%  { transform: translate(110vw, -30px) rotate(8deg); }
    100% { transform: translate(120vw, 0) rotate(-8deg); }
}
@keyframes flutter-2 {
    0%   { transform: translate(0, 0) rotate(6deg); }
    20%  { transform: translate(30vw, 50px) rotate(-6deg); }
    50%  { transform: translate(60vw, -60px) rotate(8deg); }
    80%  { transform: translate(95vw, 40px) rotate(-8deg); }
    100% { transform: translate(120vw, 0) rotate(6deg); }
}
@keyframes flutter-3 {
    0%   { transform: translate(0, 0) rotate(-10deg); }
    30%  { transform: translate(35vw, -50px) rotate(10deg); }
    60%  { transform: translate(70vw, 40px) rotate(-10deg); }
    100% { transform: translate(120vw, -20px) rotate(10deg); }
}

.attic-book {
    position: relative;
    width: min(880px, 92%);
    margin: 0 auto;
    z-index: 2;
}

.open-book {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 16px 28px rgba(26, 10, 46, 0.25));
}

.book-content {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.page {
    color: var(--plum);
    text-align: left;
}

.attic-title {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--uv);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.02em;
    margin: 0.4rem 0 1rem;
    text-shadow: 0 2px 0 rgba(255, 45, 149, 0.15);
}

.page-text {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--plum);
    line-height: 1.7;
    margin-bottom: 0.9rem;
}

.page-text--signature {
    margin-top: 1.2rem;
    text-align: right;
}

.signature {
    font-family: var(--font-script);
    color: var(--pink);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.attic-gate-return {
    margin-top: clamp(2rem, 5vh, 4rem);
    text-align: center;
    z-index: 2;
}
.attic-gate-return svg {
    width: clamp(220px, 40vw, 380px);
    height: auto;
    filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.4));
}
.attic-gate-return p {
    margin-top: 0.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
    .chronicle-event,
    .chronicle-event:nth-child(even) {
        grid-template-columns: 60px 1fr;
        max-width: 100%;
        text-align: left;
    }
    .chronicle-event:nth-child(even) .event-marker { order: 0; }

    .book-content {
        grid-template-columns: 1fr;
        padding: clamp(1.5rem, 4vw, 2.5rem);
    }

    .attic-book svg { display: block; }
}

@media (max-width: 520px) {
    .section { padding: 3rem 1.25rem; }
    .gate-svg { width: 90vw; }
    .hero-title { font-size: 3rem; }
    .cabinet-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   GLITCH UTILITIES — RGB CHANNEL SPLIT (one-shot)
   ============================================================ */
.rgb-split-active .panel-illustration {
    animation: rgb-split 300ms ease-out forwards;
}

@keyframes rgb-split {
    0% {
        filter: drop-shadow(3px 0 0 rgba(255,0,0,0.6))
                drop-shadow(-3px 0 0 rgba(0,255,255,0.6));
    }
    100% {
        filter: none;
    }
}
