/* ============================================
   GENESIS 1.0 LAUNCH ARTICLE — Interactive layer
   Scoped enhancements for the Genesis launch
   article on /news. Activated by genesis-article.js
   ============================================ */

:root {
    /* Professional monochrome palette (replaces gold) */
    --gx-gold: #fff;
    --gx-gold-soft: rgba(255, 255, 255, 0.55);
    --gx-gold-dim: rgba(255, 255, 255, 0.1);
    --gx-surface: rgba(255, 255, 255, 0.035);
    --gx-border: rgba(255, 255, 255, 0.08);
    /* Category accents for the benchmark report (restrained, professional) */
    --gx-cool: rgba(255, 255, 255, 0.7);
    --gx-violet: rgba(200, 200, 220, 0.8);
    --gx-mint: rgba(220, 230, 240, 0.8);

    /* ── Hero-image accent palette ───────────────────────────
       Sampled from the article's eclipse hero (genesis-hero.jpg).
       Whites/greys remain the protagonists; these tones are used
       as *very* discreet accents (low-opacity halos, hairlines,
       ambient washes) to keep the article visually coherent with
       the cover image without ever feeling "gold-themed". */
    --gx-hero-champagne:    #e8c89a;   /* warm rim-light */
    --gx-hero-amber:        #c89568;   /* deeper halo    */
    --gx-hero-warm-white:   #fff0d8;   /* floor reflection */
    --gx-hero-blue-shadow:  #13151a;   /* cool charcoal  */
    /* Pre-baked alpha variants — used directly so any one accent
       can never go above ~10% opacity by accident. */
    --gx-hero-tint-3:  rgba(232, 200, 154, 0.03);
    --gx-hero-tint-6:  rgba(232, 200, 154, 0.06);
    --gx-hero-tint-10: rgba(232, 200, 154, 0.10);
    --gx-hero-tint-18: rgba(232, 200, 154, 0.18);
    --gx-hero-warm-line: rgba(232, 200, 154, 0.22);
}

/* ── Scroll reveal ─────────────────────────────────────── */
.gx-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.gx-reveal.gx-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── Listen-to-article (inline, byline-anchored) ─────────────
   A single line right under "Compoxer Team · date":
   ▶  Listen to this article · 5:08
   No card, no chrome. Just a quiet, tap-to-hear control.
*/
.gx-listen {
    display: block;
    margin: 16px 0 18px;
    line-height: 1;
}
.gx-listen-audio { display: none; }
.gx-listen-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 7px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    font-family: var(--news-font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.gx-listen-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
}
.gx-listen-btn:focus-visible {
    outline: none;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 2px rgba(232, 200, 154, 0.12);
}
.gx-listen-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: background 0.18s ease, transform 0.18s ease;
}
.gx-listen-btn:hover .gx-listen-ico {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.04);
}
.gx-listen.gx-listen-on .gx-listen-ico {
    background: #fff;
    color: #0d0d0d;
    box-shadow: 0 0 0 2px rgba(232, 200, 154, 0.18);
}
.gx-listen.gx-listen-on .gx-listen-btn {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}
.gx-listen-sep {
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.78rem;
}
.gx-listen-time {
    font-family: var(--news-font-mono);
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.52);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    min-width: 3.4em;
    text-align: left;
}
.gx-listen.gx-listen-on .gx-listen-time {
    color: var(--gx-hero-warm-line);
}

/* ── Wide images inside the article ────────────────────── 
   SEO-optimized: aspect-ratio for CLS prevention, smooth
   loading transition, and hero-palette shadow accents.
*/
.article-view-body img.gx-img-wide {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    margin: 2.2em auto;
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.55),
        0 6px 40px rgba(232, 200, 154, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    /* Smooth fade-in when lazy-loaded */
    opacity: 1;
    transition: opacity 0.4s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.article-view-body img.gx-img-wide[loading="lazy"] {
    opacity: 0;
}
.article-view-body img.gx-img-wide.loaded,
.article-view-body img.gx-img-wide:not([loading="lazy"]) {
    opacity: 1;
}
.article-view-body img.gx-img-wide:hover {
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.6),
        0 8px 50px rgba(232, 200, 154, 0.12);
    transform: translateY(-2px);
}

/* ── Pull quote ─────────────────────────────────────────── */
.article-view-body blockquote.gx-pull,
.gx-pull {
    border: none;
    margin: 2.6em 0;
    padding: 1.6em 1.4em;
    text-align: center;
    background:
        radial-gradient(60% 120% at 50% 0%, var(--gx-hero-tint-6), transparent 70%),
        var(--gx-surface);
    border-radius: 16px;
    border: 1px solid var(--gx-border);
}
.gx-pull p {
    font-family: var(--news-font-display);
    font-size: 1.55rem;
    line-height: 1.4;
    color: #fff;
    margin: 0;
}
.gx-pull p em {
    font-style: normal;
    color: #fff;
}

/* ── Stat strip ─────────────────────────────────────────── */
.gx-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 2.6em 0;
}
.gx-stat {
    background: linear-gradient(165deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px 14px 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.gx-stat:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.gx-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Top halo borrows a sliver of warmth from the hero image, kept barely visible. */
    background:
        radial-gradient(circle at 50% 0%, var(--gx-hero-tint-3), transparent 60%),
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.gx-stat.gx-counted::before { opacity: 1; }
.gx-stat::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), var(--gx-hero-warm-line), rgba(255,255,255,0.22), transparent);
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.6s ease 0.2s, transform 0.8s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.gx-stat.gx-counted::after {
    opacity: 1;
    transform: scaleX(1);
}
.gx-stat-value {
    font-family: var(--news-font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    display: block;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}
.gx-stat.gx-counting .gx-stat-value {
    transform: scale(1.02);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.25);
}
.gx-stat-label {
    font-family: var(--news-font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 10px;
    display: block;
}
.gx-stat-sub {
    font-family: var(--news-font-body);
    font-size: 0.68rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
    display: block;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}
.gx-stat.gx-counted .gx-stat-sub {
    opacity: 1;
    transform: translateY(0);
}

/* ── Interactive playground ─────────────────────────────── */
.gx-playground {
    background:
        radial-gradient(120% 80% at 50% 0%, var(--gx-hero-tint-3), transparent 65%),
        linear-gradient(165deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px 26px 24px;
    margin: 2.6em 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}
.gx-playground::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), var(--gx-hero-warm-line), rgba(255,255,255,0.18), transparent);
    opacity: 0.7;
}
.gx-pg-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}
.gx-pg-eyebrow {
    font-family: var(--news-font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

/* Composer prompt box (mimics the real app input) */
.gx-pg-composer {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 10px 10px 18px;
    margin-bottom: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.gx-pg-composer.gx-focus {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}
.gx-pg-prompt-text {
    flex: 1;
    font-family: var(--news-font-mono);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1.3em;
}
.gx-pg-prompt-text .gx-ph { color: rgba(255, 255, 255, 0.34); }
.gx-pg-prompt-text .gx-caret {
    display: inline-block;
    width: 8px;
    height: 1.05em;
    background: #fff;
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: gx-blink 0.85s step-end infinite;
}
@keyframes gx-blink { 50% { opacity: 0; } }
.gx-pg-compose-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-family: var(--news-font-body);
    font-size: 0.82rem;
    font-weight: 700;
    color: #0d0d0d;
    background: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.gx-pg-compose-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(255,255,255,0.18), 0 4px 28px rgba(232, 200, 154, 0.16);
}
.gx-pg-compose-btn:disabled { opacity: 0.45; cursor: default; }
.gx-pg-spin {
    width: 13px; height: 13px;
    border: 2px solid rgba(13,13,13,0.3);
    border-top-color: #0d0d0d;
    border-radius: 50%;
    animation: gx-spin 0.7s linear infinite;
}
@keyframes gx-spin { to { transform: rotate(360deg); } }

/* Stage = piano roll */
.gx-pg-stage {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 16px;
}
.gx-pg-roll {
    position: relative;
    height: 196px;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 24.5px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 12.5%),
        radial-gradient(120% 100% at 0% 50%, rgba(255,255,255,0.03), transparent 55%),
        rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}
.gx-note {
    position: absolute;
    height: 13px;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.14));
    border: 1px solid rgba(255,255,255,0.22);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.gx-note.gx-seen { opacity: 1; transform: translateY(0); }
.gx-note.gx-acc {
    background: linear-gradient(180deg, rgba(160, 180, 200, 0.2), rgba(160, 180, 200, 0.1));
    border-color: rgba(160, 180, 200, 0.22);
    height: 11px;
}
.gx-note.gx-lit {
    background: linear-gradient(180deg, #fff, #e0e0e0);
    border-color: transparent;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.6);
}
.gx-note.gx-acc.gx-lit {
    background: linear-gradient(180deg, #c8d8e8, #a0b8d0);
    box-shadow: 0 0 14px rgba(160, 180, 200, 0.6);
}
.gx-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, #fff, transparent);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
    opacity: 0;
    left: 0;
    will-change: left;
}
.gx-playhead.gx-running { opacity: 0.95; }
.gx-pg-roll-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--news-font-body);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.32);
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.gx-pg-roll-empty svg { color: rgba(255, 255, 255, 0.22); }

.gx-pg-footer {
    display: flex;
    align-items: center;
    gap: 14px;
}
.gx-pg-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-family: var(--news-font-body);
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-bottom: none !important;
    padding: 6px 4px;
    transition: gap 0.2s ease, color 0.2s ease;
}
.gx-pg-open:hover { gap: 9px; color: #fff; text-shadow: 0 0 14px rgba(232, 200, 154, 0.22); }
.gx-pg-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px; height: 46px;
    color: #0d0d0d;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.gx-pg-play:hover:not(:disabled):not(.gx-pg-play-loading) {
    transform: scale(1.06);
    box-shadow: 0 6px 22px rgba(255,255,255,0.22), 0 4px 30px rgba(232, 200, 154, 0.18);
}
.gx-pg-play:disabled { opacity: 0.4; cursor: default; }
.gx-pg-play.gx-pg-play-loading {
    cursor: wait;
    pointer-events: none;
}
/* Subtle pulse inviting the first tap (a real gesture unlocks audio).
   The ring fades from white to a hairline-warm hue, echoing the eclipse's
   rim-light on the article hero. */
.gx-pg-play.gx-pg-play-ready {
    animation: gx-play-pulse 2s ease-out infinite;
}
@keyframes gx-play-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(232, 200, 154, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 200, 154, 0); }
}
.gx-pg-play .gx-pg-spin {
    width: 16px; height: 16px;
    border-color: rgba(0,0,0,0.18);
    border-top-color: #0d0d0d;
}
.gx-pg-progress {
    flex: 1;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
.gx-pg-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5), #fff);
}
.gx-pg-time {
    flex-shrink: 0;
    font-family: var(--news-font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    min-width: 74px;
    text-align: right;
}
.gx-pg-caption {
    font-family: var(--news-font-body);
    font-size: 0.76rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.42);
    text-align: center;
    margin: 16px 0 0;
}

/* ════════════════════════════════════════════════════════
   BENCHMARK — Compoxer Melodic Benchmark report
   Inspired by the restrained, documentation-grade reports
   from Anthropic / OpenAI / Apple: minimalist, typographic,
   subtly colour-coded, with quiet purposeful motion.
   ════════════════════════════════════════════════════════ */
.gx-bench {
    margin: 2.8em 0;
    background:
        radial-gradient(80% 60% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 65%),
        radial-gradient(60% 50% at 50% 0%, var(--gx-hero-tint-6), transparent 70%),
        linear-gradient(180deg, #131316, #0d0d0f 60%);
    border: 1px solid var(--gx-border);
    border-radius: 22px;
    padding: 30px 28px 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}
.gx-bench::before {
    /* hairline top accent — the report's signature line.
       Mirrors the eclipse rim-light from the article's hero image. */
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), var(--gx-hero-warm-line), rgba(255,255,255,0.18), transparent);
    opacity: 0.75;
}

/* ── Report header ─────────────────────────────────────── */
.gx-bench-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--gx-border);
    padding-bottom: 20px;
    margin-bottom: 22px;
}
.gx-bench-head-main { flex: 1; min-width: 260px; }
.gx-bench-eyebrow {
    display: inline-block;
    font-family: var(--news-font-mono);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}
.gx-bench-head h3,
.article-view-body .gx-bench-head h3 {
    font-family: var(--news-font-display);
    font-size: 1.55rem;
    color: #fff;
    margin: 0 0 8px;
    border: none;
    padding: 0;
    letter-spacing: -0.01em;
}
.gx-bench-lead {
    font-family: var(--news-font-body);
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    max-width: 52ch;
}
.gx-bench-lead strong { color: rgba(255, 255, 255, 0.82); font-weight: 600; }
.gx-bench-ver {
    font-family: var(--news-font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 5px 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Headline KPIs ─────────────────────────────────────── */
.gx-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}
.gx-kpi {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--gx-border);
    border-radius: 16px;
    padding: 20px 16px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease;
}
.gx-kpi::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.6s ease 0.2s, transform 0.8s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.gx-bench.gx-in .gx-kpi::after { opacity: 1; transform: scaleX(1); }
.gx-kpi:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.14); }
.gx-kpi-value {
    font-family: var(--news-font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    /* White core glow with a faint warm undertone — same rim-light family
       as the eclipse hero, used at trace levels. */
    text-shadow:
        0 0 30px rgba(255, 255, 255, 0.15),
        0 0 50px rgba(232, 200, 154, 0.08);
}
.gx-kpi-value small { font-size: 1.1rem; color: rgba(255,255,255,0.5); }
.gx-kpi-label {
    font-family: var(--news-font-body);
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
}
.gx-kpi-sub {
    font-family: var(--news-font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

/* ── Interactive metric explorer ───────────────────────── */
.gx-metrics { margin-bottom: 22px; }
.gx-seg {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid var(--gx-border);
    border-radius: 14px;
}
.gx-seg-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--news-font-body);
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 8px 13px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}
.gx-seg-btn:hover { color: rgba(255, 255, 255, 0.85); }
.gx-seg-btn.gx-on {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 2px 10px rgba(0,0,0,0.3);
}
.gx-seg-dot {
    width: 8px; height: 8px; border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}
.gx-metrics-hint {
    font-family: var(--news-font-body);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.34);
    margin: 12px 2px 8px;
}

.gx-metric-list { display: flex; flex-direction: column; }
.gx-metric {
    --mc: #fff;
    border-top: 1px solid var(--gx-border);
    padding: 15px 4px 16px;
    overflow: hidden;
    transition: opacity 0.35s ease, max-height 0.45s ease, padding 0.35s ease, transform 0.35s ease;
    max-height: 200px;
}
.gx-metric:first-child { border-top: none; }
.gx-metric.gx-hide {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-4px);
    pointer-events: none;
}
.gx-metric-head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}
.gx-metric-dot {
    width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
    background: var(--mc);
    box-shadow: 0 0 10px color-mix(in srgb, var(--mc) 70%, transparent);
}
.gx-metric-label {
    flex: 1;
    font-family: var(--news-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.86);
}
.gx-metric-val {
    font-family: var(--news-font-display);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--mc);
    font-variant-numeric: tabular-nums;
}
.gx-metric-chev {
    width: 16px; height: 16px; flex-shrink: 0;
    color: rgba(255, 255, 255, 0.32);
    transition: transform 0.3s ease, color 0.2s ease;
}
.gx-metric-head:hover .gx-metric-chev { color: rgba(255, 255, 255, 0.6); }
.gx-metric.gx-open .gx-metric-chev { transform: rotate(180deg); color: var(--mc); }

.gx-metric-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-top: 11px;
}
.gx-metric-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--mc) 45%, transparent), var(--mc));
    box-shadow: 0 0 10px color-mix(in srgb, var(--mc) 40%, transparent);
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.gx-metric-def {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}
.gx-metric.gx-open .gx-metric-def {
    max-height: 160px;
    opacity: 1;
    margin-top: 12px;
}
.gx-metric-def p {
    font-family: var(--news-font-body);
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    padding-left: 21px;
    border-left: 2px solid color-mix(in srgb, var(--mc) 45%, transparent);
}

/* ── Chart head shared (used by radar) ────────────────── */
.gx-chart-title {
    font-family: var(--news-font-body);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 4px;
}
.gx-chart-sub {
    font-family: var(--news-font-body);
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.4);
}
.gx-chart-chips { display: flex; gap: 6px; flex-shrink: 0; }
.gx-chart-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-family: var(--news-font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gx-border);
    border-radius: 8px;
    padding: 5px 9px;
}
.gx-chart-chip b {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ── Geometric radar ──────────────────────────────────── */
.gx-radar-wrap {
    background:
        radial-gradient(60% 55% at 50% 50%, var(--gx-hero-tint-6), transparent 70%),
        radial-gradient(80% 60% at 50% 0%, rgba(255, 255, 255, 0.04), transparent 70%),
        rgba(255, 255, 255, 0.025);
    border: 1px solid var(--gx-border);
    border-radius: 18px;
    padding: 24px 22px 20px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}
.gx-radar-wrap::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), var(--gx-hero-warm-line), rgba(255,255,255,0.16), transparent);
}
.gx-radar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}
.gx-radar-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0 4px;
}
.gx-radar {
    width: 100%;
    max-width: 520px;
    height: auto;
    overflow: visible;
}
.gx-radar-grid { pointer-events: none; }
.gx-radar-ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 1;
}
.gx-radar-ring:last-of-type {
    stroke: rgba(255, 255, 255, 0.13);
}
.gx-radar-spoke {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1;
    stroke-dasharray: 2 4;
}
.gx-radar-tick {
    font-family: var(--news-font-mono);
    font-size: 9px;
    fill: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.04em;
}
.gx-radar-shape {
    fill: url(#gxRadarFill);
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 1.6;
    stroke-linejoin: round;
    /* White core glow + a hairline-thin warm halo, echoing the eclipse rim-light. */
    filter:
        drop-shadow(0 0 14px rgba(255, 255, 255, 0.22))
        drop-shadow(0 0 22px rgba(232, 200, 154, 0.10));
    transition: points 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.gx-radar-dot {
    fill: #fff;
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 6;
    paint-order: stroke;
    transition: r 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: default;
}
.gx-radar-axis { transition: opacity 0.2s ease; cursor: default; }
.gx-radar-name {
    font-family: var(--news-font-body);
    font-size: 11px;
    font-weight: 600;
    fill: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.02em;
}
.gx-radar-pct {
    font-family: var(--news-font-mono);
    font-size: 10px;
    fill: rgba(255, 255, 255, 0.45);
    font-variant-numeric: tabular-nums;
}
.gx-radar-wrap:hover .gx-radar-axis { opacity: 0.55; }
.gx-radar-axis:hover { opacity: 1 !important; }
.gx-radar-axis:hover .gx-radar-name { fill: #fff; }
.gx-radar-axis:hover .gx-radar-pct  { fill: rgba(255, 255, 255, 0.85); }
.gx-radar-note {
    font-family: var(--news-font-body);
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.6;
    margin: 6px 0 0;
    text-align: center;
}

.gx-bench-note {
    font-family: var(--news-font-body);
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.65;
    margin: 4px 0 0;
}

/* ── Market comparison ──────────────────────────────────── */
.gx-market {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 2.4em 0;
}
.gx-market-card {
    background: var(--gx-surface);
    border: 1px solid var(--gx-border);
    border-radius: 16px;
    padding: 22px 18px 18px;
    display: flex;
    flex-direction: column;
}
.gx-market-card.gx-market-us {
    background:
        radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%),
        radial-gradient(60% 60% at 50% 0%, var(--gx-hero-tint-6), transparent 70%),
        var(--gx-surface);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.2), 0 6px 30px rgba(232, 200, 154, 0.06);
}
.gx-market-tag {
    font-family: var(--news-font-body);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 8px;
}
.gx-market-us .gx-market-tag { color: #fff; }
.gx-market-name {
    font-family: var(--news-font-display);
    font-size: 1.06rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.3;
}
.gx-market-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.gx-market-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--news-font-body);
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.66);
    margin: 0;
    padding: 0;
}
.gx-market-list li::before { content: none; }
.gx-mk-ico {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    margin-top: 2px;
}
.gx-mk-yes { color: #fff; }
.gx-mk-no  { color: rgba(255, 255, 255, 0.28); }

/* ── CTA button ─────────────────────────────────────────── */
.article-view-body p a.gx-cta,
a.gx-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--news-font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: #0d0d0d !important;
    /* Pure white face, with a hairline-warm bloom to echo the eclipse hero. */
    background: linear-gradient(135deg, #ffffff, #f4ece0);
    border-radius: 999px;
    padding: 14px 30px;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow:
        0 10px 34px rgba(255, 255, 255, 0.14),
        0 4px 28px rgba(232, 200, 154, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.gx-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 44px rgba(255, 255, 255, 0.22),
        0 8px 36px rgba(232, 200, 154, 0.22);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 720px) {
    .gx-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gx-stat { padding: 18px 12px 14px; }
    .gx-stat-value { font-size: 1.9rem; }
    .gx-stat-sub { font-size: 0.62rem; }
    .gx-market { grid-template-columns: 1fr; }
    .gx-pull p { font-size: 1.25rem; }
    /* Two-line tagline: shrink to fluid size + tighter padding so each
       <br>-separated sentence stays on a single line (matches desktop). */
    .gx-pull-tagline { padding: 1.3em 0.9em; }
    .gx-pull-tagline p {
        font-size: clamp(0.74rem, 3.5vw, 1.15rem);
        line-height: 1.5;
        text-wrap: balance;
    }
    .gx-pg-roll { height: 160px; }
    .gx-bench { padding: 24px 18px 20px; }
    .gx-bench-head { flex-direction: column-reverse; align-items: flex-start; }
    .gx-kpis { grid-template-columns: 1fr; gap: 10px; }
    .gx-kpi { display: flex; align-items: baseline; gap: 12px; text-align: left; padding: 16px 18px; }
    /* Keep the figure + its unit (0.8s, 92%, 9.0/10) on a single line. */
    .gx-kpi-value { font-size: 2rem; white-space: nowrap; flex-shrink: 0; }
    .gx-kpi-value small { white-space: nowrap; }
    .gx-kpi-label { margin-top: 0; }
    .gx-kpi-sub { margin-left: auto; text-align: right; }
    .gx-seg { overflow-x: auto; flex-wrap: nowrap; }
    .gx-seg-btn { white-space: nowrap; }
    .gx-radar-head { flex-direction: column; }
    .gx-radar-wrap { padding: 22px 14px 18px; }
    .gx-radar-name { font-size: 10px; }
    .gx-radar-pct  { font-size: 9px; }
    .gx-pg-composer { flex-wrap: wrap; }
    .gx-pg-compose-btn { width: 100%; justify-content: center; }
    .gx-pg-footer { flex-wrap: wrap; }
    .gx-pg-open { margin-left: auto; }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .gx-reveal { opacity: 1; transform: none; transition: none; }
    .gx-note { transition: opacity 0.1s linear; transform: none; }
    .gx-metric-fill, .gx-radar-shape, .gx-radar-dot { transition: none; }
    .gx-metric { transition: opacity 0.2s linear; }
}
