/* Kryphe · site styles. No build step. All colours live on :root. */

:root {
  /* brand */
  --night: #0D2125;
  --teal: #14343A;
  --cream: #E9D8AA;
  --tan: #B8986A;
  --amber: #F2B45A;

  /* derived */
  --night-deep: #091719;
  --night-raise: #11292E;
  --panel: #122E33;
  --ink: var(--cream);
  --ink-body: #D9CAA0;          /* cream nudged toward night for long reading */
  --ink-muted: var(--tan);
  --line: rgba(233, 216, 170, 0.12);
  --line-strong: rgba(233, 216, 170, 0.24);
  --cream-wash: rgba(233, 216, 170, 0.06);
  --amber-wash: rgba(242, 180, 90, 0.08);
  --amber-line: rgba(242, 180, 90, 0.55);
  --scrim: rgba(13, 33, 37, 0.92);
  --shadow: rgba(4, 12, 14, 0.55);

  /* type */
  --f-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-ui: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;

  /* rhythm */
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --sec-pad: clamp(64px, 7vw, 104px);
  --radius: 14px;
  --radius-sm: 9px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);       /* quint-ish */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* layers */
  --z-art: 0;
  --z-content: 1;
  --z-veil: 45;
  --z-sticky: 50;
  --z-menu: 60;
  --z-toast: 80;
  --z-skip: 90;

  --nav-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink-body);
  font-family: var(--f-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
code { font-family: var(--f-mono); }
.mono { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: var(--z-skip); background: var(--cream); color: var(--night); padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- placeholder chip ---------- */
.ph {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--amber);
  background: var(--amber-wash);
  border: 1px dashed var(--amber-line);
  border-radius: 6px;
  padding: 0 0.45em;
  white-space: nowrap;
  vertical-align: 0.08em;
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out);
}
.btn--primary { background: var(--cream); color: var(--night); }
.btn--primary:hover { background: #F4E7C2; }
.btn--primary:active { transform: translateY(1px); }
.btn--primary[disabled] { background: rgba(9, 23, 25, 0.72); color: var(--ink-muted); border: 1px dashed var(--line-strong); cursor: not-allowed; }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(13, 33, 37, 0.4); }
.btn--ghost:hover { border-color: var(--cream); }
.btn__arrow { transition: transform .4s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateY(3px); }
.btn:hover .btn__arrow--up { transform: translateY(-3px); }

.link {
  display: inline-flex; gap: 0.4em; align-items: center;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease-out);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1px; }
.link span[aria-hidden] { transition: transform .4s var(--ease-out); }
.link:hover span[aria-hidden] { transform: translateX(3px); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px dashed var(--line-strong); background: transparent;
  color: var(--ink-muted); font-size: 0.875rem; font-weight: 500; white-space: nowrap;
}
.pill[disabled] { cursor: not-allowed; }
.pill--app { border-style: solid; color: var(--ink); text-decoration: none; transition: border-color .3s var(--ease-out); }
.pill--app:hover { border-color: var(--cream); }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tan); box-shadow: 0 0 0 3px rgba(184, 152, 106, 0.18); }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 0.7rem; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tan); }

/* ---------- art treatment: scanlines + grain ---------- */
.art { position: relative; overflow: hidden; isolation: isolate; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art::before, .art::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.art::before {
  background: repeating-linear-gradient(to bottom, rgba(4, 12, 14, 0.26) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.art::after {
  inset: -60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.25'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.16; mix-blend-mode: overlay;
  animation: grain 0.9s steps(5) infinite; animation-play-state: paused;
}
.art.is-live::after { animation-play-state: running; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-22px, 14px); } 40% { transform: translate(18px, -26px); }
  60% { transform: translate(-12px, -8px); } 80% { transform: translate(26px, 20px); } 100% { transform: translate(0, 0); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(13, 33, 37, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--nav-h); display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 28px; height: 28px; }
.brand__word { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 1.75rem; line-height: 1; letter-spacing: 0.005em; transform: translateY(-2px); }

.nav__links { position: relative; display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__links a {
  position: relative; padding: 8px 11px; border-radius: 8px;
  color: var(--ink-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color .3s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--ink); }
.nav__indicator {
  position: absolute; left: 0; bottom: -2px; height: 1px; width: 1px; transform-origin: 0 50%;
  background: var(--cream); opacity: 0;
  transition: transform .5s var(--ease-expo), opacity .3s;
}
.nav__end { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__burger { display: none; }
.nav__x {
  display: grid; place-content: center; width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink); transition: border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.nav__x:hover { border-color: var(--cream); color: var(--cream); }
.nav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; }
.nav__progress span { display: block; height: 100%; width: 100%; background: var(--tan); transform-origin: 0 50%; transform: scaleX(0); opacity: .7; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(calc(100svh - var(--nav-h) - 90px), 820px);   /* leaves the network strip in the first view */
  display: flex; align-items: center;
  padding-block: clamp(40px, 5vw, 72px);
}
.hero__art { position: absolute; inset: 0; z-index: -2; }
.hero__art img { object-position: 70% 60%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 33, 37, 0.93) 0%, rgba(13, 33, 37, 0.8) 34%, rgba(13, 33, 37, 0.3) 58%, rgba(13, 33, 37, 0.12) 100%),
    linear-gradient(180deg, rgba(13, 33, 37, 0.3) 0%, rgba(13, 33, 37, 0) 26%, rgba(13, 33, 37, 0) 70%, var(--night) 100%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink);
  padding: 6px 13px 6px 11px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(13, 33, 37, 0.55);
}
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 180, 90, 0.14); }
.chip__sep { color: var(--ink-muted); }

.hero__title {
  margin-top: 26px;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(3.4rem, 1.6rem + 5.6vw, 6rem);
  line-height: 0.94; letter-spacing: -0.012em;
}
.hero__title .ln { display: block; }
.hero__title em { font-weight: 500; color: var(--cream); padding-right: 0.04em; }
.hero__sub { margin-top: 26px; max-width: 34em; font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); color: var(--ink-body); line-height: 1.6; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__meta { margin-top: 26px; color: var(--ink-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* example payment card */
.demo {
  margin: 0; position: relative;
  background: rgba(10, 26, 29, 0.9);
  border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 16px 18px 20px;
  box-shadow: 0 40px 80px -40px var(--shadow);
}
.demo::before { /* dotted field, echoing a ledger grid */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(rgba(233, 216, 170, 0.09) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%);
}
.demo__head { position: relative; display: flex; align-items: center; gap: 12px; }
.demo__title { color: var(--ink); display: flex; align-items: center; gap: 8px; }
.demo__glyph { color: var(--tan); }
.demo__ctx { margin-left: auto; color: var(--ink-muted); display: flex; align-items: center; gap: 6px; }
.demo__pause {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink-muted);
  transition: color .3s, border-color .3s;
}
.demo__pause:hover { color: var(--ink); border-color: var(--line-strong); }
.demo__pause svg { fill: currentColor; }
.demo__pause .i-play { display: none; }
.demo__pause[aria-pressed="true"] .i-pause { display: none; }
.demo__pause[aria-pressed="true"] .i-play { display: block; }

.demo__stage { position: relative; aspect-ratio: 560 / 380; margin-top: 6px; }
.demo__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire { fill: none; stroke: var(--line-strong); stroke-width: 1.4; transition: stroke .6s var(--ease-out); }
.node { fill: var(--night); stroke: var(--tan); stroke-width: 1.4; }
.svg-label { font-family: var(--f-mono); font-size: 11px; fill: var(--ink-muted); }
.svg-label--dim { opacity: 0; }
.tok { fill: var(--cream); }
.tokens { opacity: 0; transition: opacity .5s var(--ease-out); }
.ring { fill: none; transition: stroke .6s var(--ease-out); }
.ring--outer { stroke: var(--line); stroke-width: 1; }
.ring--dash { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 7; transform-origin: 280px 190px; animation: spin 60s linear infinite; }
.recipient { fill: var(--night); stroke: var(--line-strong); stroke-width: 1.4; transition: stroke .6s var(--ease-out); }
.recipient__icon { fill: none; stroke: var(--ink-muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .6s; }
@keyframes spin { to { transform: rotate(360deg); } }

.demo__stage[data-step="0"] .g-in .wire { stroke: rgba(233, 216, 170, 0.7); }
.demo__stage[data-step="0"] .tokens--in { opacity: 1; }
.demo__stage[data-step="1"] .ring--outer { stroke: rgba(233, 216, 170, 0.5); }
.demo__stage[data-step="1"] .ring--dash { stroke: var(--cream); animation-duration: 14s; }
.demo__stage[data-step="2"] .g-out .wire { stroke: rgba(233, 216, 170, 0.7); }
.demo__stage[data-step="2"] .tokens--out { opacity: 1; }
.demo__stage[data-step="2"] .recipient { stroke: var(--cream); }
.demo__stage[data-step="2"] .recipient__icon { stroke: var(--cream); }

.demo__pool {
  position: absolute; left: 50%; top: 50%;
  width: 52%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-strong), 0 30px 60px -30px #000;
  background: var(--night);
}
.eye { width: 100%; height: 100%; }
.eye--fallback { position: absolute; inset: 0; object-fit: cover; }

.stepper {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  margin: 10px auto 0; max-width: 420px; padding: 4px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(13, 33, 37, 0.6);
}
.stepper button {
  border: 1px solid transparent; background: transparent; border-radius: 9px;
  padding: 8px 6px; font-size: 0.82rem; font-weight: 500; color: var(--ink-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  transition: color .3s, background-color .3s, border-color .3s;
}
.stepper button .mono { font-size: 0.68rem; opacity: .7; }
.stepper button:hover { color: var(--ink); }
.stepper button[aria-selected="true"] { color: var(--night); background: var(--cream); }
.demo__cap { margin-top: 14px; text-align: center; font-size: 0.92rem; color: var(--ink); min-height: 3em; padding-inline: 8px; }

/* ---------- networks strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--night); }
.strip__inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding-block: 18px; flex-wrap: wrap; }
.strip__label { color: var(--ink-muted); }
.strip__chain { display: flex; align-items: center; gap: 12px; }
.chain-badge { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--cream); background: var(--panel); }
.strip__name { color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.strip__sub { color: var(--ink-muted); }
.strip__assets { display: flex; gap: 8px; flex-wrap: wrap; }
.strip__status { color: var(--ink-muted); display: flex; align-items: center; gap: 8px; }
.strip__link { margin-left: auto; }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec-pad); position: relative; }
.sec-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-muted);
}
.sec-label__g {
  font-family: var(--f-display); font-style: italic; font-size: 1.5rem; line-height: 1;
  color: var(--cream); width: 1.2em; transform: translateY(-1px);
}
.sec__title {
  margin-top: 18px;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.4rem);
  line-height: 1; letter-spacing: -0.01em;
}
.sec__lede { margin-top: 22px; max-width: 36em; color: var(--ink-body); font-size: 1.08rem; }
.sec__head { max-width: 760px; }

/* how it works · tabs */
.tabs { margin-top: clamp(40px, 5vw, 64px); border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; background: var(--night-raise); }
.tabs__list { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.tabs__list button {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 18px 24px; border: 0; background: transparent; cursor: pointer;
  font-size: 1rem; font-weight: 500; color: var(--ink-muted); text-align: left;
  transition: color .3s, background-color .3s;
}
.tabs__list button + button { border-left: 1px solid var(--line); }
.tabs__list button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cream);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease-expo);
}
.tabs__list button:hover { color: var(--ink); }
.tabs__list button[aria-selected="true"] { color: var(--ink); background: var(--cream-wash); }
.tabs__list button[aria-selected="true"]::after { transform: scaleX(1); }
.tabs__n { color: var(--tan); font-size: 0.72rem; min-width: 1.6em; }

.tabs__panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 420px; }
.tabs__panel[hidden] { display: none; }
.panel__copy { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; align-self: center; }
.panel__copy h3 { font-family: var(--f-display); font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.05; font-weight: 500; }
.panel__copy p { max-width: 34em; }
.panel__copy .link { align-self: flex-start; margin-top: 6px; }
.panel__visual { border-left: 1px solid var(--line); min-height: 380px; display: grid; place-items: end; padding: 28px; }
.panel__visual > img { position: absolute; inset: 0; z-index: -1; filter: saturate(0.9); }
.panel__visual::before { z-index: 0; }
.panel__visual > .mock { position: relative; z-index: 2; }
.art--soft > img { opacity: 0.72; object-position: 30% 45%; }
.panel__visual > .panel__img--pool { object-position: 40% 40%; }
.panel__visual > .panel__img--roads { object-position: 25% 50%; }
.art--soft { background: var(--night-deep); }

.mock {
  width: min(100%, 340px);
  background: var(--scrim); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 18px 18px 18px; box-shadow: 0 30px 60px -24px #000;
}
.mock__title { color: var(--ink); display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mock__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tan); }
.mock__rows { margin: 0; }
.mock__rows > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 0.88rem; }
.mock__rows dt { color: var(--ink-muted); }
.mock__rows dd { margin: 0; color: var(--ink); text-align: right; }
.mock__warn { color: var(--cream); }
.mock__btn { display: block; margin-top: 16px; text-align: center; padding: 10px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--ink-muted); font-size: 0.88rem; font-weight: 500; }
.mock__bar { margin-top: 16px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.mock__bar span { display: block; height: 100%; width: 62%; background: var(--cream); border-radius: inherit; animation: proving 3.6s var(--ease-out) infinite; transform-origin: 0 50%; }
@keyframes proving { 0% { transform: scaleX(0.05); } 70% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* privacy */
.privacy { background: linear-gradient(180deg, var(--night) 0%, var(--teal) 18%, var(--teal) 82%, var(--night) 100%); }
.privacy__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.privacy__copy .link { margin-top: 22px; }
.privacy__art { margin: 36px 0 0; aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line); }

.ledger {
  background: var(--night); border: 1px solid var(--line-strong); border-radius: 20px;
  padding: clamp(20px, 3vw, 30px); box-shadow: 0 40px 90px -50px #000;
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.ledger__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ledger__title { color: var(--ink); }
.ledger__hint { margin-top: 10px; color: var(--ink-muted); min-height: 1.6em; }
.switch { display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; cursor: pointer; padding: 4px; font-size: 0.88rem; font-weight: 500; color: var(--ink); }
.switch__track { width: 40px; height: 22px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--night-raise); position: relative; transition: background-color .35s var(--ease-out), border-color .35s; }
.switch__thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--tan); transition: transform .45s var(--ease-expo), background-color .35s; }
.switch[aria-checked="true"] .switch__track { background: var(--cream); border-color: var(--cream); }
.switch[aria-checked="true"] .switch__thumb { transform: translateX(18px); background: var(--night); }

.ledger__cols { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.ledger__col { padding: 18px 20px 6px 0; }
.ledger__col + .ledger__col { border-left: 1px solid var(--line); padding: 18px 0 6px 20px; }
.ledger__colhead { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 0.95rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tag { font-family: var(--f-mono); font-size: 0.66rem; font-weight: 500; padding: 2px 8px; border-radius: 999px; }
.tag--hidden { background: var(--cream); color: var(--night); }
.tag--public { border: 1px solid var(--line-strong); color: var(--ink-muted); }
.ledger__col li { padding: 12px 0; border-bottom: 1px dashed var(--line); display: grid; gap: 2px; }
.ledger__col li:last-child { border-bottom: 0; padding-bottom: 0; }
.ledger__col strong { color: var(--ink); font-weight: 500; font-size: 0.93rem; line-height: 1.35; }
.ledger__val { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-body); line-height: 1.5; transition: color .4s; }
.ledger[data-view="observer"] .ledger__col--hidden .ledger__val { color: var(--tan); letter-spacing: 0.08em; }
.ledger[data-view="observer"] .ledger__col--hidden strong { opacity: .55; }
.ledger__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-body); }

/* networks */
.networks__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.networks__art { margin: 0; aspect-ratio: 4 / 5; border-radius: 20px; border: 1px solid var(--line); }
.networks__art img { object-position: 40% 50%; }
.networks__body { display: grid; gap: 32px; }
.assets { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--night-raise); }
.assets__tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.assets__tab { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--cream-wash); color: var(--ink); font-size: 0.88rem; font-weight: 500; cursor: default; }
.assets__chainid { color: var(--ink-muted); }
.assets__list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); transition: background-color .3s; }
.assets__list li:last-child { border-bottom: 0; }
.assets__list li:hover { background: var(--cream-wash); }
.assets__sym { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--cream); font-size: 0.95rem; }
.assets__kind { color: var(--ink-body); margin-top: 2px; }
.note { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--cream-wash); }
.note__title { color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.note p:last-child { font-size: 0.95rem; }

/* contracts */
.contracts { border-top: 1px solid var(--line); }
.contracts__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ctable { margin-top: clamp(36px, 4vw, 56px); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.ctable__chain { padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--night-raise); color: var(--ink); font-weight: 600; }
.ctable__chain > span { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ctable__dim { color: var(--ink-muted); font-weight: 400; }
.ctable__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); transition: background-color .3s; }
.ctable__row:hover { background: var(--cream-wash); }
.ctable__k { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 0.95rem; }
.ctable__addr { font-size: 0.76rem; justify-self: end; text-align: right; }
.ctable__token { background: linear-gradient(90deg, rgba(233, 216, 170, 0.1), rgba(233, 216, 170, 0.03)); border-top: 1px solid var(--line-strong); }
.ctable__row--token { border-bottom: 0; padding-block: 20px; }
.ctable__row--token .ctable__k { line-height: 1.35; align-items: center; }
.ctable__row--token strong { font-weight: 600; }
.copy {
  min-width: 72px; height: 34px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: border-color .3s, background-color .3s, color .3s;
}
.copy:hover { border-color: var(--cream); }
.ctable__act { display: flex; align-items: center; gap: 8px; }
.ext { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--ink); transition: border-color .3s; }
.ext:hover { border-color: var(--cream); }
.ctable__tlink { font-size: 0.85rem; }
.copy.is-done { background: var(--cream); color: var(--night); border-color: var(--cream); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__list details { border-bottom: 1px solid var(--line-strong); interpolate-size: allow-keywords; }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 2px; color: var(--ink); font-size: 1.1rem; font-weight: 500; transition: color .3s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--tan), var(--tan)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--tan), var(--tan)) center / 1.5px 100% no-repeat;
  transition: transform .45s var(--ease-expo);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list summary:hover { color: #F4E7C2; }
.faq__list details::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease-expo), content-visibility .5s allow-discrete; }
.faq__list details[open]::details-content { block-size: auto; }
.faq__a { padding: 0 2px 24px; max-width: 40em; }
.faq__docs { margin-top: 22px; }

/* closing */
.closing { position: relative; isolation: isolate; padding-block: clamp(120px, 16vw, 220px); text-align: center; overflow: hidden; }
.closing__art { position: absolute; inset: 0; z-index: -2; }
.closing__art img { object-position: 50% 70%; }
.closing__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(13, 33, 37, 0.78), rgba(13, 33, 37, 0.35) 70%),
    linear-gradient(180deg, var(--night) 0%, rgba(13, 33, 37, 0) 26%, rgba(13, 33, 37, 0) 70%, var(--night) 100%);
}
.closing__inner { display: grid; justify-items: center; }
.closing__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(3rem, 1.8rem + 4.6vw, 5.6rem); line-height: 0.95; letter-spacing: -0.01em; }
.closing__inner > p { margin-top: 20px; max-width: 32em; color: var(--ink); }
.closing .hero__ctas { justify-content: center; }
.closing__note { margin-top: 18px; color: var(--ink-muted); display: flex; align-items: center; gap: 8px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 64px 40px; background: var(--night-deep); font-size: 0.95rem; }
.foot__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.foot__brand p { margin-top: 16px; max-width: 26em; color: var(--ink-muted); }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot__h { color: var(--ink-muted); margin-bottom: 14px; }
.foot__cols li + li { margin-top: 8px; }
.foot__cols a { color: var(--ink); text-decoration: none; transition: color .3s; }
.foot__cols a:hover { color: #F4E7C2; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.foot__legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; color: var(--ink-muted); font-size: 0.88rem; }
.foot__legal .link { margin-left: auto; font-size: 0.88rem; }
.foot__risk { margin-top: 14px; color: var(--ink-muted); font-size: 0.82rem; max-width: 70em; }

/* phone menu backdrop */
.menu-veil {
  position: fixed; inset: 0; z-index: var(--z-veil); background: rgba(9, 23, 25, 0.7);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility 0s .35s;
}
html.menu-open .menu-veil { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-out), visibility 0s; }
@media (min-width: 961px) { .menu-veil { display: none; } }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast);
  transform: translate(-50%, 0); max-width: calc(100vw - 32px);
  background: var(--cream); color: var(--night); font-size: 0.9rem; font-weight: 500;
  padding: 11px 18px; border-radius: 12px; box-shadow: 0 20px 40px -16px #000;
  animation: toast-in .45s var(--ease-expo);
}
.toast code { font-size: 0.8rem; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- motion: load + reveal (content visible by default) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* only the chip fades; everything else moves but never starts hidden, so a frozen first frame still reads */
  html:not(.static) .hero__copy > * { animation: rise-soft 1.1s var(--ease-expo) both; }
  html:not(.static) .hero__copy > .chip { animation-name: rise; }
  html:not(.static) .hero__copy > :nth-child(1) { animation-delay: .05s; }
  html:not(.static) .hero__title .ln { animation: rise-blur 1.3s var(--ease-expo) both; }
  html:not(.static) .hero__title .ln:nth-child(1) { animation-delay: .12s; }
  html:not(.static) .hero__title .ln:nth-child(2) { animation-delay: .24s; }
  html:not(.static) .hero__title { animation: none; }
  html:not(.static) .hero__copy > :nth-child(3) { animation-delay: .38s; }
  html:not(.static) .hero__copy > :nth-child(4) { animation-delay: .48s; }
  html:not(.static) .hero__copy > :nth-child(5) { animation-delay: .58s; }
  html:not(.static) .demo { animation: rise-soft 1.4s var(--ease-expo) .3s both; }
  html:not(.static) .hero__art img { animation: settle 2.4s var(--ease-out) both; }

  /* JS adds .pre only to blocks that start below the fold, then swaps to .in */
  .reveal.pre > *, .reveal.pre.reveal--self { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  .reveal.in > *, .reveal.in.reveal--self {
    opacity: 1; transform: none; filter: none;
    transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-expo), filter .9s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes rise-soft { from { transform: translateY(16px); } }
@keyframes rise-blur { from { transform: translateY(0.3em); } }
@keyframes settle { from { transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art::after { animation: none; }
  .ring--dash { animation: none; }
  .tokens { display: none; }
  .mock__bar span { animation: none; transform: scaleX(0.62); }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
html.static *, html.static *::before, html.static *::after { animation: none !important; transition: none !important; }
html.static .tokens { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav__links a { padding: 8px 8px; font-size: 0.86rem; }
  .nav__inner { gap: 16px; }
}
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 640px; }
  .demo { max-width: 640px; }
  .privacy__grid, .networks__grid, .faq__grid { grid-template-columns: 1fr; }
  .ledger { position: relative; top: 0; }
  .privacy__art { aspect-ratio: 16 / 9; }
  .networks__art { aspect-ratio: 16 / 10; }
  .tabs__panel { grid-template-columns: 1fr; }
  .panel__visual { border-left: 0; border-top: 1px solid var(--line); min-height: 340px; }
  .foot__top { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav__burger {
    display: grid; place-content: center; gap: 6px; width: 42px; height: 42px; border-radius: 10px;
    border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  }
  .nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease-expo); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__end { margin-left: auto; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 8px var(--gutter) 20px; background: var(--night); border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 30px 60px -20px #000;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .35s var(--ease-out), transform .45s var(--ease-expo), visibility 0s .45s;
  }
  .nav.is-open { background: var(--night); }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; transition: opacity .35s var(--ease-out), transform .45s var(--ease-expo), visibility 0s; }
  .nav__links a { padding: 14px 2px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links a:last-of-type { border-bottom: 0; }
  .nav__indicator { display: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .pill--app { height: 34px; padding: 0 12px; font-size: 0.8rem; }
  .nav__x { width: 34px; height: 34px; }
  .brand__word { font-size: 1.55rem; }
  .hero { padding-top: 40px; }
  .hero__art img { object-position: 70% 50%; }
  .hero__scrim { background: linear-gradient(180deg, rgba(13, 33, 37, 0.7) 0%, rgba(13, 33, 37, 0.86) 40%, rgba(13, 33, 37, 0.94) 70%, var(--night) 100%); }
  .hero__title { font-size: clamp(3.1rem, 15vw, 4rem); }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .demo { padding: 14px 12px 16px; border-radius: 16px; }
  .demo__ctx { display: none; }
  .demo__pause { margin-left: auto; }
  .stepper button { font-size: 0.76rem; padding: 8px 2px; gap: 4px; }
  .svg-label { font-size: 13px; }
  .strip__inner { gap: 14px 20px; }
  .strip__label { width: 100%; }
  .strip__link { margin-left: 0; }
  .tabs { border-radius: 16px; }
  .tabs__list button { padding: 14px 10px; font-size: 0.9rem; gap: 6px; justify-content: center; }
  .tabs__n { display: none; }
  .panel__visual { padding: 20px 14px; min-height: 0; }
  .ledger__cols { grid-template-columns: 1fr; }
  .ledger__col, .ledger__col + .ledger__col { padding: 16px 0 6px; }
  .ledger__col + .ledger__col { border-left: 0; border-top: 1px solid var(--line); margin-top: 10px; }
  .ctable__row--token .ctable__addr { margin-left: 46px; }
  .ctable__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; }
  .ctable__addr { grid-column: 1; grid-row: 2; justify-self: start; text-align: left; }
  .ctable__row > span:last-child { grid-column: 2; grid-row: 1 / span 2; }
  .ctable__chain { padding: 14px 16px; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__legal .link { margin-left: 0; }
  .faq__list summary { font-size: 1.02rem; }
}
