/*
 * Scarab Rust design tokens.
 * Single source of truth for the brand palette so retheming is one place
 * (the old build hard-coded every hex). Scarab keeps GOLD as the accent but
 * pairs it with a cool JEWEL tone (lapis / faience turquoise) so the identity
 * reads distinct from a warm-only desert, especially at night, when the
 * time-of-day background goes obsidian + lapis. --time-horizon / --time-glow
 * are updated live by scarab-sky.js from the visitor's local clock.
 */
:root {
    --gold: #d4af37;
    --gold-bright: #e6c15a;
    --copper: #d97536;
    --jewel: #2bb3a3;         /* faience turquoise, cool accent / online state */
    --lapis: #1c4e8a;         /* deep Egyptian blue */
    --ink: #0f0a08;           /* near-black ground */
    --panel: #1a1510;         /* warm-dark panel */
    --panel-2: #2a1f15;
    --text: #f5f3e8;          /* cream */
    --line: rgba(212, 175, 55, 0.2);
    --time-horizon: #12141a;  /* live-updated by scarab-scene.js */
    --time-glow: #d4af37;     /* live-updated by scarab-scene.js */

    /*
     * Day/night theme tokens. scarab-scene.js overwrites these on :root every
     * frame from the visitor's local clock, so the page shifts light <-> dark
     * with the sky. These defaults are the night values, so the page looks
     * right before the script runs and on pages not yet converted to tokens.
     */
    --page-bg: #12121a;       /* page background  */
    --page-panel: #191921;    /* card / panel     */
    --page-text: #eef0f6;     /* primary text     */
    --page-muted: #9aa0b0;    /* secondary text   */
    --panel-text: #eef0f6;    /* primary text on panels */
    --panel-muted: #9aa0b0;   /* secondary text on panels */
    --page-border: rgba(230, 193, 90, 0.16);
    --sky-top: #05070f;
    --gold-ink: #e6c15a;      /* live-updated by scarab-scene.js: dark bronze on light panels, bright gold on dark ones */
}

* {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--gold, #d4af37) 55%, var(--page-panel, #1a1510)) transparent;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: color-mix(in srgb, var(--page-bg, #12121a) 92%, transparent); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-bright, #e6c15a), var(--copper, #d97536));
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--page-bg, #12121a) 92%, transparent);
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--gold, #d4af37), var(--copper, #d97536)); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

.eyebrow, .srv-eyebrow, .rk-eyebrow, .rk-section-eyebrow, .section-eyebrow,
.text-gold, .gold, .tod-gold,
[style*="color:var(--gold)"], [style*="color: var(--gold)"],
[style*="color:var(--gold-bright)"], [style*="color: var(--gold-bright)"] {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
}

.tod-panel .eyebrow, .tod-panel .srv-eyebrow, .tod-panel .rk-eyebrow,
.tod-panel .rk-section-eyebrow, .tod-panel .section-eyebrow,
.tod-panel .text-gold, .tod-panel .gold, .tod-panel .tod-gold,
.tod-panel [style*="color:var(--gold)"], .tod-panel [style*="color: var(--gold)"],
.tod-panel [style*="color:var(--gold-bright)"], .tod-panel [style*="color: var(--gold-bright)"] {
    color: var(--gold-ink) !important;
}

.tod-panel .hero-word {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--gold-ink);
    filter: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
}

/* Base Styles */
/* Paint the document root dark from the very first frame so navigations never
   flash a white screen before body/canvas lay out (the default --page-bg is the
   night value; the pre-paint script in base.html overrides it for a stored phase). */
html { background: var(--page-bg); }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Mada', sans-serif;
    background: var(--page-bg);
    color: var(--page-text);
    transition: background-color 900ms ease, color 900ms ease;
}

/*
 * Day/night helpers. Any element that opts into the theme uses these instead
 * of a hardcoded hex, so it flips light <-> dark with the sky. Panels get a
 * soft glass fill over whatever the sky is doing behind them.
 */
.tod-text { color: var(--page-text); transition: color 900ms ease; }
.tod-muted { color: var(--page-muted); transition: color 900ms ease; }
.tod-panel {
    background: color-mix(in srgb, var(--page-panel) 96%, transparent);
    color: var(--panel-text, var(--page-text));
    border: 1px solid var(--page-border);
    transition: background-color 900ms ease, color 900ms ease, border-color 900ms ease;
}
.tod-panel .tod-text { color: var(--panel-text, var(--page-text)); }
.tod-panel .tod-muted { color: var(--panel-muted, var(--page-muted)); }
.tod-border { border-color: var(--page-border); transition: border-color 900ms ease; }

:root {
    --page-gutter: clamp(1.25rem, 4vw, 4rem);
    --page-max: 1600px;
    --page-max-wide: 1780px;
}

.page-shell,
.wrap-wide {
    max-width: var(--page-max);
    margin-inline: auto;
    padding-inline: var(--page-gutter);
    width: 100%;
}
.prose-cap { max-width: 82ch; }

/* Optional page top-spacing helper so content clears the fixed nav without
   each page hardcoding its own top padding. Purely opt-in. */
.content-top { padding-top: clamp(4.5rem, 9vh, 7rem); }

.wrap-wider {
    max-width: var(--page-max-wide);
    margin-inline: auto;
    padding-inline: var(--page-gutter);
    width: 100%;
}

/* Smooth-scroll anchor helper. A target with .scroll-target lands below the
   fixed navbar (h-16 = 4rem) instead of hiding under it after a smooth scroll
   or an in-page #anchor jump. The extra ~1rem is breathing room. */
.scroll-target { scroll-margin-top: 5rem; }

/* Reusable gold button + signup field (global so the signup include works on
   any page, not just ones that define their own .cta-* styles). */
/* border:1px solid transparent + background-clip:padding-box keeps the gradient
   from fringing past the rounded corner (the "bleed"); the hover glow is kept
   tight (short blur, low opacity) so gold does not halo far past the button. */
.btn-gold { background: linear-gradient(90deg, var(--gold), var(--copper)); color: #1a1510; font-weight: 600; border: 1px solid transparent; background-clip: padding-box; transition: transform .18s ease, box-shadow .24s ease; }

/* Site-wide gold-CTA corner-bleed fix. Root cause: a rule that sets the
   `background` SHORTHAND (e.g. `background: linear-gradient(...)`) resets
   background-clip back to border-box, so the gradient fills to the sharp
   corner and fringes past the border-radius. A 1px transparent border plus
   background-clip:padding-box (marked important so it survives any later
   shorthand reset in a per-page <style> block that loads after this file)
   insets the fill so no gold ever bleeds at the corner. Outer hover glows
   (box-shadow) are untouched. box-sizing:border-box (Tailwind preflight)
   keeps the 1px border from changing the button size. */
.btn-gold, .cta-gold, .cta-primary, .cta-gold-lg, .creator-btn-gold,
.cookie-btn-accept, .btn-manage, .srv-cta, .srv-cta-gold, .sp-cta,
.sp-tab.active, .rk-cta, .ea-cta, .signup-btn, .cta-band-btn,
[class*="cta-gold"], [class*="btn-gold"] {
    border: 1px solid transparent;
    background-clip: padding-box !important;
    box-sizing: border-box;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--gold-ink) 42%, transparent); }
.signup-input {
    background: color-mix(in srgb, var(--page-panel) 88%, transparent);
    border: 1px solid var(--page-border); color: var(--page-text);
    outline: none; transition: border-color .18s ease, background-color .9s ease, color .9s ease;
}
.signup-input:focus { border-color: var(--gold); }
.signup-input::placeholder { color: var(--page-muted); }
@supports not (background: color-mix(in srgb, red, blue)) {
    .tod-panel { background: var(--page-panel); }
}

/* ---------------------------------------------------------------------------
   Arabic reads right-to-left at the TEXT level only. The document stays dir=ltr
   so the nav, grids, cards and footer never mirror (that whole-layout flip was
   the old bug). Here we flow prose containers RTL so Arabic sentences align
   naturally, without touching structural layout.
   --------------------------------------------------------------------------- */
html[data-lang-rtl] .main-content p,
html[data-lang-rtl] .main-content h1,
html[data-lang-rtl] .main-content h2,
html[data-lang-rtl] .main-content h3,
html[data-lang-rtl] .main-content h4,
html[data-lang-rtl] .main-content li,
html[data-lang-rtl] .main-content blockquote,
html[data-lang-rtl] [dir="rtl"] { direction: rtl; }

/* HARD no-flip guarantee. Some Arabic pages wrap their whole content in a
   dir="rtl" container, which would mirror every flex row and grid inside it
   (cards reorder, icons jump sides). The document root is always dir=ltr so
   the navbar and footer never flip; here we also stop structural layout from
   mirroring inside any rtl container: text still reads right-to-left, but
   horizontal flex rows and grid tracks keep their left-to-right visual order.
   Vertical stacks (flex-col) stay rtl so column text aligns correctly. */
[dir="rtl"] .flex:not(.flex-col),
[dir="rtl"] [class*="grid-cols-"] { direction: ltr; }
[dir="rtl"] .flex-col { direction: rtl; }

/* Time-of-day sky canvas + no-JS/reduced-motion fallback gradient. */
#scarab-sky {
    display: block;
    width: 100%;
    height: 100%;
}

.desert-bg {
    background: linear-gradient(to bottom, var(--sky-top) 0%, var(--time-horizon) 100%);
}

.main-content {
    flex: 1;
    min-height: 100vh;
    position: relative;
}

/* ---------------------------------------------------------------------------
   Footer. Deliberately not a four-column SaaS grid: a horizon rule the
   scarab rolls the sun-disc along (Khepri), a wide brand block, and a tight
   three-column link cluster. Fixed dark ink (its own --foot-* tokens) so it
   stays readable in every sky phase instead of washing out at day/sunrise.
   --------------------------------------------------------------------------- */
.scarab-footer {
    --foot-text: var(--page-text);
    --foot-muted: var(--page-muted);
    --foot-border: var(--page-border);
    background: color-mix(in srgb, var(--page-bg), #000 5%);
    border-top: 1px solid var(--page-border);
    color: var(--page-text);
}
.scarab-shell { max-width: 1440px; margin: 0 auto; padding: 1.05rem clamp(1rem, 4vw, 3rem) 1.15rem; display: flex; flex-direction: column; }

/* Horizon: a hairline with a gradient sun glow the scarab rolls along it.
   The box itself is as tall as the sun/roller decorations so they're
   contained within it rather than relying on overflow:visible bleeding
   through every ancestor - a page with any overflow:hidden wrapper up the
   tree would otherwise clip the bottom half of the roller. */
.scarab-horizon {
    position: relative; height: 24px; margin: 0 auto; max-width: 1440px;
}
.scarab-horizon::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold-ink) 55%, transparent) 30%, color-mix(in srgb, var(--jewel) 45%, transparent) 70%, transparent);
}
.scarab-sun {
    position: absolute; top: 50%; left: 14%; width: 10px; height: 10px; border-radius: 50%;
    transform: translateY(-50%);
    background: var(--gold);
    box-shadow: 0 0 16px 3px color-mix(in srgb, var(--gold-ink) 70%, transparent);
}
.scarab-roller {
    position: absolute; top: 50%; left: calc(14% + 16px); width: 22px; height: 22px;
    transform: translateY(-50%); opacity: .9;
}

.scarab-foot-main {
    display: flex; align-items: flex-start; flex-wrap: wrap;
    gap: 1.4rem 2.5rem; padding: .7rem 0 .3rem;
}
.scarab-foot-brand { flex: 1 1 280px; min-width: 240px; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.scarab-foot-soon-line { display: block; font-size: .84rem; line-height: 1.3; color: var(--foot-muted); }
.scarab-foot-soon-pill {
    display: inline-block; margin-top: .38rem; font-size: .58rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .1em; padding: .16rem .5rem; border-radius: 999px;
    color: var(--gold-ink); border: 1px solid color-mix(in srgb, var(--gold-ink) 40%, var(--foot-border));
    background: color-mix(in srgb, var(--gold-ink) 10%, transparent);
}

.scarab-foot-social { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .7rem; }
.scarab-foot-discord {
    display: inline-flex; align-items: center; gap: .5rem; padding: .44rem .9rem;
    border-radius: 10px; font-size: .82rem; font-weight: 700; white-space: nowrap;
    color: #fff; background: #5865f2; border: 1px solid transparent;
    transition: transform .16s ease, filter .16s ease;
}
.scarab-foot-discord svg { width: 17px; height: 17px; }
.scarab-foot-discord:hover { transform: translateY(-2px); filter: brightness(1.08); }

.scarab-foot-info {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 1.5rem;
    padding: 1.5rem 0; margin-top: .2rem; border-bottom: 1px solid var(--foot-border);
}
@media (max-width: 900px) { .scarab-foot-info { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .scarab-foot-info { grid-template-columns: 1fr; } }
.scarab-foot-fact { display: flex; align-items: flex-start; gap: .65rem; }
.scarab-foot-fact svg { width: 22px; height: 22px; color: var(--gold-ink); flex: none; margin-top: .1rem; }
.scarab-foot-fact span { display: flex; flex-direction: column; font-size: .8rem; line-height: 1.45; color: var(--foot-muted); }
.scarab-foot-fact b { color: var(--foot-text); font-weight: 700; font-size: .86rem; }
.scarab-foot-seo { margin-top: .2rem; font-size: .74rem; line-height: 1.5; color: var(--foot-muted); max-width: 60ch; }
.scarab-foot-seo a { color: color-mix(in srgb, var(--gold-ink) 80%, var(--foot-text)); text-decoration: underline; text-underline-offset: 2px; }
.scarab-foot-seo a:hover { color: var(--gold-ink); }

.scarab-foot-mark { display: inline-flex; align-items: center; gap: .5rem; }
.scarab-foot-mark img { width: 26px; height: 26px; }
.scarab-foot-mark span { font-size: 1rem; font-weight: 800; color: var(--gold-ink); letter-spacing: -.01em; }
.scarab-foot-line {
    margin-top: .18rem; max-width: 42ch; font-size: .76rem; line-height: 1.32;
    color: var(--foot-muted);
}
.scarab-social { display: flex; gap: .55rem; }
.scarab-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    color: var(--foot-text); opacity: .82;
    background: color-mix(in srgb, var(--page-text) 6%, transparent);
    border: 1px solid var(--foot-border);
    transition: color .16s ease, opacity .16s ease, background-color .16s ease, transform .16s ease;
}
.scarab-social a:hover { color: var(--gold-ink); opacity: 1; transform: translateY(-2px); background: color-mix(in srgb, var(--gold-ink) 12%, transparent); }
.scarab-social svg { width: 18px; height: 18px; }

.scarab-foot-cols { flex: 2.4 1 560px; display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem 1.25rem; }
@media (max-width: 1024px) { .scarab-foot-cols { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (max-width: 760px) { .scarab-foot-cols { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; } }
.scarab-foot-cols h4 {
    display: flex; align-items: center; gap: .45rem;
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
    color: var(--gold-ink); opacity: .9; margin-bottom: .55rem;
}
.scarab-foot-cols h4::before { content: ""; width: 12px; height: 2px; border-radius: 2px; background: var(--copper); }
.scarab-foot-cols a {
    display: block; font-size: .85rem; line-height: 1.35; color: var(--foot-muted); padding: .16rem 0;
    transition: color .16s ease, padding-inline-start .16s ease;
}
.scarab-foot-cols a:hover { color: var(--gold-ink); padding-inline-start: .3rem; }

.scarab-foot-base {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .7rem 1.5rem; margin-top: 1.1rem; padding-top: 1rem;
    border-top: 1px solid var(--foot-border);
    font-size: .8rem; color: var(--foot-muted);
}
.scarab-foot-legal { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.scarab-foot-legal a { color: var(--foot-muted); transition: color .16s ease; }
.scarab-foot-legal a:hover { color: var(--gold-ink); }
@media (prefers-reduced-motion: reduce) {
    .scarab-footer, .scarab-social a, .scarab-foot-cols a { transition: none; }
}

/*
 * Keep page content above the fixed scene WITHOUT depending on Tailwind's
 * z-20 utility loading first. If the (slow, render-blocking) Tailwind runtime
 * is late, the fixed canvas must never paint over the content.
 */
#main-content {
    position: relative;
    z-index: 20;
}

/*
 * The scene is a FIXED viewport background so the day/night dunes stay put
 * while content scrolls over them (rather than stretching down a long page and
 * pushing the horizon off-screen). Content sits in #main-content at z-20.
 */
.desert-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 0;
    pointer-events: none;
}

/* Alpine.js Cloak */
[x-cloak] {
    display: none !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes duneSlideUp {
    from {
        opacity: 0;
        transform: translateY(200px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowShift {
    0%, 100% {
        filter: drop-shadow(0 8px 24px rgba(212, 175, 55, 0.4));
    }
    33% {
        filter: drop-shadow(0 8px 24px rgba(217, 117, 54, 0.4));
    }
    66% {
        filter: drop-shadow(0 8px 24px rgba(245, 243, 232, 0.3));
    }
}

/* Animation Classes */
.dune-bg-layer {
    animation: duneSlideUp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.dune-bg-1 {
    animation-delay: 0.1s;
}

.dune-bg-2 {
    animation-delay: 0.2s;
}

.dune-bg-3 {
    animation-delay: 0.3s;
}

.dune-bg-4 {
    animation-delay: 0.4s;
}

.logo-glow {
    animation: glowShift 4s ease-in-out infinite;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.pulse-badge {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, var(--gold) 0%, var(--copper) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Content Gradient Overlay */
.main-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, transparent 0%, var(--ink) 100%);
    z-index: 5;
    pointer-events: none;
}

/* Scroll Reveal Animations */
@keyframes fadeInUpScroll {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(212, 175, 55, 0.95);
    color: #1a1510;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(212, 175, 55, 0.95);
}

/* Button Ripple Effect */
.ripple-container {
    position: relative;
    overflow: hidden;
}

@keyframes ripple {
    from {
        opacity: 1;
        transform: scale(0);
    }
    to {
        opacity: 0;
        transform: scale(4);
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    animation: ripple 0.6s ease-out;
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(26, 21, 16, 0.3);
    border-top-color: #1a1510;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Enhanced Logo Animation */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.logo-float {
    animation: logoFloat 3s ease-in-out infinite;
}

/* Smooth Transitions */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

.page-updated {
    font-size: 12.5px;
    letter-spacing: .02em;
    color: var(--page-muted);
    margin: 0 0 26px;
}

.flag {
    display: inline-block;
    width: 1.15em;
    height: auto;
    vertical-align: -0.14em;
    margin-inline-end: .38em;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .22);
}

.alt-flow { display: flex; flex-direction: column; gap: clamp(3rem, 7vh, 6rem); }
.alt-row {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .alt-row { grid-template-columns: 1fr 1fr; }
    .alt-row:nth-child(even) > .alt-media { order: -1; }
    .alt-row.alt-wide-text { grid-template-columns: 1.35fr 1fr; }
    .alt-row.alt-wide-media { grid-template-columns: 1fr 1.35fr; }
}
.alt-row > .alt-text > :last-child { margin-bottom: 0; }
.alt-media img,
.alt-media svg { display: block; width: 100%; height: auto; border-radius: 14px; }

.stat-strip {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    background: var(--page-border);
    border: 1px solid var(--page-border);
    border-radius: 14px;
    overflow: hidden;
}
.stat-cell { background: var(--page-panel); padding: 1.1rem 1.2rem; }
.stat-num {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    color: var(--gold-ink);
}
.stat-label { font-size: 12.5px; letter-spacing: .04em; color: var(--page-muted); margin-top: .3rem; }

.bar-chart { display: flex; flex-direction: column; gap: .7rem; }
.bar-row { display: grid; grid-template-columns: minmax(80px, 22%) 1fr auto; gap: .8rem; align-items: center; font-size: 13.5px; }
.bar-track { height: 9px; border-radius: 99px; background: color-mix(in srgb, var(--page-border) 70%, transparent); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--copper)); }
.bar-val { font-variant-numeric: tabular-nums; color: var(--page-muted); }

.pull-quote {
    border-inline-start: 3px solid var(--gold);
    padding-inline-start: clamp(1rem, 2vw, 1.6rem);
    margin: clamp(2rem, 4vh, 3rem) 0;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.55;
    font-weight: 300;
}
