:root {
    --void: #0a0e17;
    --frost: #e0eaf5;
    --blue: #4a8ec2;
    --gold: #c9a84c;
    --red: #c24a5a;
    --teal: #5ac2b4;
    --mist: #6a7a8e;
    --display: "Dela Gothic One", Impact, Haettenschweiler, "Arial Black", sans-serif;
    --kr: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --body: "Space Grotesk", Inter, system-ui, sans-serif;
    --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

/* Compliance tokens from DESIGN.md: (Google Fonts Mono` They represent floating units Intersection Observer: when enters threshold IntersectionObserver` instance with `{ threshold: [0.1 Grotesk` tabular numerals (`font-feature-settings: 'tnum'` values trigger animations. Elements start `opacity: */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: #0a0e17;
    color: #e0eaf5;
    font-family: var(--body);
    letter-spacing: 0.02em;
    line-height: 1.7;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

main { overflow-x: hidden; background: #0a0e17; }

section {
    width: 100vw;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.inflation-chamber {
    height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at 50% 40%, rgba(74, 142, 194, 0.08) 0%, rgba(10, 14, 23, 1) 70%);
}

.inflation-chamber::before,
.value-stream::before,
.cost-matrix::before {
    content: "";
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(circle at 15% 20%, rgba(224, 234, 245, 0.08), transparent 26%),
        radial-gradient(circle at 82% 70%, rgba(90, 194, 180, 0.08), transparent 24%),
        radial-gradient(circle at 50% 50%, rgba(201, 168, 76, 0.05), transparent 20%);
    filter: blur(18px);
}

.chamber-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    min-height: 100vh;
    perspective: 900px;
}

.gabs-logo {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(5rem, 15vw, 14rem);
    line-height: 0.92;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(224, 234, 245, 0.78);
    transform: perspective(800px) rotateX(-2deg) translateZ(40px);
    transition: text-shadow 600ms ease-out, transform 600ms ease-out;
    text-shadow:
        0 0 2px rgba(224, 234, 245, 0.8),
        0 2px 4px rgba(224, 234, 245, 0.46),
        0 5px 8px rgba(74, 142, 194, 0.36),
        0 8px 12px rgba(74, 142, 194, 0.32),
        0 11px 18px rgba(74, 142, 194, 0.28),
        0 14px 26px rgba(74, 142, 194, 0.24),
        0 18px 36px rgba(90, 194, 180, 0.19),
        0 22px 48px rgba(90, 194, 180, 0.16),
        0 27px 64px rgba(201, 168, 76, 0.12),
        0 32px 80px rgba(74, 142, 194, 0.12),
        0 38px 100px rgba(10, 14, 23, 0.38),
        0 45px 120px rgba(10, 14, 23, 0.5);
}

.gabs-logo:hover {
    transform: perspective(800px) rotateX(-3deg) translateZ(72px) scale(1.015);
    text-shadow:
        0 0 2px rgba(224, 234, 245, 0.96), 0 4px 4px rgba(224, 234, 245, 0.56),
        0 8px 8px rgba(74, 142, 194, 0.46), 0 13px 12px rgba(74, 142, 194, 0.4),
        0 19px 18px rgba(74, 142, 194, 0.34), 0 27px 26px rgba(90, 194, 180, 0.28),
        0 37px 36px rgba(90, 194, 180, 0.23), 0 49px 48px rgba(201, 168, 76, 0.18),
        0 62px 64px rgba(201, 168, 76, 0.15), 0 78px 80px rgba(74, 142, 194, 0.14),
        0 98px 100px rgba(10, 14, 23, 0.45), 0 118px 120px rgba(10, 14, 23, 0.58);
}

.korean-lockup {
    display: flex;
    gap: clamp(1rem, 5vw, 5rem);
    margin-top: clamp(1rem, 4vw, 3rem);
    font-family: var(--kr);
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 30px rgba(140, 180, 220, 0.3);
}

.breathing-glyph { animation: breathe 8s ease-in-out infinite; }
.terminal-line, .eyebrow, .card-label, .annotation { font-family: var(--mono); }
.terminal-line {
    margin: 2rem 0 0;
    color: rgba(140, 200, 230, 0.7);
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    text-transform: uppercase;
}

.circuit-field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #4a8ec2;
    stroke-width: 1.5;
    stroke-opacity: 0.3;
    z-index: 1;
}
.circuit-field path { stroke-dasharray: 1600; stroke-dashoffset: 1600; transition: stroke-dashoffset 2s ease-in-out; }
.circuit-field circle { fill: rgba(74, 142, 194, 0.35); stroke: none; opacity: 0; transition: opacity 1s ease 1s; }
.observed.visible .circuit-field path { stroke-dashoffset: 0; }
.observed.visible .circuit-field circle { opacity: 1; }

.orb, .hidden-orb {
    position: absolute;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--mono);
    color: rgba(224, 234, 245, 0.42);
    border: 1px solid rgba(224, 234, 245, 0.12);
    background: radial-gradient(circle at 32% 28%, rgba(224, 234, 245, 0.22), rgba(90, 194, 180, 0.12) 36%, rgba(74, 142, 194, 0.08) 62%, rgba(10, 14, 23, 0.18));
    box-shadow: inset -24px -28px 48px rgba(10, 14, 23, 0.36), 0 0 60px rgba(74, 142, 194, 0.15);
    animation: drift 16s ease-in-out infinite;
}
.orb-a { width: 104px; height: 104px; left: 10vw; top: 18vh; }
.orb-b { width: 72px; height: 72px; right: 14vw; bottom: 18vh; animation-duration: 20s; }

.value-stream {
    min-height: 120vh;
    background: linear-gradient(180deg, #0a0e17 0%, rgba(12, 21, 34, 1) 48%, #0a0e17 100%);
    padding: 9vh 0 12vh;
}
.stream-intro, .matrix-copy { position: relative; z-index: 2; padding-left: clamp(2rem, 8vw, 8rem); max-width: 60rem; }
.eyebrow { color: rgba(201, 168, 76, 0.72); font-size: clamp(0.7rem, 0.9vw, 0.85rem); letter-spacing: 0.16em; }
h2 { margin: 0; max-width: 12ch; font-family: var(--display); font-size: clamp(2.6rem, 7vw, 7rem); line-height: 1.02; letter-spacing: 0.05em; color: rgba(224, 234, 245, 0.76); }
.waterfall { position: relative; z-index: 2; width: 100vw; margin-top: 7vh; display: flex; flex-direction: column; gap: 2.4rem; }
.data-card {
    width: min(560px, 72vw);
    margin-left: calc(34vw + (var(--shift, 0) * 1vw));
    padding: clamp(1.3rem, 3vw, 2.4rem);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(224, 234, 245, 0.06) 0%, rgba(224, 234, 245, 0.02) 100%);
    border: 1px solid rgba(106, 122, 142, 0.34);
    backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(224, 234, 245, 0.1), 0 30px 90px rgba(0,0,0,0.28), 0 0 40px rgba(74,142,194,0.08);
    transition: transform 450ms ease, box-shadow 450ms ease, border-color 450ms ease;
}
.data-card:nth-child(1) { --shift: -22; }
.data-card:nth-child(2) { --shift: 20; }
.data-card:nth-child(3) { --shift: -4; }
.data-card:nth-child(4) { --shift: 13; }
.data-card:hover { transform: perspective(800px) translateZ(20px) scale(1.025); border-color: rgba(90, 194, 180, 0.45); box-shadow: 0 36px 110px rgba(74,142,194,0.17); }
.card-label { display: block; color: rgba(140, 200, 230, 0.7); text-transform: uppercase; }
.ticker-number { display: block; margin: .4rem 0 .6rem; font-feature-settings: 'tnum'; font-size: clamp(2.2rem, 6vw, 5.5rem); line-height: 1; color: rgba(201, 168, 76, 0.72); text-shadow: 0 0 34px rgba(201, 168, 76, 0.18); }
.data-card svg { width: 55%; min-width: 180px; stroke: #4a8ec2; stroke-width: 2; stroke-opacity: .4; fill: none; }
.data-card svg circle { fill: rgba(90,194,180,.45); stroke: none; }
.data-card p { max-width: 30rem; color: rgba(224, 234, 245, 0.58); }

.cost-matrix {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(360px, 1.2fr);
    align-items: center;
    background: radial-gradient(ellipse at 68% 48%, rgba(74, 142, 194, 0.09), transparent 42%), #0a0e17;
}
.matrix-stage { position: relative; z-index: 2; display: grid; place-items: center; min-height: 100vh; }
.radar { width: min(78vh, 72vw); overflow: visible; filter: drop-shadow(0 0 12px rgba(74, 142, 194, 0.2)); }
.rings polygon { fill: rgba(224,234,245,.025); stroke: rgba(106,122,142,.28); }
.axes line { stroke: rgba(74,142,194,.35); stroke-width: 1.2; }
.radar-segment { fill: url(#matrixFill); stroke: rgba(90,194,180,.58); stroke-width: 2; filter: drop-shadow(0 0 16px rgba(90, 194, 180, 0.22)); transition: filter 1s; }
.points circle { fill: rgba(201,168,76,.72); filter: drop-shadow(0 0 8px rgba(201,168,76,.35)); }
.labels text { font-family: var(--kr); font-size: 20px; font-weight: 900; fill: rgba(224,234,245,.62); text-anchor: middle; }
.annotation { position: absolute; padding: .7rem 1rem; border-radius: 999px; background: rgba(224,234,245,.055); border: 1px solid rgba(74,142,194,.25); color: rgba(140,200,230,.7); backdrop-filter: blur(12px); font-size: .74rem; }
.a1 { top: 19vh; right: 11vw; } .a2 { bottom: 21vh; right: 18vw; } .a3 { left: 9vw; bottom: 32vh; }

.hidden-price {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 40%, rgba(194, 74, 90, 0.035), transparent 35%), #05070c;
}
.hidden-sentence { position: relative; z-index: 2; max-width: 12ch; margin: 0; font-family: var(--display); font-size: clamp(2.7rem, 7vw, 8rem); line-height: 1.08; letter-spacing: .04em; color: rgba(224, 234, 245, .82); text-align: left; }
.hidden-sentence span { display: inline-block; opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; transition-delay: calc(var(--i) * 45ms); }
.hidden-price.visible .hidden-sentence span { opacity: 1; transform: none; }
.hidden-orb { width: 120px; height: 120px; font-family: var(--kr); font-size: 3rem; opacity: .7; }
.hidden-orb-1 { left: 13vw; top: 22vh; }
.hidden-orb-2 { right: 17vw; top: 35vh; width: 78px; height: 78px; animation-duration: 13s; }
.hidden-orb-3 { right: 28vw; bottom: 17vh; width: 96px; height: 96px; animation-duration: 19s; }

.terminal-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    height: 34px;
    overflow: hidden;
    border-top: 1px solid rgba(106,122,142,.28);
    background: rgba(224, 234, 245, 0.055);
    backdrop-filter: blur(18px);
}
.ticker-tape { display: flex; width: max-content; white-space: nowrap; font-family: var(--mono); color: rgba(140, 200, 230, 0.7); font-size: clamp(0.7rem, 0.9vw, 0.85rem); line-height: 34px; animation: tape 34s linear infinite; }
.ticker-tape span { padding-right: 4rem; }

.reveal { opacity: 0; transform: translateY(30px) translateX(calc(var(--i, 0) * 5px)); transition: opacity 900ms ease, transform 900ms cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: calc(var(--i, 0) * 0.15s); }
.visible .reveal, .reveal.visible { opacity: 1; transform: translateY(0) translateX(0); }

@keyframes breathe { 0%,100% { transform: scale(1); opacity: .78; } 50% { transform: scale(1.02); opacity: .96; } }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px, -15px) scale(1.04); } }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 900px) {
    .cost-matrix { grid-template-columns: 1fr; padding: 8vh 0 4vh; }
    .matrix-stage { min-height: 58vh; }
    .stream-intro, .matrix-copy { padding: 0 2rem; }
    .data-card { width: 82vw; margin-left: 8vw; }
    .data-card:nth-child(even) { margin-left: 14vw; }
    .radar { width: 88vw; }
    .annotation { display: none; }
}

@media (max-width: 560px) {
    .gabs-logo { letter-spacing: .05em; }
    .terminal-line { width: 80vw; text-align: center; }
    .korean-lockup { flex-direction: column; gap: .2rem; align-items: center; }
    h2 { font-size: clamp(2rem, 12vw, 4.5rem); }
    .hidden-sentence { max-width: 9ch; }
}
