/* ============================================================================
   HoodScout - landing (brand surface)
   Token-gated on-chain intelligence for Robinhood Chain. Near-black instrument
   void · hairline frame · Besley display · Geist Mono annotations · one
   phosphor-green accent. Scroll-driven; content never gated on animation.
   ========================================================================== */

:root {
  --void:        oklch(0.115 0.010 250);
  --bg:          oklch(0.145 0.008 250);
  --surface-1:   oklch(0.175 0.009 250);
  --surface-2:   oklch(0.205 0.010 250);
  --surface-3:   oklch(0.240 0.011 250);
  --line:        oklch(0.28  0.010 250);
  --line-soft:   oklch(0.22  0.010 250);
  --line-strong: oklch(0.38  0.012 250);

  --ink:   oklch(0.965 0.004 250);
  --ink-2: oklch(0.84  0.008 250);
  --ink-3: oklch(0.70  0.010 250);
  --ink-4: oklch(0.56  0.010 250);

  --accent:      oklch(0.87 0.21 152);
  --accent-dim:  oklch(0.68 0.14 152);
  --accent-ink:  oklch(0.16 0.03 152);
  --accent-glow: oklch(0.87 0.21 152 / 0.28);

  --high:  oklch(0.85 0.17 160);
  --med:   oklch(0.84 0.13  85);
  --low:   oklch(0.80 0.12 230);

  --sans:  "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Besley", ui-serif, Georgia, "Times New Roman", serif;

  --frame-inset: clamp(10px, 1.6vw, 26px);
  --gutter: clamp(22px, 6vw, 116px);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --z-frame: 40;
  --z-topbar: 50;
  --z-skip: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 500; }
code { font-family: var(--mono); font-size: 0.9em; color: var(--accent-dim); letter-spacing: 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.026em; line-height: 1.04; text-wrap: balance; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: var(--z-skip);
  padding: 8px 14px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: 12px; border-radius: 3px;
  transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ============================ INSTRUMENT FRAME ============================ */
.frame { position: fixed; inset: var(--frame-inset); z-index: var(--z-frame); pointer-events: none; }
.frame::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 2px; }
.frame-corner { position: absolute; width: 12px; height: 12px; }
.frame-corner::before, .frame-corner::after { content: ""; position: absolute; background: var(--line-strong); }
.frame-corner::before { width: 12px; height: 1px; top: 0; }
.frame-corner::after  { width: 1px; height: 12px; left: 0; }
.frame-corner.tl { top: -1px; left: -1px; }
.frame-corner.tr { top: -1px; right: -1px; }
.frame-corner.tr::before, .frame-corner.tr::after { right: 0; left: auto; }
.frame-corner.bl { bottom: -1px; left: -1px; }
.frame-corner.bl::before { bottom: 0; top: auto; }
.frame-corner.br { bottom: -1px; right: -1px; }
.frame-corner.br::before { bottom: 0; top: auto; right: 0; left: auto; }
.frame-corner.br::after  { bottom: 0; top: auto; right: 0; left: auto; }

/* ============================ TOPBAR ============================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-topbar);
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(14px, 2vw, 26px) calc(var(--frame-inset) + clamp(8px, 1.4vw, 22px));
}
.topbar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 150%; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--void) 30%, oklch(0.115 0.010 250 / 0.72) 66%, transparent);
}
.mark { display: inline-flex; align-items: center; gap: 11px; }
.mark-logo { display: block; opacity: 0.96; }
.mark-word { font-family: var(--mono); font-size: 13px; letter-spacing: 0.03em; color: var(--ink); }
.topbar-meta { display: inline-flex; align-items: center; gap: clamp(6px, 1.4vw, 18px); }
@media (max-width: 560px) { .topbar-meta .btn--quiet { display: none; } }

/* ============================ BUTTONS ============================ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em;
  padding: 12px 18px; border-radius: 4px; border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-arrow { transition: transform 0.28s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.btn--primary:hover { background: oklch(0.91 0.2 152); }
.btn--line { color: var(--ink); border-color: var(--line-strong); }
.btn--line:hover { border-color: var(--accent-dim); background: var(--surface-1); }
.btn--quiet { color: var(--ink-2); padding-left: 8px; padding-right: 8px; }
.btn--quiet:hover { color: var(--ink); }
.btn--lg { padding: 15px 26px; font-size: 14px; }

/* ============================ SCENE / SHARED ============================ */
.scene { position: relative; width: 100%; }
.section-title { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 0; }
.section-note { color: var(--ink-3); font-size: clamp(0.95rem, 1.3vw, 1.05rem); margin: 14px 0 0; max-width: 46ch; }

/* section frame: hairline divider + generous rhythm */
.scene--caught, .scene--live, .scene--do, .scene--hs {
  padding: clamp(72px, 11vh, 150px) var(--gutter);
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
}
.scene--caught { border-top: 1px solid var(--line-soft); }
.scene--live, .scene--do, .scene--hs { border-top: 1px solid var(--line-soft); }

/* ============================ HERO ============================ */
.scene--hero { height: 100svh; min-height: 600px; overflow: hidden; background: var(--void); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero-static { position: absolute; top: 50%; left: 64%; width: min(38vw, 400px); transform: translate(-50%, -50%); opacity: 0.9; z-index: 1; }
.scene--hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(to right, var(--void) 4%, oklch(0.115 0.01 250 / 0.42) 30%, transparent 52%),
    radial-gradient(130% 110% at 62% 50%, transparent 58%, oklch(0.1 0.01 250 / 0.6) 100%);
}
.hero-stage {
  position: relative; z-index: 2; height: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center;
}
.hero-copy { max-width: 30ch; }
.hero-title { font-size: clamp(2.3rem, 4.6vw, 3.7rem); margin: 0; max-width: 15ch; }
.hero-title__turn { display: block; color: var(--accent); }
.hero-sub { margin: clamp(18px, 2.6vh, 26px) 0 0; font-size: clamp(1rem, 1.5vw, 1.22rem); color: var(--ink-2); line-height: 1.5; max-width: 28ch; }
.hero-cta { margin-top: clamp(26px, 4vh, 40px); display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scrollcue {
  position: absolute; left: 50%; bottom: clamp(20px, 4vh, 40px); transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-4);
}
.is-motion .hero-scrollcue { animation: cue 2.6s var(--ease-io) infinite; }
@keyframes cue { 0%,100% { opacity: 0.25; } 50% { opacity: 0.6; } }
.is-motion #heroSub, .is-motion .hero-cta { opacity: 0; }

@media (max-width: 760px) {
  .scene--hero::after {
    background:
      linear-gradient(to top, var(--void) 8%, oklch(0.115 0.01 250 / 0.55) 34%, transparent 56%),
      radial-gradient(120% 80% at 50% 32%, transparent 46%, oklch(0.1 0.01 250 / 0.66) 100%);
  }
  .hero-stage { align-items: flex-end; padding-bottom: clamp(70px, 16vh, 130px); }
  .hero-copy { max-width: none; }
  .hero-title, .hero-sub { max-width: 18ch; }
  .hero-static { top: 30%; left: 50%; width: min(58vw, 300px); }
}

/* ============================ WHAT WE CAUGHT ============================ */
.finds { list-style: none; margin: clamp(40px, 6vh, 72px) 0 0; padding: 0; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 5px; overflow: hidden; }
.find { background: var(--bg); padding: clamp(26px, 3.4vw, 46px); }
.find--feature { padding-block: clamp(34px, 5vw, 60px); }
.find-claim { font-size: clamp(1.35rem, 2.5vw, 2.05rem); margin: 0; color: var(--ink); max-width: 26ch; }
.find--feature .find-claim { font-size: clamp(1.7rem, 3.6vw, 2.9rem); max-width: 20ch; }
.find-claim b { color: var(--accent); font-weight: 400; }
.find-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(18px, 2.4vw, 28px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-1);
}
.chip code { color: var(--ink); word-break: break-all; }
.chip--token { color: var(--accent-dim); border-color: color-mix(in oklch, var(--accent-dim) 40%, var(--line)); }
.chip--muted { color: var(--ink-3); background: transparent; border-color: var(--line-soft); }

/* proof expander */
.find-proof { margin-top: 20px; }
.find-proof > summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--accent-dim);
  padding: 8px 0; user-select: none;
}
.find-proof > summary::-webkit-details-marker { display: none; }
.find-proof > summary::before { content: "+"; font-size: 15px; line-height: 1; color: var(--accent); transition: transform 0.2s var(--ease); }
.find-proof[open] > summary::before { transform: rotate(45deg); }
.find-proof > summary:hover { color: var(--accent); }
.find-proof__close { display: none; }
.find-proof[open] .find-proof__open { display: none; }
.find-proof[open] .find-proof__close { display: inline; }
.find-proof__body { padding-top: 8px; max-width: 60ch; }
.find-proof__lead { color: var(--ink-2); font-size: 0.95rem; margin: 0 0 18px; }

.rounds { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden; }
.rounds li { background: var(--surface-1); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.rounds-t { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.rounds-v { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

.proof-links { display: flex; flex-wrap: wrap; gap: 10px; }
.proof-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-1);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background 0.18s var(--ease);
}
.proof-link:hover { border-color: var(--accent-dim); color: var(--accent); background: var(--surface-2); }

/* ============================ LIVE ============================ */
.live-head { max-width: 52ch; margin-bottom: clamp(30px, 4.5vh, 54px); }
.live-head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: 0; }

.live-panel { border: 1px solid var(--line); border-radius: 6px; background: var(--surface-1); overflow: hidden; }
.live-panel__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2);
}
.live-status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.live-status__label { letter-spacing: 0.01em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); flex: none; }
[data-state="live"] .live-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.is-motion [data-state="live"] .live-dot { animation: livepulse 2.2s var(--ease-io) infinite; }
[data-state="connecting"] .live-dot { background: var(--med); }
@keyframes livepulse { 0%,100% { box-shadow: 0 0 0 2px var(--accent-glow); } 50% { box-shadow: 0 0 0 6px transparent; } }
.live-panel__hint { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }

.live-stream { list-style: none; margin: 0; padding: 6px 0; min-height: 240px; }
.lv-row {
  padding: 11px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.45; color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 12px;
}
.lv-row:last-child { border-bottom: none; }
.lv-row.is-new { animation: rowin 0.5s var(--ease); }
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); background: color-mix(in oklch, var(--accent) 8%, transparent); } to { opacity: 1; transform: none; } }

.lv-ident { flex: none; width: 26px; height: 26px; border-radius: 6px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.lv-blockie { width: 26px; height: 26px; display: block; }
.lv-blockie rect { fill: currentColor; }

.lv-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lv-line1 { display: flex; align-items: center; gap: 8px; }
.lv-line2 { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 12px; }

.lv-wallet { color: var(--ink); display: inline-flex; align-items: center; gap: 5px; }
.lv-pnl { color: var(--accent); font-weight: 500; }
.lv-verb { font-weight: 600; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.04em; }
.lv-verb.is-buy { color: var(--accent); }
.lv-verb.is-sell { color: #ff6a5c; }
.lv-verb.is-move { color: var(--ink-4); }
.lv-amt { color: var(--ink-2); }
.lv-ticon { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; background: var(--surface-3); vertical-align: -3px; }
.lv-sym { color: var(--ink); font-weight: 500; }
.lv-time { flex: none; color: var(--ink-4); font-size: 11px; white-space: nowrap; }
.lock-glyph { width: 12px; height: 12px; fill: none; stroke: var(--ink-4); stroke-width: 1.8; }
.lv-wallet:hover .lock-glyph { stroke: var(--accent); }

.lv-row--listen { color: var(--ink-3); font-size: 12px; letter-spacing: 0.01em; }
.lv-row--skel { border-color: var(--line-soft); }
.lv-skel { display: block; height: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; }
.is-motion .lv-skel { animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* teaser fallback */
.live-teaser { padding: 6px; }
.lv-teaser-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px; }
.lv-teaser-card { background: var(--bg); border: 1px solid var(--line-soft); border-radius: 4px; padding: 16px 18px; }
.lv-teaser-head { margin: 0 0 12px; font-size: 0.98rem; color: var(--ink); line-height: 1.45; }
.lv-teaser-head b { color: var(--accent); font-weight: 500; }
.lv-masks { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-mask { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding: 3px 8px; border: 1px solid var(--line); border-radius: 3px; }
.lv-more { font-family: var(--mono); font-size: 11px; color: var(--ink-4); align-self: center; }
.lv-empty { font-family: var(--mono); font-size: 12px; color: var(--ink-4); padding: 24px 16px; margin: 0; text-align: center; }

/* ============================ WHAT YOU CAN DO ============================ */
.uses { list-style: none; margin: clamp(40px, 6vh, 70px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 5px; overflow: hidden; }
.use { background: var(--bg); padding: clamp(26px, 3vw, 40px); }
.use-vis { width: 100%; height: 92px; display: block; margin-bottom: 22px; overflow: visible; }
.uv-edge { stroke: var(--line-strong); stroke-width: 1; }
.uv-node { fill: var(--ink-3); }
.uv-hub { fill: var(--accent); filter: drop-shadow(0 0 5px var(--accent-glow)); }
.uv-ring { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.uv-check { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px var(--accent-glow)); }
.use-line { margin: 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.5; }

/* ============================ $HS ============================ */
.hs-head { max-width: 44ch; }
.hs-head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 0; }
.hs-lead { margin: 18px 0 0; color: var(--ink-2); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.5; max-width: 40ch; }

.tiers { list-style: none; margin: clamp(38px, 5vh, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 5px; overflow: hidden; }
.tier { background: var(--bg); padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 6px; }
.tier--mid { background: var(--surface-1); }
.tier-name { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }
.tier-mult { font-family: var(--mono); font-size: 12px; color: var(--accent-dim); letter-spacing: 0.02em; }
.tier-line { color: var(--ink-3); font-size: 0.95rem; margin-top: 8px; line-height: 1.45; }

.hs-status { margin: clamp(30px, 4vh, 44px) 0 0; color: var(--ink-2); font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.55; max-width: 54ch; }

.hs-stats { display: flex; flex-wrap: wrap; gap: clamp(26px, 5vw, 64px); margin: clamp(34px, 4.5vh, 52px) 0 0; padding-top: clamp(26px, 3.5vh, 40px); border-top: 1px solid var(--line-soft); }
.hs-stats > div { display: flex; flex-direction: column-reverse; gap: 4px; }
.hs-stats dt { font-family: var(--mono); font-size: 12px; color: var(--ink-4); letter-spacing: 0.02em; }
.hs-stats dd { margin: 0; font-family: var(--mono); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--accent); font-variant-numeric: tabular-nums; }

/* ============================ FOOTER ============================ */
.footer { position: relative; border-top: 1px solid var(--line); padding: clamp(72px, 12vh, 150px) var(--gutter) clamp(30px, 5vh, 54px); overflow: hidden; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 34px; }
.footer-lead { font-size: clamp(1.9rem, 4.4vw, 3.3rem); margin: 0; }
.footer-wordmark { margin: clamp(40px, 8vh, 90px) 0 clamp(20px, 4vh, 40px); pointer-events: none; user-select: none; }
.footer-wordmark span {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.5rem, 15.5vw, 13rem); line-height: 0.8; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  white-space: nowrap; max-width: 100%;
}
.footer-dev {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px;
  font-family: var(--mono); font-size: 12px;
}
.footer-dev-label {
  color: var(--ink-4); text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px;
}
.footer-dev-link {
  color: var(--ink-2); text-decoration: none; transition: color .15s;
}
.footer-dev-link:hover { color: var(--accent); }
.footer-disclaimer { max-width: 72ch; color: var(--ink-4); font-size: 0.82rem; line-height: 1.6; margin: 0; }

/* ============================ REDUCED MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero-scrollcue { display: none; }
}

/* ============================ $HS TOKEN BLOCK ============================ */
.hs-token { margin: clamp(26px,5vh,44px) 0; display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.tk-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-1); font-family: var(--mono); }
.tk-label { color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.tk-addr { color: var(--ink); font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.tk-addr[data-empty="true"] { color: var(--ink-4); font-style: italic; }
.tk-copy { font-family: var(--mono); font-size: 12px; color: var(--ink-4); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: not-allowed; transition: color .15s, border-color .15s; }
.tk-copy:not(:disabled) { cursor: pointer; color: var(--ink-2); }
.tk-copy:not(:disabled):hover { color: var(--accent); border-color: var(--accent-dim); }
.tk-copy.is-copied { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.tk-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tk-note { color: var(--ink-4); font-size: 12.5px; max-width: 42ch; line-height: 1.5; }
.btn.is-disabled { pointer-events: none; background: var(--surface-2); color: var(--ink-4); border: 1px solid var(--line); }
.btn.is-disabled .btn-arrow { opacity: .5; }

/* ============================ APP MODAL (instrument panel) ============================ */
.app-modal { border: none; padding: 0; max-width: min(1060px, 93vw); width: 100%; max-height: 92vh; background: transparent; color: var(--ink); overflow: visible; }
.app-modal::backdrop { background: oklch(0.09 0.008 250 / 0.82); backdrop-filter: blur(7px); }
.is-motion .app-modal[open] { animation: amin .34s var(--ease); }
@keyframes amin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.am-panel { position: relative; background: var(--void); border: 1px solid var(--line-strong); border-radius: 3px; }
/* corner ticks - the instrument-frame motif from the page */
.am-corner { position: absolute; width: 10px; height: 10px; z-index: 4; }
.am-corner::before, .am-corner::after { content: ""; position: absolute; background: var(--accent-dim); }
.am-corner::before { width: 10px; height: 1px; }
.am-corner::after { width: 1px; height: 10px; }
.am-corner.tl { top: -1px; left: -1px; }
.am-corner.tr { top: -1px; right: -1px; }
.am-corner.tr::before { right: 0; } .am-corner.tr::after { right: 0; }
.am-corner.bl { bottom: -1px; left: -1px; }
.am-corner.bl::before { bottom: 0; } .am-corner.bl::after { bottom: 0; }
.am-corner.br { bottom: -1px; right: -1px; }
.am-corner.br::before { bottom: 0; right: 0; } .am-corner.br::after { bottom: 0; right: 0; }

.am-close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 30px; height: 30px; border: none; background: none; color: var(--ink-4); cursor: pointer; display: grid; place-items: center; transition: color .15s; }
.am-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.am-close:hover { color: var(--accent); }

.am-grid { display: grid; grid-template-columns: 0.86fr 1.14fr; border-radius: 3px; overflow: hidden; }
.am-access { padding: clamp(26px,4vw,44px); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.am-eyebrow { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); }
.am-title { font-size: clamp(2rem,3.2vw,2.9rem); line-height: 0.98; margin: 0; }
.am-copy { color: var(--ink-3); font-size: 14px; line-height: 1.6; margin: 0; max-width: 40ch; }
.am-tiers { list-style: none; margin: 2px 0; padding: 0; display: flex; flex-direction: column; }
.am-tiers li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name mult" "line line"; gap: 2px 12px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.am-tiers li:last-child { border-bottom: 1px solid var(--line-soft); }
.amt-name { grid-area: name; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.amt-mult { grid-area: mult; color: var(--accent); font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; }
.amt-line { grid-area: line; color: var(--ink-4); font-size: 12.5px; }
.am-foot { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.am-lock { width: 100%; justify-content: center; cursor: default; }

.am-preview { padding: clamp(26px,4vw,44px); display: flex; flex-direction: column; gap: 18px; background: var(--bg); min-width: 0; }
.am-stage { position: relative; aspect-ratio: 16/10; overflow: hidden; border: 1px solid var(--line); background: var(--void); display: grid; place-items: center; }
.am-shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; position: relative; z-index: 1; transition: opacity .26s ease; }
.am-shot--missing { opacity: 0; }
.am-placeholder { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; }
.am-stage.has-shot .am-placeholder { display: none; }
.am-ph-mark { width: 74px; height: 74px; opacity: 0.16; }
.am-ph-label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .22em; color: var(--ink-4); }
.am-thumbs { display: flex; gap: 7px; flex-wrap: wrap; }
.am-thumb { font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; color: var(--ink-3); background: none; border: 1px solid var(--line); border-radius: 2px; padding: 6px 13px; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.am-thumb:hover { color: var(--ink); border-color: var(--line-strong); }
.am-thumb.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.am-caption { display: flex; flex-direction: column; gap: 5px; min-height: 4.2em; }
.am-cap-title { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); }
.am-cap-text { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; max-width: 52ch; }
@media (max-width: 820px) {
  .app-modal { max-height: 90vh; }
  .am-panel { max-height: 90vh; overflow-y: auto; }
  .am-grid { grid-template-columns: 1fr; }
  .am-access { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ---- Reveal initial state: hidden pre-paint ONLY in motion mode, so gsap.to
   animates them in with no flash. Static/reduced modes never match → visible. ---- */
html.is-motion :is(
  #caught .section-title, #caught .section-note, .find,
  .live-head > *, .live-panel,
  #do .section-title, .use,
  .hs-head > *, .tier, .hs-token, .hs-status, .hs-stats,
  .footer-lead, .footer-inner .btn, .footer-dev, .footer-disclaimer
) { opacity: 0; }
