/* =====================================================
   archetype.boo
   surreal-dreamscape promo : a Jungian descent
   ===================================================== */

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

:root {
    --abyss: #07060e;
    --persona-dusk: #0d0b18;
    --shadow-deep: #040308;
    --anima-warm: #110c1a;
    --self-lumen: #0f0d1e;
    --veil-indigo: #1e1a2e;
    --orchid: #9f8cc2;
    --gold: #e8b84b;
    --moonwash: #ddd8eb;
    --amethyst-fog: #6b5b95;
    --shadow-crimson: #8b2c3a;
    --depth: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    background: var(--abyss);
    color: var(--moonwash);
    overflow-x: hidden;
}

body {
    font-family: 'Alegreya', 'Lora', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.8;
    background: color-mix(in oklch, var(--abyss) calc((1 - var(--depth)) * 100%), var(--anima-warm));
    min-height: 100vh;
    position: relative;
    cursor: default;
}

::selection {
    background: rgba(159, 140, 194, 0.35);
    color: var(--moonwash);
}

/* =====================================================
   AMBIENT MIST CANVAS
   ===================================================== */
#mist-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

/* =====================================================
   DEPTH METER
   ===================================================== */
.depth-meter {
    position: fixed;
    top: 24px;
    right: 28px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Caveat', 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--amethyst-fog);
    opacity: 0;
    transition: opacity 1.4s ease;
    letter-spacing: 0.02em;
    pointer-events: none;
    mix-blend-mode: screen;
}

.depth-meter.active { opacity: 0.85; }

.depth-label {
    text-transform: lowercase;
    font-style: italic;
}

.depth-track {
    display: inline-block;
    width: 120px;
    height: 1px;
    background: rgba(159, 140, 194, 0.22);
    position: relative;
    overflow: hidden;
}

.depth-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: linear-gradient(to right, var(--orchid), var(--gold));
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    height: 1px;
}

.depth-stage {
    font-family: 'Cinzel Decorative', 'Lora', serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--orchid);
    min-width: 70px;
}

/* =====================================================
   CHAMBERS (BASE)
   ===================================================== */
.chamber {
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding: 14vh 8vw 12vh;
    z-index: 1;
    overflow: hidden;
    isolation: isolate;
    transition: background 2s ease;
}

/* Bilateral inkblot textures (Rorschach echo) */
.inkblot {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.95;
}

.inkblot-a {
    background:
        radial-gradient(ellipse 380px 480px at 30% 28%, rgba(159, 140, 194, 0.030) 0%, transparent 60%),
        radial-gradient(ellipse 380px 480px at 70% 28%, rgba(159, 140, 194, 0.030) 0%, transparent 60%),
        radial-gradient(ellipse 220px 360px at 22% 70%, rgba(159, 140, 194, 0.022) 0%, transparent 65%),
        radial-gradient(ellipse 220px 360px at 78% 70%, rgba(159, 140, 194, 0.022) 0%, transparent 65%),
        radial-gradient(ellipse 320px 220px at 50% 95%, rgba(159, 140, 194, 0.018) 0%, transparent 70%);
}

.inkblot-b {
    background:
        radial-gradient(ellipse 480px 360px at 25% 35%, rgba(159, 140, 194, 0.028) 0%, transparent 60%),
        radial-gradient(ellipse 480px 360px at 75% 35%, rgba(159, 140, 194, 0.028) 0%, transparent 60%),
        radial-gradient(ellipse 280px 200px at 35% 80%, rgba(159, 140, 194, 0.020) 0%, transparent 60%),
        radial-gradient(ellipse 280px 200px at 65% 80%, rgba(159, 140, 194, 0.020) 0%, transparent 60%);
}

.inkblot-c {
    background:
        radial-gradient(ellipse 520px 420px at 28% 40%, rgba(159, 140, 194, 0.024) 0%, transparent 62%),
        radial-gradient(ellipse 520px 420px at 72% 40%, rgba(159, 140, 194, 0.024) 0%, transparent 62%),
        radial-gradient(ellipse 380px 280px at 30% 88%, rgba(139, 44, 58, 0.028) 0%, transparent 60%),
        radial-gradient(ellipse 380px 280px at 70% 88%, rgba(139, 44, 58, 0.028) 0%, transparent 60%),
        radial-gradient(ellipse 200px 380px at 50% 50%, rgba(0, 0, 0, 0.28) 0%, transparent 65%);
}

.inkblot-d {
    background:
        radial-gradient(ellipse 460px 320px at 24% 30%, rgba(159, 140, 194, 0.030) 0%, transparent 60%),
        radial-gradient(ellipse 460px 320px at 76% 30%, rgba(159, 140, 194, 0.030) 0%, transparent 60%),
        radial-gradient(ellipse 320px 240px at 35% 75%, rgba(232, 184, 75, 0.014) 0%, transparent 60%),
        radial-gradient(ellipse 320px 240px at 65% 75%, rgba(232, 184, 75, 0.014) 0%, transparent 60%);
}

.inkblot-e {
    background:
        radial-gradient(circle 520px at 50% 50%, rgba(196, 181, 253, 0.030) 0%, transparent 60%),
        radial-gradient(ellipse 360px 260px at 22% 78%, rgba(159, 140, 194, 0.020) 0%, transparent 60%),
        radial-gradient(ellipse 360px 260px at 78% 78%, rgba(159, 140, 194, 0.020) 0%, transparent 60%);
}

/* Chamber-specific backgrounds */
.threshold {
    background: var(--abyss);
}

.persona {
    background: var(--persona-dusk);
}

.shadow {
    background: var(--shadow-deep);
}

.anima {
    background: var(--anima-warm);
}

.self {
    background:
        radial-gradient(circle at 50% 50%, rgba(196, 181, 253, 0.03) 0%, transparent 50%),
        var(--self-lumen);
}

/* =====================================================
   THRESHOLD (HERO)
   ===================================================== */
.threshold {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.threshold-inner {
    position: relative;
    width: min(800px, 92vw);
    height: min(100vh, 1100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mirror-wrap {
    position: relative;
    width: min(560px, 76vw);
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: breathe 6s ease-in-out infinite;
    will-change: transform;
}

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

.flourish {
    transform-origin: 400px 500px;
    animation: flourish-float 11s ease-in-out infinite;
}

.flourish:nth-child(4) { animation-delay: -2s; }
.flourish:nth-child(5) { animation-delay: -4s; }
.flourish:nth-child(6) { animation-delay: -6s; }
.flourish:nth-child(7) { animation-delay: -8s; }

@keyframes flourish-float {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.8; }
}

.mirror-title {
    position: relative;
    z-index: 2;
    font-family: 'Cinzel Decorative', 'Lora', serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 4.5vw, 3.2rem);
    letter-spacing: 0.18em;
    color: var(--moonwash);
    text-transform: lowercase;
    text-shadow: 0 0 30px rgba(159, 140, 194, 0.55);
    text-align: center;
    user-select: none;
}

.mirror-title .glyph {
    display: inline-block;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.mirror-title.materialized .glyph {
    opacity: 0.85;
    transform: translateY(0);
}

.mirror-title .glyph.dot {
    color: var(--gold);
    margin: 0 0.04em;
}

.instruction {
    position: relative;
    z-index: 2;
    margin-top: 3rem;
    font-family: 'Caveat', 'Inter', cursive;
    font-size: 1.15rem;
    color: var(--amethyst-fog);
    opacity: 0;
    transition: opacity 1.6s ease 2.4s;
    letter-spacing: 0.02em;
}

.threshold.ready .instruction { opacity: 0.78; }

.enter-btn {
    margin-top: 2.4rem;
    background: transparent;
    border: none;
    color: var(--orchid);
    font-family: 'Cinzel Decorative', 'Lora', serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.72rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    opacity: 0;
    transition: opacity 1.6s ease 3s, color 0.6s ease, letter-spacing 0.6s ease;
    position: relative;
    z-index: 2;
}

.threshold.ready .enter-btn { opacity: 0.7; }

.enter-btn:hover {
    color: var(--gold);
    letter-spacing: 0.4em;
    opacity: 1;
}

.enter-line {
    width: 36px;
    height: 1px;
    background: currentColor;
    opacity: 0.65;
}

/* Mirror shatter shards */
.shards {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.shard {
    position: absolute;
    inset: 0;
    background: var(--abyss);
    border: 1px solid rgba(159, 140, 194, 0.4);
    opacity: 1;
    transition:
        transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 800ms ease;
    will-change: transform, opacity;
    transition-delay: calc(var(--i) * 50ms);
    pointer-events: none;
}

.shard:nth-child(1) { clip-path: polygon(50% 50%, 50% 0%, 85% 0%); }
.shard:nth-child(2) { clip-path: polygon(50% 50%, 85% 0%, 100% 35%); }
.shard:nth-child(3) { clip-path: polygon(50% 50%, 100% 35%, 100% 80%); }
.shard:nth-child(4) { clip-path: polygon(50% 50%, 100% 80%, 65% 100%); }
.shard:nth-child(5) { clip-path: polygon(50% 50%, 65% 100%, 35% 100%); }
.shard:nth-child(6) { clip-path: polygon(50% 50%, 35% 100%, 0% 80%); }
.shard:nth-child(7) { clip-path: polygon(50% 50%, 0% 80%, 0% 35%); }
.shard:nth-child(8) { clip-path: polygon(50% 50%, 0% 35%, 50% 0%); }

/* hidden initially -- only revealed during shatter */
.shards { opacity: 0; }
.shards.shattering { opacity: 1; }

.shards.shattering .shard:nth-child(1) { transform: translate(140px, -180px) rotate(18deg); opacity: 0; }
.shards.shattering .shard:nth-child(2) { transform: translate(220px, -90px) rotate(-22deg); opacity: 0; }
.shards.shattering .shard:nth-child(3) { transform: translate(260px, 60px) rotate(28deg); opacity: 0; }
.shards.shattering .shard:nth-child(4) { transform: translate(180px, 200px) rotate(-14deg); opacity: 0; }
.shards.shattering .shard:nth-child(5) { transform: translate(-160px, 230px) rotate(20deg); opacity: 0; }
.shards.shattering .shard:nth-child(6) { transform: translate(-260px, 80px) rotate(-26deg); opacity: 0; }
.shards.shattering .shard:nth-child(7) { transform: translate(-240px, -110px) rotate(16deg); opacity: 0; }
.shards.shattering .shard:nth-child(8) { transform: translate(-120px, -210px) rotate(-20deg); opacity: 0; }

/* =====================================================
   CHAMBER HEADERS
   ===================================================== */
.chamber-head {
    position: relative;
    max-width: 720px;
    margin: 0 auto 6vh;
    text-align: center;
    z-index: 2;
}

.chamber-numeral {
    display: inline-block;
    font-family: 'Cinzel Decorative', 'Lora', serif;
    font-size: 0.78rem;
    letter-spacing: 0.4em;
    color: var(--amethyst-fog);
    text-transform: uppercase;
    margin-bottom: 1.6rem;
}

.chamber-name {
    font-family: 'Cinzel Decorative', 'Lora', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--moonwash);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.shadow-name {
    color: #c8b8d8;
    text-shadow: 0 0 22px rgba(139, 44, 58, 0.5);
}

.self-name {
    color: var(--gold);
    text-shadow: 0 0 26px rgba(232, 184, 75, 0.35);
}

.chamber-greek {
    font-family: 'Alegreya', serif;
    font-style: italic;
    color: var(--orchid);
    font-size: 1rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.8rem;
    opacity: 0.85;
}

.chamber-blurb {
    font-family: 'Alegreya', serif;
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--moonwash);
    opacity: 0.78;
    max-width: 600px;
    margin: 0 auto;
}

.chamber-blurb em {
    color: var(--orchid);
    font-style: italic;
}

/* =====================================================
   GALLERY (HORIZONTAL SCROLL)
   ===================================================== */
.gallery-zone {
    position: relative;
    width: 100vw;
    margin-left: calc(-8vw);
    padding: 4vh 0 2vh;
    z-index: 2;
}

.gallery-rail {
    display: flex;
    gap: 10vw;
    padding: 0 15vw;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.gallery-rail::-webkit-scrollbar { display: none; }
.gallery-rail:active { cursor: grabbing; }

.archetype {
    flex: 0 0 70vw;
    max-width: 520px;
    min-width: 280px;
    height: 60vh;
    min-height: 460px;
    scroll-snap-align: center;
    background: linear-gradient(180deg, rgba(30, 26, 46, 0.55) 0%, rgba(30, 26, 46, 0.25) 100%);
    border: 1px solid rgba(159, 140, 194, 0.10);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 6% 7% 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: border-color 0.8s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.archetype:hover {
    border-color: rgba(159, 140, 194, 0.3);
}

.archetype.shadow-card {
    background: linear-gradient(180deg, rgba(30, 26, 46, 0.6) 0%, rgba(20, 8, 14, 0.45) 100%);
    border-color: rgba(139, 44, 58, 0.15);
}

.archetype.shadow-card:hover {
    border-color: rgba(139, 44, 58, 0.4);
}

.oval-frame {
    position: relative;
    width: 50%;
    aspect-ratio: 3 / 4;
    margin-bottom: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: breathe 6s ease-in-out infinite;
}

.oval-stroke {
    position: absolute;
    inset: 0;
    border: 1px solid var(--orchid);
    border-radius: 50% / 50%;
    opacity: 0.4;
}

.oval-stroke::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 0.5px solid var(--orchid);
    border-radius: 50% / 50%;
    opacity: 0.45;
}

.shadow-stroke {
    border-color: rgba(139, 44, 58, 0.5);
}

.shadow-stroke::before {
    border-color: rgba(159, 140, 194, 0.4);
}

.silhouette {
    position: relative;
    width: 70%;
    height: 80%;
    z-index: 1;
}

.sil-base {
    fill: var(--veil-indigo);
}

.shadow-card .sil-base {
    fill: #150814;
}

.sil-ghost {
    fill: var(--orchid);
    fill-opacity: 0.15;
    transform: translate(4px, 2px);
    transition:
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        fill-opacity 1.2s ease;
    transform-origin: center;
    will-change: transform;
}

.archetype:hover .sil-ghost {
    transform: translate(12px, 6px);
    fill-opacity: 0.35;
}

.shadow-card .sil-ghost {
    fill: var(--shadow-crimson);
    fill-opacity: 0.18;
}

.shadow-card:hover .sil-ghost {
    fill-opacity: 0.4;
}

.archetype-name {
    font-family: 'Cinzel Decorative', 'Lora', serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--moonwash);
    margin-bottom: 0.4rem;
}

.shadow-text {
    color: #d6c8df;
}

.archetype-greek {
    font-family: 'Caveat', 'Inter', cursive;
    color: var(--amethyst-fog);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.archetype-text {
    font-family: 'Alegreya', serif;
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--moonwash);
    opacity: 0.74;
}

.archetype-text em {
    color: var(--orchid);
    font-style: italic;
    display: block;
    margin-bottom: 0.4rem;
}

.shadow-card .archetype-text em {
    color: #c89aa3;
}

.gallery-progress {
    margin: 3vh auto 0;
    width: min(60vw, 360px);
    height: 1px;
    background: rgba(159, 140, 194, 0.15);
    position: relative;
    overflow: hidden;
}

.gallery-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    height: 1px;
    background: linear-gradient(to right, var(--orchid), var(--gold));
    transition: width 0.18s ease-out;
}

/* =====================================================
   SELF MANDALA
   ===================================================== */
.self-mandala {
    position: relative;
    width: min(640px, 86vw);
    aspect-ratio: 1 / 1;
    margin: 4vh auto 4vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mandala-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.m-ring {
    transform-origin: 300px 300px;
    will-change: transform;
}

.m-ring.r1 { animation: rotate-cw 80s linear infinite; }
.m-ring.r2 { animation: rotate-ccw 64s linear infinite; }
.m-ring.r3 { animation: rotate-cw 50s linear infinite; }
.m-ring.r4 { animation: rotate-ccw 40s linear infinite; }
.m-ring.r5 { animation: breathe 8s ease-in-out infinite; }

@keyframes rotate-cw {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-ccw {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.cardinal {
    opacity: 0.4;
    animation: breathe 12s ease-in-out infinite;
}

.self-quartet {
    position: absolute;
    inset: 0;
}

.quad {
    position: absolute;
    font-family: 'Cinzel Decorative', 'Lora', serif;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--orchid);
    opacity: 0.5;
}

.quad.north { top: -1rem; left: 50%; transform: translateX(-50%); }
.quad.east { right: -1rem; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: right center; }
.quad.south { bottom: -1rem; left: 50%; transform: translateX(-50%); }
.quad.west { left: -1rem; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; }

.self-conclusion {
    max-width: 540px;
    margin: 4vh auto 0;
    text-align: center;
    font-family: 'Alegreya', serif;
    font-style: italic;
    color: var(--moonwash);
    opacity: 0.66;
    font-size: 1.04rem;
    line-height: 1.85;
    position: relative;
    z-index: 2;
}

.self-conclusion em {
    color: var(--gold);
}

/* =====================================================
   MIRROR RETURN (FOOTER)
   ===================================================== */
.mirror-return {
    position: relative;
    min-height: 90vh;
    background: var(--abyss);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14vh 8vw 6vh;
    z-index: 1;
    overflow: hidden;
}

.return-mirror {
    position: relative;
    width: min(520px, 80vw);
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: breathe 6s ease-in-out infinite;
}

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

.return-text {
    position: relative;
    z-index: 2;
    font-family: 'Cinzel Decorative', 'Lora', serif;
    font-size: clamp(1.1rem, 2.6vw, 1.6rem);
    letter-spacing: 0.18em;
    text-transform: lowercase;
    color: var(--moonwash);
    text-align: center;
    margin: 0;
    text-shadow: 0 0 24px rgba(159, 140, 194, 0.3);
    opacity: 0.85;
}

.return-text-2 {
    margin-top: 0.6rem;
    color: var(--gold);
    opacity: 0.75;
    font-style: italic;
    font-size: clamp(1rem, 2.2vw, 1.3rem);
}

.footer-foot {
    margin-top: 6vh;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Caveat', 'Inter', cursive;
    color: var(--amethyst-fog);
    font-size: 0.95rem;
    opacity: 0.6;
}

.brand {
    font-family: 'Cinzel Decorative', 'Lora', serif;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--orchid);
}

.footer-sep { opacity: 0.4; }
.brand-sub { font-style: italic; }

/* =====================================================
   MARGIN NOTES (HIDDEN MARGINALIA)
   ===================================================== */
.margin-note {
    position: absolute;
    font-family: 'Caveat', 'Inter', cursive;
    font-size: 1.1rem;
    color: var(--amethyst-fog);
    opacity: 0;
    transition: opacity 1.4s ease;
    pointer-events: auto;
    z-index: 3;
    max-width: 240px;
    line-height: 1.4;
    font-style: italic;
}

.margin-note.revealed { opacity: 0.55; }
.margin-note:hover { opacity: 0.55; }

.marg-a { top: 12vh; left: 6vw; transform: rotate(-3deg); }
.marg-b { bottom: 12vh; right: 6vw; transform: rotate(2deg); }
.marg-c { top: 6vh; right: 4vw; transform: rotate(2deg); max-width: 200px; }
.marg-d { bottom: 8vh; left: 4vw; transform: rotate(-3deg); max-width: 280px; }
.marg-e { top: 8vh; left: 5vw; transform: rotate(-2deg); }
.marg-f { bottom: 10vh; right: 5vw; transform: rotate(3deg); }
.marg-g { top: 10vh; right: 6vw; transform: rotate(-2deg); max-width: 220px; }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.015); }
}

@keyframes drift-up {
    from { transform: translateY(0); }
    to { transform: translateY(-30px); }
}

@keyframes pulse-once {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.mirror-wrap.pulse-once {
    animation: pulse-once 3s ease-in-out 1, breathe 6s ease-in-out 3s infinite;
}

/* =====================================================
   RESPONSIVE TUNING
   ===================================================== */
@media (max-width: 800px) {
    .chamber { padding: 12vh 6vw 10vh; }
    .gallery-zone { margin-left: -6vw; }
    .gallery-rail { padding: 0 8vw; gap: 6vw; }
    .archetype { flex-basis: 86vw; min-width: 260px; height: auto; min-height: 480px; padding: 8% 8% 6%; }
    .depth-meter { top: 16px; right: 14px; gap: 8px; }
    .depth-track { width: 64px; }
    .depth-stage { font-size: 0.62rem; min-width: 50px; }
    .margin-note { font-size: 0.95rem; max-width: 160px; }
    .marg-a, .marg-b, .marg-c, .marg-d, .marg-e, .marg-f, .marg-g {
        position: static;
        margin: 1.4rem auto 0;
        transform: none;
        text-align: center;
    }
    .self-mandala { width: 92vw; }
}

@media (max-width: 520px) {
    .mirror-title { font-size: 1.4rem; letter-spacing: 0.14em; }
    .chamber-name { font-size: 2.2rem; }
}

/* =====================================================
   REVEAL HELPERS
   ===================================================== */
.chamber {
    opacity: 0.35;
    transition: opacity 1.6s ease;
}

.chamber.threshold,
.chamber.in-view {
    opacity: 1;
}

.mirror-return {
    opacity: 0.5;
    transition: opacity 1.6s ease;
}

.mirror-return.in-view { opacity: 1; }
