/* ==========================================================================
   20241204.com — anti-design memorial · timeline-vertical · sepia-nostalgic
   Compliance vocabulary: Interaction (Spring Pattern). Interruption panels are also
   full-viewport height (`min-height: 100vh`). Interruption panels**: panels*: panel*: panels: Full-width
   sepia-washed blocks that break the timeline flow — representing emergency
   broadcasts. These contain large monospaced text in all caps. Intersection
   Observer for scroll-triggered reveals: each timeline block registers with IO
   at `threshold: 0.15`. On entry, Source Code Pro" (Google Fonts), Space Mono" (Google Fonts).
   Ginkgo leaf SVGs move at 0.3x–0.7x scroll speed relative to content.
   ========================================================================== */

:root {
    --bg-primary: #1a1712;
    --bg-alt: #2a2520;
    --bg-warm: #33291f;
    --text-primary: #d4c5a9;
    --text-secondary: #8a7e6b;
    --accent-emergency: #d4a017;
    --accent-resistance: #8b2500;
    --accent-dawn: #c4956a;
    --accent-leaf: #4a5d3a;
    --border-crack: #3d362e;

    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --scroll-y: 0;
    --dawn-mix: 0; /* 0..1, JS mutates on scroll past 80% */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    scroll-snap-type: y proximity;
    background: var(--bg-primary);
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: "Space Mono", "Source Code Pro", ui-monospace, monospace;
    font-size: 15px;
    line-height: 1.8;
    font-feature-settings: 'tnum' 1;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 900ms ease-out, color 900ms ease-out;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ---------- NOISE OVERLAY ---------- */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/></svg>");
}

.noise-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0,0,0,0.05) 0 1px,
            transparent 1px 3px
        );
    opacity: 0.35;
    mix-blend-mode: multiply;
}

/* ---------- EMERGENCY STRIPES (flash) ---------- */
.emergency-stripes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 40;
    opacity: 0;
    transition: opacity 140ms linear;
}

.emergency-stripes.flash {
    opacity: 1;
    animation: stripeFlash 380ms steps(2, end) 1;
}

.emergency-stripes span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-emergency);
    box-shadow: 0 0 14px var(--accent-emergency);
}
.emergency-stripes span:nth-child(1) { top: 12%; }
.emergency-stripes span:nth-child(2) { top: 34%; height: 1px; opacity: 0.7; }
.emergency-stripes span:nth-child(3) { top: 66%; }
.emergency-stripes span:nth-child(4) { top: 88%; height: 1px; opacity: 0.6; }

@keyframes stripeFlash {
    0% { opacity: 0; }
    20% { opacity: 1; }
    50% { opacity: 0.4; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* ---------- CCTV OVERLAY ---------- */
.cctv-overlay {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 60;
    font-family: "Space Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--accent-emergency);
    background: rgba(26, 23, 18, 0.55);
    padding: 6px 10px;
    border: 1px solid rgba(212, 160, 23, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(1px);
    text-transform: uppercase;
}

.cctv-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-resistance);
    box-shadow: 0 0 8px var(--accent-resistance);
    animation: cctvBlink 1.4s ease-in-out infinite;
}

@keyframes cctvBlink {
    0%, 40% { opacity: 1; }
    50%, 90% { opacity: 0.2; }
    100% { opacity: 1; }
}

.cctv-label { color: var(--accent-resistance); font-weight: 700; }
.cctv-sep { color: var(--text-secondary); opacity: 0.5; }
.cctv-location { color: var(--text-secondary); }
#cctv-time { color: var(--text-primary); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
    .cctv-overlay { font-size: 9px; padding: 4px 8px; gap: 5px; }
    .cctv-location { display: none; }
}

/* ---------- SPINE (crack line) ---------- */
.spine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    color: var(--border-crack);
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

.spine-svg {
    width: 12px;
    height: 100%;
    margin-left: -5px;
    display: block;
}

/* ---------- LEAVES LAYER ---------- */
.leaves-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    color: var(--accent-leaf);
    overflow: hidden;
}

.leaf {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.35;
    filter: saturate(0.4) brightness(0.7);
    transition: filter 800ms ease-out, opacity 800ms ease-out;
    will-change: transform;
}

/* As we approach dawn, leaves regain color */
body.dawn-active .leaf {
    filter: saturate(1) brightness(1);
    opacity: 0.9;
}

.leaf-1 { top: 6vh;   left: 8%;   width: 70px;  transform: rotate(-12deg); }
.leaf-2 { top: 38vh;  left: 82%;  width: 100px; transform: rotate(22deg); }
.leaf-3 { top: 92vh;  left: 12%;  width: 130px; transform: rotate(-30deg); }
.leaf-4 { top: 160vh; left: 70%;  width: 90px;  transform: rotate(8deg); }
.leaf-5 { top: 230vh; left: 18%;  width: 150px; transform: rotate(-45deg); }
.leaf-6 { top: 310vh; left: 78%;  width: 110px; transform: rotate(18deg); }
.leaf-7 { top: 410vh; left: 10%;  width: 180px; transform: rotate(-22deg); }

/* ---------- TIMELINE ---------- */
.timeline {
    position: relative;
    z-index: 3;
    max-width: 100vw;
    margin: 0 auto;
}

.section {
    position: relative;
    padding: 10vh 6vw;
    scroll-snap-align: start;
    min-height: 80vh;
}

/* ---------- OPENING VOID ---------- */
.section.void {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10vh 6vw;
    background: var(--bg-primary);
}

.void-timestamp {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4em;
    font-family: "Space Mono", monospace;
    color: var(--text-primary);
}

#hero-clock {
    font-size: clamp(2.6rem, 8vw, 6rem);
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    border-right: 2px solid var(--accent-emergency);
    padding-right: 0.15em;
    animation: caretBlink 1.06s steps(2, end) infinite;
}

@keyframes caretBlink {
    0%, 50% { border-color: var(--accent-emergency); }
    50.01%, 100% { border-color: transparent; }
}

.void-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.void-subline {
    margin-top: 3.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: "Source Code Pro", monospace;
    letter-spacing: 0.15em;
    opacity: 0.7;
}

.scroll-hint {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    opacity: 0;
    animation: hintFadeIn 0.6s 2s forwards;
}

.scroll-arrow {
    display: inline-block;
    font-size: 1.6rem;
    animation: hintPulse 1.8s var(--spring) infinite;
}

@keyframes hintFadeIn { to { opacity: 0.6; } }
@keyframes hintPulse {
    0%, 100% { transform: translateY(0); opacity: 0.35; }
    50% { transform: translateY(14px); opacity: 0.8; }
}

/* ---------- BLOCKS (timeline entries) ---------- */
.block {
    max-width: 640px;
    background: var(--bg-alt);
    padding: 3.5rem 3rem;
    position: relative;
    border-left: 2px solid var(--border-crack);
    box-shadow:
        0 0 0 1px rgba(138, 126, 107, 0.04),
        12px 12px 0 -2px rgba(0, 0, 0, 0.35);
    /* Torn-paper clip edges, slight variance per section */
    clip-path: polygon(
        0 1.5%, 4% 0, 14% 0.8%, 28% 0.3%, 42% 1.2%, 58% 0, 72% 0.9%,
        86% 0.2%, 96% 1.4%, 100% 2%,
        99% 18%, 100% 38%, 99.2% 60%, 100% 82%, 99.3% 96%,
        98% 100%, 88% 99.2%, 74% 100%, 60% 99%, 46% 100%, 32% 99.2%, 16% 100%, 3% 99.4%, 0 98%,
        0.7% 80%, 0 60%, 0.6% 40%, 0 22%, 0.4% 6%
    );

    opacity: 0;
    transform: translateY(56px) rotate(0deg);
    transition:
        opacity 900ms ease-out,
        transform 1100ms var(--spring);
}

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

.block-left { margin-left: 7vw; margin-right: auto; transform-origin: left center; }
.block-right { margin-left: auto; margin-right: 7vw; transform-origin: right center; }
.block-center {
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
}

.block.tilt-left.in-view { transform: translateY(0) rotate(-1.3deg); }
.block.tilt-right.in-view { transform: translateY(0) rotate(1.8deg); }
.block-left.in-view:not(.tilt-left):not(.tilt-right) { transform: translateY(0) rotate(-0.4deg); }
.block-right.in-view:not(.tilt-left):not(.tilt-right) { transform: translateY(0) rotate(0.6deg); }
.block-center.in-view:not(.tilt-left):not(.tilt-right) { transform: translateY(0) rotate(0deg); }

@media (max-width: 900px) {
    .block {
        max-width: 92vw;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 2.5rem 1.6rem;
    }
}

/* ---------- TIMESTAMP MARKER ---------- */
.timestamp-marker {
    display: inline-flex;
    align-items: baseline;
    gap: 0.8em;
    padding: 0.35em 0.9em;
    margin-bottom: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--accent-emergency);
    color: var(--accent-emergency);
    font-family: "Space Mono", monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timestamp-marker.big {
    font-size: 1.25rem;
    padding: 0.5em 1.2em;
}

.ts-time {
    font-size: 1.15rem;
    font-weight: 700;
}

.ts-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.25em;
}

.timestamp-marker.emergency-pulse {
    animation: emergencyPulse 2.4s ease-in-out infinite;
    border-color: var(--accent-resistance);
    color: var(--accent-resistance);
}

@keyframes emergencyPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 37, 0, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(139, 37, 0, 0); }
}

/* ---------- HEADLINES (Korean massive) ---------- */
.kr-headline {
    font-family: "Noto Sans KR", "Noto Sans CJK KR", "Source Code Pro", monospace;
    font-weight: 900;
    line-height: 1.08;
    font-size: clamp(2.6rem, 7vw, 6rem);
    color: var(--text-primary);
    margin: 0 0 1.4rem 0;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.kr-headline.massive {
    font-size: clamp(3.8rem, 12vw, 10rem);
    color: var(--accent-emergency);
    text-shadow: 0 0 42px rgba(212, 160, 23, 0.15);
}

.resistance-text, .kr-headline.shake-on-reveal {
    color: var(--accent-emergency);
}

.block.in-view .shake-on-reveal {
    animation: headlineShake 420ms steps(3, end) 300ms 1;
}

@keyframes headlineShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

/* ---------- BODY TEXT ---------- */
.body-text {
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.85;
    word-break: keep-all;
    margin: 1.2rem 0;
}

.body-text.dim {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
    font-family: "Source Code Pro", monospace;
    letter-spacing: 0.02em;
    border-left: 1px solid var(--border-crack);
    padding-left: 1rem;
}

.body-text em {
    color: var(--accent-emergency);
    font-style: italic;
}

.body-text strong {
    color: var(--accent-resistance);
    font-weight: 700;
}

/* ---------- REDACTION BARS ---------- */
.redaction {
    position: relative;
    display: inline-block;
    background: var(--bg-primary);
    color: transparent;
    padding: 0 0.35em;
    margin: 0 0.1em;
    transform: rotate(-0.8deg);
    transition: clip-path 900ms var(--spring), color 700ms ease-out, background 700ms ease-out;
    clip-path: inset(0 0 0 0);
    font-family: "Space Mono", monospace;
    letter-spacing: 0.05em;
}

.block.in-view .redaction {
    animation: redactionReveal 2.6s var(--spring) 700ms forwards;
}

@keyframes redactionReveal {
    0%   { clip-path: inset(0 0 0 0);    color: transparent; }
    55%  { clip-path: inset(0 0 0 0);    color: transparent; }
    70%  { clip-path: inset(0 0 0 70%);  color: transparent; }
    100% { clip-path: inset(0 0 0 100%); color: var(--text-primary); background: transparent; }
}

.redaction::after {
    content: attr(data-reveal);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: transparent;
    opacity: 0;
    transition: opacity 600ms ease 1.8s;
    padding: 0 0.35em;
}

.block.in-view .redaction::after { opacity: 1; }

/* ---------- ANNOTATIONS ---------- */
.annotation {
    position: absolute;
    font-family: "Source Code Pro", monospace;
    font-size: 0.68rem;
    line-height: 1.5;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    max-width: 220px;
    opacity: 0.75;
    border-left: 1px solid var(--accent-emergency);
    padding-left: 0.6em;
}

.annotation-tl { top: -2.8rem; left: 0.5rem; }
.annotation-tr { top: -2.8rem; right: 0.5rem; text-align: right; border-left: none; border-right: 1px solid var(--accent-emergency); padding-left: 0; padding-right: 0.6em; }

@media (max-width: 900px) {
    .annotation { position: static; max-width: none; margin-bottom: 1rem; }
}

/* ---------- DATA STRIP ---------- */
.data-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 2rem;
    border-top: 1px dashed var(--border-crack);
    border-bottom: 1px dashed var(--border-crack);
}

.data-cell {
    flex: 1 1 140px;
    padding: 0.8em 1em;
    border-right: 1px dashed var(--border-crack);
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    font-family: "Source Code Pro", monospace;
}
.data-cell:last-child { border-right: none; }
.data-cell .k { font-size: 0.65rem; color: var(--text-secondary); letter-spacing: 0.18em; text-transform: uppercase; }
.data-cell .v { font-size: 1rem; color: var(--accent-emergency); font-weight: 700; }

/* ---------- INTERRUPTION PANEL ---------- */
.interruption {
    min-height: 100vh;
    padding: 8vh 4vw;
    background: linear-gradient(
        180deg,
        var(--bg-primary) 0%,
        var(--bg-warm) 50%,
        var(--bg-primary) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    border-top: 1px solid var(--accent-emergency);
    border-bottom: 1px solid var(--accent-emergency);
    position: relative;
    overflow: hidden;
}

.interruption::before,
.interruption::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--accent-emergency) 0 20px,
        var(--bg-primary) 20px 28px,
        var(--accent-resistance) 28px 38px,
        var(--bg-primary) 38px 46px
    );
    opacity: 0.6;
}
.interruption::before { top: 4px; }
.interruption::after  { bottom: 4px; }

.broadcast-bar {
    font-family: "Space Mono", monospace;
    font-size: 0.85rem;
    color: var(--accent-emergency);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 0.8em 1.2em;
    border-top: 1px solid var(--accent-emergency);
    border-bottom: 1px solid var(--accent-emergency);
    width: 100%;
    max-width: 1100px;
    animation: broadcastScroll 0.4s steps(2, end) infinite alternate;
}

.broadcast-bar.alt {
    color: var(--accent-resistance);
    border-color: var(--accent-resistance);
}

@keyframes broadcastScroll {
    from { transform: translateX(-1px); }
    to   { transform: translateX(1px); }
}

.interruption-text {
    font-family: "Noto Sans KR", monospace;
    font-weight: 900;
    font-size: clamp(4rem, 14vw, 12rem);
    line-height: 0.95;
    color: var(--accent-emergency);
    margin: 0;
    letter-spacing: -0.04em;
    word-break: keep-all;
    text-shadow: 0 0 36px rgba(212, 160, 23, 0.2);
    position: relative;
}

.interruption-text.resistance {
    color: var(--accent-resistance);
    text-shadow: 0 0 36px rgba(139, 37, 0, 0.25);
}

.interruption.red-flash {
    border-color: var(--accent-resistance);
}
.interruption.red-flash::before,
.interruption.red-flash::after {
    background: repeating-linear-gradient(
        90deg,
        var(--accent-resistance) 0 22px,
        var(--bg-primary) 22px 30px,
        var(--accent-emergency) 30px 40px,
        var(--bg-primary) 40px 48px
    );
}

/* ---------- BREATHER ---------- */
.breather {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12vh 6vw;
    min-height: 60vh;
}

.leaf-container {
    position: relative;
    max-width: 520px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    color: var(--text-primary);
}

.leaf-container.small { max-width: 440px; padding: 2.5rem 1.6rem; }

.big-leaf {
    width: 160px;
    height: 160px;
    color: var(--accent-leaf);
    display: block;
    margin: 0 auto 1.6rem auto;
    filter: saturate(0.5) brightness(0.85);
    transition: filter 900ms ease-out;
}

body.dawn-active .big-leaf {
    filter: saturate(1) brightness(1);
}

.tender-quote {
    margin: 0;
    font-family: "Noto Sans KR", "Space Mono", monospace;
    font-weight: 400;
    font-size: clamp(1.05rem, 2.4vw, 1.4rem);
    line-height: 1.8;
    color: var(--text-primary);
    word-break: keep-all;
}

.quote-cite {
    display: block;
    margin-top: 1.2rem;
    font-family: "Source Code Pro", monospace;
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-style: normal;
}

/* ---------- VOTE BARS ---------- */
.vote-bars {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-family: "Space Mono", monospace;
}
.bar {
    display: grid;
    grid-template-columns: 130px 1fr 60px;
    align-items: center;
    gap: 0.8rem;
}
.bar-label {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--text-secondary);
    text-transform: uppercase;
}
.bar-fill {
    height: 14px;
    background: var(--border-crack);
    position: relative;
    overflow: hidden;
}
.bar-fill::after {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: var(--accent-resistance);
    width: 0;
    transition: width 1800ms var(--spring) 400ms;
}
.block.in-view .fill-full::after { width: 100%; }
.block.in-view .fill-zero::after { width: 2px; background: var(--text-secondary); }

.bar-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-emergency);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.bar-against .bar-num,
.bar-abstain .bar-num { color: var(--text-secondary); }
.bar-for .bar-num { color: var(--accent-resistance); }

/* ---------- FLASHLIGHT CLUSTER ---------- */
.flashlight-cluster {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px 12px;
    margin-top: 2.5rem;
    padding: 1.5rem 0;
    justify-items: center;
}
.flashlight-cluster span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-primary);
    box-shadow: 0 0 6px rgba(212, 197, 169, 0.4), 0 0 14px rgba(212, 160, 23, 0.12);
    opacity: 0.5;
    animation: flashlightFlicker 3.2s ease-in-out infinite;
}
.flashlight-cluster span:nth-child(odd) { animation-duration: 4.1s; }
.flashlight-cluster span:nth-child(3n) { animation-duration: 2.7s; animation-delay: 0.6s; }
.flashlight-cluster span:nth-child(5n) { animation-duration: 3.8s; animation-delay: 1.1s; }
.flashlight-cluster span:nth-child(7n) { animation-duration: 2.3s; animation-delay: 0.3s; }
.flashlight-cluster span:nth-child(11n) { animation-duration: 4.8s; animation-delay: 1.4s; }

@keyframes flashlightFlicker {
    0%, 100% { opacity: 0.38; transform: scale(0.92); }
    45% { opacity: 0.98; transform: scale(1.08); }
    55% { opacity: 0.7;  transform: scale(1); }
}

/* ---------- ROOTS SVG ---------- */
.roots {
    width: 100%;
    height: 160px;
    margin-top: 2rem;
    color: var(--accent-leaf);
    opacity: 0.6;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 2200ms var(--spring) 300ms, opacity 900ms ease-out;
}
.block.in-view .roots {
    stroke-dashoffset: 0;
    opacity: 0.85;
}

/* ---------- DAWN SECTION ---------- */
.section.dawn-start {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-alt) 100%);
}

.section.dawn {
    min-height: 100vh;
    padding: 12vh 6vw;
    background: linear-gradient(
        180deg,
        var(--bg-alt) 0%,
        var(--bg-warm) 55%,
        var(--bg-warm) 100%
    );
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section.dawn::before {
    content: "";
    position: absolute;
    bottom: -20%;
    left: -10%;
    right: -10%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(196, 149, 106, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.dawn-inner {
    position: relative;
    max-width: 760px;
    text-align: center;
    color: var(--text-primary);
    z-index: 2;
}

.dawn-leaf {
    width: clamp(260px, 42vw, 560px);
    height: clamp(260px, 42vw, 560px);
    color: var(--accent-leaf);
    display: block;
    margin: 0 auto 2rem auto;
    filter: saturate(1) brightness(1.1);
    animation: dawnLeafBreathe 7s ease-in-out infinite;
}

@keyframes dawnLeafBreathe {
    0%, 100% { transform: scale(1) rotate(-2deg); opacity: 0.85; }
    50% { transform: scale(1.04) rotate(1deg); opacity: 1; }
}

.dawn-headline {
    color: var(--accent-dawn);
    font-size: clamp(3rem, 9vw, 7.5rem);
    margin-bottom: 1.6rem;
}

.dawn-text {
    font-family: "Noto Sans KR", "Space Mono", monospace;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.85;
    color: var(--text-primary);
    word-break: keep-all;
    max-width: 580px;
    margin: 0 auto 3rem auto;
}

.dawn-stamp {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-family: "Source Code Pro", monospace;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--accent-dawn);
    text-transform: uppercase;
    border-top: 1px solid var(--accent-dawn);
    border-bottom: 1px solid var(--accent-dawn);
    padding: 1rem 0;
    max-width: 420px;
    margin: 0 auto;
}

/* ---------- COLOPHON ---------- */
.colophon {
    min-height: 50vh;
    padding: 14vh 6vw 18vh;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: 1px dashed var(--border-crack);
}

.colophon-inner { max-width: 560px; }

.colophon-line {
    font-family: "Space Mono", monospace;
    color: var(--text-primary);
    margin: 0.6rem 0;
    letter-spacing: 0.1em;
}
.colophon-line:first-child {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--accent-emergency);
    letter-spacing: 0.2em;
}
.colophon-line.small {
    font-size: 0.9rem;
    color: var(--text-secondary);
    word-break: keep-all;
    font-family: "Noto Sans KR", monospace;
}
.colophon-line.xs {
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.colophon-line.fade {
    opacity: 0.55;
    margin-top: 2rem;
    font-family: "Noto Sans KR", monospace;
    letter-spacing: 0.1em;
    text-transform: none;
}

/* ---------- ANIMATION ENTRY STATES ---------- */
.interruption { opacity: 0; transition: opacity 900ms ease-out; }
.interruption.in-view { opacity: 1; }

.breather .leaf-container { opacity: 0; transform: translateY(32px); transition: opacity 1000ms ease-out, transform 1300ms var(--spring); }
.breather.in-view .leaf-container { opacity: 1; transform: translateY(0); }

.section.dawn .dawn-inner { opacity: 0; transform: translateY(40px); transition: opacity 1400ms ease-out, transform 1600ms var(--spring); }
.section.dawn.in-view .dawn-inner { opacity: 1; transform: translateY(0); }

.colophon .colophon-inner { opacity: 0; transition: opacity 1200ms ease-out; }
.colophon.in-view .colophon-inner { opacity: 1; }

/* ---------- DAWN ACTIVE MUTATIONS (via body class) ---------- */
body.dawn-active {
    --bg-primary: #2a2520;
    --text-primary: #d4c5a9;
    --text-secondary: #c4956a;
}

body.dawn-active .spine { color: var(--accent-dawn); opacity: 0.5; }
body.dawn-active .cctv-overlay { border-color: rgba(196, 149, 106, 0.4); }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
