/* ============================================================
   cbdc.bar — Hexagonal Financial Architecture
   Palette: sunset-warm, Aesthetic: isometric, Layout: honeycomb
   Compliance manifest: Interaction Model:** counter-animate effect numbers their 1.5s using JavaScript `requestAnimationFrame`. (Google Fonts cycles through full 20-second `conic-gradient` rotation. Bold hexagon's animated that seconds. Surrounding
============================================================ */

:root {
    --deep-ember: #2d1b14;
    --sunset-blaze: #c4623a;
    --amber-hour: #d4953a;
    --dusk-rose: #c98a7a;
    --twilight-cream: #f2e8d9;
    --horizon-slate: #1e2a3a;
    --honeycomb-glow: rgba(212, 149, 58, 0.15);
    --obsidian-base: #140e0a;
    --warm-gold-soft: #c9a87c;

    --font-display: "Playfair Display", "Lora", Georgia, serif;
    --font-section: "Space Grotesk", "Inter", system-ui, sans-serif;
    --font-body: "Source Serif 4", "Source Serif Pro", Georgia, serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

    --hex-clip: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

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

html, body {
    background: var(--obsidian-base);
    color: var(--twilight-cream);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    overflow-x: hidden;
    min-height: 100%;
}

body {
    background:
        radial-gradient(ellipse at 50% 20%, var(--deep-ember) 0%, var(--obsidian-base) 60%, #000 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(60deg, rgba(212, 149, 58, 0.02) 0 1px, transparent 1px 70px),
        repeating-linear-gradient(-60deg, rgba(212, 149, 58, 0.02) 0 1px, transparent 1px 70px);
    pointer-events: none;
    z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ============================================================
   BOOT SCREEN — Golden Hour Emergence
============================================================ */
.boot-screen {
    position: fixed;
    inset: 0;
    background: var(--obsidian-base);
    z-index: 9999;
    pointer-events: none;
    animation: bootFade 1.6s ease-out 0.4s forwards;
}

.boot-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 149, 58, 0.35), transparent 45%);
    opacity: 0;
    animation: bootGlow 1.2s ease-out 0.4s forwards;
}

@keyframes bootFade {
    0% { opacity: 1; }
    60% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes bootGlow {
    0% { opacity: 0; transform: scale(0.4); }
    60% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.8); }
}

/* ============================================================
   HEX NAV CLUSTER
============================================================ */
.hex-nav {
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(3, 22px);
    grid-auto-rows: 26px;
    gap: 4px 6px;
    padding: 14px 16px 14px 14px;
    background: rgba(20, 14, 10, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(212, 149, 58, 0.25);
    opacity: 0;
    animation: navReveal 0.8s ease-out 2s forwards;
}

.hex-nav::before {
    content: "cbdc.bar / nav";
    position: absolute;
    top: -20px;
    left: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.18em;
    color: var(--warm-gold-soft);
    text-transform: uppercase;
}

.nav-hex {
    width: 22px;
    height: 26px;
    clip-path: var(--hex-clip);
    background: var(--nc, var(--amber-hour));
    opacity: 0.62;
    transition: opacity 0.35s ease, transform 0.35s ease;
    position: relative;
    cursor: pointer;
}

.nav-hex:nth-child(4),
.nav-hex:nth-child(5),
.nav-hex:nth-child(6) {
    transform: translateX(11px);
}

.nav-hex:hover {
    opacity: 1;
    transform: scale(1.18);
}

.nav-hex:nth-child(4):hover,
.nav-hex:nth-child(5):hover,
.nav-hex:nth-child(6):hover {
    transform: translateX(11px) scale(1.18);
}

.nav-hex::after {
    content: attr(data-label);
    position: absolute;
    left: 34px;
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    font-family: var(--font-section);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--twilight-cream);
    background: rgba(20, 14, 10, 0.8);
    padding: 4px 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-left: 2px solid var(--nc, var(--amber-hour));
}

.nav-hex:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@keyframes navReveal {
    0% { opacity: 0; transform: translateY(-12px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SHARED HEX CONSTRUCTS
============================================================ */
.gradient-mesh {
    background:
        conic-gradient(from 0deg, var(--sunset-blaze), var(--amber-hour), var(--dusk-rose), var(--sunset-blaze));
}

/* skeleton shimmer — the golden gilding */
@keyframes shimmerSweep {
    0%   { transform: translateX(-140%) skewX(-18deg); }
    100% { transform: translateX(160%) skewX(-18deg); }
}

.skel-shimmer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.skel-shimmer::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 60%;
    background: linear-gradient(100deg, transparent 0%, var(--honeycomb-glow) 40%, rgba(242, 232, 217, 0.22) 50%, var(--honeycomb-glow) 60%, transparent 100%);
    animation: shimmerSweep 1.8s linear infinite;
}

/* ============================================================
   HERO — ISOMETRIC CITYSCAPE
============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 780px;
    overflow: hidden;
    isolation: isolate;
}

.hero-sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 60% 78%, rgba(196, 98, 58, 0.35) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 60%, rgba(212, 149, 58, 0.25) 0%, transparent 50%),
        linear-gradient(180deg, #140e0a 0%, #241510 45%, #3a1f16 70%, #4a2518 88%, #2d1b14 100%);
    z-index: -2;
}

.hero-sky::after {
    content: "";
    position: absolute;
    left: 62%;
    top: 62%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(244, 198, 120, 0.85) 0%, rgba(212, 149, 58, 0.4) 35%, transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
    animation: sunPulse 12s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50%      { transform: scale(1.12); opacity: 1; }
}

/* Hex ripple background — tessellated mesh */
.hex-ripple {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 25% 40%, rgba(212, 149, 58, 0.08) 0 18px, transparent 22px),
        radial-gradient(circle at 75% 50%, rgba(196, 98, 58, 0.06) 0 14px, transparent 18px),
        radial-gradient(circle at 15% 75%, rgba(201, 138, 122, 0.06) 0 10px, transparent 14px);
    pointer-events: none;
}

.hex-ripple::before,
.hex-ripple::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(212, 149, 58, 0.12) 0 2px, transparent 3px);
    background-size: 60px 52px;
    background-position: 0 0;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse at 50% 40%, black 0%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 0%, black 30%, transparent 70%);
}

.hex-ripple::after {
    background-size: 80px 70px;
    background-position: 30px 25px;
    opacity: 0.35;
    animation: rippleDrift 24s linear infinite;
}

@keyframes rippleDrift {
    to { background-position: 110px 95px; }
}

/* Isometric ground plane */
.cityscape {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    perspective: 1400px;
    perspective-origin: 50% 10%;
}

.iso-ground {
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: 0;
    height: 28%;
    background:
        repeating-linear-gradient(60deg,
            rgba(212, 149, 58, 0.18) 0 1px,
            transparent 1px 48px),
        repeating-linear-gradient(-60deg,
            rgba(212, 149, 58, 0.18) 0 1px,
            transparent 1px 48px),
        linear-gradient(180deg, rgba(45, 27, 20, 0.4) 0%, rgba(20, 14, 10, 0.95) 100%);
    transform: rotateX(68deg);
    transform-origin: 50% 100%;
    border-top: 1px solid rgba(212, 149, 58, 0.22);
}

/* Isometric tower base */
.iso-tower {
    position: relative;
    width: 110px;
    height: var(--h);
    max-height: 0;
    opacity: 0;
    transform-style: preserve-3d;
    margin: 0 -14px;
    animation: towerRise 1.2s cubic-bezier(0.22, 0.8, 0.32, 1) var(--d) forwards;
}

@keyframes towerRise {
    0%   { max-height: 0; opacity: 0; }
    30%  { opacity: 1; }
    100% { max-height: 520px; opacity: 1; }
}

.iso-tower.t1 { width: 82px; }
.iso-tower.t2 { width: 96px; }
.iso-tower.t3 { width: 128px; z-index: 6; }
.iso-tower.t4 { width: 110px; }
.iso-tower.t5 { width: 90px; }
.iso-tower.t6 { width: 76px; }
.iso-tower.t7 { width: 100px; }

.iso-face {
    position: absolute;
    display: block;
}

.iso-face.front {
    inset: 0;
    background: linear-gradient(180deg, var(--deep-ember) 0%, #1a0f0a 100%);
    border: 1px solid rgba(212, 149, 58, 0.3);
    border-bottom: none;
    transform: skewY(-30deg);
    transform-origin: bottom left;
    box-shadow:
        inset 0 0 0 1px rgba(212, 149, 58, 0.12),
        inset 0 40px 60px rgba(196, 98, 58, 0.12);
}

/* window grid on front face */
.iso-face.front::after {
    content: "";
    position: absolute;
    inset: 10% 14%;
    background:
        repeating-linear-gradient(0deg,
            rgba(212, 149, 58, 0.2) 0 2px,
            transparent 2px 14px),
        repeating-linear-gradient(90deg,
            rgba(212, 149, 58, 0.15) 0 1px,
            transparent 1px 10px);
    opacity: 0.9;
}

.iso-face.side {
    top: 0;
    bottom: 0;
    right: -36px;
    width: 36px;
    background: linear-gradient(180deg, #3a1f16 0%, #140e0a 100%);
    border: 1px solid rgba(212, 149, 58, 0.2);
    border-left: none;
    border-bottom: none;
    transform: skewY(30deg);
    transform-origin: bottom left;
}

.iso-face.side::after {
    content: "";
    position: absolute;
    inset: 10% 30% 10% 20%;
    background:
        repeating-linear-gradient(0deg,
            rgba(212, 149, 58, 0.14) 0 2px,
            transparent 2px 16px);
}

.iso-face.top {
    top: -18px;
    left: 0;
    right: -36px;
    height: 36px;
    background:
        linear-gradient(120deg, var(--sunset-blaze) 0%, var(--amber-hour) 55%, var(--dusk-rose) 100%);
    transform: skewX(-60deg) scaleY(0.5);
    transform-origin: bottom left;
    box-shadow:
        0 0 30px rgba(212, 149, 58, 0.45),
        inset 0 0 0 1px rgba(242, 232, 217, 0.2);
}

.t-main .iso-face.front {
    background: linear-gradient(180deg, #3a1f16 0%, #1e1009 100%);
    border-color: rgba(212, 149, 58, 0.55);
    box-shadow:
        inset 0 0 0 1px rgba(212, 149, 58, 0.2),
        inset 0 60px 120px rgba(196, 98, 58, 0.22);
}

.t-main .iso-face.top {
    background:
        conic-gradient(from 200deg, var(--sunset-blaze), var(--amber-hour), var(--dusk-rose), var(--sunset-blaze));
    box-shadow:
        0 0 60px rgba(212, 149, 58, 0.65),
        inset 0 0 0 1px rgba(242, 232, 217, 0.3);
}

/* Logotype inside main tower */
.logotype {
    position: absolute;
    inset: 10% 6% 18%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    transform: none;
    opacity: 0;
    animation: logoFade 1s ease-out 1.4s forwards;
}

@keyframes logoFade {
    to { opacity: 1; }
}

.logotype h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(42px, 6vw, 96px);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--twilight-cream);
    text-shadow: 0 6px 24px rgba(20, 14, 10, 0.85);
    writing-mode: horizontal-tb;
}

.logotype h1 .dot {
    color: var(--sunset-blaze);
    display: inline-block;
    transform: translateY(-0.05em);
}

.logotype .tagline {
    font-family: var(--font-section);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--warm-gold-soft);
    max-width: 22ch;
    line-height: 1.6;
}

/* Descend button */
.descend-btn {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 20;
    animation: descendPulse 2.6s ease-in-out infinite;
}

@keyframes descendPulse {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
}

.descend-hex {
    width: 68px;
    height: 76px;
    background: conic-gradient(from 0deg, var(--sunset-blaze), var(--amber-hour), var(--dusk-rose), var(--sunset-blaze));
    clip-path: var(--hex-clip);
    position: absolute;
    top: -4px;
    opacity: 0.4;
    filter: blur(14px);
    animation: descendHalo 2.6s ease-in-out infinite;
}

@keyframes descendHalo {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.25); }
}

.descend-arrow {
    position: relative;
    width: 56px;
    height: 64px;
    background: rgba(20, 14, 10, 0.7);
    clip-path: var(--hex-clip);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-hour);
    border: 1px solid rgba(212, 149, 58, 0.6);
}

.descend-arrow svg {
    width: 18px;
    height: 22px;
}

.descend-label {
    font-family: var(--font-section);
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--warm-gold-soft);
    font-weight: 500;
}

/* Isometric extruded glyph */
.iso-glyph {
    position: absolute;
    width: 120px;
    height: 120px;
    pointer-events: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 120px;
    line-height: 1;
}

.iso-glyph-b {
    top: 12%;
    left: 4%;
    color: rgba(196, 98, 58, 0.4);
    text-shadow:
        1px 1px 0 rgba(212, 149, 58, 0.35),
        2px 2px 0 rgba(212, 149, 58, 0.3),
        3px 3px 0 rgba(212, 149, 58, 0.25),
        4px 4px 0 rgba(212, 149, 58, 0.2),
        5px 5px 0 rgba(212, 149, 58, 0.15),
        6px 6px 0 rgba(196, 98, 58, 0.2),
        7px 7px 0 rgba(196, 98, 58, 0.15),
        8px 8px 0 rgba(196, 98, 58, 0.12),
        10px 10px 30px rgba(20, 14, 10, 0.9);
}

.glyph-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glyph-face.f-front { color: inherit; }
.glyph-face.f-side,
.glyph-face.f-top { display: none; }

/* ============================================================
   CHEVRON DIVIDERS
============================================================ */
.chevron-divider {
    position: relative;
    width: 100%;
    height: 60px;
    overflow: hidden;
}

.chev-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.chev-svg path {
    fill: none;
    stroke: var(--amber-hour);
    stroke-width: 1.2;
    stroke-linecap: square;
    stroke-linejoin: miter;
    opacity: 0.4;
    stroke-dasharray: 4000;
    stroke-dashoffset: 4000;
    transition: stroke-dashoffset 0.8s ease-out;
}

.chev-svg.is-drawn path {
    stroke-dashoffset: 0;
}

/* ============================================================
   SECTION HEADS — shared
============================================================ */
.section-head {
    text-align: center;
    padding: 70px 24px 30px;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--warm-gold-soft);
    margin-bottom: 18px;
    font-weight: 300;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--twilight-cream);
    margin-bottom: 20px;
}

.section-lede {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(242, 232, 217, 0.78);
    max-width: 55ch;
    margin: 0 auto;
}

/* ============================================================
   KNOWLEDGE LATTICE
============================================================ */
.lattice {
    position: relative;
    min-height: 100vh;
    padding: 60px 0 120px;
    background:
        radial-gradient(ellipse at 50% 30%, var(--deep-ember) 0%, var(--obsidian-base) 75%);
    overflow: hidden;
    isolation: isolate;
}

.lattice::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(196, 98, 58, 0.08) 0 2px, transparent 3px),
        radial-gradient(circle at 82% 70%, rgba(212, 149, 58, 0.08) 0 2px, transparent 3px);
    background-size: 90px 78px;
    opacity: 0.5;
    z-index: -1;
}

.lattice-field {
    position: relative;
    max-width: 1120px;
    margin: 40px auto 0;
    height: 680px;
    padding: 0 24px;
}

/* Hex ring positioning — six hexagons around a center cube */
.lattice-hex {
    position: absolute;
    width: 240px;
    height: 276px;
    clip-path: var(--hex-clip);
    background: linear-gradient(160deg, rgba(45, 27, 20, 0.92) 0%, rgba(20, 14, 10, 0.92) 100%);
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.1), filter 0.4s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55));
}

.lattice-field.is-revealed .lattice-hex {
    opacity: 1;
    transform: translateY(0);
}

.lattice-field.is-revealed .lh-1 { transition-delay: 0.05s; }
.lattice-field.is-revealed .lh-2 { transition-delay: 0.12s; }
.lattice-field.is-revealed .lh-3 { transition-delay: 0.19s; }
.lattice-field.is-revealed .lh-4 { transition-delay: 0.26s; }
.lattice-field.is-revealed .lh-5 { transition-delay: 0.33s; }
.lattice-field.is-revealed .lh-6 { transition-delay: 0.4s; }

.lattice-field.is-revealed .lattice-hex {
    transition:
        opacity 0.9s ease-out,
        transform 0.9s cubic-bezier(0.2, 0.8, 0.3, 1.1),
        filter 0.4s ease;
}

/* ring layout — centered cube at 50% 50% */
.lh-1 { top: 2%;   left: 50%; transform: translate(-50%, 14px); }
.lh-2 { top: 18%;  left: calc(50% + 200px); transform: translate(-50%, 14px); }
.lh-3 { top: 58%;  left: calc(50% + 200px); transform: translate(-50%, 14px); }
.lh-4 { top: 74%;  left: 50%; transform: translate(-50%, 14px); }
.lh-5 { top: 58%;  left: calc(50% - 200px); transform: translate(-50%, 14px); }
.lh-6 { top: 18%;  left: calc(50% - 200px); transform: translate(-50%, 14px); }

.lattice-field.is-revealed .lh-1 { transform: translate(-50%, 0); }
.lattice-field.is-revealed .lh-2 { transform: translate(-50%, 0); }
.lattice-field.is-revealed .lh-3 { transform: translate(-50%, 0); }
.lattice-field.is-revealed .lh-4 { transform: translate(-50%, 0); }
.lattice-field.is-revealed .lh-5 { transform: translate(-50%, 0); }
.lattice-field.is-revealed .lh-6 { transform: translate(-50%, 0); }

.lattice-hex::before {
    content: "";
    position: absolute;
    inset: 2px;
    clip-path: var(--hex-clip);
    background:
        conic-gradient(from var(--hex-angle, 0deg), rgba(196, 98, 58, 0.18), rgba(212, 149, 58, 0.14), rgba(201, 138, 122, 0.16), rgba(196, 98, 58, 0.18));
    z-index: 0;
    animation: hexConicRotate 30s linear infinite;
}

@keyframes hexConicRotate {
    to { --hex-angle: 360deg; }
}

@property --hex-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.lh-skel {
    position: absolute;
    inset: 8px;
    clip-path: var(--hex-clip);
    background: linear-gradient(160deg, rgba(45, 27, 20, 0.92) 0%, rgba(20, 14, 10, 0.96) 100%);
    overflow: hidden;
    z-index: 1;
    transition: opacity 0.6s ease;
}

.lh-skel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 0%, var(--honeycomb-glow) 40%, rgba(242, 232, 217, 0.22) 50%, var(--honeycomb-glow) 60%, transparent 100%);
    animation: shimmerSweep 1.8s linear infinite;
}

.lattice-hex.is-resolved .lh-skel {
    opacity: 0;
    pointer-events: none;
}

.lh-inner {
    position: absolute;
    inset: 0;
    padding: 72px 52px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s ease 0.1s;
}

.lattice-hex.is-resolved .lh-inner {
    opacity: 1;
}

.lh-num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--amber-hour);
    margin-bottom: 10px;
    display: block;
}

.lh-inner h3 {
    font-family: var(--font-section);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--twilight-cream);
    margin-bottom: 10px;
    line-height: 1.3;
}

.lh-inner p {
    font-family: var(--font-body);
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(242, 232, 217, 0.78);
    max-width: 20ch;
    margin: 0 auto;
}

.lattice-hex:hover {
    transform: translate(-50%, -4px) scale(1.02);
    filter: drop-shadow(0 14px 30px rgba(212, 149, 58, 0.35));
    z-index: 10;
}

.lattice-hex:hover::before {
    animation-duration: 6s;
}

/* breathing — neighbor push */
.lattice-field:hover .lattice-hex:not(:hover) {
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)) brightness(0.85);
}

.lattice-field .lattice-hex:hover ~ .lattice-hex,
.lattice-field .lattice-hex:has(~ .lattice-hex:hover) {
    /* fallback breathing */
}

/* Central isometric cube */
.iso-cube {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 130px;
    height: 130px;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(-24deg) rotateY(35deg);
    z-index: 3;
    animation: cubeSpin 30s linear infinite;
}

@keyframes cubeSpin {
    from { transform: translate(-50%, -50%) rotateX(-24deg) rotateY(35deg); }
    to   { transform: translate(-50%, -50%) rotateX(-24deg) rotateY(395deg); }
}

.cube-face {
    position: absolute;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 149, 58, 0.55);
    background: rgba(20, 14, 10, 0.85);
    box-shadow: inset 0 0 40px rgba(196, 98, 58, 0.15);
}

.cube-face::after {
    content: "";
    position: absolute;
    inset: 12%;
    clip-path: var(--hex-clip);
    background: conic-gradient(from 0deg, var(--sunset-blaze), var(--amber-hour), var(--dusk-rose), var(--sunset-blaze));
    opacity: 0.55;
    animation: cubeFaceConic 18s linear infinite;
}

@keyframes cubeFaceConic {
    to { filter: hue-rotate(-20deg) brightness(1.05); }
}

.cf-front  { transform: translateZ(65px); }
.cf-back   { transform: rotateY(180deg) translateZ(65px); }
.cf-right  { transform: rotateY(90deg) translateZ(65px); }
.cf-left   { transform: rotateY(-90deg) translateZ(65px); }
.cf-top    { transform: rotateX(90deg) translateZ(65px); }
.cf-bottom { transform: rotateX(-90deg) translateZ(65px); }

/* ============================================================
   DATA CORRIDOR
============================================================ */
.corridor {
    position: relative;
    padding: 60px 0 100px;
    background:
        linear-gradient(180deg, var(--obsidian-base) 0%, #1a1008 50%, var(--obsidian-base) 100%);
    overflow: hidden;
}

.corridor-strip {
    margin: 40px 0 0;
    padding: 40px 8vw 60px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--amber-hour) transparent;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.corridor-strip::-webkit-scrollbar {
    height: 6px;
}

.corridor-strip::-webkit-scrollbar-track {
    background: rgba(212, 149, 58, 0.08);
}

.corridor-strip::-webkit-scrollbar-thumb {
    background: var(--amber-hour);
    border-radius: 0;
}

.corridor-row {
    display: flex;
    gap: 24px;
    padding: 0 20px;
    flex-wrap: nowrap;
    width: max-content;
}

.corridor-row-offset {
    padding-left: 110px;
}

.data-hex {
    position: relative;
    flex: 0 0 auto;
    width: 240px;
    height: 276px;
    clip-path: var(--hex-clip);
    background:
        linear-gradient(160deg, rgba(45, 27, 20, 0.95) 0%, rgba(20, 14, 10, 0.98) 100%);
    scroll-snap-align: center;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.1), filter 0.35s ease;
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.data-hex::before {
    content: "";
    position: absolute;
    inset: 3px;
    clip-path: var(--hex-clip);
    background: conic-gradient(from var(--hex-angle, 0deg),
        rgba(196, 98, 58, 0.25),
        rgba(212, 149, 58, 0.18),
        rgba(201, 138, 122, 0.2),
        rgba(196, 98, 58, 0.25));
    z-index: 0;
    animation: hexConicRotate 36s linear infinite;
}

.data-hex.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dh-skel {
    position: absolute;
    inset: 8px;
    clip-path: var(--hex-clip);
    background:
        linear-gradient(160deg, rgba(45, 27, 20, 0.95) 0%, rgba(20, 14, 10, 0.98) 100%);
    overflow: hidden;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.dh-skel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 0%, var(--honeycomb-glow) 40%, rgba(242, 232, 217, 0.22) 50%, var(--honeycomb-glow) 60%, transparent 100%);
    animation: shimmerSweep 1.8s linear infinite;
}

.data-hex.is-resolved .dh-skel {
    opacity: 0;
    pointer-events: none;
}

.dh-body {
    position: absolute;
    inset: 0;
    padding: 70px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.7s ease 0.1s;
}

.data-hex.is-resolved .dh-body {
    opacity: 1;
}

.dh-label {
    font-family: var(--font-section);
    font-size: 10.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--warm-gold-soft);
    font-weight: 500;
}

.dh-value {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--amber-hour);
    line-height: 1.1;
    min-height: 34px;
}

.dh-meta {
    font-family: var(--font-body);
    font-size: 11.5px;
    font-style: italic;
    color: rgba(242, 232, 217, 0.55);
    line-height: 1.4;
    max-width: 18ch;
}

.data-hex:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 16px 28px rgba(212, 149, 58, 0.35));
}

.data-hex:hover::before {
    animation-duration: 8s;
}

/* compass */
.corridor-compass {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    color: var(--warm-gold-soft);
    opacity: 0.75;
}

.compass-arrow svg {
    width: 34px;
    height: 20px;
}

.compass-arrow.left {
    animation: compassLeft 3s ease-in-out infinite;
}
.compass-arrow.right {
    animation: compassRight 3s ease-in-out infinite;
}

@keyframes compassLeft {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(-6px); }
}
@keyframes compassRight {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}

.compass-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 300;
}

/* ============================================================
   FOUNDATION
============================================================ */
.foundation {
    position: relative;
    padding: 60px 24px 60px;
    background:
        radial-gradient(ellipse at 50% 40%, var(--deep-ember) 0%, var(--obsidian-base) 80%);
    overflow: hidden;
    isolation: isolate;
}

.iso-glyph-c {
    top: 10%;
    left: 6%;
    color: rgba(212, 149, 58, 0.35);
    font-size: 140px;
    width: 140px;
    height: 140px;
    text-shadow:
        1px 1px 0 rgba(196, 98, 58, 0.3),
        2px 2px 0 rgba(196, 98, 58, 0.25),
        3px 3px 0 rgba(196, 98, 58, 0.22),
        4px 4px 0 rgba(196, 98, 58, 0.18),
        5px 5px 0 rgba(196, 98, 58, 0.15),
        6px 6px 0 rgba(201, 138, 122, 0.15),
        7px 7px 0 rgba(201, 138, 122, 0.12),
        10px 10px 30px rgba(20, 14, 10, 0.9);
}

.iso-glyph-d {
    bottom: 18%;
    right: 4%;
    color: rgba(201, 138, 122, 0.38);
    font-size: 140px;
    width: 140px;
    height: 140px;
    text-shadow:
        1px 1px 0 rgba(212, 149, 58, 0.32),
        2px 2px 0 rgba(212, 149, 58, 0.27),
        3px 3px 0 rgba(212, 149, 58, 0.22),
        4px 4px 0 rgba(212, 149, 58, 0.18),
        5px 5px 0 rgba(196, 98, 58, 0.2),
        6px 6px 0 rgba(196, 98, 58, 0.15),
        7px 7px 0 rgba(196, 98, 58, 0.12),
        10px 10px 30px rgba(20, 14, 10, 0.9);
}

.foundation-stage {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foundation-hex {
    position: relative;
    width: min(80vw, 900px);
    aspect-ratio: 1 / 1.15;
    clip-path: var(--hex-clip);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.88);
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.3, 1);
    overflow: hidden;
}

.foundation-hex.is-visible {
    transform: scale(1);
}

.foundation-border {
    position: absolute;
    inset: 0;
    clip-path: var(--hex-clip);
    background:
        conic-gradient(from var(--hex-angle, 0deg),
            var(--sunset-blaze) 0%,
            var(--amber-hour) 25%,
            var(--dusk-rose) 50%,
            var(--warm-gold-soft) 75%,
            var(--sunset-blaze) 100%);
    animation: hexConicRotate 20s linear infinite;
}

.foundation-inner {
    position: absolute;
    inset: 6px;
    clip-path: var(--hex-clip);
    background:
        radial-gradient(ellipse at 50% 40%, rgba(45, 27, 20, 0.95) 0%, rgba(20, 14, 10, 0.98) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12% 14%;
    text-align: center;
    gap: 32px;
}

.foundation-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(22px, 3.4vw, 46px);
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--twilight-cream);
    max-width: 22ch;
}

.foundation-quote em {
    font-style: italic;
}

.foundation-attr {
    font-family: var(--font-section);
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--warm-gold-soft);
    font-weight: 500;
}

/* Satellites around foundation */
.satellite {
    position: absolute;
    width: 150px;
    height: 172px;
    clip-path: var(--hex-clip);
    background: rgba(45, 27, 20, 0.88);
    border: none;
    padding: 40px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: pointer;
}

.satellite::before {
    content: "";
    position: absolute;
    inset: 2px;
    clip-path: var(--hex-clip);
    background: conic-gradient(from var(--hex-angle, 0deg), rgba(196, 98, 58, 0.18), rgba(212, 149, 58, 0.15), rgba(201, 138, 122, 0.18));
    z-index: -1;
    animation: hexConicRotate 40s linear infinite;
}

.sat-1 { top: 4%; left: 6%; }
.sat-2 { top: 6%; right: 8%; }
.sat-3 { bottom: 10%; left: 4%; }
.sat-4 { bottom: 8%; right: 6%; }

.satellite:hover {
    transform: translateY(-4px) scale(1.03);
    filter: drop-shadow(0 12px 24px rgba(212, 149, 58, 0.35));
}

.sat-label {
    font-family: var(--font-section);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--twilight-cream);
}

.sat-desc {
    font-family: var(--font-body);
    font-size: 11.5px;
    font-style: italic;
    line-height: 1.5;
    color: rgba(242, 232, 217, 0.7);
    max-width: 14ch;
}

/* Footer */
.site-foot {
    margin: 40px auto 0;
    padding: 40px 24px 24px;
    border-top: 1px solid rgba(212, 149, 58, 0.15);
    max-width: 1040px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.foot-mark {
    display: flex;
    align-items: center;
    gap: 14px;
}

.foot-hex {
    width: 28px;
    height: 32px;
    clip-path: var(--hex-clip);
    background: conic-gradient(from 0deg, var(--sunset-blaze), var(--amber-hour), var(--dusk-rose), var(--sunset-blaze));
}

.foot-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--twilight-cream);
}

.foot-line {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 12.5px;
    color: rgba(242, 232, 217, 0.55);
    max-width: 55ch;
    text-align: right;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .lattice-field {
        height: 560px;
    }

    .lh-1, .lh-2, .lh-3, .lh-4, .lh-5, .lh-6 {
        width: 200px;
        height: 230px;
    }

    .lh-2 { left: calc(50% + 170px); }
    .lh-3 { left: calc(50% + 170px); }
    .lh-5 { left: calc(50% - 170px); }
    .lh-6 { left: calc(50% - 170px); }
}

@media (max-width: 860px) {
    .hex-nav {
        top: 16px;
        left: 16px;
        padding: 10px 12px;
    }

    .iso-glyph-b,
    .iso-glyph-c,
    .iso-glyph-d {
        display: none;
    }

    .lattice-field {
        height: auto;
        padding: 20px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .iso-cube { display: none; }

    .lattice-hex {
        position: relative;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100%;
        height: 240px;
        max-width: 220px;
        margin: 0 auto;
    }

    .lattice-field.is-revealed .lattice-hex { transform: none !important; }

    .cityscape { perspective: none; }
    .iso-tower { margin: 0 -6px; }
    .iso-tower.t3 { width: 100px; }

    .satellite {
        width: 120px;
        height: 138px;
        padding: 22px 12px;
    }

    .foundation-stage { min-height: 620px; }

    .foundation-hex { width: min(90vw, 600px); }

    .site-foot {
        flex-direction: column;
        text-align: center;
    }

    .foot-line { text-align: center; }
}

@media (max-width: 520px) {
    .lattice-field {
        grid-template-columns: 1fr;
    }

    .section-head { padding: 48px 20px 20px; }

    .descend-btn { bottom: 24px; }

    .data-hex { width: 200px; height: 230px; }

    .dh-body { padding: 56px 32px; }

    .dh-value { font-size: 24px; }

    .iso-tower { margin: 0 -4px; }
    .iso-tower.t1 { width: 60px; }
    .iso-tower.t2 { width: 70px; }
    .iso-tower.t3 { width: 86px; }
    .iso-tower.t4 { width: 80px; }
    .iso-tower.t5 { width: 68px; }
    .iso-tower.t6 { width: 56px; }
    .iso-tower.t7 { width: 74px; }
}
