/* =====================================================
   20241204.com — The Night Democracy Was Tested
   Cinematic documentary noir / vertical timeline scroll
   ===================================================== */

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

html {
    scroll-behavior: smooth;
    background-color: #0a0a0f;
}

body {
    background-color: #0a0a0f;
    color: #d4d4d8;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 300;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background-color 1.6s ease;
}

/* =========================
   FIXED OVERLAYS
   ========================= */

#scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.18) 2px,
        rgba(0, 0, 0, 0.18) 3px
    );
    opacity: 0.35;
    mix-blend-mode: multiply;
    transition: opacity 0.8s ease;
}

#scanlines.intense {
    opacity: 0.65;
}

#grain-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain-shift 0.5s steps(10) infinite;
    transition: opacity 0.8s ease;
}

@keyframes grain-shift {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

#flicker-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1100;
    background: #0a0a0f;
    opacity: 0;
    mix-blend-mode: multiply;
}

#flicker-overlay.flickering {
    animation: flicker 0.32s ease-in-out 1;
}

@keyframes flicker {
    0%   { opacity: 0; }
    18%  { opacity: 0.7; }
    32%  { opacity: 0.05; }
    48%  { opacity: 0.85; }
    62%  { opacity: 0.1; }
    78%  { opacity: 0.6; }
    100% { opacity: 0; }
}

/* =========================
   PARALLAX CITYSCAPE
   ========================= */

#parallax-cityscape {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 28vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.0;
    transition: opacity 1.2s ease;
    will-change: transform;
}

#parallax-cityscape.active {
    opacity: 0.55;
}

#parallax-cityscape svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 -8px 24px rgba(232, 132, 26, 0.08));
}

/* =========================
   TIMELINE LINE
   ========================= */

.timeline-line {
    position: fixed;
    left: 40px;
    top: 0;
    width: 2px;
    height: 0%;
    background: linear-gradient(
        to bottom,
        rgba(220, 38, 38, 0.0) 0%,
        #c60c30 12%,
        #e8841a 50%,
        #22c55e 92%
    );
    z-index: 100;
    transition: height 0.1s linear;
    opacity: 0.55;
    box-shadow: 0 0 8px rgba(232, 132, 26, 0.4);
}

/* =========================
   CLOCK INDICATOR
   ========================= */

.clock-indicator {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    z-index: 110;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    opacity: 0.7;
}

.clock-indicator svg {
    width: 48px;
    height: 48px;
}

.clock-indicator #clock-hour,
.clock-indicator #clock-minute {
    transform-origin: 50px 50px;
    transition: transform 0.4s ease;
}

.clock-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: #e8841a;
    letter-spacing: 0.15em;
    margin-top: 4px;
}

/* =========================
   SECTIONS
   ========================= */

.timeline-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 80px 80px 80px 120px;
    overflow: hidden;
    z-index: 2;
}

.breathing-gap {
    width: 100%;
    background: #0a0a0f;
    position: relative;
    z-index: 2;
}

.breathing-gap[data-gap="short"]  { height: 80vh; }
.breathing-gap[data-gap="medium"] { height: 140vh; }
.breathing-gap[data-gap="long"]   { height: 220vh; }

.breathing-gap::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #374151, transparent);
    transform: translate(-50%, -50%);
}

.timestamp-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(8rem, 22vw, 28rem);
    font-weight: 300;
    color: rgba(212, 212, 216, 0.025);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    user-select: none;
    letter-spacing: -0.02em;
}

/* =========================
   OPENING VOID
   ========================= */

.opening-void {
    background: radial-gradient(ellipse at center, #141419 0%, #0a0a0f 70%);
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

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

.timestamp-display {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(1.6rem, 4.5vw, 4rem);
    font-weight: 400;
    color: #e8841a;
    letter-spacing: 0.18em;
    opacity: 0;
    animation: timestamp-fade 3s ease-out 0.4s forwards;
    display: block;
    text-shadow: 0 0 24px rgba(232, 132, 26, 0.25);
}

@keyframes timestamp-fade {
    0%   { opacity: 0; transform: translateY(14px) scale(0.985); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.horizontal-interference {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8841a, transparent);
    margin: 36px auto 0;
    opacity: 0;
    animation: interference-fade 2.5s ease-out 1.8s forwards;
}

@keyframes interference-fade {
    0%   { opacity: 0; width: 0; }
    50%  { opacity: 0.7; }
    100% { opacity: 0.45; width: 320px; }
}

.opening-caption {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #374151;
    letter-spacing: 0.4em;
    margin-top: 32px;
    opacity: 0;
    animation: timestamp-fade 2s ease-out 2.6s forwards;
}

.scroll-cue {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: timestamp-fade 1.5s ease-out 3.2s forwards;
}

.scroll-cue-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: #374151;
    letter-spacing: 0.35em;
}

.scroll-cue-arrow {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, #e8841a, transparent);
    animation: arrow-pulse 2.4s ease-in-out infinite;
}

@keyframes arrow-pulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50%      { opacity: 1; transform: translateY(8px); }
}

/* =========================
   SECTION CONTENT
   ========================= */

.section-content {
    max-width: 760px;
    width: 100%;
    z-index: 10;
    position: relative;
}

.timestamp-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    color: #e8841a;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    border-left: 2px solid #e8841a;
    padding-left: 14px;
}

.timestamp-label.alert {
    color: #dc2626;
    border-left-color: #dc2626;
    text-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}

.timestamp-label.warm {
    color: #e8841a;
    border-left-color: #e8841a;
}

.section-heading {
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.4vw, 3.8rem);
    color: #d4d4d8;
    line-height: 1.25;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out 0.2s, transform 1s ease-out 0.2s;
    letter-spacing: -0.01em;
}

.narrative-text {
    font-size: 1.08rem;
    line-height: 1.95;
    color: #d4d4d8;
    margin-bottom: 26px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out 0.4s, transform 1s ease-out 0.4s;
    max-width: 64ch;
}

.section-content.visible .timestamp-label,
.section-content.visible .section-heading,
.section-content.visible .narrative-text,
.section-content.visible .pull-quote,
.section-content.visible .emergency-strip-wrapper,
.section-content.visible .vote-counter,
.section-content.visible .unanimous-display,
.section-content.visible .result-text,
.section-content.visible .duration-display,
.section-content.visible .redacted-block,
.section-content.visible .shatter-display,
.section-content.visible .terminal-window,
.section-content.visible .assembly-bar {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   FRAGMENT GRID (broken layout)
   ========================= */

.fragment-grid .narrative-text:nth-of-type(1) {
    transform: translateY(20px) rotate(-0.5deg);
    margin-left: 0;
}

.fragment-grid .narrative-text:nth-of-type(2) {
    transform: translateY(20px) rotate(0.6deg);
    margin-left: 8%;
    color: #94a3b8;
    font-style: italic;
}

.fragment-grid.visible .narrative-text {
    transform: translateY(0) rotate(0deg) !important;
}

/* =========================
   REDACTION
   ========================= */

.redacted-block {
    margin-top: 32px;
    padding: 24px 28px;
    border: 1px solid #374151;
    background: rgba(20, 20, 25, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out 0.6s, transform 1s ease-out 0.6s;
}

.redacted-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: #dc2626;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 14px;
}

.redacted-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.9;
    opacity: 1;
    transform: none;
    margin-bottom: 0;
    transition: none;
}

.redact {
    background: #0a0a0f;
    color: transparent;
    padding: 0 4px;
    border-radius: 1px;
    transition: background 0.6s ease, color 0.6s ease;
    cursor: default;
    box-shadow: 0 0 0 1px #141419;
}

.redact.revealed,
.redact:hover {
    background: transparent;
    color: #e8841a;
    box-shadow: 0 0 0 1px transparent;
}

/* =========================
   SHATTER (계엄)
   ========================= */

.shatter-display {
    font-family: 'Black Han Sans', 'Noto Serif KR', sans-serif;
    font-size: clamp(5rem, 18vw, 14rem);
    line-height: 1;
    margin: 20px 0 36px;
    color: #d4d4d8;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out 0.5s, transform 1s ease-out 0.5s;
    text-align: left;
    position: relative;
}

.shatter-char {
    display: inline-block;
    position: relative;
    transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1), text-shadow 2.2s ease;
    text-shadow: 0 0 0 transparent;
}

.shatter-display.shatter-active .shatter-char:nth-child(1) {
    transform: translate(-6px, -10px) rotate(-2deg);
    text-shadow: 6px 6px 0 rgba(220, 38, 38, 0.8), -3px -2px 0 rgba(0, 52, 120, 0.4);
}

.shatter-display.shatter-active .shatter-char:nth-child(2) {
    transform: translate(8px, 12px) rotate(2.5deg);
    text-shadow: -6px 4px 0 rgba(220, 38, 38, 0.8), 4px -2px 0 rgba(0, 52, 120, 0.4);
}

.shatter-display.shatter-settled .shatter-char {
    transform: translate(0, 0) rotate(0);
    text-shadow: 0 0 0 transparent;
}

/* =========================
   EMERGENCY STRIP
   ========================= */

.emergency-strip-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 44px;
    border-top: 1px solid rgba(220, 38, 38, 0.4);
    border-bottom: 1px solid rgba(220, 38, 38, 0.4);
    background: rgba(220, 38, 38, 0.04);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out 0.6s, transform 1s ease-out 0.6s;
}

.emergency-strip {
    display: flex;
    gap: 40px;
    padding: 16px 0;
    width: max-content;
    animation: strip-scroll 22s linear infinite;
}

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

.emergency-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    color: #dc2626;
    letter-spacing: 0.32em;
    white-space: nowrap;
    flex-shrink: 0;
    text-shadow: 0 0 6px rgba(220, 38, 38, 0.4);
}

/* =========================
   TERMINAL
   ========================= */

.terminal {
    background: linear-gradient(180deg, #0a0a0f 0%, #141419 50%, #0a0a0f 100%);
}

.terminal-content {
    max-width: 820px;
}

.terminal-window {
    margin-top: 24px;
    border: 1px solid #374151;
    background: rgba(10, 10, 15, 0.85);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(232, 132, 26, 0.02);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out 0.4s, transform 1s ease-out 0.4s;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid #374151;
    background: rgba(20, 20, 25, 0.5);
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #374151;
}

.terminal-dot:nth-child(1) { background: #dc2626; }
.terminal-dot:nth-child(2) { background: #e8841a; }
.terminal-dot:nth-child(3) { background: #22c55e; }

.terminal-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 0.18em;
    margin-left: 12px;
}

.terminal-body {
    padding: 24px 28px 28px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.92rem;
    line-height: 1.85;
    color: #d4d4d8;
}

.terminal-line {
    margin: 0;
    color: #d4d4d8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.terminal-line.muted {
    color: #94a3b8;
}

.terminal-line.cursor-line {
    color: #e8841a;
    margin-top: 8px;
}

.terminal-cursor {
    display: inline-block;
    width: 0.6em;
    color: #e8841a;
    animation: blink 1.05s steps(2) infinite;
}

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

/* =========================
   PARALLAX SECTION (streets)
   ========================= */

.parallax {
    background: linear-gradient(180deg, #0a0a0f 0%, #141419 50%, #0a0a0f 100%);
    min-height: 110vh;
}

.pull-quote {
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 2.6vw, 1.95rem);
    color: #d4d4d8;
    border-left: 3px solid #e8841a;
    padding-left: 28px;
    margin: 44px 0;
    line-height: 1.55;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out 0.6s, transform 1s ease-out 0.6s;
    font-style: italic;
}

.pull-quote-translation {
    display: block;
    font-style: normal;
    font-weight: 400;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 16px;
    letter-spacing: 0.05em;
}

/* =========================
   ASSEMBLY (vote counter)
   ========================= */

#assembly {
    background: radial-gradient(ellipse at center, rgba(0, 52, 120, 0.18) 0%, #0a0a0f 70%);
    border-left: 2px solid #003478;
}

.vote-counter {
    display: flex;
    gap: 80px;
    margin-top: 48px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out 0.6s, transform 1s ease-out 0.6s;
}

.vote-block {
    text-align: left;
    border-left: 1px solid #374151;
    padding-left: 22px;
}

.vote-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 400;
    color: #d4d4d8;
    display: block;
    line-height: 1;
    transition: transform 0.18s ease;
}

.vote-number.pulse {
    animation: number-pulse 0.32s ease;
}

@keyframes number-pulse {
    0%   { transform: scale(1); color: #d4d4d8; }
    50%  { transform: scale(1.06); color: #e8841a; }
    100% { transform: scale(1); color: #d4d4d8; }
}

.vote-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: 12px;
    display: block;
}

/* =========================
   VOTE SECTION
   ========================= */

.vote-section {
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.06) 0%, #0a0a0f 70%);
}

.unanimous-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 28px;
    margin: 56px 0 28px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out 0.6s, transform 1s ease-out 0.6s;
}

.result-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(4.5rem, 11vw, 9rem);
    font-weight: 400;
    color: #22c55e;
    line-height: 1;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.25);
}

.result-number.zero {
    color: #dc2626;
    text-shadow: 0 0 30px rgba(220, 38, 38, 0.2);
}

.result-dash {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: #374151;
    font-weight: 300;
}

.result-text {
    text-align: center;
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #22c55e;
    letter-spacing: 0.02em;
    margin-top: 12px;
}

.assembly-bar {
    margin-top: 56px;
    position: relative;
    height: 6px;
    background: rgba(55, 65, 81, 0.5);
    border-radius: 1px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out 0.7s, transform 1s ease-out 0.7s;
}

.assembly-bar-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    background: linear-gradient(90deg, #22c55e, #e8841a);
    transition: width 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.4);
}

.assembly-bar-label {
    position: absolute;
    top: 16px;
    right: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 0.2em;
}

/* =========================
   AFTERMATH / DAWN
   ========================= */

.dawn {
    background: linear-gradient(180deg, #0a0a0f 0%, #1e1b2e 50%, #2d2244 100%);
    transition: background 2s ease;
}

.dawn .narrative-text {
    color: #d4d4d8;
}

.duration-display {
    text-align: left;
    margin-top: 48px;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out 0.6s, transform 1s ease-out 0.6s;
    border-left: 2px solid #e8841a;
    padding-left: 22px;
}

.duration-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(5rem, 13vw, 11rem);
    font-weight: 300;
    color: #d4d4d8;
    display: block;
    line-height: 1;
    text-shadow: 0 0 24px rgba(232, 132, 26, 0.18);
}

.duration-unit {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    color: #e8841a;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    display: block;
    margin-top: 12px;
}

/* =========================
   CLOSING VOID
   ========================= */

.closing-void {
    background: linear-gradient(180deg, #2d2244 0%, #1e1b2e 50%, #0a0a0f 100%);
    min-height: 100vh;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.candlelight-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.candle {
    position: absolute;
    bottom: -12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #e8841a;
    box-shadow: 0 0 12px 2px rgba(232, 132, 26, 0.55), 0 0 24px 4px rgba(232, 132, 26, 0.25);
    animation-name: candle-rise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    opacity: 0;
}

@keyframes candle-rise {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    8%   { opacity: 0.95; }
    50%  { opacity: 0.8; }
    90%  { opacity: 0.4; }
    100% { transform: translateY(-110vh) translateX(var(--drift, 0px)); opacity: 0; }
}

.closing-content {
    text-align: center;
    z-index: 10;
    position: relative;
    padding: 0 24px;
    max-width: 720px;
}

.closing-text {
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    color: #d4d4d8;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.closing-subtext {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    color: #e8841a;
    letter-spacing: 0.18em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out 0.4s, transform 1.5s ease-out 0.4s;
}

.closing-divider {
    width: 60px;
    height: 1px;
    background: #374151;
    margin: 60px auto;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 1.2s ease-out 0.8s, transform 1.2s ease-out 0.8s;
    transform-origin: center;
}

.closing-quote {
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    color: #22c55e;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out 1.1s, transform 1.5s ease-out 1.1s;
    line-height: 1.6;
}

.closing-quote-translation {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 0.08em;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out 1.4s, transform 1.5s ease-out 1.4s;
}

.closing-content.visible .closing-text,
.closing-content.visible .closing-subtext,
.closing-content.visible .closing-quote,
.closing-content.visible .closing-quote-translation {
    opacity: 1;
    transform: translateY(0);
}

.closing-content.visible .closing-divider {
    opacity: 1;
    transform: scaleX(1);
}

/* =========================
   SECTION-SPECIFIC BACKGROUNDS
   ========================= */

#context {
    background: linear-gradient(180deg, #0a0a0f 0%, #141419 100%);
}

#declaration {
    background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.10) 0%, #0a0a0f 70%);
}

#declaration::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(220, 38, 38, 0.03) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

#streets::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg, transparent, rgba(232, 132, 26, 0.04));
    pointer-events: none;
    z-index: 1;
}

/* =========================
   SCROLL REVEAL UTILITY
   ========================= */

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
    .timeline-section {
        padding: 60px 28px 60px 56px;
        min-height: 100vh;
    }

    .timeline-line {
        left: 16px;
    }

    .vote-counter {
        gap: 36px;
    }

    .breathing-gap[data-gap="short"]  { height: 50vh; }
    .breathing-gap[data-gap="medium"] { height: 80vh; }
    .breathing-gap[data-gap="long"]   { height: 120vh; }

    .clock-indicator {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }

    .clock-indicator svg {
        width: 36px;
        height: 36px;
    }

    .timestamp-watermark {
        font-size: clamp(5rem, 35vw, 16rem);
    }

    .unanimous-display {
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .timeline-section {
        padding: 48px 20px 48px 44px;
    }

    .narrative-text {
        font-size: 1rem;
    }

    .terminal-body {
        font-size: 0.78rem;
        padding: 16px 18px;
    }

    .terminal-title {
        display: none;
    }
}
