/* =====================================================================
   concengine.net — Surreal Earth-Archive
   Variable-fluid serif typography, paper-aged substrate,
   strict vertical-median split-screen, geometric wayfinding.
===================================================================== */

:root {
    --ground-paper:   #EFE6D2;
    --ground-shadow:  #E0D2B5;
    --clay-warm:      #C97B4A;
    --ochre-deep:     #A65A2A;
    --iron-oxide:     #7A2E1F;
    --moss-stone:     #5C6A3E;
    --slate-dusk:     #3B3A36;
    --ink-deep:       #1F1C18;
    --field-tan:      #C9B68C;
    --rule-mineral:   #7A5C3E;

    /* live-driven by JS via requestAnimationFrame */
    --soft: 80;
    --wonk: 1;
    --opsz: 96;
    --casl: 0.85;
    --mono: 0.25;

    --rule-w: 1.5px;

    --skel-shimmer: linear-gradient(
        100deg,
        var(--ground-shadow) 0%,
        var(--ground-paper) 50%,
        var(--ground-shadow) 100%
    );
}

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

html, body {
    background: var(--ground-paper);
    color: var(--slate-dusk);
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.62;
    font-feature-settings: "ss01", "ss02";
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(118deg, #EFE6D2 0%, #E0D2B5 60%, rgba(201,123,74,0.15) 130%),
        var(--ground-paper);
    background-attachment: fixed;
}

/* ===== Hidden SVG defs (shadow filters etc.) ===== */
.svg-defs { position: absolute; width: 0; height: 0; }

/* ===== Global paper grain overlay ===== */
.paper-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 80;
    mix-blend-mode: multiply;
}
.paper-overlay__layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
}
.paper-overlay__layer--tooth { opacity: 0.85; mix-blend-mode: multiply; }

/* ===== Chapter scales (left + right edges) ===== */
.chapter-scale {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 90;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--iron-oxide);
    pointer-events: none;
    background:
        linear-gradient(180deg,
            rgba(239,230,210,0.85),
            rgba(224,210,181,0.7));
    border-right: 1px solid rgba(122, 92, 62, 0.18);
}
.chapter-scale--left  { left: 0; }
.chapter-scale--right { right: 0; border-right: none; border-left: 1px solid rgba(122, 92, 62, 0.18); text-align: right; padding-right: 6px; }

.chapter-scale__list {
    list-style: none;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 30px 0;
    text-align: center;
    z-index: 2;
}
.chapter-scale__item {
    display: block;
    transform: rotate(-90deg);
    transform-origin: center center;
    transition: color 0.6s ease;
}
.chapter-scale__num {
    display: inline-block;
    padding: 0 4px;
    color: rgba(58, 58, 54, 0.45);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}
.chapter-scale__item.is-active .chapter-scale__num {
    color: var(--iron-oxide);
    text-shadow: 0 0 1px rgba(122,46,31,0.4);
}

.chapter-scale__fill {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 0%;
    background: linear-gradient(180deg, rgba(122,46,31,0.10), rgba(122,46,31,0.22));
    z-index: 1;
    transition: height 0.18s linear;
}

.chapter-scale__stamp {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: right center;
    white-space: nowrap;
    font-feature-settings: "tnum";
    color: var(--slate-dusk);
}
.chapter-scale__minor {
    position: absolute;
    bottom: 22px;
    right: 6px;
    transform: rotate(-90deg);
    transform-origin: right bottom;
    font-size: 9px;
    color: rgba(58,58,54,0.55);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ===== Meridian rule (the spine, fixed full-height) ===== */
.meridian {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    width: var(--rule-w);
    transform: translateX(-50%);
    z-index: 70;
    background: var(--rule-mineral);
    pointer-events: none;
    box-shadow: 0 0 0 0.5px rgba(122,46,31,0.22);
}
.meridian__fiber {
    position: absolute;
    inset: -2px;
    width: calc(100% + 4px);
    opacity: 0.7;
    mix-blend-mode: multiply;
}

/* ===== Codex (main column container) ===== */
.codex {
    position: relative;
    z-index: 10;
    width: 100%;
    margin: 0 auto;
}

/* ===== Bands (each section) ===== */
.band {
    position: relative;
    display: grid;
    grid-template-columns: 1fr var(--rule-w) 1fr;
    width: 100%;
    padding: 110px 0;
    overflow: hidden;
}

.band__cell {
    position: relative;
    padding: 0 64px 0 80px;
}
.band__cell--left  { padding-left: 96px; padding-right: 64px; }
.band__cell--right { padding-left: 64px;  padding-right: 96px; }

/* Right cell drift: copy "in process of being reconciled into alignment" */
.band__cell--right > * { transform: rotate(-0.4deg); transform-origin: 0 50%; }
.band__cell--right { line-height: 1.74; }     /* looser rhythm 12px-ish */

.band__cell--left  { line-height: 1.62; }     /* denser 8px rhythm */

/* ===== Display typography (Fraunces with live axes) ===== */
.display {
    font-family: "Fraunces", "Source Serif 4", Georgia, serif;
    color: var(--slate-dusk);
    line-height: 1.04;
    letter-spacing: -0.018em;
    font-variation-settings:
        "SOFT" var(--soft),
        "WONK" var(--wonk),
        "opsz" var(--opsz);
    font-weight: 540;
    text-wrap: balance;
}

.display--hero {
    font-size: clamp(2.6rem, 6.4vw, 5.4rem);
}
.display--section {
    font-size: clamp(1.9rem, 3.6vw, 3.2rem);
    margin: 18px 0 28px;
}
.display .line { display: block; }
.display.drift { transform: rotate(-0.4deg); }

/* Cell eyebrow — Recursive (sub-display register) */
.cell-eyebrow {
    font-family: "Recursive", "JetBrains Mono", ui-monospace, monospace;
    font-variation-settings: "MONO" var(--mono), "CASL" var(--casl);
    font-size: 12.2px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--iron-oxide);
    margin-bottom: 10px;
}
.cell-eyebrow--drift { color: var(--ochre-deep); }

/* ===== Prose (body Source Serif 4) ===== */
.prose {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 17px;
    line-height: 1.62;
    color: var(--slate-dusk);
    max-width: 38ch;
    margin: 0 0 18px;
}
.prose--narrow { max-width: 32ch; }
.prose em { font-style: italic; color: var(--iron-oxide); }

/* ===================================================================
   I. HERO
=================================================================== */
.band--hero {
    min-height: 100vh;
    padding: 0;
    align-content: stretch;
}
.band--hero .band__cell {
    position: relative;
    padding: 80px 96px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.band--hero .band__cell--left  { background: linear-gradient(180deg, var(--ground-paper) 0%, #DCD4B5 70%, #B5B19A 100%); }
.band--hero .band__cell--right { background: linear-gradient(180deg, var(--ground-paper) 0%, #E5C7A2 70%, var(--ochre-deep) 100%); }

/* Horizons (the cliff faces) */
.hero-horizon {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 38%;
    pointer-events: none;
    z-index: 1;
}
.hero-horizon--left {
    background:
        radial-gradient(ellipse at 30% 100%, rgba(92,106,62,0.85) 10%, rgba(92,106,62,0.55) 60%, transparent 100%),
        linear-gradient(180deg, transparent 0%, var(--moss-stone) 70%);
    clip-path: polygon(0% 60%, 8% 52%, 18% 58%, 26% 44%, 38% 50%, 48% 42%, 58% 50%, 68% 46%, 78% 54%, 88% 48%, 100% 56%, 100% 100%, 0% 100%);
}
.hero-horizon--right {
    background:
        linear-gradient(180deg, var(--clay-warm) 0%, var(--ochre-deep) 100%);
    clip-path: polygon(0% 60%, 6% 36%, 14% 50%, 22% 30%, 32% 46%, 40% 24%, 48% 42%, 56% 22%, 66% 40%, 74% 28%, 84% 38%, 92% 22%, 100% 34%, 100% 100%, 0% 100%);
}

.hero-headline {
    position: relative;
    z-index: 3;
    color: var(--slate-dusk);
    margin-bottom: 30px;
}
.hero-headline--left  { text-align: left; }
.hero-headline--right { text-align: right; align-self: flex-end; color: var(--ground-paper); }

/* Half-buried clock astride meridian */
.clock-buried {
    position: absolute;
    left: 50%;
    top: 30%;
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: none;
}
.clock-buried__earth {
    position: absolute;
    left: -260px;
    right: -260px;
    bottom: 38%;
    height: 40%;
    background: linear-gradient(180deg, transparent 0%, var(--field-tan) 35%, #8A7E5C 100%);
    clip-path: polygon(0% 70%, 10% 60%, 22% 68%, 35% 55%, 48% 64%, 60% 56%, 72% 66%, 84% 58%, 100% 64%, 100% 100%, 0% 100%);
    z-index: -1;
    filter: blur(0.4px);
}

/* Hero seed line */
.hero-seed {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    z-index: 5;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12.5px;
    color: var(--slate-dusk);
    letter-spacing: 0.04em;
    background: rgba(239,230,210,0.65);
    padding: 8px 14px;
    border: 0.5px solid rgba(122,92,62,0.4);
    border-radius: 1px;
    backdrop-filter: blur(2px);
}
.hero-seed__label { color: rgba(58,58,54,0.65); margin-right: 4px; }
.hero-seed__value {
    color: var(--iron-oxide);
    cursor: pointer;
    border-bottom: 1px dashed var(--iron-oxide);
    padding-bottom: 1px;
    transition: color 0.4s, border-color 0.4s;
    font-weight: 500;
}
.hero-seed__value:hover { color: var(--ochre-deep); border-color: var(--ochre-deep); }
.hero-seed__hint {
    margin-left: 14px;
    color: rgba(58,58,54,0.5);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ===== Markers (the floating geometric stones) ===== */
.marker {
    position: absolute;
    z-index: 8;
    pointer-events: none;
    will-change: transform;
}
.marker--meridian { left: 50%; transform: translateX(-50%); }
.marker--circle   { top: 18%; }
.marker--hexagon  { top: 14%; }
.marker--square   { top: 12%; right: 64px; }
.marker--right    { z-index: 8; }
.marker--dodec    { top: 30%; }
.marker svg { display: block; overflow: visible; }

/* ===================================================================
   II. THE ENGINE
=================================================================== */
.band--engine .band__cell { padding-top: 130px; }
.band--engine .display--section { margin-bottom: 36px; }

.settled-stack, .speculative-stack {
    list-style: none;
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 460px;
}

.settled-stack li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background:
        radial-gradient(ellipse at 25% 30%, var(--clay-warm) 0%, var(--ochre-deep) 50%, var(--iron-oxide) 110%);
    color: var(--ground-paper);
    border-radius: 1.5px;
    box-shadow:
        0 1px 0 rgba(31,28,24,0.18),
        inset 0 0 0 0.5px rgba(31,28,24,0.32);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    position: relative;
}
.settled-stack li::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='30'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='1'/><feColorMatrix type='matrix' values='0 0 0 0 0.18  0 0 0 0 0.10  0 0 0 0 0.06  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 100px 30px;
    mix-blend-mode: multiply;
    pointer-events: none;
    opacity: 0.7;
}
.settled-stack .ev-id { opacity: 0.85; }
.settled-stack .ev-payload { font-family: "Source Serif 4", serif; font-size: 14px; font-style: italic; opacity: 0.96; }

.speculative-stack li {
    display: block;
    padding: 14px 18px;
    border-radius: 2px;
    height: 40px;
    background: var(--skel-shimmer);
    background-size: 220% 100%;
    animation: shimmer 3.6s ease-in-out infinite;
    border: 0.5px dashed rgba(122,92,62,0.35);
    position: relative;
    overflow: hidden;
}
.speculative-stack li:nth-child(2n) { width: 86%; }
.speculative-stack li:nth-child(3n) { width: 70%; }
.speculative-stack li:nth-child(5n) { width: 92%; }

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* CTA — single line of underlined Fraunces */
.cta-line {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 60px;
    font-family: "Fraunces", serif;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-variation-settings: "SOFT" 70, "WONK" 1, "opsz" 90;
    color: var(--iron-oxide);
    text-decoration: underline;
    text-decoration-color: rgba(122,46,31,0.55);
    text-underline-offset: 8px;
    text-decoration-thickness: 1.2px;
    cursor: pointer;
    transition: color 0.5s ease;
    letter-spacing: -0.012em;
}
.cta-line:hover { color: var(--ochre-deep); }

/* ===================================================================
   III. RECONCILIATION
=================================================================== */
.band--reconcile { padding: 130px 0; }
.band--reconcile .band__header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 60px;
    padding: 0 96px;
}
.band--reconcile .band__header .display--section { margin: 8px auto 0; }

.scenarios {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr var(--rule-w) 1fr;
    row-gap: 56px;
}
.scenarios > .scenario {
    grid-column: 1;
    padding: 0 64px 0 96px;
    position: relative;
}
.scenarios > .scenario--right {
    grid-column: 3;
    padding: 0 96px 0 64px;
    transform: rotate(-0.4deg);
    transform-origin: 0 50%;
}

.scenario {
    position: relative;
    max-width: 60ch;
}
.scenario__num {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--iron-oxide);
    margin-bottom: 10px;
}
.scenario__title {
    font-family: "Fraunces", serif;
    font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 60;
    font-size: clamp(1.3rem, 1.9vw, 1.7rem);
    line-height: 1.18;
    letter-spacing: -0.014em;
    color: var(--slate-dusk);
    margin-bottom: 14px;
    text-wrap: balance;
}
.scenario__body {
    font-size: 16px;
    line-height: 1.62;
    color: var(--slate-dusk);
    max-width: 56ch;
}
.scenario__marker {
    position: absolute;
    right: -16px;
    top: -6px;
}
.scenario--right .scenario__marker {
    right: auto;
    left: -16px;
}

/* ===================================================================
   IV. BENCHMARKS
=================================================================== */
.band--bench .band__cell { padding-top: 130px; padding-bottom: 30px; min-height: 90vh; }
.band--bench .band__cell--right {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
}

.bench-ridge {
    position: relative;
    width: 100%;
    height: 320px;
    margin: 0 auto;
    transform: rotate(-0.4deg);
}
.bench-ridge__row {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--iron-oxide);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    user-select: none;
    z-index: 1;
}
.bench-ridge__row .digit {
    display: inline-block;
    transform: translateY(0);
    transform-origin: bottom center;
}
.bench-ridge__row::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, rgba(166,90,42,0.18) 100%);
    pointer-events: none;
}

.bench-ridge__overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(239,230,210,0.94);
    backdrop-filter: blur(2px);
    transition: opacity 0.5s ease;
    padding: 20px 24px;
    overflow: auto;
    z-index: 2;
    border: 0.5px solid rgba(122,92,62,0.3);
}
.bench-ridge:hover .bench-ridge__overlay { opacity: 1; }

.bench-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12px;
    color: var(--slate-dusk);
}
.bench-table th, .bench-table td {
    text-align: right;
    padding: 4px 12px;
    border-bottom: 0.5px solid rgba(122,92,62,0.25);
    font-feature-settings: "tnum";
}
.bench-table th {
    color: var(--iron-oxide);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 10.5px;
}

/* ===================================================================
   V. DOCUMENTS / API
=================================================================== */
.band--docs .band__cell { padding-top: 130px; }
.band--docs .band__cell--right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cliff-door {
    position: relative;
    width: 220px;
    height: 320px;
    margin-bottom: 4px;
    filter: drop-shadow(8px 12px 4px rgba(31,28,24,0.18));
    align-self: flex-start;
}
.cliff-door__caption {
    display: block;
    margin-top: 8px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 10.5px;
    color: rgba(58,58,54,0.6);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.code-panel {
    background: var(--ground-shadow);
    border: 0.5px solid rgba(122,92,62,0.32);
    border-radius: 2px;
    padding: 22px 26px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--slate-dusk);
    box-shadow: inset 2px 2px 8px rgba(122,92,62,0.18), 0 1px 0 rgba(255,255,255,0.4);
    overflow-x: auto;
    max-width: 100%;
    position: relative;
}
.code-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='1'/><feColorMatrix type='matrix' values='0 0 0 0 0.55 0 0 0 0 0.40 0 0 0 0 0.22 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.7;
}
.code-panel code { display: block; position: relative; }
.c-com  { color: rgba(58,58,54,0.55); font-style: italic; }
.c-kw   { color: var(--iron-oxide); font-weight: 600; }
.c-str  { color: var(--moss-stone); }
.c-num  { color: var(--ochre-deep); }

/* ===================================================================
   VI. PROVENANCE
=================================================================== */
.band--prov .band__cell { padding-top: 130px; }
.prov-list { list-style: none; margin-top: 28px; }
.prov-list__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0 12px;
    border-bottom: 0.5px dashed rgba(122,92,62,0.28);
    font-family: "Fraunces", serif;
    font-variation-settings: "SOFT" 70, "WONK" 0, "opsz" 36;
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    color: var(--slate-dusk);
    letter-spacing: -0.008em;
}
.prov-list__shape {
    display: inline-block;
    width: 14px; height: 14px;
    margin-left: 10px;
    flex-shrink: 0;
}
.prov-list__shape[data-shape="triangle"] {
    background: var(--moss-stone);
    clip-path: polygon(50% 8%, 96% 92%, 4% 92%);
}
.prov-list__shape[data-shape="circle"] {
    background: var(--clay-warm);
    border-radius: 50%;
}
.prov-list__shape[data-shape="rhombus"] {
    background: var(--ochre-deep);
    transform: rotate(12deg);
    width: 12px; height: 12px;
}

/* ===================================================================
   VII. FOOTER STRATUM
=================================================================== */
.band--floor {
    grid-template-columns: 1fr var(--rule-w) 1fr;
    padding: 0;
    min-height: 56vh;
    align-content: stretch;
}
.strata {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 56vh;
}
.strata__layer { flex: 1; position: relative; }
.strata__layer::after {
    content: "";
    position: absolute; inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='60'><filter id='n'><feTurbulence baseFrequency='0.012' numOctaves='2'/><feColorMatrix type='matrix' values='0 0 0 0 0.65  0 0 0 0 0.35  0 0 0 0 0.16  0 0 0 0.10 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: cover;
    mix-blend-mode: multiply;
    pointer-events: none;
}
.strata__layer--1 { background: var(--ground-paper); flex-grow: 1.2; }
.strata__layer--2 { background: linear-gradient(180deg, var(--ground-paper), var(--field-tan)); flex-grow: 1.4; }
.strata__layer--3 { background: var(--field-tan); }
.strata__layer--4 { background: linear-gradient(180deg, var(--field-tan), #8A7E5C); flex-grow: 1.6; }
.strata__layer--5 { background: linear-gradient(180deg, #8A7E5C, var(--moss-stone)); flex-grow: 1.2; }
.strata__layer--6 { background: var(--moss-stone); }

.band--floor .marker--dodec {
    top: 18%;
    z-index: 12;
}

.floor-colophon {
    position: absolute;
    grid-column: 1 / -1;
    bottom: 24px;
    left: 0; right: 0;
    text-align: center;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11.5px;
    letter-spacing: 0.12em;
    color: var(--ground-paper);
    z-index: 14;
    text-shadow: 0 0 1px rgba(31,28,24,0.4);
}
.floor-colophon__sep { margin: 0 10px; opacity: 0.6; }
.floor-colophon__hash { opacity: 0.85; }

/* ===================================================================
   SKELETON ENTRANCE STATES
=================================================================== */
.skel {
    position: relative;
    transition:
        color 0.5s ease,
        opacity 0.6s ease,
        transform 0.6s ease;
}
.skel:not(.is-resolved)::before {
    content: "";
    position: absolute;
    inset: -4px -8px;
    background: var(--skel-shimmer);
    background-size: 220% 100%;
    animation: shimmer 3.6s ease-in-out infinite;
    border-radius: 2px;
    z-index: 1;
}
.skel:not(.is-resolved) > * { opacity: 0; }
.skel:not(.is-resolved) {
    color: transparent !important;
}

.skel.is-resolved::before {
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}
.skel.is-resolved > * {
    opacity: 1;
    transition: opacity 0.6s ease;
}

/* For the headline class: when settling, animate Fraunces SOFT axis.
   We animate by switching font-variation-settings via a class. */
.display.is-settling { font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96; }
.display.is-resolved { font-variation-settings: "SOFT" 80,  "WONK" 1, "opsz" 96; transition: font-variation-settings 0.6s ease; }

/* ===================================================================
   RESPONSIVE — tablet / phone preserves spine but with collapsed width
=================================================================== */
@media (max-width: 720px) {
    .band__cell { padding: 0 28px 0 40px; }
    .band__cell--left  { padding-left: 44px; padding-right: 22px; }
    .band__cell--right { padding-left: 22px; padding-right: 44px; }
    .clock-buried svg { width: 150px; height: 150px; }
    .marker--circle svg, .marker--hexagon svg { width: 86px; height: 86px; }
    .band--reconcile .band__header { padding: 0 28px; }
    .scenarios > .scenario { padding: 0 22px 0 44px; }
    .scenarios > .scenario--right { padding: 0 44px 0 22px; }
    .chapter-scale { width: 22px; }
}

/* ===================================================================
   REDUCED MOTION
=================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0ms !important;
    }
    .skel:not(.is-resolved)::before { animation: none; opacity: 0; }
    .skel:not(.is-resolved) > * { opacity: 1; }
    .skel:not(.is-resolved) { color: inherit !important; }
    .speculative-stack li { animation: none; background: var(--ground-shadow); }
    .marker { transform: translateX(-50%) !important; }
    .marker--square { transform: none !important; }
}
