/* pmt.report — Declassified Intelligence Aesthetic */

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

:root {
    --obsidian: #0d1117;
    --charcoal-ink: #12161c;
    --fog-wire: #8c9eb4;
    --silver-ash: #a0adb8;
    --pale-steel: #c8d3de;
    --cold-white: #e4eaf0;
    --muted-cyan: #5b8fa8;
    --amber-trace: #c9944a;
    --dark-mid: #1a1f26;
    --dark-deep: #1e2430;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--obsidian);
    color: var(--silver-ash);
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.005em;
    overflow-x: hidden;
}

/* === HUD FRAME ELEMENTS === */

.hud-corner {
    position: fixed;
    width: 20px;
    height: 20px;
    z-index: 1000;
    pointer-events: none;
}

.hud-corner--tl {
    top: 16px;
    left: 16px;
    border-top: 1px solid rgba(91, 143, 168, 0.3);
    border-left: 1px solid rgba(91, 143, 168, 0.3);
}

.hud-corner--tr {
    top: 16px;
    right: 16px;
    border-top: 1px solid rgba(91, 143, 168, 0.3);
    border-right: 1px solid rgba(91, 143, 168, 0.3);
}

.hud-corner--bl {
    bottom: 16px;
    left: 16px;
    border-bottom: 1px solid rgba(91, 143, 168, 0.3);
    border-left: 1px solid rgba(91, 143, 168, 0.3);
}

.hud-corner--br {
    bottom: 16px;
    right: 16px;
    border-bottom: 1px solid rgba(91, 143, 168, 0.3);
    border-right: 1px solid rgba(91, 143, 168, 0.3);
}

.hud-scanline {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91, 143, 168, 0.12), transparent);
    z-index: 999;
    pointer-events: none;
}

.hud-coordinates {
    position: fixed;
    bottom: 20px;
    left: 48px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.7rem, 0.85vw, 0.82rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-cyan);
    z-index: 1000;
    pointer-events: none;
}

/* === GRID LAYER === */

.grid-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.grid-layer canvas {
    width: 100%;
    height: 100%;
}

/* === SECTIONS === */

.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    z-index: 10;
}

/* === ARCHIVE BACKGROUNDS === */

.archive-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
    mix-blend-mode: luminosity;
}

.archive-bg--01 {
    opacity: 0.3;
    background:
        repeating-conic-gradient(rgba(140, 158, 180, 0.03) 0% 25%, transparent 0% 50%) 0 0 / 3px 3px,
        radial-gradient(ellipse at 20% 30%, rgba(26, 31, 38, 0.8), transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(30, 36, 48, 0.6), transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(13, 17, 23, 0.9), transparent 70%);
}

.archive-bg--02 {
    background:
        repeating-conic-gradient(rgba(140, 158, 180, 0.03) 0% 25%, transparent 0% 50%) 0 0 / 3px 3px,
        radial-gradient(ellipse at 60% 20%, rgba(26, 31, 38, 0.7), transparent 55%),
        radial-gradient(ellipse at 30% 70%, rgba(30, 36, 48, 0.5), transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(13, 17, 23, 0.8), transparent 65%);
}

.archive-bg--03 {
    background:
        repeating-conic-gradient(rgba(140, 158, 180, 0.03) 0% 25%, transparent 0% 50%) 0 0 / 3px 3px,
        radial-gradient(ellipse at 40% 40%, rgba(26, 31, 38, 0.6), transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(30, 36, 48, 0.7), transparent 45%),
        radial-gradient(ellipse at 20% 80%, rgba(13, 17, 23, 0.85), transparent 60%);
}

.archive-bg--04 {
    opacity: 0.35;
    background:
        repeating-conic-gradient(rgba(140, 158, 180, 0.04) 0% 25%, transparent 0% 50%) 0 0 / 3px 3px,
        radial-gradient(ellipse at 50% 50%, rgba(26, 31, 38, 0.5), transparent 60%),
        radial-gradient(ellipse at 10% 20%, rgba(30, 36, 48, 0.6), transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(13, 17, 23, 0.7), transparent 55%);
}

.archive-bg--05 {
    opacity: 0.15;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(13, 17, 23, 0.95), var(--obsidian) 70%);
    transition: opacity 1s ease;
}

/* === SECTION MARKERS === */

.section-marker {
    position: absolute;
    top: 0;
    left: 8vw;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
}

.section-marker__label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.7rem, 0.85vw, 0.82rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-cyan);
}

.section-marker__crystal {
    width: 12px;
    height: 12px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(91, 143, 168, 0.2);
    display: inline-block;
}

/* === OVERLAY PANELS === */

.overlay-panel {
    background: rgba(18, 22, 28, 0.82);
    border: 1px solid rgba(140, 160, 180, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 40px 48px;
    max-width: 680px;
    margin-left: 8vw;
    position: relative;
    clip-path: polygon(12px 0%, 100% 0%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0% 100%, 0% 12px);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.overlay-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.overlay-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 1px;
    background: var(--muted-cyan);
    transform: rotate(45deg);
    transform-origin: 0 0;
}

.overlay-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 1px;
    background: var(--muted-cyan);
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.overlay-panel:hover {
    border-color: rgba(140, 160, 180, 0.32);
}

.overlay-panel p {
    margin-bottom: 1.2em;
}

.overlay-panel p:last-child {
    margin-bottom: 0;
}

/* === HERO === */

.overlay-panel--hero {
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    clip-path: none;
    padding: 0 48px 0 0;
}

.overlay-panel--hero::before,
.overlay-panel--hero::after {
    display: none;
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 6vw, 5.5rem);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--pale-steel);
    line-height: 1.1;
    margin-bottom: 0.4em;
}

.hero-subtitle {
    font-family: 'Source Serif 4', Georgia, serif;
    color: var(--silver-ash);
    max-width: 560px;
}

/* === SECTION 02 — SCOPE === */

.section--02 {
    position: relative;
}

.crystal-cluster {
    position: absolute;
    right: 10vw;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    animation: crystal-rotate 45s linear infinite;
}

.crystal-hex {
    position: absolute;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(91, 143, 168, 0.08);
    border: 1px solid rgba(91, 143, 168, 0.15);
}

.crystal-hex--1 {
    width: 48px;
    height: 48px;
    top: 10px;
    left: 20px;
    opacity: 0.2;
}

.crystal-hex--2 {
    width: 32px;
    height: 32px;
    top: 50px;
    left: 60px;
    opacity: 0.15;
}

.crystal-hex--3 {
    width: 24px;
    height: 24px;
    top: 20px;
    left: 70px;
    opacity: 0.1;
}

.crystal-hex--4 {
    width: 40px;
    height: 40px;
    top: 60px;
    left: 30px;
    opacity: 0.12;
}

@keyframes crystal-rotate {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

/* === SECTION 03 — SIGNAL ANALYSIS === */

.overlay-panel--back {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    margin-bottom: -60px;
    z-index: 1;
    filter: brightness(0.7);
}

.overlay-panel--back.visible {
    opacity: 0.7;
    transform: translateY(0) scale(0.96);
}

.overlay-panel--front {
    z-index: 2;
    margin-left: 12vw;
}

.panel-classification {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.7rem, 0.85vw, 0.82rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-cyan);
    margin-bottom: 1.5em;
    padding-bottom: 0.8em;
    border-bottom: 1px dashed rgba(140, 160, 180, 0.25);
}

/* === SECTION 04 — FIELD EVIDENCE === */

.overlay-panel--evidence {
    max-width: 560px;
    padding: 28px 36px;
    margin-bottom: 20px;
}

.overlay-panel--ev1 { margin-left: 8vw; }
.overlay-panel--ev2 { margin-left: 12vw; }
.overlay-panel--ev3 { margin-left: 6vw; }
.overlay-panel--ev4 { margin-left: 10vw; }

/* === SECTION 05 — ASSESSMENT === */

.overlay-panel--assessment {
    max-width: 100%;
    margin-left: 8vw;
    margin-right: 8vw;
}

.file-stamp {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.7rem, 0.85vw, 0.82rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-cyan);
    text-align: center;
    margin-top: 60px;
    opacity: 0.8;
}

/* === AMBIENT GRADIENT === */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 40%, rgba(91, 143, 168, 0.04), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* === GRID BACKGROUND (CSS fallback) === */

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(0deg, rgba(140, 158, 180, 0.06) 0px, transparent 1px, transparent 64px),
        repeating-linear-gradient(90deg, rgba(140, 158, 180, 0.06) 0px, transparent 1px, transparent 64px);
    pointer-events: none;
    z-index: 1;
}

/* === NODE PULSE ANIMATION === */

@keyframes node-pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.4; }
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
    .hud-corner { display: none; }
    .crystal-cluster { display: none; }

    .overlay-panel {
        margin-left: 12px;
        margin-right: 12px;
        max-width: 100%;
        padding: 24px 20px;
    }

    .overlay-panel--hero {
        padding: 0 12px;
    }

    .overlay-panel--front {
        margin-left: 12px;
    }

    .overlay-panel--ev1,
    .overlay-panel--ev2,
    .overlay-panel--ev3,
    .overlay-panel--ev4 {
        margin-left: 12px;
    }

    .overlay-panel--assessment {
        margin-left: 12px;
        margin-right: 12px;
    }

    .section-marker {
        left: 12px;
    }

    .hud-coordinates {
        left: 12px;
        bottom: 12px;
    }
}
