/* munju.wiki -- dark-mode art deco at the twilight hour */

/* ============================================================
   Palette
   ------------------------------------------------------------
   Void background ........... #0D0B1A
   Card background ........... rgba(26, 15, 46, 0.55)
   Primary accent ............ #FF8C42 (sunset gold)
   Secondary accent .......... #E85D4A (burnt coral)
   Tertiary accent ........... #FFB366 (molten amber)
   Warm highlight ............ #F0D9B5 (parchment cream)
   Body text ................. #B8A9C9 (lavender mist)
   Muted metadata ............ #A67C52 (aged copper)
   Deco ornaments ............ #3D2A4A (dusty mauve)
   Blob glow ................. #8B2252 (deep rose)
   Atmospheric line .......... #2A1B3D (plum shadow)
   Hover/active state ........ #FF6B35 (hot sunset)
   ============================================================ */

:root {
    --void: #0D0B1A;
    --void-up: #1A0F2E;
    --card-bg: rgba(26, 15, 46, 0.55);
    --card-bg-fallback: rgba(26, 15, 46, 0.85);
    --gold: #FF8C42;
    --coral: #E85D4A;
    --amber: #FFB366;
    --parchment: #F0D9B5;
    --lavender: #B8A9C9;
    --copper: #A67C52;
    --mauve: #3D2A4A;
    --rose: #8B2252;
    --plum: #2A1B3D;
    --hot: #FF6B35;

    --font-display: 'Poiret One', 'Inter', sans-serif;
    --font-secondary: 'Josefin Sans', 'Inter', sans-serif;
    --font-body: 'Lora', Georgia, serif;
    --font-mono: 'IBM Plex Mono', 'Inter', monospace;

    --ease-glass: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    background: var(--void);
    color: var(--lavender);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.01em;
    min-height: 100vh;
    position: relative;
    overflow-y: scroll;

    /* The chromatic descent: warm at top, midnight at bottom */
    background:
        linear-gradient(
            180deg,
            #1A0F2E 0%,
            #1F1230 8%,
            #1B0F2C 22%,
            #160C26 38%,
            #120A21 55%,
            #0F091D 72%,
            #0D0B1A 88%,
            #0A0817 100%
        );
    background-attachment: fixed;
}

/* ============================================================
   ABYSS LAYER (z-0): drifting blobs
   ============================================================ */
.abyss-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    opacity: 0.04;
    will-change: border-radius, transform, opacity;
    filter: blur(8px);
    transition: opacity 1.6s var(--ease-glass), transform 1.6s var(--ease-glass);
}

.blob-1 {
    top: -10vmax;
    left: -10vmax;
    background: radial-gradient(ellipse at center, var(--rose) 0%, transparent 65%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphA 30s ease-in-out infinite;
}

.blob-2 {
    top: 30vh;
    right: -15vmax;
    width: 50vmax;
    height: 50vmax;
    background: radial-gradient(ellipse at center, var(--gold) 0%, transparent 70%);
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    animation: morphB 38s ease-in-out infinite;
    opacity: 0.03;
}

.blob-3 {
    top: 80vh;
    left: -20vmax;
    width: 70vmax;
    height: 70vmax;
    background: radial-gradient(ellipse at center, var(--coral) 0%, transparent 60%);
    border-radius: 40% 60% 50% 50% / 60% 30% 70% 40%;
    animation: morphC 42s ease-in-out infinite;
    opacity: 0.035;
}

.blob-4 {
    top: 130vh;
    right: -10vmax;
    width: 55vmax;
    height: 55vmax;
    background: radial-gradient(ellipse at center, var(--rose) 0%, transparent 65%);
    border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%;
    animation: morphA 34s ease-in-out infinite reverse;
    opacity: 0.04;
}

.blob-5 {
    top: 200vh;
    left: -15vmax;
    width: 65vmax;
    height: 65vmax;
    background: radial-gradient(ellipse at center, var(--mauve) 0%, transparent 70%);
    border-radius: 30% 70% 60% 40% / 70% 40% 60% 30%;
    animation: morphB 46s ease-in-out infinite;
    opacity: 0.05;
}

.blob-6 {
    top: 260vh;
    right: -25vmax;
    width: 60vmax;
    height: 60vmax;
    background: radial-gradient(ellipse at center, var(--rose) 0%, transparent 60%);
    border-radius: 70% 30% 40% 60% / 50% 60% 40% 50%;
    animation: morphC 36s ease-in-out infinite reverse;
    opacity: 0.04;
}

.blob.blob--lit {
    opacity: 0.07;
    transform: scale(1.07);
}

@keyframes morphA {
    0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg) scale(1); }
    25%  { border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%; transform: rotate(2deg) scale(1.03); }
    50%  { border-radius: 70% 30% 50% 50% / 40% 70% 30% 60%; transform: rotate(-2deg) scale(0.98); }
    75%  { border-radius: 40% 60% 70% 30% / 50% 50% 40% 60%; transform: rotate(1deg) scale(1.02); }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg) scale(1); }
}

@keyframes morphB {
    0%   { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; transform: rotate(0deg) scale(1); }
    33%  { border-radius: 40% 60% 70% 30% / 30% 50% 50% 70%; transform: rotate(-3deg) scale(1.04); }
    66%  { border-radius: 70% 30% 40% 60% / 60% 30% 70% 40%; transform: rotate(3deg) scale(0.97); }
    100% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; transform: rotate(0deg) scale(1); }
}

@keyframes morphC {
    0%   { border-radius: 40% 60% 50% 50% / 60% 30% 70% 40%; transform: rotate(0deg) scale(1); }
    20%  { border-radius: 60% 40% 30% 70% / 40% 60% 40% 60%; transform: rotate(2deg) scale(1.02); }
    50%  { border-radius: 30% 70% 60% 40% / 70% 40% 60% 30%; transform: rotate(-2deg) scale(0.99); }
    80%  { border-radius: 50% 50% 70% 30% / 50% 70% 30% 50%; transform: rotate(1deg) scale(1.03); }
    100% { border-radius: 40% 60% 50% 50% / 60% 30% 70% 40%; transform: rotate(0deg) scale(1); }
}

/* ============================================================
   ATMOSPHERE LAYER (z-1): deco grid lines
   ============================================================ */
.atmosphere-layer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.55;
}

/* ============================================================
   PAGE / SCENES
   ============================================================ */
.page {
    position: relative;
    z-index: 2;
    display: block;
}

.scene {
    position: relative;
    padding: 80px max(28px, 6vw) 80px;
    max-width: 1440px;
    margin: 0 auto;
}

/* ---------- SCENE 1: opening void ---------- */
.scene-opening {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 18vh;
    padding-bottom: 12vh;
    position: relative;
}

.opening-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70vmin;
    height: 70vmin;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, var(--rose) 0%, transparent 70%);
    border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
    opacity: 0.06;
    animation: openingPulse 8s ease-in-out infinite, morphA 30s ease-in-out infinite;
    filter: blur(12px);
    pointer-events: none;
}

@keyframes openingPulse {
    0%, 100% { opacity: 0.04; }
    50%      { opacity: 0.08; }
}

.opening-content {
    position: relative;
    text-align: center;
    z-index: 1;
    max-width: 880px;
}

.site-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 9.5vw, 112px);
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-transform: lowercase;
    color: var(--gold);
    text-shadow: 0 0 40px rgba(255, 140, 66, 0.25), 0 0 80px rgba(255, 140, 66, 0.1);
    margin-bottom: 32px;
}

.site-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.1s var(--ease-glass), transform 1.1s var(--ease-glass);
}

.site-title.is-lit span {
    opacity: 1;
    transform: translateY(0);
}

.opening-tagline {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.75;
    color: var(--lavender);
    max-width: 640px;
    margin: 0 auto 36px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1.4s var(--ease-glass) 1.2s, transform 1.4s var(--ease-glass) 1.2s;
}

.opening-tagline.is-lit { opacity: 1; transform: translateY(0); }

.opening-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.28em;
    color: var(--copper);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    opacity: 0;
    transition: opacity 1.6s var(--ease-glass) 1.8s;
}

.opening-meta.is-lit { opacity: 0.85; }

.meta-mark { color: var(--gold); font-size: 8px; }

.scroll-cue {
    position: absolute;
    bottom: 4vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: cueFade 2s var(--ease-glass) 2.6s forwards, cueBob 3s ease-in-out 4s infinite;
}

.cue-text {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.4em;
    color: var(--copper);
    text-transform: uppercase;
}

.cue-arrow {
    width: 18px;
    height: 30px;
}

@keyframes cueFade {
    to { opacity: 0.7; }
}

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

/* ---------- SUNBURST DIVIDERS ---------- */
.divider {
    position: relative;
    z-index: 3;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 max(28px, 6vw);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.divider-svg {
    width: 100%;
    height: 80px;
    overflow: visible;
}

.divider-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1.6s var(--ease-glass);
}

.divider-sunburst {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    transform: translate(600px, 40px) scale(0.6);
    transition: opacity 1.4s var(--ease-glass) 0.6s, transform 1.4s var(--ease-glass) 0.6s;
}

.divider.is-lit .divider-line {
    stroke-dashoffset: 0;
}

.divider.is-lit .divider-sunburst {
    opacity: 0.55;
    transform: translate(600px, 40px) scale(1);
}

/* ---------- SCENE HEADERS ---------- */
.scene-header {
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
    text-align: left;
    padding-left: max(8px, 4vw);
}

.scene-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.4em;
    color: var(--copper);
    margin-bottom: 18px;
    text-transform: uppercase;
}

.scene-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6.4vw, 80px);
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 0 40px rgba(255, 140, 66, 0.22);
    margin-bottom: 18px;
    max-width: 16ch;
}

.scene-tagline {
    font-family: var(--font-secondary);
    font-weight: 300;
    font-size: clamp(15px, 1.4vw, 19px);
    letter-spacing: 0.04em;
    color: var(--parchment);
    text-transform: lowercase;
}

/* ============================================================
   GLASS CARD SYSTEM (z-2)
   ============================================================ */
.glass-card {
    position: relative;
    z-index: 2;
    padding: 48px 44px 40px;
    background: var(--card-bg-fallback);
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 140, 66, 0.12);
    color: var(--lavender);
    overflow: hidden;
    box-shadow:
        0 30px 60px -30px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(240, 217, 181, 0.04);
    transition:
        opacity 1s var(--ease-glass),
        transform 1s var(--ease-glass),
        box-shadow 0.6s var(--ease-glass),
        border-color 0.6s var(--ease-glass);
    isolation: isolate;
}

/* Light refraction stripe */
.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        transparent 35%,
        rgba(255, 179, 102, 0.06) 48%,
        rgba(255, 179, 102, 0.10) 52%,
        rgba(255, 179, 102, 0.06) 56%,
        transparent 68%
    );
    pointer-events: none;
    z-index: 0;
}

/* Subtle noise overlay */
.glass-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.85  0 0 0 0 0.55  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
    background-size: 180px 180px;
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

.glass-card > * {
    position: relative;
    z-index: 1;
}

.glass-card:hover {
    border-color: rgba(255, 140, 66, 0.28);
    box-shadow:
        0 30px 60px -30px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(255, 140, 66, 0.15),
        inset 0 0 30px rgba(139, 34, 82, 0.08);
}

/* Reveal state */
.reveal {
    opacity: 0;
    transform: translateY(36px);
}

.reveal.is-lit {
    opacity: 1;
    transform: translateY(0);
}

/* Card meta + typography */
.card-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.32em;
    color: var(--copper);
    text-transform: uppercase;
    margin-bottom: 22px;
}

.card-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.18;
    text-transform: uppercase;
    color: var(--parchment);
    margin-bottom: 22px;
    max-width: 22ch;
}

.glass-card .card-title {
    color: var(--parchment);
}

.card-body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.78;
    color: var(--lavender);
    margin-bottom: 18px;
}

.card-body:last-of-type {
    margin-bottom: 24px;
}

.card-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--copper);
    text-transform: uppercase;
    margin-top: 18px;
    margin-bottom: 0;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 8px;
}

.card-list li {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--lavender);
    padding-left: 26px;
    position: relative;
    margin-bottom: 6px;
}

.card-list .chev {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    opacity: 0.7;
    font-size: 14px;
}

/* Card corner ornaments */
.card-corner {
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.32;
}

.card-corner svg { width: 100%; height: 100%; display: block; }

.card-corner--tl {
    top: 14px;
    left: 14px;
}

/* ---------- INTRO STACK ---------- */
.intro-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.glass-card--left { align-self: flex-start; width: 60%; max-width: 600px; }
.glass-card--center { align-self: center; width: 64%; max-width: 640px; margin-top: -36px; }
.glass-card--right { align-self: flex-end; width: 58%; max-width: 580px; margin-top: -42px; }

/* Organic clip-paths via clip-path polygons */
.glass-card--blob-a {
    clip-path: polygon(
        2% 12%, 14% 4%, 32% 0%, 58% 3%, 82% 1%, 96% 10%,
        100% 28%, 99% 50%, 96% 72%, 92% 88%, 78% 98%, 56% 100%,
        32% 99%, 12% 96%, 2% 84%, 0% 64%, 1% 42%, 0% 22%
    );
}

.glass-card--blob-b {
    clip-path: polygon(
        4% 8%, 18% 2%, 40% 0%, 64% 2%, 86% 6%, 98% 18%,
        100% 36%, 96% 56%, 99% 74%, 92% 90%, 76% 98%, 54% 100%,
        30% 98%, 10% 92%, 2% 78%, 0% 56%, 4% 36%, 0% 18%
    );
}

.glass-card--blob-c {
    clip-path: polygon(
        6% 10%, 22% 0%, 48% 4%, 72% 1%, 92% 8%, 100% 24%,
        98% 46%, 100% 66%, 94% 84%, 80% 96%, 60% 100%, 38% 98%,
        18% 94%, 6% 84%, 0% 66%, 2% 44%, 0% 24%
    );
}

/* Ziggurat bottom-edged cards */
.glass-card--ziggurat {
    clip-path: polygon(
        0 0, 100% 0, 100% 92%,
        96% 92%, 96% 95%, 92% 95%, 92% 98%, 86% 98%, 86% 100%,
        14% 100%, 14% 98%, 8% 98%, 8% 95%, 4% 95%, 4% 92%,
        0 92%
    );
}

/* ---------- FLIP GALLERY ---------- */
.flip-column {
    display: flex;
    flex-direction: column;
    gap: 56px;
    perspective: 1200px;
}

.flip-card {
    width: 64%;
    max-width: 640px;
    min-height: 360px;
    position: relative;
    cursor: pointer;
}

.flip-card--left { align-self: flex-start; }
.flip-card--right { align-self: flex-end; }

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transform-style: preserve-3d;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card.is-flipped .flip-inner,
.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 360px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 48px 44px 40px;
    overflow: hidden;
    isolation: isolate;
}

.flip-front {
    background: var(--card-bg-fallback);
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 140, 66, 0.12);
    box-shadow:
        0 30px 60px -30px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(240, 217, 181, 0.04);
    color: var(--lavender);
}

.flip-front::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        transparent 35%,
        rgba(255, 179, 102, 0.06) 48%,
        rgba(255, 179, 102, 0.10) 52%,
        rgba(255, 179, 102, 0.06) 56%,
        transparent 68%
    );
    pointer-events: none;
}

.flip-front::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.85  0 0 0 0 0.55  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
    background-size: 180px 180px;
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.flip-front > * { position: relative; z-index: 1; }

.flip-back {
    background: linear-gradient(135deg, #FF8C42 0%, #E85D4A 100%);
    color: var(--void);
    transform: rotateY(180deg);
    border: 1px solid rgba(13, 11, 26, 0.18);
}

.flip-back .card-title { color: var(--void); }
.flip-back .card-body { color: rgba(13, 11, 26, 0.84); }
.flip-back .card-tag,
.flip-back .card-meta {
    color: rgba(13, 11, 26, 0.6);
}

.back-frame {
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(13, 11, 26, 0.35);
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            90deg,
            rgba(13, 11, 26, 0.35) 0,
            rgba(13, 11, 26, 0.35) 1px,
            transparent 1px,
            transparent 8px
        );
    background-size: 100% 1px;
    background-position: top, bottom;
    background-repeat: no-repeat;
}

.back-frame::before,
.back-frame::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(13, 11, 26, 0.5);
}

.back-frame::before { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.back-frame::after { bottom: -4px; right: -4px; border-left: none; border-top: none; }

.back-tag {
    color: rgba(13, 11, 26, 0.66) !important;
}

.flip-pulse {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 28px;
    height: 28px;
    z-index: 2;
    animation: pulseChev 2.4s ease-in-out infinite;
    opacity: 0.7;
}

.flip-pulse svg { width: 100%; height: 100%; }

@keyframes pulseChev {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50%      { opacity: 0.85; transform: translateY(-3px); }
}

/* ---------- DEEP STACK ---------- */
.deep-stack {
    display: flex;
    flex-direction: column;
    gap: 56px;
    position: relative;
}

.glass-card--align-left { align-self: flex-start; width: 62%; max-width: 660px; }
.glass-card--align-right { align-self: flex-end; width: 62%; max-width: 660px; }

/* Ornaments scattered between deep cards */
.deep-stack::before {
    content: "";
    position: absolute;
    top: 30%;
    left: 70%;
    width: 8px;
    height: 8px;
    background: var(--mauve);
    border-radius: 50%;
    box-shadow:
        160px 80px 0 -2px var(--mauve),
        -200px 220px 0 -3px var(--mauve),
        320px 410px 0 -2px var(--mauve);
    opacity: 0.6;
    pointer-events: none;
}

.deep-stack::after {
    content: "";
    position: absolute;
    top: 12%;
    left: 6%;
    width: 12px;
    height: 12px;
    background: transparent;
    border: 1px solid var(--mauve);
    transform: rotate(45deg);
    opacity: 0.55;
    pointer-events: none;
    box-shadow:
        180px 360px 0 -4px var(--mauve),
        -40px 520px 0 -2px var(--mauve);
}

/* ---------- CLOSING ---------- */
.scene-closing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16vh max(28px, 6vw);
    position: relative;
}

.closing-line-wrap {
    width: min(640px, 80vw);
    margin-bottom: 60px;
}

.closing-line {
    width: 100%;
    height: 4px;
    overflow: visible;
    filter: drop-shadow(0 0 14px rgba(255, 140, 66, 0.4));
}

#closingPath {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2s var(--ease-glass);
}

.scene-closing.is-lit #closingPath {
    stroke-dashoffset: 0;
}

.colophon {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    line-height: 2;
    color: var(--copper);
    text-transform: lowercase;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 1.6s var(--ease-glass) 1.6s, transform 1.6s var(--ease-glass) 1.6s;
}

.scene-closing.is-lit .colophon {
    opacity: 0.85;
    transform: translateY(0);
}

.col-row { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .scene { padding: 60px 22px; }

    .glass-card--left,
    .glass-card--center,
    .glass-card--right,
    .glass-card--align-left,
    .glass-card--align-right,
    .flip-card,
    .flip-card--left,
    .flip-card--right {
        width: 100%;
        max-width: 100%;
        align-self: stretch;
        margin-top: 0;
    }

    .glass-card { padding: 36px 28px 32px; }
    .flip-face { padding: 36px 28px 32px; }

    .flip-card { min-height: 380px; }
    .flip-face { min-height: 380px; }

    .scene-header { margin-bottom: 50px; padding-left: 0; }

    .glass-card--blob-a,
    .glass-card--blob-b,
    .glass-card--blob-c {
        clip-path: none;
        border-radius: 18px;
    }

    .glass-card--ziggurat { clip-path: none; border-radius: 14px 14px 0 0; }

    .flip-column { gap: 40px; }
    .deep-stack { gap: 40px; }

    .deep-stack::before, .deep-stack::after { display: none; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .site-title { font-size: 56px; }
    .scene-title { font-size: 38px; }
    .card-title { font-size: 24px; }
    .scene-header { margin-bottom: 36px; }
}

/* Reduced motion: no flips, no morphing */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.2s !important;
    }

    .blob { animation: none; }
    .opening-blob { animation: none; }

    .flip-card.is-flipped .flip-inner,
    .flip-card:hover .flip-inner { transform: none; }

    .flip-card.is-flipped .flip-back,
    .flip-card:hover .flip-back {
        opacity: 1;
        z-index: 2;
    }

    .flip-back { opacity: 0; transition: opacity 0.3s ease; }
}
