/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111927;
    --surface: #1a2a3a;
    --text-primary: #c8d6e0;
    --text-secondary: #6b8494;
    --accent-primary: #4a9e8e;
    --accent-secondary: #2e6b7f;
    --alert: #c45c3e;
    --nav-bg: #0a1628cc;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.005em;
    overflow-x: hidden;
}

/* === GRAIN OVERLAY === */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    animation: grainShift 0.8s steps(8) infinite;
    transition: opacity 0.5s ease;
}

#grain-overlay.grain-intense {
    opacity: 0.06;
}

@keyframes grainShift {
    0% { background-position: 0 0; }
    12.5% { background-position: -37px 14px; }
    25% { background-position: 62px -48px; }
    37.5% { background-position: -15px 73px; }
    50% { background-position: 84px -21px; }
    62.5% { background-position: -53px 56px; }
    75% { background-position: 29px -67px; }
    87.5% { background-position: -71px 33px; }
    100% { background-position: 0 0; }
}

/* === NAVIGATION === */
#nav-trigger {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: none;
    border: none;
    color: var(--accent-primary);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 200ms ease-out;
    line-height: 1;
}

#nav-trigger:hover {
    transform: scale(1.15);
}

#nav-strip {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 1px solid var(--accent-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 60px 24px;
    transform: translateX(-100%);
    transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#nav-strip.open {
    transform: translateX(0);
}

.nav-anchor {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: clamp(0.625rem, 0.8vw, 0.75rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 0;
    transition: color 200ms ease;
}

.nav-anchor:hover {
    color: var(--accent-primary);
}

/* === PANELS === */
.panel {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.panel-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, #0a0e1700, #0a0e17);
    pointer-events: none;
    z-index: 2;
}

/* === SECTION WATERMARK === */
.section-watermark {
    position: absolute;
    font-family: 'Oswald', sans-serif;
    font-size: 40vw;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.watermark-rotated {
    transform: translate(-50%, -50%) rotate(12deg);
}

.watermark-rotated-neg {
    transform: translate(-50%, -50%) rotate(-15deg);
}

/* === BRIEFING PANEL (HERO) === */
.panel-brief {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 0;
    background-color: var(--bg-primary);
}

.brief-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(5rem, 15vw, 14rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 0.92;
    color: var(--text-primary);
    position: absolute;
    bottom: -0.08em;
    left: 5%;
    z-index: 1;
    overflow: hidden;
    max-height: 70%;
}

.brief-tagline {
    position: absolute;
    top: 45%;
    left: calc(100% / 12 * 2);
    z-index: 3;
    font-family: 'Special Elite', cursive;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    line-height: 1.85;
    color: var(--text-primary);
}

.typewriter-cursor {
    display: inline-block;
    width: 1px;
    height: 1.2em;
    background-color: var(--accent-primary);
    vertical-align: text-bottom;
    animation: cursorBlink 530ms steps(1) infinite;
}

.typewriter-cursor.hidden {
    display: none;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* === EVIDENCE TAPE === */
.evidence-tape {
    position: relative;
    height: 3px;
    background-color: var(--alert);
    transform: rotate(0.3deg);
    z-index: 10;
    display: flex;
    align-items: center;
}

.tape-label {
    position: absolute;
    left: 40px;
    top: -10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--alert);
    background: var(--bg-primary);
    padding: 2px 8px;
}

/* === EVIDENCE PANELS === */
.panel-evidence {
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
}

.panel-evidence-alt {
    background-color: var(--bg-secondary);
}

.panel-evidence-alt .tape-label {
    background: var(--bg-secondary);
}

.exhibit-frame {
    position: relative;
    border: 1px solid #2a4a5e;
    padding: 48px 40px;
    z-index: 1;
}

.exhibit-left {
    margin-left: calc(100% / 12);
    margin-right: calc(100% / 12 * 5);
}

.exhibit-right {
    margin-left: calc(100% / 12 * 4);
    margin-right: calc(100% / 12 * 1);
}

.exhibit-label {
    position: absolute;
    top: -1px;
    left: -1px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--surface);
    padding: 4px 12px;
}

.exhibit-heading {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 0.92;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.exhibit-body {
    color: var(--text-primary);
    margin-bottom: 20px;
    max-width: 60ch;
}

.exhibit-pullquote {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 0.92;
    color: var(--text-secondary);
    margin-top: 40px;
    margin-left: calc(100% / 12 * 6);
    margin-right: calc(100% / 12);
    z-index: 1;
    position: relative;
}

.pullquote-left {
    margin-left: calc(100% / 12);
    margin-right: calc(100% / 12 * 5);
}

.pullquote-mark {
    color: var(--alert);
}

/* === REDACTION REVEAL === */
.reveal-line {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-line.revealed {
    clip-path: inset(0 0% 0 0);
}

/* === DEPOSITION PANEL === */
.panel-deposition {
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.deposition-content {
    position: relative;
    margin-left: calc(100% / 12 * 2);
    margin-right: calc(100% / 12 * 2);
    z-index: 1;
}

.deposition-label {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: clamp(0.625rem, 0.8vw, 0.75rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.deposition-text {
    font-family: 'Special Elite', cursive;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    line-height: 1.85;
    color: var(--text-primary);
    display: inline;
}

.deposition-cursor {
    vertical-align: text-bottom;
}

/* === VERDICT PANEL === */
.panel-verdict {
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 80px;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.verdict-content {
    position: relative;
    z-index: 1;
    width: 33%;
    text-align: left;
}

.verdict-text {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.72;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.verdict-symbol {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(4rem, 8vw, 8rem);
    color: var(--accent-primary);
    animation: symbolPulse 3s ease-in-out infinite;
}

@keyframes symbolPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .exhibit-left,
    .exhibit-right {
        margin-left: 20px;
        margin-right: 20px;
    }

    .exhibit-pullquote,
    .pullquote-left {
        margin-left: 20px;
        margin-right: 20px;
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .deposition-content {
        margin-left: 20px;
        margin-right: 20px;
    }

    .verdict-content {
        width: 80%;
    }

    .brief-title {
        font-size: clamp(3rem, 12vw, 6rem);
    }
}
