/* =====================================================
   courthouse.stream — Aurora Courthouse, Split-Screen
   Palette: #0d3b66 #c9a96e #c44569 #0d0628 #f5f0e6
           #7b2d8e #3a2f5c #1fab89
   Type: Zilla Slab · Source Serif 4 · IBM Plex Mono
   Design audit terms: "DOCKET 001" (Google Interaction:** cursor-follow effect (7% frequency IntersectionObserver` `scrollY` creates hierarchical system rooted legal document tradition tech-startup convention. 400: "Where experience" `color:
   ===================================================== */

:root {
    --obsidian: #0d0628;
    --petrol: #0d3b66;
    --violet: #7b2d8e;
    --teal: #1fab89;
    --rose: #c44569;
    --gold: #c9a96e;
    --cream: #f5f0e6;
    --chamber: #3a2f5c;

    --aurora-primary: linear-gradient(135deg, #0d3b66 0%, #7b2d8e 40%, #1fab89 70%, #0d0628 100%);
    --aurora-subtle: linear-gradient(180deg, rgba(123,45,142,0.15) 0%, rgba(31,171,137,0.10) 50%, rgba(196,69,105,0.08) 100%);
    --gold-fade: linear-gradient(90deg, transparent, #c9a96e, transparent);

    --split-left: 50%;
    --split-right: 50%;

    --unit: 8px;
    --pad-section: 96px;

    --font-display: "Zilla Slab", "Lora", Georgia, serif;
    --font-body: "Source Serif 4", "Lora", Georgia, serif;
    --font-mono: "IBM Plex Mono", "Courier New", monospace;

    --mouse-y: 50vh;
    --ease-chamber: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--obsidian);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.72;
    letter-spacing: 0.015em;
    overflow-x: hidden;
}

body::selection,
body ::selection {
    background: rgba(201, 169, 110, 0.35);
    color: var(--cream);
}

a {
    color: inherit;
    text-decoration: none;
}

.label,
.eyebrow {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-block;
}

.eyebrow {
    opacity: 0.85;
}

/* =====================================================
   SPLIT STAGE + DIVIDER
   ===================================================== */

.split-stage {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.section {
    display: grid;
    grid-template-columns: var(--split-left) var(--split-right);
    transition: grid-template-columns 0.8s var(--ease-chamber);
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.panel {
    position: relative;
    overflow: hidden;
}

.panel-left {
    background: var(--obsidian);
}

.divider {
    position: fixed;
    top: 0;
    left: var(--split-left);
    width: 1px;
    height: 100vh;
    background: rgba(201, 169, 110, 0.55);
    z-index: 20;
    transition: left 0.8s var(--ease-chamber), opacity 0.6s ease;
    pointer-events: none;
}

.divider::before {
    content: "";
    position: absolute;
    top: 0;
    left: -0.5px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(201,169,110,0.4) 20%, rgba(201,169,110,0.65) 50%, rgba(201,169,110,0.4) 80%, transparent 100%);
}

.divider-lamp {
    position: absolute;
    top: var(--mouse-y);
    left: 50%;
    width: 240px;
    height: 240px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, rgba(201,169,110,0.32) 0%, rgba(201,169,110,0.18) 25%, rgba(201,169,110,0) 65%);
    pointer-events: none;
    filter: blur(2px);
    transition: opacity 0.5s ease;
}

.section-chamber ~ .divider,
.section.chamber-active ~ .divider {
    opacity: 0;
}

/* =====================================================
   SECTION 1: THE VESTIBULE (HERO)
   ===================================================== */

.section-hero {
    min-height: 100vh;
    height: 100vh;
}

.panel-hero-left {
    background: var(--obsidian);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6vh 4vw;
}

.label-top-left {
    position: absolute;
    top: 4vh;
    left: 4vw;
    color: var(--gold);
}

.label-bottom-left {
    position: absolute;
    bottom: 4vh;
    left: 4vw;
    color: rgba(201, 169, 110, 0.7);
}

.docket-number-wrap {
    width: 100%;
    max-width: 72vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.docket-svg {
    width: 100%;
    height: auto;
    max-width: clamp(15rem, 25vw, 22rem);
    overflow: visible;
}

.docket-digits path {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: drawDocket 3s ease-out 0.4s forwards;
}

.docket-digits path:nth-child(2) { animation-delay: 0.8s; }
.docket-digits path:nth-child(3) { animation-delay: 1.2s; }
.docket-digits path:nth-child(4) { animation-delay: 1.6s; }

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

.hero-meta {
    position: absolute;
    bottom: 4vh;
    right: 4vw;
    display: flex;
    align-items: center;
    gap: 14px;
}

.divider-dot {
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    display: inline-block;
}

.panel-hero-right {
    position: relative;
    background: var(--aurora-primary);
    background-size: 200% 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6vh 5vw;
    animation: auroraShift 22s ease-in-out infinite alternate;
}

@keyframes auroraShift {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 100%; }
}

.aurora-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(31,171,137,0.4), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(196,69,105,0.32), transparent 45%),
        radial-gradient(circle at 60% 20%, rgba(245,240,230,0.1), transparent 50%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.blob-hero {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    filter: blur(10px);
    opacity: 0.8;
    pointer-events: none;
    transition: transform 1.2s var(--ease-chamber);
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 44rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.hero-content .eyebrow {
    color: var(--cream);
    opacity: 0.85;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--cream);
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.02;
    text-shadow: 0 2px 30px rgba(13, 6, 40, 0.4);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 400;
    color: rgba(245, 240, 230, 0.72);
    font-size: 1.15rem;
    line-height: 1.5;
    margin: 0;
    max-width: 32ch;
}

.hero-time {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 1.5rem;
    color: var(--cream);
}

.hero-time .label {
    color: rgba(245, 240, 230, 0.75);
}

.tick-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 12px rgba(31, 171, 137, 0.9);
    animation: tickPulse 2s ease-in-out infinite;
}

@keyframes tickPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* =====================================================
   SECTION 2: DOCKET STREAM
   ===================================================== */

.section-docket {
    --split-left: 30%;
    --split-right: 70%;
    align-items: stretch;
}

.panel-docket-left {
    background: var(--obsidian);
    position: relative;
}

.sidebar-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 8vh 3vw 6vh 3vw;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.25);
    padding-bottom: 1.2rem;
}

.sidebar-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.2rem, 1.6vw, 1.6rem);
    letter-spacing: 0.03em;
    color: var(--cream);
    margin: 0;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    flex: 1;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(180deg, rgba(201,169,110,0.1) 0%, rgba(201,169,110,0.6) 50%, rgba(201,169,110,0.1) 100%);
}

.timeline-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.6s var(--ease-chamber);
}

.timeline-node {
    position: absolute;
    left: -28px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    background: var(--obsidian);
    transition: background 0.8s var(--ease-chamber), box-shadow 0.8s ease, transform 0.6s var(--ease-chamber);
}

.timeline-item.is-active .timeline-node {
    background: var(--gold);
    box-shadow: 0 0 16px rgba(201, 169, 110, 0.7);
}

.timeline-item.is-active {
    transform: translateX(4px);
}

.timeline-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.timeline-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: var(--cream);
}

.icon-line {
    width: 48px;
    height: auto;
    margin-top: 0.4rem;
    opacity: 0.85;
}

.icon-line path,
.icon-line line,
.icon-line rect,
.icon-line circle {
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    transition: stroke-dashoffset 1.6s var(--ease-chamber);
}

.timeline-item.is-active .icon-line path,
.timeline-item.is-active .icon-line line,
.timeline-item.is-active .icon-line rect,
.timeline-item.is-active .icon-line circle {
    stroke-dashoffset: 0;
}

.sidebar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(201, 169, 110, 0.25);
}

.gold-fade {
    color: rgba(201, 169, 110, 0.5);
    letter-spacing: 0.4em;
}

.panel-docket-right {
    background: var(--obsidian);
    padding: 0;
    position: relative;
}

.panel-docket-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--aurora-subtle);
    pointer-events: none;
}

.case-entry {
    position: relative;
    min-height: 100vh;
    padding: 12vh 8vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.12);
}

.case-entry:last-child {
    border-bottom: none;
}

.case-header {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 60rem;
}

.case-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: 0.03em;
    color: var(--cream);
    margin: 0;
    line-height: 1.12;
}

.case-body {
    max-width: 52rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    color: rgba(245, 240, 230, 0.88);
}

.case-body p {
    margin: 0;
}

.lede {
    font-size: 1.22rem;
    color: var(--cream);
    line-height: 1.6;
}

.case-body em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}

.case-illustration {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 36rem;
}

.illus-draw path,
.illus-draw line,
.illus-draw circle,
.illus-draw rect {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    transition: stroke-dashoffset 2.4s var(--ease-chamber);
}

.case-entry.is-visible .illus-draw path,
.case-entry.is-visible .illus-draw line,
.case-entry.is-visible .illus-draw circle,
.case-entry.is-visible .illus-draw rect {
    stroke-dashoffset: 0;
}

.case-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 52rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.stat-pair {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stat-value {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    color: var(--gold);
    letter-spacing: 0.04em;
}

/* =====================================================
   SECTION 3: THE DELIBERATION CHAMBER
   ===================================================== */

.section-chamber {
    --split-left: 100%;
    --split-right: 0%;
    grid-template-columns: 1fr;
    background: var(--obsidian);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.chamber-stage {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18vh 8vw;
}

.section-chamber::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(123,45,142,0.2), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(31,171,137,0.16), transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(196,69,105,0.14), transparent 55%);
    pointer-events: none;
}

.blob-chamber {
    position: absolute;
    width: 60vw;
    height: 60vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(4px);
    will-change: transform;
}

.chamber-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 48ch;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.chamber-eyebrow {
    color: var(--gold);
    letter-spacing: 0.14em;
}

.chamber-manifesto {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--cream);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    letter-spacing: 0.02em;
    line-height: 1.28;
    margin: 0;
    text-align: center;
}

.chamber-sig {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gold-rule {
    display: block;
    width: 72px;
    height: 1px;
    background: var(--gold-fade);
}

/* =====================================================
   SECTION 4: THE RECORD (FOOTER)
   ===================================================== */

.section-record {
    --split-left: 25%;
    --split-right: 75%;
    align-items: stretch;
    min-height: 80vh;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
}

.panel-record-left {
    background: var(--obsidian);
    padding: 10vh 3vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.footer-label {
    color: rgba(201, 169, 110, 0.75);
    margin-bottom: 0.4rem;
    letter-spacing: 0.12em;
}

.nav-list {
    list-style: none;
    margin: 0 0 1.2rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.nav-link {
    position: relative;
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    padding-bottom: 2px;
    transition: color 0.4s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s ease;
}

.nav-link:hover {
    color: var(--cream);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.footer-colophon {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: rgba(201, 169, 110, 0.6);
}

.panel-record-right {
    background: var(--obsidian);
    position: relative;
    padding: 10vh 6vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-record-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--aurora-subtle);
    opacity: 0.6;
    pointer-events: none;
}

.facade-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    align-items: center;
}

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

#facadePath {
    stroke-dasharray: 12000;
    stroke-dashoffset: 12000;
    transition: stroke-dashoffset 8s ease-in-out;
}

.section-record.is-visible #facadePath {
    stroke-dashoffset: 0;
}

.facade-caption {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    width: 100%;
}

.gold-gradient-line {
    display: block;
    width: min(380px, 60%);
    height: 1px;
    background: var(--gold-fade);
    margin-top: 0.4rem;
}

/* =====================================================
   RESPONSIVE — collapse split below 820px
   ===================================================== */

@media (max-width: 820px) {
    :root { --split-left: 100%; --split-right: 0%; }
    .section { grid-template-columns: 1fr; }
    .section-hero { height: auto; min-height: 100vh; }
    .panel-hero-left { padding: 14vh 6vw 6vh; min-height: 55vh; }
    .panel-hero-right { padding: 8vh 6vw 12vh; min-height: 55vh; }
    .divider { display: none; }
    .sidebar-inner {
        position: relative;
        height: auto;
        padding: 6vh 6vw;
    }
    .timeline {
        flex-direction: row;
        overflow-x: auto;
        padding: 0;
        gap: 1.6rem;
    }
    .timeline::before { display: none; }
    .timeline-item {
        min-width: 200px;
        padding: 1rem;
        border: 1px solid rgba(201,169,110,0.2);
        border-radius: 2px;
    }
    .timeline-node { position: relative; left: 0; top: 0; margin-bottom: 0.6rem; }
    .case-entry { padding: 10vh 6vw; min-height: auto; }
    .section-record { min-height: auto; }
    .panel-record-left, .panel-record-right { padding: 8vh 6vw; }
}
