/* ============================================================================
   Khorr — landing site
   Modern web redesign: blocks, cards, expanders, distinct sections
   Palette retained from prior iteration
   ============================================================================ */

:root {
    /* Botanical palette (retained) */
    --bg-base:           #0E0F0D;
    --bg-surface:        #161814;
    --bg-elevated:       #1F211C;
    --bg-deep-shadow:    #070806;
    --bg-mid:            #131410;

    /* Text */
    --text-primary:      #ECE6D6;
    --text-secondary:    #968F7B;
    --text-tertiary:     #6B6657;
    --text-faint:        #4A4639;

    /* Brand gold — Khorr, from the Khorai, the golden maidens */
    --accent-brand:      #B58A2E;
    --accent-brand-soft: #C9A24E;
    --accent-brand-deep: #7E5E1F;
    --accent-brand-glow: rgba(181, 138, 46, 0.20);

    /* Gold */
    --accent-gold:       #B58A2E;
    --accent-gold-soft:  #C9A24E;
    --accent-gold-glow:  rgba(181, 138, 46, 0.18);

    /* Moss */
    --accent-moss:       #4A5F3D;
    --accent-moss-soft:  #6B8359;

    /* Borders */
    --border-soft:       #2A2C26;
    --border-strong:     #3C3F37;
    --border-accent:     #7E5E1F;
    --border-card:       #2F312A;

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  6rem;

    /* Dimensions */
    --container:        min(1200px, 100% - 3rem);
    --container-narrow: min(900px, 100% - 3rem);

    /* Radius — keep minimal, not generic-rounded */
    --r-sm: 2px;
    --r-md: 4px;
    --r-lg: 14px;
    --r-pill: 999px;

    /* Transitions */
    --t-fast:   150ms ease;
    --t-med:    250ms ease;
    --t-slow:   400ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.2rem; font-weight: 500; }
h5 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
     letter-spacing: 0.12em; color: var(--accent-brand-soft);
     font-family: 'Bricolage Grotesque', sans-serif; }

p { color: var(--text-secondary); }
.lead { font-size: 1.15rem; color: var(--text-primary); line-height: 1.5; }

a { color: var(--accent-brand-soft); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-gold-soft); }

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88em;
    background: var(--bg-deep-shadow);
    color: var(--accent-gold-soft);
    padding: 1px 6px;
    border-radius: var(--r-sm);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.85em 1.6em;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--t-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-brand);
    color: var(--text-primary);
    border-color: var(--accent-brand);
    box-shadow: 0 1px 0 var(--accent-brand-deep), 0 12px 32px -10px var(--accent-brand-glow);
}
.btn-primary:hover {
    background: var(--accent-brand-soft);
    border-color: var(--accent-brand-soft);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 1px 0 var(--accent-brand-deep), 0 16px 40px -10px var(--accent-brand-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    border-color: var(--accent-gold-soft);
    color: var(--accent-gold-soft);
}

.btn-arrow::after {
    content: '→';
    font-family: 'JetBrains Mono', monospace;
    transition: transform var(--t-fast);
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ============================================================================
   HEADER (sticky + thin announcement bar)
   ============================================================================ */

.announce {
    background: linear-gradient(90deg, var(--bg-deep-shadow), var(--bg-mid), var(--bg-deep-shadow));
    border-bottom: 1px solid var(--border-soft);
    text-align: center;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}
.announce strong { color: var(--accent-gold-soft); font-weight: 500; }
.announce a { color: var(--text-primary); border-bottom: 1px dotted var(--accent-brand-soft); }
.announce a:hover { color: var(--accent-gold-soft); border-color: var(--accent-gold-soft); }

.site-header {
    position: sticky;
    top: 0.75rem;
    z-index: 50;
    padding: 0 1rem;
    background: transparent;
    border-bottom: none;
}

.site-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: rgba(22, 24, 20, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-pill);
    padding: 0.5rem 0.6rem 0.5rem 1.5rem;
    box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.75);
}

.brand {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
}

.brand-mark {
    color: var(--accent-brand-soft);
    font-style: italic;
    font-size: 1.3em;
}

.nav-primary {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.nav-primary a {
    padding: 0.5em 0.95em;
    font-size: 0.92rem;
    color: var(--text-secondary);
    border-radius: var(--r-pill);
    transition: all var(--t-fast);
}
.nav-primary a:hover { color: var(--text-primary); background: var(--bg-surface); }
.nav-primary a.current {
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
}

.nav-cta { margin-left: 0.75rem; }
.nav-cta .btn {
    padding: 0.55em 1.2em;
    font-size: 0.88rem;
    border-radius: var(--r-pill);
    /* no fill at rest — the filled gold pill was unreadable in the nav */
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text-primary);
    box-shadow: none;
}
.nav-cta .btn:hover {
    background: var(--accent-brand);
    border-color: var(--accent-brand);
    color: var(--bg-deep-shadow);
    transform: none;
}

/* ============================================================================
   HERO
   ============================================================================ */

.hero {
    position: relative;
    padding: 6.5rem 0 4.5rem;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid var(--border-soft);
    background:
        radial-gradient(58% 42% at 50% -14%, rgba(181, 138, 46, 0.34), rgba(181, 138, 46, 0.10) 55%, transparent 75%),
        radial-gradient(34% 22% at 50% -6%, rgba(201, 162, 78, 0.14), transparent 70%),
        var(--bg-base);
}
/* the horizon arc — a thin lit rim, like a planet edge above the title */
.hero::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -34vw;
    width: 120vw;
    height: 44vw;
    transform: translateX(-50%);
    border-radius: 50%;
    border-bottom: 1px solid rgba(201, 162, 78, 0.35);
    box-shadow: 0 26px 90px -18px rgba(181, 138, 46, 0.5);
    pointer-events: none;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(60, 63, 55, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 63, 55, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4em 0.85em;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.hero-tag .dot {
    width: 7px; height: 7px;
    background: var(--accent-moss-soft);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-moss-soft);
}
.hero-tag strong { color: var(--text-primary); font-weight: 500; }

.hero-title {
    font-size: clamp(2.5rem, 6.5vw, 5rem);
    line-height: 1.05;
    margin: 0 auto 1.5rem;
    max-width: 18ch;
}
.hero-title em {
    font-style: italic;
    color: var(--accent-brand-soft);
    font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 60ch;
    margin: 0 auto 2.25rem;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.hero-cta-row .btn { border-radius: var(--r-pill); }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    background: var(--bg-surface);
    overflow: hidden;
}
.hero-stat {
    padding: 1.5rem;
    border-right: 1px solid var(--border-soft);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.65rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
}
.hero-stat-num .unit {
    font-size: 0.7em;
    color: var(--text-tertiary);
}
.hero-stat-label {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================================================
   SECTION SHELL (variations applied per section)
   ============================================================================ */

.section {
    padding: var(--space-xl) 0;
}
.section-inner {
    max-width: var(--container);
    margin: 0 auto;
}
.section-inner-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.section-alt { background: var(--bg-mid); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-deep { background: var(--bg-deep-shadow); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.section-head {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.section-head h2 { margin-bottom: 1rem; }
.section-head p { font-size: 1.1rem; }

.eyebrow {
    display: inline-block;
    padding: 0.25em 0.8em;
    background: var(--accent-brand-glow);
    color: var(--accent-brand-soft);
    border: 1px solid var(--accent-brand-deep);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
}

/* ============================================================================
   FEATURE CARDS GRID (3-up)
   ============================================================================ */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    padding: 2.25rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--r-md);
    transition: all var(--t-med);
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-brand), transparent);
    opacity: 0;
    transition: opacity var(--t-med);
}
.feature-card:hover {
    border-color: var(--accent-brand-deep);
    transform: translateY(-2px);
    background: var(--bg-elevated);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--accent-brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-brand-glow);
    border: 1px solid var(--accent-brand-deep);
    border-radius: var(--r-md);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.feature-card p {
    margin-bottom: 1.25rem;
    font-size: 0.97rem;
    color: var(--text-secondary);
}
.feature-card .feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    color: var(--accent-gold-soft);
    font-weight: 500;
    font-size: 0.92rem;
}
.feature-card .feature-link::after { content: '→'; transition: transform var(--t-fast); }
.feature-card:hover .feature-link::after { transform: translateX(3px); }

/* ============================================================================
   SPLIT SECTION (text + visual)
   ============================================================================ */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
}
.split-reverse .split-text { order: 2; }
.split-reverse .split-visual { order: 1; }

.split-text h2 { margin-bottom: 1.25rem; }
.split-text p { font-size: 1.05rem; margin-bottom: 1rem; }
.split-text ul { margin: 1.5rem 0; padding-left: 0; list-style: none; }
.split-text li {
    padding: 0.6rem 0 0.6rem 1.5rem;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px dashed var(--border-soft);
}
.split-text li:last-child { border-bottom: none; }
.split-text li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--accent-brand-soft);
    font-size: 0.85em;
    top: 0.85rem;
}
.split-text li strong { color: var(--text-primary); }

.split-visual {
    position: relative;
    padding: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.split-visual svg { width: 100%; height: auto; max-width: 480px; }

/* ============================================================================
   ARCHITECTURE STACK — interactive layer cards
   ============================================================================ */

.stack-grid {
    display: grid;
    gap: 0.75rem;
}
.stack-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.4rem 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--r-md);
    transition: all var(--t-fast);
    cursor: pointer;
}
.stack-card:hover {
    border-color: var(--accent-brand-deep);
    background: var(--bg-elevated);
    transform: translateX(4px);
}
.stack-num {
    font-family: 'Fraunces', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--accent-brand-soft);
    line-height: 1;
    font-variation-settings: "opsz" 144;
}
.stack-content h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}
.stack-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.93rem;
}
.stack-tag-pill {
    padding: 0.3rem 0.7rem;
    background: var(--bg-deep-shadow);
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================================
   STATS BANNER (full-width strip)
   ============================================================================ */

.stats-banner {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(181, 138, 46, 0.12), transparent 60%),
        var(--bg-deep-shadow);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 4rem 0;
}
.stats-banner-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
    text-align: center;
}
.stat-block .num {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--accent-gold-soft);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-variation-settings: "opsz" 144, "SOFT" 50;
}
.stat-block .num .small { font-size: 0.5em; color: var(--text-secondary); }
.stat-block .lbl {
    color: var(--text-secondary);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
}

/* ============================================================================
   REPLICA TIER COMPARISON (3 distinct cards)
   ============================================================================ */

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tier {
    padding: 2.25rem 1.75rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all var(--t-med);
}
.tier::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--accent-brand);
}
.tier-shadow::before { background: var(--accent-gold); }
.tier-mobile::before { background: var(--accent-moss); }

.tier:hover {
    transform: translateY(-3px);
    border-color: var(--accent-brand-deep);
}
.tier-shadow:hover { border-color: var(--accent-gold); }
.tier-mobile:hover { border-color: var(--accent-moss-soft); }

.tier-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-soft);
}
.tier-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-brand-soft);
    margin-bottom: 0.4rem;
}
.tier-shadow .tier-eyebrow { color: var(--accent-gold-soft); }
.tier-mobile .tier-eyebrow { color: var(--accent-moss-soft); }
.tier-header h3 { font-size: 1.6rem; }

.tier-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--border-soft);
    font-size: 0.92rem;
}
.tier-stat-row:last-of-type { border-bottom: none; }
.tier-stat-key { color: var(--text-tertiary); }
.tier-stat-val {
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.tier-desc {
    margin-top: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ============================================================================
   PROCESS FLOW (adjudication steps)
   ============================================================================ */

.flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
}

.flow-step {
    padding: 1.75rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--r-md);
    position: relative;
    transition: all var(--t-fast);
}
.flow-step:hover {
    border-color: var(--accent-brand-deep);
    background: var(--bg-elevated);
}

.flow-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent-brand-glow);
    border: 1px solid var(--accent-brand);
    border-radius: 50%;
    color: var(--accent-brand-soft);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.flow-step h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.flow-step p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ============================================================================
   ACCORDION (expanders)
   ============================================================================ */

.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 3rem;
}

.accordion-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color var(--t-fast);
}
.accordion-item:hover { border-color: var(--border-strong); }
.accordion-item.open { border-color: var(--accent-brand-deep); }

.accordion-trigger {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.4rem 1.75rem;
    cursor: pointer;
    color: var(--text-primary);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    transition: color var(--t-fast);
}
.accordion-trigger:hover { color: var(--accent-gold-soft); }

.accordion-trigger .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-brand-soft);
    transition: transform var(--t-med);
}
.accordion-item.open .accordion-trigger .icon { transform: rotate(45deg); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-slow);
}
.accordion-content-inner {
    padding: 0 1.75rem 1.6rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.accordion-content-inner p { margin-bottom: 0.8rem; }
.accordion-content-inner p:last-child { margin-bottom: 0; }
.accordion-content-inner strong { color: var(--text-primary); }

/* ============================================================================
   CTA BLOCK (full-width)
   ============================================================================ */

.cta {
    padding: 5rem 0;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(181, 138, 46, 0.18), transparent 60%),
        var(--bg-deep-shadow);
    border-top: 1px solid var(--border-soft);
    text-align: center;
}
.cta-inner {
    max-width: var(--container-narrow);
    margin: 0 auto;
}
.cta h2 { margin-bottom: 1.25rem; }
.cta p { font-size: 1.1rem; margin-bottom: 2.5rem; }
.cta-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============================================================================
   DOC CARDS (used on /docs)
   ============================================================================ */

.doc-grid {
    display: grid;
    gap: 1.25rem;
}
.doc-card {
    padding: 1.75rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--r-md);
    transition: all var(--t-fast);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}
.doc-card:hover {
    border-color: var(--accent-brand-deep);
    background: var(--bg-elevated);
}
.doc-card-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.4rem;
    transition: color var(--t-fast);
    font-variation-settings: "opsz" 36, "SOFT" 30, "WONK" 1;
}
.doc-card:hover .doc-card-title { color: var(--accent-brand-soft); }
.doc-card-meta {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-tertiary);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.7rem;
}
.doc-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}
.doc-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-deep-shadow);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    color: var(--accent-brand-soft);
    transition: all var(--t-fast);
}
.doc-card:hover .doc-card-action {
    background: var(--accent-brand);
    color: var(--text-primary);
    border-color: var(--accent-brand);
}

/* ============================================================================
   PAGE HEADER (sub-pages)
   ============================================================================ */

.page-header {
    padding: 5rem 0 4rem;
    background:
        radial-gradient(ellipse at 80% 30%, rgba(181, 138, 46, 0.05), transparent 60%),
        var(--bg-base);
    border-bottom: 1px solid var(--border-soft);
    text-align: center;
}
.page-header h1 { margin-bottom: 1rem; max-width: 18ch; margin-left: auto; margin-right: auto; }
.page-header .lead { max-width: 64ch; margin: 0 auto; color: var(--text-secondary); }

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
    background: var(--bg-deep-shadow);
    border-top: 1px solid var(--border-soft);
    padding: 4rem 0 2rem;
    color: var(--text-tertiary);
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-soft);
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    max-width: 32ch;
}
.footer-col h5 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
    color: var(--text-tertiary);
    font-size: 0.92rem;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    max-width: var(--container);
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: var(--text-faint);
    font-size: 0.82rem;
}
.footer-bottom .mark {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--text-tertiary);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 900px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .hero-stat:nth-child(2) { border-right: none; }
    .hero-stat:nth-child(1), .hero-stat:nth-child(2) { border-bottom: 1px solid var(--border-soft); }
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .split-reverse .split-text { order: 0; }
    .split-reverse .split-visual { order: 0; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .nav-primary { display: none; }
}
@media (max-width: 600px) {
    .hero { padding: 4rem 0 3rem; }
    .section { padding: 3.5rem 0; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* Selection */
::selection { background: var(--accent-brand); color: var(--text-primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border: 2px solid var(--bg-base); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-brand-deep); }

/* ============================================================
   Motion layer (added 2026-06-28)
   Scroll-reveal, SVG draw-in, ambient pulses. Gated on
   prefers-reduced-motion AND on html.anim (added by script.js
   only when JS is on + motion allowed) — so no-JS and
   reduce-motion users get the full static site untouched.
   Reveal uses `animation` (not transition) so the existing
   component hover transitions are preserved; `.shown` clears
   the animation after it plays so hover transforms work again.
   ============================================================ */
.hero-scene .trunk, .hero-scene .trunk2 { stroke: #A88237; }
.hero-scene .beam { fill: #E8C97A; opacity: 0; }
.hero-scene .flow-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.16em;
    fill: var(--accent-gold-soft);
    opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html.anim :is(.hero-tag,.hero-title,.hero-sub,.hero-cta-row,.hero-stats,.section-head,.feature-card,.stack-card,.stat-block,.tier,.flow-step,.split-text,.split-visual,.doc-card,.doc-featured,.jump-card,.accordion-item,.pull-highlight,.cta-inner) {
    opacity: 0;
  }
  html.anim :is(.hero-tag,.hero-title,.hero-sub,.hero-cta-row,.hero-stats,.section-head,.feature-card,.stack-card,.stat-block,.tier,.flow-step,.split-text,.split-visual,.doc-card,.doc-featured,.jump-card,.accordion-item,.pull-highlight,.cta-inner).is-in {
    animation: ns-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) var(--rev-d, 0ms) both;
  }
  html.anim .shown { opacity: 1 !important; animation: none !important; }

  @keyframes ns-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Hero status dot — gentle breathing */
  html.anim .hero-tag .dot { animation: ns-breathe 2.6s ease-in-out infinite; }
  @keyframes ns-breathe {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-moss-soft); opacity: 1; }
    50%      { box-shadow: 0 0 11px 2px var(--accent-moss-soft); opacity: 0.5; }
  }

  /* Composition-graph value dots — staggered twinkle once their panel is in view */
  html.anim .ns-pulse-dot { opacity: 0; }
  html.anim .split-visual.is-in .ns-pulse-dot { animation: ns-twinkle 2.4s ease-in-out infinite; }
  html.anim .split-visual.is-in .ns-pulse-dot:nth-child(2) { animation-delay: 0.5s; }
  html.anim .split-visual.is-in .ns-pulse-dot:nth-child(3) { animation-delay: 1s; }
  html.anim .split-visual.is-in .ns-pulse-dot:nth-child(4) { animation-delay: 1.5s; }
  @keyframes ns-twinkle { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
}

/* ============================================================
   2026-07-09 redesign layer — bento grids, placeholders,
   quote band, CTA duo, mega footer. Reference: dark Web3
   landing (floating pill nav, centered glow hero, bento
   stats, card walls). Palette + type unchanged.
   ============================================================ */

/* ---- small pills / chips ---- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45em 1.1em;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.pill strong { color: var(--text-primary); font-weight: 500; }
.pill .venue { color: #97FCE4; font-weight: 500; } /* Hyperliquid mint green */

/* ---- asset placeholder (until the real renders exist) ---- */
.ph {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background:
        radial-gradient(70% 90% at 50% 0%, rgba(181, 138, 46, 0.16), transparent 65%),
        linear-gradient(160deg, var(--bg-elevated), var(--bg-deep-shadow));
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-lg);
    overflow: hidden;
    min-height: 220px;
}
.ph::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(60, 63, 55, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 63, 55, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    pointer-events: none;
}
.ph .ph-mark {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 3.2rem;
    color: var(--accent-brand-soft);
    text-shadow: 0 0 40px var(--accent-brand-glow);
    line-height: 1;
}
.ph .ph-note {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.hero-visual {
    max-width: min(920px, 100%);
    margin: 3.5rem auto 0;
    min-height: clamp(220px, 34vw, 340px);
    box-shadow: 0 40px 120px -40px rgba(181, 138, 46, 0.35);
}

/* ---- bento grid ---- */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.1rem;
}
.bento-card {
    grid-column: span 2;
    padding: 1.9rem 1.8rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--r-lg);
    transition: all var(--t-med);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.bento-card:hover { border-color: var(--accent-brand-deep); background: var(--bg-elevated); transform: translateY(-2px); }
.bento-3 { grid-column: span 3; }
.bento-4 { grid-column: span 4; }
.bento-6 { grid-column: span 6; }
.bento-tall { grid-row: span 2; }
.bento-card h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text-primary);
}
.bento-card p { font-size: 0.93rem; color: var(--text-secondary); margin: 0; }
.bento-card .mini-link { margin-top: auto; padding-top: 0.9rem; font-size: 0.88rem; color: var(--accent-gold-soft); font-weight: 500; }
.bento-card .mini-link::after { content: ' →'; }
.bento-accent {
    background:
        radial-gradient(120% 130% at 15% 0%, var(--accent-brand) 0%, var(--accent-brand-deep) 45%, #3A2C0F 100%);
    border-color: var(--accent-brand-deep);
}
.bento-accent h3, .bento-accent .big-num { color: var(--text-primary); }
.bento-accent p { color: rgba(236, 230, 214, 0.75); }
.bento-accent:hover { background: radial-gradient(120% 130% at 15% 0%, var(--accent-brand-soft) 0%, var(--accent-brand) 45%, #4A3813 100%); }
.bento-gold {
    background: radial-gradient(120% 130% at 15% 0%, rgba(181, 138, 46, 0.35) 0%, rgba(181, 138, 46, 0.12) 50%, var(--bg-surface) 100%);
    border-color: rgba(181, 138, 46, 0.4);
}
.big-num {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.6rem, 4.5vw, 3.6rem);
    font-weight: 300;
    line-height: 1;
    color: var(--accent-gold-soft);
    font-variation-settings: "opsz" 144, "SOFT" 50;
}
.bento-card .num-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-top: 0.35rem;
}
.bento-card .ph { min-height: 150px; flex: 1; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.chip {
    padding: 0.3em 0.85em;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-pill);
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-deep-shadow);
}

/* ---- compact card wall (pillars) ---- */
.wall {
    columns: 3;
    column-gap: 1.1rem;
}
.wall-card {
    break-inside: avoid;
    margin-bottom: 1.1rem;
    padding: 1.6rem 1.6rem 1.4rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--r-lg);
    transition: border-color var(--t-fast);
}
.wall-card:hover { border-color: var(--accent-brand-deep); }
.wall-card h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.wall-card h3 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-brand-soft); flex-shrink: 0; }
.wall-card.gold h3 .dot { background: var(--accent-gold-soft); }
.wall-card.moss h3 .dot { background: var(--accent-moss-soft); }
.wall-card p { font-size: 0.92rem; color: var(--text-secondary); margin: 0 0 0.5rem; }
.wall-card .fine { font-size: 0.8rem; color: var(--text-tertiary); }
.wall-card a { font-size: 0.88rem; font-weight: 500; color: var(--accent-gold-soft); }

/* ---- quote band (the privacy statement / honesty) ---- */
.quote-band {
    padding: 5.5rem 0;
    text-align: center;
    background:
        radial-gradient(60% 80% at 50% 120%, rgba(181, 138, 46, 0.14), transparent 65%),
        var(--bg-deep-shadow);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}
.quote-band blockquote {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    font-weight: 300;
    line-height: 1.3;
    color: var(--text-primary);
    max-width: 28ch;
    margin: 0 auto 1.5rem;
    font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
}
.quote-band blockquote em { color: var(--accent-brand-soft); font-style: italic; }
.quote-band .fine {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    max-width: 62ch;
    margin: 0 auto;
}

/* ---- CTA duo (traders / developers) ---- */
.cta-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.duo-card {
    padding: 2.75rem 2.5rem;
    border-radius: var(--r-lg);
    background: linear-gradient(165deg, var(--bg-elevated), var(--bg-deep-shadow));
    border: 1px solid var(--border-strong);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transition: all var(--t-med);
    position: relative;
    overflow: hidden;
}
.duo-card:hover { border-color: var(--accent-brand-deep); transform: translateY(-3px); }
.duo-card h3 { font-size: 1.7rem; }
.duo-card p { font-size: 0.98rem; }
.duo-card .btn { margin-top: auto; border-radius: var(--r-pill); }
.duo-card .ph { width: 100%; min-height: 140px; }
.duo-card code { font-size: 0.85rem; }

/* ---- mega wordmark footer ---- */
.mega-mark {
    overflow: hidden;
    padding: 2rem 0 0;
    background: var(--bg-deep-shadow);
}
.mega-mark .word {
    display: block;
    text-align: center;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(5rem, 21vw, 19rem);
    line-height: 0.78;
    letter-spacing: -0.02em;
    margin-bottom: -0.09em;
    background: linear-gradient(180deg, rgba(181, 138, 46, 0.55) 0%, rgba(181, 138, 46, 0.16) 55%, transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
    font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}

/* ---- redesign responsive ---- */
@media (max-width: 900px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-card, .bento-3, .bento-4, .bento-6 { grid-column: span 2; }
    .wall { columns: 1; }
    .cta-duo { grid-template-columns: 1fr; }
    .site-header { top: 0.5rem; padding: 0 0.75rem; }
}

/* ---- the Khorr logo (added 2026-07-09) ---- */
.brand-logo {
    height: 1.5em;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(181, 138, 46, 0.35));
}
.ph .ph-logo {
    height: 72px;
    width: auto;
    filter: drop-shadow(0 0 26px rgba(181, 138, 46, 0.45));
}

/* ---- mobile nav (hamburger, added 2026-07-09) ---- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-pill);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--t-med), opacity var(--t-med);
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-primary {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.75rem;
        background: var(--bg-elevated);
        border: 1px solid var(--border-strong);
        border-radius: var(--r-lg);
        box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
        z-index: 60;
    }
    .site-header.nav-open .nav-primary { display: flex; }
    .nav-primary a { padding: 0.75em 1em; border-radius: var(--r-md); }
    .nav-cta { margin-left: 0; margin-top: 0.25rem; }
    .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Hero scene (2026-07-10, continuous-loop rework) —
   INTRO (5s, plays once, holds): the lattice draws in.
   LOOP (12s, infinite, 5s delay, NO fades): request beams out,
   results home, camera pans down to HYPERLIQUID, TRADE lands,
   FILLED pulse, then a PROFIT beam rides back up the thread as
   the camera returns to the lattice — and the next request
   round begins. Reduced-motion: static lattice.
   ============================================================ */
.hero-scene {
    max-width: min(920px, 100%);
    margin: 3.5rem auto 0;
    background:
        radial-gradient(80% 100% at 50% 0%, rgba(181, 138, 46, 0.08), transparent 65%),
        var(--bg-deep-shadow);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 40px 120px -40px rgba(181, 138, 46, 0.35);
}
.hero-scene svg { display: block; width: 100%; height: auto; }
.hero-scene .thread { fill: none; stroke: url(#threadGold); stroke-width: 2; stroke-linecap: round; }
.hero-scene .thread.trunk, .hero-scene .thread.trunk2, .hero-scene .thread.thread-hl { stroke: #A88237; }
.hero-scene .node { fill: #C9A24E; }
.hero-scene .node-halo { fill: none; stroke: rgba(201, 162, 78, 0.35); stroke-width: 1; }
.hero-scene .node-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.14em;
    fill: var(--text-tertiary);
}
.hero-scene .khorr-label { fill: var(--accent-gold-soft); font-size: 15px; }
.hero-scene .label-sub { fill: var(--text-faint); letter-spacing: 0.2em; }
.hero-scene .beam { fill: #E8C97A; opacity: 0; }
.hero-scene .flow-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.16em;
    fill: var(--accent-gold-soft);
    opacity: 0;
}
.hero-scene .hl-node { fill: #97FCE4; }
.hero-scene .hl-halo { fill: none; stroke: rgba(151, 252, 228, 0.4); stroke-width: 1; }
.hero-scene .hl-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    letter-spacing: 0.18em;
    fill: #97FCE4;
}
.hero-scene .filled-label { fill: #97FCE4; }
.hero-scene .fill-ring, .hero-scene .profit-ring {
    fill: none;
    stroke-width: 1.5;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}
.hero-scene .fill-ring { stroke: #97FCE4; }
.hero-scene .profit-ring { stroke: #E8C97A; }

@media (prefers-reduced-motion: no-preference) {
    .hero-scene .thread { stroke-dasharray: 1; stroke-dashoffset: 1; }
    .hero-scene .node-group { opacity: 0; }
    .hero-scene .glow-0 { animation: s0-n0 5s linear 1 forwards; }
    .hero-scene .trunk { animation: s0-trunk 5s linear 1 forwards; }
    .hero-scene .glow-k { animation: s0-nk 5s linear 1 forwards; }
    .hero-scene .trunk2 { animation: s0-trunk2 5s linear 1 forwards; }
    .hero-scene .branch-1 { animation: s0-b1 5s linear 1 forwards; }
    .hero-scene .glow-1 { animation: s0-n1 5s linear 1 forwards; }
    .hero-scene .branch-2 { animation: s0-b2 5s linear 1 forwards; }
    .hero-scene .glow-2 { animation: s0-n2 5s linear 1 forwards; }
    .hero-scene .branch-3 { animation: s0-b3 5s linear 1 forwards; }
    .hero-scene .glow-3 { animation: s0-n3 5s linear 1 forwards; }
    .hero-scene .branch-4 { animation: s0-b4 5s linear 1 forwards; }
    .hero-scene .glow-4 { animation: s0-n4 5s linear 1 forwards; }
    .hero-scene .branch-5 { animation: s0-b5 5s linear 1 forwards; }
    .hero-scene .glow-5 { animation: s0-n5 5s linear 1 forwards; }
    .hero-scene .beam-trunk { animation: sL-btrunk 12s linear 5s infinite; }
    .hero-scene .beam-1 { animation: sL-beam1 12s linear 5s infinite; }
    .hero-scene .beam-2 { animation: sL-beam2 12s linear 5s infinite; }
    .hero-scene .beam-3 { animation: sL-beam3 12s linear 5s infinite; }
    .hero-scene .beam-4 { animation: sL-beam4 12s linear 5s infinite; }
    .hero-scene .beam-5 { animation: sL-beam5 12s linear 5s infinite; }
    .hero-scene .beam-home { animation: sL-bhome 12s linear 5s infinite; }
    .hero-scene .req-label { animation: sL-req 12s linear 5s infinite; }
    .hero-scene .res-label { animation: sL-res 12s linear 5s infinite; }
    .hero-scene .world { animation: sL-world 12s linear 5s infinite; }
    .hero-scene .thread-hl { animation: sL-thread 12s linear 5s infinite; }
    .hero-scene .glow-hl { animation: sL-hl 12s linear 5s infinite; }
    .hero-scene .beam-order { animation: sL-order 12s linear 5s infinite; }
    .hero-scene .trade-label { animation: sL-trade 12s linear 5s infinite; }
    .hero-scene .fill-ring { animation: sL-ring 12s linear 5s infinite; }
    .hero-scene .filled-label { animation: sL-filled 12s linear 5s infinite; }
    .hero-scene .beam-profit { animation: sL-profit 12s linear 5s infinite; }
    .hero-scene .profit-label { animation: sL-profitlbl 12s linear 5s infinite; }
    .hero-scene .profit-ring { animation: sL-pring 12s linear 5s infinite; }

    @keyframes s0-n0 { 0%, 0.01% { opacity: 0; } 10% { opacity: 1; } 100% { opacity: 1; } }
    @keyframes s0-trunk {
        0%, 8% { stroke-dashoffset: 1; }
        28% { stroke-dashoffset: 0; }
        100% { stroke-dashoffset: 0; }
    }
    @keyframes s0-nk { 0%, 26% { opacity: 0; } 36% { opacity: 1; } 100% { opacity: 1; } }
    @keyframes s0-trunk2 {
        0%, 34% { stroke-dashoffset: 1; }
        48% { stroke-dashoffset: 0; }
        100% { stroke-dashoffset: 0; }
    }
    @keyframes s0-b1 {
        0%, 46% { stroke-dashoffset: 1; }
        66% { stroke-dashoffset: 0; }
        100% { stroke-dashoffset: 0; }
    }
    @keyframes s0-n1 { 0%, 62% { opacity: 0; } 72% { opacity: 1; } 100% { opacity: 1; } }
    @keyframes s0-b2 {
        0%, 52% { stroke-dashoffset: 1; }
        72% { stroke-dashoffset: 0; }
        100% { stroke-dashoffset: 0; }
    }
    @keyframes s0-n2 { 0%, 68% { opacity: 0; } 78% { opacity: 1; } 100% { opacity: 1; } }
    @keyframes s0-b3 {
        0%, 58% { stroke-dashoffset: 1; }
        78% { stroke-dashoffset: 0; }
        100% { stroke-dashoffset: 0; }
    }
    @keyframes s0-n3 { 0%, 74% { opacity: 0; } 84% { opacity: 1; } 100% { opacity: 1; } }
    @keyframes s0-b4 {
        0%, 64% { stroke-dashoffset: 1; }
        84% { stroke-dashoffset: 0; }
        100% { stroke-dashoffset: 0; }
    }
    @keyframes s0-n4 { 0%, 80% { opacity: 0; } 90% { opacity: 1; } 100% { opacity: 1; } }
    @keyframes s0-b5 {
        0%, 70% { stroke-dashoffset: 1; }
        90% { stroke-dashoffset: 0; }
        100% { stroke-dashoffset: 0; }
    }
    @keyframes s0-n5 { 0%, 86% { opacity: 0; } 96% { opacity: 1; } 100% { opacity: 1; } }
    @keyframes sL-btrunk {
        0%, 2% { offset-distance: 0%; opacity: 0; }
        2.5% { opacity: 1; }
        5.5% { opacity: 1; }
        6% { offset-distance: 100%; opacity: 0; }
        100% { offset-distance: 100%; opacity: 0; }
    }
    @keyframes sL-beam1 {
        0%, 6.0% { offset-distance: 0%; opacity: 0; }
        6.4% { opacity: 1; }
        13.6% { opacity: 1; }
        14.0% { offset-distance: 100%; opacity: 0; }
        22.0% { offset-distance: 100%; opacity: 0; }
        22.4% { opacity: 1; }
        29.6% { opacity: 1; }
        30.0% { offset-distance: 0%; opacity: 0; }
        100% { offset-distance: 0%; opacity: 0; }
    }
    @keyframes sL-beam2 {
        0%, 6.8% { offset-distance: 0%; opacity: 0; }
        7.2% { opacity: 1; }
        14.4% { opacity: 1; }
        14.8% { offset-distance: 100%; opacity: 0; }
        22.8% { offset-distance: 100%; opacity: 0; }
        23.2% { opacity: 1; }
        30.4% { opacity: 1; }
        30.8% { offset-distance: 0%; opacity: 0; }
        100% { offset-distance: 0%; opacity: 0; }
    }
    @keyframes sL-beam3 {
        0%, 7.6% { offset-distance: 0%; opacity: 0; }
        8.0% { opacity: 1; }
        15.2% { opacity: 1; }
        15.6% { offset-distance: 100%; opacity: 0; }
        23.6% { offset-distance: 100%; opacity: 0; }
        24.0% { opacity: 1; }
        31.2% { opacity: 1; }
        31.6% { offset-distance: 0%; opacity: 0; }
        100% { offset-distance: 0%; opacity: 0; }
    }
    @keyframes sL-beam4 {
        0%, 8.4% { offset-distance: 0%; opacity: 0; }
        8.8% { opacity: 1; }
        16.0% { opacity: 1; }
        16.4% { offset-distance: 100%; opacity: 0; }
        24.4% { offset-distance: 100%; opacity: 0; }
        24.8% { opacity: 1; }
        32.0% { opacity: 1; }
        32.4% { offset-distance: 0%; opacity: 0; }
        100% { offset-distance: 0%; opacity: 0; }
    }
    @keyframes sL-beam5 {
        0%, 9.2% { offset-distance: 0%; opacity: 0; }
        9.6% { opacity: 1; }
        16.8% { opacity: 1; }
        17.2% { offset-distance: 100%; opacity: 0; }
        25.2% { offset-distance: 100%; opacity: 0; }
        25.6% { opacity: 1; }
        32.8% { opacity: 1; }
        33.2% { offset-distance: 0%; opacity: 0; }
        100% { offset-distance: 0%; opacity: 0; }
    }
    @keyframes sL-bhome {
        0%, 34% { offset-distance: 0%; opacity: 0; }
        34.5% { opacity: 1; }
        37.5% { opacity: 1; }
        38% { offset-distance: 100%; opacity: 0; }
        100% { offset-distance: 100%; opacity: 0; }
    }
    @keyframes sL-req { 0%, 5% { opacity: 0; } 7% { opacity: 1; } 17% { opacity: 1; } 19%, 100% { opacity: 0; } }
    @keyframes sL-res { 0%, 21% { opacity: 0; } 23% { opacity: 1; } 31% { opacity: 1; } 33%, 100% { opacity: 0; } }
    @keyframes sL-world {
        0%, 40% { transform: translateY(0); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
        50% { transform: translateY(-420px); }
        80% { transform: translateY(-420px); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
        94% { transform: translateY(0); }
        100% { transform: translateY(0); }
    }
    @keyframes sL-thread {
        0%, 40% { stroke-dashoffset: 1; opacity: 1; }
        49% { stroke-dashoffset: 0; }
        94% { stroke-dashoffset: 0; opacity: 1; }
        98%, 100% { stroke-dashoffset: 0; opacity: 0; }
    }
    @keyframes sL-hl { 0%, 47% { opacity: 0; } 51% { opacity: 1; } 100% { opacity: 1; } }
    @keyframes sL-order {
        0%, 51% { offset-distance: 0%; opacity: 0; }
        51.5% { opacity: 1; }
        70.5% { opacity: 1; }
        71% { offset-distance: 100%; opacity: 0; }
        100% { offset-distance: 100%; opacity: 0; }
    }
    @keyframes sL-trade { 0%, 50% { opacity: 0; } 52% { opacity: 1; } 69% { opacity: 1; } 72%, 100% { opacity: 0; } }
    @keyframes sL-ring {
        0%, 71% { transform: scale(1); opacity: 0; }
        72% { opacity: 0.8; }
        77% { transform: scale(3.2); opacity: 0; }
        100% { transform: scale(3.2); opacity: 0; }
    }
    @keyframes sL-filled { 0%, 71.5% { opacity: 0; } 73.5% { opacity: 1; } 96% { opacity: 1; } 99%, 100% { opacity: 0; } }
    @keyframes sL-profit {
        0%, 74% { offset-distance: 0%; opacity: 0; }
        74.5% { opacity: 1; }
        93.5% { opacity: 1; }
        94% { offset-distance: 100%; opacity: 0; }
        100% { offset-distance: 100%; opacity: 0; }
    }
    @keyframes sL-profitlbl { 0%, 73% { opacity: 0; } 75% { opacity: 1; } 90% { opacity: 1; } 93%, 100% { opacity: 0; } }
    @keyframes sL-pring {
        0%, 93.5% { transform: scale(1); opacity: 0; }
        94.6% { opacity: 0.8; }
        99.5% { transform: scale(3); opacity: 0; }
        100% { transform: scale(3); opacity: 0; }
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-scene .node-group { opacity: 1; }
    .hero-scene .glow-hl { opacity: 0; }
    .hero-scene .thread-hl { display: none; }
}


/* ============================================================
   Network scene (2026-07-10) — the specialists-bento render.
   One 14s loop acting out the accent card's promise:
   SEARCH (sweep finds three candidates) -> COMPARE (each is
   inspected; one chosen, others dim) -> PRIVATE SESSION (a
   sealed two-line channel with traffic) -> USDC (payment rides
   the channel; the agent confirms). The four keywords sit as a
   legend, each lighting during its phase. Pure CSS.
   ============================================================ */
.net-scene { padding: 0; overflow: hidden; }
.net-scene svg { display: block; width: 100%; height: 100%; min-height: 220px; }
.net-scene .net-node { fill: #C9A24E; }
.net-scene .net-halo { fill: none; stroke: rgba(201, 162, 78, 0.35); stroke-width: 1; }
.net-scene .net-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    fill: var(--text-tertiary);
}
.net-scene .net-ring, .net-scene .net-pulse, .net-scene .net-paid {
    fill: none; stroke: #C9A24E; stroke-width: 1; opacity: 0;
    transform-box: fill-box; transform-origin: center;
}
.net-scene .net-chosen { fill: none; stroke: var(--accent-gold-soft); stroke-width: 1.5; opacity: 0; }
.net-scene .net-chan { fill: none; stroke: #A88237; stroke-width: 1.5; stroke-linecap: round; }
.net-scene .net-beam { fill: #E8C97A; opacity: 0; }
.net-scene .net-coin { opacity: 0; }
.net-scene .net-coin circle { fill: var(--accent-gold-soft); }
.net-scene .net-coin text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    fill: var(--accent-gold-soft);
}
.net-scene .net-cap {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    fill: var(--text-secondary);
    opacity: 0;
}
.net-scene .net-flow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    fill: #E8C97A;
    opacity: 0;
}
.net-scene .nleg {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.16em;
    fill: var(--accent-gold-soft);
    opacity: 0.3;
}

@media (prefers-reduced-motion: no-preference) {
    .net-scene .ncand { opacity: 0; }
    .net-scene .net-chan { stroke-dasharray: 1; stroke-dashoffset: 1; }

    .net-scene .nring-1 { animation: n2-ring1 14s linear infinite; }
    .net-scene .nring-2 { animation: n2-ring2 14s linear infinite; }
    .net-scene .ncand-a { animation: n2-cand-a 14s linear infinite; }
    .net-scene .ncand-b { animation: n2-cand-b 14s linear infinite; }
    .net-scene .ncand-c { animation: n2-cand-c 14s linear infinite; }
    .net-scene .npulse-a { animation: n2-pulse-a 14s linear infinite; }
    .net-scene .npulse-b { animation: n2-pulse-b 14s linear infinite; }
    .net-scene .npulse-c { animation: n2-pulse-c 14s linear infinite; }
    .net-scene .net-chosen { animation: n2-chosen 14s linear infinite; }
    .net-scene .nchan-1 { animation: n2-chan 14s linear infinite; }
    .net-scene .nchan-2 { animation: n2-chan2 14s linear infinite; }
    .net-scene .nbeam-out { animation: n2-bout 14s linear infinite; }
    .net-scene .nbeam-in { animation: n2-bin 14s linear infinite; }
    .net-scene .net-coin { animation: n2-coin 14s linear infinite; }
    .net-scene .net-paid { animation: n2-paid 14s linear infinite; }
    .net-scene .ncap-search { animation: n2-cap-search 14s linear infinite; }
    .net-scene .ncap-compare { animation: n2-cap-compare 14s linear infinite; }
    .net-scene .nflow-req { animation: n2-flow-req 14s linear infinite; }
    .net-scene .nflow-res { animation: n2-flow-res 14s linear infinite; }
    .net-scene .nleg-search { animation: n2-leg-search 14s linear infinite; }
    .net-scene .nleg-compare { animation: n2-leg-compare 14s linear infinite; }
    .net-scene .nleg-session { animation: n2-leg-session 14s linear infinite; }
    .net-scene .nleg-usdc { animation: n2-leg-usdc 14s linear infinite; }

    /* SEARCH 0-25: sweep rings, candidates found */
    @keyframes n2-ring1 {
        0%, 2% { transform: scale(1); opacity: 0; }
        3% { opacity: 0.7; }
        14% { transform: scale(16); opacity: 0; }
        100% { transform: scale(16); opacity: 0; }
    }
    @keyframes n2-ring2 {
        0%, 8% { transform: scale(1); opacity: 0; }
        9% { opacity: 0.7; }
        20% { transform: scale(16); opacity: 0; }
        100% { transform: scale(16); opacity: 0; }
    }
    @keyframes n2-cand-a { 0%, 8%  { opacity: 0; } 12% { opacity: 1; } 44% { opacity: 1; } 48% { opacity: 0.35; } 95% { opacity: 0.35; } 99%, 100% { opacity: 0; } }
    @keyframes n2-cand-b { 0%, 12% { opacity: 0; } 16% { opacity: 1; } 95% { opacity: 1; } 99%, 100% { opacity: 0; } }
    @keyframes n2-cand-c { 0%, 16% { opacity: 0; } 20% { opacity: 1; } 44% { opacity: 1; } 48% { opacity: 0.35; } 95% { opacity: 0.35; } 99%, 100% { opacity: 0; } }

    /* COMPARE 25-50: inspect each, choose B */
    @keyframes n2-pulse-a { 0%, 26% { transform: scale(1); opacity: 0; } 27% { opacity: 0.8; } 31% { transform: scale(2.4); opacity: 0; } 100% { transform: scale(2.4); opacity: 0; } }
    @keyframes n2-pulse-b { 0%, 31% { transform: scale(1); opacity: 0; } 32% { opacity: 0.8; } 36% { transform: scale(2.4); opacity: 0; } 100% { transform: scale(2.4); opacity: 0; } }
    @keyframes n2-pulse-c { 0%, 36% { transform: scale(1); opacity: 0; } 37% { opacity: 0.8; } 41% { transform: scale(2.4); opacity: 0; } 100% { transform: scale(2.4); opacity: 0; } }
    @keyframes n2-chosen { 0%, 43% { opacity: 0; } 46% { opacity: 1; } 93% { opacity: 1; } 97%, 100% { opacity: 0; } }

    /* PRIVATE SESSION 50-75: the sealed channel + traffic */
    @keyframes n2-chan  { 0%, 50% { stroke-dashoffset: 1; opacity: 1; } 57% { stroke-dashoffset: 0; } 94% { stroke-dashoffset: 0; opacity: 1; } 98%, 100% { stroke-dashoffset: 0; opacity: 0; } }
    @keyframes n2-chan2 { 0%, 52% { stroke-dashoffset: 1; opacity: 1; } 59% { stroke-dashoffset: 0; } 94% { stroke-dashoffset: 0; opacity: 1; } 98%, 100% { stroke-dashoffset: 0; opacity: 0; } }
    @keyframes n2-bout {
        0%, 60% { offset-distance: 0%; opacity: 0; }
        61% { opacity: 1; }
        67% { opacity: 1; }
        68% { offset-distance: 100%; opacity: 0; }
        100% { offset-distance: 100%; opacity: 0; }
    }
    @keyframes n2-bin {
        0%, 65% { offset-distance: 0%; opacity: 0; }
        66% { opacity: 1; }
        72% { opacity: 1; }
        73% { offset-distance: 100%; opacity: 0; }
        100% { offset-distance: 100%; opacity: 0; }
    }

    /* USDC 75-100: payment rides the channel, agent confirms */
    @keyframes n2-coin {
        0%, 76% { offset-distance: 0%; opacity: 0; }
        77.5% { opacity: 1; }
        88.5% { opacity: 1; }
        90% { offset-distance: 100%; opacity: 0; }
        100% { offset-distance: 100%; opacity: 0; }
    }
    @keyframes n2-paid { 0%, 90% { transform: scale(1); opacity: 0; } 91% { opacity: 0.8; } 96% { transform: scale(2.6); opacity: 0; } 100% { transform: scale(2.6); opacity: 0; } }

    /* phase captions + traffic labels */
    @keyframes n2-cap-search  { 0%, 2% { opacity: 0; } 5% { opacity: 1; } 22% { opacity: 1; } 25%, 100% { opacity: 0; } }
    @keyframes n2-cap-compare { 0%, 27% { opacity: 0; } 30% { opacity: 1; } 46% { opacity: 1; } 49%, 100% { opacity: 0; } }
    @keyframes n2-flow-req { 0%, 59.5% { opacity: 0; } 61% { opacity: 1; } 67% { opacity: 1; } 68.5%, 100% { opacity: 0; } }
    @keyframes n2-flow-res { 0%, 64.5% { opacity: 0; } 66% { opacity: 1; } 72% { opacity: 1; } 73.5%, 100% { opacity: 0; } }

    /* the legend lights per phase */
    @keyframes n2-leg-search  { 0% { opacity: 0.3; } 2% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0.3; } 100% { opacity: 0.3; } }
    @keyframes n2-leg-compare { 0%, 25% { opacity: 0.3; } 29% { opacity: 1; } 50% { opacity: 1; } 54% { opacity: 0.3; } 100% { opacity: 0.3; } }
    @keyframes n2-leg-session { 0%, 50% { opacity: 0.3; } 54% { opacity: 1; } 75% { opacity: 1; } 79% { opacity: 0.3; } 100% { opacity: 0.3; } }
    @keyframes n2-leg-usdc    { 0%, 75% { opacity: 0.3; } 79% { opacity: 1; } 97% { opacity: 1; } 100% { opacity: 0.3; } }
}
@media (prefers-reduced-motion: reduce) {
    .net-scene .ncand { opacity: 1; }
    .net-scene .nleg { opacity: 0.7; }
}


/* ============================================================
   Take-part scene (2026-07-10) — the replica-economics render.
   One 14s loop: a new page lands on THE BOOK (a new epoch), the
   REPLICA signs it and earns tokens + fee share, the WATCHER
   verifies and earns from the pooled share, the PHONE taps to
   attest and earns points. Threads are static infrastructure;
   only work and rewards move. Pure CSS.
   ============================================================ */
.tp-scene { padding: 0; overflow: hidden; }
.tp-scene svg { display: block; width: 100%; height: 100%; min-height: 220px; }
.tp-scene .tp-book rect { fill: var(--bg-elevated); stroke: #A88237; stroke-width: 1; }
.tp-scene .tp-newpage { fill: rgba(201, 162, 78, 0.2); }
.tp-scene .tp-node { fill: #C9A24E; }
.tp-scene .tp-halo { fill: none; stroke: rgba(201, 162, 78, 0.35); stroke-width: 1; }
.tp-scene .tp-thread { fill: none; stroke: #A88237; stroke-width: 1.5; stroke-linecap: round; opacity: 0.5; }
.tp-scene .tp-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    fill: var(--text-tertiary);
}
.tp-scene .tp-sub { fill: var(--text-faint); font-size: 9px; letter-spacing: 0.16em; }
.tp-scene .tp-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    fill: var(--accent-gold-soft);
    opacity: 0;
}
.tp-scene .tp-beam { fill: #E8C97A; opacity: 0; }
.tp-scene .tp-flash {
    fill: none; stroke: #C9A24E; stroke-width: 1; opacity: 0;
    transform-box: fill-box; transform-origin: center;
}
.tp-scene .tp-cap {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    fill: var(--text-secondary);
    opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .tp-scene .tp-newpage { opacity: 0; }
    .tp-scene .tp-newpage { animation: p3-newpage 14s linear infinite; }
    .tp-scene .tp-flash { animation: p3-flash 14s linear infinite; }
    .tp-scene .tp-cap { animation: p3-cap 14s linear infinite; }
    .tp-scene .tp-sig-r { animation: p3-sig-r 14s linear infinite; }
    .tp-scene .tp-sig-w { animation: p3-sig-w 14s linear infinite; }
    .tp-scene .tp-sig-p { animation: p3-sig-p 14s linear infinite; }
    .tp-scene .tp-rew-r { animation: p3-rew-r 14s linear infinite; }
    .tp-scene .tp-rew-w { animation: p3-rew-w 14s linear infinite; }
    .tp-scene .tp-rew-p { animation: p3-rew-p 14s linear infinite; }
    .tp-scene .tp-tag-r { animation: p3-tag-r 14s linear infinite; }
    .tp-scene .tp-tag-w { animation: p3-tag-w 14s linear infinite; }
    .tp-scene .tp-tag-p { animation: p3-tag-p 14s linear infinite; }

    @keyframes p3-newpage { 0%, 2% { opacity: 0; } 8% { opacity: 1; } 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
    @keyframes p3-cap { 0%, 2% { opacity: 0; } 6% { opacity: 1; } 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
    /* the book flashes when each signature lands */
    @keyframes p3-flash {
        0%, 16% { transform: scale(1); opacity: 0; }
        17% { opacity: 0.8; }
        21% { transform: scale(2.6); opacity: 0; }
        37.9% { transform: scale(1); opacity: 0; }
        38% { transform: scale(1); }
        39% { opacity: 0.8; }
        43% { transform: scale(2.6); opacity: 0; }
        57.9% { transform: scale(1); opacity: 0; }
        58% { transform: scale(1); }
        59% { opacity: 0.8; }
        63% { transform: scale(2.6); opacity: 0; }
        100% { transform: scale(2.6); opacity: 0; }
    }
    @keyframes p3-sig-r {
        0%, 10% { offset-distance: 0%; opacity: 0; }
        11% { opacity: 1; }
        16% { opacity: 1; }
        17% { offset-distance: 100%; opacity: 0; }
        100% { offset-distance: 100%; opacity: 0; }
    }
    @keyframes p3-rew-r {
        0%, 21% { offset-distance: 0%; opacity: 0; }
        22% { opacity: 1; }
        27% { opacity: 1; }
        28% { offset-distance: 100%; opacity: 0; }
        100% { offset-distance: 100%; opacity: 0; }
    }
    @keyframes p3-tag-r { 0%, 27% { opacity: 0; } 30% { opacity: 1; } 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
    @keyframes p3-sig-w {
        0%, 32% { offset-distance: 0%; opacity: 0; }
        33% { opacity: 1; }
        38% { opacity: 1; }
        39% { offset-distance: 100%; opacity: 0; }
        100% { offset-distance: 100%; opacity: 0; }
    }
    @keyframes p3-rew-w {
        0%, 43% { offset-distance: 0%; opacity: 0; }
        44% { opacity: 1; }
        49% { opacity: 1; }
        50% { offset-distance: 100%; opacity: 0; }
        100% { offset-distance: 100%; opacity: 0; }
    }
    @keyframes p3-tag-w { 0%, 49% { opacity: 0; } 52% { opacity: 1; } 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
    @keyframes p3-sig-p {
        0%, 52% { offset-distance: 0%; opacity: 0; }
        53% { opacity: 1; }
        58% { opacity: 1; }
        59% { offset-distance: 100%; opacity: 0; }
        100% { offset-distance: 100%; opacity: 0; }
    }
    @keyframes p3-rew-p {
        0%, 63% { offset-distance: 0%; opacity: 0; }
        64% { opacity: 1; }
        69% { opacity: 1; }
        70% { offset-distance: 100%; opacity: 0; }
        100% { offset-distance: 100%; opacity: 0; }
    }
    @keyframes p3-tag-p { 0%, 69% { opacity: 0; } 72% { opacity: 1; } 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
    .tp-scene .tp-tag { opacity: 0.7; }
    .tp-scene .tp-cap { opacity: 0.7; }
}


/* ============================================================
   Get-started scenes (2026-07-10) — the CTA duo renders.
   TRADERS (12s loop): three listings appear, a selector ring
   browses to the execution agent, one click, HIRE -> HIRED.
   DEVELOPERS (12s loop): four lines of code, a thread draws to
   the network, YOUR AGENT goes LIVE, requests arrive, + USDC.
   Pure CSS, same visual language as the other scenes.
   ============================================================ */
.duo-scene { width: 100%; }
.duo-scene svg { display: block; width: 100%; height: auto; }

.tr-scene .tr-rowbg { fill: var(--bg-deep-shadow); stroke: var(--border-strong); stroke-width: 1; }
.tr-scene .tr-node { fill: #C9A24E; }
.tr-scene .tr-name { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.1em; fill: var(--text-primary); }
.tr-scene .tr-chip { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.14em; fill: var(--text-faint); }
.tr-scene .tr-price { font-family: 'JetBrains Mono', monospace; font-size: 11px; fill: var(--accent-gold-soft); }
.tr-scene .tr-selector { fill: none; stroke: var(--accent-gold-soft); stroke-width: 1.5; opacity: 0; }
.tr-scene .tr-pill rect { fill: var(--accent-brand); opacity: 0; }
.tr-scene .tr-hire, .tr-scene .tr-hired {
    font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em;
    fill: var(--bg-deep-shadow); font-weight: 500; opacity: 0;
}
.tr-scene .tr-click { fill: none; stroke: #E8C97A; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.tr-scene .tr-cap, .dv-scene .dv-cap {
    font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; fill: var(--text-faint);
}

.dv-scene .dv-panel { fill: var(--bg-deep-shadow); stroke: var(--border-strong); stroke-width: 1; }
.dv-scene .dv-code { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; fill: var(--accent-gold-soft); }
.dv-scene .dv-thread { fill: none; stroke: #A88237; stroke-width: 1.5; stroke-linecap: round; }
.dv-scene .dv-node { fill: #C9A24E; }
.dv-scene .dv-halo { fill: none; stroke: rgba(201, 162, 78, 0.35); stroke-width: 1; }
.dv-scene .dv-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; fill: var(--text-tertiary); }
.dv-scene .dv-live { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; fill: var(--accent-moss-soft); }
.dv-scene .dv-req { fill: #E8C97A; opacity: 0; }
.dv-scene .dv-earn { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; fill: var(--accent-gold-soft); opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
    .tr-scene .tr-row { opacity: 0; }
    .tr-scene .tr-row:nth-of-type(1) { animation: d1-row1 12s linear infinite; }
    .tr-scene .tr-row:nth-of-type(2) { animation: d1-row2 12s linear infinite; }
    .tr-scene .tr-row:nth-of-type(3) { animation: d1-row3 12s linear infinite; }
    .tr-scene .tr-selector { animation: d1-select 12s linear infinite; }
    .tr-scene .tr-pill rect { animation: d1-pill 12s linear infinite; }
    .tr-scene .tr-hire { animation: d1-hire 12s linear infinite; }
    .tr-scene .tr-hired { animation: d1-hired 12s linear infinite; }
    .tr-scene .tr-click { animation: d1-click 12s linear infinite; }

    @keyframes d1-row1 { 0%, 2% { opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
    @keyframes d1-row2 { 0%, 5% { opacity: 0; } 9% { opacity: 1; } 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
    @keyframes d1-row3 { 0%, 8% { opacity: 0; } 12% { opacity: 1; } 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
    @keyframes d1-select {
        0%, 14% { transform: translateY(0); opacity: 0; }
        17% { opacity: 1; transform: translateY(0); }
        26% { transform: translateY(0); animation-timing-function: cubic-bezier(0.5, 0, 0.3, 1); }
        32% { transform: translateY(68px); }
        90% { transform: translateY(68px); opacity: 1; }
        94%, 100% { transform: translateY(68px); opacity: 0; }
    }
    @keyframes d1-pill { 0%, 36% { opacity: 0; } 40% { opacity: 1; } 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
    @keyframes d1-hire { 0%, 36% { opacity: 0; } 40% { opacity: 1; } 50% { opacity: 1; } 52%, 100% { opacity: 0; } }
    @keyframes d1-hired { 0%, 52% { opacity: 0; } 54% { opacity: 1; } 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
    @keyframes d1-click {
        0%, 47% { transform: scale(1); opacity: 0; }
        48% { opacity: 0.9; }
        54% { transform: scale(2.4); opacity: 0; }
        100% { transform: scale(2.4); opacity: 0; }
    }

    .dv-scene .dv-code, .dv-scene .dv-agent, .dv-scene .dv-live { opacity: 0; }
    .dv-scene .dv-thread { stroke-dasharray: 1; stroke-dashoffset: 1; }
    .dv-scene .dv-l1 { animation: d2-l1 12s linear infinite; }
    .dv-scene .dv-l2 { animation: d2-l2 12s linear infinite; }
    .dv-scene .dv-l3 { animation: d2-l3 12s linear infinite; }
    .dv-scene .dv-l4 { animation: d2-l4 12s linear infinite; }
    .dv-scene .dv-thread { animation: d2-thread 12s linear infinite; }
    .dv-scene .dv-agent { animation: d2-agent 12s linear infinite; }
    .dv-scene .dv-live { animation: d2-live 12s linear infinite; }
    .dv-scene .dv-req1 { animation: d2-req1 12s linear infinite; }
    .dv-scene .dv-req2 { animation: d2-req2 12s linear infinite; }
    .dv-scene .dv-earn { animation: d2-earn 12s linear infinite; }

    @keyframes d2-l1 { 0%, 3%  { opacity: 0; } 7%  { opacity: 1; } 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
    @keyframes d2-l2 { 0%, 10% { opacity: 0; } 14% { opacity: 1; } 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
    @keyframes d2-l3 { 0%, 15% { opacity: 0; } 19% { opacity: 1; } 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
    @keyframes d2-l4 { 0%, 22% { opacity: 0; } 26% { opacity: 1; } 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
    @keyframes d2-thread { 0%, 30% { stroke-dashoffset: 1; opacity: 1; } 38% { stroke-dashoffset: 0; } 94% { stroke-dashoffset: 0; opacity: 1; } 99%, 100% { stroke-dashoffset: 0; opacity: 0; } }
    @keyframes d2-agent { 0%, 37% { opacity: 0; } 42% { opacity: 1; } 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
    @keyframes d2-live { 0%, 44% { opacity: 0; } 48% { opacity: 1; } 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
    @keyframes d2-req1 {
        0%, 54% { offset-distance: 0%; opacity: 0; }
        55% { opacity: 1; }
        61% { opacity: 1; }
        62% { offset-distance: 100%; opacity: 0; }
        100% { offset-distance: 100%; opacity: 0; }
    }
    @keyframes d2-req2 {
        0%, 68% { offset-distance: 0%; opacity: 0; }
        69% { opacity: 1; }
        75% { opacity: 1; }
        76% { offset-distance: 100%; opacity: 0; }
        100% { offset-distance: 100%; opacity: 0; }
    }
    @keyframes d2-earn { 0%, 62% { opacity: 0; } 65% { opacity: 1; } 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
    .tr-scene .tr-selector { opacity: 1; transform: translateY(68px); }
    .dv-scene .dv-earn { opacity: 0.7; }
}
