﻿        :root {
            --bg: #121212;
        }

        html, body {
            margin: 0; padding: 0; box-sizing: border-box;
            background-color: var(--bg); color: var(--text-body);
            font-family: 'Karla Local', sans-serif;
            height: 100vh; width: 100vw; overflow: hidden;
            -webkit-font-smoothing: antialiased;
        }

        .container {
            display: flex; height: 100vh; width: 100%;
            position: relative;
        }

        .cursor-light-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 820px;
            height: 820px;
            pointer-events: none;
            z-index: 2;
            opacity: 0;
            background:
                radial-gradient(
                    circle at center,
                    rgba(255, 242, 224, 0.052) 0%,
                    rgba(255, 242, 224, 0.03) 18%,
                    rgba(255, 242, 224, 0.014) 36%,
                    rgba(255, 242, 224, 0.005) 54%,
                    rgba(255, 242, 224, 0) 74%
                );
            background-color: rgba(255, 242, 224, 0.016);
            -webkit-backdrop-filter: brightness(1.24) saturate(1.06) contrast(1.01);
            backdrop-filter: brightness(1.24) saturate(1.06) contrast(1.01);
            -webkit-mask-image: radial-gradient(
                circle at center,
                rgba(0, 0, 0, 0.94) 0%,
                rgba(0, 0, 0, 0.8) 16%,
                rgba(0, 0, 0, 0.52) 34%,
                rgba(0, 0, 0, 0.24) 52%,
                rgba(0, 0, 0, 0.08) 66%,
                transparent 80%
            );
            mask-image: radial-gradient(
                circle at center,
                rgba(0, 0, 0, 0.94) 0%,
                rgba(0, 0, 0, 0.8) 16%,
                rgba(0, 0, 0, 0.52) 34%,
                rgba(0, 0, 0, 0.24) 52%,
                rgba(0, 0, 0, 0.08) 66%,
                transparent 80%
            );
            transition: opacity 0.22s ease;
            transform: translate3d(50vw, 50vh, 0) translate3d(-50%, -50%, 0);
            will-change: transform, opacity;
        }

        .cursor-light-overlay.is-visible {
            opacity: 1;
        }

        .content-side {
            flex: 1; padding: 40px 6vw;
            display: flex; flex-direction: column;
            justify-content: space-between;
            background-color: var(--home-panel);
            position: relative;
            isolation: isolate;
        }

        .content-side::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            opacity: 0.28;
            background-image: url('../textures/grainy-paper-cover-home-optimized.webp');
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
            filter: grayscale(1) invert(1) brightness(0.82) contrast(1.48);
            mix-blend-mode: screen;
        }

        .content-side > * {
            position: relative;
            z-index: 1;
        }

        /* Header matching About Page */
        .header-area {
            display: flex; justify-content: space-between; align-items: center; width: 100%;
        }

        .main-nav {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 28px;
        }

        .logo {
            font-family: 'Playfair Display', serif; font-size: 1.2rem;
            letter-spacing: 0.25em; text-transform: uppercase; font-weight: 500;
            text-decoration: none; color: var(--text-heading);
        }

        .main-nav a {
            font-family: 'Inter', sans-serif;
            text-decoration: none; color: var(--text-heading); font-size: 0.75rem;
            text-transform: uppercase; letter-spacing: 0.15em;
            margin-left: 0; transition: opacity 0.4s ease;
        }

        .main-nav a:hover { opacity: 0.5; }
        .main-nav a.active { opacity: 0.4; pointer-events: none; }

        .main-text { max-width: 480px; }

        .home-headline {
            max-width: 13.5rem;
        }

        .home-headline .headline-row {
            display: block;
            overflow: hidden;
        }

        .home-headline .headline-row + .headline-row {
            margin-top: 0.08em;
        }

        .home-headline .headline-line {
            display: block;
            opacity: 0;
            transform: translateY(120%);
            filter: blur(6px);
            will-change: transform, opacity, filter;
            animation: headlineReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        }

        .home-headline .headline-row:nth-child(1) .headline-line { animation-delay: 0.05s; }
        .home-headline .headline-row:nth-child(2) .headline-line { animation-delay: 0.16s; }
        .home-headline .headline-row:nth-child(3) .headline-line { animation-delay: 0.27s; }
        .home-headline .headline-row:nth-child(4) .headline-line { animation-delay: 0.38s; }

        .home-headline .headline-focus {
            position: relative;
            display: inline-block;
            color: #c3a588;
            letter-spacing: 0.075em;
            font-style: italic;
        }

        .home-headline .headline-focus::after {
            content: attr(data-text);
            position: absolute;
            inset: 0;
            pointer-events: none;
            opacity: 0;
            color: transparent;
            background-image: radial-gradient(
                circle at var(--glow-x, 50%) var(--glow-y, 50%),
                rgba(255, 248, 236, 0.98) 0%,
                rgba(245, 221, 184, 0.82) 18%,
                rgba(224, 189, 144, 0.34) 34%,
                rgba(224, 189, 144, 0) 62%
            );
            filter: blur(0.35px);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            transition: opacity 0.22s ease;
        }

        @media (hover: hover) and (pointer: fine) {
            .home-headline .headline-focus.is-active::after {
                opacity: 1;
            }

            .home-headline .headline-focus {
                transition: text-shadow 0.22s ease;
            }

            .home-headline .headline-focus.is-active {
                text-shadow: 0 0 14px rgba(224, 189, 144, 0.12);
            }
        }

        @keyframes headlineReveal {
            from {
                opacity: 0;
                transform: translateY(120%);
                filter: blur(6px);
            }
            65% {
                opacity: 1;
            }
            to {
                opacity: 1;
                transform: translateY(0);
                filter: blur(0);
            }
        }

        h1 {
            font-family: 'TT Drugs Trial Regular', sans-serif;
            font-size: 2.18rem;
            line-height: 1.02;
            font-weight: 400;
            margin-bottom: 2.5vh;
            letter-spacing: 0.05em;
            color: var(--text-heading-soft);
            max-width: 12rem;
            text-transform: uppercase;
            position: relative;
            top: -3rem;
        }

        h1 i { font-style: italic; color: #b0b0b0; }

        @media (prefers-reduced-motion: reduce) {
            .home-headline .headline-line,
            .home-headline .headline-focus {
                animation: none;
                opacity: 1;
                transform: none;
                filter: none;
                letter-spacing: inherit;
            }
            .home-headline .headline-focus::after {
                transition: none;
            }
            .cursor-light-overlay {
                display: none;
            }
        }

        .description {
            display: grid;
            gap: 0.9rem;
            max-width: 35ch;
            margin-bottom: 4vh;
            font-family: 'Karla Local', sans-serif;
        }

        .description p {
            font-size: clamp(0.95rem, 1.8vh, 1.05rem);
            line-height: 1.8;
            color: var(--text-body);
            font-weight: 300;
            margin: 0;
        }

        .description .description-quote {
            display: inline-block;
            margin-bottom: 0.15rem;
            font-family: 'Inter', sans-serif;
            font-size: 0.78rem;
            font-weight: 400;
            color: #b89b7f;
            font-style: normal;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            line-height: 1.6;
        }

        .cta-link {
            display: inline-block; text-decoration: none; color: var(--text-heading);
            font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.22em;
            border-bottom: 1px solid var(--text-body); padding-bottom: 8px;
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .cta-link:hover { color: var(--text-body); border-bottom-color: var(--border); padding-left: 15px; }

        /* Footer matching About Page */
        footer {
            width: 100%;
            padding-top: 24px;
            border-top: 1px solid var(--border);
            text-align: center;
            font-family: 'Inter', sans-serif;
            font-size: 0.65rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: #555;
        }

        .image-side {
            flex: 1.2; height: 100vh; background-color: var(--home-panel);
            position: relative;
            overflow: hidden;
            isolation: isolate;
        }

        .image-shadow-overlay {
            position: absolute;
            top: -28%;
            left: -38%;
            width: 215%;
            height: 190%;
            pointer-events: none;
            z-index: 1;
            background:
                linear-gradient(
                    32deg,
                    rgba(0, 0, 0, 0) 0%,
                    rgba(0, 0, 0, 0) 27%,
                    rgba(0, 0, 0, 0.1) 37%,
                    rgba(0, 0, 0, 0.34) 47%,
                    rgba(0, 0, 0, 0.11) 57%,
                    rgba(0, 0, 0, 0) 68%,
                    rgba(0, 0, 0, 0) 100%
                ),
                radial-gradient(
                    120% 90% at 78% 18%,
                    rgba(255, 244, 230, 0.12) 0%,
                    rgba(255, 244, 230, 0.05) 18%,
                    rgba(255, 244, 230, 0) 46%
                ),
                radial-gradient(
                    88% 78% at 26% 72%,
                    rgba(0, 0, 0, 0.2) 0%,
                    rgba(0, 0, 0, 0.065) 28%,
                    rgba(0, 0, 0, 0) 62%
                );
            opacity: 1;
            filter: blur(7px);
            will-change: transform;
            transform-origin: center;
            animation: sunlightDrift 10s ease-in-out infinite alternate;
        }

        @keyframes sunlightDrift {
            0% {
                transform: translate3d(20%, -10%, 0) rotate(2.8deg) scale(1.04);
            }
            100% {
                transform: translate3d(-18%, 8%, 0) rotate(-2.6deg) scale(0.98);
            }
        }

        .image-side img {
            position: relative;
            z-index: 0;
            width: 100%; height: 100%; object-fit: cover; display: block;
            filter: brightness(0.85) contrast(1.05) sepia(0.03); /* Matching cinematic filter */
        }

        .mobile-header,
        .mobile-nav,
        .mobile-home-copy {
            display: none;
        }

        @media (max-width: 1024px) {
            html, body { overflow: hidden; height: 100dvh; }
            .container { display: block; height: 100dvh; min-height: 100dvh; }
            .cursor-light-overlay { display: none; }
            .content-side { display: none; }
            .image-side {
                width: 100%;
                height: 100dvh;
                min-height: 100dvh;
                max-height: none;
            }
            .header-area { display: none; }
            .image-side img {
                width: 100%;
                margin-left: 0;
                -webkit-mask-image: none;
                mask-image: none;
            }
            .mobile-header {
                display: grid;
                grid-template-columns: 1fr auto;
                align-items: center;
                gap: 26px;
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                padding: 16px 10%;
                z-index: 5;
                background: linear-gradient(180deg, rgba(10, 10, 10, 0.42), rgba(10, 10, 10, 0));
            }
            .mobile-logo {
                font-family: 'Playfair Display', serif;
                font-size: 1.2rem;
                letter-spacing: 0.25em;
                text-transform: uppercase;
                font-weight: 500;
                text-decoration: none;
                color: var(--text-heading);
            }
            .mobile-menu-toggle {
                display: inline-flex;
                align-items: center;
                justify-content: flex-end;
                gap: 12px;
                background-color: rgba(18, 16, 14, 0.18);
                background-image:
                    linear-gradient(currentColor, currentColor),
                    linear-gradient(currentColor, currentColor),
                    linear-gradient(currentColor, currentColor);
                background-repeat: no-repeat;
                background-position:
                    14px calc(50% - 4px),
                    14px 50%,
                    14px calc(50% + 4px);
                background-size:
                    12px 1px,
                    12px 1px,
                    12px 1px;
                border: 1px solid rgba(230, 226, 218, 0.12);
                color: var(--text-heading);
                font-family: 'Inter', sans-serif;
                font-size: 0.72rem;
                text-transform: uppercase;
                letter-spacing: 0.2em;
                cursor: pointer;
                min-width: 96px;
                padding: 10px 14px 10px 34px;
                line-height: 1;
                white-space: nowrap;
                transition: opacity 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
            }
            .mobile-menu-toggle:hover {
                opacity: 1;
                border-color: rgba(230, 226, 218, 0.2);
                background-color: rgba(18, 16, 14, 0.28);
            }
            .mobile-nav {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: 18px;
                position: absolute;
                top: 64px;
                left: 10%;
                right: 10%;
                z-index: 6;
                max-height: 0;
                overflow: hidden;
                opacity: 0;
                padding: 0 22px;
                border: 1px solid transparent;
                background: rgba(19, 17, 15, 0.9);
                backdrop-filter: blur(10px);
                transform: translateY(-6px);
                transition: max-height 0.22s ease, opacity 0.18s ease, transform 0.22s ease, padding 0.22s ease, border-color 0.22s ease;
            }
            .mobile-nav.is-open {
                max-height: 380px;
                opacity: 1;
                transform: translateY(0);
                padding: 20px 22px 22px;
                border-color: rgba(230, 226, 218, 0.12);
            }
            .mobile-nav a {
                text-decoration: none;
                color: var(--text-heading);
                font-size: 0.78rem;
                font-weight: 400;
                text-transform: uppercase;
                letter-spacing: 0.19em;
                line-height: 1.2;
                padding: 2px 0;
                opacity: 0;
                transform: translateY(-4px);
                transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
            }
            .mobile-nav.is-open a {
                opacity: 1;
                transform: translateY(0);
            }
            .mobile-nav.is-open a:nth-child(1) { transition-delay: 0.04s; }
            .mobile-nav.is-open a:nth-child(2) { transition-delay: 0.08s; }
            .mobile-nav.is-open a:nth-child(3) { transition-delay: 0.12s; }
            .mobile-nav.is-open a:nth-child(4) { transition-delay: 0.16s; }
            .mobile-nav.is-open a:nth-child(5) { transition-delay: 0.2s; }
            .mobile-nav.is-open a:nth-child(6) { transition-delay: 0.24s; }
            .mobile-home-copy {
                display: flex;
                position: absolute;
                inset: 0;
                z-index: 4;
                flex-direction: column;
                justify-content: flex-end;
                padding: 0 10% 28px;
                background: linear-gradient(180deg, rgba(18, 14, 12, 0) 0%, rgba(18, 14, 12, 0.08) 38%, rgba(18, 14, 12, 0.84) 72%, var(--home-panel) 100%);
                isolation: isolate;
            }
            .mobile-home-copy::before {
                content: "";
                position: absolute;
                inset: 0;
                pointer-events: none;
                opacity: 0.28;
            background-image: url('../textures/grainy-paper-cover-home-optimized.webp');
                background-size: cover;
                background-repeat: no-repeat;
                background-position: center bottom;
                filter: grayscale(1) invert(1) brightness(0.8) contrast(1.42);
                mix-blend-mode: screen;
                -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 46%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0.68) 78%, #000 100%);
                mask-image: linear-gradient(180deg, transparent 0%, transparent 46%, rgba(0, 0, 0, 0.18) 60%, rgba(0, 0, 0, 0.68) 78%, #000 100%);
            }
            .mobile-home-copy > * {
                position: relative;
                z-index: 1;
            }
            .mobile-home-text {
                max-width: 420px;
            }
            .mobile-home-copy h1 {
                font-size: 1.82rem;
                line-height: 1;
                max-width: none;
                margin-bottom: 16px;
                top: -1.9rem;
            }
            .mobile-home-copy .home-headline {
                max-width: 12.4rem;
            }
            .mobile-home-copy .description {
                margin-bottom: 20px;
                max-width: 34ch;
            }
            .mobile-home-footer {
                position: relative;
                width: 100%;
                margin-top: 24px;
                padding-top: 24px;
                padding-bottom: 0;
                border-top: none;
                text-align: center;
                font-family: 'Inter', sans-serif;
                font-size: 0.65rem;
                line-height: 1.6;
                letter-spacing: 0.2em;
                text-transform: uppercase;
                color: #555;
            }
            .mobile-home-footer::before {
                content: "";
                position: absolute;
                top: 0;
                left: 50%;
                width: 100vw;
                height: 1px;
                background: var(--border);
                transform: translateX(-50%);
            }
        }

        @media (max-width: 768px) {
            .mobile-header {
                gap: 22px;
                padding: 12px 10%;
            }
            .mobile-nav {
                top: 60px;
            }
            .mobile-home-copy {
                padding: 0 10% 28px;
            }
            .mobile-home-copy h1 {
                font-size: 1.62rem;
                line-height: 1;
                margin-bottom: 10px;
                top: -1.4rem;
            }
            .mobile-home-copy .home-headline {
                max-width: 11rem;
            }
            .mobile-home-copy .description {
                margin-bottom: 10px;
            }
            .mobile-home-copy .description p {
                font-size: 0.88rem;
                line-height: 1.5;
            }
            .mobile-home-copy .description .description-quote {
                font-size: 0.72rem;
                letter-spacing: 0.16em;
                line-height: 1.55;
            }
            .mobile-home-copy .cta-link { font-size: 0.68rem; }
            .mobile-home-footer {
                margin-top: 20px;
                padding-top: 24px;
                padding-bottom: 0;
                font-size: 0.65rem;
                line-height: 1.6;
                letter-spacing: 0.2em;
            }
        }
