/* ==========================================================================
   simidiots.com  v1
   Aesthetic: inflated-3d / Layout: dashboard / Typography: garamond-classic
   Palette: warm-earthy / Patterns: tilt-3d / Imagery: lens-flare
   ========================================================================== */

/* ----------  Tokens  ---------- */
:root {
    /* Warm-earthy palette (exact hex from DESIGN.md) */
    --c-deep-umber:    #3B2415;
    --c-terracotta:    #C4652A;
    --c-burnt-sienna:  #A8502E;
    --c-ochre-gold:    #D4993A;
    --c-warm-brown:    #5C3A28;
    --c-clay:          #F5E6D3;
    --c-linen:         #FBF4EA;
    --c-parchment:     #F2E0C8;
    --c-shadow-brown:  #2A1A0E;
    --c-cream:         #FFF8F0;
    --c-sand:          #A67C5B;
    --c-muted-clay:    #8B6B52;

    /* Type */
    --f-display: "Cormorant Garamond", "Lora", Georgia, serif;
    --f-body:    "Source Sans 3", "Inter", system-ui, sans-serif;
    --f-mono:    "DM Mono", "JetBrains Mono", "Space Mono", monospace;

    /* Motion */
    --bezier-rubber: cubic-bezier(0.34, 1.56, 0.64, 1);
    --bezier-out:    cubic-bezier(0.22, 0.61, 0.36, 1);

    /* Inflated shadow stack */
    --shadow-inflated:
        0 2px 4px  rgba(92, 52, 28, 0.12),
        0 8px 16px rgba(92, 52, 28, 0.08),
        0 24px 48px rgba(92, 52, 28, 0.06),
        inset 0 -2px 6px rgba(255, 255, 255, 0.15),
        inset 0  2px 4px rgba(92, 52, 28, 0.10);

    --shadow-inflated-hover:
        0 6px 10px  rgba(92, 52, 28, 0.16),
        0 16px 28px rgba(92, 52, 28, 0.12),
        0 36px 64px rgba(92, 52, 28, 0.10),
        0 0 30px   rgba(196, 101, 42, 0.18),
        inset 0 -2px 6px rgba(255, 255, 255, 0.22),
        inset 0  2px 4px rgba(92, 52, 28, 0.10);
}

/* ----------  Reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--f-body);
    font-weight: 400;
    color: var(--c-warm-brown);
    line-height: 1.7;
    letter-spacing: 0.01em;
    background: var(--c-linen);
    background-image:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(212, 153, 58, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 80% at 110% 110%, rgba(196, 101, 42, 0.12), transparent 60%),
        radial-gradient(ellipse 70% 50% at -10% 30%, rgba(168, 80, 46, 0.08), transparent 60%);
    background-attachment: fixed;
    overflow-x: hidden;
    perspective: 1200px;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* ----------  Background pattern (drifting blobs)  ---------- */
.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bg-blob {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(196, 101, 42, 0.18), rgba(196, 101, 42, 0) 70%);
    opacity: 0.5;
    will-change: transform;
}
.bg-blob-1 { width: 520px; height: 520px; top: -120px;  left: -180px; animation: drift1 80s ease-in-out infinite; }
.bg-blob-2 { width: 380px; height: 380px; top: 35%;     right: -160px; animation: drift2 70s ease-in-out infinite; background: radial-gradient(circle at 30% 30%, rgba(212, 153, 58, 0.22), rgba(212, 153, 58, 0) 70%);}
.bg-blob-3 { width: 620px; height: 620px; bottom: -240px; left: 30%; animation: drift3 90s ease-in-out infinite; background: radial-gradient(circle at 30% 30%, rgba(168, 80, 46, 0.14), rgba(168, 80, 46, 0) 70%);}
.bg-blob-4 { width: 280px; height: 280px; top: 70%;     left: -60px; animation: drift4 65s ease-in-out infinite; }
.bg-blob-5 { width: 320px; height: 320px; top: 8%;      right: 18%; animation: drift2 75s ease-in-out infinite reverse; background: radial-gradient(circle at 30% 30%, rgba(212, 153, 58, 0.18), rgba(212, 153, 58, 0) 70%); }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(60px, 40px) scale(1.05);} }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(-50px, 70px) scale(1.08);} }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(40px,-60px) scale(1.04);} }
@keyframes drift4 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(70px, 30px) scale(1.10);} }

/* ----------  Grain layer (warm noise)  ---------- */
.grain-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.55;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0.83 0 0 0 0  0.6 0 0 0 0  0.23 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 180px 180px;
}

/* ----------  Lens flares (scroll-triggered)  ---------- */
.lens-flare {
    position: fixed;
    width: 520px;
    height: 520px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 248, 240, 0.95) 0%, rgba(212, 153, 58, 0.55) 8%, rgba(212, 153, 58, 0) 35%),
        radial-gradient(circle at 50% 50%, rgba(212, 153, 58, 0.40) 0%, rgba(212, 153, 58, 0) 60%),
        radial-gradient(circle at 50% 50%, rgba(212, 153, 58, 0.20) 0%, rgba(212, 153, 58, 0) 80%);
    mix-blend-mode: screen;
    filter: blur(1px);
    transition: opacity 1.2s var(--bezier-out), transform 1.2s var(--bezier-out);
}
.lens-flare-1 { top: 22%; left: 78%; }
.lens-flare-2 { top: 52%; left: 18%; }
.lens-flare-3 { top: 82%; left: 65%; }
.lens-flare.is-bloom { opacity: 0.6;  transform: translate(-50%, -50%) scale(1); }
.lens-flare.is-settled { opacity: 0.18; transform: translate(-50%, -50%) scale(0.95); }

/* ----------  Dashboard layout  ---------- */
.dashboard {
    position: relative;
    z-index: 3;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 48px) clamp(80px, 10vw, 140px);
}

/* hero zone */
.hero-zone {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(16px, 2vw, 32px);
    min-height: 100vh;
    align-content: center;
    padding-top: clamp(40px, 6vh, 80px);
}
.tile-hero {
    grid-column: 1 / span 9;
    min-height: 60vh;
    margin-left: -3vw;
    padding: clamp(36px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(20px, 3vw, 36px);
}
.tile-status {
    grid-column: 10 / span 3;
    align-self: start;
    margin-top: 4vh;
    padding: clamp(20px, 2vw, 32px);
}

/* narrative zone */
.narrative-zone {
    margin-top: clamp(60px, 10vh, 140px);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(16px, 2vw, 32px);
}
.tile-six    { grid-column: span 6; }
.tile-four   { grid-column: span 4; }
.tile-eight  { grid-column: span 8; }
.tile-twelve { grid-column: span 12; }

.tile-offset-1 { margin-top: 2vh; }
.tile-offset-2 { margin-top: 4vh; }
.tile-offset-3 { margin-top: 6vh; }

/* slight overlap for layered-depth feel */
.narrative-zone .tile-six.tile-offset-3:nth-of-type(5) { margin-left: -1vw; }
.narrative-zone .tile-four.tile-offset-3 { margin-top: 8vh; }

/* ----------  Tile (inflated card) base  ---------- */
.tile {
    position: relative;
    background: var(--c-clay);
    border-radius: clamp(16px, 2vw, 28px);
    padding: clamp(24px, 3vw, 44px);
    box-shadow: var(--shadow-inflated);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0) rotateY(0) translateZ(0) scale(1);
    transition:
        transform 0.3s var(--bezier-out),
        box-shadow 0.25s var(--bezier-out);
    will-change: transform;
    isolation: isolate;
    /* entrance */
    opacity: 0;
}
.tile.is-inflated {
    opacity: 1;
    animation: inflate 700ms var(--bezier-rubber) both;
}
@keyframes inflate {
    0%   { opacity: 0; transform: scale(0.85) translateY(20px); box-shadow: 0 0 0 rgba(92,52,28,0); }
    60%  { opacity: 1; transform: scale(1.02) translateY(-2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); box-shadow: var(--shadow-inflated); }
}

.tile[data-tilt] {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(0);
    transition: transform 0.3s var(--bezier-out), box-shadow 0.25s var(--bezier-out);
}
.tile[data-tilt].is-tilting {
    transition: transform 0.15s var(--bezier-out), box-shadow 0.25s var(--bezier-out);
}
.tile:hover {
    box-shadow: var(--shadow-inflated-hover);
}
.tile:hover .tile-surface {
    background-position: var(--surf-x, 30%) var(--surf-y, 25%);
    opacity: 1;
}

/* convex highlight surface */
.tile-surface {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(120% 80% at 22% 18%, rgba(255, 255, 255, 0.22), rgba(255,255,255,0) 55%),
        radial-gradient(120% 80% at 80% 90%, rgba(58, 36, 21, 0.10), rgba(58,36,21,0) 60%);
    background-size: 200% 200%;
    background-position: 30% 25%;
    opacity: 0.85;
    pointer-events: none;
    transition: background-position 0.4s var(--bezier-out), opacity 0.3s var(--bezier-out);
    mix-blend-mode: normal;
    z-index: 0;
}

/* lens flare on tile corners */
.tile-flare {
    position: absolute;
    width: 220px;
    height: 220px;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 248, 240, 0.6) 0%, rgba(212, 153, 58, 0.28) 12%, rgba(212, 153, 58, 0) 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 153, 58, 0.20) 0%, rgba(212, 153, 58, 0) 70%);
    mix-blend-mode: screen;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.3s var(--bezier-out), transform 0.4s var(--bezier-rubber);
    z-index: 1;
}
.tile-flare-tr { top: -60px; right: -60px; }
.tile-flare-tl { top: -60px; left: -60px; }
.tile-flare-br { bottom: -60px; right: -60px; }
.tile-flare-bl { bottom: -60px; left: -60px; }
.tile-flare-center { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.4); }
.tile:hover .tile-flare { opacity: 0.9; transform: scale(1); }
.tile:hover .tile-flare-center { transform: translate(-50%, -50%) scale(1); }
.tile.is-inflated .tile-flare-tr,
.tile.is-inflated .tile-flare-tl,
.tile.is-inflated .tile-flare-br,
.tile.is-inflated .tile-flare-bl { opacity: 0.55; transform: scale(0.85); }
.tile.is-inflated:hover .tile-flare { opacity: 1; transform: scale(1); }
.tile.is-inflated .tile-flare-center { opacity: 0.30; transform: translate(-50%,-50%) scale(0.85); }

/* ----------  Typography inside tiles  ---------- */
.tile-content,
.tile > :not(.tile-surface):not(.tile-flare):not(.tile-gauge) {
    position: relative;
    z-index: 2;
}
.tile-gauge { position: absolute; z-index: 2; }

.eyebrow {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-sand);
    margin: 0 0 0.5rem;
}

.hero-title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(3.5rem, 11vw, 8.5rem);
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: var(--c-deep-umber);
    margin: 0;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.4),
        0 -1px 0 rgba(58, 36, 21, 0.15),
        0 2px 4px rgba(58, 36, 21, 0.08);
}
.hero-subtitle {
    font-family: var(--f-display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    color: var(--c-warm-brown);
    margin: 0;
    max-width: 30ch;
    line-height: 1.3;
}
.hero-subtitle em {
    color: var(--c-burnt-sienna);
    font-style: italic;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 28px);
    margin-top: 1rem;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--c-muted-clay);
}
.meta-item { display: inline-flex; align-items: center; gap: 8px; }
.meta-dot {
    width: 8px; height: 8px;
    background: var(--c-terracotta);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(196, 101, 42, 0.55);
    animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.55; }
}

/* tile titles */
.tile-title,
.tile-title-sm,
.tile-title-lg {
    font-family: var(--f-display);
    color: var(--c-deep-umber);
    margin: 0.4rem 0 1rem;
    text-shadow: 0 1px 0 rgba(255,255,255,0.35), 0 -1px 0 rgba(58,36,21,0.10);
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.tile-title    { font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.tile-title-sm { font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.tile-title-lg { font-weight: 700; font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.tile-title em, .tile-title-sm em, .tile-title-lg em {
    font-style: italic;
    color: var(--c-burnt-sienna);
    font-weight: 400;
}

.tile-prose,
.tile-prose-sm,
.tile-prose-wide {
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 400;
    color: var(--c-warm-brown);
    margin: 0;
    line-height: 1.55;
}
.tile-prose      { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 56ch; }
.tile-prose-sm   { font-size: clamp(0.98rem, 1.2vw, 1.1rem);  max-width: 38ch; }
.tile-prose-wide { font-size: clamp(1.15rem, 1.6vw, 1.4rem);  max-width: 72ch; }

.tile-caption {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--c-sand);
    margin: 1rem 0 0;
}

.tile-footer {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--c-cream), var(--c-clay));
    box-shadow:
        0 2px 4px rgba(92, 52, 28, 0.12),
        inset 0 -1px 2px rgba(92, 52, 28, 0.10),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--c-warm-brown);
}
.pill-dot {
    width: 7px; height: 7px;
    background: var(--c-ochre-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(212, 153, 58, 0.7);
}

/* ----------  Pull quote tile  ---------- */
.pullquote {
    position: relative;
    margin: 0;
    padding-left: clamp(40px, 5vw, 70px);
}
.quote-mark {
    position: absolute;
    top: -20px; left: -8px;
    font-family: var(--f-display);
    font-style: italic;
    font-size: clamp(5rem, 10vw, 9rem);
    color: var(--c-terracotta);
    line-height: 1;
    text-shadow: 0 2px 4px rgba(92,52,28,0.15);
    opacity: 0.85;
}
.pullquote p {
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    color: var(--c-deep-umber);
    line-height: 1.35;
    margin: 0 0 1rem;
    max-width: 32ch;
}
.pullquote p em {
    color: var(--c-burnt-sienna);
}
.pullquote footer {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--c-sand);
}

/* ----------  Status tile internals  ---------- */
.status-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-sand);
    margin-bottom: 18px;
}
.status-dot {
    width: 10px; height: 10px;
    background: var(--c-terracotta);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(196, 101, 42, 0.65);
    animation: pulse-dot 2.4s ease-in-out infinite;
}
.status-readouts {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 14px;
}
.status-readouts li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(168, 80, 46, 0.25);
}
.status-readouts li:last-child { border-bottom: none; padding-bottom: 0; }
.readout-key {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--c-muted-clay);
}
.readout-val {
    font-family: var(--f-mono);
    font-size: 0.86rem;
    color: var(--c-burnt-sienna);
    letter-spacing: 0.05em;
    text-align: right;
    transition: opacity 0.4s var(--bezier-out);
}
.readout-val.is-fading { opacity: 0; }

/* ----------  Bar chart  ---------- */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 70px;
    padding: 8px 0 0;
    border-top: 1px solid rgba(168, 80, 46, 0.18);
}
.bar-chart-tall { height: 130px; margin-top: 1rem; }
.bar {
    flex: 1;
    height: var(--h, 50%);
    background: linear-gradient(180deg, var(--c-ochre-gold), var(--c-terracotta));
    border-radius: 6px 6px 3px 3px;
    box-shadow:
        inset 0 -2px 4px rgba(58, 36, 21, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(168, 80, 46, 0.18);
    transform-origin: bottom center;
    animation: bar-rise 800ms var(--bezier-rubber) both;
}
.bar:nth-child(1) { animation-delay: 60ms; }
.bar:nth-child(2) { animation-delay: 120ms; }
.bar:nth-child(3) { animation-delay: 180ms; }
.bar:nth-child(4) { animation-delay: 240ms; }
.bar:nth-child(5) { animation-delay: 300ms; }
.bar:nth-child(6) { animation-delay: 360ms; }
.bar:nth-child(7) { animation-delay: 420ms; }
.bar:nth-child(8) { animation-delay: 480ms; }
@keyframes bar-rise {
    0%   { transform: scaleY(0); }
    70%  { transform: scaleY(1.06); }
    100% { transform: scaleY(1); }
}

/* ----------  Ring gauge  ---------- */
.tile-gauge {
    position: absolute;
    bottom: clamp(20px, 3vw, 36px);
    left:   clamp(28px, 4vw, 60px);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px 10px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--c-cream), var(--c-clay));
    box-shadow:
        0 4px 8px rgba(92, 52, 28, 0.14),
        inset 0 -1px 2px rgba(92, 52, 28, 0.10),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}
.tile-gauge-bl { /* class already positioned */ }

.ring {
    width: 56px;
    height: 56px;
    transform: rotate(-90deg);
}
.ring-sm { width: 48px; height: 48px; }
.ring-track {
    fill: none;
    stroke: rgba(168, 80, 46, 0.18);
    stroke-width: 6;
}
.ring-fill {
    fill: none;
    stroke: var(--c-terracotta);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 175.93;
    stroke-dashoffset: 175.93;
    transition: stroke-dashoffset 1.4s var(--bezier-rubber);
    filter: drop-shadow(0 0 4px rgba(196, 101, 42, 0.5));
}
.ring-fill.is-filled[data-ring="hero"]    { stroke-dashoffset: calc(175.93 * (1 - 0.973)); }
.ring-fill.is-filled[data-ring="taste"]   { stroke-dashoffset: calc(175.93 * (1 - 0.64)); }
.ring-fill.is-filled[data-ring="dignity"] { stroke-dashoffset: calc(175.93 * (1 - 0.38)); }

.gauge-label {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.gauge-value {
    font-family: var(--f-mono);
    font-size: 1rem;
    color: var(--c-deep-umber);
    letter-spacing: 0.04em;
}
.gauge-name {
    font-family: var(--f-mono);
    font-size: 0.66rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--c-sand);
}

/* dual gauges in vignette II */
.dual-gauge {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.mini-gauge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--c-cream), var(--c-clay));
    box-shadow:
        0 3px 6px rgba(92, 52, 28, 0.12),
        inset 0 -1px 2px rgba(92, 52, 28, 0.10),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

/* ----------  Closing tile readouts row  ---------- */
.closing-row {
    margin-top: clamp(28px, 4vw, 48px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(16px, 2vw, 28px);
    padding-top: clamp(20px, 3vw, 32px);
    border-top: 1px dashed rgba(168, 80, 46, 0.30);
}
.closing-readout { display: flex; flex-direction: column; gap: 6px; }
.readout-large {
    font-family: var(--f-display);
    font-style: italic;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--c-terracotta);
    text-align: left;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3), 0 -1px 0 rgba(58,36,21,0.10);
}

/* ----------  Floating nav orb  ---------- */
.nav-orb {
    position: fixed;
    right: clamp(20px, 3vw, 40px);
    bottom: clamp(20px, 3vw, 40px);
    width: 72px;
    height: 72px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: radial-gradient(circle at 30% 28%, var(--c-cream) 0%, var(--c-ochre-gold) 35%, var(--c-burnt-sienna) 75%, var(--c-deep-umber) 100%);
    box-shadow:
        0 8px 16px rgba(58, 36, 21, 0.30),
        0 24px 48px rgba(58, 36, 21, 0.18),
        0 0 32px rgba(212, 153, 58, 0.40),
        inset 0 -3px 6px rgba(58, 36, 21, 0.30),
        inset 0 3px 4px rgba(255, 255, 255, 0.45);
    z-index: 100;
    color: var(--c-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: orb-breathe 4s ease-in-out infinite;
    transition: transform 0.3s var(--bezier-out), box-shadow 0.3s var(--bezier-out);
}
.nav-orb:hover {
    transform: scale(1.08);
    box-shadow:
        0 12px 24px rgba(58, 36, 21, 0.35),
        0 28px 56px rgba(58, 36, 21, 0.20),
        0 0 48px rgba(212, 153, 58, 0.55),
        inset 0 -3px 6px rgba(58, 36, 21, 0.30),
        inset 0 3px 4px rgba(255, 255, 255, 0.45);
}
@keyframes orb-breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}
.orb-core {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 248, 240, 0.65) 0%, rgba(255,248,240,0) 60%);
    pointer-events: none;
}
.orb-label {
    font-family: var(--f-mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-cream);
    text-shadow: 0 1px 2px rgba(58, 36, 21, 0.55);
    z-index: 1;
}
.nav-orb.is-active { animation: none; transform: scale(0.94); }

/* ----------  Overlay menu  ---------- */
.overlay-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background:
        radial-gradient(circle at 80% 80%, rgba(212, 153, 58, 0.25), transparent 50%),
        radial-gradient(circle at 20% 20%, rgba(196, 101, 42, 0.15), transparent 55%),
        rgba(42, 26, 14, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--bezier-out);
    display: flex;
    align-items: center;
    justify-content: center;
}
.overlay-menu.is-open { opacity: 1; pointer-events: auto; }

.overlay-inner {
    text-align: center;
    color: var(--c-parchment);
    padding: 40px;
    max-width: 720px;
}
.overlay-eyebrow {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--c-ochre-gold);
    margin: 0 0 24px;
}
.overlay-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.overlay-list li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--bezier-out), transform 0.5s var(--bezier-rubber);
}
.overlay-menu.is-open .overlay-list li { opacity: 1; transform: translateY(0); }
.overlay-menu.is-open .overlay-list li:nth-child(1) { transition-delay: 0.10s; }
.overlay-menu.is-open .overlay-list li:nth-child(2) { transition-delay: 0.18s; }
.overlay-menu.is-open .overlay-list li:nth-child(3) { transition-delay: 0.26s; }
.overlay-menu.is-open .overlay-list li:nth-child(4) { transition-delay: 0.34s; }
.overlay-menu.is-open .overlay-list li:nth-child(5) { transition-delay: 0.42s; }
.overlay-menu.is-open .overlay-list li:nth-child(6) { transition-delay: 0.50s; }

.overlay-list a {
    font-family: var(--f-display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    color: var(--c-parchment);
    text-decoration: none;
    background-image: linear-gradient(180deg, var(--c-terracotta), var(--c-terracotta));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.4s var(--bezier-out), color 0.3s var(--bezier-out);
    padding-bottom: 4px;
}
.overlay-list a:hover {
    background-size: 100% 2px;
    color: var(--c-cream);
}
.overlay-foot {
    margin-top: 40px;
    font-family: var(--f-display);
    font-style: italic;
    color: var(--c-sand);
    font-size: 1.05rem;
}

/* ----------  Responsive  ---------- */
@media (max-width: 960px) {
    .hero-zone { min-height: auto; padding-top: 24px; }
    .tile-hero { grid-column: 1 / -1; margin-left: 0; min-height: auto; }
    .tile-status { grid-column: 1 / -1; margin-top: 0; }
    .tile-six, .tile-eight, .tile-four, .tile-twelve { grid-column: 1 / -1; }
    .tile-gauge { position: static; margin-top: 1.5rem; }
    .narrative-zone .tile-six.tile-offset-3:nth-of-type(5) { margin-left: 0; }
}

@media (max-width: 560px) {
    .dashboard { padding: 20px 16px 80px; }
    .hero-title { font-size: clamp(2.8rem, 14vw, 4.5rem); }
    .nav-orb { width: 60px; height: 60px; }
}
