@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
    --background: #070707;
    --surface: #101010;
    --surface-light: #181818;

    --text: #f2f2f2;
    --muted: #858585;

    --border: rgba(255,255,255,0.1);

    --red: #d71920;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -20%,
            #202020 0,
            #070707 45%
        );

    color: var(--text);

    font-family: "Inter", sans-serif;

    overflow-x: hidden;
}


/* =====================================================
   CINEMATIC INTRO
===================================================== */

#intro-screen {

    position: fixed;

    inset: 0;

    z-index: 9999;

    background: #050505;

    display: flex;

    align-items: center;
    justify-content: center;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

#intro-screen.hidden {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}

.intro-content {

    width: min(500px, 85%);

    text-align: center;
}

.intro-warning {

    font-family: "Space Mono", monospace;

    font-size: 10px;

    color: var(--red);

    letter-spacing: 0.3em;

    margin-bottom: 25px;
}

.intro-logo {

    font-size: clamp(60px, 12vw, 110px);

    font-weight: 900;

    letter-spacing: -0.08em;

    line-height: 0.8;
}

.intro-logo span {

    font-size: 0.2em;

    vertical-align: top;

    letter-spacing: 0;
}

.intro-subtitle {

    margin-top: 20px;

    font-family: "Space Mono", monospace;

    font-size: 10px;

    color: var(--muted);

    letter-spacing: 0.25em;
}

.loading-container {

    margin-top: 60px;
}

.loading-bar {

    height: 2px;

    background: #202020;

    overflow: hidden;
}

#loading-progress {

    width: 0%;

    height: 100%;

    background: white;

    transition: width 0.1s linear;
}

#loading-text {

    margin-top: 12px;

    font-family: "Space Mono", monospace;

    font-size: 9px;

    color: var(--muted);

    letter-spacing: 0.1em;
}


/* =====================================================
   GRAIN
===================================================== */

.grain {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 100;

    opacity: 0.035;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.5'/%3E%3C/svg%3E");
}


/* =====================================================
   BACKGROUND
===================================================== */

.background-glow {

    position: fixed;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(150px);

    opacity: 0.06;

    pointer-events: none;

    z-index: -1;
}

.glow-one {

    top: -200px;
    left: -150px;

    background: white;
}

.glow-two {

    right: -150px;
    bottom: -200px;

    background: #777;
}


/* =====================================================
   HEADER
===================================================== */

.site-header {

    width: min(1400px, 92%);

    margin: auto;

    padding: 40px 0 25px;

    border-bottom: 1px solid var(--border);

    display: flex;

    justify-content: space-between;

    align-items: flex-start;
}

.eyebrow {

    font-family: "Space Mono", monospace;

    font-size: 9px;

    color: var(--muted);

    letter-spacing: 0.25em;
}

h1 {

    margin-top: 6px;

    font-size: clamp(45px, 6vw, 82px);

    font-weight: 900;

    letter-spacing: -0.075em;

    line-height: 0.9;

    cursor: pointer;

    user-select: none;
}

h1 span {

    font-size: 0.25em;

    vertical-align: top;

    letter-spacing: 0;
}

.header-right {

    display: flex;

    align-items: flex-start;

    gap: 20px;
}

.header-badge {

    font-family: "Space Mono", monospace;

    font-size: 9px;

    color: var(--muted);

    line-height: 1.5;

    text-align: right;

    letter-spacing: 0.12em;
}

.header-badge strong {

    color: white;
}

.icon-button {

    width: 35px;
    height: 35px;

    border: 1px solid var(--border);

    background: transparent;

    color: white;

    cursor: pointer;

    font-size: 13px;
}


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

main {

    width: min(1400px, 92%);

    margin: auto;
}


/* =====================================================
   INTRO
===================================================== */

.intro {

    padding: 80px 0 45px;
}

.kicker {

    font-family: "Space Mono", monospace;

    font-size: 9px;

    color: var(--muted);

    letter-spacing: 0.25em;

    margin-bottom: 15px;
}

.intro h2 {

    font-size: clamp(38px, 5vw, 68px);

    letter-spacing: -0.06em;

    line-height: 1;
}

.subtitle {

    margin-top: 18px;

    color: var(--muted);

    font-size: 15px;
}


/* =====================================================
   STATUS BAR
===================================================== */

.status-bar {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    margin-bottom: 35px;
}

.status-bar div {

    padding: 18px 20px;

    border-right: 1px solid var(--border);
}

.status-bar div:last-child {

    border-right: none;
}

.status-bar span {

    display: block;

    font-family: "Space Mono", monospace;

    font-size: 8px;

    color: var(--muted);

    letter-spacing: 0.15em;

    margin-bottom: 7px;
}

.status-bar strong {

    font-size: 12px;
}

.status-online {

    color: #7cff7c;
}


/* =====================================================
   GALLERY
===================================================== */

.photo-stage {

    display: grid;

    grid-template-columns: 65px 1fr 65px;

    gap: 15px;

    align-items: center;
}

.image-wrapper {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #050505;

    border: 1px solid var(--border);
}

.image-wrapper img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    opacity: 1;

    transform: scale(1);

    transition:
        opacity 0.35s ease,
        transform 0.5s ease;
}

.image-wrapper img.fade {

    opacity: 0;

    transform: scale(1.025);
}


/* Scanline */

.scanline {

    position: absolute;

    left: 0;
    right: 0;

    height: 1px;

    top: 0;

    background: rgba(255,255,255,0.08);

    animation: scan 7s linear infinite;

    pointer-events: none;
}

@keyframes scan {

    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}


/* Overlay */

.image-overlay {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 20px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,0.85)
        );
}

.document-code {

    font-family: "Space Mono", monospace;

    font-size: 10px;

    letter-spacing: 0.12em;
}

#fullscreen-button {

    width: 38px;
    height: 38px;

    border: 1px solid rgba(255,255,255,0.3);

    background: rgba(0,0,0,0.5);

    color: white;

    cursor: pointer;

    font-size: 20px;
}


/* Navigation */

.nav-button {

    width: 65px;
    height: 65px;

    border: 1px solid var(--border);

    background: var(--surface);

    color: white;

    font-size: 22px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.nav-button:hover {

    transform: scale(1.05);

    background: var(--surface-light);
}

.nav-button:active {

    transform: scale(0.93);
}


/* =====================================================
   DOCUMENT INFO
===================================================== */

.document-info {

    margin-top: 22px;

    display: flex;

    justify-content: space-between;

    gap: 30px;

    align-items: flex-end;
}

.caption-label {

    font-family: "Space Mono", monospace;

    font-size: 8px;

    color: var(--muted);

    letter-spacing: 0.2em;
}

.document-title h3 {

    margin-top: 7px;

    font-size: 19px;

    font-weight: 600;
}

.metadata {

    display: flex;

    gap: 35px;
}

.metadata span {

    display: block;

    font-family: "Space Mono", monospace;

    font-size: 8px;

    color: var(--muted);

    margin-bottom: 6px;
}

.metadata strong {

    font-size: 10px;
}


/* =====================================================
   PROGRESS
===================================================== */

.progress {

    width: 100%;

    height: 2px;

    background: #202020;

    margin-top: 22px;
}

#progress-bar {

    width: 12.5%;

    height: 100%;

    background: white;

    transition: width 0.3s ease;
}


/* =====================================================
   CONTROLS
===================================================== */

.controls {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 14px;
}

.control-button {

    border: 1px solid var(--border);

    background: transparent;

    color: white;

    padding: 10px 14px;

    font-family: "Space Mono", monospace;

    font-size: 8px;

    cursor: pointer;

    letter-spacing: 0.1em;
}

.control-button.active {

    background: white;

    color: black;
}

#photo-number {

    font-family: "Space Mono", monospace;

    font-size: 9px;

    color: var(--muted);
}

.keyboard-help {

    font-family: "Space Mono", monospace;

    font-size: 8px;

    color: #555;
}


/* =====================================================
   THUMBNAILS
===================================================== */

.thumbnails {

    display: grid;

    grid-template-columns: repeat(8, 1fr);

    gap: 8px;

    margin-top: 18px;
}

.thumbnail {

    aspect-ratio: 1.5 / 1;

    overflow: hidden;

    border: 1px solid transparent;

    background: none;

    padding: 0;

    cursor: pointer;

    opacity: 0.35;

    transition:
        opacity 0.2s ease,
        border-color 0.2s ease;
}

.thumbnail:hover {

    opacity: 0.8;
}

.thumbnail.active {

    opacity: 1;

    border-color: white;
}

.thumbnail img {

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =====================================================
   STATISTICS
===================================================== */

.statistics {

    margin: 110px 0;
}

.section-heading {

    margin-bottom: 30px;
}

.section-heading span,
.section-label {

    font-family: "Space Mono", monospace;

    font-size: 9px;

    color: var(--muted);

    letter-spacing: 0.2em;
}

.section-heading h2 {

    margin-top: 8px;

    font-size: 34px;

    letter-spacing: -0.04em;
}

.stats-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}

.stat-card {

    padding: 30px;

    border-right: 1px solid var(--border);
}

.stat-card:last-child {

    border-right: none;
}

.stat-card span {

    display: block;

    font-family: "Space Mono", monospace;

    font-size: 8px;

    color: var(--muted);

    letter-spacing: 0.15em;

    margin-bottom: 15px;
}

.stat-card strong {

    display: block;

    font-size: 19px;

    letter-spacing: -0.03em;
}

.stat-card small {

    display: block;

    margin-top: 10px;

    color: #555;

    font-family: "Space Mono", monospace;

    font-size: 8px;
}


/* =====================================================
   DOSSIER
===================================================== */

.dossier {

    border: 1px solid var(--border);

    background: rgba(255,255,255,0.015);

    margin-bottom: 110px;
}

.dossier-header {

    display: flex;

    justify-content: space-between;

    padding: 15px 20px;

    border-bottom: 1px solid var(--border);

    font-family: "Space Mono", monospace;

    font-size: 8px;

    color: var(--muted);

    letter-spacing: 0.15em;
}

.redacted {

    color: #444;
}

.dossier-content {

    display: grid;

    grid-template-columns: 180px 1fr;

    gap: 50px;

    padding: 55px;
}

.stamp {

    align-self: start;

    display: inline-block;

    border: 2px solid var(--red);

    color: var(--red);

    padding: 10px 14px;

    font-family: "Space Mono", monospace;

    font-weight: 700;

    font-size: 12px;

    letter-spacing: 0.15em;

    transform: rotate(-8deg);
}

.dossier-content h2 {

    font-size: 36px;

    letter-spacing: -0.05em;

    margin-bottom: 20px;
}

.dossier-content p {

    max-width: 700px;

    color: var(--muted);

    line-height: 1.7;

    font-size: 14px;

    margin-bottom: 12px;
}


/* =====================================================
   EVIDENCE
===================================================== */

.evidence {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 40px;

    padding: 70px 0;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}

.evidence h2 {

    margin-top: 10px;

    font-size: clamp(30px, 5vw, 55px);

    letter-spacing: -0.06em;
}

.evidence p {

    margin-top: 15px;

    color: var(--muted);

    font-size: 13px;
}

#evidence-button {

    flex-shrink: 0;

    border: 1px solid white;

    background: white;

    color: black;

    padding: 15px 20px;

    font-family: "Space Mono", monospace;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

#evidence-button:hover {

    background: transparent;

    color: white;
}


/* =====================================================
   FOOTER
===================================================== */

footer {

    width: min(1400px, 92%);

    margin: auto;

    padding: 30px 0 45px;

    display: flex;

    justify-content: space-between;

    color: #555;

    font-family: "Space Mono", monospace;

    font-size: 8px;
}

.footer-secret {

    opacity: 0.5;
}


/* =====================================================
   TOAST
===================================================== */

.toast {

    position: fixed;

    left: 50%;
    bottom: 30px;

    transform:
        translate(-50%, 20px);

    background: white;

    color: black;

    padding: 13px 20px;

    font-size: 11px;

    font-weight: 700;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

    z-index: 500;
}

.toast.show {

    opacity: 1;

    transform:
        translate(-50%, 0);
}


/* =====================================================
   MODAL
===================================================== */

.modal {

    position: fixed;

    inset: 0;

    z-index: 9000;

    background: rgba(0,0,0,0.85);

    backdrop-filter: blur(12px);

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.modal.visible {

    opacity: 1;

    visibility: visible;
}

.modal-box {

    position: relative;

    width: min(550px, 100%);

    background: #101010;

    border: 1px solid var(--border);

    padding: 45px;
}

.modal-close {

    position: absolute;

    top: 15px;
    right: 15px;

    width: 30px;
    height: 30px;

    border: 1px solid var(--border);

    background: transparent;

    color: white;

    font-size: 20px;

    cursor: pointer;
}

.modal-box h2 {

    margin-top: 15px;

    font-size: 34px;

    letter-spacing: -0.05em;
}

.modal-box p {

    margin-top: 15px;

    color: var(--muted);

    line-height: 1.6;

    font-size: 14px;
}

.modal-code {

    margin-top: 35px;

    padding-top: 15px;

    border-top: 1px solid var(--border);

    font-family: "Space Mono", monospace;

    font-size: 9px;

    color: #555;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 800px) {

    .site-header {

        padding-top: 25px;
    }

    .intro {

        padding: 55px 0 35px;
    }

    .status-bar {

        grid-template-columns: repeat(2, 1fr);
    }

    .status-bar div:nth-child(2) {

        border-right: none;
    }

    .status-bar div:nth-child(-n+2) {

        border-bottom: 1px solid var(--border);
    }

    .photo-stage {

        grid-template-columns: 42px 1fr 42px;

        gap: 7px;
    }

    .nav-button {

        width: 42px;
        height: 42px;

        font-size: 16px;
    }

    .image-wrapper {

        aspect-ratio: 4 / 3;
    }

    .document-info {

        flex-direction: column;

        align-items: flex-start;
    }

    .metadata {

        width: 100%;

        justify-content: space-between;

        gap: 10px;
    }

    .keyboard-help {

        display: none;
    }

    .thumbnails {

        grid-template-columns: repeat(4, 1fr);
    }

    .stats-grid {

        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card:nth-child(2) {

        border-right: none;
    }

    .stat-card:nth-child(-n+2) {

        border-bottom: 1px solid var(--border);
    }

    .dossier-content {

        grid-template-columns: 1fr;

        padding: 30px;
    }

    .evidence {

        flex-direction: column;

        align-items: flex-start;
    }

    #evidence-button {

        width: 100%;
    }

    footer {

        flex-direction: column;

        gap: 10px;
    }
}

@media (max-width: 450px) {

    .header-badge {

        display: none;
    }

    .metadata {

        flex-wrap: wrap;
    }

    .metadata > div {

        min-width: 30%;
    }

    .dossier-content h2 {

        font-size: 28px;
    }

    .modal-box {

        padding: 30px;
    }
}
