@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@300;600;900&family=Orbitron:wght@400;700;900&display=swap');

:root {
    --bg-void: #020205;
    --bg-card: rgba(8, 8, 16, 0.65);
    --text-primary: #f0f0f5;
    --text-muted: #8a8ab0;
    --color-cyan: #00f2ff;
    --color-purple: #b600ff;
    --color-cyan-glow: rgba(0, 242, 255, 0.45);
    --color-purple-glow: rgba(182, 0, 255, 0.4);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow-cyan: rgba(0, 242, 255, 0.25);
    --border-glow-purple: rgba(182, 0, 255, 0.25);
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    --font-tech: 'Orbitron', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--color-purple), var(--color-cyan));
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Scanline Effect & CRT Flicker */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    opacity: 0.8;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-cyan);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}
.custom-cursor-dot {
    width: 4px;
    height: 4px;
    background-color: var(--color-purple);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
}

/* Floating occult background particles */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 10% 20%, rgba(182, 0, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(2, 2, 5, 1) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.ambient-stars {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    opacity: 0.15;
    z-index: -1;
    animation: slowStarMove 120s linear infinite;
}

@keyframes slowStarMove {
    from { background-position: 0 0, 40px 60px, 130px 270px; }
    to { background-position: 550px 1100px, 350px 700px, 250px 500px; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    padding: 1rem 0;
    background: rgba(2, 2, 5, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-tech);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.logo span {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--color-cyan);
    letter-spacing: 5px;
    margin-top: -2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--color-cyan);
    text-shadow: 0 0 8px var(--color-cyan-glow);
}

/* Top corner buttons */
.top-controls {
    position: fixed;
    top: 1.3rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sound-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-tech);
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.sound-toggle:hover {
    background: var(--color-purple);
    border-color: var(--color-purple);
    box-shadow: 0 0 10px var(--color-purple-glow);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle, transparent 20%, var(--bg-void) 90%), url('hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(2, 2, 5, 0.3), var(--bg-void));
    z-index: 1;
}

/* Cybernetic grid overlay */
.cyber-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridScroll 20s linear infinite;
    z-index: 2;
    mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}

@keyframes gridScroll {
    from { background-position: 0 0; }
    to { background-position: 0 1000px; }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    text-align: center;
    padding: 0 1.5rem;
}

/* Occult circular seal background */
.occult-circle {
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px dashed rgba(182, 0, 255, 0.15);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    z-index: 0;
    pointer-events: none;
    animation: rotateCircle 60s linear infinite;
}
.occult-circle::before {
    content: '';
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 50%;
}
.occult-circle::after {
    content: '';
    position: absolute;
    top: 40px; left: 40px; right: 40px; bottom: 40px;
    border: 2px dashed rgba(182, 0, 255, 0.08);
    border-radius: 50%;
}

@keyframes rotateCircle {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.glitch {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 4.5rem;
    letter-spacing: 5px;
    position: relative;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
}

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

.glitch::before {
    left: 3px;
    text-shadow: -3px 0 var(--color-cyan);
    clip: rect(44px, 9999px, 56px, 0);
    animation: glitch-anim 4s infinite linear alternate-reverse;
}

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

.subtitle {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-cyan);
    letter-spacing: 6px;
    text-shadow: 0 0 10px var(--color-cyan-glow);
    margin-bottom: 2rem;
}

/* Vertical decorative poetry side texts */
.side-poetry {
    position: absolute;
    left: 4%;
    top: 30%;
    writing-mode: vertical-rl;
    font-family: var(--font-serif);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 5px;
    opacity: 0.4;
    z-index: 10;
}
.side-poetry-right {
    position: absolute;
    right: 4%;
    top: 30%;
    writing-mode: vertical-rl;
    font-family: var(--font-serif);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 5px;
    opacity: 0.4;
    z-index: 10;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.btn {
    font-family: var(--font-sans);
    padding: 0.9rem 2.2rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 2px;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.85rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
    color: var(--bg-void);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 35px rgba(0, 242, 255, 0.6), 0 0 15px rgba(182, 0, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--color-cyan);
    color: var(--color-cyan);
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(0, 242, 255, 0.08);
    box-shadow: 0 0 20px var(--color-cyan-glow);
    transform: translateY(-2px);
}

/* Sections Global */
.section {
    padding: 120px 0;
    position: relative;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 6px;
    text-shadow: 0 0 20px rgba(182, 0, 255, 0.2);
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--color-purple), var(--color-cyan));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-japanese {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-cyan);
    letter-spacing: 12px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

/* Glassmorphism Cards */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-panel:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.15);
    transform: translateY(-5px);
}

/* Universe Cosmology Section */
.universe-intro {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    line-height: 2;
    color: #e2e2e8;
}

.universe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.universe-card h3 {
    font-family: var(--font-serif);
    color: var(--color-cyan);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.universe-card h3::before {
    content: '◈';
    color: var(--color-purple);
}

.universe-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Interactive Decryption Terminal */
.terminal-wrapper {
    max-width: 850px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.terminal-header {
    background: #090912;
    padding: 0.7rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dot.red { background-color: #ff5f56; }
.terminal-dot.yellow { background-color: #ffbd2e; }
.terminal-dot.green { background-color: #27c93f; }

.terminal-title {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    color: var(--color-cyan);
    letter-spacing: 2px;
}

.terminal-body {
    background: #020207;
    height: 400px;
    padding: 1.5rem;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    color: #4df;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.terminal-line {
    word-break: break-all;
    line-height: 1.5;
}

.terminal-output {
    white-space: pre-wrap;
    color: var(--text-primary);
}

.terminal-input-row {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.terminal-prompt {
    color: var(--color-purple);
    margin-right: 8px;
    font-weight: bold;
}

.terminal-input {
    background: transparent;
    border: none;
    color: var(--color-cyan);
    font-family: var(--font-tech);
    font-size: 0.85rem;
    flex: 1;
    outline: none;
    caret-color: var(--color-cyan);
}

/* Timeline */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    width: 2px;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, transparent, var(--color-purple), var(--color-cyan), transparent);
}

.timeline-node {
    margin-bottom: 6rem;
    position: relative;
    width: 50%;
    padding: 0 3rem;
}

.timeline-node:nth-child(even) {
    margin-left: 50%;
}

.timeline-node::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-void);
    border: 3px solid var(--color-cyan);
    top: 5px;
    z-index: 5;
    box-shadow: 0 0 10px var(--color-cyan-glow);
}

.timeline-node:nth-child(odd)::after {
    right: -8px;
}

.timeline-node:nth-child(even)::after {
    left: -8px;
    border-color: var(--color-purple);
    box-shadow: 0 0 10px var(--color-purple-glow);
}

.timeline-node-time {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-cyan);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 0 0 8px var(--color-cyan-glow);
}

.timeline-node:nth-child(even) .timeline-node-time {
    color: var(--color-purple);
    text-shadow: 0 0 8px var(--color-purple-glow);
}

.timeline-node-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.timeline-node-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Glossary Tab Section */
.glossary-tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.glossary-tab-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-family: var(--font-sans);
    padding: 0.8rem 1.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.glossary-tab-btn:hover {
    color: var(--color-cyan);
    border-color: var(--color-cyan);
}

.glossary-tab-btn.active {
    background: linear-gradient(135deg, rgba(182, 0, 255, 0.2), rgba(0, 242, 255, 0.2));
    border-color: var(--color-cyan);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.15);
}

.glossary-content {
    display: none;
    max-width: 900px;
    margin: 0 auto;
}

.glossary-content.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.glossary-panel {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 3rem;
}

.glossary-visual-box {
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    background: radial-gradient(circle, rgba(182,0,255,0.1), transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    position: relative;
    overflow: hidden;
}

.glossary-seal-bg {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 50%;
    animation: rotateCircle 30s linear infinite reverse;
}

.glossary-visual-text {
    font-family: var(--font-tech);
    color: var(--color-cyan);
    font-size: 2.5rem;
    font-weight: bold;
    z-index: 1;
    text-shadow: 0 0 10px var(--color-cyan-glow);
}

.glossary-details h3 {
    font-family: var(--font-serif);
    color: var(--color-cyan);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.glossary-details h4 {
    font-family: var(--font-sans);
    color: var(--color-purple);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.glossary-details p {
    color: #d1d1db;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

/* Character Dossier (RPG System Preview) */
.dossier-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.dossier-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dossier-option {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 1.2rem;
    border-radius: 6px;
    text-align: left;
    transition: all 0.3s;
}

.dossier-option:hover {
    border-color: var(--color-purple);
    transform: translateX(5px);
}

.dossier-option.active {
    border-color: var(--color-cyan);
    background: linear-gradient(to right, rgba(0,242,255,0.1), transparent);
}

.dossier-option h4 {
    font-family: var(--font-serif);
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.dossier-option span {
    font-family: var(--font-tech);
    color: var(--color-cyan);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.dossier-display {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 2rem;
}

.dossier-avatar {
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: #03030b;
    height: 320px;
}

.dossier-hologram {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to bottom, transparent, rgba(0, 242, 255, 0.15)),
        radial-gradient(circle at center, rgba(182, 0, 255, 0.2) 0%, transparent 70%);
    position: relative;
}

.dossier-hologram::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    background: repeating-linear-gradient(
        transparent, transparent 2px,
        rgba(0, 242, 255, 0.08) 2px, rgba(0, 242, 255, 0.08) 4px
    );
}

.hologram-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    stroke: var(--color-cyan);
    stroke-width: 1.5;
    fill: none;
    opacity: 0.7;
    filter: drop-shadow(0 0 8px var(--color-cyan));
    animation: pulseHolo 4s ease-in-out infinite;
}

@keyframes pulseHolo {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.05); }
}

.dossier-info h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.dossier-class-code {
    font-family: var(--font-tech);
    color: var(--color-cyan);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: block;
}

.dossier-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.dossier-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dossier-stat-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.dossier-stat-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-family: var(--font-tech);
}

.dossier-stat-bar-bg {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.dossier-stat-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--color-purple), var(--color-cyan));
    width: 0;
    transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Media Cards Hub */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3rem;
}

.media-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: all 0.4s;
}

.media-card:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.2);
    transform: translateY(-5px);
}

.media-img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.6) brightness(0.8);
    transition: transform 0.5s, filter 0.5s;
}

.media-card:hover img {
    transform: scale(1.05);
    filter: grayscale(0) brightness(0.9);
}

.media-info {
    padding: 2rem;
}

.media-tag {
    font-family: var(--font-tech);
    color: var(--color-purple);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.media-info h4 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 1rem;
}

.media-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer styling */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 5rem 0 3rem 0;
    background: #010103;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h5 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-cyan);
    margin-bottom: 1.5rem;
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    font-size: 0.75rem;
    color: #555577;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--color-cyan);
}

/* Scroll Indication animation */
.scroll-ind {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-family: var(--font-tech);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--color-cyan);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-ind-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-cyan), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-ind-arrow::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    background: #fff;
    top: 0; left: 0;
    animation: arrowFlow 2s infinite linear;
}

@keyframes arrowFlow {
    0% { top: -10px; }
    100% { top: 40px; }
}

/* Scroll reveal helper classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsiveness overrides */
@media (max-width: 900px) {
    .glitch { font-size: 3rem; }
    .subtitle { font-size: 1.1rem; }
    .timeline-container::before { left: 0; }
    .timeline-node { width: 100%; padding: 0 1.5rem; margin-left: 0 !important; }
    .timeline-node::after { left: -6px !important; right: auto !important; }
    .glossary-panel { grid-template-columns: 1fr; gap: 2rem; }
    .dossier-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .dossier-display { grid-template-columns: 1fr; }
    .dossier-avatar { height: 260px; }
    nav ul { display: none; }
}

@keyframes glitch-anim {
    0% { clip: rect(21px, 9999px, 86px, 0); }
    5% { clip: rect(85px, 9999px, 5px, 0); }
    10% { clip: rect(6px, 9999px, 85px, 0); }
    15% { clip: rect(100px, 9999px, 12px, 0); }
    20% { clip: rect(43px, 9999px, 54px, 0); }
    25% { clip: rect(95px, 9999px, 98px, 0); }
    30% { clip: rect(12px, 9999px, 8px, 0); }
    35% { clip: rect(82px, 9999px, 47px, 0); }
    40% { clip: rect(1px, 9999px, 92px, 0); }
    45% { clip: rect(74px, 9999px, 12px, 0); }
    50% { clip: rect(38px, 9999px, 99px, 0); }
    55% { clip: rect(98px, 9999px, 73px, 0); }
    60% { clip: rect(10px, 9999px, 44px, 0); }
    65% { clip: rect(85px, 9999px, 54px, 0); }
    70% { clip: rect(64px, 9999px, 83px, 0); }
    75% { clip: rect(4px, 9999px, 12px, 0); }
    80% { clip: rect(90px, 9999px, 83px, 0); }
    85% { clip: rect(32px, 9999px, 64px, 0); }
    90% { clip: rect(75px, 9999px, 94px, 0); }
    95% { clip: rect(12px, 9999px, 32px, 0); }
    100% { clip: rect(85px, 9999px, 11px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(76px, 9999px, 116px, 0); }
    11.1% { clip: rect(43px, 9999px, 85px, 0); }
    22.2% { clip: rect(92px, 9999px, 2px, 0); }
    33.3% { clip: rect(12px, 9999px, 94px, 0); }
    44.4% { clip: rect(84px, 9999px, 34px, 0); }
    55.5% { clip: rect(2px, 9999px, 85px, 0); }
    66.6% { clip: rect(92px, 9999px, 10px, 0); }
    77.7% { clip: rect(54px, 9999px, 43px, 0); }
    88.8% { clip: rect(82px, 9999px, 94px, 0); }
    100% { clip: rect(12px, 9999px, 12px, 0); }
}
