/* ==========================================================================
   OpenPerps · ENGINE
   --------------------------------------------------------------------------
   A new design direction: the product is a machine that moves money, so the
   pages are built as an instrument around a live 3D model of that machine.
   Nothing here is decorative — every surface is either the model, a reading
   off the model, or a control.

   Brand carried over unchanged from openperps.co: the two-arc mark, the
   plate palette (blue = long, pink = short, overprint = confirmed,
   proof yellow = pending) and the three brand typefaces.
   Dropped: the letterpress furniture (press sheets, crop marks, slug lines,
   halftone, plate-registration splitting).
   ========================================================================== */

/* ---------- brand webfonts (same files production ships) ---------- */
@font-face { font-family: "Archivo XC"; src: url("fonts/archivo-xc-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Archivo XC"; src: url("fonts/archivo-xc-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("fonts/host-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("fonts/host-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("fonts/host-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("fonts/martian-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("fonts/martian-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* ground */
  --void: #050608;
  --surf: #0c0e12;
  --surf-2: #11141a;
  --surf-3: #171b22;
  --line: #1d212a;
  --line-2: #2b3039;

  /* ink */
  --text: #f2f3ee;      /* brand paper */
  --text-2: #9ca2ad;
  --text-3: #686e78;

  /* brand chroma — semantic */
  --long: #2e9be6;        /* blue plate, night-safe */
  --long-2: #7cc6f4;
  --long-deep: #0078bf;
  --short: #ff48b0;       /* pink plate */
  --short-2: #ff8fcd;
  --confirmed: #002284;   /* overprint: live + paid */
  --confirmed-up: #2f54d8;
  --pending: #ffe800;     /* proof yellow: queued, attention */
  --ink: #15161a;

  --f-display: "Archivo XC", "Arial Narrow", Impact, sans-serif;
  --f-text: "Host Grotesk", system-ui, Helvetica, Arial, sans-serif;
  --f-data: "Martian Mono", ui-monospace, Menlo, monospace;

  --pad: clamp(16px, 4vw, 48px);
  --max: 1380px;
  --r: 18px;
  --r-sm: 11px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--void); color: var(--text);
  font-family: var(--f-text); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip; color-scheme: dark;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--short) 60%, transparent); text-underline-offset: 4px; }
::selection { background: var(--short); color: #fff; }
:focus-visible { outline: 2px solid var(--short); outline-offset: 3px; }

/* page-wide hairline grid — the graph paper the machine is drawn on */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 42% at 78% 4%, rgba(46,155,230,0.13), transparent 70%),
    radial-gradient(52% 38% at 12% 22%, rgba(255,72,176,0.09), transparent 72%),
    radial-gradient(70% 50% at 50% 104%, rgba(47,84,216,0.1), transparent 72%);
}
/* film grain keeps the big flat fields from banding */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
.d { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.018em; line-height: 0.86; }
.m { font-family: var(--f-data); font-weight: 400; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.lab { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3); }
.t2 { color: var(--text-2); }
.t3 { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bal { text-wrap: balance; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

/* ---------- shell ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 1; }
.sec { padding-block: clamp(76px, 12vh, 164px); position: relative; z-index: 1; }
.sec--tight { padding-block: clamp(52px, 8vh, 104px); }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent); }

.head { max-width: 980px; margin-bottom: clamp(32px, 5vw, 64px); }
.head .tag { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.head h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.015em; line-height: 0.88;
  font-size: clamp(36px, 5.4vw, 86px); }
.head h2 .alt { color: var(--text-3); }
.head .sub { margin-top: 20px; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.6; color: var(--text-2); max-width: 66ch; }

/* numbered section tag */
.tag { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.tag b { color: var(--long-2); font-weight: 400; }

/* ---------- surfaces ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0) 38%), var(--surf);
  border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.3vw, 32px);
  position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 24px 60px -40px rgba(0,0,0,0.9);
}
.card--glass { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 45%), rgba(10,12,16,0.72); backdrop-filter: blur(14px); }
.card--flat { background: var(--surf); }
.card h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(20px, 1.9vw, 30px); line-height: 0.95; letter-spacing: -0.01em; }
.card p { color: var(--text-2); line-height: 1.6; }
.card > * + * { margin-top: 12px; }

.grid { display: grid; gap: clamp(12px, 1.4vw, 18px); }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1040px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: minmax(0,1fr); } }

/* ---------- controls ---------- */
.btn {
  --bg: var(--text); --fg: var(--ink); --bd: var(--text);
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 13px 20px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: 999px;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 17px; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(255,72,176,0.6); }
.btn--hot { --bg: linear-gradient(100deg, var(--short), #ff6fc2 46%, var(--long) 140%); --fg: #15030d; --bd: transparent; }
.btn--hot:hover { box-shadow: 0 18px 44px -16px rgba(255,72,176,0.75); }
.btn .ar { font-family: var(--f-data); font-size: 13px; transition: transform 0.3s var(--ease); }
.btn:hover .ar { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--text); --bd: var(--line-2); }
.btn--ghost:hover { --bd: var(--text); box-shadow: 0 10px 28px -14px rgba(46,155,230,0.5); }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 15px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text-2);
  font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill--long { color: var(--long-2); border-color: color-mix(in srgb, var(--long) 45%, transparent); background: rgba(46,155,230,0.08); }
.pill--short { color: var(--short-2); border-color: color-mix(in srgb, var(--short) 45%, transparent); background: rgba(255,72,176,0.08); }
.pill--live { color: #cfd9ff; border-color: var(--confirmed-up); background: color-mix(in srgb, var(--confirmed) 72%, transparent); }
.pill--pending { color: var(--ink); border-color: var(--pending); background: var(--pending); font-weight: 500; }
.pill--off { color: var(--text-3); border-color: var(--line); }
.pill--mark .dot { animation: beat 1.9s var(--ease-io) infinite; }
@keyframes beat { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; } 50% { opacity: 0.45; box-shadow: 0 0 0 4px rgba(255,72,176,0.12); } }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 40; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.hdr.stuck { background: rgba(7,8,10,0.82); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 14px; padding-block: 13px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand svg { height: 21px; width: auto; }
.hdr nav { margin-left: auto; display: flex; align-items: center; gap: clamp(8px, 1.6vw, 22px); }
.hdr nav a:not(.btn) { font-size: 14.5px; color: var(--text-2); text-decoration: none; padding: 10px 2px; }
.hdr nav a:not(.btn):hover { color: var(--text); }
.hdr nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--short); }
@media (max-width: 760px) { .hdr nav { gap: 14px; } .hdr nav a:not(.btn) { font-size: 13.5px; } }
@media (max-width: 560px) {
  .hdr nav a.xs-off { display: none; }
  .hdr nav { gap: 11px; }
  .hdr .btn { font-size: 14px; padding: 8px 12px; min-height: 38px; }
  .hdr .btn .ar { display: none; }
}
/* the wordmark already goes home, so the Home link is the first to go */
@media (max-width: 520px) { .hdr nav a.home-off { display: none; } .brand img { height: 18px; width: auto; } }

/* ---------- 3D stages ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stage canvas { width: 100%; height: 100%; }
/* keep the model clear of the fixed header */
.hero-wrap .stage { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 118px); mask-image: linear-gradient(180deg, transparent 0, #000 118px); }
.stage-local { position: absolute; inset: 0; z-index: 0; }
.stage-local canvas { width: 100%; height: 100%; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-family: var(--f-data); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; align-content: center; padding-block: 112px 56px; position: relative; z-index: 1; }
.hero::after { /* legibility scrim over the 3D model */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(7,8,10,0.97) 0%, rgba(7,8,10,0.9) 34%, rgba(7,8,10,0.45) 56%, rgba(7,8,10,0) 78%),
              linear-gradient(0deg, var(--void) 0%, rgba(7,8,10,0) 42%);
}
.hero-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.hero h1 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.85;
  font-size: clamp(46px, 7.6vw, 136px); max-width: 17ch; }
.hero h1 .sh { color: var(--short); }
.hero h1 .ln { color: var(--long-2); }
.hero-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 400px); gap: clamp(26px, 4vw, 72px); align-items: end; margin-top: clamp(26px, 4vw, 48px); }
.hero-lede { font-size: clamp(16.5px, 1.3vw, 20px); line-height: 1.6; color: var(--text-2); max-width: 54ch; }
.hero-lede b { color: var(--text); font-weight: 500; }
.hero-cta { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 28px; }
.hero-read { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.hero-read > div { background: rgba(10,12,16,0.78); backdrop-filter: blur(10px); padding: 13px 15px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.hero-read dt { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.hero-read dd { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 25px; line-height: 1; text-transform: uppercase; }
.hero-read dd.sm { font-family: var(--f-data); font-weight: 400; font-size: 12.5px; text-transform: none; letter-spacing: 0.04em; flex: 1 1 100%; color: var(--text-2); }
.hero-read dd.ln { color: var(--long-2); } .hero-read dd.sh { color: var(--short); } .hero-read dd.pd { color: var(--pending); }
.hero-foot { display: flex; align-items: center; gap: 10px; margin-top: clamp(30px, 5vh, 60px); color: var(--text-3); font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-foot i { width: 1px; height: 24px; background: linear-gradient(var(--short), transparent); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { 0%, 100% { opacity: 0.2; transform: scaleY(0.4); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
@media (max-width: 900px) { .hero-body { grid-template-columns: minmax(0,1fr); align-items: start; } }

/* ---------- the disclosure (never buried) ---------- */
.warn { background: var(--pending); color: var(--ink); position: relative; z-index: 2; }
.warn-in { display: grid; grid-template-columns: auto minmax(0,1fr); gap: clamp(18px, 3vw, 48px); align-items: start; padding-block: 28px; }
.warn h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(24px, 3vw, 42px); line-height: 0.9; max-width: 8em; }
.warn p { font-size: clamp(15px, 1.1vw, 17.5px); line-height: 1.55; max-width: 74ch; font-weight: 500; }
.warn p + p { margin-top: 10px; }
.warn mark { background: var(--ink); color: var(--pending); padding: 0 5px; border-radius: 3px; }
.warn .no { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.warn .no span { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid rgba(21,22,26,0.35); border-radius: 999px; padding: 4px 10px; text-decoration: line-through; }
@media (max-width: 720px) { .warn-in { grid-template-columns: minmax(0,1fr); } }

/* ---------- scrub rig: sticky 3D model + stepped copy ---------- */
.rig { position: relative; }
.rig-stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.rig-stick .stage-local { inset: 0; }
.rig-stick::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,8,10,0.92) 0%, rgba(7,8,10,0.55) 38%, rgba(7,8,10,0) 62%); }
.rig-ui { position: absolute; inset: 0; display: grid; align-content: center; pointer-events: none; }
.rig-ui > .wrap { pointer-events: auto; }
.rig-panel { max-width: 540px; }
.rig-steps { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 5px; margin-bottom: 24px; }
.rig-steps > div { border-top: 2px solid var(--line); padding-top: 9px; display: grid; gap: 4px;
  font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease); }
.rig-steps > div b { font-family: var(--f-display); font-weight: 900; font-size: 15px; letter-spacing: 0; }
.rig-steps > div.done { color: var(--text-2); border-color: color-mix(in srgb, var(--long) 70%, transparent); }
.rig-steps > div.on { color: var(--text); border-color: var(--short); }
.rig-who { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--short); margin-bottom: 12px; }
.rig-h { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.015em; line-height: 0.9;
  font-size: clamp(30px, 4vw, 62px); min-height: 1.8em; }
.rig-p { margin-top: 14px; color: var(--text-2); line-height: 1.6; max-width: 50ch; min-height: 4.8em; }
.rig-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.rig-ticker { display: grid; gap: 1px; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--line); max-width: 460px; }
.rig-ticker > div { background: rgba(10,12,16,0.86); backdrop-filter: blur(8px); padding: 10px 13px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rig-ticker dt { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.rig-ticker dd { margin: 0; font-family: var(--f-data); font-size: 14px; font-variant-numeric: tabular-nums; }
.rig-ticker dd.ln { color: var(--long-2); } .rig-ticker dd.sh { color: var(--short); } .rig-ticker dd.pd { color: var(--pending); }
@media (max-width: 760px) { .rig-steps { grid-template-columns: repeat(3, minmax(0,1fr)); } .rig-stick::after { background: linear-gradient(0deg, rgba(7,8,10,0.95) 10%, rgba(7,8,10,0.55) 60%, rgba(7,8,10,0.2)); } }

/* ---------- queue (motion graphics) ---------- */
.q { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 44px); align-items: start; }
.q-stage { border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); overflow: hidden; }
.q-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.q-bar .lab { margin-right: auto; }
.q-body { padding: 18px 15px; display: grid; gap: 18px; }
.q-pool { display: grid; gap: 8px; }
.q-pool .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--f-data); font-size: 12px; }
.q-tank { height: 54px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surf-2); position: relative; overflow: hidden; }
.q-tank .fill { position: absolute; inset: auto 0 0 0; height: 0%;
  background: linear-gradient(0deg, color-mix(in srgb, var(--long-deep) 85%, transparent), color-mix(in srgb, var(--long) 55%, transparent));
  transition: height 0.9s var(--ease); }
.q-tank .fill::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--long-2); box-shadow: 0 0 14px var(--long); }
.q-tank .amt { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: 26px; }
.q-slips { display: grid; gap: 7px; }
.q-slip { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 11px 13px; background: var(--surf-2);
  font-family: var(--f-data); font-size: 12.5px; transition: all 0.5s var(--ease); }
.q-slip .age { color: var(--text-3); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.q-slip .who { color: var(--text); }
.q-slip .amt { font-variant-numeric: tabular-nums; }
.q-slip[data-state="head"] { border-color: var(--pending); background: color-mix(in srgb, var(--pending) 11%, var(--surf-2)); }
.q-slip[data-state="head"] .amt { color: var(--pending); }
.q-slip[data-state="paid"] { border-color: var(--confirmed-up); background: color-mix(in srgb, var(--confirmed) 45%, var(--surf-2)); }
.q-slip[data-state="paid"] .amt { color: #cfd9ff; }
.q-slip[data-state="gone"] { opacity: 0; transform: translateX(26px) scale(0.97); }
.q-empty { color: var(--text-3); font-family: var(--f-data); font-size: 12px; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); text-align: center; }
.q-ctl { display: flex; gap: 8px; flex-wrap: wrap; padding: 13px 15px; border-top: 1px solid var(--line); }
.q-side { display: grid; gap: 14px; }
@media (max-width: 1000px) { .q { grid-template-columns: minmax(0,1fr); } }

/* ---------- waterfall ---------- */
.fall { list-style: none; padding: 0; margin: 0; counter-reset: f; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fall li { counter-increment: f; background: var(--surf); padding: clamp(18px, 2vw, 26px); display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: clamp(14px, 2vw, 26px); align-items: center; transition: background 0.3s; }
.fall li::before { content: counter(f); font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 3.4vw, 50px); line-height: 0.85; color: var(--line-2); transition: color 0.4s; }
.fall li.on { background: var(--surf-2); }
.fall li.on::before { color: var(--long); }
.fall li b { display: block; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(19px, 1.8vw, 28px); line-height: 0.95; margin-bottom: 6px; }
.fall li p { color: var(--text-2); line-height: 1.55; font-size: 15px; max-width: 70ch; }
.fall li .state { justify-self: end; }
@media (max-width: 760px) { .fall li { grid-template-columns: auto minmax(0,1fr); } .fall li .state { grid-column: 2; justify-self: start; } }

/* ---------- ledger (worked example) ---------- */
.led { border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); overflow: hidden; }
.led-top { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.tabs { display: inline-flex; gap: 4px; background: var(--surf-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.tab { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 14px; min-height: 36px;
  background: transparent; color: var(--text-2); border: 0; border-radius: 999px; cursor: pointer; transition: all 0.25s; }
.tab[aria-selected="true"] { background: var(--text); color: var(--ink); }
.led-rows > div { display: grid; grid-template-columns: 24px minmax(0, 1.7fr) repeat(3, minmax(0, 0.8fr)); gap: 14px; padding: 14px 15px; border-top: 1px solid var(--line); align-items: baseline; }
.led-rows > div:first-child { border-top: 0; }
.led-rows .hd { border-top: 0; background: var(--surf-2); padding-block: 9px; }
.led-rows .hd span { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.led-rows .hd span:not(:nth-child(-n+2)) { text-align: right; }
.led .n { font-family: var(--f-data); font-size: 11px; color: var(--text-3); }
.led .what { line-height: 1.45; }
.led .what small { display: block; color: var(--text-3); font-size: 13px; margin-top: 3px; }
.led .num { font-family: var(--f-data); font-size: 14.5px; font-variant-numeric: tabular-nums; text-align: right; }
.led .num.pool { color: var(--long-2); } .led .num.q { color: var(--pending); } .led .num.me { color: var(--text); }
.led .num.z { color: var(--text-3); }
.led .tot { background: color-mix(in srgb, var(--confirmed) 30%, var(--surf)); border-top: 1px solid var(--confirmed-up) !important; }
.led-foot { padding: 13px 15px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13.5px; line-height: 1.55; }
@media (max-width: 820px) {
  .led-rows > div { grid-template-columns: 22px minmax(0,1fr) minmax(0,0.9fr); }
  .led-rows .hd span:nth-child(n+4), .led-rows > div:not(.hd) .num:nth-last-child(-n+1) { display: none; }
}

/* ---------- leverage gates ---------- */
.gates { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.gate { background: var(--surf); padding: clamp(18px, 2vw, 26px); display: grid; align-content: start; gap: 13px; }
.gate .cap { font-family: var(--f-display); font-weight: 900; font-size: clamp(40px, 4.6vw, 70px); line-height: 0.82; }
.gate:nth-child(1) .cap { color: var(--text-3); }
.gate:nth-child(2) .cap { color: var(--long-2); }
.gate:nth-child(3) .cap { color: var(--text); }
.gate:nth-child(4) .cap { color: var(--short); }
.gate .cls { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.gate p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.gate .need { display: grid; gap: 7px; border-top: 1px solid var(--line); padding-top: 13px; }
.runway { display: grid; gap: 5px; }
.runway .track { height: 30px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surf-2); position: relative; overflow: hidden; }
.runway .track i { position: absolute; inset: 0 auto 0 0; width: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--short) 60%, transparent), color-mix(in srgb, var(--short) 18%, transparent));
  border-right: 1px solid var(--short); transition: width 1.1s var(--ease); }
.runway .track em { position: absolute; left: 10px; top: 50%; translate: 0 -50%; font-style: normal; font-family: var(--f-data); font-size: 12px; color: var(--text); }
.runway .track i[style*="width: 0"] + em { color: var(--text-3); }
@media (max-width: 1040px) { .gates { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .gates { grid-template-columns: minmax(0,1fr); } }

/* ---------- lifecycle states ---------- */
.states { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; counter-reset: s; }
.states > div { counter-increment: s; background: var(--surf); padding: clamp(16px, 1.8vw, 24px); display: grid; align-content: start; gap: 11px; transition: background 0.3s; }
.states > div:hover { background: var(--surf-2); }
.states .no { font-family: var(--f-data); font-size: 10.5px; color: var(--text-3); letter-spacing: 0.1em; }
.states h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(19px, 1.9vw, 27px); line-height: 0.95; }
.states p { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.states .glyph { width: 100%; height: 54px; }
@media (max-width: 1100px) { .states { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 640px) { .states { grid-template-columns: minmax(0,1fr); } }

/* ---------- lists ---------- */
.lst { list-style: none; padding: 0; margin: 0; display: grid; }
.lst li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); color: var(--text-2); line-height: 1.55; }
.lst li:first-child { border-top: 0; }
.lst li::before { content: ""; position: absolute; left: 4px; top: 20px; width: 9px; height: 9px; border-radius: 2px;
  background: var(--long); box-shadow: 0 0 10px color-mix(in srgb, var(--long) 60%, transparent); }
.lst--no li::before { background: var(--short); box-shadow: none; opacity: 0.8; border-radius: 1px; transform: rotate(45deg); }
.lst--pend li::before { background: var(--pending); box-shadow: 0 0 10px rgba(255,232,0,0.4); }
.lst li b { color: var(--text); font-weight: 500; }

/* ---------- audience ---------- */
.aud > div { display: grid; gap: 12px; align-content: start; }
.aud .who { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(23px, 2.3vw, 36px); line-height: 0.92; }
.aud .dist { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--long-2); border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- waitlist ---------- */
.go { padding-block: clamp(84px, 14vh, 180px); position: relative; z-index: 1; }
.go h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.85;
  font-size: clamp(54px, 9vw, 150px); }
.form { display: grid; gap: 11px; margin-top: 30px; max-width: 680px; }
.form-row { display: flex; gap: 11px; flex-wrap: wrap; }
.form-row > input { flex: 1 1 250px; }
.form-row > select { flex: 0 1 230px; }
.form input, .form select { font: 16px var(--f-text); padding: 13px 15px; min-height: 48px; background: var(--surf-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 999px; }
.form select { border-radius: 999px; }
.form .chk { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--text-2); line-height: 1.5; cursor: pointer; padding: 6px 0; }
.form .chk input { width: 18px; height: 18px; accent-color: var(--short); flex: none; margin-top: 2px; }
.form .btn { justify-self: start; }
.form .note { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.sent { border: 1px solid var(--confirmed-up); background: color-mix(in srgb, var(--confirmed) 40%, var(--surf)); border-radius: var(--r); padding: 18px; margin-top: 18px; }
.sent b { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 26px; display: block; margin-bottom: 6px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 40px 30px; position: relative; z-index: 1; background: var(--void); }
.foot-mark svg { width: 100%; height: auto; opacity: 0.9; }
.foot-nav { display: flex; gap: 10px 24px; flex-wrap: wrap; margin-top: 28px; font-family: var(--f-data); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.foot-nav a { color: var(--text-2); text-decoration: none; }
.foot-nav a:hover { color: var(--text); }
.foot-end { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }

/* ---------- reveal ---------- */
[data-rv] { opacity: 0; transform: translateY(20px); }
[data-rv].in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.no-js [data-rv], .reduced [data-rv] { opacity: 1; transform: none; }

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

/* very narrow screens: a long status pill must wrap rather than push the page */
@media (max-width: 480px) {
  .pill { white-space: normal; }
}

/* on phones the model sits behind the copy, so the scrim has to run vertically */
@media (max-width: 760px) {
  .hero::after, .rm-hero::after {
    background: linear-gradient(0deg, var(--void) 0%, rgba(7,8,10,0.94) 42%, rgba(7,8,10,0.72) 68%, rgba(7,8,10,0.25) 100%);
  }
}

/* ==========================================================================
   v1.2 — trader-first landing components
   The old scroll-scrubbed walkthrough is gone: one interactive demo now does
   the explaining, and the protocol depth moved into the docs.
   ========================================================================== */

/* ---------- benefit tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(12px, 1.4vw, 18px); }
.tile { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 44%), var(--surf);
  border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.2vw, 30px); display: grid; gap: 12px; align-content: start;
  transition: border-color 0.3s, transform 0.3s var(--ease); }
.tile:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tile .ico { width: 42px; height: 42px; }
.tile h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(21px, 2vw, 30px); line-height: 0.95; }
.tile p { color: var(--text-2); line-height: 1.58; }
.tile .foot { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
  border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 860px) { .tiles { grid-template-columns: minmax(0,1fr); } }

/* ---------- the 30-second demo ---------- */
.demo { border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); overflow: hidden; }
.demo-top { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.demo-top .lab { margin-left: auto; }
.demo-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.demo-stage { position: relative; min-height: 400px; border-left: 1px solid var(--line); background: #0a0c10; }
.demo-stage .stage-local { inset: 0; }
.demo-side { padding: clamp(18px, 2.2vw, 28px); display: grid; align-content: start; gap: 18px; }
.seg { display: inline-flex; gap: 4px; background: var(--surf-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { font-family: var(--f-data); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 15px; min-height: 38px;
  background: transparent; color: var(--text-2); border: 0; border-radius: 999px; cursor: pointer; transition: all 0.25s; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--ink); }
.seg.long button[aria-pressed="true"][value="long"] { background: var(--long); color: #04121c; }
.seg.long button[aria-pressed="true"][value="short"] { background: var(--short); color: #2a0318; }
.demo-setup { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.demo-setup > div { background: var(--surf-2); padding: 10px 13px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.demo-setup dt { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.demo-setup dd { margin: 0; font-family: var(--f-data); font-size: 14px; font-variant-numeric: tabular-nums; }
.demo-story { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--text); }
.demo-story b { color: var(--long-2); }
.demo-story.sh b { color: var(--short); }
.demo-out { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-sm); overflow: hidden; }
.demo-out > div { background: var(--surf); padding: 13px 14px; display: grid; gap: 5px; }
.demo-out dt { font-family: var(--f-data); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.demo-out dd { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(22px, 2.2vw, 30px); line-height: 1; }
.demo-out dd small { display: block; font-family: var(--f-text); font-weight: 400; font-size: 12.5px; text-transform: none; color: var(--text-3); margin-top: 6px; line-height: 1.4; }
.demo-out .ln dd { color: var(--long-2); } .demo-out .sh dd { color: var(--short); }
.demo-out .pd dd { color: var(--pending); } .demo-out .ok dd { color: #cfd9ff; }
.demo-note { font-size: 13.5px; line-height: 1.55; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 14px; }
.demo-q { display: grid; gap: 7px; }
.demo-q .slip { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; font-family: var(--f-data); font-size: 12.5px;
  border: 1px solid var(--pending); background: color-mix(in srgb, var(--pending) 11%, var(--surf-2)); border-radius: var(--r-sm); padding: 11px 13px; }
.demo-q .slip .amt { color: var(--pending); }
.demo-q .slip.paid { border-color: var(--confirmed-up); background: color-mix(in srgb, var(--confirmed) 45%, var(--surf-2)); }
.demo-q .slip.paid .amt { color: #cfd9ff; }
@media (max-width: 980px) { .demo-main { grid-template-columns: minmax(0,1fr); } .demo-stage { border-left: 0; border-top: 1px solid var(--line); min-height: 320px; order: -1; } }

/* ---------- rewards + staking ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; counter-reset: s3; }
.steps3 > div { counter-increment: s3; background: var(--surf); padding: clamp(18px, 2.1vw, 28px); display: grid; gap: 10px; align-content: start; position: relative; }
.steps3 > div::before { content: "0" counter(s3); font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.12em; color: var(--text-3); }
.steps3 h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(19px, 1.8vw, 27px); line-height: 0.96; }
.steps3 p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.steps3 > div:nth-child(1) h3 { color: var(--long-2); }
.steps3 > div:nth-child(2) h3 { color: var(--pending); }
.steps3 > div:nth-child(3) h3 { color: var(--short); }
@media (max-width: 860px) { .steps3 { grid-template-columns: minmax(0,1fr); } }

.two-bal { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(12px, 1.4vw, 18px); }
.balcard { border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2vw, 26px); display: grid; gap: 11px; align-content: start; background: var(--surf); }
.balcard.locked { border-color: color-mix(in srgb, var(--pending) 45%, transparent); background: color-mix(in srgb, var(--pending) 5%, var(--surf)); }
.balcard h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(18px, 1.7vw, 25px); line-height: 0.97; }
.balcard p { color: var(--text-2); font-size: 14.5px; line-height: 1.58; }
.balcard .tagline { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 760px) { .two-bal { grid-template-columns: minmax(0,1fr); } }

/* ---------- market creator ---------- */
.creator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 46px); align-items: start; }
.ca-box { border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); overflow: hidden; }
.ca-bar { padding: 12px 15px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ca-input { display: flex; gap: 10px; padding: 15px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ca-input code { flex: 1 1 220px; font-family: var(--f-data); font-size: 12.5px; background: var(--surf-2); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 11px 15px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-rows { display: grid; }
.ca-row { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 13px 15px; border-top: 1px solid var(--line); }
.ca-row:first-child { border-top: 0; }
.ca-row .tick { font-family: var(--f-data); font-size: 13px; color: var(--long-2); }
.ca-row.no .tick { color: var(--short); }
.ca-row .what { font-size: 14.5px; color: var(--text-2); line-height: 1.45; }
.flow3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.flow3 .arrow { color: var(--text-3); font-family: var(--f-data); font-size: 12px; }
@media (max-width: 920px) { .creator { grid-template-columns: minmax(0,1fr); } }

/* ---------- OpenLaunch strip ---------- */
.ol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(20px, 3vw, 46px); align-items: center; }
.ol-mock { border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); overflow: hidden; }
.ol-mock .bar { padding: 11px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center;
  font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.ol-mock .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.ol-body { padding: 18px; display: grid; gap: 14px; }
.ol-token { display: flex; align-items: center; gap: 12px; }
.ol-token .av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--long), var(--short)); flex: none; }
.ol-token b { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 22px; }
.ol-token span { font-family: var(--f-data); font-size: 11.5px; color: var(--text-3); display: block; }
.ol-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.ol-tabs span { font-family: var(--f-data); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 13px; color: var(--text-3); }
.ol-tabs span.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--short); }
.ol-cta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.ol-cta b { display: grid; place-items: center; padding: 14px; border-radius: 999px; font-family: var(--f-display); font-weight: 900;
  text-transform: uppercase; font-size: 17px; }
.ol-cta b.l { background: var(--long); color: #04121c; }
.ol-cta b.s { background: var(--short); color: #2a0318; }
@media (max-width: 920px) { .ol { grid-template-columns: minmax(0,1fr); } }

/* ---------- the one risk block ---------- */
.risk { border: 1px solid color-mix(in srgb, var(--short) 42%, transparent); border-radius: var(--r);
  background: color-mix(in srgb, var(--short) 7%, var(--surf)); padding: clamp(22px, 3vw, 40px); display: grid; gap: 16px; }
.risk h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.015em; line-height: 0.9;
  font-size: clamp(28px, 3.6vw, 56px); max-width: 20ch; }
.risk p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--text); max-width: 68ch; }
.risk p.sm { font-size: 14.5px; color: var(--text-2); }

/* ---------- fine print under the hero ---------- */
.fine { font-size: 13.5px; line-height: 1.55; color: var(--text-3); margin-top: 20px; max-width: 58ch; }
.fine a { color: var(--text-2); }

/* ---------- waitlist states ---------- */
.state-box { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-top: 18px; background: var(--surf); }
.state-box b { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 22px; display: block; margin-bottom: 7px; }
.state-box p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.state-box code { font-family: var(--f-data); font-size: 12.5px; background: var(--surf-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; color: var(--text); }
.state-box.warn { border-color: color-mix(in srgb, var(--pending) 50%, transparent); background: color-mix(in srgb, var(--pending) 7%, var(--surf)); }
.state-box.warn b { color: var(--pending); }
.state-box.bad { border-color: color-mix(in srgb, var(--short) 50%, transparent); }
.form .err { color: var(--short-2); font-size: 13.5px; }

/* key for the 3D parts, so the model is legible without a caption */
.stage-key { position: absolute; inset: auto 0 0 0; z-index: 2; display: flex; gap: 14px; flex-wrap: wrap;
  padding: 12px 15px; background: linear-gradient(0deg, rgba(10,12,16,0.92), rgba(10,12,16,0)); pointer-events: none; }
.stage-key span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-data); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.stage-key i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.stage-key .k-vault { background: transparent; border: 1.5px solid var(--long-2); }
.stage-key .k-pool { background: color-mix(in srgb, var(--long) 70%, transparent); }
.stage-key .k-queue { background: var(--pending); }

/* section-level subheading + body utilities (used outside .card) */
.h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(22px, 2.2vw, 34px); line-height: 0.95; }
.body { color: var(--text-2); line-height: 1.65; }
.body + .body { margin-top: 12px; }

/* ==========================================================================
   v1.3 — the loop, reveal cards, chain strip
   ========================================================================== */

/* ---------- hero, second pass ---------- */
.hero h1 .glow { background: linear-gradient(96deg, var(--short) 8%, #ff8fcd 38%, var(--long-2) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-claim { font-size: clamp(17px, 1.45vw, 23px); line-height: 1.5; color: var(--text-2); max-width: 46ch; }
.hero-claim b { color: var(--text); font-weight: 500; }
.hero-proof { display: flex; gap: 8px 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(12,14,18,0.6); backdrop-filter: blur(10px);
  font-family: var(--f-data); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.hero-proof span b { color: var(--text); font-weight: 400; }

/* ---------- chain strip ---------- */
.chains { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
.chain { display: inline-flex; align-items: center; gap: 10px; }
.chain .mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line-2); background: var(--surf-2); font-family: var(--f-display); font-weight: 900; font-size: 13px; color: var(--text-2); }
.chain .mark svg { width: 17px; height: 17px; }
.chain .nm { display: grid; gap: 1px; }
.chain .nm b { font-size: 14.5px; font-weight: 500; }
.chain .nm span { font-family: var(--f-data); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.chains .sep { width: 1px; height: 26px; background: var(--line); }

/* ---------- the loop ---------- */
.loop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(26px, 4vw, 72px); align-items: center; }
.loop-fig { position: relative; aspect-ratio: 1; max-width: 560px; margin-inline: auto; width: 100%; }
.loop-fig svg { width: 100%; height: 100%; overflow: visible; }
.loop-ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.loop-arc { fill: none; stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 0.9s var(--ease), opacity 0.5s; opacity: 0.25; }
.loop-arc.on { stroke-dashoffset: 0; opacity: 1; }
.loop-node { cursor: pointer; }
.loop-node circle { fill: var(--surf); stroke: var(--line-2); stroke-width: 1.5; transition: all 0.45s var(--ease); }
.loop-node text { font-family: var(--f-data); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  fill: var(--text-3); transition: fill 0.4s; }
.loop-node.on circle { fill: color-mix(in srgb, var(--accent, #2e9be6) 22%, var(--surf)); stroke: var(--accent, #2e9be6);
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent, #2e9be6) 55%, transparent)); }
.loop-node.on text { fill: var(--text); }
.loop-core { text-anchor: middle; }
.loop-core .big { font-family: var(--f-display); font-weight: 900; font-size: 34px; fill: var(--text); text-transform: uppercase; }
.loop-core .sm { font-family: var(--f-data); font-size: 10px; letter-spacing: 0.12em; fill: var(--text-3); text-transform: uppercase; }
.loop-steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.loop-step { background: var(--surf); padding: clamp(16px, 1.9vw, 24px); display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 16px;
  align-items: start; cursor: pointer; transition: background 0.35s; border: 0; text-align: left; width: 100%; font: inherit; color: inherit; }
.loop-step:hover { background: var(--surf-2); }
.loop-step .no { font-family: var(--f-data); font-size: 11px; color: var(--text-3); padding-top: 4px; transition: color 0.35s; }
.loop-step h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(18px, 1.7vw, 25px); line-height: 0.98; }
.loop-step p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; margin-top: 7px; max-height: 0; opacity: 0;
  overflow: hidden; transition: max-height 0.5s var(--ease), opacity 0.4s, margin 0.4s; }
.loop-step.on { background: var(--surf-2); }
.loop-step.on .no { color: var(--text); }
.loop-step.on p { max-height: 12em; opacity: 1; }
.loop-step.on h3 { color: var(--accent, var(--text)); }
@media (max-width: 980px) { .loop { grid-template-columns: minmax(0,1fr); } }

/* ---------- reveal tiles (replaces the black caption boxes) ---------- */
.tile { position: relative; overflow: hidden; padding: clamp(22px, 2.4vw, 34px); }
.tile::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent, #2e9be6) 16%, transparent), transparent 68%);
  transition: opacity 0.4s; }
.tile:hover::before, .tile:focus-within::before { opacity: 1; }
.tile:hover { border-color: color-mix(in srgb, var(--accent, #2e9be6) 42%, transparent); }
.tile .ico { width: 44px; height: 44px; transition: transform 0.5s var(--ease); }
.tile:hover .ico { transform: translateY(-3px) scale(1.04); }
.tile h3 { position: relative; }
.tile p { position: relative; }
.tile .more { position: relative; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease), opacity 0.4s; opacity: 0; }
.tile .more > span { overflow: hidden; display: block; color: var(--text-2); line-height: 1.6; font-size: 14.5px; }
.tile:hover .more, .tile:focus-within .more, .tile.open .more { grid-template-rows: 1fr; opacity: 1; }
.tile .cue { position: relative; margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent, var(--long-2)); }
.tile .cue i { width: 16px; height: 1px; background: currentColor; transition: width 0.4s var(--ease); }
.tile:hover .cue i { width: 28px; }

/* ---------- section intro, Apple-ish scale ---------- */
.head h2 { letter-spacing: -0.022em; }
.statement { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em;
  line-height: 0.9; font-size: clamp(32px, 4.6vw, 76px); max-width: 18ch; }
.lede-xl { font-size: clamp(18px, 1.6vw, 26px); line-height: 1.5; color: var(--text-2); max-width: 52ch; }
.lede-xl b { color: var(--text); font-weight: 500; }

/* chains stacked inside a card; the divider is for the inline strip only */
.card .chains { flex-direction: column; align-items: flex-start; gap: 14px; }
.card .chains .sep { display: none; }

/* chain logos supplied as image assets */
.chain .mark.logo { padding: 0; overflow: hidden; border-color: var(--line); background: #fff; }
.chain .mark.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* hero: two propositions, one headline */
.hero h1 .any { color: var(--text); }
.hero h1 .h1-sub { display: block; font-size: 0.46em; line-height: 1.0; margin-top: 0.22em; color: var(--text-2); letter-spacing: -0.012em; }
@media (max-width: 680px) { .hero h1 .h1-sub { font-size: 0.52em; } }
.chain .mark.logo--sq { border-radius: 8px; }
