@layer reset, tokens, base, layout, components, sections, motion;

/* ═══════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════ */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { color-scheme: dark; scroll-behavior: smooth; }
  html.is-initial-deep-link { scroll-behavior: auto; }
  body, h1, h2, h3, p, ol, dl, dd, figure, figcaption { margin: 0; }
  ol { padding: 0; list-style: none; }
  button, a { font: inherit; }
  button { color: inherit; border: 0; background: none; cursor: pointer; }
  button:disabled { cursor: not-allowed; opacity: .5; }
  img, picture, video { display: block; max-width: 100%; }
  fieldset { border: 0; padding: 0; margin: 0; }
}

/* ═══════════════════════════════════════════════════
   TOKENS
   ═══════════════════════════════════════════════════ */
@layer tokens {
  :root {
    /* darks */
    --bg: #0a0a0a;
    --bg-raised: #151515;
    --bg-card: #1a1a1a;

    /* lights */
    --text: #f0ece4;
    --text-muted: #8a8680;

    /* accent colors - vibrant art toy palette */
    --pink: #ff2e8c;
    --pink-glow: #ff2e8c40;
    --lime: #c8ff00;
    --lime-dark: #1a2000;
    --purple: #7c3aed;
    --purple-deep: #1a0a3e;
    --orange: #ff6b2e;
    --teal: #00e5c8;
    --chrome: #c0c4cc;

    /* chalk overlay */
    --chalk: rgba(255,255,255,.7);

    /* typography */
    --display: "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
    --body: "Helvetica Neue", Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, monospace;

    /* layout */
    --page-w: min(1200px, calc(100vw - 40px));
    --pad: clamp(20px, 4vw, 48px);
    --header-h: 72px;

    /* motion */
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-standard: cubic-bezier(.2, .8, .2, 1);

    /* z-index */
    --z-header: 100;
    --z-menu: 200;
    --z-cold: 300;
  }
}

/* ═══════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════ */
@layer base {
  body {
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }
  :focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
  ::selection { background: var(--pink); color: var(--bg); }

  h1, h2, h3 {
    font-family: var(--display);
    font-weight: 800;
    line-height: .92;
    letter-spacing: -.04em;
    text-wrap: balance;
  }
  h2 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
  code { font-family: var(--mono); font-size: .85em; }
}

/* ═══════════════════════════════════════════════════
   LAYOUT — shared
   ═══════════════════════════════════════════════════ */
@layer layout {
  .skip-link {
    position: fixed; z-index: 999; top: 12px; left: 12px;
    width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
    background: var(--text); color: var(--bg);
    font-weight: 600; border-radius: 6px;
  }
  .skip-link:focus {
    width: auto; height: auto; padding: 10px 14px;
    overflow: visible; clip-path: none;
  }

  .section-label {
    font-family: var(--mono);
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    opacity: .6;
    margin-bottom: 1rem;
  }
  .section-label--dark { color: var(--bg); opacity: .5; }

  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; font-weight: 700; font-size: .9rem;
    border-radius: 8px;
    transition: color .2s var(--ease-out), background-color .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
    text-decoration: none; white-space: nowrap;
  }
  .btn--primary {
    background: var(--pink); color: #fff;
    box-shadow: 0 4px 24px var(--pink-glow);
  }
  .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--pink-glow); }
  .btn--ghost {
    background: transparent; color: var(--text);
    border: 1.5px solid rgba(255,255,255,.25);
  }
  .btn--ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); }
  .btn--outline {
    background: transparent; color: var(--text);
    border: 1.5px solid rgba(255,255,255,.3);
  }
  .btn--dark {
    background: var(--bg); color: var(--text);
  }
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
@layer components {
  .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h); padding: 0 var(--pad);
    background: rgba(10,10,10,.8); backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--display); font-weight: 800; font-size: 1.1rem;
    letter-spacing: .02em;
  }
  .brand__hook { color: var(--pink); }
  .desktop-nav { display: flex; gap: 32px; align-items: center; }
  .desktop-nav a {
    font-size: .85rem; font-weight: 500; opacity: .6;
    transition: opacity .2s;
  }
  .desktop-nav a:hover { opacity: 1; }
  .nav-buy {
    background: var(--pink); color: #fff !important; opacity: 1 !important;
    padding: 8px 18px; border-radius: 40px; font-weight: 700;
    font-size: .8rem;
  }

  .menu-button {
    display: none; flex-direction: column; gap: 5px;
    padding: 8px;
  }
  .menu-button span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: transform .2s var(--ease-out), opacity .2s var(--ease-out);
  }

  .mobile-menu {
    position: fixed; inset: 0; z-index: var(--z-menu);
    background: var(--bg); color: var(--text);
    border: 0; padding: 0; max-width: 100vw; max-height: 100vh;
    width: 100%; height: 100%;
  }
  .mobile-menu::backdrop { background: transparent; }
  .mobile-menu__bar {
    display: flex; justify-content: space-between; align-items: center;
    height: var(--header-h); padding: 0 var(--pad);
    font-weight: 800;
  }
  .mobile-menu nav {
    display: flex; flex-direction: column; gap: 0;
    padding: 0 var(--pad);
  }
  .mobile-menu nav a {
    padding: 20px 0; font-size: 1.5rem; font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  @media (max-width: 768px) {
    .desktop-nav { display: none; }
    .menu-button { display: flex; }
  }

  /* ─── Cold open ─── */
  .cold-open {
    position: fixed; inset: 0; z-index: var(--z-cold);
    display: none; place-items: center; place-content: center; gap: 8px;
    background: var(--bg); color: var(--text);
    font-family: var(--mono); text-align: center;
    animation: cold-auto-hide 2s forwards;
    animation-delay: 2.5s;
  }
  .voxel-first-load .cold-open,
  .cold-open[data-active] { display: grid; }
  @keyframes cold-auto-hide {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
  }
  .cold-open[data-closed] { opacity: 0; visibility: hidden; pointer-events: none; animation: none; transition: opacity .3s; }
  .cold-open__registry { font-size: .75rem; opacity: .3; }
  .cold-open__six { font-size: 2rem; opacity: 0; animation: cold-fade .4s .3s forwards; }
  .cold-open__seven { font-size: 3rem; opacity: 0; animation: cold-fade .4s .7s forwards; color: var(--pink); }
  .cold-open__name { font-size: 2.5rem; font-family: var(--display); font-weight: 800; letter-spacing: .05em; opacity: 0; animation: cold-fade .5s 1.2s forwards; }
  .cold-open__skip { font-size: .7rem; opacity: 0; animation: cold-fade .3s 1.8s forwards; cursor: pointer; }
}

/* ═══════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════ */
@layer sections {

  /* ─── HERO ─── hot pink → dark gradient */
  .hero {
    position: relative;
    min-height: 100vh; min-height: 100dvh;
    display: flex; align-items: center;
    padding: calc(var(--header-h) + 40px) var(--pad) 60px;
    background: linear-gradient(170deg, #1a0020 0%, var(--bg) 50%, #0d0015 100%);
    overflow: hidden;
  }

  .hero__bg-pattern {
    position: absolute; inset: 0;
    background-image:
      radial-gradient(circle at 20% 50%, var(--pink-glow) 0%, transparent 50%),
      radial-gradient(circle at 80% 30%, rgba(124,58,237,.15) 0%, transparent 40%);
    pointer-events: none;
  }

  .hero__content {
    position: relative; z-index: 2;
    max-width: 560px;
  }
  .hero__tag {
    font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--pink); margin-bottom: 1.5rem;
  }
  .hero__title {
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: .88;
    margin-bottom: 1.5rem;
  }
  .hero__title-line { display: block; }
  .hero__title-line--accent {
    color: var(--pink);
    text-shadow: 0 0 60px var(--pink-glow);
  }
  .hero__statement {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted); line-height: 1.6;
    margin-bottom: 2rem;
  }
  .hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

  /* mascot in hero — animated PNG with effects */
  .hero__mascot-wrap {
    position: absolute;
    right: -2%; bottom: -5%;
    width: clamp(280px, 42vw, 520px);
    z-index: 2;
    animation: mascot-float 4s ease-in-out infinite;
  }
  .hero__mascot {
    width: 100%; height: auto;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,.5));
    transition: transform .35s var(--ease-standard), filter .35s var(--ease-standard);
    will-change: transform;
  }
  .hero__mascot-wrap:hover .hero__mascot {
    transform: scale(1.05) rotate(-3deg);
    filter: drop-shadow(0 20px 60px rgba(255,46,140,.4));
  }

  /* glow pulse behind mascot */
  .hero__mascot-glow {
    position: absolute;
    top: 10%; left: 10%; right: 10%; bottom: 15%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(180,160,212,.25) 0%, transparent 70%);
    animation: glow-pulse 3s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
  }

  /* ground shadow */
  .hero__mascot-shadow {
    position: absolute; bottom: -20px; left: 20%; right: 20%;
    height: 30px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0,0,0,.5), transparent 70%);
    animation: shadow-pulse 4s ease-in-out infinite;
  }

  /* ─── ORIGIN ─── dark */
  .origin {
    padding: 120px var(--pad);
    max-width: var(--page-w); margin: 0 auto;
  }
  .origin__content { margin-bottom: 64px; }
  .origin__desc {
    max-width: 540px; color: var(--text-muted);
    font-size: 1.05rem; margin-top: 1.2rem;
  }

  /* timeline */
  .timeline {
    position: relative;
    padding-left: 40px;
    border-left: 2px solid rgba(255,255,255,.08);
  }
  .timeline__item {
    position: relative; padding: 0 0 48px;
  }
  .timeline__item::before {
    content: '';
    position: absolute; left: -47px; top: 6px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--bg-card); border: 2px solid rgba(255,255,255,.2);
  }
  .timeline__item--active::before {
    background: var(--pink); border-color: var(--pink);
    box-shadow: 0 0 16px var(--pink-glow);
  }
  .timeline__item--now::before {
    background: var(--lime); border-color: var(--lime);
    animation: pulse-dot 2s ease-in-out infinite;
  }
  .timeline__id {
    font-family: var(--mono); font-size: .7rem;
    letter-spacing: .1em; color: var(--text-muted);
    display: block; margin-bottom: 6px;
  }
  .timeline__body strong { font-size: 1.1rem; display: block; margin-bottom: 4px; }
  .timeline__body p { color: var(--text-muted); font-size: .9rem; max-width: 480px; }
  .timeline__body a { color: var(--pink); }
  .timeline__body a:hover { text-decoration: underline; }

  .og-mark {
    margin-top: 16px; display: inline-block;
    border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
  }
  .og-mark img { width: 120px; height: auto; }
  .og-mark figcaption {
    font-size: .65rem; font-family: var(--mono);
    text-align: center; padding: 6px; color: var(--text-muted);
  }

  /* ─── SIGNAL PIT ─── deep purple */
  .signal {
    background: linear-gradient(180deg, var(--purple-deep) 0%, var(--bg) 100%);
    padding: 100px var(--pad);
    text-align: center;
  }
  .signal__content {
    max-width: 640px; margin: 0 auto 48px;
  }
  .signal__badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--text-muted);
    background: rgba(255,255,255,.05); padding: 8px 16px;
    border-radius: 40px; margin-bottom: 2rem;
  }
  .signal__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--orange);
    animation: pulse-dot 2s ease-in-out infinite;
  }
  .signal__content p {
    color: var(--text-muted); margin-top: 1.2rem;
    font-size: 1rem; max-width: 520px; margin-inline: auto;
  }

  .signal__steps {
    max-width: 560px; margin: 0 auto 40px;
    display: grid; gap: 0;
    text-align: left;
  }
  .signal__steps li {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .signal__step-num {
    font-family: var(--mono); font-size: .7rem; font-weight: 700;
    color: var(--purple); min-width: 28px;
    background: rgba(124,58,237,.15); padding: 4px 8px;
    border-radius: 6px; text-align: center;
  }
  .signal__steps p { color: var(--text-muted); font-size: .9rem; margin: 0; }
  .signal__cta { text-align: center; }

  /* ─── BUY ─── mascot integrated into the scene */
  .buy-section {
    position: relative;
    width: min(100%, 1100px);
    min-height: clamp(660px, 78vh, 760px);
    margin: 0 auto;
    padding: clamp(88px, 9vw, 132px) var(--pad);
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(360px, 440px);
    align-items: center;
    justify-content: center;
    gap: clamp(36px, 5vw, 64px);
    overflow: clip;
  }
  .buy-section__mascot-wrap {
    position: relative;
    z-index: 1;
    width: clamp(260px, 28vw, 360px);
    height: auto;
    aspect-ratio: 9 / 16;
    justify-self: end;
    margin-right: 0;
    pointer-events: none;
  }
  .buy-section__mascot-media {
    position: absolute;
    z-index: 2;
    left: 50%; top: 50%;
    width: 100%;
    height: 100%;
    translate: -50% -50%;
  }
  .buy-section__mascot-poster,
  .buy-section__mascot-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }
  .buy-section__mascot-poster {
    z-index: 1;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    transition: opacity 220ms ease;
  }
  .buy-section__mascot-canvas {
    z-index: 2;
    opacity: 0;
    backface-visibility: hidden;
    will-change: opacity;
    transition: opacity 360ms var(--ease-out);
  }
  .buy-section__mascot-canvas.is-active { opacity: 1; }
  .buy-section__mascot-source {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }
  .buy-section__mascot-wrap[data-state="playing"] .buy-section__mascot-poster { opacity: 0; }
  .buy-section__panel {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 440px;
    margin-left: 0;
    background: linear-gradient(145deg, rgba(26,24,27,.96), rgba(18,17,19,.9));
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    padding: 32px;
    box-shadow: -34px 20px 90px rgba(0,0,0,.38), -28px 0 80px rgba(255,46,140,.035);
    backdrop-filter: blur(18px) saturate(1.08);
  }

  /* buy form internals */
  .buy-panel__header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 24px;
  }
  .buy-panel__eyebrow {
    font-family: var(--mono); font-size: .65rem;
    letter-spacing: .08em; color: var(--text-muted);
    display: block; margin-bottom: 4px;
  }
  .buy-panel__header h2 { font-size: 1.5rem; }
  .buy-panel__live {
    font-family: var(--mono); font-size: .65rem;
    color: var(--teal); background: rgba(0,229,200,.1);
    padding: 4px 10px; border-radius: 20px;
  }

  .amount-control {
    display: flex; flex-direction: column; gap: 6px;
  }
  .amount-control > span:first-child {
    font-size: .75rem; color: var(--text-muted);
  }
  .amount-control__field {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-card); border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px; padding: 14px 16px;
  }
  .amount-control__field input {
    flex: 1; background: none; border: none; color: var(--text);
    font-size: 1.3rem; font-weight: 700; outline: none;
    font-family: var(--display);
  }
  .amount-control__field strong {
    font-size: .85rem; color: var(--text-muted);
  }

  .buy-output {
    margin: 16px 0;
    padding: 16px; background: var(--bg-card);
    border-radius: 12px;
  }
  .buy-output > span { font-size: .75rem; color: var(--text-muted); display: block; }
  .buy-output output {
    font-size: 1.2rem; font-weight: 700; display: block; margin: 4px 0;
  }
  .buy-output small { font-size: .7rem; color: var(--text-muted); display: block; }
  .buy-gas-note { margin-top: 4px; }

  .slippage-control {
    display: flex; gap: 8px; align-items: center; margin: 16px 0;
    flex-wrap: wrap;
  }
  .slippage-control legend {
    font-size: .75rem; color: var(--text-muted);
    margin-right: 8px;
  }
  .slippage-control label {
    cursor: pointer;
  }
  .slippage-control input { position: absolute; opacity: 0; pointer-events: none; }
  .slippage-control span {
    display: inline-block; padding: 6px 12px;
    border-radius: 8px; font-size: .75rem; font-weight: 600;
    background: var(--bg-card); border: 1px solid rgba(255,255,255,.06);
    transition: color .15s, background-color .15s, border-color .15s;
  }
  .slippage-control input:checked + span {
    background: var(--pink); color: #fff; border-color: var(--pink);
  }

  .buy-status {
    font-size: .8rem; color: var(--text-muted);
    padding: 10px 0; margin: 0;
  }
  .buy-status[data-kind="error"] { color: var(--orange); }
  .buy-status[data-kind="success"] { color: var(--teal); }

  .buy-form__actions {
    display: flex; gap: 10px; margin-top: 16px;
  }
  .buy-form__actions .btn { flex: 1; justify-content: center; padding: 14px; }

  .buy-form__fallback {
    text-align: center; margin-top: 12px;
    font-size: .8rem;
  }
  .buy-form__fallback a { color: var(--pink); }
  .buy-form__fallback a:hover { text-decoration: underline; }

  .buy-disclosure {
    margin-top: 16px; font-size: .75rem; color: var(--text-muted);
  }
  .buy-disclosure summary {
    cursor: pointer; font-weight: 600;
    padding: 8px 0;
  }
  .buy-disclosure dl { margin: 8px 0; }
  .buy-disclosure dl > div {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04);
  }
  .buy-disclosure dt { color: var(--text-muted); }
  .buy-disclosure dd { text-align: right; word-break: break-all; }
  .buy-disclosure code { font-size: .7rem; }
  .buy-disclosure > p { margin-top: 8px; }

  /* External-only Buy CTA: no wallet, quote, or transaction UI. */
  .buy-section__panel--external {
    max-width: 480px;
    padding: clamp(30px, 3vw, 42px);
    background: #100e12;
    border-color: rgba(240, 236, 228, .16);
    border-radius: 4px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
    backdrop-filter: none;
  }
  .buy-panel__header--external {
    display: block;
    margin: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(240, 236, 228, .14);
  }
  .buy-panel__header--external .buy-panel__eyebrow {
    margin: 0;
    color: var(--pink);
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .buy-panel__header--external h2 {
    margin-top: 10px;
    font-size: clamp(2.7rem, 4vw, 4rem);
    line-height: .92;
    letter-spacing: -.04em;
  }
  .buy-panel__external-copy {
    max-width: 38ch;
    margin: 26px 0;
    color: #b7b0b8;
    font-size: .96rem;
    line-height: 1.65;
  }
  .buy-panel__external-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
    gap: 10px;
  }
  .buy-panel__external-actions .btn {
    width: 100%;
    min-height: 58px;
    padding-inline: 18px;
    justify-content: space-between;
    border-radius: 3px;
  }
  .buy-panel__external-chart {
    border-color: rgba(240, 236, 228, .24);
  }
  .buy-panel__external-proof {
    display: grid;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(240, 236, 228, .1);
  }
  .buy-panel__external-proof span {
    color: #8f8991;
    font: 600 .62rem/1.4 var(--mono);
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .buy-panel__external-proof code {
    color: #e5dfe7;
    font-size: .76rem;
  }
  .buy-panel__external-note {
    max-width: 42ch;
    margin-top: 18px;
    color: #8f8991;
    font-size: .74rem;
    line-height: 1.55;
  }
  @media (max-width: 768px) {
    .buy-section__panel--external { padding: 28px 24px; }
    .buy-panel__external-actions { grid-template-columns: 1fr; }
  }

  /* ─── PROOF ─── */
  .proof {
    padding: 100px var(--pad);
    max-width: var(--page-w); margin: 0 auto;
  }
  .proof__content { margin-bottom: 48px; }
  .proof-list { margin: 0; }
  .proof-item {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .proof-item dt { font-weight: 600; font-size: .9rem; }
  .proof-item dd { display: flex; align-items: center; gap: 10px; }
  .proof-item code {
    font-size: .7rem; color: var(--text-muted);
    background: var(--bg-card); padding: 6px 10px;
    border-radius: 6px; word-break: break-all;
  }
  .proof-pending {
    font-size: .8rem; color: var(--text-muted); font-style: italic;
  }
  .copy-btn {
    font-size: .7rem; font-weight: 600;
    padding: 4px 12px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,.15);
    transition: color .15s, background-color .15s, border-color .15s;
  }
  .copy-btn:hover { background: rgba(255,255,255,.08); }

  .proof-item a { color: var(--pink); font-size: .85rem; }
  .proof-item a:hover { text-decoration: underline; }

  /* ─── CLOSING ─── */
  .closing {
    padding: 120px var(--pad);
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, #0d0008 100%);
  }
  .closing__content { max-width: 600px; margin: 0 auto; }
  .closing__pre {
    font-family: var(--mono); font-size: .8rem;
    color: var(--text-muted); margin-bottom: 1rem;
  }
  .closing h2 { margin-bottom: 2rem; }
  .closing__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

  /* ─── FOOTER ─── */
  .site-footer {
    padding: 48px var(--pad);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.04);
  }
  .site-footer .brand { justify-content: center; margin-bottom: 12px; }
  .site-footer p { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }
}

/* ═══════════════════════════════════════════════════
   MOTION & ANIMATIONS
   ═══════════════════════════════════════════════════ */
@layer motion {

  /* mascot float */
  @keyframes mascot-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
  }
  @keyframes shadow-pulse {
    0%, 100% { transform: scaleX(1); opacity: .4; }
    50% { transform: scaleX(.85); opacity: .25; }
  }

  /* cold open */
  @keyframes cold-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* pulsing dot */
  @keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200,255,0,.4); }
    50% { box-shadow: 0 0 0 8px rgba(200,255,0,0); }
  }

  /* glow pulse behind mascot */
  @keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: .4; }
    50% { transform: scale(1.1); opacity: .2; }
  }

  /* scroll reveal — visible by default, pending only after JS opts in */
  [data-scroll-reveal], [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .reveal-pending {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s var(--ease-standard), transform .5s var(--ease-standard);
  }
  .reveal-pending.revealed {
    opacity: 1;
    transform: none;
  }
  [data-reveal].reveal-pending:nth-child(2) { transition-delay: .08s; }
  [data-reveal].reveal-pending:nth-child(3) { transition-delay: .16s; }
  [data-reveal].reveal-pending:nth-child(4) { transition-delay: .24s; }

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

  /* ─── responsive ─── */
  @media (max-width: 768px) {
    .hero {
      flex-direction: column; justify-content: flex-end;
      padding-bottom: 40px;
      min-height: auto; padding-top: calc(var(--header-h) + 20px);
    }
    .hero__mascot-wrap {
      position: relative; right: auto; bottom: auto;
      width: 65vw; max-width: 300px;
      margin: 0 auto 20px;
      animation: mascot-float 4s ease-in-out infinite;
    }
    .hero__content { text-align: center; max-width: 100%; }
    .hero__actions { justify-content: center; }
    .buy-section {
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
      min-height: auto;
      padding: 64px var(--pad) 72px;
    }
    .buy-section__mascot-wrap {
      width: min(72vw, 300px);
      max-width: none;
      height: auto;
      aspect-ratio: 9 / 16;
      justify-self: center;
      margin: 0 0 -54px;
    }
    .buy-section__panel { width: 100%; max-width: 100%; margin-left: 0; }

    .proof-item { flex-direction: column; align-items: flex-start; }
  }
}


/* ═══════════════════════════════════════════════════
   DEFAULT VOXEL HERO — disable explicitly with ?voxel=0
   ═══════════════════════════════════════════════════ */
.has-voxel-draft .hero__mascot-wrap { display: none; }

.hero__voxel-draft {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}
.hero__voxel-draft::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 12% 4% 8% 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,24,166,.16), rgba(82,13,90,.05) 44%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}
.hero__voxel-draft canvas,
.hero__voxel-poster {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__voxel-draft canvas {
  display: block;
  opacity: 0;
  transition: opacity 280ms cubic-bezier(.16, 1, .3, 1);
}
.hero__voxel-poster {
  object-fit: contain;
  padding: 7%;
  opacity: 0;
  filter: saturate(.9) contrast(1.08);
  pointer-events: none;
}
.voxel-draft-ready .hero__voxel-draft canvas { opacity: 1; }
.voxel-draft-ready .hero__voxel-poster { opacity: 0; }
.voxel-draft-failed .hero__voxel-poster { display: block; opacity: .78; }
.hero__voxel-input {
  position: absolute;
  z-index: 3;
  inset: var(--header-h) 0 0;
  pointer-events: auto;
  cursor: crosshair;
  touch-action: pan-y;
  user-select: none;
}
.hero__voxel-input.is-hovering { cursor: grab; }
.hero__voxel-input.is-dragging { cursor: grabbing; touch-action: none; }
.hero__voxel-caption {
  position: absolute;
  z-index: 5;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(240,236,244,.56);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  pointer-events: none;
}
.hero__voxel-caption i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
}
.hero__voxel-caption span { color: var(--pink); }
.hero__voxel-reset {
  position: absolute;
  z-index: 6;
  right: 28px;
  top: calc(var(--header-h) + 22px);
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 2px;
  background: rgba(8,5,13,.54);
  color: rgba(240,236,244,.72);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .07em;
  pointer-events: auto;
  backdrop-filter: blur(12px);
}
.hero__voxel-reset:hover { border-color: var(--pink); color: #fff; }
.has-voxel-draft .hero__content { z-index: 5; }
.has-voxel-draft .hero__bg-pattern { opacity: .72; }

@media (max-width: 768px) {
  .hero__voxel-draft {
    top: var(--header-h);
    width: 100%;
    height: 62%;
  }
  .hero__voxel-input { inset: 0; }
  .hero__voxel-poster { padding: 3% 12%; }
  .hero__voxel-caption { right: 16px; bottom: 10px; }
  .hero__voxel-reset { top: 12px; right: 16px; }
  .has-voxel-draft .hero {
    align-items: flex-end;
    padding-bottom: 46px;
  }
  .has-voxel-draft .hero__content {
    padding: 16px;
    border-radius: 10px;
    background: linear-gradient(180deg, transparent, rgba(10,10,10,.78) 26%);
    pointer-events: none;
  }
  .has-voxel-draft .hero__actions,
  .has-voxel-draft .hero__actions a { pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__voxel-input { pointer-events: none; cursor: default; }
  .hero__voxel-caption span { display: none; }
}


/* ═══════════════════════════════════════════════════
   CINEMATIC VOXEL CHAPTER V2 — default-on
   Monument → Break → Assembly, one persistent scene
   ═══════════════════════════════════════════════════ */
.has-voxel-draft { --voxel-progress: 0; --voxel-break: 0; --voxel-recall: 0; --voxel-gate-scale: .78; }
.has-voxel-draft .cold-open { display: none; }
.voxel-first-load.has-voxel-draft .cold-open:not([hidden]) { display: grid; }
.has-voxel-draft .hero {
  position: relative;
  display: block;
  min-height: 300svh;
  height: 300svh;
  padding: 0;
  overflow: clip;
  background:
    radial-gradient(ellipse 48% 88% at 74% 52%, #4a0f3b 0%, #310c35 30%, #1b0927 56%, rgba(7, 5, 13, 0) 84%),
    radial-gradient(ellipse 76% 120% at 74% 54%, rgba(91, 13, 79, .38), transparent 78%),
    linear-gradient(115deg, #07050d 0%, #0b0610 52%, #050309 100%);
  color: #f4f0f4;
  isolation: isolate;
}
.has-voxel-draft .hero__bg-pattern,
.has-voxel-draft .hero__mascot-wrap { display: none; }
.has-voxel-draft .hero__voxel-draft {
  position: sticky;
  z-index: 1;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}
.has-voxel-draft .hero__voxel-draft::before {
  inset: 8% 0 0 42%;
  border-radius: 0;
  background: radial-gradient(circle, rgba(224,210,229,.085) 0%, rgba(255,24,166,.16) 24%, rgba(82,13,90,.065) 46%, transparent 70%);
  filter: blur(34px);
}
.has-voxel-draft .hero__voxel-draft[data-lookdev="self-pbr"]::before { display: none; }
[data-voxel-phase="B"] .has-voxel-draft .hero,
[data-voxel-phase="B"].has-voxel-draft .hero {
  background:
    radial-gradient(ellipse 42% 76% at 74% 52%, rgba(103, 11, 92, .08), transparent 72%),
    linear-gradient(115deg, #07050d 0%, #0b0610 52%, #050309 100%);
}
[data-voxel-phase="C"] .has-voxel-draft .hero,
[data-voxel-phase="C"].has-voxel-draft .hero {
  background:
    radial-gradient(ellipse 50% 92% at 74% 51%, #5b1247 0%, #380d3b 31%, #1e092a 58%, rgba(7, 5, 13, 0) 86%),
    radial-gradient(ellipse 78% 120% at 74% 54%, rgba(104, 14, 88, .42), transparent 80%),
    linear-gradient(115deg, #07050d 0%, #0b0610 52%, #050309 100%);
}
.has-voxel-draft .hero__voxel-draft::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,5,13,.97) 0%, rgba(7,5,13,.68) 31%, transparent 55%),
    linear-gradient(180deg, rgba(7,5,13,.25), transparent 22%, transparent 74%, rgba(7,5,13,.7));
}
.has-voxel-draft .hero__voxel-draft canvas,
.has-voxel-draft .hero__voxel-poster {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.has-voxel-draft .hero__voxel-poster { object-fit: contain; padding: 5% 3% 3% 44%; }
.has-voxel-draft .hero__voxel-input {
  position: absolute;
  z-index: 4;
  inset: var(--header-h) 0 0 38%;
  pointer-events: auto;
  cursor: crosshair;
  touch-action: pan-y;
  user-select: none;
}
.has-voxel-draft .hero__voxel-input.is-hovering { cursor: grab; }
.has-voxel-draft .hero__voxel-input.is-dragging { cursor: grabbing; touch-action: none; }

.hero__voxel-story {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}
[data-voxel-review-state="B"] .hero__voxel-story { transform: translateY(-100svh); }
[data-voxel-review-state="C"] .hero__voxel-story { transform: translateY(-200svh); }
.has-voxel-draft .hero__voxel-panel {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
  padding: calc(var(--header-h) + 48px) clamp(32px, 4vw, 72px) 104px;
  text-align: left;
  pointer-events: none;
}
.has-voxel-draft .hero__voxel-panel > * { pointer-events: auto; }
.has-voxel-draft .hero__voxel-panel--monument {
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-start;
  padding-top: clamp(150px, 17vh, 190px);
}
.has-voxel-draft .hero__voxel-panel--monument .hero__title {
  max-width: 5.5ch;
  font-size: clamp(86px, 11vw, 176px);
  line-height: .8;
}
.has-voxel-draft .hero__voxel-panel--monument .hero__statement { color: rgba(221,213,224,.66); }
.has-voxel-draft .hero__voxel-panel--break,
.has-voxel-draft .hero__voxel-panel--assembly { align-items: center; }
.hero__voxel-copy { width: min(630px, 43vw); }
.hero__voxel-copy h2 {
  max-width: 7ch;
  margin: 18px 0 0;
  color: #f4f0f4;
  font-family: var(--display);
  font-size: clamp(72px, 8.6vw, 138px);
  font-weight: 800;
  letter-spacing: -.068em;
  line-height: .82;
}
.hero__voxel-copy h2 span { color: var(--pink); }
.hero__voxel-copy > p:not(.hero__tag) {
  width: min(42ch, 100%);
  margin: 32px 0 0;
  color: rgba(213,205,217,.66);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.55;
}
.hero__voxel-copy > small {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: rgba(229,221,232,.58);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
}
.hero__voxel-copy > small i { width: 7px; height: 7px; border-radius: 50%; background: #17131a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.hero__voxel-copy > small i:last-of-type { background: var(--pink); box-shadow: 0 0 12px rgba(255,35,174,.75); }
.hero__voxel-copy > small b { width: 32px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.15), var(--pink)); }
.hero__voxel-proof {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 24px;
  width: min(490px, 100%);
  margin-top: 34px;
  padding: 17px 19px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 5px;
  background: rgba(12,8,16,.56);
  color: inherit;
  text-decoration: none;
  backdrop-filter: blur(14px);
}
.hero__voxel-proof small { color: rgba(205,196,209,.5); font: 9px var(--mono); letter-spacing: .08em; }
.hero__voxel-proof code { grid-column: 1; color: #f0eaf1; font: 13px var(--mono); }
.hero__voxel-proof b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--pink); font: 10px var(--mono); }

.hero__voxel-gate {
  position: absolute;
  z-index: 2;
  left: 72%;
  top: 50%;
  width: min(47vw, 690px);
  aspect-ratio: 1;
  translate: -50% -50%;
  opacity: var(--voxel-recall);
  transform: scale(var(--voxel-gate-scale, 1));
  filter: drop-shadow(0 0 28px rgba(255, 24, 166, .12));
  pointer-events: none;
}
.hero__voxel-gate i { position: absolute; inset: 3%; border: 1px solid rgba(255, 173, 225, .18); border-left-color: transparent; border-bottom-color: rgba(255,35,174,.58); border-radius: 50%; }
.hero__voxel-gate i:nth-child(2) { inset: 13%; opacity: .66; rotate: 42deg; }
.hero__voxel-gate i:nth-child(3) { inset: 24%; opacity: .42; rotate: -52deg; }

.hero__voxel-progress {
  position: absolute;
  z-index: 6;
  left: clamp(32px, 4vw, 72px);
  bottom: 30px;
  display: grid;
  grid-template-columns: auto auto 358px auto;
  align-items: center;
  gap: 13px;
  color: rgba(222,214,226,.66);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
  pointer-events: none;
}
.hero__voxel-progress > span { color: var(--pink); font-size: 18px; }
.hero__voxel-progress > strong { color: rgba(242,236,244,.8); font-size: 9px; }
.hero__voxel-progress > i { position: relative; width: 358px; height: 2px; overflow: hidden; background: rgba(255,255,255,.15); }
.hero__voxel-progress > i b { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: var(--pink); }
.hero__voxel-progress > em { color: rgba(196,187,200,.48); font-style: normal; }
.hero__voxel-hint { position: absolute; z-index: 6; right: clamp(30px, 4vw, 70px); bottom: 28px; margin: 0; color: rgba(210,201,214,.5); font: 9px var(--mono); letter-spacing: .08em; pointer-events: none; }
.hero__voxel-hint span { margin-left: 18px; color: var(--pink); font-size: 18px; }
[data-voxel-phase="B"] .hero__voxel-hint { color: rgba(210,201,214,.68); }
[data-voxel-phase="C"] .hero__voxel-hint { opacity: 0; }

@media (max-width: 768px) {
  .has-voxel-draft .hero { min-height: 300svh; height: 300svh; }
  .has-voxel-draft .hero__voxel-draft { top: 0; width: 100%; height: 100svh; }
  .has-voxel-draft .hero__voxel-draft::after { background: linear-gradient(180deg, rgba(7,5,13,.1), rgba(7,5,13,.1) 48%, rgba(7,5,13,.94) 73%); }
  .has-voxel-draft .hero__voxel-input { inset: var(--header-h) 0 34%; }
  .has-voxel-draft .hero__voxel-panel { min-height: 90svh; align-items: flex-end; padding: 90px 22px 104px; }
  .has-voxel-draft .hero__voxel-panel--monument { justify-content: flex-end; padding-top: 90px; }
  .has-voxel-draft .hero__voxel-panel--monument .hero__title { font-size: clamp(64px, 19vw, 96px); }
  .hero__voxel-copy { width: 100%; padding: 20px 0; }
  .hero__voxel-copy h2 { font-size: clamp(56px, 15vw, 82px); }
  .hero__voxel-copy > p:not(.hero__tag) { font-size: 15px; }
  .hero__voxel-progress { left: 22px; right: 22px; bottom: 22px; grid-template-columns: auto 1fr auto; }
  .hero__voxel-progress > strong { display: none; }
  .hero__voxel-progress > i { width: auto; }
  .hero__voxel-hint { display: none; }
  .hero__voxel-gate { left: 50%; top: 36%; width: 86vw; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__voxel-input { pointer-events: none !important; cursor: default !important; }
  .hero__voxel-gate { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .buy-section__mascot-source,
  .buy-section__mascot-canvas { display: none; }
  .buy-section__mascot-poster { opacity: 1 !important; }
}


/* ═══════════════════════════════════════════════════
   PROVENANCE + EVIDENCE PASS
   Chrome × Editorial × Onchain
   ═══════════════════════════════════════════════════ */
@layer tokens {
  :root {
    --paper: #e7e0d4;
    --paper-muted: #b2aa9d;
    --ink: #11100f;
    --line-dark: rgba(17, 16, 15, .18);
    --line-light: rgba(240, 236, 228, .12);
  }
}

@layer base {
  body { background: #080808; }
  :where(#origin, #mechanics, #signal, #buy, #proof, #burn-ledger) { scroll-margin-top: calc(var(--header-h) + 24px); }
  :focus-visible { outline-width: 2px; outline-offset: 4px; }
}

@layer layout {
  .btn {
    min-height: 46px;
    border-radius: 6px;
    justify-content: center;
  }
  .btn--disabled {
    cursor: not-allowed;
    opacity: .48;
    box-shadow: none;
    user-select: none;
  }
}

@layer components {
  .site-header {
    background: rgba(8, 8, 8, .72);
    transition: background-color .2s var(--ease-standard), border-color .2s var(--ease-standard);
  }
  .site-header.is-scrolled {
    background: rgba(8, 8, 8, .92);
    border-bottom-color: rgba(255, 255, 255, .12);
  }
  .desktop-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .nav-buy { border-radius: 5px; }
  .menu-button {
    width: 44px;
    height: 44px;
    padding: 10px;
    align-items: center;
    justify-content: center;
  }
  .mobile-menu__bar button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
  }
  .mobile-menu nav a { min-height: 56px; }
}

@layer sections {
  /* Origin: source narrative and registry record share one frame. */
  .origin {
    width: 100%;
    max-width: var(--page-w);
    margin: 0 auto;
    padding: clamp(104px, 11vw, 156px) 0;
    display: grid;
    grid-template-columns: minmax(280px, .78fr) minmax(440px, 1.22fr);
    gap: clamp(64px, 9vw, 132px);
    align-items: start;
  }
  .origin__content {
    position: sticky;
    top: calc(var(--header-h) + 48px);
    margin: 0;
  }
  .origin__record,
  .mechanics__kicker,
  .proof__lead {
    margin-bottom: 20px;
    color: var(--pink);
    font: 600 .68rem/1.4 var(--mono);
    letter-spacing: .13em;
    text-transform: uppercase;
  }
  .origin h2 { font-size: clamp(3.1rem, 5.8vw, 5.4rem); }
  .origin__desc {
    max-width: 42ch;
    margin-top: 28px;
    color: #aaa49c;
    font-size: clamp(.96rem, 1.2vw, 1.08rem);
    line-height: 1.68;
  }
  .origin__desc strong { color: var(--text); font-weight: 650; }
  .timeline {
    padding: 0;
    border: 0;
  }
  .timeline__item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 24px;
    padding: 22px 0 34px;
    border-top: 1px solid var(--line-light);
  }
  .timeline__item::before { display: none; }
  .timeline__item--active { border-top-color: rgba(255, 46, 140, .7); }
  .timeline__item--now { padding-bottom: 0; }
  .timeline__id {
    margin: 3px 0 0;
    color: #77726c;
    font-size: .65rem;
    letter-spacing: .12em;
  }
  .timeline__body strong {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1.12rem;
    line-height: 1.25;
  }
  .timeline__body p {
    max-width: 48ch;
    color: #938e87;
    font-size: .9rem;
    line-height: 1.62;
  }
  .timeline__body a { color: var(--pink); text-underline-offset: 4px; }
  .og-mark {
    margin-top: 22px;
    border-radius: 3px;
    border-color: var(--line-light);
    background: #0e0a12;
  }
  .og-mark figcaption { padding: 8px; }

  /* HIVE #7 is one connected instrument, not five feature cards. */
  .mechanics {
    padding: clamp(94px, 10vw, 140px) var(--pad);
    background: var(--paper);
    color: var(--ink);
    overflow: clip;
  }
  .mechanics__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }
  .mechanics__header {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr);
    gap: 24px clamp(48px, 8vw, 120px);
    align-items: end;
    margin-bottom: clamp(48px, 6vw, 76px);
  }
  .mechanics__kicker {
    grid-column: 1 / -1;
    margin: 0;
    color: #6c2860;
  }
  .mechanics h2 {
    max-width: 11ch;
    color: var(--ink);
    font-size: clamp(3rem, 6.3vw, 5.8rem);
  }
  .mechanics__intro {
    max-width: 43ch;
    padding-bottom: 8px;
    color: #5e5952;
    font-size: .98rem;
    line-height: 1.65;
  }
  .mechanics__workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(340px, .78fr);
    gap: 14px;
    align-items: stretch;
  }
  .hive-system {
    min-width: 0;
    min-height: 548px;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    border: 1px solid rgba(17, 16, 15, .72);
    border-radius: 3px;
    background: #f0e9de;
    overflow: hidden;
  }
  .hive-system__nodes {
    position: relative;
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    border-right: 1px solid rgba(17, 16, 15, .38);
  }
  .hive-system__nodes::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: 42px;
    bottom: 42px;
    left: 23px;
    width: 1px;
    background: rgba(17, 16, 15, .24);
  }
  .hive-system__nodes li {
    min-width: 0;
    border-bottom: 1px solid rgba(17, 16, 15, .16);
  }
  .hive-system__nodes li:last-child { border-bottom: 0; }
  .hive-node {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 82px;
    padding: 16px 16px 16px 42px;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 2px;
    color: #36322e;
    text-align: left;
    transition: color .18s var(--ease-standard), background-color .18s var(--ease-standard);
  }
  .hive-node::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    width: 10px;
    height: 10px;
    border: 1px solid #6e6861;
    background: #f0e9de;
    transform: translateY(-50%) rotate(45deg);
  }
  .hive-node__mode {
    color: #7b756d;
    font: 600 .61rem/1.3 var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .hive-node__name {
    overflow: hidden;
    font-size: .94rem;
    line-height: 1.25;
    text-overflow: ellipsis;
  }
  .hive-node__note {
    color: #777169;
    font-size: .68rem;
    line-height: 1.35;
  }
  .hive-node.is-active {
    background: var(--ink);
    color: var(--paper);
  }
  .hive-node.is-active::before {
    border-color: var(--pink);
    background: var(--pink);
  }
  .hive-node.is-active .hive-node__mode { color: #ff75b5; }
  .hive-node.is-active .hive-node__note { color: #aaa29a; }
  .hive-readout {
    position: relative;
    min-width: 0;
    padding: clamp(32px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
  }
  .hive-readout::before {
    content: 'HIVE 007';
    position: absolute;
    top: 26px;
    right: 28px;
    color: rgba(231, 224, 212, .08);
    font: 800 clamp(2rem, 4.5vw, 4.8rem)/1 var(--display);
    letter-spacing: -.05em;
  }
  .hive-readout__mode {
    position: relative;
    margin-bottom: 18px;
    color: #ff75b5;
    font: 600 .66rem/1.4 var(--mono);
    letter-spacing: .11em;
    text-transform: uppercase;
  }
  .hive-readout h3 {
    position: relative;
    margin-bottom: 22px;
    color: var(--paper);
    font-size: clamp(2.5rem, 5vw, 4.7rem);
    line-height: .9;
  }
  .hive-readout > p[data-mech-copy] {
    position: relative;
    max-width: 38ch;
    color: #b9b1a7;
    font-size: .96rem;
    line-height: 1.65;
  }
  .hive-readout__note {
    position: relative;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(231, 224, 212, .14);
    color: #817a72;
    font: .64rem/1.5 var(--mono);
    letter-spacing: .05em;
  }

  /* Burn ledger: sourced evidence, never a decorative metric card. */
  .burn-ledger {
    min-width: 0;
    min-height: 548px;
    padding: clamp(26px, 3vw, 38px);
    display: flex;
    flex-direction: column;
    border: 1px solid #252321;
    border-radius: 3px;
    background: #0e0e0e;
    color: var(--paper);
  }
  .burn-ledger__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
  }
  .burn-ledger__eyebrow {
    margin-bottom: 8px;
    color: var(--pink);
    font: 600 .62rem/1.4 var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .burn-ledger h3 {
    color: var(--paper);
    font-size: 1.25rem;
    letter-spacing: -.02em;
    line-height: 1.15;
  }
  .burn-ledger__status {
    flex: 0 0 auto;
    max-width: 145px;
    padding: 6px 8px;
    border: 1px solid #3a3734;
    border-radius: 2px;
    color: #aaa39a;
    font: 600 .58rem/1.35 var(--mono);
    letter-spacing: .04em;
    text-align: right;
  }
  .burn-ledger[data-state='live'] .burn-ledger__status { border-color: #6f7d79; color: #c1cfca; }
  .burn-ledger[data-state='stale'] .burn-ledger__status { border-color: #8e694a; color: #e0ad7f; }
  .burn-ledger[data-state='error'] .burn-ledger__status { border-color: #8e3b62; color: #ff83ba; }
  .burn-ledger__definition {
    margin-top: 32px;
    color: #837d75;
    font-size: .75rem;
  }
  .burn-ledger__definition code { color: #b7afa5; }
  .burn-ledger__value {
    min-width: 0;
    margin: 18px 0 30px;
    padding-bottom: 28px;
    border-bottom: 1px solid #2b2927;
  }
  .burn-ledger__value output {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--paper);
    font: 650 clamp(2rem, 3.3vw, 3rem)/1 var(--mono);
    letter-spacing: -.075em;
    font-variant-numeric: tabular-nums;
  }
  .burn-ledger__value span {
    display: block;
    margin-top: 10px;
    color: var(--pink);
    font: 650 .68rem/1 var(--mono);
    letter-spacing: .12em;
  }
  .burn-ledger__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
  }
  .burn-ledger__facts > div {
    min-width: 0;
    padding-top: 12px;
    border-top: 1px solid #262422;
  }
  .burn-ledger__facts dt {
    margin-bottom: 5px;
    color: #756f68;
    font: .58rem/1.35 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .burn-ledger__facts dd,
  .burn-ledger__facts a {
    color: #d8d0c5;
    font: .7rem/1.5 var(--mono);
    overflow-wrap: anywhere;
  }
  .burn-ledger__method { grid-column: 1 / -1; }
  .burn-ledger__footer {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .burn-ledger__footer a,
  .burn-ledger__footer button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: #f0e9de;
    font: 650 .68rem/1 var(--mono);
  }
  .burn-ledger__footer a { color: var(--pink); }
  .burn-ledger__footer button {
    padding: 0 14px;
    border: 1px solid #3b3835;
    border-radius: 3px;
    transition: border-color .15s, color .15s;
  }
  .burn-ledger__footer button:hover { border-color: #77716a; }
  .burn-ledger__footer button:disabled { cursor: progress; opacity: .65; }
  .burn-ledger__note {
    margin-top: 12px;
    color: #6d6761;
    font: .58rem/1.45 var(--mono);
  }

  /* Signal: protocol status and sequence, not another centered marketing block. */
  .signal {
    padding: clamp(104px, 11vw, 156px) var(--pad);
    background: #100c14;
    border-top: 1px solid rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    text-align: left;
  }
  .signal__layout {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(460px, 1.18fr);
    gap: clamp(64px, 9vw, 132px);
    align-items: start;
  }
  .signal__content {
    max-width: none;
    margin: 0;
  }
  .signal__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: #9e969f;
    font: 600 .65rem/1 var(--mono);
    letter-spacing: .11em;
    text-transform: uppercase;
  }
  .signal__dot {
    width: 7px;
    height: 7px;
    border-radius: 1px;
    background: #d57942;
    animation: none;
    transform: rotate(45deg);
  }
  .signal h2 {
    max-width: 9ch;
    font-size: clamp(3.3rem, 6.5vw, 6rem);
  }
  .signal__content > p:not(.signal__status) {
    max-width: 43ch;
    margin: 28px 0 0;
    color: #9a929d;
    font-size: .98rem;
    line-height: 1.7;
  }
  .signal__content .btn { margin-top: 34px; }
  .signal__steps {
    max-width: none;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
  }
  .signal__steps li {
    min-height: 102px;
    padding: 24px 0;
    display: grid;
    grid-template-columns: 96px minmax(150px, .7fr) minmax(180px, 1fr);
    gap: 24px;
    align-items: start;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .signal__steps li > span {
    color: var(--pink);
    font: 650 .64rem/1.45 var(--mono);
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .signal__steps strong {
    color: #e9e3e9;
    font-size: .94rem;
    line-height: 1.45;
  }
  .signal__steps p {
    color: #8e8690;
    font-size: .84rem;
    line-height: 1.6;
  }

  /* Proof: a compact source index. */
  .proof {
    width: 100%;
    max-width: var(--page-w);
    margin: 0 auto;
    padding: clamp(104px, 11vw, 156px) 0;
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(480px, 1.28fr);
    gap: clamp(64px, 9vw, 132px);
    align-items: start;
  }
  .proof__content {
    position: sticky;
    top: calc(var(--header-h) + 48px);
    margin: 0;
  }
  .proof__content h2 { font-size: clamp(3.2rem, 5.8vw, 5.4rem); }
  .proof__content > p:last-child {
    max-width: 38ch;
    margin-top: 26px;
    color: #99938b;
    font-size: .93rem;
    line-height: 1.7;
  }
  .proof-list {
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
  }
  .proof-item {
    min-width: 0;
    padding: 22px 0;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }
  .proof-item dt {
    color: #eee8df;
    font-size: .86rem;
    font-weight: 650;
  }
  .proof-item dd {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    text-align: right;
  }
  .proof-address {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .proof-address > span { flex: 0 0 auto; }
  .proof-item code {
    display: inline-block;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 3px;
    color: #a9a39b;
    overflow-wrap: anywhere;
  }
  .copy-btn {
    min-width: 62px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 3px;
  }
  .proof-pending {
    color: #88827b;
    font-style: normal;
  }
  .proof-item a { text-underline-offset: 4px; }

  .closing {
    padding: clamp(104px, 12vw, 172px) var(--pad);
    background: #0a0709;
    border-top: 1px solid rgba(255, 46, 140, .1);
  }
  .closing h2 { font-size: clamp(3rem, 6vw, 5.5rem); }
  .site-footer {
    width: 100%;
    padding: 40px var(--pad);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    text-align: left;
  }
  .site-footer .brand { justify-content: flex-start; margin: 0; }
  .site-footer p:last-child { text-align: right; }
}

@layer motion {
  .reveal-pending {
    opacity: 0;
    transform: translateY(18px);
  }
  .reveal-pending.revealed {
    opacity: 1;
    transform: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .reveal-pending,
    .reveal-pending.revealed {
      opacity: 1;
      transform: none;
      transition: none;
    }
    .signal__dot { transform: rotate(45deg); }
  }
}

/* ═══════════════════════════════════════════════════
   CINEMATIC FX — grain + vignette overlays
   ═══════════════════════════════════════════════════ */
@layer motion {
  .fx-grain {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    z-index: 400;
    pointer-events: none;
    opacity: .075;
    mix-blend-mode: screen;
    filter: contrast(155%) brightness(.72);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 160px 160px;
    animation: fx-grain-shift 1.1s steps(4) infinite;
    will-change: transform;
  }
  @keyframes fx-grain-shift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-4%, 3%); }
    50%  { transform: translate(3%, -4%); }
    75%  { transform: translate(-3%, -3%); }
    100% { transform: translate(0, 0); }
  }

  .fx-vignette {
    position: fixed;
    inset: 0;
    z-index: 399;
    pointer-events: none;
    background:
      radial-gradient(130% 100% at 50% 40%, transparent 55%, rgba(0,0,0,.35) 100%),
      radial-gradient(120% 90% at 50% 120%, rgba(124,58,237,.10), transparent 60%);
  }

  @media (prefers-reduced-motion: reduce) {
    .fx-grain { animation: none; }
  }
}

@media (hover: hover) {
  .hive-node:not(.is-active):hover { background: #ddd5c9; }
  .burn-ledger__footer a:hover,
  .proof-item a:hover { color: #ff75b5; }
}

@media (max-width: 1080px) {
  .mechanics__workspace { grid-template-columns: 1fr; }
  .burn-ledger { min-height: 0; }
  .signal__steps li { grid-template-columns: 90px minmax(150px, 1fr); }
  .signal__steps p { grid-column: 2; }
}

@media (max-width: 800px) {
  .origin,
  .proof {
    width: auto;
    margin-inline: var(--pad);
    padding-block: 88px;
    grid-template-columns: 1fr;
    gap: 54px;
  }
  .origin__content,
  .proof__content { position: static; }
  .mechanics { padding-block: 84px; }
  .mechanics__header { grid-template-columns: 1fr; gap: 26px; }
  .mechanics__kicker { grid-column: 1; }
  .mechanics__intro { padding: 0; }
  .hive-system { grid-template-columns: 1fr; }
  .hive-system__nodes {
    border-right: 0;
    border-bottom: 1px solid rgba(17, 16, 15, .38);
  }
  .hive-readout { min-height: 390px; }
  .signal { padding-block: 88px; }
  .signal__layout { grid-template-columns: 1fr; gap: 62px; }
  .signal h2 { max-width: none; }
  .proof-item dd { justify-content: flex-start; text-align: left; }
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-footer .brand { justify-content: center; }
  .site-footer p:last-child { text-align: center; }
}

@media (max-width: 540px) {
  .origin,
  .proof { margin-inline: 20px; padding-block: 72px; }
  .timeline__item { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .mechanics { padding: 72px 16px; }
  .mechanics__header { margin-bottom: 42px; }
  .hive-system { min-height: 0; }
  .hive-node {
    min-height: 78px;
    padding-right: 12px;
  }
  .hive-readout {
    min-height: 360px;
    padding: 30px 24px;
  }
  .hive-readout::before { top: 22px; right: 20px; }
  .burn-ledger { padding: 26px 20px; }
  .burn-ledger__header { flex-direction: column; }
  .burn-ledger__status { max-width: none; text-align: left; }
  .burn-ledger__value output { font-size: clamp(1.55rem, 7.1vw, 2.15rem); }
  .burn-ledger__facts { grid-template-columns: 1fr; gap: 12px; }
  .burn-ledger__method { grid-column: 1; }
  .burn-ledger__footer { align-items: flex-start; }
  .signal { padding: 72px 20px; }
  .signal__steps li {
    min-height: 0;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px 14px;
  }
  .signal__steps p { grid-column: 2; }
  .proof-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .proof-item dd { flex-wrap: wrap; }
  .proof-address { width: 100%; }
  .proof-address code {
    width: auto;
    min-width: 0;
    flex: 1;
  }
  .closing__actions { align-items: stretch; flex-direction: column; }
}

@media (forced-colors: active) {
  .hive-node.is-active,
  .hive-readout,
  .burn-ledger { border: 1px solid CanvasText; }
  .hive-node::before,
  .signal__dot { forced-color-adjust: none; }
}
