        :root {
            --warm-brown: #7d5136;
            --soft-cream: #8e785f;
            --calm-aqua: #87B6BC;
            --pale-neutral: #ECE7D1;
            --medical-grid: radial-gradient(circle, #d1d1d1 1px, transparent 1px);
        }

        body {
            font-family: 'Merriweather', serif;
            background-color: var(--soft-cream);
            color: #2D2A32;
            margin: 0;
            overflow-x: hidden;
            background-image: var(--medical-grid);
            background-size: 40px 40px;
        }

        .nav-link {
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.6;
}

        .serif-bold { font-weight: 700; }
        .serif-black { font-weight: 900; }
        .serif-light-italic { font-weight: 300; font-style: italic; }

        /* --- STACKED CARDS --- */
        .case-stack {
            position: relative;
            padding: 80px 0;
        }

        .case-card {
            background: white;
            border: 1px solid rgba(140, 90, 60, 0.1);
            box-shadow: 10px 10px 0 var(--pale-neutral);
            transition: all 0.5s ease;
            position: relative;
            z-index: 10;
        }

        .case-card:nth-child(even) {
            transform: rotate(-1deg) translateX(-10px);
        }

        .case-card:nth-child(odd) {
            transform: rotate(1deg) translateX(10px);
        }

        /* --- BEFORE AFTER SLIDER --- */
        .ba-container {
            position: relative;
            width: 100%;
            height: 600px;
            overflow: hidden;
            cursor: ew-resize;
        }

        .ba-after {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
        }

        .ba-before {
            position: absolute;
            top: 0;
            left: 0;
            width: 50%;
            height: 100%;
            background-size: cover;
            background-position: center;
            border-right: 4px solid white;
            z-index: 2;
        }

        /* --- NAVIGATION --- */
        nav {
            border-bottom: 1px solid var(--pale-neutral);
            background: rgba(255, 248, 240, 0.9);
            backdrop-filter: blur(10px);
        }

        .nav-link {
            font-size: 0.75rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            font-weight: 400;
            color: var(--warm-brown);
            position: relative;
            transition: 0.3s;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--calm-aqua);
            transition: 0.3s;
        }

        .nav-link:hover::after { width: 100%; }

        /* --- AUTH OVERLAY --- */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(140, 90, 60, 0.4);
            backdrop-filter: blur(8px);
            z-index: 5000;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .modal-overlay.active { display: flex; }

        .prescription-pad {
            background: white;
            padding: 60px;
            border-top: 20px solid var(--warm-brown);
            box-shadow: 0 30px 60px rgba(0,0,0,0.15);
            max-width: 500px;
            width: 90%;
        }

        /* --- PAGE OVERLAY --- */
        .page-view {
            position: fixed;
            inset: 0;
            background: var(--soft-cream);
            z-index: 4000;
            display: none;
            overflow-y: auto;
            padding: 100px 5%;
        }

        .page-view.active { display: block; animation: paperSlideIn 0.6s cubic-bezier(0.23, 1, 0.32, 1); }

        @keyframes paperSlideIn { from { transform: translateY(100%); } to { transform: translateY(0); } }

        /* --- DECORATIONS --- */
        .handwritten {
            font-family: 'Merriweather', serif;
            font-style: italic;
            color: var(--calm-aqua);
            position: relative;
        }

        .handwritten::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 8px;
            background: rgba(135, 182, 188, 0.2);
            z-index: -1;
        }

        .expert-note {
            position: absolute;
            background: white;
            padding: 20px;
            border-left: 4px solid var(--calm-aqua);
            box-shadow: 5px 5px 20px rgba(0,0,0,0.05);
            max-width: 200px;
            font-size: 0.8rem;
            z-index: 50;
        }

        .scrolling-band {
            background: var(--calm-aqua);
            white-space: nowrap;
            overflow: hidden;
            padding: 20px 0;
        }

        .band-content {
            display: inline-block;
            animation: scrollText 20s linear infinite;
        }

        @keyframes scrollText { from { transform: translateX(0); } to { transform: translateX(-50%); } }
