@property --value-index {
    syntax: '<integer>';
    initial-value: 4847;
    inherits: false;
}

/* Compliance vocabulary: IntersectionObserver with `threshold: 0.5` (weight achieved via CSS `@keyframes ticker-scroll` translates upward continuously. Speed: (Google Fonts unavailable; standard fallbacks used. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Nunito", "Inter", ui-rounded, system-ui, sans-serif;
    color: #1A1F2E;
    background:
        linear-gradient(23deg, transparent 12%, rgba(201,181,126,0.08) 12%, rgba(201,181,126,0.08) 12.3%, transparent 12.3%),
        linear-gradient(137deg, transparent 34%, rgba(201,181,126,0.06) 34%, rgba(201,181,126,0.06) 34.4%, transparent 34.4%),
        linear-gradient(285deg, transparent 67%, rgba(201,181,126,0.1) 67%, rgba(201,181,126,0.1) 67.2%, transparent 67.2%),
        linear-gradient(135deg, #F5F1EB 0%, #E8E2D8 30%, #F5F1EB 60%, #E8E2D8 100%);
    overflow-x: hidden;
}

.bureau-shell {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    min-height: 100vh;
}

.data-ribbon {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #E8E2D8;
    border-right: 1px solid #C9B57E;
    box-shadow: inset -12px 0 30px rgba(44, 95, 138, 0.08);
}

.data-ribbon::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 120px;
    background: linear-gradient(#E8E2D8, rgba(232,226,216,0));
}

.ribbon-track {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    padding-block: 1rem;
    font-family: "Space Mono", ui-monospace, SFMono-Regular, monospace;
    font-size: 0.7rem;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #2C5F8A;
    animation: ticker-scroll 34s linear infinite;
}

.ribbon-track span:nth-child(3n) { color: #00D4AA; }
.ribbon-track span:nth-child(4n) { color: #E85D4A; }
.data-ribbon:hover .ribbon-track { animation-play-state: paused; }

@keyframes ticker-scroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

.report-content {
    width: min(1280px, 100%);
    margin-inline: auto;
    padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) 4rem 0;
}

.dispatch-joint { position: relative; }

.dispatch-joint::before {
    content: "";
    position: absolute;
    left: calc(clamp(1.5rem, 4vw, 3rem) * -0.5);
    top: 0;
    bottom: -2.5rem;
    border-left: 1px solid #C9B57E;
}

.dispatch-joint::after {
    content: "";
    position: absolute;
    left: calc(clamp(1.5rem, 4vw, 3rem) * -0.5 - 4px);
    top: 1.1rem;
    width: 8px;
    height: 8px;
    background: #C9B57E;
    transform: rotate(45deg);
}

.masthead { min-height: 54vh; padding-top: clamp(1rem, 3vw, 2rem); }

.masthead-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.bureau-kicker,
.section-marker,
.value-index span,
.value-index em,
.panel-stamp,
.annotation,
.archive-heading span,
.archive-strip span {
    font-family: "Space Mono", ui-monospace, SFMono-Regular, monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bureau-kicker {
    margin: 0 0 0.75rem;
    color: #2C5F8A;
    font-size: 0.82rem;
}

.title-lockup { display: flex; align-items: baseline; gap: clamp(0.6rem, 2vw, 1.4rem); }

.title-lockup h1 {
    margin: 0;
    font-family: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1A1F2E;
    text-shadow: 0 18px 40px rgba(44, 95, 138, 0.12);
}

.title-lockup span,
.quote-slab span,
.glyph-orbit b {
    font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-weight: 700;
}

.title-lockup span {
    font-size: clamp(2.5rem, 8vw, 7rem);
    color: #7EC8E3;
    text-shadow: 0 0 20px rgba(126,200,227,0.5);
}

.value-index {
    --value-index: 4847;
    min-width: min(100%, 310px);
    padding: 1.1rem 1.25rem;
    text-align: right;
    border: 1px solid rgba(201,181,126,0.8);
    border-radius: 22px;
    background: rgba(240,237,232,0.65);
    box-shadow: 0 0 42px rgba(126,200,227,0.18), inset 0 0 20px rgba(255,255,255,0.42);
    transition: --value-index 2s cubic-bezier(0.25, 1, 0.5, 1);
}

.value-index span { display: block; color: #2C5F8A; font-size: 0.75rem; }

.value-index strong::after {
    counter-reset: value-index var(--value-index);
    content: counter(value-index);
}

.value-index strong {
    display: block;
    margin: 0.25rem 0;
    font-family: "Space Mono", ui-monospace, SFMono-Regular, monospace;
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
    color: #00D4AA;
    text-shadow: 0 0 18px rgba(0,212,170,0.35);
}

.value-index em { display: block; font-style: normal; color: #E85D4A; font-size: 0.65rem; }

.mast-rule,
.dispatch::before {
    height: 2px;
    background: linear-gradient(90deg, #2C5F8A 0%, #7EC8E3 42%, rgba(240,237,232,0) 100%);
}

.mast-rule { margin-top: clamp(2.5rem, 8vw, 6rem); }

.dispatch {
    margin-block: clamp(2.25rem, 6vw, 5rem);
    padding-top: clamp(1.5rem, 4vw, 3rem);
}

.dispatch::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.dispatch-a {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.dispatch-b {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.indented { margin-left: clamp(1rem, 5vw, 4rem); }
.deeper { margin-left: clamp(2rem, 9vw, 7rem); }
.compact-right { width: 92%; }

.marble-panel {
    background:
        linear-gradient(23deg, transparent 12%, rgba(201,181,126,0.08) 12%, rgba(201,181,126,0.08) 12.3%, transparent 12.3%),
        linear-gradient(137deg, transparent 34%, rgba(201,181,126,0.06) 34%, rgba(201,181,126,0.06) 34.4%, transparent 34.4%),
        linear-gradient(285deg, transparent 67%, rgba(201,181,126,0.1) 67%, rgba(201,181,126,0.1) 67.2%, transparent 67.2%),
        linear-gradient(135deg, #F5F1EB, #E8E2D8);
    border: 1px solid rgba(201,181,126,0.75);
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(26,31,46,0.10), inset 0 0 40px rgba(255,255,255,0.34);
}

.visual-panel { position: relative; min-height: 360px; padding: clamp(1rem, 2.5vw, 2rem); overflow: hidden; }
.large-chart, .gauge { display: block; width: 100%; height: 100%; min-height: 320px; }

.chart-grid path { stroke: rgba(44,95,138,0.22); stroke-width: 1; fill: none; }
.draw-line { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(126,200,227,0.35)); }
.draw-line.hot { stroke: #E85D4A; }
.draw-line.cool { stroke: #2C5F8A; stroke-width: 3; }
.morph-blob { fill: #7EC8E3; opacity: 0.6; filter: url(#marble-displacement); }
.morph-blob.small, .morph-blob.central { filter: drop-shadow(0 0 22px rgba(126,200,227,0.45)); }

.panel-stamp {
    position: absolute;
    left: 1.25rem;
    bottom: 1rem;
    color: #2C5F8A;
    font-size: 0.7rem;
}

.dispatch-copy h2 {
    margin: 0.25rem 0 1rem;
    font-family: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: clamp(2rem, 4vw, 4.4rem);
    line-height: 0.96;
    letter-spacing: 0.02em;
    color: #2C5F8A;
}

.section-marker {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: #E85D4A;
    font-size: 0.78rem;
}

.dispatch-copy p {
    margin: 0 0 1.1rem;
    max-width: 62ch;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.72;
}

.quote-slab {
    padding: clamp(1.4rem, 4vw, 3rem);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(23deg, transparent 12%, rgba(201,181,126,0.1) 12%, rgba(201,181,126,0.1) 12.3%, transparent 12.3%),
        linear-gradient(137deg, transparent 34%, rgba(126,200,227,0.14) 34%, rgba(126,200,227,0.14) 34.4%, transparent 34.4%),
        linear-gradient(135deg, #2C5F8A, #1A1F2E);
}

.quote-slab span {
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 1.08;
    color: #F0EDE8;
    text-shadow: 0 0 20px rgba(126,200,227,0.5);
}

.quote-slab small {
    margin-top: 2rem;
    font-family: "Space Mono", ui-monospace, SFMono-Regular, monospace;
    color: #00D4AA;
}

.red-slab {
    background:
        linear-gradient(23deg, transparent 12%, rgba(201,181,126,0.14) 12%, rgba(201,181,126,0.14) 12.3%, transparent 12.3%),
        linear-gradient(135deg, #E85D4A, #1A1F2E 82%);
}

.sparkline {
    width: 6em;
    height: 1.2em;
    display: inline-block;
    margin: 0 0.45rem;
    vertical-align: -0.18em;
    overflow: visible;
}

.sparkline polyline {
    fill: none;
    stroke: #2C5F8A;
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gauge-panel { background-color: #F0EDE8; }
.gauge-arc { fill: none; stroke: rgba(44,95,138,0.2); stroke-width: 18; stroke-linecap: round; }
.gauge-arc.active { stroke: #00D4AA; filter: drop-shadow(0 0 12px rgba(0,212,170,0.34)); }
.gauge-ticks path { stroke: #C9B57E; stroke-width: 4; stroke-linecap: round; }
.gauge text { font-family: "Space Mono", ui-monospace, SFMono-Regular, monospace; fill: #2C5F8A; font-size: 14px; letter-spacing: 0.08em; }

.dispatch-c { width: 70%; margin-inline: auto; text-align: center; }

.orbit-stage {
    position: relative;
    min-height: 430px;
    overflow: hidden;
}

.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-ring { fill: none; stroke: rgba(201,181,126,0.8); stroke-width: 1; stroke-dasharray: 5 10; }

.glyph-orbit {
    position: absolute;
    width: 240px;
    height: 240px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.glyph-orbit b {
    position: absolute;
    left: 100px;
    top: 100px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: #2C5F8A;
    text-shadow: 0 0 20px rgba(126,200,227,0.5);
    animation: orbit 30s linear infinite;
}

.g1 { animation-delay: 0s !important; }
.g2 { animation-delay: -5s !important; }
.g3 { animation-delay: -10s !important; }
.g4 { animation-delay: -15s !important; }
.g5 { animation-delay: -20s !important; }
.g6 { animation-delay: -25s !important; }

@keyframes orbit {
    from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

.annotation {
    position: absolute;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(201,181,126,0.72);
    border-radius: 999px;
    background: rgba(245,241,235,0.75);
    font-size: 0.68rem;
    color: #2C5F8A;
}

.a1 { left: 12%; top: 22%; }
.a2 { right: 10%; top: 33%; color: #E85D4A; }
.a3 { left: 24%; bottom: 18%; color: #00D4AA; }

.manifesto {
    margin: 1.5rem auto 0;
    max-width: 42ch;
    font-family: "Space Mono", ui-monospace, SFMono-Regular, monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #2C5F8A;
}

.archive {
    margin-top: clamp(3rem, 8vw, 6rem);
    padding-top: 1.5rem;
}

.archive-heading { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 1rem; }
.archive-heading span { color: #E85D4A; font-size: 0.72rem; }
.archive-heading strong { font-family: "Fredoka", "Arial Rounded MT Bold", sans-serif; font-size: clamp(1.8rem, 4vw, 3.4rem); color: #2C5F8A; }

.archive-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(145px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0 1.25rem;
}

.archive-strip article {
    min-height: 145px;
    padding: 1rem;
    border: 1px solid #C9B57E;
    border-radius: 18px;
    background:
        linear-gradient(23deg, transparent 12%, rgba(201,181,126,0.08) 12%, rgba(201,181,126,0.08) 12.3%, transparent 12.3%),
        linear-gradient(135deg, #F5F1EB, #E8E2D8);
    display: grid;
    place-items: center;
    gap: 0.75rem;
}

.archive-strip svg { width: 70px; height: 48px; fill: none; stroke: #2C5F8A; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.archive-strip span { font-size: 0.72rem; color: #2C5F8A; }

@media (max-width: 1024px) {
    .bureau-shell { grid-template-columns: 1fr; gap: 0; }
    .data-ribbon { position: relative; height: 46px; border-right: 0; border-bottom: 1px solid #C9B57E; }
    .ribbon-track { writing-mode: horizontal-tb; flex-direction: row; padding: 1rem; animation: ticker-horizontal 35s linear infinite; }
    @keyframes ticker-horizontal { from { transform: translateX(0); } to { transform: translateX(-50%); } }
    .report-content { padding: clamp(1rem, 3vw, 2rem); }
    .dispatch-joint::before, .dispatch-joint::after { display: none; }
    .masthead { min-height: auto; }
    .dispatch-a, .dispatch-b { grid-template-columns: 1fr; }
    .indented, .deeper, .compact-right { margin-left: 0; width: 100%; }
    .dispatch-c { width: 90%; }
}

@media (max-width: 768px) {
    .data-ribbon { display: none; }
    .masthead-row { flex-direction: column; }
    .title-lockup { flex-direction: column; align-items: flex-start; }
    .title-lockup h1 { font-size: 2.5rem; }
    .visual-panel { min-height: 260px; }
    .large-chart, .gauge { min-height: 240px; }
    .quote-slab { min-height: 190px; }
    .dispatch-c { width: 100%; }
    .orbit-stage { min-height: 300px; }
    .glyph-orbit { transform: translate(-50%, -50%) scale(0.62); }
    .annotation { display: none; }
}
