/* 
 * dystopiameaning.com — Design System
 * "Obsidian Spotlight" refined layout with high-fidelity depth & layering.
 */

:root {
    /* Color Palette */
    --bg-black: #08090A;
    --bg-dark: #0D0F11;
    --bg-panel: linear-gradient(135deg, rgba(15, 18, 21, 0.975) 0%, rgba(8, 10, 12, 0.99) 100%);
    
    --color-cyan: #7ED6E6;
    --color-cyan-glow: rgba(126, 214, 230, 0.3);
    
    --color-crimson: #E11D2A;
    --color-crimson-glow: rgba(225, 29, 42, 0.4);
    
    --color-green: #0B5D45;
    --color-violet: #7B4DFF;
    
    --text-primary: #EEF2F7;
    --text-secondary: #CFD5DE;
    --text-muted: #767D85;   /* readable fine print — passes WCAG AA on near-black */
    --text-faint: #3D444C;   /* decorative only — never used for meaningful text */
    
    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-typewriter: 'Courier Prime', monospace;
    --font-sans: 'Inter', sans-serif;
    
    /* Easing */
    --ease-spring: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1); /* Sleek Out Expo */
}

/* Reset and Core Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-x: clip;
    min-height: 100vh;
}

/* Animated film grain background noise */
body::before {
    content: "";
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 9996;
    animation: noise-flicker 0.35s steps(4) infinite;
}

@keyframes noise-flicker {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-1%, -1%); }
    20% { transform: translate(-2%, 1%); }
    30% { transform: translate(1%, -2%); }
    40% { transform: translate(-1%, 2%); }
    50% { transform: translate(-2%, 1%); }
    60% { transform: translate(1%, 2%); }
    70% { transform: translate(2%, -2%); }
    80% { transform: translate(1%, 1%); }
    90% { transform: translate(-1%, 1%); }
    100% { transform: translate(0, 0); }
}

/* 3D PARALLAX BACKGROUND PLANE (Coordinate Grid) */
.bg-grid {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: 80px 80px;
    background-image: 
        linear-gradient(to right, rgba(126, 214, 230, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(126, 214, 230, 0.015) 1px, transparent 1px);
    z-index: 1;
    pointer-events: none;
    transform: translateY(calc(var(--scroll-y, 0) * -0.12px));
    transition: transform 0.1s ease-out;
}

/* BACKGROUND FLOATING HUD TELEMETRY */
.hud-item {
    position: fixed;
    color: rgba(126, 214, 230, 0.05);
    font-size: 0.65rem;
    pointer-events: none;
    z-index: 2;
    letter-spacing: 2px;
}

.floating-hud-1 {
    top: 15%;
    left: 8%;
    animation: float-hud-1 12s infinite ease-in-out alternate;
}

.floating-hud-2 {
    bottom: 25%;
    right: 6%;
    animation: float-hud-2 15s infinite ease-in-out alternate;
}

.floating-hud-3 {
    top: 45%;
    right: 12%;
    animation: float-hud-1 18s infinite ease-in-out alternate;
}

@keyframes float-hud-1 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
    50% { transform: translate(20px, -15px) rotate(1deg); opacity: 0.6; }
    100% { transform: translate(-10px, 25px) rotate(-1deg); opacity: 0.3; }
}

@keyframes float-hud-2 {
    0% { transform: translate(0, 0); opacity: 0.4; }
    50% { transform: translate(-25px, 20px); opacity: 0.7; }
    100% { transform: translate(15px, -10px); opacity: 0.4; }
}

/* Hide scrollbar for immersive feel, customize track */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-black);
}
::-webkit-scrollbar-thumb {
    background: rgba(126, 214, 230, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

/* Utility Elements */
.text-cyan { color: var(--color-cyan); text-shadow: 0 0 8px var(--color-cyan-glow); }
.text-crimson { color: var(--color-crimson); text-shadow: 0 0 8px var(--color-crimson-glow); }
.text-gray { color: var(--text-muted); }
.monospace-text { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 1px; }
.font-typewriter { font-family: var(--font-typewriter); }
.hidden { display: none !important; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(126, 214, 230, 0.3);
    border-radius: 4px;
    background: transparent;
    color: var(--color-cyan);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: 0 0 10px rgba(126, 214, 230, 0.02);
}

.btn:hover {
    border-color: var(--color-cyan);
    background: var(--color-cyan);
    color: var(--bg-black);
    box-shadow: 0 0 15px var(--color-cyan-glow);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    box-shadow: none;
}

.btn-crimson {
    border-color: rgba(225, 29, 42, 0.4);
    color: var(--color-crimson);
}

.btn-crimson:hover {
    border-color: var(--color-crimson);
    background: var(--color-crimson);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--color-crimson-glow);
}

.btn-small {
    padding: 0.35rem 0.8rem;
    font-size: 0.65rem;
}

.btn-icon {
    border: none;
    box-shadow: none;
    text-shadow: none;
}

/* Glassmorphic Panel Base - Polished spec top edge, inner shade & Dynamic Shadows */
.glass-panel {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid rgba(126, 214, 230, 0.06);
    border-radius: 12px;
    /* cursor-reactive drop shadow vectors */
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.04),
                calc(var(--shadow-dx, 0) * -1px) calc(var(--shadow-dy, 0) * -1px) 25px 0 rgba(0, 0, 0, 0.7),
                calc(var(--shadow-dx, 0) * -2px) calc(var(--shadow-dy, 0) * -2px) 60px 0 rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 2.2rem;
    z-index: 10;
    transition: border-color 0.45s var(--ease-smooth), box-shadow 0.15s ease-out, transform 0.1s ease-out;
}

.glass-panel:hover {
    border-color: rgba(126, 214, 230, 0.16);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
                calc(var(--shadow-dx, 0) * -1.5px) calc(var(--shadow-dy, 0) * -1.5px) 30px 0 rgba(126, 214, 230, 0.015),
                calc(var(--shadow-dx, 0) * -3px) calc(var(--shadow-dy, 0) * -3px) 70px 0 rgba(0, 0, 0, 0.95);
}

/* Specular Glare Reflection Layer */
.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: radial-gradient(
        220px circle at var(--glare-x, 50%) var(--glare-y, 50%),
        rgba(255, 255, 255, 0.035) 0%,
        rgba(255, 255, 255, 0) 80%
    );
    pointer-events: none;
    z-index: 11;
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
}

.glass-panel:hover .card-glare {
    opacity: 1;
}

/* Grid-Breaking Cybernetic Corner Brackets */
.cyber-bracket {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(126, 214, 230, 0.15);
    pointer-events: none;
    z-index: 12;
    transition: border-color 0.3s ease;
}

.glass-panel:hover .cyber-bracket {
    border-color: var(--color-cyan);
}

.bracket-tl { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.bracket-tr { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.bracket-bl { bottom: -4px; left: -4px; border-right: none; border-top: none; }
.bracket-br { bottom: -4px; right: -4px; border-left: none; border-top: none; }

/* CRT SCREEN EFFECTS */
#crt-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 2.5rem;
    overflow: hidden;
    z-index: 5;
}

/* Scanlines overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.28) 50%
    );
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
}

/* Interactive Spotlight Glow */
.screen-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        700px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
        rgba(126, 214, 230, 0.038) 0%,
        rgba(0, 0, 0, 0) 80%
    );
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.95);
    pointer-events: none;
    z-index: 9998;
}

/* Ambient phosphor flicker */
@keyframes crt-flicker-anim {
    0% { opacity: 0.99; }
    50% { opacity: 1; }
    100% { opacity: 0.993; }
}

.crt-flicker {
    animation: crt-flicker-anim 0.2s infinite;
}

/* PRELOADER SCREEN */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-black);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.preloader-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(225, 29, 42, 0.04) 0%, rgba(0, 0, 0, 0) 80%);
    pointer-events: none;
}

.preloader-content {
    width: 100%;
    max-width: 550px;
    border: 1px solid rgba(225, 29, 42, 0.2);
    border-radius: 6px;
    background: var(--bg-dark);
    padding: 1.8rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(225, 29, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preloader-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px dashed rgba(225, 29, 42, 0.2);
    padding-bottom: 0.75rem;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-crimson);
}

.warning-blink {
    animation: warning-blink-anim 1.2s infinite alternate;
}

@keyframes warning-blink-anim {
    0% { opacity: 0.3; }
    100% { opacity: 1; box-shadow: 0 0 8px var(--color-crimson); }
}

.system-title {
    font-family: var(--font-mono);
    color: var(--color-crimson);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

#preloader-log {
    height: 160px;
    overflow-y: auto;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

#preloader-log p {
    font-size: 0.75rem;
    white-space: pre-wrap;
}

.preloader-actions {
    display: flex;
    justify-content: flex-end;
    border-top: 1px dashed rgba(225, 29, 42, 0.2);
    padding-top: 0.75rem;
}

/* HEADER STYLE */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.header-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.threat-level-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    background: rgba(225, 29, 42, 0.05);
    border: 1px solid rgba(225, 29, 42, 0.3);
    border-radius: 4px;
    color: var(--color-crimson);
    letter-spacing: 2px;
    transition: all 0.4s var(--ease-smooth);
}

.system-code {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.brand-container {
    text-align: center;
    flex-grow: 1;
}

.logo-text {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 6.2vw, 2.8rem);
    font-weight: 900;
    letter-spacing: clamp(1px, 1.2vw, 12px);
    color: var(--text-primary);
    position: relative;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    max-width: 100%;
    overflow-wrap: anywhere;
}

.tagline {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.controls-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* HERO SECTION / PRIMARY DEFINITION */
.intro-section {
    margin-bottom: 3rem;
}

.text-card {
    border-left: 2px solid var(--color-cyan);
}

.section-title {
    font-size: 0.95rem;
    color: var(--color-cyan);
    margin-bottom: 1rem;
    letter-spacing: 3px;
    font-weight: 700;
}

.primary-desc {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.8;
}

.warning-text {
    margin-top: 1rem;
    color: var(--color-crimson);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* THE DYSTOPIA ENGINE (Sleek Sliders Layout) */
.engine-section {
    margin-bottom: 3rem;
}

.engine-card {
    border-color: rgba(126, 214, 230, 0.06);
}

.engine-header {
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

.sliders-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.slider-tile {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: rgba(10, 10, 11, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3);
}

.slider-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-meta label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.slider-val {
    font-size: 0.8rem;
    font-weight: 700;
}

.slider-spec {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* MINIMALIST SLEEK SLIDERS */
.input-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
    border-radius: 1px;
}

.input-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    cursor: pointer;
}

.input-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 18px;
    border-radius: 4px;
    background: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan);
    cursor: pointer;
    margin-top: -8px;
    transition: transform 0.15s var(--ease-spring), background 0.3s ease;
}

.input-slider::-webkit-slider-thumb:hover {
    transform: scaleY(1.25) scaleX(1.1);
}

/* BENTO GRID */
.grid-section {
    margin-bottom: 3rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.8rem; /* slightly larger gap for layout presence */
}

.bento-large {
    grid-column: span 5;
}

.bento-wide {
    grid-column: span 7;
}

.bento-full {
    grid-column: span 12;
}

.tile-title {
    font-size: 0.9rem;
    color: var(--color-cyan);
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
    border-bottom: 1px dashed rgba(126, 214, 230, 0.1);
    padding-bottom: 0.5rem;
}

.tile-intro {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
}

/* CHARACTERISTIC TILE */
.characteristic-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.characteristic-list li {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.char-icon {
    font-size: 1.1rem;
    background: rgba(126, 214, 230, 0.04);
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(126, 214, 230, 0.08);
}

.char-info h4 {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.char-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* LITERATURE TILE & REDACTION TORN PAPER DECRYPT */
.literature-card {
    display: flex;
    flex-direction: column;
}

/* Red restricted stamp (Grid-breaking overlap) */
.dossier-stamp {
    position: absolute;
    top: -12px;
    right: 25px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-crimson);
    border: 1px solid var(--color-crimson);
    padding: 0.2rem 0.6rem;
    background: #08090a;
    border-radius: 3px;
    transform: rotate(3deg);
    box-shadow: 0 0 10px rgba(225,29,42,0.25);
    z-index: 15;
    pointer-events: none;
}

.dossiers-scroll {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.literature-item {
    background: rgba(10, 10, 11, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.lit-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lit-year {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.lit-title {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    flex-grow: 1;
}

.lit-author {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.lit-theme {
    font-size: 0.65rem;
    letter-spacing: 1px;
}

/* REDACTION SYSTEM (Torn Paper Design) */
.redaction-box {
    position: relative;
    background: #030304;
    border-radius: 4px;
    padding: 0.9rem 1.2rem;
    overflow: hidden;
    cursor: pointer;
    min-height: 52px;
}

.redact-overlay {
    position: absolute;
    top: 0;
    left: -2%;
    width: 105%;
    height: 100%;
    background-color: #030304;
    z-index: 10;
    clip-path: polygon(
        0% 0%, 100% 0%, 
        99% 12%, 100% 25%, 98% 38%, 100% 50%, 99% 65%, 100% 78%, 98% 90%, 100% 100%, 
        0% 100%, 
        1% 88%, 0% 75%, 2% 62%, 0% 50%, 1% 38%, 0% 25%, 2% 12%
    );
    transition: transform 0.65s var(--ease-smooth);
}

.redaction-box:hover .redact-overlay,
.redaction-box.revealed .redact-overlay {
    transform: translateX(102%);
}

.decrypted-text {
    font-size: 0.85rem;
    color: var(--color-cyan);
    text-shadow: 0 0 5px var(--color-cyan-glow);
    font-style: italic;
    line-height: 1.5;
}

/* TERMINAL FAQ INTERACTIVE CARD */
.terminal-card {
    border-color: rgba(126, 214, 230, 0.06);
}

.terminal-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    min-height: 280px;
}

.terminal-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    padding-right: 1rem;
}

.query-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.query-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s var(--ease-smooth);
}

.query-btn:hover {
    color: var(--color-cyan);
    background: rgba(126, 214, 230, 0.03);
}

.query-btn.active {
    color: var(--color-cyan);
    background: rgba(126, 214, 230, 0.06);
    border-color: rgba(126, 214, 230, 0.1);
    text-shadow: 0 0 4px var(--color-cyan-glow);
}

.terminal-display {
    display: flex;
    flex-direction: column;
    background: #040506;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.terminal-header-bar {
    background: #0c0d10;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.term-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--text-faint);
}

.term-title {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
    flex-grow: 1;
}

.terminal-output-viewport {
    padding: 1.2rem;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 250px;
}

#faq-output {
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-primary);
    font-size: 0.75rem;
    line-height: 1.6;
}

/* Call to Action Card */
.cta-section {
    margin-bottom: 4rem;
}

.border-crimson {
    border-color: rgba(225, 29, 42, 0.12);
}

.border-crimson:hover {
    border-color: rgba(225, 29, 42, 0.25);
}

.cta-card {
    position: relative;
    overflow: hidden;
}

.cta-glow-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(225, 29, 42, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.security-stamp {
    font-size: 0.6rem;
    border: 1px solid rgba(225, 29, 42, 0.4);
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.cta-text h2 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.cta-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cta-action-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cta-form {
    display: flex;
    gap: 0.5rem;
}

.input-text {
    flex-grow: 1;
    background: rgba(10, 10, 11, 0.8);
    border: 1px solid rgba(225, 29, 42, 0.25);
    border-radius: 4px;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-text:focus {
    border-color: var(--color-crimson);
    box-shadow: 0 0 10px var(--color-crimson-glow);
}

.form-disclaimer {
    font-size: 0.55rem;
    text-align: right;
}

/* FOOTER SECTION */
.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 4rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.logo-text-small {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.footer-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    max-width: 450px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-header {
    font-size: 0.7rem;
    color: var(--color-cyan);
    letter-spacing: 2px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-links a {
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hover-cyan:hover {
    color: var(--color-cyan);
    text-shadow: 0 0 4px var(--color-cyan-glow);
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.03);
    padding-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.6rem;
    letter-spacing: 1px;
}

/* THREAT SHADER ANIMS (JS CONTROLLED GLITCH) */
.threat-extreme {
    animation: screen-shake 0.18s infinite;
}

/* Cathode screen Y-axis jitters */
.terminal-jitter {
    animation: screen-shake 0.15s infinite, screen-jitter 0.8s infinite steps(2);
}

.threat-extreme::before,
.terminal-jitter::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(225, 29, 42, 0.035);
    z-index: 9997;
    pointer-events: none;
}

@keyframes screen-shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-2px, 0px) rotate(1deg); }
    30% { transform: translate(0px, 1px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 1px) rotate(-1deg); }
    60% { transform: translate(-2px, 1px) rotate(0deg); }
    70% { transform: translate(1px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 1px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@keyframes screen-jitter {
    0% { transform: translateY(0); filter: hue-rotate(0deg); }
    10% { transform: translateY(1px); }
    20% { transform: translateY(-1px); filter: hue-rotate(5deg); }
    40% { transform: translateY(2px); }
    50% { transform: translateY(0); filter: hue-rotate(0deg); }
    70% { transform: translateY(-2px); }
    90% { transform: translateY(1px); }
    100% { transform: translateY(0); }
}

/* TEXT GLITCH FILTER SYSTEM */
.glitch-effect {
    position: relative;
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0f11;
}

.glitch-effect::before {
    left: 2px;
    text-shadow: -2px 0 var(--color-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch-effect::after {
    left: -2px;
    text-shadow: -2px 0 var(--color-crimson);
    clip: rect(85px, 450px, 140px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 66px, 0); }
    10% { clip: rect(80px, 9999px, 5px, 0); }
    20% { clip: rect(12px, 9999px, 85px, 0); }
    30% { clip: rect(44px, 9999px, 32px, 0); }
    40% { clip: rect(98px, 9999px, 76px, 0); }
    50% { clip: rect(10px, 9999px, 55px, 0); }
    60% { clip: rect(74px, 9999px, 99px, 0); }
    70% { clip: rect(45px, 9999px, 12px, 0); }
    80% { clip: rect(32px, 9999px, 88px, 0); }
    90% { clip: rect(15px, 9999px, 45px, 0); }
    100% { clip: rect(66px, 9999px, 20px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(85px, 9999px, 5px, 0); }
    10% { clip: rect(40px, 9999px, 98px, 0); }
    20% { clip: rect(55px, 9999px, 10px, 0); }
    30% { clip: rect(76px, 9999px, 44px, 0); }
    40% { clip: rect(12px, 9999px, 85px, 0); }
    50% { clip: rect(88px, 9999px, 32px, 0); }
    60% { clip: rect(15px, 9999px, 74px, 0); }
    70% { clip: rect(99px, 9999px, 45px, 0); }
    80% { clip: rect(66px, 9999px, 15px, 0); }
    90% { clip: rect(20px, 9999px, 66px, 0); }
    100% { clip: rect(5px, 9999px, 85px, 0); }
}

/* RESPONSIVE SCALING */
@media (max-width: 1024px) {
    .bento-grid {
        gap: 1.2rem;
    }
    .bento-large {
        grid-column: span 6;
    }
    .bento-wide {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    #crt-screen {
        padding: 1.2rem;
    }
    
    .main-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .brand-container {
        max-width: 100%;
    }

    .controls-panel {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .bento-large, .bento-wide {
        grid-column: span 12;
    }
    
    .terminal-container {
        grid-template-columns: 1fr;
    }
    
    .terminal-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        padding-right: 0;
        padding-bottom: 1rem;
    }
    
    .query-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .query-btn {
        width: auto;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links ul {
        align-items: center;
    }
    
    .dossier-stamp {
        right: 15px;
    }
}

/* ============================================================
   PARAGRAPH-SAFE CORRUPTION (replaces the logo-only glitch on
   the live definition; no duplicate-layer trick, so it stays
   legible on long body text)
   ============================================================ */
.text-corrupt {
    color: var(--text-primary);
    text-shadow: 0 0 6px var(--color-crimson-glow),
                 1px 0 0 rgba(225, 29, 42, 0.35),
                 -1px 0 0 rgba(126, 214, 230, 0.25);
    animation: text-corrupt-anim 2.2s infinite steps(12);
}

@keyframes text-corrupt-anim {
    0%   { opacity: 1;    transform: translateX(0); }
    8%   { opacity: 0.82; transform: translateX(0.6px); }
    16%  { opacity: 1;    transform: translateX(-0.6px); }
    24%  { opacity: 0.9;  transform: translateX(0); }
    100% { opacity: 1;    transform: translateX(0); }
}

/* PENDING ECOSYSTEM NODES (honest placeholders, not fake links) */
.node-pending {
    font-size: 0.75rem;
    cursor: not-allowed;
}
.node-pending em {
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 0.6rem;
    color: rgba(225, 29, 42, 0.55);
    letter-spacing: 1px;
}

/* ============================================================
   REDUCED MOTION — calm, still-premium fallback.
   Freezes every ambient/looping effect (flicker, grain, HUD
   drift, glitch, screen-shake/jitter, corruption) while keeping
   the full static composition, depth, glow and color intact.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    /* Kill the always-on ambient loops outright */
    .crt-flicker,
    body::before,
    .bg-grid,
    .hud-item,
    .warning-blink,
    .status-indicator,
    .glitch-effect::before,
    .glitch-effect::after,
    .text-corrupt {
        animation: none !important;
    }

    /* Neutralise transform-based screen disturbance */
    .threat-extreme,
    .terminal-jitter {
        animation: none !important;
        transform: none !important;
    }

    /* Hold the parallax plane still */
    .bg-grid {
        transform: none !important;
    }

    /* Keep the glitch pseudo-elements from covering text when frozen */
    .glitch-effect::before,
    .glitch-effect::after {
        opacity: 0 !important;
    }
}

/* ============================================================
   NEW CONTENT SECTIONS (typology, paradox, case files, lexicon)
   ============================================================ */
.content-section {
    max-width: 1400px;
    margin: 0 auto 5rem;
    position: relative;
    z-index: 5;
}
.section-head { max-width: 820px; margin-bottom: 2.5rem; }
.section-kicker {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    margin-bottom: 0.9rem;
    opacity: 0.85;
}
.section-title-lg {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}
.section-lede {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
}
.section-lede strong { color: var(--text-primary); font-weight: 600; }
.section-lede em { color: var(--color-cyan); font-style: italic; }

/* --- Typology grid --- */
.typology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}
.typo-tile {
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}
.typo-index {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-faint);
    line-height: 1;
    display: block;
    margin-bottom: 0.8rem;
}
.typo-name {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.typo-mech { font-size: 0.66rem; letter-spacing: 2px; margin-bottom: 0.9rem; }
.typo-desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.typo-eg {
    font-size: 0.66rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    border-top: 1px solid rgba(126, 214, 230, 0.12);
    padding-top: 0.8rem;
}

/* --- Paradox flow --- */
.paradox-flow {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 2rem;
    margin-bottom: 1.6rem;
}
.paradox-step { flex: 1; }
.paradox-num { font-size: 1.4rem; font-weight: 700; display: block; margin-bottom: 0.5rem; }
.paradox-title { font-size: 0.8rem; letter-spacing: 2px; color: var(--text-primary); margin-bottom: 0.6rem; }
.paradox-step p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.paradox-arrow {
    align-self: center;
    color: var(--color-cyan);
    font-size: 1.5rem;
    opacity: 0.6;
}

/* --- Comparison table --- */
.compare-table-wrap { padding: 0.5rem; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.compare-table caption { text-align: left; }
.compare-table th, .compare-table td {
    text-align: left;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(126, 214, 230, 0.1);
    vertical-align: top;
}
.compare-table thead th {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-cyan);
}
.compare-table tbody th[scope="row"] {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-weight: 600;
    width: 22%;
}
.compare-table td { color: var(--text-secondary); }
.compare-table em { color: var(--text-primary); font-style: italic; }
.compare-table tbody tr:hover { background: rgba(126, 214, 230, 0.04); }

/* --- Modern case files --- */
.casefiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}
.case-card { padding: 1.6rem; transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth); }
.case-medium { font-size: 0.62rem; letter-spacing: 1.5px; color: var(--text-muted); display: block; margin-bottom: 0.7rem; }
.case-title { font-size: 1.25rem; color: var(--text-primary); margin-bottom: 0.5rem; font-weight: 600; }
.case-type { font-size: 0.64rem; letter-spacing: 2px; margin-bottom: 0.8rem; }
.case-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* --- Lexicon --- */
.lexicon-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}
.lexicon-item { padding: 1.3rem 1.5rem; }
.lexicon-term {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.lexicon-src {
    font-size: 0.58rem;
    letter-spacing: 1.5px;
    color: var(--color-cyan);
    border: 1px solid rgba(126, 214, 230, 0.25);
    padding: 2px 6px;
    border-radius: 3px;
}
.lexicon-def { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================
   ENGINE: REGIME RESULT CARD
   ============================================================ */
.regime-result {
    margin-top: 2rem;
    border-top: 1px solid rgba(126, 214, 230, 0.15);
    padding-top: 1.8rem;
}
.regime-label { font-size: 0.66rem; letter-spacing: 3px; display: block; margin-bottom: 0.6rem; }
.regime-name {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 0.7rem;
    transition: color 0.4s ease;
}
.regime-name.is-critical { color: var(--color-crimson); text-shadow: 0 0 14px var(--color-crimson-glow); }
.regime-desc { font-size: 0.98rem; color: var(--text-secondary); line-height: 1.65; max-width: 760px; margin-bottom: 1.2rem; }
.regime-meta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.regime-archetype { font-size: 0.66rem; letter-spacing: 2px; color: var(--text-muted); }
#share-regime:disabled { opacity: 0.4; cursor: not-allowed; }
.share-ok { color: var(--color-cyan) !important; border-color: var(--color-cyan) !important; }

/* ============================================================
   DOSSIER: DECRYPT PROGRESS + CLASSIFIED UNLOCK
   ============================================================ */
.decrypt-progress {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    margin-bottom: 1.4rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(126, 214, 230, 0.15);
    border-radius: 4px;
    background: rgba(126, 214, 230, 0.03);
    display: inline-block;
}
.decrypt-hint { transition: opacity 0.4s ease; }
#decrypt-count { font-weight: 700; }

.classified-dossier { position: relative; transition: opacity 0.6s ease, filter 0.6s ease; }
.classified-dossier.locked .classified-body { filter: blur(7px); opacity: 0.45; pointer-events: none; user-select: none; }
.classified-lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    background: rgba(8, 9, 10, 0.55);
    border: 1px dashed rgba(225, 29, 42, 0.4);
    border-radius: 6px;
    z-index: 3;
    transition: opacity 0.5s ease;
}
.classified-dossier.unlocked .classified-lock { opacity: 0; pointer-events: none; }
.classified-dossier.unlocked .classified-body { filter: none; opacity: 1; pointer-events: auto; }
.classified-dossier.unlocked {
    box-shadow: 0 0 0 1px rgba(225, 29, 42, 0.4), 0 0 30px rgba(225, 29, 42, 0.12);
    border-radius: 6px;
}
.classified-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 0.8rem;
    font-style: italic;
}

/* ============================================================
   TERMINAL: TYPED QUERY INPUT
   ============================================================ */
.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.8rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(126, 214, 230, 0.18);
    border-radius: 6px;
    background: rgba(8, 9, 10, 0.5);
}
.term-prompt { font-size: 0.72rem; white-space: nowrap; }
.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.82rem;
    min-width: 0;
}
.terminal-input::placeholder { color: var(--text-muted); }
.terminal-input-row:focus-within { border-color: var(--color-cyan); box-shadow: 0 0 12px rgba(126, 214, 230, 0.12); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
    will-change: opacity, transform;
}
.reveal-on-scroll.is-visible { opacity: 1; transform: none; }
/* stagger children within a grid */
.typology-grid .reveal-on-scroll.is-visible,
.casefiles-grid .reveal-on-scroll.is-visible,
.lexicon-list .reveal-on-scroll.is-visible { transition-delay: var(--reveal-delay, 0ms); }

/* ============================================================
   RESPONSIVE for new sections
   ============================================================ */
@media (max-width: 1024px) {
    .typology-grid, .casefiles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .typology-grid, .casefiles-grid, .lexicon-list { grid-template-columns: 1fr; }
    .paradox-flow { flex-direction: column; }
    .paradox-arrow { transform: rotate(90deg); align-self: flex-start; }
    .content-section { margin-bottom: 3.5rem; }
}

/* Reduced motion: reveals appear instantly, no transform */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll { opacity: 1 !important; transform: none !important; transition: none !important; }
    .classified-dossier.locked .classified-body { filter: none !important; }
}

/* ============================================================
   HOLOGRAPHIC SYSTEM — depth field, fog, spectral glass,
   holo type, reticle cursor, signature canvases
   ============================================================ */

/* --- Depth field (particles) + volumetric fog --- */
.holo-field {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.9;
}
.fog-layer {
    position: fixed;
    width: 70vmax;
    height: 70vmax;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    filter: blur(70px);
    opacity: 0.5;
    mix-blend-mode: screen;
    will-change: transform;
}
.fog-1 {
    top: -15vmax; left: -10vmax;
    background: radial-gradient(circle, rgba(126, 214, 230, 0.16) 0%, transparent 65%);
    animation: fog-drift-1 26s ease-in-out infinite alternate;
}
.fog-2 {
    bottom: -20vmax; right: -12vmax;
    background: radial-gradient(circle, rgba(123, 77, 255, 0.14) 0%, transparent 65%);
    animation: fog-drift-2 34s ease-in-out infinite alternate;
}
@keyframes fog-drift-1 {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(14vmax, 8vmax) scale(1.18); }
}
@keyframes fog-drift-2 {
    0% { transform: translate(0,0) scale(1.1); }
    100% { transform: translate(-12vmax, -10vmax) scale(1); }
}

/* --- Spectral fresnel border on every glass panel --- */
.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from var(--holo-angle, 0deg),
        rgba(126, 214, 230, 0.0) 0%,
        rgba(126, 214, 230, 0.55) 18%,
        rgba(123, 77, 255, 0.55) 38%,
        rgba(225, 29, 42, 0.30) 52%,
        rgba(126, 214, 230, 0.0) 70%,
        rgba(123, 77, 255, 0.45) 88%,
        rgba(126, 214, 230, 0.0) 100%
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0.35;
    z-index: 12;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-smooth);
    animation: holo-spin 12s linear infinite;
}
.glass-panel:hover::before { opacity: 0.85; }

@property --holo-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
@keyframes holo-spin {
    to { --holo-angle: 360deg; }
}

/* --- Prismatic sheen sweep --- */
.glass-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(126, 214, 230, 0.06) 45%,
        rgba(123, 77, 255, 0.08) 50%,
        rgba(225, 29, 42, 0.04) 55%,
        transparent 70%
    );
    background-size: 250% 250%;
    background-position: 120% 0;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 11;
    opacity: 0;
    transition: opacity 0.5s var(--ease-smooth);
}
.glass-panel:hover::after {
    opacity: 1;
    animation: sheen-sweep 1.4s var(--ease-smooth);
}
@keyframes sheen-sweep {
    0% { background-position: 120% 0; }
    100% { background-position: -40% 0; }
}

/* Layered-glass inner thickness: a crisp top specular hairline */
.glass-panel { isolation: isolate; }

/* --- Holographic display type (spectral fill + chromatic ghost) --- */
.section-title-lg, .regime-name {
    background: linear-gradient(92deg, #EAF6FA 0%, #BFE9F2 30%, #C9BBFF 60%, #EAF6FA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0.5px 0 0 rgba(225, 29, 42, 0.18), -0.5px 0 0 rgba(126, 214, 230, 0.22);
}
.regime-name.is-critical {
    background: linear-gradient(92deg, #FF6A74 0%, #E11D2A 50%, #FF9AA2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Signature canvases --- */
.holo-artifact {
    position: absolute;
    top: 40%; left: 50%;
    width: 600px; height: 600px;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    mix-blend-mode: screen;
}
.intro-section {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
}
.intro-section > .text-card { width: 100%; position: relative; }
.engine-card { overflow: hidden; }
.holo-reactor {
    position: absolute;
    top: 50%; right: -2%;
    width: 420px; height: 420px;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.72;
    mix-blend-mode: screen;
}
.engine-card > *:not(.holo-reactor) { position: relative; z-index: 2; }

/* Holo panels read more like glass so the canvases glow through */
.holo-panel {
    background: linear-gradient(135deg, rgba(13, 15, 17, 0.72) 0%, rgba(8, 9, 10, 0.82) 100%);
}

/* --- Holographic reticle cursor --- */
.holo-cursor {
    position: fixed;
    top: 0; left: 0;
    z-index: 10001;
    pointer-events: none;
    transform: translate3d(-50%, -50%, 0);
    will-change: transform;
}
.cursor-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 30px; height: 30px;
    margin: -15px 0 0 -15px;
    border: 1px solid rgba(126, 214, 230, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(126, 214, 230, 0.35), inset 0 0 6px rgba(123, 77, 255, 0.25);
    transition: width 0.25s var(--ease-smooth), height 0.25s var(--ease-smooth), margin 0.25s var(--ease-smooth), border-color 0.25s var(--ease-smooth);
}
.cursor-ring::before, .cursor-ring::after {
    content: "";
    position: absolute;
    background: rgba(126, 214, 230, 0.8);
}
.cursor-ring::before { top: 50%; left: -4px; width: 3px; height: 1px; }
.cursor-ring::after  { top: 50%; right: -4px; width: 3px; height: 1px; }
.cursor-dot {
    position: absolute;
    top: 50%; left: 50%;
    width: 4px; height: 4px;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    background: var(--color-crimson);
    box-shadow: 0 0 6px rgba(225, 29, 42, 0.8);
}
.holo-cursor.is-snapped .cursor-ring {
    width: 52px; height: 52px;
    margin: -26px 0 0 -26px;
    border-color: rgba(123, 77, 255, 0.85);
}
.holo-cursor.is-down .cursor-ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; }

/* Hide native cursor only on fine-pointer devices that have the holo cursor */
@media (pointer: fine) {
    html.holo-cursor-on, html.holo-cursor-on * { cursor: none !important; }
}

/* Magnetic affordance */
.magnetic { transition: transform 0.3s var(--ease-smooth); }

/* --- Reduced motion / touch: calm + native cursor --- */
@media (prefers-reduced-motion: reduce) {
    .fog-1, .fog-2 { animation: none !important; }
    .glass-panel::before { animation: none !important; opacity: 0.4 !important; }
    .glass-panel:hover::after { animation: none !important; }
    .holo-cursor { display: none !important; }
    html.holo-cursor-on, html.holo-cursor-on * { cursor: auto !important; }
}
@media (pointer: coarse) {
    .holo-cursor { display: none !important; }
}

/* ============================================================
   READ-FOCUS — calm the page on hover for readability
   ============================================================ */
.holo-field, .fog-layer, .scanlines, .hud-item, body::before { transition: opacity 0.4s ease; }
.bg-grid { transition: transform 0.1s ease-out, opacity 0.4s ease; }

body.read-focus { animation: none !important; }                 /* stop CRT phosphor flicker */
body.read-focus::before { opacity: 0.012; animation-play-state: paused; }  /* settle film grain */
.read-focus .scanlines { opacity: 0.32; }
.read-focus .holo-field { opacity: 0.22; }
.read-focus .fog-layer { opacity: 0.13; }
.read-focus .bg-grid { opacity: 0.45; }
.read-focus .hud-item { opacity: 0 !important; animation: none !important; }

/* The hovered card becomes a crisp, high-contrast reading surface */
.glass-panel.is-focused {
    background: linear-gradient(135deg, rgba(16, 18, 20, 0.95) 0%, rgba(9, 10, 11, 0.975) 100%) !important;
    border-color: rgba(126, 214, 230, 0.30) !important;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
                0 0 0 1px rgba(126, 214, 230, 0.06),
                0 30px 80px -20px rgba(0, 0, 0, 0.95),
                0 0 60px -10px rgba(126, 214, 230, 0.10) !important;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.glass-panel.is-focused::after { opacity: 0 !important; animation: none !important; }   /* halt sheen over text */
.glass-panel.is-focused::before { animation-play-state: paused; opacity: 0.4; }          /* calm spectral edge */
.glass-panel.is-focused .card-glare { opacity: 0 !important; }
.glass-panel.is-focused .text-corrupt,
.read-focus .is-focused .text-corrupt { animation: none !important; text-shadow: none !important; }
/* dim the engine's reactor glow while reading the engine */
.engine-card.is-focused .holo-reactor { opacity: 0.28 !important; transition: opacity 0.4s ease; }

/* ============================================================
   TYPE ICONS · HEADING WIPES · DIVIDERS · DECRYPT CUE
   ============================================================ */
/* Self-drawing line glyphs on the typology tiles */
.typo-icon {
    width: 46px; height: 46px;
    margin-bottom: 1rem;
    color: var(--color-cyan);
    filter: drop-shadow(0 0 6px rgba(126, 214, 230, 0.25));
}
.typo-icon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.typo-icon .dp {
    fill: none; stroke: currentColor; stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 1; stroke-dashoffset: 1;
}
.typo-tile.is-visible .typo-icon .dp { animation: icon-draw 1.1s var(--ease-smooth) forwards; }
.typo-tile.is-visible .typo-icon .dp:nth-child(2) { animation-delay: 0.14s; }
.typo-tile.is-visible .typo-icon .dp:nth-child(3) { animation-delay: 0.28s; }
@keyframes icon-draw { to { stroke-dashoffset: 0; } }
/* index becomes a small corner badge so the icon leads */
.typo-tile .typo-index {
    position: absolute; top: 1.4rem; right: 1.6rem;
    font-size: 1.5rem; opacity: 0.5;
}
.typo-tile.is-focused .typo-icon { color: var(--color-cyan); filter: drop-shadow(0 0 10px rgba(126, 214, 230, 0.5)); }

/* Heading underline that wipes in on reveal */
.section-title-lg { position: relative; }
.section-title-lg::after {
    content: ""; position: absolute; left: 2px; bottom: -12px; height: 2px;
    width: clamp(56px, 16%, 130px);
    background: linear-gradient(90deg, var(--color-cyan), var(--color-violet) 70%, transparent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.85s var(--ease-smooth) 0.25s;
}
.reveal-on-scroll.is-visible .section-title-lg::after { transform: scaleX(1); }

/* Animated section dividers (scan node travels a hairline) */
.section-divider {
    position: relative; height: 1px; max-width: 1100px;
    margin: 0 auto; width: 100%;
    background: linear-gradient(90deg, transparent, rgba(126,214,230,0.18) 20%, rgba(126,214,230,0.18) 80%, transparent);
}
.section-divider::before {
    content: ""; position: absolute; top: -2px; left: 0; width: 60px; height: 5px;
    background: radial-gradient(ellipse at center, rgba(126,214,230,0.9), transparent 70%);
    border-radius: 50%;
    animation: divider-scan 7s linear infinite;
}
.section-divider::after {
    content: "//"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-mono); font-size: 0.6rem; color: rgba(126,214,230,0.3);
    background: var(--bg-black); padding: 0 10px; letter-spacing: 2px;
}
@keyframes divider-scan { 0% { left: -8%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* "Hover to decrypt" cue on redaction boxes */
.redaction-box { position: relative; }
.redaction-box::after {
    content: ""; position: absolute; inset: 0;
    box-shadow: inset 0 0 0 1px rgba(126,214,230,0.0);
    animation: decrypt-hint 3.4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes decrypt-hint {
    0%, 100% { box-shadow: inset 0 0 0 1px rgba(126,214,230,0.0); }
    50% { box-shadow: inset 0 0 0 1px rgba(126,214,230,0.35), 0 0 12px rgba(126,214,230,0.12); }
}

@media (prefers-reduced-motion: reduce) {
    .typo-icon .dp { stroke-dashoffset: 0 !important; animation: none !important; }
    .section-title-lg::after { transform: scaleX(1) !important; transition: none !important; }
    .section-divider::before { animation: none !important; opacity: 0; }
    .redaction-box::after { animation: none !important; }
}

/* ============================================================
   ENGINE RADAR + DESCENT RAIL
   ============================================================ */
.regime-result-inner { display: flex; gap: 1.8rem; align-items: center; }
.regime-copy { flex: 1; min-width: 0; }
.regime-radar {
    width: 190px; height: 190px; flex-shrink: 0;
    filter: drop-shadow(0 0 14px rgba(126, 214, 230, 0.12));
}
@media (max-width: 760px) {
    .regime-result-inner { flex-direction: column-reverse; align-items: stretch; }
    .regime-radar { width: 150px; height: 150px; margin: 0 auto; }
}

/* Descent rail */
.descent-rail {
    position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
    z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 10px;
    pointer-events: none;
}
.descent-rail .rail-pct { font-size: 0.7rem; color: var(--color-cyan); letter-spacing: 1px; }
.descent-rail .rail-cap { font-size: 0.5rem; color: rgba(126,214,230,0.4); letter-spacing: 3px;
    writing-mode: vertical-rl; }
.rail-track {
    position: relative; width: 3px; height: 42vh; max-height: 360px;
    background: rgba(126, 214, 230, 0.10); border-radius: 3px; overflow: visible;
}
.rail-fill {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(126,214,230,0.8), rgba(126,214,230,0.95));
    border-radius: 3px; transform: scaleY(0); transform-origin: top;
    box-shadow: 0 0 10px rgba(126,214,230,0.5);
}
.descent-rail.is-critical .rail-fill { box-shadow: 0 0 12px rgba(225,29,42,0.6); }
.rail-nodes {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    justify-content: space-between; align-items: center;
}
.rail-node {
    pointer-events: auto; cursor: pointer; position: relative;
    width: 9px; height: 9px; border-radius: 50%; padding: 0;
    border: 1px solid rgba(126, 214, 230, 0.5);
    background: var(--bg-black);
    transition: transform 0.25s var(--ease-smooth), border-color 0.25s, background 0.25s;
}
.rail-node:hover { transform: scale(1.5); border-color: var(--color-cyan); background: var(--color-cyan); }
.rail-node.is-active { border-color: var(--color-cyan); background: var(--color-cyan); box-shadow: 0 0 8px rgba(126,214,230,0.7); }
.rail-label {
    position: absolute; right: 18px; top: 50%; transform: translateY(-50%) translateX(6px);
    white-space: nowrap; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 1px;
    color: var(--text-secondary); background: rgba(10,12,14,0.92);
    border: 1px solid rgba(126,214,230,0.18); padding: 3px 8px; border-radius: 4px;
    opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.rail-node:hover .rail-label, .rail-node:focus-visible .rail-label { opacity: 1; transform: translateY(-50%) translateX(0); }
.read-focus .descent-rail { opacity: 0.35; transition: opacity 0.4s ease; }
@media (max-width: 900px) { .descent-rail { display: none; } }

/* ============================================================
   PARADOX GLYPHS + FICTION TIMELINE
   ============================================================ */
.paradox-glyph { display: block; width: 54px; height: 54px; margin: 0 auto 0.9rem; color: var(--color-cyan); }
.paradox-glyph[data-state="crack"] { color: var(--color-crimson); }
.paradox-glyph svg { width: 100%; height: 100%; overflow: visible; display: block; }
.paradox-glyph .dp {
    fill: none; stroke: currentColor; stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 1; stroke-dashoffset: 1;
}
.compare-section.is-visible .paradox-glyph .dp { animation: icon-draw 1.2s var(--ease-smooth) forwards; }
.compare-section.is-visible .paradox-glyph[data-state="cage"] .dp { animation: icon-draw 1.2s var(--ease-smooth) 0.18s forwards; }
.compare-section.is-visible .paradox-glyph[data-state="crack"] .dp { animation: icon-draw 1.2s var(--ease-smooth) 0.36s forwards; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 840px; }
.timeline::before {
    content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 2px;
    background: linear-gradient(to bottom, var(--color-cyan), var(--color-violet) 55%, var(--color-crimson));
    opacity: 0.45;
}
.timeline-entry {
    position: relative; padding: 0 0 1.7rem 48px;
    opacity: 0; transform: translateX(16px);
    transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}
.timeline-entry.tl-in { opacity: 1; transform: none; }
.timeline-entry::before {
    content: ""; position: absolute; left: 7px; top: 5px; width: 16px; height: 16px;
    border-radius: 50%; border: 2px solid var(--color-cyan); background: var(--bg-black);
    box-shadow: 0 0 10px rgba(126, 214, 230, 0.4); transition: background 0.3s, transform 0.3s;
}
.timeline-entry:hover::before, .timeline-entry.open::before { background: var(--color-cyan); transform: scale(1.15); }
.tl-head { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; cursor: pointer; padding: 4px 0; }
.tl-head:focus-visible { outline: 2px solid var(--color-cyan); outline-offset: 4px; border-radius: 4px; }
.tl-year { font-size: 1.3rem; color: var(--color-cyan); font-weight: 700; letter-spacing: 1px; }
.tl-title { font-size: 1.05rem; color: var(--text-primary); }
.tl-title em { font-style: italic; }
.tl-tag { font-size: 0.58rem; letter-spacing: 1px; color: var(--text-muted);
    border: 1px solid rgba(126, 214, 230, 0.18); padding: 2px 7px; border-radius: 4px; align-self: center; }
.tl-head::after { content: "+"; margin-left: auto; color: var(--color-cyan); font-family: var(--font-mono); font-size: 1.1rem; }
.timeline-entry.open .tl-head::after { content: "\2212"; }
.tl-body { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-smooth), margin 0.4s, opacity 0.4s; opacity: 0; }
.timeline-entry.open .tl-body { max-height: 180px; margin-top: 0.5rem; opacity: 1; }
.tl-body p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; max-width: 60ch; }

@media (prefers-reduced-motion: reduce) {
    .paradox-glyph .dp { stroke-dashoffset: 0 !important; animation: none !important; }
    .timeline-entry { opacity: 1 !important; transform: none !important; }
    .tl-body { transition: none !important; }
    .section-divider::before { animation: none !important; }
}

/* ============================================================
   GLOSSARY TOOLTIPS · STAT COUNTERS · WATCH-EYE
   ============================================================ */
/* Inline glossary chips */
.glossary {
    border-bottom: 1px dashed rgba(126, 214, 230, 0.55);
    cursor: help; position: relative; color: inherit; white-space: nowrap;
}
.glossary::after {
    content: attr(data-def);
    position: absolute; left: 0; bottom: calc(100% + 10px);
    width: 250px; max-width: 72vw; white-space: normal;
    background: rgba(10, 12, 14, 0.98); border: 1px solid rgba(126, 214, 230, 0.28);
    border-radius: 8px; padding: 0.65rem 0.75rem;
    font-family: var(--font-sans); font-size: 0.8rem; line-height: 1.5; letter-spacing: 0;
    color: var(--text-secondary); text-transform: none;
    opacity: 0; transform: translateY(6px); pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 80; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
}
.glossary::before {
    content: ""; position: absolute; left: 14px; bottom: calc(100% + 4px);
    border: 6px solid transparent; border-top-color: rgba(126, 214, 230, 0.28);
    opacity: 0; transition: opacity 0.2s ease; pointer-events: none;
}
.glossary:hover::after, .glossary:focus::after, .glossary.show-def::after,
.glossary:hover::before, .glossary:focus::before, .glossary.show-def::before { opacity: 1; transform: translateY(0); }
.glossary:focus-visible { outline: 2px solid var(--color-cyan); outline-offset: 2px; }

/* Stat counters strip */
.stats-strip {
    display: flex; flex-wrap: wrap; gap: 1rem;
    max-width: 1100px; margin: 0 auto; padding: 1.6rem clamp(1rem, 4vw, 2rem);
}
.stat-cell {
    flex: 1 1 180px; text-align: center;
    border: 1px solid rgba(126, 214, 230, 0.12); border-radius: 10px;
    padding: 1.4rem 1rem; background: rgba(126, 214, 230, 0.02);
    transition: border-color 0.3s ease, background 0.3s ease;
}
.stat-cell:hover { border-color: rgba(126, 214, 230, 0.3); background: rgba(126, 214, 230, 0.04); }
.stat-num {
    display: block; font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 700;
    color: var(--color-cyan); line-height: 1; text-shadow: 0 0 18px rgba(126, 214, 230, 0.3);
}
.stat-label {
    display: block; margin-top: 0.6rem; font-size: 0.62rem; letter-spacing: 2px;
    color: var(--text-muted);
}

/* Watch-eye motif */
.watch-eye {
    position: absolute; top: 7%; right: 6%; width: 82px; height: 52px;
    z-index: 3; opacity: 0.5; pointer-events: none;
    transition: opacity 0.4s ease, transform 0.18s ease;
}
.watch-eye svg { width: 100%; height: 100%; overflow: visible; }
.watch-eye .eye-outline { fill: none; stroke: var(--color-cyan); stroke-width: 2; }
.watch-eye .eye-iris { fill: none; stroke: rgba(126, 214, 230, 0.5); stroke-width: 1.5; }
.watch-eye .eye-dot { fill: var(--color-crimson); filter: drop-shadow(0 0 4px rgba(225, 29, 42, 0.6)); }
.watch-eye.blink { transform: scaleY(0.08); }
.read-focus .watch-eye { opacity: 0.12; }
@media (max-width: 760px) { .watch-eye { width: 60px; height: 38px; top: 5%; } }

@media (prefers-reduced-motion: reduce) {
    .watch-eye { display: none; }
    .glossary::after, .glossary::before { transition: none; }
}

/* ============================================================
   CINEMATIC MOOD ENGINE · OBSIDIAN · REFRACTION · DISCLAIMER
   ============================================================ */
:root { --accent-rgb: 126, 214, 230; --mood-t: 0; }

/* Deeper obsidian base */
body { background-color: #050506; }

/* Mood layers ---------------------------------------------- */
.mood-wash {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    mix-blend-mode: screen; transition: background 0.15s linear;
    background:
        radial-gradient(130% 80% at 50% -12%, rgba(var(--accent-rgb), calc(0.045 + var(--mood-t) * 0.05)) 0%, transparent 55%),
        radial-gradient(130% 95% at 50% 112%, rgba(var(--accent-rgb), calc(0.05 + var(--mood-t) * 0.16)) 0%, transparent 60%);
}
.caustics {
    position: fixed; inset: -20%; z-index: 1; pointer-events: none;
    opacity: 0.55; mix-blend-mode: screen; filter: blur(22px);
    background:
        radial-gradient(40% 30% at 28% 38%, rgba(var(--accent-rgb), 0.05), transparent 60%),
        radial-gradient(34% 26% at 72% 58%, rgba(var(--accent-rgb), 0.045), transparent 60%),
        radial-gradient(30% 22% at 52% 82%, rgba(var(--accent-rgb), 0.04), transparent 60%);
    animation: caustic-drift 24s ease-in-out infinite alternate;
}
@keyframes caustic-drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(2%, -2%) scale(1.06); }
    100% { transform: translate(-2%, 2%) scale(1); }
}
.color-grade {
    position: fixed; inset: 0; z-index: 9990; pointer-events: none;
    background: rgba(var(--accent-rgb), 0.038); mix-blend-mode: soft-light;
    transition: background 0.15s linear;
}
.mood-vignette {
    position: fixed; inset: 0; z-index: 9991; pointer-events: none;
    box-shadow:
        inset 0 0 220px 50px rgba(0, 0, 0, calc(0.5 + var(--mood-t) * 0.28)),
        inset 0 -180px 220px -70px rgba(var(--accent-rgb), calc(var(--mood-t) * 0.14));
}

/* Accent-driven existing layers ---------------------------- */
.screen-glow {
    background: radial-gradient(700px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
        rgba(var(--accent-rgb), 0.05) 0%, rgba(0, 0, 0, 0) 80%);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.95);
    transition: background 0.15s linear;
}
.bg-grid {
    background-image:
        linear-gradient(to right, rgba(var(--accent-rgb), 0.018) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(var(--accent-rgb), 0.018) 1px, transparent 1px);
}
::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb), 0.25); }
::-webkit-scrollbar-thumb:hover { background: rgb(var(--accent-rgb)); }
::selection { background: rgba(var(--accent-rgb), 0.3); color: #fff; }

/* Anamorphic lens streak (hero) ---------------------------- */
.lens-streak {
    position: absolute; top: 42%; left: -10%; width: 120%; height: 2px;
    z-index: 2; pointer-events: none; mix-blend-mode: screen; filter: blur(2px);
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.5) 44%,
        rgba(255, 255, 255, 0.6) 50%, rgba(var(--accent-rgb), 0.5) 56%, transparent);
    animation: streak-pulse 6.5s ease-in-out infinite;
}
@keyframes streak-pulse { 0%, 100% { opacity: 0.3; transform: scaleX(0.96); } 50% { opacity: 0.6; transform: scaleX(1); } }

/* Refraction / chromatic-aberration on glass --------------- */
.glass-panel {
    backdrop-filter: blur(14px) saturate(1.25) contrast(1.04);
    -webkit-backdrop-filter: blur(14px) saturate(1.25) contrast(1.04);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.04),
        1.2px 0 0 -0.5px rgba(225, 29, 42, 0.10),
        -1.2px 0 0 -0.5px rgba(126, 214, 230, 0.10),
        calc(var(--shadow-dx, 0) * -1px) calc(var(--shadow-dy, 0) * -1px) 25px 0 rgba(0, 0, 0, 0.7),
        calc(var(--shadow-dx, 0) * -2px) calc(var(--shadow-dy, 0) * -2px) 60px 0 rgba(0, 0, 0, 0.85);
}
/* subtle chromatic split on the big cinematic headings */
.section-title-lg, #cta-title { text-shadow: 0.6px 0 rgba(225, 29, 42, 0.18), -0.6px 0 rgba(126, 214, 230, 0.18); }

/* READ-FOCUS v2 — hovering a card removes ALL distortion ---- */
.read-focus .mood-wash, .read-focus .caustics, .read-focus .color-grade { opacity: 0.32; transition: opacity 0.4s ease; }
.glass-panel.is-focused {
    transform: none !important;                         /* flatten 3D tilt */
    backdrop-filter: blur(16px) saturate(1) contrast(1) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1) contrast(1) !important;
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(126, 214, 230, 0.06),
        0 30px 80px -20px rgba(0, 0, 0, 0.95),
        0 0 60px -10px rgba(126, 214, 230, 0.10) !important;  /* no chromatic edges */
}
.is-focused .section-title-lg,
.is-focused #cta-title,
.is-focused .regime-name,
.is-focused .text-corrupt { text-shadow: none !important; }
.is-focused .card-glare, .is-focused .cta-glow-overlay { opacity: 0 !important; }

/* Disclaimers ---------------------------------------------- */
.preloader-disclaimer {
    margin-top: 1.1rem; max-width: 440px; font-size: 0.62rem; line-height: 1.55;
    color: var(--text-muted); letter-spacing: 0.4px; opacity: 0.85;
}
.cinematic-disclaimer,
.edu-disclaimer {
    margin: 0.7rem auto 0; max-width: 700px; font-size: 0.66rem; line-height: 1.55;
    color: var(--text-muted); letter-spacing: 0.3px; text-transform: none;
}
.edu-disclaimer { font-size: 0.62rem; opacity: 0.92; }

/* CTA propaganda climax ------------------------------------ */
.cta-card { overflow: hidden; }
.cta-filigree { position: absolute; width: 62px; height: 62px; color: rgba(225, 29, 42, 0.45); z-index: 2; pointer-events: none; }
.cta-filigree svg { width: 100%; height: 100%; }
.cta-filigree .fil { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cta-filigree.tl { top: 14px; left: 14px; }
.cta-filigree.tr { top: 14px; right: 14px; transform: scaleX(-1); }
.cta-filigree.bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.cta-filigree.br { bottom: 14px; right: 14px; transform: scale(-1, -1); }
.cta-propaganda {
    font-family: var(--font-typewriter); font-size: clamp(0.95rem, 2.4vw, 1.15rem);
    color: var(--text-primary); letter-spacing: 1px; margin: 0.5rem 0 0.9rem;
    opacity: 0.92; text-shadow: 0 0 18px rgba(225, 29, 42, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    .caustics { animation: none !important; }
    .lens-streak { animation: none !important; opacity: 0.3; }
}

/* ============================================================
   READABILITY PASS — de-distort cards/text + 2/3 reading column
   ============================================================ */
/* 1. Remove chromatic aberration + refraction from glass cards */
.glass-panel {
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.04),
        calc(var(--shadow-dx, 0) * -1px) calc(var(--shadow-dy, 0) * -1px) 25px 0 rgba(0, 0, 0, 0.7),
        calc(var(--shadow-dx, 0) * -2px) calc(var(--shadow-dy, 0) * -2px) 60px 0 rgba(0, 0, 0, 0.85);
}
/* 2. Remove chromatic split from headings (text stays crisp) */
.section-title-lg, #cta-title, .regime-name { text-shadow: none; }
/* 3. Ease scanlines over reading text */
.scanlines { background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.10) 50%); background-size: 100% 4px; }

/* 4. Centered ~2/3 reading column with side margins (desktop) */
@media (min-width: 1100px) {
    #crt-screen { width: min(1340px, 75vw); margin-inline: auto; }
}
@media (min-width: 901px) and (max-width: 1099px) {
    #crt-screen { width: 88%; margin-inline: auto; }
}

/* Balance the engine dials to 2x2 inside the narrower reading column */
@media (min-width: 901px) {
    .sliders-container { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   BACKGROUND ELEVATION — embers + search-light sweep
   ============================================================ */
.ember-field {
    position: fixed; inset: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: 0.85;
}
.searchlight {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    mix-blend-mode: screen; opacity: 0.6;
    background: linear-gradient(102deg, transparent 40%,
        rgba(var(--accent-rgb), 0.05) 49%, rgba(var(--accent-rgb), 0.07) 50%,
        rgba(var(--accent-rgb), 0.05) 51%, transparent 60%);
    background-size: 230% 100%;
    animation: searchlight-sweep 16s linear infinite;
}
@keyframes searchlight-sweep {
    0% { background-position: 130% 0; }
    100% { background-position: -30% 0; }
}
.read-focus .ember-field, .read-focus .searchlight { opacity: 0.25; transition: opacity 0.4s ease; }

@media (prefers-reduced-motion: reduce) {
    .searchlight { animation: none !important; opacity: 0.25; }
    .ember-field { display: none; }
}

/* ============================================================
   IMAGE SYSTEM (duotone + grain) · INTERLUDES · CAM · BREATHE
   ============================================================ */
.media-frame { position: relative; overflow: hidden; border-radius: 10px; isolation: isolate; background: #070809; }
.media-frame img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
    filter: grayscale(0.4) contrast(1.05) brightness(0.9) saturate(1.05);
    opacity: 0; transform: scale(1.12); transition: opacity 1.1s var(--ease-smooth); will-change: transform;
}
.media-frame.loaded img { opacity: 1; }
.media-frame::after {                 /* mood-reactive duotone tint */
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: rgba(var(--accent-rgb), 0.25); mix-blend-mode: color; transition: background 0.15s linear;
}
.media-frame::before {                /* integrating scanlines */
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background: repeating-linear-gradient(rgba(0,0,0,0) 0 3px, rgba(0,0,0,0.16) 3px 4px); opacity: 0.32;
}
.mf-vignette { position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 70px rgba(0,0,0,0.85); }
.mf-ph { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.06), rgba(0,0,0,0.45)); overflow: hidden; transition: opacity 0.8s ease; }
.mf-ph::before { content: ""; position: absolute; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.7), transparent); animation: mf-scan 3.2s linear infinite; }
@keyframes mf-scan { 0% { top: -2px; } 100% { top: 100%; } }
.mf-ph-label { font-size: 0.58rem; letter-spacing: 2px; color: rgba(var(--accent-rgb), 0.7); z-index: 1; }
.media-frame.loaded .mf-ph { opacity: 0; }

/* typology banners */
.typo-media { height: 148px; margin-bottom: 1.1rem; }
.typo-tile.is-focused .media-frame::after { background: rgba(var(--accent-rgb), 0.12); }  /* clearer image on hover */

/* full-width interludes */
.interlude { margin: 3.5rem auto; }
.interlude-media { width: 100%; aspect-ratio: 21 / 9; border-radius: 12px; }
.interlude-caption {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; margin: 0; padding: 1.4rem 1.6rem;
    font-size: clamp(0.85rem, 2vw, 1.15rem); color: #fff; letter-spacing: 1px;
    background: linear-gradient(to top, rgba(0,0,0,0.82), transparent); text-shadow: 0 2px 14px #000;
}
@media (max-width: 600px) { .interlude-media { aspect-ratio: 16 / 10; } }

/* CTA background image */
.cta-bg-media { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.cta-bg-media img { filter: grayscale(1) brightness(0.42) contrast(1.05); transform: scale(1.1); }
.cta-bg-media::after { background: rgba(var(--accent-rgb), 0.4); }
.cta-card > .cta-grid { position: relative; z-index: 1; }
.cta-card > .card-glare, .cta-card > .cta-glow-overlay { z-index: 1; }

/* animated surveillance-camera motif */
.cam-motif { position: absolute; top: 6px; right: 4px; width: 118px; height: 78px; z-index: 6; opacity: 0.5; pointer-events: none; }
.cam-motif svg { width: 100%; height: 100%; overflow: visible; }
.cam-body { fill: rgba(126, 214, 230, 0.10); stroke: var(--color-cyan); stroke-width: 1.4; }
.cam-lens { fill: rgba(225, 29, 42, 0.55); stroke: var(--color-cyan); stroke-width: 1.2; }
.cam-arm { stroke: var(--color-cyan); stroke-width: 1.4; }
.cam-head, .cam-beam { transform-origin: 36px 39px; animation: cam-pan 7s ease-in-out infinite; }
.cam-beam path { fill: rgba(126, 214, 230, 0.10); }
.cam-beam { animation: cam-pan 7s ease-in-out infinite, cam-beam 7s ease-in-out infinite; }
@keyframes cam-pan { 0%, 100% { transform: rotate(-15deg); } 50% { transform: rotate(15deg); } }
@keyframes cam-beam { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.9; } }
@media (max-width: 1000px) { .cam-motif { display: none; } }

/* breathing life on the CTA climax */
.cta-glow-overlay { animation: cta-breathe 5.5s ease-in-out infinite; }
@keyframes cta-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .mf-ph::before, .cam-head, .cam-beam, .cta-glow-overlay { animation: none !important; }
    .media-frame img { transition: none !important; }
}

/* ============================================================
   HERO ATMOSPHERE IMAGE + "SYSTEM IS WATCHING" LAYER
   ============================================================ */
/* hero background photo */
.hero-atmos { position: absolute; inset: 0; z-index: 0; border-radius: 14px; opacity: 0.5;
    box-shadow: inset 0 0 130px 36px #050506; }
.hero-atmos img { object-position: center 62%; filter: grayscale(1) brightness(0.5) contrast(1.05); }
.hero-atmos::after { background: rgba(var(--accent-rgb), 0.42); }
.hero-atmos::before { opacity: 0.32; }
.intro-section .holo-artifact { z-index: 1; }
.intro-section .text-card { position: relative; z-index: 2; }
.intro-section .watch-eye { z-index: 3; }
.intro-section .lens-streak { z-index: 2; }

/* surveillance HUD (fixed tracker) */
.surv-hud { position: fixed; left: 16px; bottom: 14px; z-index: 9994; pointer-events: none;
    display: flex; flex-direction: column; gap: 2px; font-family: var(--font-mono, monospace);
    font-size: 0.58rem; letter-spacing: 1.5px; line-height: 1.5; color: rgba(var(--accent-rgb), 0.5);
    text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.3); transition: color 0.3s; }
.surv-hud .sh-rec { color: var(--color-crimson, #E11D2A); animation: rec-blink 1.4s steps(1) infinite; }
@keyframes rec-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.25; } }
.surv-hud.lock { color: var(--color-crimson, #E11D2A); }
.surv-hud.lock .sh-trk::after { content: ' \25C9 LOCK'; }
@media (max-width: 720px) { .surv-hud .sh-trk, .surv-hud .sh-depth { display: none; } .surv-hud { font-size: 0.5rem; } }

/* RED REC ORB — futuristic watching/record indicator in the margins */
.rec-orb { position: fixed; top: 46%; width: 36px; height: 36px; z-index: 6; opacity: 0;
    pointer-events: none; transition: opacity 1s ease; display: flex; align-items: center; justify-content: center; }
.watchers-on .rec-orb { opacity: 0.92; }
.rec-orb-l { left: 2.2%; } .rec-orb-r { right: 2.2%; }
.ro-core { position: relative; width: 22px; height: 22px; border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, #ff9090 0%, #e11d2a 40%, #7a0c14 78%, #2a0508 100%);
    box-shadow: 0 0 9px 2px rgba(225,29,42,0.6), 0 0 20px 6px rgba(225,29,42,0.3), inset 0 -3px 6px rgba(0,0,0,0.55), inset 0 2px 3px rgba(255,255,255,0.25);
    animation: rec-pulse 1.9s ease-in-out infinite; }
.ro-glint { position: absolute; top: 4px; left: 5px; width: 7px; height: 7px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%); will-change: transform; }
.ro-ring { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(225,29,42,0.55);
    animation: rec-ring 2.6s ease-out infinite; }
.ro-ring2 { animation-delay: 1.3s; }
.ro-label { position: absolute; bottom: -15px; font-size: 0.5rem; letter-spacing: 2.5px; color: rgba(225,29,42,0.9);
    text-shadow: 0 0 8px rgba(225,29,42,0.5); }
@keyframes rec-pulse {
    0%, 100% { box-shadow: 0 0 8px 2px rgba(225,29,42,0.5), 0 0 16px 5px rgba(225,29,42,0.25), inset 0 -3px 6px rgba(0,0,0,0.55), inset 0 2px 3px rgba(255,255,255,0.25); }
    50% { box-shadow: 0 0 14px 3px rgba(225,29,42,0.9), 0 0 30px 10px rgba(225,29,42,0.45), inset 0 -3px 6px rgba(0,0,0,0.55), inset 0 2px 3px rgba(255,255,255,0.3); } }
@keyframes rec-ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.5); opacity: 0; } }
@media (max-width: 1180px) { .rec-orb { display: none; } }

/* image-watch: scan sweep + classified tag */
.mf-scanbar { position: absolute; left: 0; right: 0; top: 0; height: 38%; z-index: 3; pointer-events: none;
    opacity: 0; background: linear-gradient(to bottom, rgba(var(--accent-rgb), 0) 0%, rgba(var(--accent-rgb), 0.18) 80%, rgba(var(--accent-rgb), 0.9) 100%);
    box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.6); }
.media-frame.scanned .mf-scanbar { animation: scan-pass 1.4s ease-in-out 1 forwards; }
@keyframes scan-pass { 0% { transform: translateY(-40%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(280%); opacity: 0; } }
.media-frame:hover .mf-scanbar { animation: scan-pass 1.8s ease-in-out infinite; }
.mf-tag { position: absolute; left: 10px; bottom: 8px; z-index: 4; font-size: 0.54rem; letter-spacing: 1.6px;
    color: rgba(var(--accent-rgb), 0.85); background: rgba(5, 5, 6, 0.6); padding: 2px 6px; border-radius: 3px;
    opacity: 0; transform: translateY(4px); pointer-events: none; }
.media-frame.scanned .mf-tag { animation: tag-flash 3s ease-in-out 1 forwards; }
@keyframes tag-flash { 0% { opacity: 0; transform: translateY(4px); } 14% { opacity: 1; transform: translateY(0); } 70% { opacity: 1; } 100% { opacity: 0; } }
.interlude-media .mf-tag { bottom: auto; top: 10px; }

/* CTA carved-obsidian texture detail */
.cta-card::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
    background-image: url("assets/img/tex-obsidian.webp"); background-size: cover; background-position: center;
    mix-blend-mode: overlay; opacity: 0.18; }

@media (prefers-reduced-motion: reduce) {
    .surv-hud .sh-rec { animation: none !important; }
    .mf-scanbar { display: none !important; }
    .rec-orb { display: none !important; }
}


/* ============================================================
   READABILITY + LAYERING — lift text out of the atmosphere
   ============================================================ */
/* a soft dark 'stage' behind the whole reading column so text separates
   from the busy full-bleed world (margins stay fully alive) */
#crt-screen::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(120% 80% at 50% 8%, rgba(6,7,9,0.0) 0%, rgba(6,7,9,0.0) 38%, rgba(5,6,8,0.5) 100%),
        linear-gradient(rgba(5,6,8,0.34), rgba(5,6,8,0.42));
    -webkit-mask: linear-gradient(#000, #000);
    backdrop-filter: blur(2px) brightness(0.86);
    -webkit-backdrop-filter: blur(2px) brightness(0.86);
}
#crt-screen > * { position: relative; z-index: 1; }
/* subtle dark halo under all column text so it reads over anything */
#crt-screen { text-shadow: 0 1px 3px rgba(0,0,0,0.55); }

/* stronger card lift = clearer layering */
.glass-panel {
    box-shadow:
        inset 0 1px 0 0 rgba(255,255,255,0.06),
        0 2px 0 0 rgba(0,0,0,0.4),
        calc(var(--shadow-dx, 0) * -1px) calc(var(--shadow-dy, 0) * -1px) 30px 0 rgba(0,0,0,0.8),
        calc(var(--shadow-dx, 0) * -2px) calc(var(--shadow-dy, 0) * -2px) 70px 0 rgba(0,0,0,0.9);
    border-color: rgba(126, 214, 230, 0.10);
}
/* brighter body copy in the dense cards */
.typo-desc, .primary-desc, .case-card p, .lexicon-item p, .bento-tile p { color: var(--text-secondary); }
.section-intro, .section-sub, .lead { color: var(--text-secondary); }

@media (prefers-reduced-motion: reduce) {
    .ro-core, .ro-ring { animation: none !important; }
    #crt-screen::before { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* keep the column backing light on mobile (perf): veil without backdrop blur */
@media (max-width: 900px) {
    #crt-screen::before { backdrop-filter: none; -webkit-backdrop-filter: none;
        background: linear-gradient(rgba(5,6,8,0.32), rgba(5,6,8,0.4)); }
}

/* ============================================================
   POP PASS — cards lift harder, body copy reads easier
   ============================================================ */
/* cards pop off the page: deeper shadow, lit top edge, clearer border */
.glass-panel {
    border-color: rgba(126, 214, 230, 0.14);
    box-shadow:
        inset 0 1.5px 0 0 rgba(126, 214, 230, 0.16),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.07),
        0 1px 0 0 rgba(0, 0, 0, 0.5),
        0 18px 40px -16px rgba(0, 0, 0, 0.9),
        calc(var(--shadow-dx, 0) * -1px) calc(var(--shadow-dy, 0) * -1px) 34px 0 rgba(0, 0, 0, 0.82),
        calc(var(--shadow-dx, 0) * -2px) calc(var(--shadow-dy, 0) * -2px) 80px 0 rgba(0, 0, 0, 0.92);
}
/* a touch more separation behind the column */
#crt-screen::before { background:
    radial-gradient(120% 80% at 50% 8%, rgba(6,7,9,0) 0%, rgba(6,7,9,0) 34%, rgba(4,5,7,0.6) 100%),
    linear-gradient(rgba(4,5,7,0.42), rgba(4,5,7,0.5)); }

/* body copy: brighter, less thin, a little larger = easier to read */
.primary-desc { font-weight: 400; color: #DDE2EA; }
.typo-desc { font-size: 0.95rem; line-height: 1.65; color: #CFD5DE; }
.case-card p, .lexicon-item p, .bento-tile p, .section-intro, .section-sub, .lead { color: #CFD5DE; }
#crt-screen p { letter-spacing: 0.1px; }

/* HUD aesthetic-only disclaimer */
.surv-hud .sh-note { margin-top: 3px; font-size: 0.5rem; letter-spacing: 1px; color: rgba(150, 160, 172, 0.6);
    text-shadow: none; }
@media (max-width: 720px) { .surv-hud .sh-note { display: none; } }

/* ============================================================
   TYPOLOGY DEEP DOSSIERS — expandable, citable
   ============================================================ */
.typology-grid { align-items: start; }
.typo-decrypt {
    margin-top: 1.1rem; width: 100%;
    display: flex; align-items: center; gap: 0.55rem;
    background: rgba(126, 214, 230, 0.05);
    border: 1px solid rgba(126, 214, 230, 0.22);
    color: var(--color-cyan);
    font-size: 0.6rem; letter-spacing: 2px;
    padding: 0.62rem 0.8rem; border-radius: 6px;
    cursor: pointer; text-align: left;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.typo-decrypt:hover { background: rgba(126, 214, 230, 0.1); border-color: rgba(126, 214, 230, 0.42);
    box-shadow: 0 0 16px -4px rgba(126, 214, 230, 0.55); }
.typo-decrypt:focus-visible { outline: 2px solid var(--color-cyan); outline-offset: 2px; }
.td-caret { font-size: 0.7rem; transition: transform 0.4s var(--ease-smooth); }
.typo-decrypt[aria-expanded="true"] .td-caret { transform: rotate(90deg); }
.typo-decrypt .td-close { display: none; }
.typo-decrypt[aria-expanded="true"] .td-open { display: none; }
.typo-decrypt[aria-expanded="true"] .td-close { display: inline; }

.typo-dossier {
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height 0.55s var(--ease-smooth), opacity 0.4s ease, margin-top 0.4s ease;
}
.typo-dossier.open { max-height: 2400px; opacity: 1; margin-top: 0.9rem; }
.td-inner { padding: 1.15rem 1.15rem 1.25rem; border: 1px solid rgba(126, 214, 230, 0.15);
    border-radius: 8px; background: rgba(6, 8, 10, 0.6); }
.td-row { margin-bottom: 0.95rem; }
.td-row:last-of-type { margin-bottom: 0; }
.td-key { display: block; font-size: 0.55rem; letter-spacing: 2.5px; color: var(--color-cyan);
    margin-bottom: 0.32rem; opacity: 0.88; }
.td-val { font-size: 0.9rem; line-height: 1.66; color: #CFD5DE; margin: 0; }
.td-val em { color: #EAEFF4; font-style: italic; }
.td-signs { margin: 0.1rem 0 0; padding-left: 0; list-style: none; }
.td-signs li { position: relative; padding-left: 1.15rem; font-size: 0.86rem; line-height: 1.55;
    color: #C2C9D2; margin-bottom: 0.34rem; }
.td-signs li:last-child { margin-bottom: 0; }
.td-signs li::before { content: "\25B8"; position: absolute; left: 0; top: 0.1rem;
    color: var(--color-crimson); font-size: 0.68rem; }
.td-cite { display: inline-block; margin-top: 0.4rem; font-size: 0.57rem; letter-spacing: 0.8px;
    color: #9fb9c2; text-decoration: none; border-bottom: 1px dotted rgba(126, 214, 230, 0.4); }
.td-cite:hover { color: var(--color-cyan); border-bottom-color: var(--color-cyan); }
.td-quote { margin: 1rem 0 0; padding: 0.2rem 0 0.2rem 0.95rem;
    border-left: 2px solid var(--color-crimson);
    font-size: 1rem; font-style: italic; color: #EAEFF4; line-height: 1.42; }

@media (prefers-reduced-motion: reduce) {
    .typo-dossier { transition: opacity 0.18s ease; }
    .typo-dossier.open { max-height: none; }
    .td-caret { transition: none; }
}

/* ============================================================
   ORIGIN ARC — "Descent Sequence" ladder
   ============================================================ */
.origin-section { max-width: 900px; }
.descent-ladder { list-style: none; margin: 2.4rem 0 0; padding: 0; position: relative; }
.descent-ladder::before {
    content: ""; position: absolute; left: 26px; top: 26px; bottom: 26px; width: 2px;
    background: linear-gradient(to bottom,
        rgba(126, 214, 230, 0.6) 0%, rgba(150, 152, 160, 0.42) 52%, rgba(225, 29, 42, 0.55) 100%);
    opacity: 0.55; border-radius: 2px;
}
.descent-stage {
    position: relative; display: flex; gap: 1.35rem; align-items: flex-start;
    padding: 0.7rem 0 1.35rem; margin: 0;
}
.descent-stage:not(:last-child) { border-bottom: 1px solid rgba(126, 214, 230, 0.07); }
.descent-stage + .descent-stage { padding-top: 1.35rem; }
.ds-num {
    flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.12rem; font-weight: 700; color: var(--color-cyan);
    background: rgba(8, 10, 12, 0.97);
    border: 1px solid rgba(var(--accent-rgb, 126, 214, 230), 0.55);
    box-shadow: 0 0 20px -7px rgba(var(--accent-rgb, 126, 214, 230), 0.7),
        inset 0 0 0 4px rgba(8, 10, 12, 0.9);
    position: relative; z-index: 1; transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s ease;
}
.descent-stage:hover .ds-num { transform: scale(1.06);
    box-shadow: 0 0 26px -5px rgba(var(--accent-rgb, 126, 214, 230), 0.85), inset 0 0 0 4px rgba(8, 10, 12, 0.9); }
.ds-body { flex: 1 1 auto; padding-top: 0.15rem; }
.ds-title { font-size: 1.12rem; color: var(--text-primary); margin: 0 0 0.42rem; font-weight: 600; letter-spacing: 0.3px; }
.ds-text { font-size: 0.94rem; line-height: 1.66; color: #CFD5DE; margin: 0 0 0.55rem; }
.ds-tell { font-size: 0.58rem; letter-spacing: 1.4px; color: var(--color-crimson); opacity: 0.85; margin: 0; }
.origin-coda {
    margin: 2rem 0 0; padding: 1.1rem 1.3rem; border-left: 2px solid var(--color-crimson);
    background: rgba(225, 29, 42, 0.04); border-radius: 0 8px 8px 0;
    font-size: 0.96rem; line-height: 1.6; color: #E2E7EE; font-style: italic;
}
/* stagger reveal down the ladder */
.descent-stage:nth-child(2) { transition-delay: 0.05s; }
.descent-stage:nth-child(3) { transition-delay: 0.1s; }
.descent-stage:nth-child(4) { transition-delay: 0.15s; }
.descent-stage:nth-child(5) { transition-delay: 0.2s; }
.descent-stage:nth-child(6) { transition-delay: 0.25s; }
@media (max-width: 640px) {
    .descent-ladder::before { left: 22px; }
    .ds-num { width: 46px; height: 46px; font-size: 1rem; }
    .descent-stage { gap: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
    .descent-stage { transition-delay: 0s !important; }
}

/* ============================================================
   GLOBAL KEYBOARD FOCUS — accessibility baseline (audit fix)
   Visible ring for keyboard users only; overrides outline:none resets.
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-cyan) !important;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== ABOUT / colophon (replaces email CTA) ===== */
.cta-grid-single { grid-template-columns: 1fr !important; }
.cta-grid-single .cta-text { max-width: 780px; }
.cta-contact { margin-top: 1.15rem; font-size: 0.72rem; letter-spacing: 1px; color: var(--text-muted); }
.cta-contact a { color: var(--color-cyan); text-decoration: none; border-bottom: 1px dotted rgba(126, 214, 230, 0.5); }
.cta-contact a:hover { color: #fff; border-bottom-color: var(--color-cyan); }
.edu-disclaimer a { color: var(--color-cyan); text-decoration: none; border-bottom: 1px dotted rgba(126, 214, 230, 0.45); }
.edu-disclaimer a:hover { color: #fff; }

/* ============================================================
   COOKIE CONSENT BANNER (GDPR/ePrivacy + Consent Mode)
   ============================================================ */
.consent-banner {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
    z-index: 2147483000; width: min(680px, calc(100vw - 32px));
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    pointer-events: auto;
    padding: 0.9rem 1.1rem; border-radius: 10px;
    background: rgba(10, 12, 14, 0.97); border: 1px solid rgba(126, 214, 230, 0.25);
    box-shadow: 0 18px 50px -12px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.06);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    animation: consent-in 0.5s var(--ease-smooth) both;
}
.consent-banner[hidden] { display: none !important; }
@keyframes consent-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.consent-text { margin: 0; flex: 1 1 300px; font-size: 0.78rem; line-height: 1.5; color: var(--text-secondary); }
.consent-text a { color: var(--color-cyan); text-decoration: none; border-bottom: 1px dotted rgba(126,214,230,0.5); }
.consent-text a:hover { color: #fff; }
.consent-actions { display: flex; gap: 0.55rem; flex: 0 0 auto; }
.consent-btn { font-size: 0.62rem; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
    padding: 0.55rem 1.05rem; border-radius: 6px; transition: all 0.25s ease; }
.consent-decline { background: transparent; border: 1px solid rgba(155,160,170,0.35); color: var(--text-secondary); }
.consent-decline:hover { border-color: var(--text-secondary); color: #fff; }
.consent-accept { background: var(--color-cyan); border: 1px solid var(--color-cyan); color: #04181d; font-weight: 700; }
.consent-accept:hover { box-shadow: 0 0 18px -4px rgba(126,214,230,0.7); }
@media (max-width: 520px) { .consent-banner { bottom: 10px; } .consent-actions { width: 100%; } .consent-btn { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .consent-banner { animation: none; } }
