/* 20241204.com — Cinematic Documentary Noir Memorial */
/* Palette: #0a0a0f, #0d1b2a, #1b4965, #4a4e54, #8b0000, #b8c4cc, #c1121f, #d4a017, #e8e8e8 */

/* ========================================
   CSS Custom Properties (scroll-driven)
   ======================================== */
:root {
    --bg-current: #0a0a0f;
    --text-current: #b8c4cc;
    --accent-current: #c1121f;
    --phase-progress: 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-current);
    color: var(--text-current);
    font-family: 'Noto Serif KR', serif;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
    word-break: keep-all;
    transition: background-color 1.5s ease;
}

/* ========================================
   Scanline Overlay — CRT / Emergency Broadcast
   ======================================== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 3px
    );
}

/* ========================================
   Progress Bar (top edge)
   ======================================== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #c1121f, #d4a017);
    z-index: 9998;
    transition: width 0.1s linear;
}

/* ========================================
   Timeline Navigation (right edge)
   ======================================== */
.timeline-nav {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9997;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.timeline-nav.visible {
    opacity: 1;
}

.timeline-dot {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.timeline-dot::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a4e54;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.timeline-dot.active::after {
    background: #c1121f;
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(193, 18, 31, 0.5);
}

.dot-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: #4a4e54;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.timeline-dot:hover .dot-label,
.timeline-dot.active .dot-label {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot.active .dot-label {
    color: #c1121f;
}

/* ========================================
   Time Indicator (top-right)
   ======================================== */
.time-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9996;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.time-indicator.visible {
    opacity: 1;
}

.time-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-feature-settings: "kern" 1;
    font-size: 2rem;
    color: #c1121f;
    letter-spacing: 0.05em;
    line-height: 1;
}

.time-suffix {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #4a4e54;
    letter-spacing: 0.25em;
    margin-top: 2px;
}

/* ========================================
   Domain Watermark (bottom-left)
   ======================================== */
.domain-watermark {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 9996;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #4a4e54;
    letter-spacing: 0.15em;
    opacity: 0.5;
}

/* ========================================
   Chapter Base Styles
   ======================================== */
.chapter {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.chapter.in-view {
    opacity: 1;
}

.chapter-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

/* ========================================
   Timestamp Watermark (behind content)
   ======================================== */
.timestamp-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-feature-settings: "kern" 1;
    font-size: clamp(5rem, 18vw, 14rem);
    color: #1b4965;
    opacity: 0.15;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* ========================================
   Diagonal Section Dividers
   ======================================== */
.diagonal-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
    z-index: 3;
}

.diagonal-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5%;
    width: 110%;
    height: 100%;
    transform: skewY(-2deg);
    transform-origin: top left;
}

.divider-red::before {
    background: linear-gradient(90deg, #8b0000 0%, #c1121f 50%, #8b0000 100%);
    opacity: 0.25;
}

.divider-navy::before {
    background: linear-gradient(90deg, #0d1b2a 0%, #1b4965 50%, #0d1b2a 100%);
    opacity: 0.4;
}

.divider-amber::before {
    background: linear-gradient(90deg, #0a0a0f 0%, #d4a017 50%, #0a0a0f 100%);
    opacity: 0.2;
}

.divider-dawn::before {
    background: linear-gradient(90deg, #0d1b2a 0%, #b8c4cc 50%, #0d1b2a 100%);
    opacity: 0.15;
}

.divider-light::before {
    background: linear-gradient(90deg, #1b4965 0%, #b8c4cc 50%, #1b4965 100%);
    opacity: 0.1;
}

/* ========================================
   CHAPTER 1: The Declaration — 22:20 KST
   ======================================== */
#chapter1 {
    background-color: #0a0a0f;
    min-height: 100vh;
}

.declaration-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    text-align: center;
    position: relative;
}

/* Typewriter opening */
.typewriter-container {
    margin-bottom: 3rem;
    min-height: 4rem;
}

.typewriter-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-feature-settings: "kern" 1;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    color: #e8e8e8;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #e8e8e8;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Martial law declaration */
.martial-law-declaration {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.martial-law-declaration.visible {
    opacity: 1;
    transform: translateY(0);
}

.declaration-korean {
    font-family: 'Black Han Sans', sans-serif;
    font-size: clamp(3rem, 12vw, 9rem);
    color: #c1121f;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-shadow: 0 0 80px rgba(193, 18, 31, 0.4), 0 0 160px rgba(193, 18, 31, 0.15);
    margin-bottom: 0.8rem;
}

.declaration-english {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-feature-settings: "kern" 1;
    font-size: clamp(0.9rem, 2.5vw, 1.8rem);
    color: #b8c4cc;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Broadcast breaking news bar */
.broadcast-bar {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    padding: 14px 24px;
    background: #8b0000;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-feature-settings: "kern" 1;
    font-size: 0.85rem;
    color: #e8e8e8;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.broadcast-bar.visible {
    opacity: 1;
    transform: translateY(0);
}

.broadcast-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c1121f;
    flex-shrink: 0;
    animation: pulse-dot 1.2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(193, 18, 31, 0.6); }
    50% { opacity: 0.4; box-shadow: 0 0 8px 4px rgba(193, 18, 31, 0.3); }
}

.broadcast-label {
    white-space: nowrap;
}

/* ========================================
   CHAPTER 2: Confusion — 22:30-23:00 KST
   ======================================== */
#chapter2 {
    background: linear-gradient(135deg, #0d1b2a 0%, #0a0a0f 100%);
}

/* Police light sweep */
.police-light-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(193, 18, 31, 0.06) 25%,
        transparent 50%,
        rgba(27, 73, 101, 0.06) 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: police-sweep 4s linear infinite;
}

#chapter2.in-view .police-light-sweep {
    opacity: 1;
}

@keyframes police-sweep {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Korean text rain (populated by JS) */
.text-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.rain-char {
    position: absolute;
    font-family: 'Noto Serif KR', serif;
    font-size: 0.9rem;
    color: #b8c4cc;
    writing-mode: vertical-rl;
    animation: rain-fall linear infinite;
    pointer-events: none;
}

@keyframes rain-fall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Split screen layout */
.split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    min-height: 80vh;
    align-items: start;
    padding-top: 4rem;
}

@media (max-width: 768px) {
    .split-screen {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Official column (left) */
.official-column {
    padding-right: 2rem;
    border-right: 1px solid rgba(27, 73, 101, 0.4);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (max-width: 768px) {
    .official-column {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(27, 73, 101, 0.4);
        padding-bottom: 2rem;
    }
}

.official-announcement {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.official-announcement.visible {
    opacity: 1;
    transform: translateX(0);
}

.announcement-header {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-feature-settings: "kern" 1;
    font-size: 0.75rem;
    color: #d4a017;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d4a017;
}

.official-announcement p {
    font-family: 'Noto Serif KR', serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    color: #b8c4cc;
    margin-bottom: 1.5rem;
}

.announcement-stamp {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #4a4e54;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Social column (right) */
.social-column {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Notification cards */
.notification-card {
    background: rgba(13, 27, 42, 0.5);
    border: 1px solid rgba(27, 73, 101, 0.3);
    border-left: 3px solid #c1121f;
    border-radius: 8px;
    padding: 1.2rem 1.2rem 1.2rem 1.4rem;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.notification-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
}

.notif-app {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-feature-settings: "kern" 1;
    font-size: 0.7rem;
    color: #1b4965;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.notif-time {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #4a4e54;
}

.notif-body {
    font-family: 'IBM Plex Mono', monospace;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #b8c4cc;
}

.notif-translate {
    font-family: 'Noto Serif KR', serif;
    font-size: 0.75rem;
    color: #4a4e54;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ========================================
   CHAPTER 3: National Assembly — 23:00-00:00
   ======================================== */
#chapter3 {
    background: linear-gradient(180deg, #0a0a0f 0%, #0d1b2a 50%, #0a0a0f 100%);
}

.assembly-heading {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.assembly-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

.assembly-title {
    font-family: 'Black Han Sans', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: #e8e8e8;
    margin-bottom: 0.3rem;
}

.assembly-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-feature-settings: "kern" 1;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    color: #4a4e54;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.mobilization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.citizen-report {
    position: relative;
    padding: 1.8rem;
    padding-left: 2.5rem;
    border-left: 2px solid #c1121f;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.citizen-report.visible {
    opacity: 1;
    transform: translateY(0);
}

.report-marker {
    position: absolute;
    left: -6px;
    top: 1.8rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c1121f;
    box-shadow: 0 0 14px rgba(193, 18, 31, 0.6);
}

.report-location {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-feature-settings: "kern" 1;
    font-size: 0.8rem;
    color: #d4a017;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.report-text {
    font-family: 'Noto Serif KR', serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #b8c4cc;
    margin-bottom: 0.8rem;
}

.report-time-stamp {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #1b4965;
    letter-spacing: 0.1em;
}

/* Breath fog effect */
.breath-fog {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    pointer-events: none;
    z-index: 0;
}

.fog-puff {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(184, 196, 204, 0.08) 0%, transparent 70%);
    animation: fog-pulse 4s ease-in-out infinite;
}

@keyframes fog-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* ========================================
   CHAPTER 4: The Vote — 00:00-01:00
   ======================================== */
#chapter4 {
    background-color: #0d1b2a;
    transition: background-color 2s ease;
}

#chapter4.vote-amber {
    background-color: #1a1608;
}

.assembly-vote-scene {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
}

.vote-counter {
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease, transform 1s ease;
}

.vote-counter.visible {
    opacity: 1;
    transform: scale(1);
}

.vote-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-feature-settings: "kern" 1;
    font-size: 0.8rem;
    color: #4a4e54;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.vote-question {
    font-family: 'Black Han Sans', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    color: #b8c4cc;
    margin-bottom: 0.5rem;
}

.vote-question-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-feature-settings: "kern" 1;
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    color: #4a4e54;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.vote-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.vote-for .vote-count {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-feature-settings: "kern" 1;
    font-size: clamp(4rem, 14vw, 10rem);
    color: #d4a017;
    display: block;
    line-height: 1;
    text-shadow: 0 0 40px rgba(212, 160, 23, 0.3);
}

.vote-against .vote-count {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-feature-settings: "kern" 1;
    font-size: clamp(4rem, 14vw, 10rem);
    color: #4a4e54;
    display: block;
    line-height: 1;
}

.vote-unit {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-feature-settings: "kern" 1;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    display: block;
    margin-top: 0.5rem;
}

.vote-for .vote-unit {
    color: #d4a017;
}

.vote-against .vote-unit {
    color: #4a4e54;
}

.vote-divider-line {
    width: 2px;
    height: 80px;
    background: #1b4965;
    flex-shrink: 0;
}

.vote-status {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #4a4e54;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.vote-result {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-feature-settings: "kern" 1;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #d4a017;
    letter-spacing: 0.4em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.vote-result.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   CHAPTER 5: Resolution — 01:00 KST
   ======================================== */
#chapter5 {
    background: linear-gradient(180deg, #0d1b2a 0%, #0a0a0f 100%);
}

.resolution-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    text-align: center;
}

.resolution-content {
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.resolution-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.resolution-time {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #4a4e54;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    display: block;
}

.resolution-headline {
    font-family: 'Black Han Sans', sans-serif;
    font-size: clamp(3rem, 10vw, 7rem);
    color: #d4a017;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 60px rgba(212, 160, 23, 0.3);
}

.resolution-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-feature-settings: "kern" 1;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    color: #b8c4cc;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.resolution-body {
    font-family: 'Noto Serif KR', serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #b8c4cc;
}

/* ========================================
   CHAPTER 6: Dawn / Aftermath
   ======================================== */
#chapter6 {
    background: linear-gradient(180deg, #0a0a0f 0%, #0d1b2a 35%, #1b4965 70%, #b8c4cc 100%);
    min-height: 100vh;
}

.aftermath-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    text-align: center;
}

.aftermath-content {
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.aftermath-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.aftermath-quote {
    font-family: 'Noto Serif KR', serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 2.8vw, 1.6rem);
    line-height: 1.9;
    color: #e8e8e8;
    font-style: italic;
    margin: 0 0 1rem 0;
    padding: 0 2rem;
    border: none;
    position: relative;
}

.aftermath-quote::before {
    content: '\201C';
    position: absolute;
    left: -0.3rem;
    top: -0.8rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    color: #1b4965;
    font-style: normal;
}

.aftermath-quote::after {
    content: '\201D';
    position: absolute;
    right: -0.3rem;
    bottom: -1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    color: #1b4965;
    font-style: normal;
}

.aftermath-quote-translate {
    font-family: 'Noto Serif KR', serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #b8c4cc;
    font-style: italic;
    margin-bottom: 3rem;
}

/* Vigil lights */
.vigil-lights {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 2.5rem 0;
    flex-wrap: wrap;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.vigil-light {
    width: 3px;
    border-radius: 2px;
    background: #d4a017;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: flicker 3s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    25% { opacity: 0.8; transform: scaleY(1.1); }
    50% { opacity: 0.2; transform: scaleY(0.95); }
    75% { opacity: 0.9; transform: scaleY(1.05); }
}

.aftermath-coda {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-feature-settings: "kern" 1;
    font-size: 0.9rem;
    color: #0d1b2a;
    letter-spacing: 0.05em;
    margin-top: 2rem;
}

/* ========================================
   Fractured Grid Lines (decorative)
   ======================================== */
.fracture-line {
    position: absolute;
    background: #4a4e54;
    opacity: 0;
    transition: opacity 2s ease;
    pointer-events: none;
    z-index: 0;
}

.fracture-line.visible {
    opacity: 1;
    animation: fracture-break 6s ease-in-out infinite;
}

@keyframes fracture-break {
    0%, 100% { opacity: 0.5; }
    30% { opacity: 0.8; }
    50% { opacity: 0.1; }
    70% { opacity: 0.6; }
}

/* ========================================
   Responsive adjustments
   ======================================== */
@media (max-width: 600px) {
    .chapter-content {
        padding: 1.5rem;
    }

    .timestamp-watermark {
        font-size: clamp(3rem, 14vw, 8rem);
    }

    .timeline-nav {
        right: 8px;
        gap: 16px;
    }

    .dot-label {
        display: none;
    }

    .time-indicator {
        top: 12px;
        right: 12px;
    }

    .time-value {
        font-size: 1.4rem;
    }

    .domain-watermark {
        font-size: 0.6rem;
    }

    .vote-display {
        gap: 1.5rem;
    }

    .diagonal-divider {
        height: 50px;
    }
}
