/* =============================================================
   hangeul.day v2 -- y2k-futurism + grounded-earthy
   Stacked sections on a blueprint grid with dopamine-neon accents.
   ============================================================= */

:root {
    --paper: #F4EEDD;
    --vellum: #E2DBC6;
    --ink: #181410;
    --soft-ink: #2A241C;
    --lime: #D7FF3A;
    --magenta: #FF3AA1;
    --cyan: #3AE6FF;
    --tangerine: #FF8A3A;
    --olive: #6B6A35;

    --grid-cell: 32px;
    --grid-major: 128px;
    --rule: 2px solid var(--ink);
    --rule-thin: 1px solid rgba(24, 20, 16, 0.18);

    --font-display: "Familjen Grotesk", "Inter", system-ui, sans-serif;
    --font-body: "Be Vietnam Pro", "Inter", system-ui, sans-serif;
    --font-ko: "Gowun Dodum", "Familjen Grotesk", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

    --shadow-chunk: 4px 6px 0 0 var(--ink);
    --shadow-chunk-lg: 6px 8px 0 0 var(--ink);
    --shadow-chunk-press: 0 0 0 0 var(--ink);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body {
    cursor: none;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: none; }
strong { font-weight: 600; }
em { font-style: italic; color: var(--magenta); }

/* ---------- Blueprint grid background (page-level) ---------- */
.grid-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right, rgba(107,106,53,0.10) 0 1px, transparent 1px 100%),
        linear-gradient(to bottom, rgba(107,106,53,0.10) 0 1px, transparent 1px 100%),
        linear-gradient(to right, rgba(24,20,16,0.10) 0 1px, transparent 1px 100%),
        linear-gradient(to bottom, rgba(24,20,16,0.10) 0 1px, transparent 1px 100%);
    background-size:
        var(--grid-major) var(--grid-major),
        var(--grid-major) var(--grid-major),
        var(--grid-cell) var(--grid-cell),
        var(--grid-cell) var(--grid-cell);
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink);
    transition: width 120ms ease, height 120ms ease;
}
.cursor-ring {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    transition: width 200ms ease, height 200ms ease, border-color 200ms ease, background 200ms ease;
}
body.is-pressing .cursor-dot { width: 12px; height: 12px; }
body.is-hovering-pill .cursor-ring {
    width: 36px;
    height: 36px;
    border-color: var(--magenta);
    background: rgba(255, 58, 161, 0.08);
}

@media (hover: none) and (pointer: coarse) {
    body { cursor: auto; }
    .cursor-dot, .cursor-ring { display: none; }
    button, a { cursor: pointer; }
}

/* ---------- Section frame ---------- */
.section {
    position: relative;
    padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 80px);
    border-bottom: var(--rule);
    z-index: 1;
}
.section:last-of-type { border-bottom: none; }

.section-head {
    max-width: 920px;
    margin-bottom: clamp(28px, 4vw, 56px);
}
.section-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 16px;
    padding: 4px 10px;
    border: 1px solid var(--olive);
    border-radius: 999px;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.012em;
    margin: 0 0 14px;
    color: var(--ink);
}
.section-lede {
    max-width: 640px;
    font-size: clamp(15px, 1.05vw, 17px);
    color: var(--soft-ink);
    margin: 0;
    line-height: 1.7;
}

/* =============================================================
   Section 01 -- HERO
   ============================================================= */
.section-hero {
    min-height: 100vh;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 40px);
}

.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: var(--rule);
    border-radius: 999px;
    background: var(--paper);
    box-shadow: var(--shadow-chunk);
}
.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.005em;
}
.wordmark-mark {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--magenta);
    border-radius: 50%;
    color: transparent;
    line-height: 0;
    box-shadow: 0 0 0 2px var(--ink);
}
.topnav-links {
    display: flex;
    gap: 8px;
}
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: var(--rule);
    border-radius: 999px;
    background: var(--paper);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.01em;
    color: var(--ink);
    box-shadow: var(--shadow-chunk);
    transition: transform 140ms cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 140ms cubic-bezier(0.22, 0.61, 0.36, 1),
                background 140ms ease;
    user-select: none;
}
.pill:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-chunk-lg);
    background: var(--lime);
}
.pill:active {
    transform: translate(4px, 6px);
    box-shadow: var(--shadow-chunk-press);
}
.pill-nav { font-family: var(--font-ko), var(--font-body); font-size: 15px; }
.pill-primary {
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 13px;
}
.pill-primary:hover {
    background: var(--magenta);
    color: var(--ink);
}
.pill-ghost {
    background: transparent;
    box-shadow: 0 0 0 0 var(--ink);
    border-style: dashed;
}
.pill-ghost:hover {
    background: var(--paper);
    box-shadow: var(--shadow-chunk);
    transform: translate(-2px, -2px);
}

.hero-rule {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 6px;
}
.hero-rule::before, .hero-rule::after {
    content: "";
    flex: 1;
    border-top: var(--rule);
}
.rule-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--olive);
}

.hero-plate {
    position: relative;
    flex: 1;
    min-height: 60vh;
    background: var(--lime);
    border: var(--rule);
    border-radius: 28px;
    box-shadow: var(--shadow-chunk-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    grid-template-rows: 1fr auto;
    gap: 24px;
    padding: clamp(24px, 4vw, 48px);
}
.hero-plate-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 138, 58, 0.18), transparent 42%),
        radial-gradient(circle at 78% 78%, rgba(58, 230, 255, 0.20), transparent 48%);
    pointer-events: none;
}
.hero-plate-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(24,20,16,0.10) 0 1px, transparent 1px 100%),
        linear-gradient(to bottom, rgba(24,20,16,0.10) 0 1px, transparent 1px 100%);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.hero-syllable {
    position: relative;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    z-index: 1;
}
.syllable-svg {
    width: clamp(280px, 36vw, 460px);
    height: auto;
    fill: none;
    stroke: var(--ink);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.syllable-svg .jamo line, .syllable-svg .jamo polyline {
    stroke: var(--ink);
}
.syllable-svg .jamo circle { fill: none; stroke: var(--ink); }
.syllable-svg .jamo {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.section-hero.is-hover-h .jamo-h,
.section-hero.is-hover-a .jamo-a,
.section-hero.is-hover-n .jamo-n {
    transform: translateY(-6px);
}

.syllable-romanize {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 6px 12px;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 999px;
}

.hero-jamo-stack {
    position: relative;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: center;
    justify-self: end;
    z-index: 1;
    width: 100%;
    max-width: 320px;
}
.jamo-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: var(--rule);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow-chunk);
    transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
                background 220ms ease;
    cursor: none;
}
.jamo-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-chunk-lg);
}
.jamo-card[data-jamo="h"]:hover { background: var(--magenta); color: var(--ink); }
.jamo-card[data-jamo="a"]:hover { background: var(--cyan); }
.jamo-card[data-jamo="n"]:hover { background: var(--tangerine); }

.jamo-glyph {
    font-family: var(--font-ko);
    font-size: 44px;
    line-height: 1;
    color: var(--ink);
}
.jamo-meta { display: flex; flex-direction: column; gap: 2px; }
.jamo-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--olive);
}
.jamo-roman {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--ink);
}

.hero-caption {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
    align-self: end;
    display: grid;
    gap: 14px;
    z-index: 1;
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 6vw, 88px);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--ink);
}
.hero-sub {
    font-size: clamp(15px, 1.2vw, 19px);
    color: var(--soft-ink);
    margin: 0;
    max-width: 640px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

/* =============================================================
   Section 02 -- COMPONENTS
   ============================================================= */
.section-components { background: var(--paper); }
.components-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.component-card {
    --accent: var(--lime);
    display: grid;
    grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr) minmax(140px, 0.4fr);
    gap: 28px;
    align-items: center;
    padding: clamp(20px, 2.4vw, 36px);
    border: var(--rule);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow-chunk-lg);
    transition: transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
    opacity: 0;
    transform: translateY(24px);
}
.component-card.is-revealed {
    opacity: 1;
    transform: translateY(0);
}
.component-card:hover {
    transform: translate(-3px, -4px);
    box-shadow: 9px 12px 0 0 var(--ink);
}
.component-card[data-accent="lime"]    { --accent: var(--lime); }
.component-card[data-accent="magenta"] { --accent: var(--magenta); }
.component-card[data-accent="cyan"]    { --accent: var(--cyan); }

.component-figure {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px;
    background: var(--accent);
    border: var(--rule);
    border-radius: 18px;
    min-height: 160px;
}
.line-glyph {
    width: 100%;
    height: auto;
    fill: none;
    stroke: var(--ink);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.component-jamo {
    font-family: var(--font-ko);
    font-size: 22px;
    color: var(--ink);
    background: var(--paper);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1.5px solid var(--ink);
    align-self: flex-end;
}
.component-body { display: flex; flex-direction: column; gap: 10px; }
.component-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--accent);
    padding: 4px 10px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    align-self: flex-start;
}
.component-h {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(20px, 1.8vw, 26px);
    line-height: 1.2;
    margin: 0;
    color: var(--ink);
}
.component-body p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--soft-ink);
    margin: 0;
}
.component-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1.5px dashed var(--ink);
    padding-left: 18px;
}
.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}
.meta-key { color: var(--olive); }
.meta-val { color: var(--ink); font-weight: 500; }

/* =============================================================
   Section 03 -- CONSTRUCTION
   ============================================================= */
.section-construction {
    background: var(--ink);
    color: var(--paper);
}
.section-construction .section-num { color: var(--lime); border-color: var(--lime); }
.section-construction .section-title { color: var(--paper); }
.section-construction .section-lede { color: rgba(244, 238, 221, 0.78); }
.section-head-dark { color: var(--paper); }

.construction-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 32px;
    align-items: stretch;
    margin-top: 16px;
}
.construction-svg {
    width: 100%;
    height: auto;
    background: rgba(244, 238, 221, 0.04);
    border: 1.5px solid rgba(244, 238, 221, 0.30);
    border-radius: 20px;
    padding: 16px;
}
.construction-svg .ctor-grid line {
    stroke: rgba(244, 238, 221, 0.10);
    stroke-width: 1;
}
.construction-svg .ctor-part {
    fill: none;
    stroke: var(--paper);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 220ms ease, opacity 220ms ease;
}
.construction-svg .ctor-anno {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.10em;
    fill: rgba(244, 238, 221, 0.78);
    transition: fill 220ms ease;
}
.construction-svg .ctor-anno line {
    stroke: rgba(244, 238, 221, 0.45);
    stroke-width: 1;
    transition: stroke 220ms ease, stroke-width 220ms ease;
}
.construction-svg .ctor-anno circle { fill: var(--paper); }

.construction-stage.is-active-initial .ctor-part:not([data-part="initial"]),
.construction-stage.is-active-medial  .ctor-part:not([data-part="medial"]),
.construction-stage.is-active-final   .ctor-part:not([data-part="final"]) {
    opacity: 0.32;
}
.construction-stage.is-active-initial .ctor-part[data-part="initial"],
.construction-stage.is-active-medial  .ctor-part[data-part="medial"],
.construction-stage.is-active-final   .ctor-part[data-part="final"] {
    stroke: var(--cyan);
}
.construction-stage.is-active-initial .ctor-anno[data-target="initial"] line,
.construction-stage.is-active-medial  .ctor-anno[data-target="medial"]  line,
.construction-stage.is-active-final   .ctor-anno[data-target="final"]   line {
    stroke: var(--cyan);
    stroke-width: 1.5;
}
.construction-stage.is-active-initial .ctor-anno[data-target="initial"],
.construction-stage.is-active-medial  .ctor-anno[data-target="medial"],
.construction-stage.is-active-final   .ctor-anno[data-target="final"] {
    fill: var(--cyan);
}

.construction-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: center;
}
.legend-item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: baseline;
    gap: 14px;
    padding: 18px;
    border: 1.5px solid rgba(244, 238, 221, 0.30);
    border-radius: 16px;
    background: rgba(244, 238, 221, 0.03);
    transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
    cursor: none;
}
.legend-item:hover {
    background: rgba(58, 230, 255, 0.10);
    border-color: var(--cyan);
    transform: translateX(4px);
}
.legend-item.is-active {
    background: rgba(58, 230, 255, 0.14);
    border-color: var(--cyan);
}
.legend-key {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--lime);
}
.legend-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--paper);
    letter-spacing: -0.005em;
}
.legend-desc {
    grid-column: 1 / -1;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(244, 238, 221, 0.70);
    margin: 0;
}
.legend-desc em { color: var(--cyan); font-style: normal; font-weight: 600; }

/* =============================================================
   Section 04 -- TIMELINE
   ============================================================= */
.section-timeline { background: var(--paper); }
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: var(--rule);
    border-bottom: var(--rule);
}
.tl-row {
    border-bottom: 1.5px dashed var(--ink);
    background: var(--paper);
    transition: background 280ms ease;
}
.tl-row:last-of-type { border-bottom: none; }
.tl-row.is-open { background: var(--vellum); }

.tl-head {
    display: grid;
    grid-template-columns: 18px auto 1fr auto;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 20px clamp(12px, 2vw, 24px);
    text-align: left;
    cursor: none;
    transition: gap 220ms ease;
}
.tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--ink);
    justify-self: center;
    transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.tl-row.is-open .tl-dot {
    background: var(--magenta);
    border-color: var(--magenta);
    transform: scale(1.2);
}
.tl-year {
    font-family: var(--font-mono);
    font-size: 16px;
    letter-spacing: 0.10em;
    color: var(--ink);
    min-width: 64px;
}
.tl-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(16px, 1.4vw, 20px);
    color: var(--ink);
    line-height: 1.3;
}
.tl-toggle {
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--ink);
    transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
    width: 28px;
    text-align: center;
}
.tl-row.is-open .tl-toggle { transform: rotate(45deg); }

.tl-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 0 clamp(12px, 2vw, 24px);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 380ms cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 280ms ease,
                padding 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tl-row.is-open .tl-body {
    max-height: 320px;
    opacity: 1;
    padding: 4px clamp(12px, 2vw, 24px) 28px clamp(12px, 2vw, 24px);
}
.tl-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--soft-ink);
    max-width: 720px;
    padding-left: 36px;
}
.tl-glyph {
    font-family: var(--font-ko);
    font-size: clamp(64px, 7vw, 96px);
    line-height: 1;
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 16px;
    padding: 8px 18px;
    background: var(--paper);
    box-shadow: var(--shadow-chunk);
}

/* =============================================================
   Section 05 -- VOWEL CONSOLE
   ============================================================= */
.section-vowels { background: var(--vellum); }
.console {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 16px;
}
.console-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
    background: var(--paper);
    border: var(--rule);
    border-radius: 24px;
    box-shadow: var(--shadow-chunk-lg);
    justify-content: space-between;
}
.vowel-pill {
    flex: 1 1 80px;
    min-width: 72px;
    height: 64px;
    border: var(--rule);
    border-radius: 999px;
    background: var(--paper);
    box-shadow: var(--shadow-chunk);
    font-family: var(--font-ko);
    font-size: 28px;
    color: var(--ink);
    cursor: none;
    transition: transform 140ms cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 140ms cubic-bezier(0.22, 0.61, 0.36, 1),
                background 220ms ease;
}
.vowel-pill:nth-child(5n+1):hover { background: var(--lime); }
.vowel-pill:nth-child(5n+2):hover { background: var(--magenta); }
.vowel-pill:nth-child(5n+3):hover { background: var(--cyan); }
.vowel-pill:nth-child(5n+4):hover { background: var(--tangerine); }
.vowel-pill:nth-child(5n):hover   { background: var(--lime); }
.vowel-pill:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-chunk-lg);
}
.vowel-pill.is-active {
    background: var(--ink);
    color: var(--lime);
    transform: translate(2px, 2px);
    box-shadow: 2px 3px 0 0 var(--ink);
}
.vowel-pill.is-pressing {
    transform: translate(4px, 6px);
    box-shadow: var(--shadow-chunk-press);
}

.console-readout {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 22px;
    background: var(--paper);
    border: var(--rule);
    border-radius: 24px;
    box-shadow: var(--shadow-chunk);
    transition: opacity 220ms ease, transform 220ms ease;
    transform: translateX(0);
}
.console-readout[data-active="false"] { opacity: 0.55; }

.readout-glyph {
    font-family: var(--font-ko);
    font-size: 64px;
    line-height: 1;
    color: var(--ink);
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lime);
    border: var(--rule);
    border-radius: 18px;
    transition: background 240ms ease, transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.console-readout.is-flash .readout-glyph { transform: scale(0.97); }

.readout-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.readout-roman {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.005em;
}
.readout-info {
    margin: 0;
    font-size: 15px;
    color: var(--soft-ink);
    line-height: 1.6;
    max-width: 560px;
}
.readout-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 6px 12px;
    background: var(--cyan);
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    align-self: flex-start;
}

/* =============================================================
   Section 06 -- FOOTER
   ============================================================= */
.section-footer {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(32px, 4vw, 56px) clamp(20px, 5vw, 80px) 28px;
    border-bottom: none;
}
.foot-rule {
    height: 2px;
    background: var(--paper);
    margin-bottom: 22px;
}
.foot-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
}
.foot-mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.005em;
}
.foot-strip {
    font-family: var(--font-ko);
    font-size: 24px;
    letter-spacing: 0.18em;
    color: var(--lime);
}
.foot-date {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(244, 238, 221, 0.78);
}
.foot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(244, 238, 221, 0.55);
    justify-content: space-between;
}

/* =============================================================
   Reveal animations on scroll
   ============================================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 520ms cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-revealed { opacity: 1; transform: translateY(0); }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 980px) {
    .hero-plate {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .hero-syllable, .hero-jamo-stack, .hero-caption {
        grid-column: 1 / -1;
    }
    .hero-jamo-stack {
        flex-direction: row;
        max-width: none;
        flex-wrap: wrap;
        justify-self: stretch;
    }
    .jamo-card { flex: 1 1 160px; }
    .component-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .component-meta {
        flex-direction: row;
        border-left: none;
        border-top: 1.5px dashed var(--ink);
        padding-left: 0;
        padding-top: 12px;
    }
    .construction-stage {
        grid-template-columns: 1fr;
    }
    .console-readout {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .topnav-links { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
    .pill { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 560px) {
    .topnav { padding: 10px 12px; }
    .wordmark-text { font-size: 16px; }
    .topnav-links { width: 100%; justify-content: flex-start; }
    .hero-title { font-size: 40px; }
    .section { padding: 56px 18px; }
    .tl-head { grid-template-columns: 16px auto 1fr auto; gap: 10px; }
    .tl-body p { padding-left: 0; }
}
