/* =========================================================
   ASTEROID — static site styles (Bento, expanded)
   Pure CSS. No build step.
   ========================================================= */

:root {
    --bg: #0b0b0d;
    --bg-2: #111114;
    --card: #141418;
    --card-2: #1a1a1f;
    --line: rgba(255, 255, 255, 0.06);
    --line-2: rgba(255, 255, 255, 0.1);

    --text: #f5f5f7;
    --muted: #9a9aa3;
    --muted-2: #6d6d76;

    --accent: #ff9b3d;
    --accent-2: #ffb86a;

    --font-display:
        'Space Grotesk', -apple-system, BlinkMacSystemFont, 'SF Pro Display',
        system-ui, sans-serif;
    --font-body:
        'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui,
        sans-serif;
    --font-hand: 'Caveat', ui-sans-serif, cursive;
    --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --max-w: 1280px;

    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

/* IMPORTANT — scroll-friendly base styles
   ─────────────────────────────────────────
   • NO overflow on <html>  — Lenis & native iOS Safari both treat <html>
     as the scroll container; setting overflow there can lock the page.
   • NO overflow on <body>  — same reason. We rely on no element actually
     overflowing horizontally; nothing in the layout exceeds 100vw.
   • NO overscroll-behavior — `contain` interacts badly with some mobile
     browsers when combined with iframes.
   • touch-action: pan-y    — explicitly tell mobile browsers vertical
     scrolling is always allowed, no matter what's on top. */
html {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    -webkit-text-size-adjust: 100%;
    touch-action: pan-y;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    line-height: 1.5;
    touch-action: pan-y;
}

a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
    cursor: pointer;
    background: none;
    border: 0;
    color: inherit;
    padding: 0;
}
ol,
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
img,
svg,
video {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--accent);
    color: #000;
}
::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* ------------ layout helpers ------------ */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}
@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
}

.section {
    padding: 80px 0;
}
@media (min-width: 768px) {
    .section {
        padding: 120px 0;
    }
}

.section.tight {
    padding-top: 24px;
}
@media (min-width: 768px) {
    .section.tight {
        padding-top: 32px;
    }
}

/* ------------ typography ------------ */
.font-display {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
}
.font-hand {
    font-family: var(--font-hand);
}
.font-mono {
    font-family: var(--font-mono);
}

.mini {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 14px;
    font-weight: 450;
}
.mini .dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--accent);
    margin-right: 8px;
    flex: 0 0 auto;
}
.mini.light {
    color: rgba(255, 255, 255, 0.85);
}

.h-xl {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 6.8vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin: 0;
}
.h-lg {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.028em;
    margin: 0;
}
.h-md {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(22px, 2.8vw, 30px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}
.h-sm {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
}

.lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}
@media (min-width: 768px) {
    .lead {
        font-size: 17px;
    }
}

.muted {
    color: var(--muted);
}
.dim {
    color: var(--muted-2);
}
.accent {
    color: var(--accent);
}

.inline-link {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 155, 61, 0.35);
    transition:
        color 0.18s ease,
        border-color 0.18s ease;
    font-family: var(--font-mono);
    font-size: 0.94em;
    padding-bottom: 1px;
}
.inline-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ------------ Section head (compact, splittable) ------------ */
.section-head {
    margin: 0 0 32px;
}
@media (min-width: 768px) {
    .section-head {
        margin-bottom: 48px;
    }
}
.section-head-title .mini {
    margin-bottom: 16px;
}

.section-head.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: end;
}
@media (min-width: 900px) {
    .section-head.split {
        grid-template-columns: 1.15fr 1fr;
        gap: 56px;
    }
}
.section-head.split .lead {
    max-width: none;
    margin: 0;
}
.section-head.center {
    text-align: center;
    max-width: 38em;
    margin-left: auto;
    margin-right: auto;
}

/* ------------ reveal primitive ------------
   Default: visible. Only hidden when JS confirms animations are ready
   by adding `.js-anim` to <html>. This guarantees that if GSAP fails
   to load (CDN block, slow network, parse error) the page is still
   readable — no invisible content, no perceived "frozen" state. */
.reveal {
    opacity: 1;
    transform: none;
    will-change: opacity, transform;
}
html.js-anim .reveal {
    opacity: 0;
    transform: translateY(24px);
}
@media (prefers-reduced-motion: reduce) {
    html.js-anim .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ------------ nav ------------ */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    transition:
        background 0.25s ease,
        backdrop-filter 0.25s ease,
        border-color 0.25s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(11, 11, 13, 0.72);
    backdrop-filter: saturate(140%) blur(20px);
    -webkit-backdrop-filter: saturate(140%) blur(20px);
    border-color: var(--line);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 12px 16px;
    min-width: 0; /* allow flex children to shrink */
}
@media (min-width: 768px) {
    .nav-inner {
        padding: 16px 32px;
        gap: 16px;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--line-2);
    flex-shrink: 0;
}
.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
}
/* Very small screens: drop the wordmark, the logo speaks for itself. */
@media (max-width: 420px) {
    .brand-name {
        display: none;
    }
}

.nav-links {
    display: none;
    gap: 28px;
    font-size: 14px;
    color: var(--muted);
}
.nav-links a {
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--text);
}
@media (min-width: 900px) {
    .nav-links {
        display: flex;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0; /* never let the CTA get clipped */
}
@media (max-width: 640px) {
    .nav-actions {
        gap: 6px;
    }
}

/* ------------ buttons & pills ------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.005em;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s,
        transform 0.15s;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--text);
    color: #000;
}
.btn-primary:hover {
    transform: translateY(-1px);
}
.btn-ghost {
    border-color: var(--line-2);
    color: var(--text);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
}
.btn-accent {
    background: var(--accent);
    color: #0b0b0d;
}
.btn-accent:hover {
    background: var(--accent-2);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
    transition:
        background 0.2s,
        border-color 0.2s;
}
.pill:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}
.pill .label {
    color: var(--muted);
    font-size: 11px;
    font-family: var(--font-body);
}
.pill .check {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    transition:
        background 0.2s,
        color 0.2s;
}
.pill.copied .check {
    background: var(--accent);
    color: #000;
}
@media (max-width: 640px) {
    .pill {
        padding: 7px 10px;
        font-size: 11px;
        gap: 6px;
    }
    .pill .label {
        display: none;
    }
    .pill .check {
        width: 16px;
        height: 16px;
    }
    .nav .btn {
        padding: 9px 14px;
        font-size: 13px;
    }
}
@media (max-width: 380px) {
    .pill {
        padding: 6px 9px;
        font-size: 10.5px;
    }
}

/* ------------ HERO ------------ */
.hero {
    min-height: 100vh; /* fallback */
    min-height: 100svh;
    padding: 140px 0 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            60% 40% at 50% 110%,
            rgba(255, 155, 61, 0.18),
            transparent 60%
        ),
        radial-gradient(
            80% 50% at 50% -20%,
            rgba(77, 181, 229, 0.08),
            transparent 60%
        );
}

.hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    margin: 0 auto 32px;
    overflow: hidden;
    box-shadow:
        0 40px 80px -20px rgba(255, 155, 61, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(56px, 11vw, 160px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    margin: 0;
}
.hero-sub {
    max-width: 34em;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
    text-wrap: balance;
}
@media (min-width: 768px) {
    .hero-sub {
        font-size: 19px;
    }
}

.hero-cta {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted-2);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
    0%,
    100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 6px);
    }
}

/* ------------ BENTO GRID ------------ */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
@media (min-width: 768px) {
    .bento {
        gap: 14px;
    }
}
@media (min-width: 1024px) {
    .bento {
        gap: 16px;
    }
}

.bento + .bento {
    margin-top: 14px;
}
@media (min-width: 1024px) {
    .bento + .bento {
        margin-top: 16px;
    }
}

.bento-card {
    position: relative;
    grid-column: span 6;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    overflow: hidden;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
@media (min-width: 768px) {
    .bento-card {
        padding: 32px;
    }
}
.bento-card:hover {
    border-color: var(--line-2);
}

.bento-card.flat {
    padding: 0;
}
.bento-card.grad {
    background: linear-gradient(155deg, #191920 0%, #0f0f13 100%);
}
.bento-card.grad-warm {
    background: linear-gradient(155deg, #20191a 0%, #13100f 100%);
}
.bento-card.grad-cool {
    background: linear-gradient(155deg, #121720 0%, #0f0f13 100%);
}
.bento-card.cream {
    background: #1b1a16;
    color: var(--text);
}
.bento-card.cream .card-eyebrow {
    color: #a09a8b;
}

.card-eyebrow {
    font-size: 12px;
    color: var(--muted-2);
    letter-spacing: 0.01em;
    margin: 0 0 6px;
    font-weight: 450;
}
.card-body {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 36em;
}

/* stat number inside card */
.stat-num-big {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(52px, 7vw, 84px);
    line-height: 0.95;
    letter-spacing: -0.045em;
    margin: 18px 0 0;
}
.stat-num-big .unit {
    font-size: 0.42em;
    letter-spacing: -0.02em;
    color: var(--muted);
    margin-left: 2px;
}
.stat-num-big .stat-sub {
    display: block;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 400;
    color: var(--muted-2);
    letter-spacing: 0;
    margin-top: 8px;
    text-transform: none;
}

/* span helpers (desktop) */
@media (min-width: 900px) {
    .col-2 {
        grid-column: span 2;
    }
    .col-3 {
        grid-column: span 3;
    }
    .col-4 {
        grid-column: span 4;
    }
    .col-6 {
        grid-column: span 6;
    }
    .row-2 {
        grid-row: span 2;
    }
}

/* ------------ Media cards ------------ */
.media-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-overlay {
    position: absolute;
    inset: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0.78) 100%
    );
}
@media (min-width: 768px) {
    .media-overlay {
        padding: 36px;
    }
}
.media-overlay.center {
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.72) 100%
    );
}
.media-overlay .h-md,
.media-overlay .h-lg,
.media-overlay .h-xl {
    color: #fff;
}
.media-overlay .caption {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    margin-top: 10px;
    max-width: 34em;
    line-height: 1.55;
}
.media-overlay .h-lg + .caption,
.media-overlay .h-xl + .caption {
    margin-top: 16px;
}

.photo-card {
    min-height: 280px;
    aspect-ratio: 4/5;
}
.photo-card.wide {
    aspect-ratio: 16/10;
}
.photo-card.tall {
    aspect-ratio: 16/11;
}

.tag-row {
    margin: 0 0 10px;
}
.tag-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 11.5px;
    font-family: var(--font-mono);
}
.tag-sm .dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--accent);
}

/* ------------ Feature video ------------ */
.feature-video {
    position: relative;
    min-height: 380px;
    aspect-ratio: 21 / 9;
    background: #000;
}
@media (max-width: 768px) {
    .feature-video {
        aspect-ratio: 4/5;
        min-height: 420px;
    }
}
.feature-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feature-video-overlay {
    position: absolute;
    inset: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0.35) 65%,
        rgba(0, 0, 0, 0.85) 100%
    );
    color: #fff;
}
@media (min-width: 768px) {
    .feature-video-overlay {
        padding: 44px;
    }
}
.feature-video-overlay .h-lg {
    color: #fff;
}
.feature-video-overlay .caption {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14.5px;
    line-height: 1.6;
    margin-top: 14px;
    max-width: 42em;
}

/* ------------ Paper (handwritten note) ------------ */
.paper {
    position: relative;
    background: #f1ede0;
    color: #1a1a1d;
    border-radius: var(--radius-md);
    padding: 26px;
    transform: rotate(-1deg);
    transform-origin: top left;
    box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.8);
    background-image:
        radial-gradient(ellipse at top, rgba(0, 0, 0, 0.04), transparent 60%),
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.04) 0,
            rgba(0, 0, 0, 0.04) 1px,
            transparent 1px,
            transparent 26px
        );
}
@media (min-width: 768px) {
    .paper {
        padding: 32px;
    }
}
.paper .tape {
    position: absolute;
    top: -10px;
    height: 20px;
    background: rgba(255, 155, 61, 0.6);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.paper .tape.one {
    left: 32px;
    width: 54px;
    transform: rotate(-4deg);
}
.paper .tape.two {
    right: 40px;
    width: 66px;
    transform: rotate(3deg);
}
.paper .kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(26, 26, 29, 0.55);
    margin: 0;
}
.paper ol {
    margin-top: 18px;
    font-family: var(--font-hand);
    font-size: 21px;
    line-height: 1.4;
    color: rgba(26, 26, 29, 0.92);
}
@media (min-width: 768px) {
    .paper ol {
        font-size: 24px;
    }
}
.paper ol li {
    display: flex;
    gap: 12px;
    padding: 2px 0;
    border-radius: 3px;
}
.paper ol li .n {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(26, 26, 29, 0.55);
    padding-top: 5px;
}
.paper ol li.highlight {
    background: rgba(255, 155, 61, 0.18);
    margin: 0 -6px;
    padding: 2px 6px;
}
.paper .sig {
    margin-top: 20px;
    font-family: var(--font-hand);
    font-size: 22px;
    color: rgba(26, 26, 29, 0.7);
}

/* ------------ Reply card ------------ */
.reply {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.reply-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.reply-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--text);
    color: #000;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
}
.reply-meta .name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}
.reply-meta .handle {
    color: var(--muted-2);
    font-size: 12px;
    margin-top: 2px;
}
.reply-body {
    color: var(--text);
    font-size: 15.5px;
    line-height: 1.55;
}
.reply-body p {
    margin: 4px 0;
}
.reply-body .ok {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
    display: inline-block;
    margin-top: 8px;
}

/* ------------ TOKEN section cards ------------ */
.token-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.token-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--line-2);
}
.token-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.verified {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted-2);
    font-family: var(--font-mono);
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.ca-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
}
.ca-row .addr {
    font-family: var(--font-mono);
    font-size: 13px;
    word-break: break-all;
    color: var(--text);
    display: block;
    margin-top: 2px;
}
.ca-row .label {
    display: block;
    font-size: 11px;
    color: var(--muted-2);
}

.token-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}
@media (min-width: 640px) {
    .token-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}
.token-actions .btn {
    justify-content: center;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}
.mini-stats .tile {
    padding: 18px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-align: center;
}
.mini-stats .tile .val {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.01em;
}
.mini-stats .tile .key {
    color: var(--muted-2);
    font-size: 12px;
    margin-top: 4px;
}

.chart-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    min-height: 560px;
    background: #0b0b0d;
    display: block;
}
.chart-card iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 560px;
    border: 0;
    background: transparent;
}

/* ─── iframe scroll-shield ────────────────────────────────────────────
   On touch devices, an iframe absorbs all touch/scroll events landing
   on it, locking the parent page. We overlay an invisible button that
   intercepts touches by default; tapping it once "unlocks" the chart so
   the user can pan/zoom. Hidden on hover-capable devices (mouse/trackpad)
   where this isn't an issue. */
.chart-shield {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    display: none;
    align-items: flex-end;
    justify-content: center;
    font: inherit;
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
}
.chart-shield-pill {
    margin: 0 0 18px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(11, 11, 13, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line-2);
    color: var(--text);
    font-size: 12px;
    font-family: var(--font-mono);
    pointer-events: none;
}
.chart-card.unlocked .chart-shield {
    display: none;
}

/* Show the shield only on devices without a fine pointer (touch). */
@media (hover: none), (pointer: coarse) {
    .chart-shield {
        display: flex;
    }
}
.chart-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(11, 11, 13, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line-2);
    font-size: 11.5px;
    font-family: var(--font-mono);
    color: var(--muted);
    z-index: 2;
    pointer-events: auto;
}
.chart-badge a {
    color: var(--muted);
    transition: color 0.2s;
}
.chart-badge a:hover {
    color: var(--text);
}
.chart-badge a + a {
    position: relative;
    padding-left: 10px;
}
.chart-badge a + a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 10px;
    transform: translateY(-50%);
    background: var(--line-2);
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* ------------ TEAM timeline (inside card) ------------ */
.timeline {
    position: relative;
    padding-left: 22px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(
        to bottom,
        rgba(255, 155, 61, 0.55) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
}
.timeline ol {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.timeline li {
    position: relative;
    padding-bottom: 2px;
}
.timeline li::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow:
        0 0 0 3px var(--card-2),
        0 0 16px rgba(255, 155, 61, 0.5);
}
.timeline .date {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--accent);
    margin-bottom: 4px;
    display: block;
}
.timeline h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    margin: 0;
    letter-spacing: -0.01em;
}
.timeline p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

/* ------------ COMMUNITY cards ------------ */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 900px) {
    .channel-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

.hero {
    background-image: url('/images/bg.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: centre;
}

.channel {
    padding: 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 28px;
    justify-content: space-between;
    min-height: 150px;
    transition:
        transform 0.2s,
        border-color 0.2s,
        background 0.2s;
}
.channel:hover {
    transform: translateY(-2px);
    border-color: var(--line-2);
    background: var(--card-2);
}
.channel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.channel-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    display: grid;
    place-items: center;
    color: var(--text);
}
.channel-arrow {
    color: var(--muted-2);
    transition: color 0.2s;
}
.channel:hover .channel-arrow {
    color: var(--accent);
}
.channel .label {
    color: var(--muted-2);
    font-size: 12px;
}
.channel .val {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    margin-top: 2px;
}

.quote {
    margin-top: 20px;
    padding: 36px;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #1a1a20 0%, #0f0f13 100%);
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}
@media (min-width: 900px) {
    .quote {
        padding: 48px;
        grid-template-columns: 240px 1fr;
        gap: 48px;
    }
}
.quote .photo {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: inset 0 0 0 1px var(--line);
}
.quote .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.quote blockquote {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text);
    text-wrap: balance;
}
.quote blockquote .em {
    color: var(--accent);
}
.quote cite {
    display: block;
    margin-top: 18px;
    font-style: normal;
    font-size: 13px;
    color: var(--muted-2);
}

/* ------------ FOOTER ------------ */
.footer {
    border-top: 1px solid var(--line);
    padding: 56px 0 40px;
    background: var(--bg);
    margin-top: 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr;
        gap: 48px;
    }
}

.footer h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(26px, 3.4vw, 40px);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0;
}
.footer h3 .em {
    color: var(--accent);
}
.footer p {
    color: var(--muted);
    font-size: 14px;
    max-width: 28em;
    line-height: 1.55;
    margin: 14px 0 0;
}

.footer-col h4 {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--muted-2);
    font-weight: 500;
}
.footer-col a {
    display: block;
    padding: 4px 0;
    color: var(--text);
    font-size: 14px;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column-reverse;
    gap: 16px;
}
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
.footer-bottom small {
    color: var(--muted-2);
    font-size: 12px;
    max-width: 40em;
    line-height: 1.55;
}

/* ------------ reduce motion ------------ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-scroll {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}
