/* PRYBAR · every lock has a lever
   Motion rule: animate transform and opacity only (compositor friendly),
   and turn everything off for prefers-reduced-motion. */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #0b0a09;
  --bg-2: #12100e;
  --card: #161412;
  --card-2: #1c1916;
  --line: rgba(236, 230, 218, 0.08);
  --line-2: rgba(236, 230, 218, 0.16);
  --grid: rgba(236, 230, 218, 0.045);
  --text: #ece6da;
  --muted: #9b948a;
  --dim: #5f5952;
  --accent: #ff5b27;
  --accent-2: #ff9a4c;
  --accent-soft: rgba(255, 91, 39, 0.14);
  --ok: #8be28f;
  --bad: #ff6a5b;
  --radius: 22px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: 'Martian Mono', var(--mono);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --intro: 1.15s;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; }
::selection { background: var(--accent); color: #140804; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ------------------------------------------------------------ background */
.bg-grid {
  position: fixed;
  inset: -64px;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 25%, transparent 100%);
  animation: grid-drift 22s linear infinite;
}
@keyframes grid-drift { to { transform: translate3d(64px, 64px, 0); } }

.spotlight {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -2;
  width: 760px;
  height: 760px;
  margin: -380px 0 0 -380px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 91, 39, 0.09), transparent);
  transform: translate3d(50vw, 30vh, 0);
  will-change: transform;
}

.bg-grain {
  position: fixed;
  inset: -50%;
  z-index: 70;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-4%, 3%, 0); }
  50% { transform: translate3d(3%, -5%, 0); }
  75% { transform: translate3d(-2%, 4%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ----------------------------------------------------------------- intro */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  animation: intro-out 0.75s var(--ease) var(--intro) forwards;
}
.intro-inner { display: grid; justify-items: center; gap: 14px; }
.intro-logo { width: 54px; height: 54px; animation: intro-logo 1s var(--ease-spring) both; }
.intro-word { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.3em; animation: blink-in 0.5s steps(3) 0.15s both; }
.intro-bar { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.intro-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; animation: intro-fill 0.95s var(--ease) 0.1s forwards; }
.intro-note { font-size: 11px; color: var(--dim); letter-spacing: 0.18em; text-transform: uppercase; }
@keyframes intro-out { to { transform: translate3d(0, -100%, 0); visibility: hidden; } }
@keyframes intro-fill { to { transform: scaleX(1); } }
@keyframes intro-logo { from { transform: rotate(-120deg) scale(0.4); opacity: 0; } }
@keyframes blink-in { from { opacity: 0; } }
@keyframes show { to { opacity: 1; } }

/* entrance for hero pieces, timed after the intro */
.enter { opacity: 0; animation: enter 0.95s var(--ease) forwards; animation-delay: calc(var(--intro) + 0.15s + var(--i, 0) * 0.09s); }
@keyframes enter { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------- nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  animation: nav-in 0.8s var(--ease) calc(var(--intro) + 0.05s) both;
}
@keyframes nav-in { from { opacity: 0; transform: translate3d(0, -100%, 0); } }
.nav.scrolled { background: rgba(11, 10, 9, 0.74); border-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: 0.05em; font-size: 16px; }
.logo svg { width: 30px; height: 30px; transition: transform 0.6s var(--ease-spring); }
.logo:hover svg { transform: rotate(-24deg) scale(1.08); }
.nav-links { position: relative; display: flex; gap: 32px; font-size: 13px; color: var(--muted); }
.nav-links a { position: relative; transition: color 0.25s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links::before {
  content: '';
  position: absolute;
  left: -60px;
  right: -60px;
  bottom: -14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 154, 76, 0.85), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: beam 5s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes beam { 0% { background-position: -40% 0; } 60%, 100% { background-position: 140% 0; } }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color 0.25s, transform 0.4s var(--ease-spring), background-color 0.25s; }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.04); transform: rotate(-8deg) scale(1.06); }
.btn-wallet { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--text); color: #141210; font-weight: 500; font-size: 13px; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.btn-wallet:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -10px rgba(236, 230, 218, 0.5); }
.wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: #c9c1b4; transition: background-color 0.3s; }
.btn-wallet.connected .wallet-dot { background: #2fae47; box-shadow: 0 0 0 3px rgba(47, 174, 71, 0.2); }
.progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; will-change: transform; }

/* --------------------------------------------------------------- buttons */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.3s, box-shadow 0.3s, border-color 0.3s, color 0.3s;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn-accent { background: var(--accent); color: #1b0b05; box-shadow: 0 12px 34px -14px rgba(255, 91, 39, 0.75); }
.btn-accent:hover { background: #ff6d3b; box-shadow: 0 16px 44px -12px rgba(255, 91, 39, 0.9); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: rgba(236, 230, 218, 0.5); background: rgba(255, 255, 255, 0.05); }
.btn-cream { background: var(--text); color: #141210; }
.btn-cream:hover { background: #fff8ec; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[aria-disabled='true'],
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn.busy { pointer-events: none; }
.btn.busy::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
.x-ico { width: 13px; height: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 112px 0 96px; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(24px, 4vw, 64px); align-items: center; width: 100%; }

.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: rgba(22, 20, 18, 0.6); transition: border-color 0.3s, color 0.3s; }
.badge:hover { border-color: var(--accent); color: var(--text); }
.dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: 0.8; } to { transform: scale(3.2); opacity: 0; } }

.headline { margin: 26px 0 26px; font-family: var(--display); font-weight: 800; font-size: clamp(42px, 7.2vw, 104px); line-height: 0.96; letter-spacing: -0.02em; font-variation-settings: 'wdth' 87.5; cursor: default; }
.hl { display: block; white-space: nowrap; opacity: 0; animation: show 0.01s linear forwards; animation-delay: calc(var(--intro) + 0.1s); }
.hl-2 { color: var(--muted); font-size: 0.62em; letter-spacing: 0.02em; margin: 0.08em 0 0.04em; animation-delay: calc(var(--intro) + 0.3s); }
.hl-3 { background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 60%, #ffd2b0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; animation-delay: calc(var(--intro) + 0.5s); }

.hero-lede { color: var(--muted); max-width: 560px; font-size: 14.5px; line-height: 1.75; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* CA box */
.ca-box { position: relative; margin-top: 30px; max-width: 540px; padding: 12px; border-radius: 18px; background: rgba(22, 20, 18, 0.75); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ca-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle), transparent 0 68%, var(--accent) 80%, var(--accent-2) 86%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-angle 4.5s linear infinite;
  pointer-events: none;
}
@keyframes spin-angle { to { --angle: 360deg; } }
.ca-box.dropped { animation: ca-drop 0.9s var(--ease-spring); }
@keyframes ca-drop { 0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(255, 91, 39, 0.6); } 40% { transform: scale(1.025); } 100% { transform: none; box-shadow: 0 0 0 22px rgba(255, 91, 39, 0); } }
.ca-row { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.ca-ticker { color: var(--accent); font-weight: 700; font-size: 13.5px; flex: none; }
.ca-label { color: var(--dim); font-size: 11.5px; padding-left: 10px; border-left: 1px solid var(--line-2); flex: none; }
.ca-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13px; cursor: copy; }
.ca-value.pending { color: var(--muted); cursor: default; }
.ca-value.pending::after { content: ''; display: inline-block; width: 7px; height: 13px; margin-left: 4px; vertical-align: -2px; background: var(--accent); animation: caret 1s steps(1) infinite; }
.ca-copy { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease-spring); }
.ca-copy svg { width: 13px; height: 13px; }
.ca-copy:hover:not(:disabled) { color: var(--text); border-color: var(--text); }
.ca-copy:active:not(:disabled) { transform: scale(0.94); }
.ca-copy.copied { color: var(--ok); border-color: rgba(139, 226, 143, 0.5); background: rgba(139, 226, 143, 0.08); }
.ca-copy:disabled { opacity: 0.4; cursor: not-allowed; }
.ca-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

.burst { position: fixed; z-index: 95; pointer-events: none; font-size: 12px; font-weight: 700; color: var(--accent-2); animation: burst 0.8s var(--ease) forwards; }
@keyframes burst { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.6); opacity: 0; } }

/* hero art */
.hero-art { position: relative; width: 100%; max-width: 520px; justify-self: center; }
.hero-art::before { content: ''; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 91, 39, 0.25), transparent); filter: blur(30px); z-index: -1; animation: core 5s ease-in-out infinite; }
.seal-wrap { transition: transform 0.8s var(--ease); will-change: transform; }
.seal { width: 100%; height: auto; overflow: visible; cursor: pointer; }
.ring-spin { transform-box: view-box; transform-origin: 200px 200px; animation: spin 46s linear infinite; }
.ring-spin text { fill: var(--muted); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.25em; }
.ticks { transform-box: view-box; transform-origin: 200px 200px; animation: spin 70s linear infinite reverse; }
.core { transform-box: view-box; transform-origin: 200px 200px; animation: core 4s ease-in-out infinite; }
@keyframes core { 0%, 100% { opacity: 0.55; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.04); } }
.half { transform-box: view-box; transform-origin: 205px 335px; transition: transform 0.9s var(--ease-spring); }
.seal.cracking .half-l { transform: translate(-10px, 4px) rotate(-6deg); }
.seal.cracking .half-r { transform: translate(10px, -2px) rotate(5deg); }
.crack { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.3s var(--ease) calc(var(--intro) + 1s) forwards; }
.crack-glow { stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; animation: draw 1.3s var(--ease) calc(var(--intro) + 1s) forwards; transition: opacity 0.4s; }
.seal.cracking .crack-glow { opacity: 0.9; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lock { transform-box: view-box; transform-origin: 200px 220px; transition: transform 0.7s var(--ease-spring); }
.seal.cracking .lock { transform: translateY(-8px) scale(1.06); }
.shackle { transform-box: view-box; transform-origin: 220px 198px; transition: transform 0.6s var(--ease-spring); }
.seal.cracking .shackle { transform: translateY(-12px) rotate(28deg); }
.keyhole { transition: fill 0.3s; }
.seal.cracking .keyhole { fill: #ffd2b0; }
.commit { text-align: center; margin-top: 10px; font-size: 11px; letter-spacing: 0.14em; color: var(--dim); }
.commit b { color: var(--muted); font-weight: 500; letter-spacing: 0.06em; }

.bits { position: absolute; inset: 0; pointer-events: none; }
.bits span { position: absolute; font-size: 11px; color: var(--accent-2); opacity: 0; animation: bit-float var(--d, 7s) linear var(--delay, 0s) infinite; }
@keyframes bit-float { 0% { transform: translate3d(0, 20px, 0); opacity: 0; } 15% { opacity: 0.7; } 85% { opacity: 0.25; } 100% { transform: translate3d(var(--dx, 0), -90px, 0); opacity: 0; } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid var(--line-2); border-radius: 14px; opacity: 0; animation: show 0.6s linear calc(var(--intro) + 1.4s) forwards; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- ticker */
.ticker { position: relative; display: flex; align-items: center; height: 54px; border-block: 1px solid var(--line); background: rgba(18, 16, 14, 0.7); overflow: hidden; }
.ticker-label { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 9px; height: 100%; padding: 0 22px 0 var(--gutter); background: var(--bg-2); border-right: 1px solid var(--line); color: var(--accent); font-size: 11.5px; letter-spacing: 0.16em; font-weight: 700; }
.ping { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ping::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 1.6s ease-out infinite; }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee { display: flex; width: max-content; animation: marquee var(--dur, 50s) linear infinite; will-change: transform; }
.marquee.reverse { animation-direction: reverse; }
.marquee > .m-group { display: flex; flex: none; }
.ticker:hover .marquee,
.stack:hover .marquee { animation-play-state: paused; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.t-item { display: flex; align-items: center; gap: 10px; padding: 0 30px; white-space: nowrap; font-size: 13px; border-right: 1px solid var(--line); }
.t-type { font-size: 10px; letter-spacing: 0.12em; padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--muted); }
.t-BOUNTY { color: var(--accent); border-color: rgba(255, 91, 39, 0.45); }
.t-REBUILD { color: var(--accent-2); border-color: rgba(255, 154, 76, 0.45); }
.t-VERDICT,
.t-SYSTEM { color: var(--ok); border-color: rgba(139, 226, 143, 0.4); }
.t-time { color: var(--dim); }
.t-item.fresh { animation: fresh 2.4s var(--ease); }
@keyframes fresh { 0%, 30% { background: var(--accent-soft); } 100% { background: transparent; } }

/* -------------------------------------------------------------- sections */
.section { position: relative; padding: clamp(84px, 11vw, 140px) 0; }
.sec-head { max-width: 760px; }
.eyebrow { display: inline-block; color: var(--accent); font-size: 12px; letter-spacing: 0.14em; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -0.02em; margin: 12px 0 16px; font-variation-settings: 'wdth' 87.5; }
.lede { color: var(--muted); max-width: 640px; }

/* scroll reveal (only when JS is on, see boot.js) */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 0.09s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .sec-head[data-reveal] h2 { clip-path: polygon(-5% 120%, 105% 120%, 105% 120%, -5% 120%); transform: translate3d(0, 0.35em, 0); transition: clip-path 1.1s var(--ease) 0.12s, transform 1.1s var(--ease) 0.12s; }
.js .sec-head[data-reveal].in h2 { clip-path: polygon(-5% -20%, 105% -20%, 105% 120%, -5% 120%); transform: none; }

/* cards */
.card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--card), var(--bg-2)); }
.tilt { transition: transform 0.6s var(--ease), border-color 0.3s; will-change: transform; }
.tilt::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(420px circle at var(--px, 50%) var(--py, 50%), rgba(255, 91, 39, 0.13), transparent 45%); opacity: 0; transition: opacity 0.35s; }
.tilt:hover { border-color: var(--line-2); transition: transform 0.15s linear, border-color 0.3s; }
.tilt:hover::after { opacity: 1; }

/* how */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.step .card { height: 100%; padding: 28px; display: flex; flex-direction: column; }
.step-top { display: flex; justify-content: space-between; align-items: flex-start; }
.step-num { font-family: var(--display); font-weight: 800; font-size: 58px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: -webkit-text-stroke-color 0.4s, transform 0.5s var(--ease-spring); }
.step:hover .step-num { -webkit-text-stroke-color: var(--accent); transform: translateY(-3px); }
.icon { width: 30px; height: 30px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.hand-m,
.hand-h { transform-box: view-box; transform-origin: 12px 12px; }
.hand-m { animation: spin 6s linear infinite; }
.hand-h { animation: spin 48s linear infinite; }
.br-l,
.br-r,
.br-s { transition: transform 0.45s var(--ease-spring); transform-box: view-box; transform-origin: 12px 12px; }
.step:hover .br-l { transform: translateX(-2.5px); }
.step:hover .br-r { transform: translateX(2.5px); }
.step:hover .br-s { transform: rotate(18deg); }
.key { transform-box: view-box; transform-origin: 8px 12px; transition: transform 0.7s var(--ease-spring); }
.step:hover .key { transform: rotate(-90deg); }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.25; margin: 24px 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step p { color: var(--muted); font-size: 13.5px; line-height: 1.75; flex: 1; }
.step-link { align-self: flex-start; display: inline-flex; gap: 6px; margin-top: 22px; font-size: 13px; color: var(--accent-2); }
.step-link span { transition: transform 0.35s var(--ease-spring); }
.step-link:hover span { transform: translateX(5px); }
.soon-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 500; }
.step.soon .card { background: linear-gradient(180deg, rgba(22, 20, 18, 0.6), rgba(18, 16, 14, 0.4)); }
.step.soon h3,
.step.soon p { opacity: 0.7; }

/* stack */
.stack { border-block: 1px solid var(--line); padding: 24px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.stack-track span,
.stack-track .m-group span { padding: 0 34px; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--dim); white-space: nowrap; transition: color 0.3s; }
.stack-track span:hover { color: var(--text); }

/* numbers */
.split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.split-card { padding: 30px 28px; }
.big { display: flex; align-items: baseline; gap: 6px; font-family: var(--display); font-weight: 800; font-size: clamp(56px, 6vw, 84px); line-height: 1; font-variant-numeric: tabular-nums; }
.big em { font-style: normal; font-size: 0.34em; color: var(--accent); }
.label { display: block; margin: 14px 0 12px; color: var(--accent); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.split-card p { color: var(--muted); font-size: 13.5px; }
.bar { height: 3px; margin-top: 24px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) 0.35s; }
.in .bar span { transform: scaleX(var(--w, 0)); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; padding: 26px 28px; }
.stats strong { display: block; font-family: var(--display); font-weight: 700; font-size: 30px; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 12.5px; }

/* referee */
.ref-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 16px; margin-top: 52px; }
.replay { padding: 24px; }
.replay-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.replay-count b { color: var(--ok); font-variant-numeric: tabular-nums; display: inline-block; min-width: 4ch; text-align: right; }
.tag { font-size: 10.5px; letter-spacing: 0.12em; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.tag-accent { color: var(--accent); border-color: rgba(255, 91, 39, 0.45); background: var(--accent-soft); }
.tag-ok { color: var(--ok); border-color: rgba(139, 226, 143, 0.4); background: rgba(139, 226, 143, 0.07); }
.replay-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin: 30px 0; }
.corpus { padding: 30px 14px; border: 1px solid var(--line-2); border-radius: 14px; text-align: center; font-size: 10.5px; letter-spacing: 0.14em; line-height: 1.9; color: var(--muted); background: var(--bg-2); }
.lanes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.lane { min-width: 0; }
.lane-name { font-size: 11px; color: var(--dim); }
.lane-track { margin-top: 6px; padding: 7px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.chips { display: flex; gap: 8px; width: max-content; animation: chips 14s linear infinite; animation-play-state: paused; will-change: transform; }
.replay.playing .chips { animation-play-state: running; }
@keyframes chips { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
.chip { font-size: 11px; padding: 4px 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg-2); white-space: nowrap; }
.chip.fuzz { color: var(--accent-2); border-color: rgba(255, 154, 76, 0.45); }
.eq { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ok); color: var(--ok); font-size: 22px; font-weight: 700; }
.eq.hit { animation: hit 0.45s var(--ease); }
@keyframes hit { 50% { transform: scale(1.14); box-shadow: 0 0 0 10px rgba(139, 226, 143, 0); } 0% { box-shadow: 0 0 0 0 rgba(139, 226, 143, 0.45); } }
.stamp-pass { position: absolute; right: 22px; bottom: 20px; padding: 3px 14px; border: 3px solid var(--ok); border-radius: 10px; font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--ok); opacity: 0; transform: rotate(-9deg) scale(2.2); pointer-events: none; }
.stamp-pass.show { animation: stamp 0.5s var(--ease-spring) forwards; }
@keyframes stamp { to { opacity: 1; transform: rotate(-9deg) scale(1); } }

.terminal { background: #0e0d0b; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term-bar i:first-child { background: var(--accent); }
.term-bar span { margin-left: 10px; }
.term-body { padding: 20px 22px; font-size: 13px; line-height: 1.9; min-height: 340px; overflow-x: auto; }
.tl { display: block; white-space: pre; }
.term-anim .tl { clip-path: inset(0 100% 0 0); animation: type 0.45s steps(22) forwards; animation-delay: calc(var(--i) * 0.22s + 0.2s); }
.term-anim .tl:first-child { animation-duration: 0.9s; animation-timing-function: steps(32); }
@keyframes type { to { clip-path: inset(0 0 0 0); } }
.tl .k { display: inline-block; width: 12ch; color: var(--dim); }
.tl .p { color: var(--accent); }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.q { color: var(--accent-2); }
.caret { display: inline-block; width: 8px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line); }
.rule b { font-family: var(--display); color: var(--accent); font-size: 15px; }
.rule p { margin-top: 10px; color: var(--muted); font-size: 13.5px; }

/* vault */
.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 52px; }
.proof { padding: 22px; }
.proof-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.proof-id { font-family: var(--display); font-weight: 800; font-size: 20px; }
.proof dl { display: grid; }
.proof-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.proof-row dt { color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }
.proof-row dd { text-transform: uppercase; font-variant-numeric: tabular-nums; }
.proof-row dd.ok { color: var(--ok); }
.proof-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.proof-price { font-family: var(--display); font-weight: 700; font-size: 18px; }
.proof-price small { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 6px; }
.proof-stamp { position: absolute; left: 50%; top: 50%; padding: 2px 18px; border: 3px solid rgba(139, 226, 143, 0.2); border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: 0.04em; color: transparent; -webkit-text-stroke: 2px rgba(139, 226, 143, 0.22); transform: translate(-50%, -50%) rotate(-14deg) scale(1.9); opacity: 0; pointer-events: none; }
.proof-stamp.sealed { border-color: rgba(255, 91, 39, 0.25); -webkit-text-stroke-color: rgba(255, 91, 39, 0.3); }
.in .proof-stamp { animation: stamp-c 0.6s var(--ease-spring) 0.45s forwards; }
@keyframes stamp-c { to { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(1); } }
.sample { display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 5px; border: 1px dashed var(--line-2); color: var(--dim); font-size: 9.5px; letter-spacing: 0.12em; vertical-align: 1px; text-transform: uppercase; }
.vault-empty { padding: 40px 28px; color: var(--muted); text-align: center; }

/* board */
.board { margin-top: 44px; padding: 18px; }
.tabs { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.tabs button { position: relative; z-index: 1; padding: 8px 18px; border-radius: 999px; font-size: 13px; color: var(--muted); transition: color 0.3s; }
.tabs button[aria-selected='true'] { color: #141210; }
.tab-ind { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--text); transition: transform 0.5s var(--ease-spring), width 0.5s var(--ease-spring); }
.table-wrap { margin-top: 14px; overflow-x: auto; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; }
.table th { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.table td { padding: 15px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr { animation: row-in 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 0.06s); transition: background-color 0.2s; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.table tbody tr[data-verdict] { cursor: pointer; }
.table .empty { padding: 40px 14px; text-align: center; color: var(--muted); white-space: normal; }
@keyframes row-in { from { opacity: 0; transform: translate3d(-10px, 0, 0); } }

/* cta */
.cta { position: relative; padding: clamp(96px, 12vw, 170px) 0 90px; overflow: hidden; }
.cta::before { content: ''; position: absolute; left: 50%; top: 0; width: min(1000px, 140vw); height: 560px; transform: translate(-50%, -42%); background: radial-gradient(closest-side, rgba(255, 91, 39, 0.24), transparent); pointer-events: none; animation: core 6s ease-in-out infinite; }
.cta-title { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 7vw, 100px); line-height: 0.98; letter-spacing: -0.02em; font-variation-settings: 'wdth' 87.5; margin: 0; }
.cta-title span { display: block; }
.cta-title span + span { color: var(--accent); }
.cta-links { margin-top: 60px; border-top: 1px solid var(--line); }
.cta-row { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 28px 6px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.6vw, 32px); text-align: left; }
.cta-row::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent-soft), transparent 70%); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); z-index: -1; }
.cta-row:hover::before { transform: scaleX(1); }
.cta-row span:first-child { transition: transform 0.55s var(--ease); }
.cta-row:hover span:first-child { transform: translateX(16px); }
.arr { transition: transform 0.55s var(--ease-spring), color 0.3s; }
.cta-row:hover .arr { transform: translateX(-8px) rotate(-45deg); color: var(--accent); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.foot b { font-family: var(--display); color: var(--text); }
.foot p { max-width: 460px; color: var(--dim); }
.foot nav { display: flex; gap: 18px; }
.foot nav a:hover { color: var(--text); }

/* ---------------------------------------------------------------- modals */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 4, 3, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100svh - 32px); overflow: auto; padding: 30px 28px 28px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--card); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8); animation: modal-in 0.5s var(--ease-spring); }
.modal-wide { width: min(640px, 100%); }
@keyframes modal-in { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.96); } }
.modal-card h3 { font-family: var(--display); font-size: 24px; margin: 8px 0 8px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 18px; line-height: 1; color: var(--muted); transition: color 0.2s, border-color 0.2s, transform 0.4s var(--ease-spring); }
.modal-x:hover { color: var(--text); border-color: var(--text); transform: rotate(90deg); }
.modal-card label { display: block; margin-top: 16px; font-size: 12px; color: var(--muted); }
.modal-card input:not([type='file']) { display: block; width: 100%; height: 48px; margin-top: 7px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s; }
.modal-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.file-drop { position: relative; display: block; margin-top: 16px; padding: 22px 16px; border: 1.5px dashed var(--line-2); border-radius: 14px; text-align: center; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.file-drop:hover,
.file-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-text { display: grid; gap: 4px; color: var(--text); font-size: 13px; }
.file-text small { color: var(--dim); font-size: 11.5px; }
.form-err { min-height: 22px; margin: 14px 0 6px; color: var(--bad); font-size: 12.5px; }
.shake { animation: shake 0.42s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.keybox { display: block; margin: 16px 0; padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 12.5px; word-break: break-all; color: var(--accent-2); }
.row-gap { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.term-inline { min-height: 0; margin-top: 16px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: #0e0d0b; }

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 8px; justify-items: end; }
.toast { max-width: min(360px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); background: var(--card-2); font-size: 13px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); animation: toast-in 0.45s var(--ease-spring); }
.toast.ok { border-left-color: var(--ok); }
.toast.bad { border-left-color: var(--bad); }
.toast.out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translate3d(30px, 0, 0); } }
@keyframes toast-out { to { opacity: 0; transform: translate3d(30px, 0, 0); } }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 380px; margin-top: 12px; }
  .steps,
  .split { grid-template-columns: minmax(0, 1fr); }
  .ref-grid { grid-template-columns: minmax(0, 1fr); }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .nav-inner { height: 64px; }
  .btn-wallet { padding: 0 14px; }
  .hero { padding-top: 96px; }
  .hero-cta .btn { flex: 1 1 0; padding: 0 14px; }
  .ca-actions .btn { flex: 1 1 0; }
  .ca-label { display: none; }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .replay-body { grid-template-columns: minmax(0, 1fr) auto; }
  .corpus { display: none; }
  .term-body { font-size: 11.5px; padding: 16px; }
  .tl .k { width: 11ch; }
  .stamp-pass { font-size: 20px; }
  .scroll-cue { display: none; }
  .ticker-label { padding: 0 14px 0 16px; }
}

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .intro { display: none; }
  .marquee { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .sec-head[data-reveal] h2 { clip-path: none; transform: none; }
}
