/* HeldAt — a private vault, rendered as a calm white page.
   Paper and steel from the vault drawings, ink for actions,
   one blue for anything live, green only for a true proof. */

@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(assets/fonts/host-grotesk-latin.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/jetbrains-mono-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Host Grotesk Fallback";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 94%;
  descent-override: 24%;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --bg: #f7f6f2;
  --mist: #f0efea;
  --steel: #e7e5df;
  --ink: #0d1016;
  --ink-2: #2b303a;
  --dim: #555b66;
  --dim-2: #6b717c;
  --line: #e5e2db;
  --line-2: #d5d2ca;
  --accent: #2458e8;
  --accent-soft: #edf2ff;
  --ok: #0f8a43;
  --ok-soft: #e8f6ee;
  --bad: #c62f2f;
  --bad-soft: #fdeeee;
  --warn: #9a5b00;
  --warn-soft: #fff7e6;
  --warn-line: #f3d9a6;
  --warn-ink: #4d3200;
  --on-ink: #ffffff;
  --ink-hover: #1f232b;
  --glass: rgba(255, 255, 255, .86);
  --night: #090b10;
  --rail: 1180px;
  --gutter: 16px;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 13, 18, .05), 0 6px 14px -8px rgba(11, 13, 18, .14);
  --shadow-md: 0 2px 4px rgba(11, 13, 18, .04), 0 24px 48px -28px rgba(11, 13, 18, .30);
  --shadow-lg: 0 4px 10px rgba(11, 13, 18, .05), 0 40px 80px -40px rgba(11, 13, 18, .38);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.22, 1, .36, 1);

  --sans: "Host Grotesk", "Host Grotesk Fallback", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-display: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.6vw, 3.4rem);
  --fs-h3: 1.1875rem;
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --space-section: clamp(88px, 7vw + 40px, 148px);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #12161f;
  --bg: #0b0e14;
  --mist: #171c26;
  --steel: #1f2532;
  --ink: #eef1f6;
  --ink-2: #c9cfda;
  --dim: #9ba3b2;
  --dim-2: #8a93a3;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --accent: #7aa2ff;
  --accent-soft: rgba(122, 162, 255, .14);
  --ok: #4fd18e;
  --ok-soft: rgba(79, 209, 142, .12);
  --bad: #ff7d7d;
  --bad-soft: rgba(255, 125, 125, .12);
  --warn: #f2b552;
  --warn-soft: rgba(242, 181, 82, .1);
  --warn-line: rgba(242, 181, 82, .3);
  --warn-ink: #f6d9a8;
  --on-ink: #0b0e14;
  --ink-hover: #ffffff;
  --glass: rgba(18, 22, 31, .82);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 14px -8px rgba(0, 0, 0, .5);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .25), 0 24px 48px -28px rgba(0, 0, 0, .7);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, .25), 0 40px 80px -40px rgba(0, 0, 0, .8);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
    --paper: #12161f;
    --bg: #0b0e14;
    --mist: #171c26;
    --steel: #1f2532;
    --ink: #eef1f6;
    --ink-2: #c9cfda;
    --dim: #9ba3b2;
    --dim-2: #8a93a3;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .15);
    --accent: #7aa2ff;
    --accent-soft: rgba(122, 162, 255, .14);
    --ok: #4fd18e;
    --ok-soft: rgba(79, 209, 142, .12);
    --bad: #ff7d7d;
    --bad-soft: rgba(255, 125, 125, .12);
    --warn: #f2b552;
    --warn-soft: rgba(242, 181, 82, .1);
    --warn-line: rgba(242, 181, 82, .3);
    --warn-ink: #f6d9a8;
    --on-ink: #0b0e14;
    --ink-hover: #ffffff;
    --glass: rgba(18, 22, 31, .82);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 14px -8px rgba(0, 0, 0, .5);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .25), 0 24px 48px -28px rgba(0, 0, 0, .7);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, .25), 0 40px 80px -40px rgba(0, 0, 0, .8);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--on-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 100px; }
html { scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg); }
.mono { font-family: var(--mono); font-variant-ligatures: none; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: calc(var(--rail) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-weight: 560; text-wrap: balance; }
h1 { font-size: var(--fs-display); line-height: .98; letter-spacing: -.038em; }
h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.034em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.012em; }
p { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--dim); max-width: 34em; }
.muted { color: var(--dim); }
.small { font-size: var(--fs-small); }
.link { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }

/* ============ nav ============ */
.nav-wrap { position: fixed; inset: 12px 0 auto; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: var(--rail); height: 60px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 8px 0 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease);
}
.nav-wrap.scrolled .nav { box-shadow: 0 1px 2px rgba(11, 13, 18, .05), 0 10px 24px -14px rgba(11, 13, 18, .28); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink); }
.brand-mark svg { width: 28px; height: 28px; overflow: visible; }
.brand-mark .mark-spin { transform-origin: 50px 50px; transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
  .brand-mark .mark-spin { animation: unlock 1.6s var(--ease) .2s backwards; transition: transform .9s var(--ease); }
  .brand:hover .brand-mark .mark-spin { transform: rotate(180deg); }
}
@keyframes unlock { from { transform: rotate(-90deg); } }

.nav-links { display: flex; gap: 2px; font-size: 14.5px; font-weight: 500; }
.nav-links a { padding: 8px 14px; border-radius: var(--r-pill); color: var(--dim); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="true"] { color: var(--ink); background: var(--mist); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: var(--r-pill); border: 0; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--ink);
  transition: background-color .2s, transform .3s var(--spring);
}
.icon-btn:hover { background: var(--mist); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 17px; height: 17px; }
.burger { display: none; }
.burger span { display: block; width: 16px; height: 1.6px; margin: 4px auto; background: var(--ink); border-radius: var(--r-pill); transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(2.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-2.8px) rotate(-45deg); }
.drawer {
  pointer-events: auto; display: none; max-width: var(--rail); margin: 8px auto 0; padding: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.drawer a, .drawer button { display: block; width: 100%; text-align: left; padding: 13px 14px; border: 0; background: none; border-radius: var(--r-md); font-weight: 500; cursor: pointer; }
.drawer a:hover, .drawer button:hover { background: var(--mist); }
.drawer.open { display: block; }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .burger { display: grid; }
}
@media (max-width: 560px) {
  .nav-right .wallet-btn, .nav-right a.icon-btn[href*="x.com"] { display: none; }
  .nav { padding-left: 14px; }
}

/* side rail: the top bar, moved to the left edge once the hero is passed.
   A column of square cells ruled like graph paper: hairlines between cells,
   a heavier rule between groups, a 2px accent edge on the current section,
   and a reading line down the right side. */
.side-rail {
  position: fixed; z-index: 50; left: 16px; top: 50%;
  display: flex; flex-direction: column; padding: 0;
  border: 1px solid var(--line-2); border-radius: 2px;
  background-color: var(--glass);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 8px 8px; background-position: -1px -1px;
  backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translate(-16px, -50%);
  transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.side-on .side-rail { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s; }
.side-on .nav-wrap { opacity: 0; transform: translateY(-120%); pointer-events: none; }
.nav-wrap { transition: opacity .3s var(--ease), transform .45s var(--ease); }
/* the reading line: how far down the page you are */
.side-rail::after { content: ""; position: absolute; right: -1px; top: -1px; bottom: -1px; width: 2px; background: transparent; }
.side-rail::before { content: ""; position: absolute; z-index: 2; right: -1px; top: -1px; bottom: -1px; width: 2px; background: var(--accent); transform: scaleY(var(--read, 0)); transform-origin: top; transition: transform .15s linear; }
.side-item {
  position: relative; width: 48px; height: 48px; border: 0; border-radius: 0; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--dim-2);
  box-shadow: inset 0 -1px 0 var(--line-2);
  transition: background-color .15s, color .15s;
}
.side-item:last-child { box-shadow: none; }
.side-item svg { width: 18px; height: 18px; stroke-width: 1.7; }
.side-item img { width: 20px; height: 20px; border-radius: 2px; }
.side-item:hover, .side-item:focus-visible { background: var(--mist); color: var(--ink); outline: none; }
.side-item:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.side-item[aria-current="true"], .side-item[aria-current="page"] { background: var(--mist); color: var(--ink); }
.side-item[aria-current="true"]::before, .side-item[aria-current="page"]::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 1px; width: 2px; background: var(--accent);
}
.side-brand { color: var(--ink); }
.side-brand svg { width: 22px; height: 22px; overflow: visible; }
.side-launch { background: var(--ink); color: var(--on-ink); }
.side-launch:hover, .side-launch:focus-visible { background: var(--ink-hover); color: var(--on-ink); }
/* groups are split by a heavier rule rather than a gap */
.side-sep { width: 100%; height: 0; border-top: 1px solid var(--line-2); }
/* the label: a square tag that slides out on hover and keyboard focus */
.side-item::after {
  content: attr(data-label); position: absolute; left: calc(100% + 10px); top: 50%;
  padding: 6px 10px; border-radius: 2px; background: var(--ink); color: var(--on-ink);
  font: 500 11.5px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; pointer-events: none;
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: translate(-4px, -50%); transition: opacity .15s var(--ease), transform .2s var(--ease);
}
.side-item:hover::after, .side-item:focus-visible::after { opacity: 1; transform: translate(0, -50%); transition-delay: .08s; }
@media (max-width: 1359px) { .side-rail { display: none; } }

/* ============ buttons ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 22px; border: 0; border-radius: var(--r-pill);
  font-weight: 560; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; cursor: pointer;
  transition: transform .3s var(--spring), box-shadow .3s var(--ease), background-color .2s, color .2s;
  touch-action: manipulation;
}
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn-dark { background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: var(--ink-hover); box-shadow: 0 14px 28px -14px rgba(11, 13, 18, .55); }
.btn-light { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-light:hover { box-shadow: inset 0 0 0 1px var(--dim-2), var(--shadow-sm); }
.btn-soft { background: var(--mist); color: var(--ink); }
.btn-soft:hover { background: var(--steel); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .5; pointer-events: none; }
.wallet-btn img { width: 20px; height: 20px; border-radius: 6px; }

/* ============ hero ============ */
/* hero: always night, whatever the theme; a field of dots ripples out of the mark */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh, 980px); padding: 150px 0 96px; background: var(--night); color: #f2f4f8; }
.hero-field { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero-mark { position: absolute; z-index: -1; left: var(--mx, 70%); top: var(--my, 50%); width: 92px; height: 92px; margin: -46px 0 0 -46px; color: #fff; }
.hero-mark-turn { transform-origin: 50px 50px; transform-box: view-box; transform: rotate(var(--turn, 0deg)); }
@media (prefers-reduced-motion: no-preference) { .hero-mark-turn { transition: transform 1.4s var(--ease); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy { padding: 0 0 24px; }
.hero-copy h1 { max-width: 12ch; color: #fff; }
.hero-dim { color: #7c8596; }
.hero-copy .lead { margin-top: 26px; color: #b4bccb; }
.hero-chip { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 7px 14px; border-radius: var(--r-pill); font: 13px/1.4 var(--mono); color: #d7dce6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); }
.hero-chip .live { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .14); }
.btn-white { background: #fff; color: #0b0e14; box-shadow: 0 10px 30px -12px rgba(255, 255, 255, .35); }
.btn-white:hover { background: #e9edf4; }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.hero .hero-note { color: #8a93a4; }

/* floating cards: dark glass, mono labels, live data */
.hero-cards { position: relative; display: grid; gap: 16px; justify-items: end; }
.hcard { width: min(100%, 380px); padding: 16px 18px; border-radius: var(--r-lg); background: rgba(13, 17, 25, .72); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); color: #e9edf4; }
.hcard-k { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  font: 11.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8d97a8; }
.hcard-t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hcard-t b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.hcard-t span { font-size: 13px; color: #8d97a8; }
.hcard-t.mono { font: 600 22px/1.2 var(--mono); color: #fff; letter-spacing: -.01em; }
.hcard-sub { margin-top: 6px; font-size: 13px; color: #8d97a8; }
.hcard-live { display: inline-flex; align-items: center; gap: 6px; color: #9ec0ff; }
.hcard-live i { width: 6px; height: 6px; border-radius: 50%; background: #7aa2ff; }
/* the dot flashes once each time a new block arrives */
@media (prefers-reduced-motion: no-preference) { .hcard-live.tick i { animation: flash .9s var(--ease); } }
@keyframes flash { from { transform: scale(2.2); box-shadow: 0 0 0 4px rgba(122, 162, 255, .35); } }
.hcard-pre { margin: 0; font: 12.5px/1.65 var(--mono); color: #d7dce6; white-space: pre-wrap; }
.hcard-pre b { color: #fff; font-weight: 600; }
.c-dim { color: #6f798b; } .c-acc { color: #eef1f6; }
.hcard-seal { justify-self: start; }
.hcard-block { width: min(100%, 260px); margin-right: 36px; }
.hero .receipt-hash { color: #9ec0ff; }
.hero .receipt.sealing .receipt-hash { color: #6f798b; }
.hero .receipt-foot { border-top-color: rgba(255, 255, 255, .08); color: #8d97a8; }
.hero .receipt.sealed .seal { color: #9ec0ff; background: rgba(122, 162, 255, .14); }
.hero .seal { color: #8d97a8; }

/* the bar sits on the night while the hero is on screen */
.on-hero .nav { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.on-hero .nav .brand, .on-hero .nav .brand-mark, .on-hero .nav .icon-btn, .on-hero .theme-btn { color: #f2f4f8; }
.on-hero .nav-links a { color: #aab3c2; }
.on-hero .nav-links a:hover, .on-hero .nav-links a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, .08); }
.on-hero .nav .btn-dark { background: #fff; color: #0b0e14; }
.on-hero .nav .btn-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.on-hero .nav .icon-btn:hover, .on-hero .theme-btn:hover { background: rgba(255, 255, 255, .08); }
.on-hero .burger span { background: #fff; }
.theme-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); font: 500 14px var(--sans); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .2s; }
.theme-btn:hover { background: var(--mist); }
.theme-btn svg { width: 15px; height: 15px; }
.on-hero .theme-btn { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
@media (max-width: 1100px) { .theme-btn span { display: none; } .theme-btn { width: 40px; padding: 0; justify-content: center; } }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-size: var(--fs-small); color: var(--dim); }
.hero-note .live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: 0 0 auto; }

@keyframes settle { to { transform: scale(1); } }
.receipt-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.receipt-top b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.receipt-top span { font-size: 13px; color: var(--dim); }
.receipt-hash { margin-top: 10px; font: 13px/1.5 var(--mono); color: var(--accent); word-break: break-all; min-height: 3em; }
.receipt-foot span { white-space: nowrap; }
.receipt-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

@media (max-width: 900px) {
  .hero { padding-top: 120px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-cards { justify-items: stretch; }
  .hcard, .hcard-block { width: 100%; margin: 0; }
  .hcard-code { display: none; }
  .hero-mark { display: none; }
}

/* ============ wallets row ============ */
.wallets { padding: 64px 0 0; }
.wallets-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.wallets-head h2 { font-size: 1.625rem; letter-spacing: -.024em; }
.wallets-head p { color: var(--dim); }
.wallet-row { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wallet-tile {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px 10px;
  border: 0; background: transparent; cursor: pointer; font-size: 15px; font-weight: 560; color: var(--ink); white-space: nowrap;
  position: relative; transition: background-color .2s;
}
.wallet-tile + .wallet-tile::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.wallet-tile img { width: 28px; height: 28px; border-radius: var(--r-sm); transition: transform .35s var(--spring); }
.wallet-tile:hover { background: var(--mist); }
.wallet-tile:hover img { transform: scale(1.08); }
.wallet-tile .tag { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); font-size: 0; }
.wallet-tile .tag:empty { display: none; }
@media (max-width: 1100px) { .wallet-tile { flex: 1 1 25%; } .wallet-tile:nth-child(5)::before { display: none; } .wallet-tile:nth-child(n+5) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .wallet-tile { flex: 1 1 50%; justify-content: flex-start; padding: 18px 12px; font-size: 14px; } .wallet-tile::before { display: none; } .wallet-tile:nth-child(n+3) { border-top: 1px solid var(--line); } .wallet-tile:nth-child(even) { border-left: 1px solid var(--line); } }

/* ============ sections ============ */
.section { padding: var(--space-section) 0 0; }
/* Bands break the page into rooms: one dark, one paper. */
.band-ink, .band-paper { margin-top: var(--space-section); padding: var(--space-section) 0; }
.band-ink { background: var(--night); color: #fff; }
.band-ink h2 { color: #fff; }
.band-ink .lead { color: #b9c0cd; }
.band-ink .points li { color: #dfe3ea; }
.band-ink .points svg { color: #fff; }
.band-ink .explorer { color: var(--ink); border-color: transparent; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.band-paper { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 18px; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.points { list-style: none; margin-top: 30px; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); }
.points svg { width: 20px; height: 20px; color: var(--ink); margin-top: 2px; }

.explorer { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.explorer-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--mist); font-size: 13px; color: var(--dim); }
.explorer-bar .addr { font-family: var(--mono); color: var(--ink); }
.explorer table { width: 100%; border-collapse: collapse; font-size: 14px; }
.explorer th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--dim); padding: 12px 18px; border-bottom: 1px solid var(--line); }
.explorer td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.explorer tr:last-child td { border-bottom: 0; }
.explorer .what { font-variant-numeric: tabular-nums; }
.explorer .exposed { color: var(--bad); font-size: 13px; font-weight: 500; white-space: nowrap; }
.explorer-wrap { overflow-x: auto; }
@media (max-width: 560px) { .explorer th:nth-child(1), .explorer td:nth-child(1) { display: none; } }

/* ============ films ============ */
.films { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.chapters { list-style: none; display: grid; gap: 4px; }
.chapter {
  position: relative; display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: start; width: 100%;
  padding: 18px 18px 20px; border: 0; border-radius: var(--r-lg); background: transparent; text-align: left; cursor: pointer;
  transition: background-color .25s;
}
.chapter:hover { background: var(--mist); }
.chapter[aria-current="true"] { background: var(--mist); }
.chapter-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .25s, color .25s; }
.chapter[aria-current="true"] .chapter-n { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.chapter h3 { font-size: 20px; letter-spacing: -.018em; }
.chapter p { font-size: 14.5px; color: var(--dim); margin-top: 4px; line-height: 1.5; }
.chapter time { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; padding-top: 4px; }
.chapter-progress { position: absolute; left: 18px; right: 18px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity .3s; }
.chapter[aria-current="true"] .chapter-progress { opacity: 1; }
.chapter-progress i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.player { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #fff; border: 1px solid var(--line-2); aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.player-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 14px; }
.player-ctl { display: flex; gap: 6px; flex: 0 0 auto; }
.player-ctl button { width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: rgba(11, 13, 18, .82); color: #fff; transition: transform .3s var(--spring), background-color .2s; }
.player-ctl button:hover { background: var(--ink); transform: scale(1.06); }
.player-ctl svg { width: 16px; height: 16px; }
.films-note { font-size: 13px; color: var(--dim); padding-top: 10px; }
.film-caption { display: none; min-height: 3.2em; font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
@media (max-width: 700px) { .film-caption { display: block; } .films-note { display: none; } }
.proposed { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--mist); color: var(--dim); font-size: 12px; font-weight: 560; letter-spacing: 0; vertical-align: middle; }
@media (max-width: 900px) {
  .films { grid-template-columns: 1fr; }
  .films .player-col { order: -1; }
}

/* ============ demo ============ */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow: hidden; background: var(--paper); }
.demo-in { padding: 40px; }
.demo-out { padding: 40px; background: var(--mist); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.demo-in h3 { margin-bottom: 6px; }
.demo-in > p { color: var(--dim); font-size: 15px; margin-bottom: 24px; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } .demo-in, .demo-out { padding: 24px; } .demo-out { border-left: 0; border-top: 1px solid var(--line); } }
.kv { display: grid; gap: 18px; }
.kv-row { display: grid; gap: 5px; }
.kv-row .k { font-size: 13px; font-weight: 500; color: var(--dim); }
.kv-row .v { font: 13.5px/1.55 var(--mono); word-break: break-all; color: var(--ink); }
.kv-row .v.big { font-size: 15px; color: var(--accent); }
.demo-out .actions { margin-top: auto; padding-top: 24px; }

/* ============ forms ============ */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field .opt { color: var(--dim); font-weight: 400; }
.input, .textarea, .select {
  width: 100%; min-height: 46px; padding: 11px 14px; border: 0; border-radius: var(--r-md);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px;
  transition: box-shadow .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--dim-2); }
.input:hover, .textarea:hover, .select:hover { box-shadow: inset 0 0 0 1px var(--dim-2); }
.input:focus, .textarea:focus, .select:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--bad); }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555d6b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; cursor: pointer; }
.textarea { min-height: 116px; resize: vertical; font: 13px/1.55 var(--mono); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.hint { font-size: 13.5px; color: var(--dim); line-height: 1.5; }
input[type="file"] { font-size: 14px; color: var(--dim); }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: var(--r-pill); background: var(--mist); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: 0 0 auto; }

/* ============ photo band ============ */
.band { position: relative; margin-top: var(--space-section); }
/* the vault as a grid of sealed bonds: all dark, one opened at a time */
.band-media { position: relative; height: clamp(440px, 46vw, 600px); overflow: hidden; border-radius: var(--r-xl); background: var(--night); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.band-field { display: block; width: 100%; height: 100%; }
.band-card {
  position: absolute; left: clamp(16px, 4vw, 48px); bottom: clamp(16px, 4vw, 48px); max-width: 460px;
  padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); color: #fff;
  background: rgba(13, 17, 25, .78); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.band-k { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  font: 11.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8d97a8; }
.band-card h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem); color: #fff; }
.band-card p { margin-top: 14px; color: #aab3c2; }
.band-card .band-k { margin-top: 0; }
@media (max-width: 640px) {
  .band .band-media { height: auto; aspect-ratio: 4 / 3; }
  .band-card { position: relative; left: auto; bottom: auto; margin: -36px 12px 0; max-width: none; background: #0d1119; }
}

/* ============ token sheet ============ */
.sheet { border-top: 1px solid var(--ink); }
.sheet-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, .7fr) minmax(0, 1.4fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.sheet-row dt { font-size: var(--fs-h3); font-weight: 560; letter-spacing: -.012em; }
.sheet-row .val { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 560; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sheet-row dd p { color: var(--dim); }
@media (max-width: 760px) { .sheet-row { grid-template-columns: 1fr; gap: 6px; } }
.status { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--mist); }
.status svg { width: 20px; height: 20px; color: var(--ink); flex: 0 0 auto; margin-top: 2px; }
.status p { color: var(--ink-2); max-width: 70ch; }

/* ============ faq ============ */
/* facts: four real numbers, set large */
.facts { margin-top: var(--space-section); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fact { padding: 28px 26px 26px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.fact b { display: block; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); font-weight: 650; letter-spacing: -.045em; line-height: 1; }
.fact span { display: block; margin-top: 14px; color: var(--dim); font-size: 15px; max-width: 22ch; }
@media (max-width: 900px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .fact { padding: 22px 18px; } }

/* FAQ on the night band: numbered rows that open in place */
.band-ink .faq details { border-bottom-color: rgba(255, 255, 255, .1); }
.band-ink .faq { border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg); padding: 0 22px; background: rgba(255, 255, 255, .02); }
.band-ink .faq details:last-child { border-bottom: 0; }
.band-ink .faq details:first-child summary { padding-top: 22px; }
.faq-n { font: 13px var(--mono); color: #7c8596; }
.band-ink .faq-q { color: #fff; }
.faq-t { position: relative; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(127, 135, 150, .5); }
.faq-t::before, .faq-t::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; margin: -.8px 0 0 -5px; background: currentColor; transition: transform .3s var(--ease); }
.faq-t::after { transform: rotate(90deg); }
.faq details[open] .faq-t::after { transform: rotate(0deg); }
.band-ink .faq details p { color: #aab3c2; }
.band-ink #faq-title, .band-ink .faq-q { color: #fff; }
.faq details:first-child summary { padding-top: 4px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: 52px minmax(0, 1fr) 28px; align-items: center; gap: 14px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 560; letter-spacing: -.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 0 24px 66px; color: var(--dim); max-width: 74ch; }

/* ============ closing ============ */
.closing { margin-top: var(--space-section); padding: 88px 64px; border-radius: var(--r-xl); background: var(--night); color: #fff; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: end; }
.closing h2 { max-width: 16ch; }
.closing p { margin-top: 18px; color: rgba(255, 255, 255, .72); max-width: 44ch; line-height: 1.65; letter-spacing: .005em; }
.closing .cta-row { margin: 0; }
.closing .btn-light { box-shadow: none; }
.btn-ghost { background: transparent; color: var(--dim); box-shadow: none; }
.btn-ghost:hover { background: var(--mist); color: var(--ink); }
.closing .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.closing .btn-ghost:hover { box-shadow: inset 0 0 0 1px #fff; }
@media (max-width: 860px) { .closing { grid-template-columns: 1fr; padding: 48px 24px; } }

/* ============ footer ============ */
.footer { margin-top: 112px; padding: 72px 0 28px; background: var(--mist); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 48px 64px; }
.footer .brand { display: inline-flex; color: var(--ink); }
.foot-about p { margin-top: 16px; color: var(--dim); font-size: 15px; max-width: 34ch; }
.foot-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.foot-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--dim); }
.foot-status .live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-h { font-size: 13px; font-weight: 560; color: var(--ink); margin-bottom: 12px; }
.foot-cols a { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 40px; padding: 0; color: var(--dim); font-size: 15px; transition: color .2s; }
.foot-cols a:hover { color: var(--ink); }
.foot-x > svg:first-child { width: 15px; height: 15px; color: var(--ink); }
.foot-x > svg:last-child { width: 14px; height: 14px; opacity: 0; transform: translate(-3px, 3px); transition: opacity .2s, transform .3s var(--ease); }
.foot-x:hover > svg:last-child { opacity: 1; transform: none; }
.foot-mark { display: block; width: 100%; height: auto; margin-top: 64px; user-select: none; }
.foot-mark text { font-family: var(--sans); font-weight: 600; font-size: 252px; fill: var(--steel); }
/* the wordmark as halftone dots (js/site.js); the SVG stays for no-script */
.foot-dots { display: block; width: 100%; aspect-ratio: 860 / 196; margin-top: 64px; }
.has-foot-dots .foot-mark { display: none; }
.foot-bottom { position: relative; display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--dim); }
.foot-credits { max-width: 62ch; }
@media (max-width: 960px) { .foot-top { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .footer { margin-top: 88px; padding-top: 56px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .foot-mark, .foot-dots { margin-top: 40px; }
}

/* ============ reveal ============ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ============ dialogs: terms gate, wallet picker ============ */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); margin: auto; }
dialog::backdrop { background: rgba(11, 13, 18, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] .sheet-card { animation: rise .5s var(--ease); }
  dialog[open]::backdrop { animation: fade .4s var(--ease); }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes fade { from { opacity: 0; } }
.sheet-card { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.sheet-head { padding: 28px 28px 0; }
.sheet-head h2 { font-size: 1.75rem; }
.sheet-head p { margin-top: 10px; color: var(--dim); }
.sheet-body { padding: 20px 28px; overflow-y: auto; }
.sheet-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 18px 28px 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sheet-foot .btn { flex: 1 1 auto; }
.terms-list { list-style: none; border-top: 1px solid var(--line); }
.terms-list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.terms-more { margin-top: 18px; font-size: 14px; }

.wallet-list { list-style: none; display: grid; gap: 6px; }
.wallet-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.wallet-item:hover { border-color: var(--line-2); background: var(--mist); }
.wallet-item img { width: 40px; height: 40px; border-radius: 11px; }
.wallet-item b { font-weight: 560; display: block; }
.wallet-item small { color: var(--dim); font-size: 13px; }
.wallet-item .state { font-size: 12.5px; font-weight: 560; padding: 4px 10px; border-radius: var(--r-pill); background: var(--mist); color: var(--dim); white-space: nowrap; }
.wallet-item .state.ready { background: var(--accent-soft); color: var(--accent); }
.wallet-connected { display: grid; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--mist); margin-bottom: 16px; }
.wallet-connected .row { display: flex; align-items: center; gap: 12px; }
.wallet-connected img { width: 36px; height: 36px; border-radius: 10px; }
.wallet-connected .addr { font: 14px var(--mono); }
.dialog-close { position: absolute; top: 18px; right: 18px; }
.sheet-card { position: relative; }

/* ============ app pages (console, verify, terms) ============ */
.app-main { padding: 128px 0 0; min-height: 70vh; }
.app-head { margin-bottom: 32px; max-width: 720px; }
.app-head h1 { font-size: clamp(2.4rem, 1.6rem + 2.8vw, 3.6rem); }
.app-head p { margin-top: 14px; color: var(--dim); font-size: var(--fs-lead); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; background: var(--mist); border-radius: var(--r-pill); max-width: 100%; overflow-x: auto; }
.tab { min-height: 40px; padding: 0 18px; border: 0; background: transparent; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; color: var(--dim); cursor: pointer; white-space: nowrap; transition: color .2s, background-color .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.tab .count { font-variant-numeric: tabular-nums; margin-left: 6px; color: var(--dim); font-size: 13px; }
.panel { display: none; }
.panel.active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.panel.single.active { grid-template-columns: 1fr; }
@media (max-width: 860px) { .panel.active { grid-template-columns: 1fr; } .box { padding: 22px; } .gate-card { padding: 28px; } }
.box { padding: 32px; border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.box.soft { background: var(--mist); border-color: transparent; }
.box h2 { font-size: 1.375rem; letter-spacing: -.02em; }
.box > p { color: var(--dim); font-size: 15px; margin: 6px 0 22px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.empty { display: grid; place-items: center; text-align: center; gap: 8px; padding: 44px 20px; color: var(--dim); font-size: 15px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.bond { display: grid; gap: 10px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); }
.bond + .bond { margin-top: 10px; }
.bond-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bond-amt { font-weight: 600; font-size: 18px; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.bond-hash { font: 12.5px/1.5 var(--mono); color: var(--dim); word-break: break-all; }
.bond-meta { font-size: 13.5px; color: var(--dim); word-break: break-all; }
.bond-meta .mono { font-size: 12.5px; }
.badge { font-size: 12px; font-weight: 560; padding: 4px 10px; border-radius: var(--r-pill); background: var(--mist); color: var(--dim); }
.badge.live { background: var(--accent-soft); color: var(--accent); }
.badge.sent { background: var(--steel); color: var(--dim); }
.verdict { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg); font-weight: 600; font-size: 17px; margin-top: 16px; }
.verdict .bit { font: 600 30px/1 var(--mono); }
.verdict.true { background: var(--ok-soft); color: var(--ok); }
.verdict.false { background: var(--bad-soft); color: var(--bad); }
.verdict small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); margin-top: 2px; }

.prose { max-width: 62ch; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; letter-spacing: -.02em; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 12px; }
.prose ul { padding-left: 20px; }
.prose .updated { color: var(--dim); font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 16px); opacity: 0; padding: 12px 18px; border-radius: var(--r-pill); background: var(--ink); color: var(--on-ink); font-size: 14px; box-shadow: var(--shadow-md); transition: opacity .25s, transform .35s var(--ease); pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* declined page */
.gate-page { min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; background: var(--mist); }
.gate-card { max-width: 520px; padding: 48px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow-lg); }
.gate-card .brand { margin-bottom: 36px; }
.gate-card h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.gate-card p { margin-top: 14px; color: var(--dim); }

/* ============ proof of funds, sharing, backup ============ */
.funds { margin: 4px 0 22px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.funds.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.funds-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.funds-head h3 { font-size: 16px; }
.funds p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.input[readonly]:not(.mono) { background: var(--mist); }
.select:disabled { background-color: var(--mist); cursor: default; opacity: 1; color: var(--ink); }

.banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; padding: 14px 16px 14px 18px; border-radius: var(--r-lg); background: var(--warn-soft); box-shadow: inset 0 0 0 1px var(--warn-line); }
.banner svg { width: 20px; height: 20px; color: var(--warn); flex: 0 0 auto; }
.banner p { flex: 1 1 260px; font-size: 14.5px; color: var(--warn-ink); }
.banner b { font-weight: 600; }

.backing { margin-bottom: 14px; }
.share { display: grid; gap: 14px; }
.share-link { display: flex; gap: 8px; flex-wrap: wrap; }
.share-link .input { flex: 1 1 220px; min-width: 0; font-size: 12.5px; min-height: 40px; padding: 8px 12px; }
.qr { display: grid; justify-items: center; gap: 10px; padding: 18px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.qr svg { width: min(100%, 260px); height: auto; color: var(--ink); }
.qr svg rect[fill="#ffffff"], .qr svg path { shape-rendering: crispEdges; }
.qr figcaption { font-size: 13px; color: var(--dim); }
details.raw { margin-top: 16px; }
details.raw summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--dim); width: fit-content; }
details.raw summary:hover { color: var(--ink); }
.backup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: end; }
.backup-grid .actions { grid-column: 1 / -1; }
@media (max-width: 560px) { .backup-grid { grid-template-columns: 1fr; } }
#panel-vault.active { gap: 16px; }

.claim { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; margin: 14px 0 18px; }
.claim.pass { color: var(--ok); }
.claim.fail { color: var(--bad); }
.claim.warn { color: var(--warn); }
.checks { list-style: none; display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: var(--r-md); background: var(--mist); }
.check b { display: block; font-weight: 560; }
.check span:not(.check-icon) { display: block; font-size: 14px; color: var(--dim); margin-top: 2px; }
.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; }
/* vault row: "More" menu */
.more { position: relative; }
.more > summary { list-style: none; cursor: pointer; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary { box-shadow: inset 0 0 0 1px var(--dim-2), var(--shadow-sm); }
.more-menu { position: absolute; z-index: 5; left: 0; top: calc(100% + 6px); min-width: 220px; padding: 6px; display: grid; border-radius: var(--r-md); background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--shadow-md); }
.more-menu button { text-align: left; padding: 10px 12px; min-height: 40px; border: 0; border-radius: var(--r-sm); background: none; font: inherit; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.more-menu button:hover, .more-menu button:focus-visible { background: var(--mist); }
.more-menu .more-danger { color: var(--bad); }
.more-menu .more-danger:hover { background: var(--bad-soft); }
.v-own { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--dim); }
.v-own a { color: var(--ink); font-weight: 560; text-decoration: underline; text-underline-offset: 3px; }
.check span a, .bond-meta a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.check span a:hover, .bond-meta a:hover { color: var(--ink); }
#f-testnet { margin-top: 10px; color: var(--warn); }
.check-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
.check-icon svg { width: 14px; height: 14px; }
.check.pass .check-icon { background: var(--ok-soft); color: var(--ok); }
.check.fail .check-icon { background: var(--bad-soft); color: var(--bad); }
.check.tick .check-icon { background: var(--steel); color: var(--ink); }
.check.warn .check-icon { background: var(--warn-soft); color: var(--warn); }
.check.info .check-icon { color: var(--dim); }
#v-note { margin-top: 14px; }
.field-row { align-items: start; }

/* ============ motion ============
   One authored moment: the hero seals a receipt over the vault.
   Everything else explains a state: the explorer reading an address,
   the vault opening, a hash changing, a film switching. */
:root { interpolate-size: allow-keywords; }

/* hero: lines rise out of a mask, then the copy settles in */
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; }
.btn-arrow svg { transition: transform .3s var(--ease); }
.btn-arrow:hover svg { transform: translateX(3px); }

/* the receipt and its seal */
.receipt { overflow: hidden; isolation: isolate; }
.receipt::before {
  content: ""; position: absolute; inset: -40% auto -40% -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(122, 162, 255, .12) 45%, rgba(255, 255, 255, .5) 50%, rgba(122, 162, 255, .12) 55%, transparent);
  transform: translateX(0) skewX(-12deg); opacity: 0;
}
.seal { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: var(--r-pill); color: var(--dim); transition: color .3s, background-color .3s; }
.seal svg { width: 14px; height: 14px; }
.seal .shackle { transition: transform .35s var(--ease); transform-box: fill-box; transform-origin: 100% 100%; }
.receipt.sealing .seal .shackle { transform: translateY(-2.5px) rotate(14deg); }
.receipt.sealed .seal { color: var(--accent); background: var(--accent-soft); }
.receipt-hash { transition: color .3s; }
.receipt.sealing .receipt-hash { color: var(--dim-2); }

@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line > span { transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
  .js .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
  .js .hero-in { opacity: 0; transform: translateY(14px); animation: settle-in .8s var(--ease) var(--d, .4s) forwards; }
  .js .hcard { opacity: 0; transform: translateY(26px); filter: blur(8px); animation: card-in .9s var(--ease) var(--cd, .75s) forwards; }
  .js .hcard-block { --cd: .95s; } .js .hcard-code { --cd: 1.15s; }
  .receipt.sealed::before { animation: glint 1.1s var(--ease); }
  .receipt.sealed .seal { animation: stamp .45s var(--ease); }
}
@keyframes rise { to { transform: none; } }
@keyframes settle-in { to { opacity: 1; transform: none; } }
@keyframes card-in { to { opacity: 1; transform: none; filter: none; } }
@keyframes glint { 0% { opacity: 0; transform: translateX(0) skewX(-12deg); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateX(380%) skewX(-12deg); } }
@keyframes stamp { from { transform: scale(.9); opacity: .6; } }

/* wallets arrive as a list, once */
@media (prefers-reduced-motion: no-preference) {
  .js .wallet-row:not(.in) .wallet-tile { opacity: 0; transform: translateY(10px); }
  .wallet-row.in .wallet-tile { transition: opacity .6s var(--ease), transform .6s var(--ease), background-color .2s; transition-delay: calc(var(--i) * 45ms), calc(var(--i) * 45ms), 0s; }
}

/* the explorer reads the address: a scan line passes, each row is exposed */
.explorer { position: relative; }
.explorer::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 28px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(198, 47, 47, 0), rgba(198, 47, 47, .10));
  border-bottom: 2px solid var(--bad);
}
@media (prefers-reduced-motion: no-preference) {
  .js .explorer:not(.scan) .exposed { color: var(--line-2); }
  .explorer.scan::after { animation: scan 1.9s cubic-bezier(.45, 0, .2, 1) .1s forwards; }
  .explorer.scan tbody tr { animation: exposed 1.1s var(--ease) calc(.15s + var(--i) * .36s); }
  .explorer.scan .exposed { animation: tag-on .5s var(--ease) calc(.2s + var(--i) * .36s) backwards; }
}
@keyframes scan { 0% { top: -26px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 28px); opacity: 0; } }
@keyframes exposed { 0%, 100% { background-color: transparent; } 25% { background-color: var(--bad-soft); } }
@keyframes tag-on { from { color: var(--line-2); transform: translateX(-6px); } }

/* the card rises as the vault comes into view */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .band-card { animation: card-up linear both; animation-timeline: view(); animation-range: entry 15% cover 32%; }
  }
}
@keyframes card-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* a hash that changes, visibly */
.v.big, .receipt-hash { font-variant-ligatures: none; }
.scrambling { color: var(--dim-2) !important; }

/* films crossfade between chapters */
.player video { transition: opacity .35s var(--ease); }
.player video.switching { opacity: .25; }

/* FAQ opens instead of jumping */
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary { transition: color .2s; }
.faq summary:hover .faq-t { box-shadow: inset 0 0 0 1px currentColor; }

/* quieter generic reveal for section heads */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
}
.badge.expired { background: var(--bad-soft); color: var(--bad); }
.check.time .check-icon { background: var(--accent-soft); color: var(--accent); }

/* ============ story: what HeldAt does, told by scrolling ============
   A sticky stage on one side, four steps on the other. The step in view sets
   data-step on the stage; every change below is a transition between states. */
.story { padding-top: var(--space-section); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.story-stage-wrap { position: sticky; top: 104px; }
.story-stage {
  position: relative; aspect-ratio: 6 / 5; border-radius: var(--r-xl); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
  --t: .75s; --e: var(--ease);
}

.story-stage > * { position: absolute; transition: transform var(--t) var(--e), opacity var(--t) var(--e), filter var(--t) var(--e); }

/* the wallet */
.st-wallet { left: 6%; top: 9%; width: 54%; padding: 16px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-md); }
.st-wallet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); margin-bottom: 10px; }
.st-tag { white-space: nowrap; font-size: 11.5px; font-weight: 560; padding: 3px 9px; border-radius: var(--r-pill); background: var(--bad-soft); color: var(--bad); transition: background-color .4s, color .4s; }
.st-wallet ul { list-style: none; display: grid; gap: 6px; }
.st-row { display: grid; grid-template-columns: 1fr auto 18px; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 10px; background: var(--mist); font-size: 14px;
  transition: opacity .6s var(--ease), filter .6s var(--ease), transform .6s var(--ease), background-color .4s, box-shadow .4s; transition-delay: calc(var(--r) * 40ms); }
.st-row b { font-weight: 560; }
.st-row span { font-size: 12px; color: var(--dim); }
.st-eye { color: var(--bad); display: grid; } .st-eye svg { width: 16px; height: 16px; }

/* the sealed receipt */
.st-receipt { left: 22%; top: 58%; width: 46%; padding: 14px 16px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(24px) scale(.92); }
.st-receipt-top { display: flex; justify-content: space-between; align-items: center; }
.st-receipt-top b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.st-lock { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.st-lock svg { width: 16px; height: 16px; }
.st-hash { display: block; margin-top: 8px; font-size: 11.5px; color: var(--accent); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* the link in flight */
.st-link { left: 54%; top: 46%; z-index: 3; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill); background: var(--ink); color: var(--on-ink); font-size: 12px; opacity: 0; transform: translateX(-90%) scale(.9); box-shadow: var(--shadow-md); }
.st-link-icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); }
.st-link-icon svg { width: 13px; height: 13px; }

/* the counterparty's phone */
.st-phone { right: 6%; top: 7%; width: 36%; height: 86%; padding: 34px 14px 16px; border-radius: 26px; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 22px 40px -24px rgba(11, 13, 18, .35); opacity: 0; transform: translateX(40px); display: flex; flex-direction: column; gap: 12px; }
.st-phone-notch { position: absolute; top: 10px; left: 50%; width: 46px; height: 6px; margin-left: -23px; border-radius: 6px; background: var(--line-2); }
.st-phone-label { font-size: 12px; color: var(--dim); }
.st-proof { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 12px; border-radius: 14px; background: var(--ok-soft); opacity: 0; transform: scale(.94); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.st-proof b { display: block; font-size: 15px; color: var(--ok); letter-spacing: -.01em; }
.st-proof span { font-size: 11.5px; color: var(--ink-2); }
.st-check { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ok); }
.st-check svg { width: 16px; height: 16px; }
.st-hidden { display: grid; gap: 7px; opacity: 0; transition: opacity .5s var(--ease) .15s; }
.st-hidden span { height: 10px; border-radius: 6px; background: var(--steel); }
.st-hidden span:nth-child(2) { width: 80%; } .st-hidden span:nth-child(3) { width: 60%; }
.st-phone-foot { margin-top: auto; font-size: 11.5px; color: var(--dim); opacity: 0; transition: opacity .5s var(--ease) .25s; }

/* step 2: one row lifts, the rest goes out of focus, a receipt is sealed */
.story-stage:not([data-step="1"]) .st-row:not(.st-pick) { opacity: .35; filter: blur(2.5px); }
.story-stage:not([data-step="1"]) .st-pick { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.story-stage:not([data-step="1"]) .st-pick .st-eye { color: var(--accent); }
.story-stage:not([data-step="1"]) .st-tag { background: var(--accent-soft); color: var(--accent); }
.story-stage[data-step="2"] .st-receipt { opacity: 1; transform: none; }
.story-stage[data-step="2"] .st-lock { animation: lock-in .6s var(--ease) .35s backwards; }
@keyframes lock-in { from { transform: scale(.4) rotate(-30deg); opacity: 0; } }

/* step 3: the receipt becomes a link and travels to the phone */
.story-stage[data-step="3"] .st-wallet, .story-stage[data-step="4"] .st-wallet { transform: translateX(-6%) scale(.94); opacity: .55; }
.story-stage[data-step="3"] .st-receipt { opacity: 0; transform: translateX(30%) scale(.7); }
.story-stage[data-step="3"] .st-link { opacity: 1; transform: translateX(-50%); }
.story-stage[data-step="3"] .st-phone, .story-stage[data-step="4"] .st-phone { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .story-stage[data-step="3"] .st-link { animation: fly 1.6s var(--ease) both; }
}
@keyframes fly { 0% { opacity: 0; transform: translate(-130%, 70px) scale(.8); } 30% { opacity: 1; } 100% { opacity: 1; transform: translateX(-50%); } }

/* step 4: the phone shows one answer, the wallet goes dark */
.story-stage[data-step="4"] .st-wallet { filter: blur(4px); opacity: .4; }
.story-stage[data-step="4"] .st-tag { background: var(--ink); color: var(--on-ink); }
.story-stage[data-step="4"] .st-proof { opacity: 1; transform: none; transition-delay: .25s; }
.story-stage[data-step="4"] .st-hidden, .story-stage[data-step="4"] .st-phone-foot { opacity: 1; }
.story-stage[data-step="4"] .st-check { animation: lock-in .6s var(--ease) .5s backwards; }

/* the steps */
.story-steps { list-style: none; display: grid; }
.story-step { position: relative; min-height: 62vh; padding: 8px 0 0 64px; }
.story-step h3, .story-step p { transition: color .5s var(--ease); }
.story-step:not(.is-active) h3, .story-step:not(.is-active) p { color: var(--dim-2); }
.story-step:last-child { min-height: 46vh; }
.story-n { position: absolute; left: 0; top: 4px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .4s, color .4s, box-shadow .4s; }
.story-step.is-active .story-n { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.story-step h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.028em; line-height: 1.15; }
.story-step p { margin-top: 12px; color: var(--dim); font-size: var(--fs-lead); max-width: 30em; }
.story-step .btn { margin-top: 24px; }
.story-step::before { content: ""; position: absolute; left: 19px; top: 52px; bottom: 8px; width: 2px; background: var(--line); }
.story-step:last-child::before { display: none; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-stage-wrap { top: 76px; z-index: 2; padding-bottom: 12px; background: linear-gradient(var(--bg) 85%, transparent); }
  .story-stage { aspect-ratio: auto; height: clamp(270px, 72vw, 340px); }
  .st-wallet li:nth-child(n+5) { display: none; }
  .st-wallet { padding: 10px; width: 56%; } .st-row { padding: 5px 8px; font-size: 12px; } .st-row span { display: none; } .st-row { grid-template-columns: 1fr 16px; }
  .st-wallet-head { margin-bottom: 6px; font-size: 11px; }
  .st-phone { width: 40%; right: 4%; padding: 22px 10px 10px; gap: 8px; } .st-proof { padding: 8px; grid-template-columns: 1fr; gap: 6px; } .st-check { width: 22px; height: 22px; } .st-check svg { width: 13px; height: 13px; }
  .st-proof b { font-size: 12.5px; white-space: nowrap; } .st-phone-label, .st-phone-foot { font-size: 10px; } .st-proof div > span { display: none; } .st-wait { font-size: 10px; }
  .st-receipt { padding: 10px 12px; } .st-receipt-top b { font-size: 15px; }
  .story-step { min-height: 64vh; padding-top: 24px; }
  .story-step:last-child { min-height: 66vh; }
}
@media (prefers-reduced-motion: reduce) {
  .story-stage > *, .st-row, .st-proof, .st-hidden, .st-phone-foot { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* headings rise word by word as they come into view */
@media (prefers-reduced-motion: no-preference) {
  .js .split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
  .js .split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease); transition-delay: calc(var(--w) * 55ms); }
  .js .split-words.in .w > span { transform: none; }
}

/* the hero cards lift away as the page scrolls */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero .hero-cards { animation: lift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }
}
@keyframes drift { to { transform: translateY(8%) scale(1.06); } }
@keyframes lift { to { translate: 0 -28px; } }

.st-wait { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); opacity: 0; transition: opacity .4s var(--ease); }
.story-stage[data-step="3"] .st-wait { opacity: 1; transition-delay: .8s; }
.story-stage[data-step="4"] .st-wait { display: none; }
.st-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .st-spin { animation: spin .8s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* preview frames: a bar that sends people to the full site */
.preview-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 6px 14px; flex-wrap: wrap; padding: 10px 16px; background: var(--ink); color: var(--on-ink); font-size: 13.5px; text-align: center; }
.preview-bar a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.has-preview-bar .nav-wrap { top: 58px; }
#v-save { margin: -6px 0 16px; }
