:root {
    --bg: #EFE9E0;
    --shell: rgba(248, 244, 238, .94);
    --panel: #FBF8F4;
    --ink: #14120F;
    --ink-2: #4A463F;
    --muted: #8A8378;
    --line: rgba(20, 18, 15, .08);
    --line-2: rgba(20, 18, 15, .14);
    --gold: #A88A4E;
    --live: #2FA36B;
    --iri: linear-gradient(120deg, #F6C9D8 0%, #F3DDB8 22%, #CDEBD6 45%, #C7DDF7 68%, #DCCBF6 88%, #F6C9D8 100%);
    --serif: "Newsreader", "Times New Roman", serif;
    --sans: "Geist", system-ui, sans-serif;
    --mono: "Geist Mono", ui-monospace, monospace;
    --r: 22px;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;
      --bg: #06060B; --shell: rgba(10, 10, 17, .78); --panel: #0C0C14; --ink: #F2F0FA; --ink-2: #ABA8BF;
      --muted: #6C6982; --line: rgba(255, 255, 255, .06); --line-2: rgba(255, 255, 255, .11); --gold: #F2B566; --live: #5FD3A3;
    }
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #06060B; --shell: rgba(10, 10, 17, .78); --panel: #0C0C14; --ink: #F2F0FA; --ink-2: #ABA8BF;
    --muted: #6C6982; --line: rgba(255, 255, 255, .06); --line-2: rgba(255, 255, 255, .11); --gold: #F2B566; --live: #5FD3A3;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; }
  body::before {
    content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
    background:
      radial-gradient(40% 35% at 15% 10%, rgba(246, 201, 216, .45), transparent 70%),
      radial-gradient(35% 40% at 90% 20%, rgba(199, 221, 247, .5), transparent 70%),
      radial-gradient(45% 40% at 70% 95%, rgba(205, 235, 214, .45), transparent 70%),
      radial-gradient(30% 30% at 10% 85%, rgba(243, 221, 184, .5), transparent 70%);
  }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
  .mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .serif { font-family: var(--display); font-weight: 500; }

  /* ---------- Shell ---------- */
  .shell {
    max-width: 1440px; margin: 18px auto; display: grid; grid-template-columns: 230px 1fr;
    background: var(--shell);
    border: 1px solid rgba(255,255,255,.6); border-radius: 30px;
    box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 40px 80px -40px rgba(60, 40, 20, .25);
    width: calc(100% - 36px);
  }
  aside { position: sticky; top: 18px; height: calc(100vh - 36px); border-right: 1px solid var(--line); padding: 28px 20px; display: flex; flex-direction: column; }
  .logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 27px; letter-spacing: -.02em; padding: 0 8px; }
  .logo svg { width: 24px; height: 24px; }
  .side-nav { margin-top: 48px; display: flex; flex-direction: column; gap: 4px; }
  .side-nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 12px; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s; }
  .side-nav a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; opacity: .75; }
  .side-nav a:hover { background: var(--line); color: var(--ink); }
  .side-nav a.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 0 0 1px var(--line); }
  .side-nav a.on::after { content: ""; margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
  .side-foot { margin-top: auto; padding: 0 8px; }
  .side-foot .mono { font-size: 10px; line-height: 2; display: block; }
  .side-foot hr { width: 18px; border: 0; border-top: 1px solid var(--line-2); margin: 14px 0; }

  main { min-width: 0; }

  /* ---------- Topbar ---------- */
  .top { display: flex; align-items: center; justify-content: space-between; padding: 26px 40px 0; }
  .top .mono { font-size: 10px; line-height: 1.7; }
  .top-r { display: flex; align-items: center; gap: 10px; }
  .icon-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); box-shadow: 0 0 0 1px var(--line); transition: transform .2s; }
  .icon-btn:hover { transform: translateY(-1px); }
  .icon-btn svg { width: 15px; height: 15px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
  .net { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); padding: 0 8px; }
  .net i, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(47,163,107,.18); }
  .btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 14px; font-size: 14px; font-weight: 500; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
  .btn:hover { transform: translateY(-1px); }
  .btn-ink { background: var(--ink); color: var(--bg); box-shadow: 0 10px 24px -10px rgba(20,18,15,.6), inset 0 1px 0 rgba(255,255,255,.15); }
  .btn-soft { background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(0,0,0,.04); }
  .btn-sm { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; }
  .btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; transition: transform .2s; }
  .btn:hover svg { transform: translateX(3px); }

  .pad { padding: 0 40px; }

  /* ---------- Hero ---------- */
  .hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 640px; gap: 20px; }
  .hero .mono { color: var(--gold); }
  .hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(72px, 10vw, 148px); line-height: .9; letter-spacing: -.045em; margin: 18px 0 22px; }
  .hero h1 em { font-style: italic; }
  .hero .sub { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 440px; }
  .hero .actions { display: flex; gap: 10px; margin-top: 36px; flex-wrap: wrap; }
  .stats { display: flex; margin-top: 48px; }
  .stats div { padding-right: 36px; margin-right: 36px; border-right: 1px solid var(--line-2); }
  .stats div:last-child { border: 0; }
  .stats b { display: block; font-family: var(--display); font-weight: 500; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
  .stats span { font-size: 12.5px; color: var(--muted); }

  /* Orb visual */
  .stage { position: relative; height: 560px; perspective: 1200px; display: grid; place-items: center; }
  .scene { position: relative; width: 420px; height: 420px; transform-style: preserve-3d; }
  .orb {
    position: absolute; inset: 90px; border-radius: 50%;
    background:
      radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 8%, rgba(255,255,255,0) 30%),
      radial-gradient(circle at 70% 75%, rgba(180, 150, 240, .55), transparent 55%),
      conic-gradient(from 200deg, #F6C9D8, #F3DDB8, #CDEBD6, #C7DDF7, #DCCBF6, #F6C9D8);
    box-shadow: inset -20px -30px 60px rgba(120, 90, 180, .25), inset 10px 10px 40px rgba(255,255,255,.8), 0 40px 80px -20px rgba(140, 110, 190, .35);
    animation: hue 12s linear infinite;
  }
  @keyframes hue { to { filter: hue-rotate(360deg); } }
  .ring { position: absolute; inset: 0; border-radius: 50%; transform-style: preserve-3d; }
  .ring::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 1.5px;
    background: var(--iri); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: .9;
  }
  .r1 { transform: rotateX(72deg); animation: spin1 18s linear infinite; }
  .r2 { transform: rotateY(72deg); animation: spin2 22s linear infinite; inset: 20px; }
  .r3 { transform: rotateX(60deg) rotateY(-40deg); animation: spin3 26s linear infinite; inset: -30px; }
  @keyframes spin1 { to { transform: rotateX(72deg) rotateZ(360deg); } }
  @keyframes spin2 { to { transform: rotateY(72deg) rotateZ(-360deg); } }
  @keyframes spin3 { to { transform: rotateX(60deg) rotateY(-40deg) rotateZ(360deg); } }
  .ring .sat { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(255,255,255,.7); }

  .chip {
    position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px;
    background: rgba(255,255,255,.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.8); box-shadow: 0 16px 40px -16px rgba(60,40,20,.25);
    font-size: 12.5px; animation: float 7s ease-in-out infinite; white-space: nowrap;
  }
  .chip b { font-weight: 500; display: block; font-size: 13px; }
  .chip span { color: var(--muted); font-family: var(--mono); font-size: 10.5px; }
  .chip .av { width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0; }
  .c1 { top: 70px; left: 0; }
  .c2 { top: 250px; right: -10px; animation-delay: -2.5s; }
  .c3 { bottom: 50px; left: 40px; animation-delay: -5s; }
  @keyframes float { 50% { transform: translateY(-12px); } }
  :root[data-theme="dark"] .chip { background: rgba(30,28,25,.6); border-color: rgba(255,255,255,.08); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip { background: rgba(30,28,25,.6); border-color: rgba(255,255,255,.08); } }

  /* ---------- Ticker ---------- */
  .ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; margin-top: 20px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .ticker-track { display: flex; gap: 48px; width: max-content; padding: 16px 0; animation: tick 56s linear infinite; }
  .ticker-track span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--ink-2); display: flex; gap: 10px; align-items: center; }
  .ticker-track em { font-style: normal; color: var(--live); }
  .ticker-track em.dn { color: #C0584A; }
  @keyframes tick { to { transform: translateX(-50%); } }

  /* ---------- Section heads ---------- */
  .sec { padding-top: 110px; }
  .sec-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; gap: 24px; }
  .sec-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 4vw, 54px); letter-spacing: -.03em; line-height: 1; margin-top: 12px; }
  .sec-head h2 em { font-style: italic; }
  .more { font-size: 13px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
  .more:hover { color: var(--ink); }

  /* ---------- Tiles ---------- */
  .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .tile { background: var(--panel); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); padding: 22px; min-height: 280px; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; position: relative; overflow: hidden; }
  .tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-2), 0 24px 40px -24px rgba(60,40,20,.3); }
  .tile h3 { font-family: var(--display); font-weight: 500; font-size: 34px; letter-spacing: -.02em; line-height: 1; margin-top: 14px; }
  .tile p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
  .tile .viz { margin-top: auto; height: 110px; display: flex; align-items: end; }
  .tile .foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
  .tile .foot .mono { font-size: 10px; }
  .arrow { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line-2); transition: background .2s, transform .3s; }
  .arrow svg { width: 11px; height: 11px; stroke: var(--ink); fill: none; stroke-width: 1.8; }
  .tile:hover .arrow { background: var(--ink); transform: rotate(-45deg); }
  .tile:hover .arrow svg { stroke: var(--bg); }

  .v-steps { gap: 6px; }
  .v-steps i { flex: 1; border-radius: 8px 8px 3px 3px; background: var(--iri); background-size: 400% 100%; opacity: .85; }
  .v-steps i:nth-child(1) { height: 30%; background-position: 0 0; }
  .v-steps i:nth-child(2) { height: 55%; background-position: 33% 0; }
  .v-steps i:nth-child(3) { height: 78%; background-position: 66% 0; }
  .v-steps i:nth-child(4) { height: 100%; background-position: 100% 0; }
  .v-line svg { width: 100%; height: 100%; overflow: visible; }
  .v-line path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
  .v-line .area { fill: url(#iriFill); stroke: none; opacity: .6; }
  .v-ledger { flex-direction: column; align-items: stretch; justify-content: end; gap: 7px; }
  .v-ledger div { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); padding-bottom: 6px; border-bottom: 1px dashed var(--line-2); }
  .v-ledger div span:last-child { color: var(--live); }
  .v-book { justify-content: center; gap: 0; }
  .v-book i { width: 58px; height: 84px; border-radius: 4px 10px 10px 4px; background: var(--iri); background-size: 300% 100%; box-shadow: 0 10px 20px -8px rgba(60,40,20,.3); margin-left: -18px; transform: rotate(-8deg); border: 1px solid rgba(255,255,255,.7); }
  .v-book i:nth-child(1) { margin-left: 0; background-position: 0 0; }
  .v-book i:nth-child(2) { transform: rotate(0deg) translateY(-6px); background-position: 50% 0; }
  .v-book i:nth-child(3) { transform: rotate(8deg); background-position: 100% 0; }

  /* ---------- Launch cards ---------- */
  .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .card { background: var(--panel); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-2), 0 24px 40px -24px rgba(60,40,20,.3); }
  .card .art { height: 150px; position: relative; display: grid; place-items: center; overflow: hidden; }
  .card .art .glyph { font-family: var(--serif); font-size: 72px; font-style: italic; font-weight: 300; color: rgba(20,18,15,.75); mix-blend-mode: multiply; }
  .badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.75); backdrop-filter: blur(8px); font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: #14120F; }
  .badge .live-dot { width: 5px; height: 5px; box-shadow: none; }
  .badge.soon .live-dot { background: var(--gold); }
  .card .body { padding: 18px; }
  .card .ttl { display: flex; justify-content: space-between; align-items: baseline; }
  .card h4 { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -.01em; }
  .card .tk { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .08em; }
  .card p { font-size: 13px; color: var(--muted); margin-top: 4px; min-height: 42px; }
  .prog { height: 3px; border-radius: 3px; background: var(--line-2); margin: 16px 0 10px; overflow: hidden; }
  .prog i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 3px; transition: width 1.4s cubic-bezier(.65,0,.35,1); }
  .card .meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }

  /* ---------- Manifesto ---------- */
  .manifesto { padding: 150px 0 60px; text-align: center; }
  .manifesto h2 { font-family: var(--mono); font-weight: 400; font-size: clamp(34px, 6.2vw, 88px); line-height: .98; letter-spacing: -.02em; text-transform: uppercase; }
  .manifesto h2 .iri, .manifesto h2 .iri .w { background: var(--vivid); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 12s linear infinite; }
  @keyframes sheen { to { background-position: 200% 0; } }
  .manifesto p { margin: 28px auto 0; max-width: 460px; font-size: 18px; color: var(--ink-2); line-height: 1.55; }

  /* ---------- Standards ---------- */
  .std { border-top: 1px solid var(--line-2); }
  .std-row { display: grid; grid-template-columns: 110px 1.1fr 1.6fr auto; gap: 32px; padding: 38px 0; border-bottom: 1px solid var(--line-2); align-items: start; transition: background .3s; }
  .std-row .ix { font-family: var(--mono); font-size: 44px; font-weight: 400; line-height: .85; background: var(--iri); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: .6px rgba(20,18,15,.35); }
  .std-row h3 { font-family: var(--display); font-weight: 500; font-size: 30px; letter-spacing: -.02em; line-height: 1.05; }
  .std-row h3 + .mono { display: block; margin-top: 8px; font-size: 10px; }
  .std-row p { color: var(--ink-2); max-width: 520px; }
  .std-row .more { margin-top: 6px; white-space: nowrap; }

  /* ---------- Steps ---------- */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .step { padding: 28px; border-radius: var(--r); background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
  .step .rn { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--gold); }
  .step h3 { font-family: var(--display); font-weight: 500; font-size: 26px; margin: 44px 0 8px; letter-spacing: -.01em; }
  .step p { color: var(--muted); font-size: 14px; }

  /* ---------- Close ---------- */
  .close { margin: 110px 40px 0; border-radius: 28px; padding: 110px 40px; text-align: center; position: relative; overflow: hidden; background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
  .close::before { content: ""; position: absolute; inset: 0; opacity: .5; background: radial-gradient(40% 70% at 25% 60%, rgba(246,201,216,.7), transparent 70%), radial-gradient(35% 60% at 55% 30%, rgba(243,221,184,.7), transparent 70%), radial-gradient(40% 70% at 80% 65%, rgba(199,221,247,.7), transparent 70%); }
  .close > * { position: relative; }
  .close h2 { font-family: var(--display); font-weight: 500; font-size: clamp(48px, 7vw, 104px); line-height: .92; letter-spacing: -.04em; margin: 18px 0 36px; }
  .close h2 em { font-style: italic; }
  .close .actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

  footer { display: flex; justify-content: space-between; align-items: center; padding: 40px; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
  footer nav { display: flex; gap: 24px; }
  footer a:hover { color: var(--ink); }

  /* ---------- Reveal ---------- */
  .rv { opacity: 0; transform: translateY(16px); transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
  .rv.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; }
    .rv { opacity: 1; transform: none; transition: none; }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 1180px) {
    .tiles, .cards { grid-template-columns: repeat(2, 1fr); }
    .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
    .stage { height: 480px; }
  }
  @media (max-width: 860px) {
    .shell { grid-template-columns: 1fr; margin: 10px auto; width: calc(100% - 20px); border-radius: 24px; }
    aside { position: static; height: auto; flex-direction: row; align-items: center; padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
    .side-nav, .side-foot { display: none; }
    .logo { font-size: 24px; padding: 0; }
    .shell { position: relative; }
    .top { position: absolute; top: 20px; right: 20px; padding: 0; }
    .hero > * { min-width: 0; }
    .stage { overflow: hidden; margin: 0 -20px; }
    .stats { flex-wrap: wrap; row-gap: 20px; }
    .top > .mono, .net { display: none; }
    .pad { padding: 0 20px; }
    .std-row { grid-template-columns: 1fr; gap: 12px; }
    .steps { grid-template-columns: 1fr; }
    .close { margin: 80px 20px 0; padding: 80px 20px; }
    footer { padding: 32px 20px; }
    .sec { padding-top: 80px; }
    .stats div { padding-right: 20px; margin-right: 20px; }
  }
  @media (max-width: 560px) {
    .tiles, .cards { grid-template-columns: 1fr; }
    .stage { height: 380px; }
    .scene { transform: scale(.72); }
    .c1 { left: 16px; top: 30px; } .c2 { right: 16px; top: 200px; } .c3 { left: 24px; bottom: 30px; }
    .hero h1 { font-size: 72px; }
    .hero .sub { font-size: 21px; }
    .stats b { font-size: 30px; }
    .sec-head { flex-direction: column; align-items: start; }
  }

/* ---------- Wallet ---------- */
[data-wallet] .w-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); margin-right: -2px; }
[data-wallet].is-connected { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.w-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(20,18,15,.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.w-modal.open { opacity: 1; pointer-events: auto; }
.w-sheet { width: 100%; max-width: 400px; background: var(--panel); border-radius: 24px; padding: 28px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(20,18,15,.45); transform: translateY(10px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.w-modal.open .w-sheet { transform: none; }
.w-sheet h3 { font-family: var(--display); font-weight: 500; font-size: 34px; letter-spacing: -.02em; margin: 10px 0 8px; }
.w-sheet p { color: var(--muted); font-size: 13.5px; }
.w-sheet .w-addr { font-family: var(--mono); font-size: 11px; word-break: break-all; }
.w-list { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.w-opt { display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 0 18px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line-2); font-size: 14px; transition: background .2s; width: 100%; }
.w-opt:hover { background: var(--line); }
.w-opt b { font-weight: 500; }
.w-opt span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.w-actions { display: flex; gap: 8px; margin-top: 22px; }
.w-actions .btn { flex: 1; justify-content: center; }

/* =========================================================
   Motion layer
   ========================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .38s cubic-bezier(.4,0,.2,1) both; }
::view-transition-new(root) { animation: vt-in .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
/* A headstone's sunset window and name morph into the token page header */
::view-transition-group(tk-art), ::view-transition-group(tk-name) { animation-duration: .75s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
::view-transition-group(tk-art) { overflow: clip; }
::view-transition-old(tk-art), ::view-transition-new(tk-art) { height: 100%; object-fit: cover; }
html.leaving body { opacity: 0; transform: translateY(-10px); transition: opacity .38s, transform .38s; }
body { animation: page-in .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes page-in { from { opacity: 0; } }

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #F6C9D8, #F3DDB8, #CDEBD6, #C7DDF7, #DCCBF6); pointer-events: none; }

/* Unified easing on interactive surfaces */
.btn, .icon-btn { transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .3s, background .3s, opacity .3s; }
.btn:hover { transform: none; }

/* Spotlight */
.tile, .card, .step, .group { position: relative; isolation: isolate; }
.tile::after, .card::after, .step::after, .group::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(360px circle at var(--mx, -999px) var(--my, -999px), rgba(255,255,255,.45), transparent 45%);
  opacity: 0; transition: opacity .4s; mix-blend-mode: soft-light;
}
.tile:hover::after, .card:hover::after, .step:hover::after, .group:hover::after { opacity: 1; }

/* Cursor */
.cur-dot, .cur-ring { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .3s; }
.has-cursor .cur-dot, .has-cursor .cur-ring { opacity: 1; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--ink); }
.cur-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.cur-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--ink); opacity: .35; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s, background .3s; }
.cur-ring.hot::before { transform: scale(1.7); opacity: .18; background: var(--ink); }
.cur-ring.down::before { transform: scale(.8); }
.cur-ring.text::before { transform: scaleX(.08) scaleY(.8); opacity: .6; border-radius: 2px; }

/* Intro */
.intro { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--bg); }
.intro .mk { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 44px; letter-spacing: -.02em; color: var(--ink); }
.intro svg { width: 44px; height: 44px; overflow: visible; }
.intro svg * { stroke: var(--ink); stroke-width: 1.2; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro .word { display: inline-flex; overflow: hidden; }
.intro .word span { display: inline-block; transform: translateY(110%); }
.intro .bar-i { position: absolute; bottom: 48px; left: 50%; width: 120px; height: 1px; margin-left: -60px; background: var(--line-2); overflow: hidden; }
.intro .bar-i i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }

/* Split text */
.split-ch { display: inline-block; will-change: transform; }
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }

/* Film */
.film-wrap { padding-top: 72px; }
.film { position: relative; height: min(78vh, 720px); min-height: 440px; border-radius: 28px; overflow: hidden; background: #EFE9E0; box-shadow: 0 0 0 1px var(--line), 0 50px 100px -50px rgba(60,40,20,.45); transform-origin: 50% 30%; }
.film canvas, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film video { opacity: 0; transition: opacity 1s; }
.film.has-video video { opacity: 1; }
.film.has-video canvas { display: none; }
.film-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; color: #14120F; pointer-events: none; }
.film-ui .mono { color: rgba(20,18,15,.6); display: flex; justify-content: space-between; }
.film-ui h2 { font-family: var(--display); font-weight: 500; font-size: clamp(44px, 7.5vw, 112px); line-height: .9; letter-spacing: -.045em; max-width: 900px; }
.film-ui h2 em { font-style: italic; }
.film-foot { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.film-foot p { max-width: 300px; font-size: 14px; color: rgba(20,18,15,.7); }
.play { pointer-events: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: rgba(255,255,255,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 10px 30px -10px rgba(20,18,15,.3); color: #14120F; }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.play .i-play { display: none; }
.film.paused .play .i-play { display: block; }
.film.paused .play .i-pause { display: none; }
.film .tc { font-variant-numeric: tabular-nums; }
/* With the real film: frame it at its own shape, and let its words speak */
.film.has-video { height: auto; min-height: 0; aspect-ratio: 16 / 9; background: #0D0A1C; }
.film.has-video.square { aspect-ratio: 1; }
.film.has-video video { object-fit: contain; }
.film.has-video .film-ui { color: #fff; }
.film.has-video .film-ui h2, .film.has-video .film-foot p { display: none; }
.film.has-video .film-ui .mono { color: rgba(255,255,255,.7); }
.film.has-video .film-foot { justify-content: flex-end; }
.film.has-video .play { background: rgba(20,14,40,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); color: #fff; }
@media (max-width: 860px) {
  .film-wrap { padding-top: 48px; }
  .film { height: 70vh; min-height: 420px; border-radius: 22px; }
  .film-ui { padding: 22px; }
  .film-foot p { display: none; }
}

/* Manifesto words */
.manifesto .w { display: inline-block; opacity: .14; transition: opacity .2s; }

/* Standards row line */
.std-row { position: relative; border-bottom-color: transparent; }
.std-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line-2); transform-origin: 0 50%; transform: scaleX(var(--line, 1)); }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .intro { display: none; }
  .manifesto .w { opacity: 1; }
}

/* GSAP owns reveal transforms; CSS transitions resume once revealed */
.gsap .rv { transition: none !important; }

/* =========================================================
   Pages — shared building blocks
   ========================================================= */
a.card { display: block; color: inherit; }
.page { padding: 0 40px 40px; }
.ph { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; padding: 72px 0 40px; }
.ph .eyebrow { color: var(--gold); }
.ph h1 { font-family: var(--display); font-weight: 500; font-size: clamp(56px, 7.4vw, 112px); line-height: .9; letter-spacing: -.045em; margin-top: 14px; text-wrap: balance; }
.ph h1 em { font-style: italic; }
.ph .lede { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.35; color: var(--ink-2); max-width: 400px; margin-top: 18px; }
.kpis { display: flex; gap: 0; }
.kpis div { padding: 0 28px; border-left: 1px solid var(--line-2); }
.kpis div:first-child { border-left: 0; padding-left: 0; }
.kpis b { display: block; font-family: var(--display); font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpis span { font-size: 12.5px; color: var(--muted); }

/* Breadcrumb */
.crumbs { display: flex; gap: 8px; align-items: center; padding-top: 40px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Segmented control with sliding pill */
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.seg button { position: relative; z-index: 1; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13px; color: var(--ink-2); transition: color .35s; white-space: nowrap; }
.seg button.on { color: var(--bg); }
.seg button b { font-family: var(--mono); font-weight: 400; font-size: 10.5px; opacity: .55; margin-left: 5px; }
.seg .pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--ink); transition: transform .55s cubic-bezier(.2,.9,.2,1), width .55s cubic-bezier(.2,.9,.2,1); }

/* Search / select */
.field { position: relative; }
.field input, .field select { height: 42px; padding: 0 16px; border: 0; outline: 0; border-radius: 999px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font: 400 13.5px var(--sans); transition: box-shadow .25s; appearance: none; -webkit-appearance: none; }
.field input:focus, .field select:focus { box-shadow: 0 0 0 1.5px var(--ink); }
.field.search input { padding-left: 38px; width: 220px; }
.field.search svg { position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); stroke: var(--muted); fill: none; stroke-width: 1.8; pointer-events: none; }
.field select { padding-right: 36px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A8378' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

/* Status pill */
.status { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; background: var(--bg); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--live); } .status.upcoming { color: var(--gold); } .status.done { color: var(--muted); }
.status.live::before { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .5; } }

/* Tabs */
.tabs-bar { position: sticky; top: 0; z-index: 5; display: flex; gap: 28px; border-bottom: 1px solid var(--line-2); background: var(--shell); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); margin: 0 -40px; padding: 0 40px; overflow-x: auto; scrollbar-width: none; }
.tabs-bar button { position: relative; height: 54px; font-size: 14px; color: var(--muted); transition: color .3s; white-space: nowrap; }
.tabs-bar button.on { color: var(--ink); }
.tabs-bar .ink { position: absolute; bottom: -1px; left: 0; height: 2px; background: var(--ink); transition: transform .5s cubic-bezier(.2,.9,.2,1), width .5s cubic-bezier(.2,.9,.2,1); }

/* Table */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 16px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tr.row-link { cursor: pointer; transition: background .25s; }
.tbl tr.row-link:hover { background: var(--line); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .mono-cell { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.tbl-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }

/* Token avatar */
.av { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-family: var(--serif); font-style: italic; font-size: 18px; color: rgba(20,18,15,.78); flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.tok { display: flex; align-items: center; gap: 12px; }
.tok b { font-weight: 500; display: block; }
.tok small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(20,18,15,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.drawer .sheet { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100% - 24px)); overflow-y: auto; border-radius: 24px; background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(20,18,15,.5); transform: translateX(calc(100% + 24px)); transition: transform .6s cubic-bezier(.2,.9,.2,1); }
.drawer.open { pointer-events: auto; }
.drawer.open .scrim { opacity: 1; }
.drawer.open .sheet { transform: none; }
.x-btn { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: 0 0 0 1px var(--line); z-index: 2; }
.x-btn svg { width: 12px; height: 12px; stroke: var(--ink); stroke-width: 1.8; fill: none; }

/* Empty state */
.empty-state { padding: 80px 20px; text-align: center; font-family: var(--display); font-weight: 500; font-size: 24px; color: var(--muted); }
.empty-state button { font-family: var(--sans); font-size: 13px; margin-top: 14px; text-decoration: underline; text-underline-offset: 4px; color: var(--ink-2); }

.focus-ring:focus-visible, .seg button:focus-visible, .tabs-bar button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

@media (max-width: 860px) {
  .page { padding: 0 20px 32px; }
  .ph { grid-template-columns: 1fr; padding: 48px 0 28px; gap: 24px; }
  .kpis div { padding: 0 18px; }
  .kpis b { font-size: 30px; }
  .tabs-bar { margin: 0 -20px; padding: 0 20px; gap: 22px; }
  .field.search input { width: 100%; }
}

[hidden] { display: none !important; }

/* =========================================================
   Afterglow — shared token visuals
   ========================================================= */
.av { position: relative; overflow: hidden; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.price sub, .tomb sub, b sub { font-size: .62em; vertical-align: -.25em; }
.skel { background: linear-gradient(90deg, var(--line) 25%, var(--line-2) 50%, var(--line) 75%); background-size: 200% 100%; animation: skel 1.4s linear infinite; border-radius: 10px; }
@keyframes skel { to { background-position: -200% 0; } }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); font-size: 13px; color: var(--ink-2); }
.notice svg { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--gold); fill: none; stroke-width: 1.7; margin-top: 1px; }

/* Rebirth pair: old token (grey) → new token (glowing) */
.rb { display: flex; align-items: center; gap: 12px; }
.rb .av { border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-style: italic; color: rgba(20,18,15,.72); flex-shrink: 0; }
.rb .old { width: 44px; height: 44px; font-size: 18px; filter: grayscale(1); opacity: .7; }
.rb .new { width: 64px; height: 64px; font-size: 26px; box-shadow: 0 0 0 4px var(--panel), 0 16px 30px -12px rgba(231,162,188,.9); background-size: cover; background-position: center; }
.rb .arr { width: 22px; height: 22px; stroke: var(--muted); fill: none; stroke-width: 1.4; flex-shrink: 0; }
.glow-bg { position: relative; isolation: isolate; overflow: hidden; }
.glow-bg::before { content: ""; position: absolute; left: -20%; right: -20%; bottom: -60%; height: 320px; z-index: -1; background: radial-gradient(closest-side, rgba(246,201,216,.6), rgba(243,221,184,.38) 50%, transparent); filter: blur(10px); pointer-events: none; }
.split3 { display: flex; height: 10px; border-radius: 10px; overflow: hidden; gap: 2px; }
.split3 .h { background: var(--vivid); }
.split3 .r { background: var(--c-violet); }
.split3 .c { background: var(--line-2); }

/* Never allow sideways scroll, even mid-animation */
@supports (overflow: clip) { html, body { overflow-x: clip; } }

/* Embers + cursor lamp */
.embers-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 150; pointer-events: none; }
.lamp { position: fixed; top: 0; left: 0; z-index: -1; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(246,190,170,.2), rgba(220,200,246,.08) 55%, transparent); will-change: transform; }
:root[data-theme="dark"] .lamp { background: radial-gradient(closest-side, rgba(246,150,170,.14), rgba(160,140,240,.07) 55%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lamp { background: radial-gradient(closest-side, rgba(246,150,170,.14), rgba(160,140,240,.07) 55%, transparent); } }

/* Masked word reveal for headlines */
.wmask { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .04em .14em; margin: -.08em -.04em -.14em; }
.wrise { display: inline-block; will-change: transform; }

/* =========================================================
   Vivid layer — the afterglow palette
   ========================================================= */
:root {
  --c-amber: #F2B566; --c-coral: #EE8672; --c-pink: #E9749A; --c-violet: #9A86E8; --c-mint: #22C79A;
  --vivid: linear-gradient(100deg, #F2B566, #EE8672 30%, #E9749A 62%, #9A86E8);
  --vivid-soft: linear-gradient(100deg, rgba(242,181,102,.18), rgba(238,134,114,.18) 30%, rgba(233,116,154,.18) 62%, rgba(154,134,232,.18));
}
.grad-text { background: var(--vivid); background-size: 180% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text.shift { animation: gradshift 7s ease-in-out infinite alternate; }
@keyframes gradshift { to { background-position: 100% 0; } }

/* Signature button: gradient fill with a soft colored glow */
.btn-vivid { position: relative; color: #fff; background: var(--vivid); background-size: 160% 100%; box-shadow: 0 12px 30px -12px rgba(233,116,154,.65), inset 0 1px 0 rgba(255,255,255,.3); transition: background-position .6s, box-shadow .4s, transform .45s cubic-bezier(.2,.8,.2,1); }
.btn-vivid:hover { background-position: 100% 0; box-shadow: 0 14px 34px -14px rgba(154,134,232,.45), inset 0 1px 0 rgba(255,255,255,.3); }

/* Colored stat numbers */
.stat-vivid { background: var(--vivid); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Card that lights up with a gradient edge on hover */
.edge { position: relative; }
.edge::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--vivid); opacity: 0; transition: opacity .5s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.edge:hover::before { opacity: 1; }

/* Fall figures in color */
.fall-vivid { color: var(--c-coral); }

/* Header stats in the afterglow gradient */
.kpis b { color: var(--ink); }   /* plain numbers: colour is kept for what it means */

/* =========================================================
   Phone navigation: bottom tab bar
   ========================================================= */
.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 95; display: grid; grid-template-columns: repeat(6, 1fr);
    padding: 6px; border-radius: 22px; background: color-mix(in srgb, var(--panel) 92%, transparent); box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -18px rgba(20,18,15,.45);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 6px; border-radius: 16px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; transition: color .25s, background .25s; }
  .tabbar a svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
  .tabbar a.on { color: var(--ink); background: var(--bg); }
  .tabbar a.on::after { content: ""; position: absolute; top: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--c-pink); }
  .tabbar a:active { transform: scale(.94); }
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .w-modal { padding-bottom: 100px; }
}
@media (max-width: 360px) { .tabbar a span { font-size: 9px; } }

/* API unreachable banner */
.offline { position: fixed; z-index: 200; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); width: min(720px, calc(100% - 32px));
  display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: var(--bg); font-size: 13.5px; line-height: 1.45;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06); }
.offline::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--c-coral); }
.offline b { font-weight: 500; flex: 1 1 calc(100% - 24px); }
.offline span { flex-basis: 100%; padding-left: 18px; opacity: .78; }
.offline code { font: 12px var(--mono); padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.1); }
.offline a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Find anything (search button, Ctrl/⌘ K or "/") */
.pal { position: fixed; inset: 0; z-index: 150; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; }
.pal-back { position: absolute; inset: 0; background: rgba(14, 12, 10, .42); opacity: 0; transition: opacity .25s; }
.pal-box { position: relative; width: min(640px, 100%); max-height: min(580px, 78vh); display: flex; flex-direction: column; border-radius: 22px; background: var(--panel); box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -30px rgba(0, 0, 0, .55); overflow: hidden; opacity: 0; transform: translateY(-10px) scale(.985); transition: opacity .22s, transform .4s cubic-bezier(.2, .9, .2, 1); }
.pal.on .pal-back { opacity: 1; }
.pal.on .pal-box { opacity: 1; transform: none; }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 18px; height: 62px; border-bottom: 1px solid var(--line); flex: none; }
.pal-in > svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 1.8; flex: none; }
.pal-in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: 400 16px var(--sans); }
.pal-in input::placeholder { color: var(--muted); }
.pal-x, .pal kbd { font: 10.5px var(--mono); padding: 3px 7px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); background: none; }
.pal-list { overflow-y: auto; padding: 6px 8px 10px; overscroll-behavior: contain; }
.pal-sec { font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 6px; }
.pal-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 14px; color: inherit; }
.pal-row[aria-selected="true"] { background: var(--line); }
.pal-art, .pal-ico { width: 54px; height: 38px; display: grid; place-items: center; overflow: hidden; }
.pal-art { border-radius: 999px 999px 7px 7px / 30px 30px 7px 7px; background: var(--line); }
.pal-art svg { width: 100%; height: 100%; display: block; }
.pal-art .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: italic 14px var(--serif); overflow: hidden; }
.pal-ico { border-radius: 12px; background: var(--bg); }
.pal-ico svg { width: 17px; height: 17px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.pal-row b { display: block; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-row small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-row .v { font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pal-msg { padding: 18px 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.pal-foot { display: flex; gap: 16px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); flex: none; }
.pal-foot kbd { margin-right: 3px; padding: 1px 5px; }
.pal-foot .tip { margin-left: auto; }
@media (max-width: 700px) { .pal { padding: 10px; } .pal-foot span:not(.tip) { display: none; } .pal-foot .tip { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .pal-box, .pal-back { transition: none; } }

/* Share cards */
.share { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 16px; }
.share-back { position: absolute; inset: 0; background: rgba(14, 12, 10, .5); opacity: 0; transition: opacity .25s; }
.share-box { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 24px; background: var(--panel); box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -30px rgba(0, 0, 0, .55); padding: 16px 18px 18px; opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .22s, transform .4s cubic-bezier(.2, .9, .2, 1); }
.share.on .share-back { opacity: 1; }
.share.on .share-box { opacity: 1; transform: none; }
.share-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.share-x { font: 10.5px var(--mono); padding: 3px 7px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }
.share-img { position: relative; aspect-ratio: 1200 / 675; max-width: 100%; border-radius: 14px; overflow: hidden; background: var(--line); }
.share-img img { width: 100%; height: 100%; display: block; }
.share-wait { position: absolute; inset: 0; display: none; }
.share.busy .share-wait { display: block; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.share-row .btn { flex: 1 1 130px; justify-content: center; }
.share-tip { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); transition: background .25s, color .25s, box-shadow .25s; }
.share-btn:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
.share-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.share-btn { white-space: nowrap; flex: none; }
@media (max-width: 560px) { .share-btn .sb-more { display: none; } }
@media (prefers-reduced-motion: reduce) { .share-box, .share-back { transition: none; } }

/* =========================================================
   Mission control: the launchpad layer. Dark, precise, luminous.
   Everything above still applies; this sharpens it.
   ========================================================= */
:root { --display: "Geist", system-ui, sans-serif; --r: 16px; --tick: rgba(255, 255, 255, .34); --iri: linear-gradient(100deg, #F2B566, #EE8672 30%, #E9749A 62%, #9A86E8); }

/* A precision grid that fades out down the page, a violet dawn at the top, and fine grain */
body::before {
  inset: 0;
  background:
    radial-gradient(55% 40% at 50% -6%, rgba(154, 134, 232, .2), transparent 70%),
    radial-gradient(35% 30% at 96% 2%, rgba(233, 116, 154, .1), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(130% 95% at 50% 0%, #000 35%, transparent 85%); mask-image: radial-gradient(130% 95% at 50% 0%, #000 35%, transparent 85%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Shell: dark glass with a hairline */
.shell { border: 1px solid rgba(255, 255, 255, .07); border-radius: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 50px 140px -50px rgba(0, 0, 0, .9); }
aside { border-right-color: rgba(255, 255, 255, .06); }
.side-nav a.on { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); }
.side-nav a.on::after { background: var(--c-pink); box-shadow: 0 0 10px var(--c-pink); }
.mono { letter-spacing: .16em; }

/* Headlines: tight sans; the serif stays as the accent inside them */
h1, h2, h3, h4 { text-wrap: balance; }
:is(h1, h2, h3, h4) em { font-family: var(--serif); font-weight: 300; font-style: italic; letter-spacing: -.02em; }
.ph h1 { font-size: clamp(46px, 6vw, 86px); letter-spacing: -.055em; line-height: .96; }
.ph .lede { font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.55; max-width: 440px; }
.sec-head h2 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.045em; line-height: 1.02; }
.tile h3 { font-size: 26px; letter-spacing: -.04em; }
.step h3, .std-row h3 { letter-spacing: -.035em; }
.close h2 { font-size: clamp(44px, 6vw, 88px); letter-spacing: -.055em; }
.kpis b { font-size: 34px; letter-spacing: -.04em; }
.stats b { letter-spacing: -.04em; }

/* Status-light labels: a small lit square before page and section eyebrows */
.ph .eyebrow, .sec-head .mono:first-child { color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.ph .eyebrow::before, .sec-head .mono:first-child::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--c-pink); box-shadow: 0 0 10px var(--c-pink); flex: none; }

/* Panels: darker, sharper, lit from the top edge */
:root :is(.panel, .kpi, .tile, .card, .step, .chart, .life, .rp, .notice, .group, .close, .paste, .verdict, .ask, .card2, .lesson, .w-sheet, .pal-box, .share-box) {
  background-color: var(--panel);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .006) 40%);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .06);
}
:root :is(.panel, .kpi, .tile, .card, .step, .chart, .life, .rp) { border-radius: 16px; }
:root :is(.tile, .card):hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(154, 134, 232, .45); }

/* HUD brackets: add .hud to frame a panel like a viewfinder (they sit just outside the box) */
.hud { position: relative; }
.hud::after { content: ""; position: absolute; inset: -7px; pointer-events: none; z-index: 3;
  background:
    linear-gradient(var(--tick) 0 0) 0 0 / 14px 1px no-repeat, linear-gradient(var(--tick) 0 0) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--tick) 0 0) 100% 0 / 14px 1px no-repeat, linear-gradient(var(--tick) 0 0) 100% 0 / 1px 14px no-repeat,
    linear-gradient(var(--tick) 0 0) 0 100% / 14px 1px no-repeat, linear-gradient(var(--tick) 0 0) 0 100% / 1px 14px no-repeat,
    linear-gradient(var(--tick) 0 0) 100% 100% / 14px 1px no-repeat, linear-gradient(var(--tick) 0 0) 100% 100% / 1px 14px no-repeat; }

/* Buttons: bright primary, hairline secondary, the gradient one glows */
.btn { border-radius: 12px; }
.btn-ink { background: #F2F0FA; color: #06060B; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 12px 34px -12px rgba(255, 255, 255, .3); }
.btn-soft { background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-soft:hover { background: rgba(255, 255, 255, .07); }
.btn-sm { border-radius: 10px; }
.btn-vivid { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .28), 0 12px 32px -16px rgba(233, 116, 154, .5), 0 0 50px -28px rgba(154, 134, 232, .4); }
.icon-btn { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); }

/* Controls */
.seg, .field input, .field select { background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg .pill { background: #F2F0FA; box-shadow: 0 0 20px -4px rgba(255, 255, 255, .35); }
.field input:focus, .field select:focus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), 0 0 0 4px rgba(154, 134, 232, .18); }

/* Letter tiles for tokens without a picture: deep glass, light letter */
html:root .av { color: rgba(255, 255, 255, .86); }
.badge { background: rgba(8, 8, 14, .62); color: #F2F0FA; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }

/* Tape, progress, glows */
.ticker { background: rgba(255, 255, 255, .015); border-color: var(--line-2); }
.progress { background: var(--vivid); box-shadow: 0 0 8px rgba(233, 116, 154, .3); }
.glow-bg::before, .rp::before { background: radial-gradient(closest-side, rgba(233, 116, 154, .12), rgba(154, 134, 232, .07) 55%, transparent) !important; filter: none !important; }
.close::before { opacity: 1 !important; background: radial-gradient(50% 80% at 50% 120%, rgba(238, 134, 114, .18), transparent 70%), radial-gradient(40% 60% at 20% 0%, rgba(154, 134, 232, .1), transparent 70%) !important; }
.cur-dot { background: #fff; }
.cur-ring::before { border-color: #fff; }
::selection { background: rgba(233, 116, 154, .35); color: #fff; }

/* Stat rows on phones: numbers stay on one line ("13 mo"), columns share the width */
.kpis b { white-space: nowrap; }
@media (max-width: 560px) {
  .kpis div { flex: 1 1 0; min-width: 0; padding: 0 14px; }
  .kpis b { font-size: 26px; }
}

/* Touch: small text links get a finger-sized hit area on phones without changing how they look */
@media (max-width: 560px) {
  footer nav a, .more, .crumbs a, .or button { padding-block: 11px; margin-block: -11px; }
}
/* The film carries its own title card, so its frame drops the section title (the two overlapped); the timecode stays */
.film.has-video .film-ui > .mono > span:first-child { visibility: hidden; }
