/* ============================================
   20241204.com — Design Language Stylesheet
   Memorial: South Korea's Martial Law Crisis
   ============================================ */

/* CSS Custom Properties — Palette from DESIGN.md */
:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #141418;
    --text-primary: #e8e8ec;
    --text-secondary: #8a8a94;
    --accent-emergency: #d42020;
    --accent-democracy: #1a3a6e;
    --accent-civilian: #4a8cdb;
    --accent-timestamp: #c4922a;
    --highlight-hope: #f5e6d0;
}

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

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Noise Texture Overlay
   ============================================ */
#noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* ============================================
   Progress Bar (right edge)
   ============================================ */
#progress-bar {
    position: fixed;
    right: 16px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(138, 138, 148, 0.15);
    z-index: 1000;
}

#progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--accent-civilian);
    transition: height 0.1s linear;
}

#progress-timestamps {
    position: absolute;
    top: 0;
    right: 12px;
    height: 100%;
    width: 50px;
}

.progress-marker {
    position: absolute;
    right: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 300;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.progress-marker.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Sections — Base
   ============================================ */
.section {
    min-height: 100vh;
    position: relative;
    scroll-snap-align: start;
    overflow: hidden;
}

.section-tall {
    min-height: 250vh;
}

/* ============================================
   Section 1: Opening
   ============================================ */
#opening {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    min-height: 100vh;
}

.opening-content {
    text-align: center;
    position: relative;
}

.date-reveal {
    opacity: 0;
    animation: fadeInSlow 3s ease forwards;
    margin-bottom: 60px;
}

.date-text {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--text-primary);
    letter-spacing: 0.3em;
}

.time-text {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    color: var(--accent-timestamp);
    letter-spacing: 0.2em;
    margin-top: 10px;
}

.typewriter-container {
    opacity: 0;
    animation: fadeInSlow 2s ease 3s forwards;
}

.typewriter-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 5vw, 4rem);
    color: var(--text-primary);
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--text-primary);
    width: 0;
    animation: typewriter 3s steps(12) 4s forwards, blinkCursor 0.7s step-end infinite 4s;
    margin: 0 auto;
    display: inline-block;
}

.typewriter-translation {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-top: 20px;
    opacity: 0;
    animation: fadeInSlow 2s ease 7.5s forwards;
}

/* Screen shake */
.screen-shake {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#opening.shaking .opening-content {
    animation: shake 0.15s ease-in-out 6;
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(0.5px, -0.5px); }
    50% { transform: translate(-0.5px, 0.5px); }
    75% { transform: translate(0.5px, 0.5px); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCursor {
    0%, 100% { border-color: var(--text-primary); }
    50% { border-color: transparent; }
}

@keyframes fadeInSlow {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   Section 2: The Decree
   ============================================ */
#decree {
    background-color: var(--bg-primary);
    padding: 0;
    min-height: 180vh;
    position: relative;
}

/* Emergency Ticker */
.emergency-ticker {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--accent-emergency);
    overflow: hidden;
    height: 48px;
    display: flex;
    align-items: center;
    transition: opacity 0.5s ease;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
}

.ticker-text {
    font-family: 'Black Han Sans', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--accent-emergency);
    padding-right: 0;
    flex-shrink: 0;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Decree Grid */
.decree-grid {
    position: relative;
    padding: 100px 5vw;
    max-width: 1200px;
    margin: 0 auto;
}

.dispatch {
    margin-bottom: 80px;
    max-width: 550px;
}

.dispatch-left {
    margin-right: auto;
}

.dispatch-right {
    margin-left: auto;
    text-align: right;
}

.dispatch .timestamp {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--accent-timestamp);
    display: block;
    margin-bottom: 8px;
}

.dispatch-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.dispatch-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.8rem, 1.3vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Decree Fragments — large floating type */
.decree-fragment {
    text-align: center;
    margin: 60px auto;
    position: relative;
}

.decree-fragment .fragment-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 900;
    color: var(--accent-emergency);
    opacity: 0.12;
    display: block;
    line-height: 1;
}

.fragment-large .fragment-text {
    font-size: clamp(6rem, 18vw, 18rem);
}

.fragment-medium .fragment-text {
    font-size: clamp(3rem, 10vw, 10rem);
}

.fragment-hope .fragment-text {
    font-size: clamp(4rem, 12vw, 12rem);
    color: var(--accent-civilian);
    opacity: 0.15;
}

.decree-fragment .fragment-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Fracture lines SVG */
.fracture-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.fracture-lines line {
    stroke: var(--text-primary);
    stroke-width: 0.5;
    opacity: 0.08;
}

/* Glitch overlay */
.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(212, 32, 32, 0.03) 2px,
        rgba(212, 32, 32, 0.03) 4px
    );
    mix-blend-mode: overlay;
}

.glitch-overlay.active {
    animation: glitchFlash 0.15s ease-in-out;
}

@keyframes glitchFlash {
    0% { opacity: 0; }
    20% { opacity: 1; filter: hue-rotate(30deg) contrast(1.5); }
    40% { opacity: 0.5; filter: hue-rotate(-20deg) contrast(2); }
    60% { opacity: 0.8; filter: hue-rotate(10deg); }
    80% { opacity: 0.3; }
    100% { opacity: 0; filter: none; }
}

/* ============================================
   Section 3: The Response
   ============================================ */
#response {
    background-color: var(--bg-primary);
    padding: 80px 0;
}

.response-split {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5vw;
    gap: 0;
    min-height: 100vh;
}

.response-column {
    flex: 1;
    padding: 40px 30px;
}

.column-header {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 4px;
}

.column-header-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.military-column .column-header {
    color: var(--accent-emergency);
}

.civilian-column .column-header {
    color: var(--accent-civilian);
}

.response-divider {
    width: 1px;
    position: relative;
    flex-shrink: 0;
}

.divider-line {
    position: sticky;
    top: 50vh;
    width: 1px;
    height: 30vh;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--text-secondary),
        transparent
    );
    opacity: 0.3;
}

.timeline-entry {
    margin-bottom: 50px;
    padding-left: 20px;
    border-left: 2px solid rgba(138, 138, 148, 0.15);
}

.military-column .timeline-entry {
    border-left-color: rgba(212, 32, 32, 0.2);
}

.civilian-column .timeline-entry {
    border-left-color: rgba(74, 140, 219, 0.2);
}

.timeline-entry .timestamp {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--accent-timestamp);
    display: block;
    margin-bottom: 8px;
}

.timeline-entry p {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 6px;
}

.timeline-entry .entry-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Crossing element */
.crossing-element {
    text-align: center;
    padding: 120px 5vw;
    position: relative;
}

.crossing-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--accent-civilian);
    margin-bottom: 10px;
}

.crossing-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
}

/* Floating type */
.floating-type {
    position: relative;
    text-align: center;
    padding: 60px 0;
    overflow: hidden;
}

.floating-type span {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 900;
    font-size: clamp(8rem, 20vw, 20rem);
    color: var(--accent-civilian);
    opacity: 0.06;
    line-height: 1;
    display: block;
}

/* ============================================
   Section 4: The Vote
   ============================================ */
#vote {
    background: linear-gradient(to bottom, var(--bg-primary), var(--accent-democracy));
    min-height: 150vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-content {
    text-align: center;
    max-width: 900px;
    padding: 80px 5vw;
    width: 100%;
}

.vote-header .timestamp {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--accent-timestamp);
    display: block;
    margin-bottom: 20px;
}

.vote-header h2 {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.vote-header p {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.vote-intro {
    margin-bottom: 60px;
}

.quote {
    font-family: 'Noto Serif KR', serif;
    font-weight: 600;
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 0 20px;
}

.quote-attribution {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 15px;
}

/* Vote counter */
.vote-counter {
    margin: 40px auto 60px;
}

.vote-label {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 30px;
}

.vote-for-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-civilian);
}

.vote-count {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* Vote grid */
.vote-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    max-width: 700px;
    margin: 0 auto 50px;
}

.vote-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(138, 138, 148, 0.2);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.vote-dot.counted {
    background: var(--accent-civilian);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(74, 140, 219, 0.4);
}

/* Vote result */
.vote-result {
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.result-number {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--highlight-hope);
    display: block;
    line-height: 1;
    margin-bottom: 15px;
}

.result-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 900;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

.result-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Section 5: The Aftermath
   ============================================ */
#aftermath {
    background: linear-gradient(to bottom, var(--accent-democracy), var(--bg-primary));
    min-height: 150vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aftermath-content {
    text-align: center;
    padding: 100px 5vw;
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.aftermath-timestamp .timestamp {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--accent-timestamp);
    display: block;
    margin-bottom: 80px;
}

.aftermath-text p {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    color: var(--text-primary);
    margin-bottom: 10px;
}

.aftermath-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
}

.aftermath-silence {
    height: 15vh;
}

.aftermath-reflection p {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 2.5rem);
    color: var(--highlight-hope);
    margin-bottom: 8px;
}

.aftermath-reflection .aftermath-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.3vw, 1.1rem);
    color: var(--text-secondary);
}

/* Candlelight Particles */
.candlelight-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.candle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--highlight-hope);
    bottom: -10px;
    opacity: 0;
}

/* Generate 40 candle positions and timings */
.c1 { left: 3%; animation: candleRise 10s ease-in 0s infinite; }
.c2 { left: 8%; animation: candleRise 12s ease-in 1.2s infinite; }
.c3 { left: 13%; animation: candleRise 9s ease-in 0.5s infinite; }
.c4 { left: 18%; animation: candleRise 14s ease-in 2.1s infinite; }
.c5 { left: 22%; animation: candleRise 11s ease-in 0.8s infinite; }
.c6 { left: 27%; animation: candleRise 13s ease-in 3.5s infinite; }
.c7 { left: 31%; animation: candleRise 10s ease-in 1.7s infinite; }
.c8 { left: 35%; animation: candleRise 15s ease-in 0.3s infinite; }
.c9 { left: 39%; animation: candleRise 9s ease-in 2.8s infinite; }
.c10 { left: 43%; animation: candleRise 12s ease-in 4.1s infinite; }
.c11 { left: 47%; animation: candleRise 11s ease-in 1.0s infinite; }
.c12 { left: 51%; animation: candleRise 14s ease-in 3.2s infinite; }
.c13 { left: 55%; animation: candleRise 10s ease-in 0.6s infinite; }
.c14 { left: 58%; animation: candleRise 13s ease-in 2.4s infinite; }
.c15 { left: 62%; animation: candleRise 9s ease-in 1.5s infinite; }
.c16 { left: 66%; animation: candleRise 12s ease-in 3.8s infinite; }
.c17 { left: 70%; animation: candleRise 11s ease-in 0.9s infinite; }
.c18 { left: 74%; animation: candleRise 15s ease-in 2.6s infinite; }
.c19 { left: 78%; animation: candleRise 10s ease-in 4.5s infinite; }
.c20 { left: 82%; animation: candleRise 13s ease-in 1.3s infinite; }
.c21 { left: 85%; animation: candleRise 9s ease-in 3.0s infinite; }
.c22 { left: 88%; animation: candleRise 14s ease-in 0.2s infinite; }
.c23 { left: 91%; animation: candleRise 11s ease-in 2.0s infinite; }
.c24 { left: 94%; animation: candleRise 12s ease-in 4.3s infinite; }
.c25 { left: 97%; animation: candleRise 10s ease-in 1.8s infinite; }
.c26 { left: 5%; animation: candleRise 13s ease-in 3.7s infinite; }
.c27 { left: 15%; animation: candleRise 11s ease-in 5.0s infinite; }
.c28 { left: 25%; animation: candleRise 9s ease-in 2.3s infinite; }
.c29 { left: 33%; animation: candleRise 14s ease-in 4.8s infinite; }
.c30 { left: 41%; animation: candleRise 12s ease-in 1.6s infinite; }
.c31 { left: 49%; animation: candleRise 10s ease-in 3.4s infinite; }
.c32 { left: 57%; animation: candleRise 15s ease-in 0.7s infinite; }
.c33 { left: 63%; animation: candleRise 9s ease-in 2.9s infinite; }
.c34 { left: 71%; animation: candleRise 13s ease-in 5.2s infinite; }
.c35 { left: 79%; animation: candleRise 11s ease-in 1.1s infinite; }
.c36 { left: 86%; animation: candleRise 12s ease-in 4.0s infinite; }
.c37 { left: 10%; animation: candleRise 14s ease-in 3.3s infinite; }
.c38 { left: 45%; animation: candleRise 10s ease-in 5.5s infinite; }
.c39 { left: 68%; animation: candleRise 13s ease-in 2.7s infinite; }
.c40 { left: 92%; animation: candleRise 11s ease-in 4.6s infinite; }

@keyframes candleRise {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    10% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(20px);
    }
}

/* Sinusoidal wobble variant for odd candles */
.c1, .c3, .c5, .c7, .c9, .c11, .c13, .c15,
.c17, .c19, .c21, .c23, .c25, .c27, .c29,
.c31, .c33, .c35, .c37, .c39 {
    width: 3px;
    height: 3px;
}

.c2, .c4, .c6, .c8, .c10, .c12, .c14, .c16,
.c18, .c20, .c22, .c24, .c26, .c28, .c30,
.c32, .c34, .c36, .c38, .c40 {
    width: 5px;
    height: 5px;
}

/* Wobble variant */
.c1, .c5, .c9, .c13, .c17, .c21, .c25, .c29, .c33, .c37 {
    animation-name: candleRiseWobble;
}

@keyframes candleRiseWobble {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    10% {
        opacity: 0.6;
        transform: translateY(-10vh) translateX(10px);
    }
    25% {
        transform: translateY(-25vh) translateX(-8px);
    }
    50% {
        opacity: 0.4;
        transform: translateY(-50vh) translateX(15px);
    }
    75% {
        transform: translateY(-75vh) translateX(-5px);
    }
    90% {
        opacity: 0.1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(10px);
    }
}

/* ============================================
   Section 6: Memorial Footer
   ============================================ */
#memorial {
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.memorial-content {
    text-align: center;
    padding: 100px 5vw;
    max-width: 800px;
}

.memorial-date {
    margin-bottom: 80px;
}

.memorial-date span {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    letter-spacing: 0.2em;
}

.memorial-question {
    margin-bottom: 80px;
}

.memorial-korean {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--highlight-hope);
    margin-bottom: 15px;
    line-height: 1.4;
}

.memorial-english {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
}

.memorial-details {
    margin-bottom: 60px;
}

.memorial-details p {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 2;
}

.memorial-details p[lang="ko"] {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-primary);
}

.memorial-vote-line {
    margin-top: 10px;
    color: var(--accent-civilian);
    font-weight: 400;
}

.memorial-candle {
    margin: 40px 0;
    font-size: 2rem;
    opacity: 0.6;
}

.candle-icon {
    display: inline-block;
    animation: candleGlow 3s ease-in-out infinite;
}

@keyframes candleGlow {
    0%, 100% { opacity: 0.4; filter: brightness(0.8); }
    50% { opacity: 0.8; filter: brightness(1.2); }
}

.memorial-footer-text {
    margin-top: 60px;
}

.memorial-footer-text p {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 2;
}

.memorial-footer-text p[lang="ko"] {
    font-family: 'Noto Serif KR', serif;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--highlight-hope);
    margin-bottom: 8px;
}

/* ============================================
   Scroll-Triggered Reveals
   ============================================ */
.reveal-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .response-split {
        flex-direction: column;
    }

    .response-divider {
        width: 100%;
        height: 1px;
        margin: 40px 0;
    }

    .divider-line {
        position: relative;
        top: auto;
        width: 100%;
        height: 1px;
        background: linear-gradient(
            to right,
            transparent,
            var(--text-secondary),
            transparent
        );
    }

    .dispatch-right {
        text-align: left;
    }

    .vote-dot {
        width: 8px;
        height: 8px;
    }

    #progress-bar {
        right: 8px;
    }

    #progress-timestamps {
        display: none;
    }
}

@media (max-width: 480px) {
    .decree-grid {
        padding: 60px 4vw;
    }

    .dispatch {
        margin-bottom: 50px;
    }
}
