/* ============================================================
   economics.day — vaporwave × zen Buddhist meditation on markets
   Palette: burgundy/wine dominant with teal + magenta glitch accents
   Design markers: IntersectionObserver (threshold: 0.15) with (Google Fonts named families referenced via local/system fallbacks only.
   ============================================================ */

:root {
    --c-bg: #0d0509;
    --c-bg-deep: #1a0a10;
    --c-bg-alt: #250e16;
    --c-sidebar: #3d0f1e;
    --c-rose: #c4738a;
    --c-rose-pale: #e8c4cf;
    --c-mauve: #d4b0bc;
    --c-teal: #6dd4c8;
    --c-magenta: #d44fa0;
    --c-void: #0d0509;

    --f-display: "Playfair Display", "Lora", serif;
    --f-body: "Karla", "Inter", sans-serif;
    --f-mono: "Share Tech Mono", ui-monospace, monospace;
    --f-kanji: "Noto Serif JP", serif;

    --sidebar-w: 280px;
    --easing-zen: cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

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

html, body {
    background: var(--c-bg-deep);
    color: var(--c-mauve);
    font-family: var(--f-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0.01em;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(1200px 800px at 75% 10%, rgba(196, 115, 138, 0.08), transparent 60%),
        radial-gradient(900px 700px at 20% 85%, rgba(109, 212, 200, 0.04), transparent 60%),
        linear-gradient(180deg, #1a0a10 0%, #0d0509 100%);
    background-attachment: fixed;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ----- Typography helpers ----- */
.mono {
    font-family: var(--f-mono);
    color: var(--c-teal);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

em {
    font-style: italic;
    color: var(--c-rose-pale);
    font-family: var(--f-display);
    font-weight: 400;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--c-sidebar);
    z-index: 40;
    overflow: hidden;
    transition: transform 0.6s var(--easing-zen);
}

.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.77 0 0 0 0 0.45 0 0 0 0 0.54 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.04;
    pointer-events: none;
    mix-blend-mode: screen;
}

.sidebar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--c-rose);
    box-shadow: 0 0 6px rgba(196, 115, 138, 0.25);
    animation: borderBreathe 6s ease-in-out infinite;
}

.sidebar-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 32px 28px 32px 36px;
    z-index: 2;
}

.sidebar-mark {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 52px;
}

.sidebar-kanji {
    font-family: var(--f-kanji);
    font-weight: 200;
    font-size: 54px;
    line-height: 0.9;
    color: var(--c-rose-pale);
    text-shadow: 0 0 30px rgba(196, 115, 138, 0.35);
}

.sidebar-mark-sub {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--c-rose);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    line-height: 1.7;
    padding-top: 6px;
    border-left: 1px solid rgba(196, 115, 138, 0.3);
    padding-left: 14px;
}

/* Nav list */
.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 12px;
    color: var(--c-mauve);
    text-decoration: none;
    font-family: var(--f-body);
    font-size: 13px;
    letter-spacing: 0.04em;
    position: relative;
    transition: color 0.5s var(--easing-zen);
}

.nav-link::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, var(--c-rose) 0%, var(--c-teal) 100%);
    transition: height 0.6s var(--easing-zen);
}

.nav-link:hover,
.nav-link.active {
    color: var(--c-rose-pale);
}

.nav-link:hover::before,
.nav-link.active::before {
    height: 80%;
}

.nav-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--c-rose);
    background: transparent;
    transition: background 0.6s ease, border-color 0.6s ease;
    flex-shrink: 0;
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
    background: linear-gradient(135deg, var(--c-sidebar), var(--c-teal));
    border-color: var(--c-teal);
    box-shadow: 0 0 10px rgba(109, 212, 200, 0.5);
}

.nav-glyph {
    font-family: var(--f-kanji);
    font-weight: 200;
    font-size: 20px;
    color: var(--c-rose);
    min-width: 24px;
}

.nav-link.active .nav-glyph {
    color: var(--c-teal);
}

.nav-label {
    flex-grow: 1;
}

/* Sidebar meta */
.sidebar-meta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(196, 115, 138, 0.18);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-ticker {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 10px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
}

.ticker-label {
    color: var(--c-rose);
}

.ticker-value {
    color: var(--c-rose-pale);
    font-size: 14px;
    letter-spacing: 0.06em;
    justify-self: end;
    text-shadow: 0 0 8px rgba(196, 115, 138, 0.3);
}

.ticker-delta {
    color: var(--c-teal);
    font-size: 10px;
    justify-self: end;
}

.ticker-delta.down {
    color: var(--c-magenta);
}

.sidebar-coord {
    display: flex;
    justify-content: space-between;
    font-family: var(--f-mono);
    font-size: 10px;
    color: rgba(196, 115, 138, 0.6);
    letter-spacing: 0.18em;
}

.sidebar-vertical {
    position: absolute;
    right: 12px;
    bottom: 24px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--f-display);
    font-size: 14px;
    letter-spacing: 0.3em;
    color: rgba(232, 196, 207, 0.35);
    text-transform: lowercase;
}

/* Sidebar hamburger (mobile only) */
.sidebar-toggle {
    position: absolute;
    top: 20px;
    right: -44px;
    width: 38px;
    height: 38px;
    background: var(--c-sidebar);
    border: 1px solid rgba(196, 115, 138, 0.4);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    z-index: 41;
}

.sidebar-toggle span {
    display: block;
    width: 16px;
    height: 1px;
    background: var(--c-rose);
    transition: transform 0.4s ease, opacity 0.3s ease;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */

.main {
    margin-left: var(--sidebar-w);
    width: calc(100vw - var(--sidebar-w));
    position: relative;
}

.section {
    position: relative;
    min-height: 100vh;
    padding: 80px clamp(40px, 8vw, 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.2s var(--easing-zen), transform 1.2s var(--easing-zen);
    border-bottom: 1px solid rgba(196, 115, 138, 0.08);
}

.section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-koan { min-height: 100vh; }
.section-hand { min-height: 100vh; }
.section-garden { min-height: 90vh; }
.section-paradox { min-height: 100vh; }
.section-meditation { min-height: 80vh; }

/* Section numbering */
.section-number {
    position: absolute;
    top: 60px;
    right: clamp(40px, 8vw, 120px);
    font-family: var(--f-kanji);
    font-weight: 200;
    font-size: 72px;
    color: rgba(196, 115, 138, 0.2);
    line-height: 1;
    letter-spacing: 0;
    pointer-events: none;
}

.section-eyebrow {
    position: absolute;
    top: 80px;
    left: clamp(40px, 8vw, 120px);
    display: flex;
    align-items: center;
    gap: 14px;
}

.eyebrow-line {
    width: 48px;
    height: 1px;
    background: var(--c-teal);
    opacity: 0.7;
}

/* Kanji Watermarks */
.kanji-watermark {
    position: absolute;
    font-family: var(--f-kanji);
    font-weight: 200;
    color: var(--c-rose);
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
    line-height: 0.9;
    z-index: 0;
}

.kanji-watermark-1 {
    right: -40px;
    top: 25%;
    font-size: clamp(220px, 32vw, 420px);
    writing-mode: vertical-rl;
    opacity: 0.09;
}

.kanji-watermark-2 {
    left: 55%;
    top: 8%;
    font-size: clamp(200px, 28vw, 380px);
    opacity: 0.07;
}

.kanji-watermark-3 {
    right: 8%;
    bottom: 6%;
    font-size: clamp(160px, 20vw, 280px);
    writing-mode: vertical-rl;
    opacity: 0.08;
}

.kanji-watermark-4 {
    left: -20px;
    top: 20%;
    font-size: clamp(240px, 34vw, 460px);
    opacity: 0.05;
}

.kanji-watermark-5 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(280px, 40vw, 520px);
    opacity: 0.04;
}

/* Section Header (common) */
.section-header {
    position: relative;
    z-index: 3;
    max-width: 720px;
}

.section-overline {
    margin-bottom: 24px;
    color: var(--c-teal);
}

.section-title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: 0.06em;
    color: var(--c-rose-pale);
    text-shadow: 0 0 40px rgba(196, 115, 138, 0.25);
    margin-bottom: 32px;
}

.section-body {
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.85;
    max-width: 540px;
    color: var(--c-mauve);
}

.section-meta {
    display: flex;
    gap: 28px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(196, 115, 138, 0.12);
}

/* ============================================================
   SECTION 1 — Opening Koan
   ============================================================ */

.section-koan {
    background:
        radial-gradient(1000px 600px at 70% 40%, rgba(61, 15, 30, 0.55), transparent 70%),
        linear-gradient(180deg, #1a0a10 0%, #0d0509 100%);
}

.section-header-koan {
    margin-top: 40px;
}

.koan-stage {
    position: absolute;
    top: 50%;
    left: 61.8%;
    transform: translate(-50%, -60%);
    width: 52%;
    max-width: 760px;
    z-index: 2;
    pointer-events: none;
}

.calligraphy {
    width: 100%;
    height: auto;
    filter: url(#soft-turbulence);
}

.ink-stroke {
    fill: none;
    stroke: var(--c-rose-pale);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.78;
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    animation: inkDraw 6.5s var(--easing-zen) forwards;
    filter: drop-shadow(0 0 12px rgba(232, 196, 207, 0.25));
}

.ink-stroke-2 {
    stroke-width: 1.6;
    opacity: 0.55;
    animation-delay: 1.2s;
    stroke: var(--c-rose);
}

.ink-stroke-3 {
    stroke-width: 1.1;
    opacity: 0.4;
    animation-delay: 2.2s;
    stroke: var(--c-teal);
}

.calligraphy-splatter circle {
    fill: var(--c-magenta);
    opacity: 0;
    animation: splatterFade 4s ease-out forwards;
    animation-delay: 3.4s;
}

@keyframes inkDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes splatterFade {
    0% { opacity: 0; }
    30% { opacity: 0.8; }
    100% { opacity: 0.35; }
}

/* ============================================================
   SECTION 2 — The Invisible Hand
   ============================================================ */

.section-hand {
    background:
        radial-gradient(900px 600px at 30% 70%, rgba(61, 15, 30, 0.5), transparent 70%),
        linear-gradient(180deg, #0d0509 0%, #1a0a10 100%);
}

.hand-stage {
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    width: 44%;
    max-width: 620px;
    z-index: 1;
}

.hand-svg {
    width: 100%;
    height: auto;
    filter: url(#glitch-turbulence);
}

.hand-path {
    fill: none;
    stroke: var(--c-rose);
    stroke-width: 1.5;
    stroke-linecap: round;
    opacity: 0.85;
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
}

.section-hand.revealed .hand-path {
    animation: handAssemble 6s var(--easing-zen) forwards;
}

.section-hand.revealed .hand-path:nth-of-type(2) { animation-delay: 0.3s; }
.section-hand.revealed .hand-path:nth-of-type(3) { animation-delay: 0.6s; }
.section-hand.revealed .hand-path:nth-of-type(4) { animation-delay: 0.9s; }
.section-hand.revealed .hand-path:nth-of-type(5) { animation-delay: 1.2s; }
.section-hand.revealed .hand-path:nth-of-type(6) { animation-delay: 1.5s; }
.section-hand.revealed .hand-path:nth-of-type(7) { animation-delay: 1.8s; }

.hand-curve {
    fill: none;
    stroke-width: 1.2;
    opacity: 0.35;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.hand-curve.supply {
    stroke: var(--c-teal);
}

.hand-curve.demand {
    stroke: var(--c-rose);
}

.section-hand.revealed .hand-curve {
    animation: handAssemble 5s var(--easing-zen) forwards;
    animation-delay: 2.4s;
}

.hand-equilibrium {
    fill: var(--c-teal);
    opacity: 0;
    transform-origin: 400px 410px;
    animation: equilibriumPulse 4s ease-in-out infinite;
    animation-delay: 3.5s;
    filter: drop-shadow(0 0 10px rgba(109, 212, 200, 0.7));
}

@keyframes handAssemble {
    0% { stroke-dashoffset: 1400; opacity: 0; }
    30% { opacity: 0.85; }
    100% { stroke-dashoffset: 0; opacity: 0.85; }
}

@keyframes equilibriumPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Micro curves floating around */
.micro-curve {
    position: absolute;
    width: 180px;
    opacity: 0.25;
    filter: url(#glitch-turbulence);
}

.micro-curve-a {
    top: 18%;
    left: 4%;
}

.micro-curve-b {
    bottom: 14%;
    left: 50%;
    width: 140px;
    opacity: 0.2;
}

.supply-curve {
    fill: none;
    stroke: var(--c-teal);
    stroke-width: 1.2;
}

.demand-curve {
    fill: none;
    stroke: var(--c-rose);
    stroke-width: 1.2;
}

.aside-list {
    display: flex;
    gap: 40px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(196, 115, 138, 0.12);
}

.aside-list div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aside-list dt {
    color: var(--c-rose);
    font-size: 10px;
    letter-spacing: 0.2em;
}

.aside-list dd {
    color: var(--c-rose-pale);
    font-size: 14px;
    font-family: var(--f-mono);
}

/* ============================================================
   SECTION 3 — Equilibrium Garden
   ============================================================ */

.section-garden {
    background:
        radial-gradient(800px 500px at 70% 50%, rgba(37, 14, 22, 0.9), transparent 75%),
        linear-gradient(180deg, #1a0a10 0%, #0d0509 100%);
}

.zen-garden {
    position: absolute;
    top: 50%;
    right: 4%;
    transform: translateY(-50%);
    width: 48%;
    aspect-ratio: 16 / 10;
    background:
        repeating-linear-gradient(
            0deg,
            #1a0a10 0px,
            #1a0a10 1px,
            #250e16 1px,
            #250e16 3px
        );
    border: 1px solid rgba(196, 115, 138, 0.2);
    box-shadow:
        inset 0 0 80px rgba(0, 0, 0, 0.6),
        0 30px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 1;
}

.zen-ripple {
    position: absolute;
    top: 58%;
    left: 60%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(196, 115, 138, 0.18);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: rippleExpand 10s ease-in-out infinite;
}

.zen-ripple-2 {
    width: 380px;
    height: 380px;
    border-color: rgba(109, 212, 200, 0.1);
    animation-delay: -4s;
}

@keyframes rippleExpand {
    0%, 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.25; }
}

.rock {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: calc(var(--size) * 0.78);
    transform: translate(-50%, -50%);
    background: linear-gradient(160deg, #3d0f1e 0%, #250e16 80%);
    border: 1px solid rgba(196, 115, 138, 0.25);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(196, 115, 138, 0.1);
}

.rock-1 { border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; }
.rock-2 { border-radius: 55% 45% 60% 40% / 50% 50% 45% 55%; }
.rock-3 { border-radius: 50% 50% 40% 60% / 55% 45% 55% 45%; }
.rock-4 { border-radius: 65% 35% 50% 50% / 40% 60% 50% 50%; }
.rock-5 { border-radius: 45% 55% 55% 45% / 60% 40% 60% 40%; }

.garden-label {
    position: absolute;
    color: var(--c-teal);
    font-size: 10px;
    opacity: 0.6;
    pointer-events: none;
}

.garden-label-1 { top: 8%; left: 6%; }
.garden-label-2 { bottom: 10%; left: 10%; }
.garden-label-3 { top: 10%; right: 8%; color: var(--c-rose); }

/* ============================================================
   SECTION 4 — The Paradox Scroll
   ============================================================ */

.section-paradox {
    background:
        radial-gradient(1200px 800px at 80% 20%, rgba(212, 79, 160, 0.04), transparent 70%),
        linear-gradient(180deg, #0d0509 0%, #1a0a10 100%);
    padding-top: 140px;
    padding-bottom: 100px;
    justify-content: flex-start;
}

.section-header-paradox {
    max-width: 780px;
    margin-bottom: 60px;
}

.paradox-list {
    list-style: none;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
}

.paradox-item {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 32px;
    padding: 32px 0;
    border-top: 1px solid rgba(196, 115, 138, 0.15);
    transition: border-color 0.8s ease;
}

.paradox-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--c-teal), var(--c-magenta));
    transition: width 1.4s var(--easing-zen);
}

.section-paradox.revealed .paradox-item::before {
    width: 100%;
}

.section-paradox.revealed .paradox-item:nth-child(2)::before { transition-delay: 0.25s; }
.section-paradox.revealed .paradox-item:nth-child(3)::before { transition-delay: 0.5s; }

.paradox-rank {
    color: var(--c-rose);
    font-size: 11px;
    padding-top: 8px;
}

.paradox-name {
    font-family: var(--f-display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    color: var(--c-rose-pale);
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(196, 115, 138, 0.25);
}

.paradox-text {
    font-family: var(--f-body);
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.65;
    color: var(--c-mauve);
    max-width: 580px;
    margin-bottom: 24px;
    letter-spacing: 0.01em;
}

.paradox-text.glitching {
    color: var(--c-teal);
    text-shadow:
        -1px 0 rgba(212, 79, 160, 0.8),
        1px 0 rgba(109, 212, 200, 0.8);
    animation: textJitter 0.18s steps(3) infinite;
}

@keyframes textJitter {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-1px, 1px); }
    66% { transform: translate(1px, -1px); }
}

.paradox-meter {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 420px;
}

.paradox-bar {
    flex-grow: 1;
    height: 2px;
    background: rgba(196, 115, 138, 0.15);
    position: relative;
    overflow: hidden;
}

.paradox-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--w);
    height: 100%;
    background: linear-gradient(90deg, var(--c-rose), var(--c-teal));
    box-shadow: 0 0 8px rgba(109, 212, 200, 0.35);
}

/* ============================================================
   SECTION 5 — Closing Meditation
   ============================================================ */

.section-meditation {
    background:
        radial-gradient(800px 600px at 50% 60%, rgba(61, 15, 30, 0.4), transparent 70%),
        linear-gradient(180deg, #0d0509 0%, #000 100%);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.breathing-orb {
    position: relative;
    width: 280px;
    height: 280px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-core {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        rgba(232, 196, 207, 0.6) 0%,
        rgba(196, 115, 138, 0.3) 40%,
        transparent 70%);
    box-shadow: 0 0 50px rgba(196, 115, 138, 0.4);
    animation: orbBreathe 8s ease-in-out infinite;
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(196, 115, 138, 0.25);
    animation: ringBreathe 8s ease-in-out infinite;
}

.orb-ring-1 {
    width: 180px;
    height: 180px;
}

.orb-ring-2 {
    width: 260px;
    height: 260px;
    border-color: rgba(109, 212, 200, 0.2);
    animation-delay: -4s;
}

@keyframes orbBreathe {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.6;
        box-shadow: 0 0 40px rgba(196, 115, 138, 0.3);
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 80px rgba(232, 196, 207, 0.55);
    }
}

@keyframes ringBreathe {
    0%, 100% { transform: scale(0.9); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.section-header-meditation {
    max-width: 640px;
    text-align: center;
}

.meditation-title {
    font-family: var(--f-display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(2rem, 4vw, 3.8rem);
    color: var(--c-rose-pale);
    opacity: 0.15;
    transition: opacity 8s var(--easing-zen);
    letter-spacing: 0.06em;
    text-align: center;
}

.section-meditation.revealed .meditation-title {
    opacity: 0.4;
    text-shadow: 0 0 60px rgba(232, 196, 207, 0.3);
}

.meditation-body {
    color: rgba(212, 176, 188, 0.7);
    margin: 20px auto 30px;
    text-align: center;
    max-width: 480px;
    font-style: italic;
}

.meditation-timestamp {
    opacity: 0.5;
    color: var(--c-teal);
}

/* ============================================================
   CRT OVERLAYS
   ============================================================ */

.crt-scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 1px,
        rgba(0, 0, 0, 0.06) 1px,
        rgba(0, 0, 0, 0.06) 2px
    );
    mix-blend-mode: multiply;
}

.crt-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 998;
    background: radial-gradient(
        ellipse at center,
        transparent 55%,
        rgba(13, 5, 9, 0.45) 100%
    );
}

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes borderBreathe {
    0%, 100% {
        background: rgba(196, 115, 138, 0.3);
        box-shadow: 0 0 0 rgba(196, 115, 138, 0);
    }
    50% {
        background: rgba(109, 212, 200, 0.7);
        box-shadow: 0 0 8px rgba(109, 212, 200, 0.35);
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .koan-stage { width: 90%; left: 50%; top: 60%; }
    .hand-stage { width: 70%; right: 2%; top: 20%; transform: translateY(0); opacity: 0.5; }
    .zen-garden { width: 70%; right: 2%; }
    .kanji-watermark { opacity: 0.04; }
}

@media (max-width: 768px) {
    :root { --sidebar-w: 0px; }

    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        --sidebar-w: 260px;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.6);
    }

    .sidebar-toggle {
        display: flex;
    }

    .main {
        margin-left: 0;
        width: 100vw;
    }

    .section {
        padding: 100px 28px 60px;
    }

    .section-number { font-size: 48px; top: 40px; right: 28px; }
    .section-eyebrow { top: 54px; left: 28px; }

    .koan-stage,
    .hand-stage,
    .zen-garden {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        width: 100%;
        margin: 40px auto;
    }

    .paradox-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .aside-list {
        flex-wrap: wrap;
        gap: 20px;
    }
}
