/* BIND visual system. Colours live in tokens.css only (sampled from the brand assets); this file reads variables.

   World: lavender-white paper, navy ink, one dark "night" seal. Brand hues (green, lavender, indigo) mark things:
   green = live and settled, lavender = mist surfaces, indigo = emphasis. State never rides on hue alone:
   live is a solid dot, stale a half dot, unread a hollow dot.
   Shape rule: buttons, chips and state chips are pills; cards 16 px; shells 24-28 px; inputs 12 px.
   Tap rule: every control is 48 px tall on phones and coarse pointers.
   z scale: 1 pinned stage, 50 bar, 80 skip link. */

@layer base, primitives, chrome, pages;

@layer base {
  :root {
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
    --wrap: 1280px;
    --gutter: clamp(16px, 4vw, 40px);
    --r-sm: 12px; --r: 16px; --r-lg: 28px; --r-pill: 999px;
    --ring: 0 0 0 1px var(--line-2);
    --shadow-1: 0 1px 2px var(--shade);
    --shadow-2: 0 1px 2px var(--shade), 0 28px 56px -32px var(--shade);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-2: cubic-bezier(0.32, 0.72, 0, 1);
    --tap: 48px;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: 132px; }
  html.is-settled { scroll-behavior: smooth; }

  body {
    margin: 0;
    background:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.15 0 0 0 0 0.4 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
      var(--ground);
    color: var(--ink);
    font: 400 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
  }
  [hidden] { display: none !important; }
  ::selection { background: var(--lavender); color: var(--night); }
  a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  a:hover { text-decoration-thickness: 2px; }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

  h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
  h1 { font-size: clamp(38px, 5.2vw, 72px); font-weight: 600; line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 20px; }
  h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 600; line-height: 1.06; letter-spacing: -0.035em; margin-bottom: 16px; }
  h3 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 8px; }
  p, li, dd { text-wrap: pretty; }
  p { margin: 0 0 12px; }
  img, svg { max-width: 100%; }
  code, .mono { font-family: var(--mono); font-size: 0.92em; overflow-wrap: anywhere; }

  .wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
  .skip { position: absolute; left: 12px; top: -64px; z-index: 80; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 18px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); text-decoration: none; }
  .skip:focus { top: 12px; }

  main { overflow-x: clip; padding: clamp(20px, 3vw, 40px) 0 clamp(88px, 10vw, 144px); min-height: 60vh; }
  main > .wrap > section { margin-top: clamp(80px, 10vw, 144px); }
  main > .wrap > section:first-child { margin-top: 0; }
  ol, ul { padding-left: 1.25em; }
  li { margin: 6px 0; }
}

@layer primitives {
  .lead { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 40em; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .card { background: var(--paper); border-radius: var(--r); box-shadow: var(--ring), var(--shadow-1); padding: 20px; }
  .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
  .section-head { max-width: 44em; margin-bottom: 32px; }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: var(--tap); padding: 0 24px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
    background: var(--paper); color: var(--ink); font: 600 15px/1 var(--sans); white-space: nowrap;
    text-decoration: none; cursor: pointer; appearance: none;
    transition: transform 0.25s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.3s;
  }
  .btn:active { transform: scale(0.98); }
  .btn--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--snow) 16%, transparent), 0 12px 24px -16px var(--ink); }
  .btn--ink:hover { background: var(--indigo); border-color: var(--indigo); text-decoration: none; }
  .btn--ghost { background: transparent; }
  .btn--ghost:hover { background: var(--paper); text-decoration: none; }
  .btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
  .btn__icon { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: -14px; border-radius: 50%; background: color-mix(in srgb, var(--snow) 16%, transparent); font-size: 15px; transition: transform 0.35s var(--ease); }
  .btn:hover .btn__icon { transform: translate(2px, -1px) scale(1.05); }

  .link-arrow { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; color: var(--blue); text-decoration: none; }
  .link-arrow::after { content: "\2192"; margin-left: 8px; transition: transform 0.35s var(--ease); }
  .link-arrow:hover::after { transform: translateX(4px); }

  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip {
    display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px;
    border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--paper);
    color: var(--ink-2); font: 600 13px/1 var(--sans); cursor: pointer; appearance: none;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  }
  .chip:hover { color: var(--ink); border-color: var(--ink-3); }
  .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

  .pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); background: var(--paper); color: var(--ink); font: 700 12px/1.4 var(--mono); letter-spacing: 0.04em; flex: none; }

  /* state chips: the dot's shape carries the state, hue only supports it */
  .state { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: var(--r-pill); font: 600 12px/1.4 var(--mono); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; vertical-align: 1px; }
  .state::before, .glyph { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.75px currentColor; flex: none; }
  .state[data-state="live"] { background: color-mix(in srgb, var(--green) 22%, var(--paper)); color: var(--ink); box-shadow: none; }
  .state[data-state="live"]::before { background: var(--green); box-shadow: 0 0 0 1.5px var(--green-ink); }
  .state[data-state="stale"] { background: var(--mist); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
  .state[data-state="stale"]::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
  .glyph { margin-right: 10px; vertical-align: -1px; width: 12px; height: 12px; }
  .glyph--live { background: var(--green); box-shadow: 0 0 0 1.75px currentColor; }
  .glyph--stale { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
  @media (prefers-reduced-motion: no-preference) { .js .state[data-state="reading"]::before { animation: breathe 1.6s ease-in-out infinite; } }
  @keyframes breathe { 50% { opacity: 0.3; } }
  .if-no-js { display: none; }
  html:not(.js) .if-js { display: none; }
  html:not(.js) .if-no-js { display: inline; }

  .src { font-size: 12.5px; color: var(--ink-2); }
  .src a { color: var(--blue); }
  .bk-age { white-space: nowrap; }

  @media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
    .js [data-reveal].is-in { opacity: 1; transform: none; }
  }
}

@layer chrome {
  .bar { position: sticky; top: 0; z-index: 50; padding-top: 10px; }

  /* the CA slot: always visible, the full address, never shortened; a button only while the record is stated */
  .ca { display: flex; align-items: center; gap: 10px; min-height: var(--tap); margin: 0 0 8px; padding: 0 8px 0 12px; border-radius: var(--r-pill); background: var(--night); color: var(--on-seal); box-shadow: 0 10px 24px -18px var(--night); }
  .ca__addr { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; letter-spacing: 0; color: var(--on-seal-2); overflow-wrap: anywhere; }
  .ca__hint { flex: none; padding: 5px 12px; border-radius: var(--r-pill); font: 600 12px/1.2 var(--mono); color: var(--on-seal-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-seal) 30%, transparent); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
  .ca[data-state="absent"] .ca__addr { font-family: var(--sans); font-size: 14px; }
  .ca__btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: copy; appearance: none; }
  .ca[data-state="stated"] .ca__addr { color: var(--on-seal); }
  .ca[data-state="stated"] .ca__hint { background: var(--green); color: var(--night); box-shadow: none; }
  .ca__btn:hover .ca__hint { background: var(--on-seal); }
  .ca[data-copied] .ca__hint { background: var(--on-seal); }
  .ca :focus-visible { outline-color: var(--green); }

  .bar__pill { position: relative; display: flex; align-items: center; gap: 6px; min-height: 64px; padding: 6px 8px 6px 20px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--ring), inset 0 1px 0 color-mix(in srgb, var(--snow) 80%, transparent), 0 14px 34px -22px var(--shade); }
  @media (prefers-reduced-transparency: reduce) { .bar__pill { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }

  .lockup { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); text-decoration: none; flex: none; color: var(--blue); }
  .lockup img { display: block; width: auto; height: 26px; }
  .lockup__word { font: 800 19px/1 var(--sans); letter-spacing: 0.06em; }

  .nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
  .nav a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); padding: 0 14px; border-radius: var(--r-pill); color: var(--ink-2); font: 600 15px/1.2 var(--sans); text-decoration: none; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
  .nav a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
  .nav a[aria-current="true"] { background: var(--mist); color: var(--ink); box-shadow: var(--ring); }

  .live { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 132px; height: 44px; margin-left: 6px; padding: 0 14px 0 12px; border-radius: var(--r-pill); background: var(--mist); color: var(--ink-2); font: 600 12px/1 var(--mono); white-space: nowrap; }
  .live__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.75px currentColor; }
  .live[data-state="live"] { color: var(--ink); }
  .live[data-state="live"] .live__dot { background: var(--green); box-shadow: 0 0 0 1.5px var(--green-ink); }
  @media (prefers-reduced-motion: no-preference) {
    .live[data-state="live"] .live__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--green); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
  }
  @keyframes ping { 0% { transform: scale(0.6); opacity: 0.45; } 100% { transform: scale(1.7); opacity: 0; } }
  .live[data-state="stale"] .live__dot, .live[data-state="degraded"] .live__dot { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
  .live[data-state="stale"], .live[data-state="degraded"] { color: var(--ink); }

  .socials { display: flex; align-items: center; gap: 2px; margin-left: 2px; }
  .social { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; color: var(--ink); text-decoration: none; transition: background-color 0.3s var(--ease); }
  .social[aria-disabled="true"] { color: var(--ink-3); opacity: 0.6; cursor: default; }
  .social:not([aria-disabled="true"]):hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

  .menu { display: none; position: relative; width: var(--tap); height: var(--tap); margin-left: 4px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); cursor: pointer; }
  .menu__lines, .menu__lines::before, .menu__lines::after { position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: currentColor; transition: transform 0.45s var(--ease-2), opacity 0.3s var(--ease); }
  .menu__lines { background: transparent; }
  .menu__lines::before { content: ""; transform: translateY(-4px); }
  .menu__lines::after { content: ""; transform: translateY(4px); }
  .menu[aria-expanded="true"] .menu__lines::before { transform: rotate(45deg); }
  .menu[aria-expanded="true"] .menu__lines::after { transform: rotate(-45deg); }

  .foot { position: relative; padding: clamp(56px, 8vw, 96px) 0 40px; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--lavender) 16%, var(--ground)) 100%); box-shadow: inset 0 1px 0 var(--line); }
  .foot__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; align-items: end; }
  .foot__brand { justify-self: start; display: flex; align-items: center; gap: 18px; padding: 20px 28px 20px 20px; border-radius: var(--r-lg); background: var(--night); color: var(--on-seal); box-shadow: 0 24px 40px -28px var(--night); }
  .foot__brand :focus-visible { outline-color: var(--green); }
  .foot__home { flex: none; display: block; border-radius: 12px; }
  .foot__home img { display: block; width: 56px; height: auto; }
  .foot__line { margin: 0 0 8px; font: 600 clamp(17px, 1.6vw, 20px)/1.3 var(--sans); letter-spacing: -0.015em; }
  .foot__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 0 48px; }
  .foot__nav a { display: flex; align-items: center; min-height: var(--tap); min-width: var(--tap); text-decoration: none; font-weight: 600; }
  .foot__nav a:hover { text-decoration: underline; }
  .foot__legal { margin-top: clamp(40px, 6vw, 64px); padding-top: 24px; box-shadow: inset 0 1px 0 var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 48px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
  .foot__legal p { margin: 0 0 8px; max-width: 64ch; }
  .foot__ca { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .foot__ca .pill { background: var(--ink); color: var(--paper); }
}

@layer pages {
  /* ---- hero ---- */
  .hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(16px, 3vw, 40px); }
  .hero::before { content: ""; position: absolute; z-index: -1; inset: -60px -50vw auto; height: 720px; background: radial-gradient(56% 60% at 78% 28%, color-mix(in srgb, var(--lavender) 30%, transparent) 0%, transparent 70%), radial-gradient(40% 50% at 18% 10%, color-mix(in srgb, var(--green) 14%, transparent) 0%, transparent 70%); pointer-events: none; }
  .hero__copy, .hero__object { min-width: 0; }
  .hero__sub { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 30em; margin: 0 0 28px; }
  .hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
  .hero__object { position: relative; display: flex; flex-direction: column; gap: 16px; }
  @media (prefers-reduced-motion: no-preference) {
    .js .hero__copy > * { animation: rise 0.9s var(--ease) both; }
    .js .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
    .js .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
    .js .hero__copy > :nth-child(4) { animation-delay: 0.24s; }
    .js .hero__object { animation: rise 1.1s var(--ease) 0.12s both; }
  }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

  .sealstrip { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 18px 24px 18px 20px; border-radius: var(--r-lg); background: var(--night); color: var(--on-seal); box-shadow: var(--shadow-2); }
  .hero__mark { flex: none; width: 64px; height: auto; }
  .sealstrip__promise { flex: 1 1 12em; margin: 0; font: 600 18px/1.3 var(--sans); letter-spacing: -0.015em; }
  .sealstrip__wallet, .mg__wallet, .foot__wallet { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font: 600 12px/1.2 var(--mono); color: var(--on-seal-2); }
  .sealstrip__wallet { flex: 1 1 100%; }
  .sealstrip__wallet i, .foot__wallet i, .mg__bar { flex: 1; min-width: 36px; height: 1px; background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px); }
  @media (min-width: 1001px) {
    .hero__mark { position: absolute; z-index: 2; top: -40px; left: -26px; width: 120px; pointer-events: none; filter: drop-shadow(0 18px 18px var(--shade)); }
    .sealstrip { padding-left: 110px; }
  }

  .statbook { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; align-content: start; margin-top: 28px; }
  .statbook__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; font: 600 13px/1.3 var(--sans); color: var(--ink-2); }
  .statbook__head .src { margin-left: auto; font-family: var(--mono); }
  .statbook__merge { grid-column: 1 / -1; position: relative; height: 34px; margin-bottom: 10px; }
  .statbook__merge::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); }
  .statbook__merge i { position: absolute; top: 50%; left: calc(var(--i) * 1%); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--ground); transform: translateY(var(--y, 0px)); transition: transform 1.1s var(--ease), background-color 0.6s var(--ease); }
  .statbook__merge i:nth-child(4n + 1) { --y: -12px; }
  .statbook__merge i:nth-child(4n + 2) { --y: 8px; }
  .statbook__merge i:nth-child(4n + 3) { --y: -5px; }
  .statbook__merge i:nth-child(4n) { --y: 12px; }
  .statbook__merge i[data-s="unread"] { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); opacity: 0.6; }
  .statbook__merge i[data-s="stale"] { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--ink); }
  .statbook__merge.is-merged i[data-s="live"] { transform: none; }
  .statbook__merge.is-merged i[data-s="stale"] { transform: translateY(calc(var(--y) * 0.35)); }
  .stat { padding: 14px 0 0; min-width: 0; box-shadow: inset 0 1px 0 var(--line-2); }
  .stat__label { margin: 0 0 4px; font: 600 13px/1.3 var(--sans); color: var(--ink-2); }
  .stat__value { margin: 0; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.2; min-height: 34px; overflow-wrap: anywhere; }
  .stat__value .state { font-size: 12px; vertical-align: middle; }
  .stat__foot { margin: 4px 0 0; font: 400 12px/1.4 var(--mono); color: var(--ink-3); }
  .stat[data-fresh="stale"] .stat__value { opacity: 0.6; }

  /* ---- the lane (hero book) ---- */
  .hero__book { position: relative; container: bkhero / inline-size; min-height: 420px; }
  .bk-shell { padding: 6px; border-radius: 26px; background: color-mix(in srgb, var(--lavender) 22%, var(--paper)); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--snow) 70%, transparent), 0 30px 60px -36px var(--indigo); transition: opacity 0.26s var(--ease-2); }
  .hero__book.bk-fade .bk-shell { opacity: 0; }
  .bk-core { border-radius: 20px; background: var(--paper); padding: 20px 22px 18px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--indigo) 16%, transparent); }
  .bk-idle { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 13px/1.3 var(--mono); color: var(--ink-2); }
  .hp-idle { list-style: none; margin: 0; padding: 0; }
  .hp-idle li { height: 46px; margin: 0; box-shadow: inset 0 -1px 0 var(--line); position: relative; }
  .hp-idle li::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
  .hero__book[aria-busy="true"] .bk-core { opacity: 0.75; }
  .bk-htop { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; align-items: flex-start; }
  .bk-hname-u { margin: 0; font-size: 14px; color: var(--ink-2); }
  .bk-refnum .num { font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; letter-spacing: -0.03em; }
  .bk-ref { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .bk-pick { display: flex; flex-wrap: wrap; gap: 6px; }
  .bk-hrows { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: minmax(9em, 12em) minmax(120px, 1fr) auto; column-gap: 16px; }
  .bk-hrow, .bk-axis { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; grid-template-areas: "name lane val" "name lane src"; align-items: center; margin: 0; padding: 8px 0; border-top: 1px solid var(--line); }
  .bk-hrows > .bk-hrow:first-child, .bk-axis + .bk-hrow { border-top: 0; }
  .bk-hname { grid-area: name; font-size: 14px; min-width: 0; }
  .bk-issuer { font-weight: 700; }
  .bk-label { color: var(--ink-2); }
  .bk-hval { grid-area: val; text-align: right; font-size: 15px; white-space: nowrap; }
  .bk-hbps { font-family: var(--mono); font-size: 12.5px; }
  .bk-hsrc { grid-area: src; text-align: right; }
  .bk-lane { grid-area: lane; display: block; height: 28px; }
  .bk-track { position: relative; display: block; height: 100%; container-type: inline-size; background: linear-gradient(to right, transparent calc(50% - 0.5px), color-mix(in srgb, var(--indigo) 55%, var(--paper)) calc(50% - 0.5px), color-mix(in srgb, var(--indigo) 55%, var(--paper)) calc(50% + 0.5px), transparent calc(50% + 0.5px)), linear-gradient(to right, var(--line), var(--line)) center / 100% 1px no-repeat; }
  .bk-mark { position: absolute; left: 0; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 3px var(--paper); transform: translateX(calc(var(--x, 50) * 1cqw)); transition: transform 1.1s var(--ease-2); will-change: transform; }
  .bk-mark.bk-deep { background: var(--green); }
  .bk-mark.bk-still { transition: none; }
  .bk-axis { grid-template-areas: ". lane ."; padding: 0 0 4px; border-top: 0; font: 11.5px/1 var(--mono); color: var(--ink-2); }
  .bk-axlane { grid-area: lane; display: grid; container-type: inline-size; }
  .bk-axl, .bk-axc, .bk-axr { grid-area: 1 / 1; }
  .bk-axc { justify-self: center; }
  .bk-axr { justify-self: end; }
  @container (max-width: 179px) { .bk-axc { display: none; } }
  .bk-cap { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); max-width: 64ch; }
  .bk-open-link { margin: 4px 0 0; font-size: 14px; }
  .bk-open-link a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--blue); font-weight: 600; }
  .bk-sp.bk-in .num, .bk-hbps.bk-in, .bk-sp.bk-out .num, .bk-hbps.bk-out { display: inline-block; padding: 1px 8px; border-radius: var(--r-pill); }
  .bk-sp.bk-in .num, .bk-hbps.bk-in { background: color-mix(in srgb, var(--green) 20%, var(--paper)); }
  .bk-sp.bk-out .num, .bk-hbps.bk-out { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
  @container bkhero (max-width: 760px) {
    .bk-hrows { grid-template-columns: minmax(7.5em, 9.5em) minmax(80px, 1fr) auto; column-gap: 12px; }
    .bk-hrow { grid-template-areas: "name lane val" "src src src"; row-gap: 2px; padding: 7px 0; }
    .bk-hsrc { text-align: left; }
  }
  @container bkhero (max-width: 540px) {
    .bk-hrows { grid-template-columns: minmax(0, 1fr) auto; }
    .bk-hrow { grid-template-areas: "name val" "lane lane" "src src"; row-gap: 4px; }
    .bk-axis { grid-template-areas: "lane lane"; }
    .bk-core { padding: 18px 16px 14px; }
  }

  /* ---- chain strip ---- */
  .zsec { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
  .strip { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .strip__cell { padding: 20px; border-radius: var(--r); background: var(--paper); box-shadow: var(--ring), var(--shadow-1); min-width: 0; }
  .strip__cell--wide { grid-column: 1 / -1; background: var(--night); color: var(--on-seal); box-shadow: var(--shadow-2); }
  .strip__cell dt { font: 600 12px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
  .strip__cell--wide dt, .strip__cell--wide .strip__src { color: var(--on-seal-2); }
  .strip__cell dd { margin: 0; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.03em; overflow-wrap: anywhere; min-height: 37px; }
  .strip__hash { font-size: clamp(13px, 1.3vw, 16px) !important; letter-spacing: 0 !important; line-height: 1.5 !important; word-break: break-all; }
  .strip__src { margin: 8px 0 0; font: 400 12px/1.4 var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }

  /* ---- book table ---- */
  .bk-book { container: bktable / inline-size; transition: opacity 0.3s; }
  .bk-book[aria-busy="true"] > * { opacity: 0.6; }
  .bk-fail { margin: 0; color: var(--ink-2); }
  .bk-filter { display: flex; flex-wrap: wrap; gap: 8px; }
  .bk-sorts { margin-top: 8px; }
  .muted { color: var(--ink-2); }
  .bk-asof { font-size: 13px; margin: 12px 0 0; color: var(--ink-2); }
  .bk-group { margin-top: 32px; padding: 22px 22px 14px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--ring), var(--shadow-2); }
  .bk-ghead h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
  .bk-ghead .mono { color: var(--ink-2); font-weight: 400; font-size: 15px; }
  .bk-deriv { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); max-width: 80ch; overflow-wrap: anywhere; }
  .bk-best { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); max-width: 70ch; }
  .bk-unread { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
  .bk-why { font-size: 12.5px; color: var(--ink-2); }
  .bk-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
  .bk-table th, .bk-table td { text-align: left; vertical-align: baseline; padding: 12px 12px 12px 0; }
  .bk-table thead th { font-size: 12px; font-weight: 600; color: var(--ink-2); padding-top: 0; border-bottom: 1px solid var(--line-2); white-space: normal; }
  .bk-table tbody tr { border-bottom: 1px solid var(--line); }
  .bk-table tbody tr:last-child { border-bottom: 0; }
  .bk-table .bk-px, .bk-table .bk-sp { text-align: right; white-space: nowrap; }
  .bk-cols { table-layout: fixed; }
  .bk-cols col:nth-child(1) { width: 20%; }
  .bk-cols col:nth-child(2) { width: 11%; }
  .bk-cols col:nth-child(3) { width: 12%; }
  .bk-cols col:nth-child(4) { width: 13%; }
  .bk-cols col:nth-child(5) { width: 13%; }
  .bk-cols col:nth-child(6) { width: 10%; }
  .bk-cols col:nth-child(7) { width: 21%; }
  .bk-cols th, .bk-cols td { overflow-wrap: anywhere; }
  .bk-name { font-weight: 400; }
  .bk-name a { color: var(--blue); font-weight: 700; text-decoration: none; }
  .bk-name a:hover { text-decoration: underline; }
  .bk-dim .bk-issuer, .bk-dim .bk-label { color: var(--ink-2); }
  .bk-k { display: none; }
  .bk-more { display: none; }
  .bk-srccell .state { margin-right: 4px; }
  .bk-table[data-fresh="stale"] tbody { opacity: 0.6; }
  @container bktable (max-width: 1049px) {
    .bk-table, .bk-table tbody, .bk-table tr, .bk-table th, .bk-table td { display: block; }
    .bk-table thead, .bk-table colgroup { display: none; }
    .bk-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 0; }
    .bk-table th, .bk-table td { padding: 0; }
    .bk-table .bk-name { grid-column: 1; grid-row: 1 / span 2; overflow-wrap: anywhere; }
    .bk-table .bk-px { grid-column: 2; grid-row: 1; }
    .bk-table .bk-sp { grid-column: 2; grid-row: 2; }
    .bk-table .bk-x { grid-column: 1 / -1; display: none; padding-top: 6px; overflow-wrap: anywhere; }
    .bk-table .bk-open .bk-x { display: block; }
    .bk-k { display: inline; font-size: 12px; color: var(--ink-2); margin-right: 6px; }
    .bk-more { display: inline-flex; align-items: center; width: max-content; min-height: var(--tap); margin: 4px 0 0; padding: 0 18px; font: 600 13px/1 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-pill); cursor: pointer; }
    .bk-open .bk-more { background: var(--ink); color: var(--paper); border-color: var(--ink); }
    .bk .src { white-space: normal; }
    .bk-group { padding: 18px 16px 8px; }
  }

  /* ---- merge story ---- */
  .merge__head { max-width: 44em; margin-bottom: 40px; }
  .merge__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
  .merge__pin { position: sticky; top: 150px; z-index: 1; }
  .merge__steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
  .merge__step { counter-increment: s; min-height: 56vh; display: flex; flex-direction: column; justify-content: center; margin: 0; opacity: 0.4; transition: opacity 0.5s var(--ease); }
  .merge__step.is-at { opacity: 1; }
  .merge__step::before { content: "0" counter(s); font: 600 12px/1 var(--mono); color: var(--indigo); margin-bottom: 14px; }
  .merge__step h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 12px; }
  .merge__step p { color: var(--ink-2); font-size: 17px; max-width: 30em; }

  .mg { position: relative; isolation: isolate; padding: 22px 24px 20px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--ring), var(--shadow-2); overflow: hidden; }
  .mg::before { content: ""; position: absolute; z-index: -1; top: 56px; bottom: 76px; left: 50%; width: 1px; background: repeating-linear-gradient(180deg, var(--indigo) 0 4px, transparent 4px 8px); opacity: 0; transition: opacity 0.6s var(--ease); }
  .mg[data-at="3"]::before, .mg[data-at="4"]::before { opacity: 0.8; }
  .mg__label { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 12px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); transition: opacity 0.5s; }
  .mg .mg__label { opacity: 0.5; }
  .mg[data-at="3"] .mg__label, .mg[data-at="4"] .mg__label { opacity: 1; }
  .mg__rows { list-style: none; margin: 0; padding: 0; }
  .mg__row { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); align-items: center; gap: 12px; height: 60px; margin: 0; box-shadow: inset 0 -1px 0 var(--line); transition: transform 0.9s var(--ease); }
  .mg__name { font: 600 14px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mg__track { position: relative; height: 100%; }
  .mg__track::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
  .mg__tick { position: absolute; z-index: 1; left: 50%; top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 3px var(--paper); transform: translateX(var(--x, 0)); transition: transform 1s var(--ease-2), background-color 0.5s; }
  .mg__row:nth-child(2) .mg__tick { background: var(--green); }
  .mg__row:nth-child(3) .mg__tick { background: var(--lavender); }
  .mg[data-at="1"] .mg__row:nth-child(1) { transform: translate(-6px, -10px) rotate(-2deg); }
  .mg[data-at="1"] .mg__row:nth-child(2) { transform: translate(12px, -2px) rotate(1.5deg); }
  .mg[data-at="1"] .mg__row:nth-child(3) { transform: translate(-10px, 10px) rotate(-1deg); }
  .mg[data-at="1"] .mg__row:nth-child(1) .mg__tick { --x: -110px; }
  .mg[data-at="1"] .mg__row:nth-child(2) .mg__tick { --x: 70px; }
  .mg[data-at="1"] .mg__row:nth-child(3) .mg__tick { --x: -40px; }
  .mg[data-at="2"] .mg__row:nth-child(1) .mg__tick { --x: -60px; }
  .mg[data-at="2"] .mg__row:nth-child(2) .mg__tick { --x: 40px; }
  .mg[data-at="2"] .mg__row:nth-child(3) .mg__tick { --x: -20px; }
  .mg:is([data-at="3"], [data-at="4"]) .mg__row:nth-child(1) .mg__tick { --x: -3px; }
  .mg:is([data-at="3"], [data-at="4"]) .mg__row:nth-child(2) .mg__tick { --x: 4px; }
  .mg:is([data-at="3"], [data-at="4"]) .mg__row:nth-child(3) .mg__tick { --x: 34px; }
  .mg__wallet { margin: 16px -24px -20px; padding: 16px 24px; background: var(--night); color: var(--on-seal); opacity: 0.35; transform: translateY(6px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .mg__wallet > span:first-child { font: 600 14px/1.2 var(--sans); }
  .mg__bar { transform: scaleX(0.3); transform-origin: left; transition: transform 1s var(--ease) 0.2s; }
  .mg[data-at="4"] .mg__wallet { opacity: 1; transform: none; }
  .mg[data-at="4"] .mg__bar { transform: none; }

  /* ---- bento ---- */
  .bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
  .bento__cell { display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; margin: 0; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); box-shadow: var(--ring); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
  .bento__cell:hover { transform: translateY(-4px); box-shadow: var(--ring), var(--shadow-2); }
  .bento__cell:nth-child(1) { grid-column: span 5; }
  .bento__cell:nth-child(2) { grid-column: span 7; }
  .bento__cell:nth-child(3) { grid-column: span 7; }
  .bento__cell:nth-child(4) { grid-column: span 5; }
  .bento__cell h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 14px; }
  .bento__cell p { max-width: 32em; color: var(--ink-2); }
  .bento__cell--mist { background: color-mix(in srgb, var(--lavender) 26%, var(--paper)); color: var(--ink); }
  .bento__cell--green { background: color-mix(in srgb, var(--green) 26%, var(--paper)); }
  .bento__cell--night { background: var(--night); color: var(--on-seal); }
  .bento__cell--indigo { background: var(--indigo); color: var(--on-seal); }
  .bento__cell--night p, .bento__cell--indigo p { color: var(--on-seal-2); }
  .bento__flow { display: inline-flex; align-items: center; align-self: flex-start; margin: 20px 0 0 !important; padding: 8px 16px; border-radius: var(--r-pill); font: 600 12px/1.3 var(--mono); box-shadow: inset 0 0 0 1px var(--line-2); }
  .bento__cell--night .bento__flow, .bento__cell--indigo .bento__flow { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-seal) 30%, transparent); }
  .bento__cell p.bento__flow { color: inherit; }
  .bento__cell--night .glyph--live, .bento__cell--indigo .glyph--live { box-shadow: 0 0 0 1.75px var(--on-seal); }

  /* ---- ledger ---- */
  .ledger__table { border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: var(--ring), var(--shadow-2); }
  .ledger__cols, .ledger__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ledger__cols span { padding: 14px 28px; font: 600 13px/1.3 var(--mono); }
  .ledger__cols span:first-child { background: color-mix(in srgb, var(--lavender) 22%, var(--paper)); color: var(--ink); }
  .ledger__cols span:last-child { background: var(--night); color: var(--on-seal-2); }
  .ledger__open, .ledger__sealed { margin: 0; padding: 22px 28px; font-size: 16px; line-height: 1.5; }
  .ledger__open { color: var(--ink); box-shadow: inset 0 1px 0 var(--line); }
  .ledger__sealed { background: var(--night); color: var(--on-seal); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--snow) 10%, transparent); }
  .ledger__k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ledger__foot { margin: 0; padding: 18px 28px; font-size: 14px; color: var(--ink-2); box-shadow: inset 0 1px 0 var(--line); }

  /* ---- proof ---- */
  .receipt-sec { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
  .rc { padding: 22px; border-radius: var(--r-lg); box-shadow: var(--ring), var(--shadow-2); }
  .rc__body { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start; margin: 18px 0; }
  .rc__seal { width: 120px; height: 120px; display: grid; place-items: center; }
  .rc__seal svg { display: block; width: 120px; height: 120px; }
  .rc__note { margin: 0; padding: 14px 16px; min-height: 120px; border-radius: var(--r-sm); background: var(--mist); font: 500 13px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
  .rc__actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .rc__foot { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
  .sl-disc { fill: var(--night); }
  .sl-ring { fill: none; stroke: var(--lavender); stroke-width: 1.2; }
  .sl-t { fill: var(--green); }
  .sl-t--tall { fill: var(--lavender); }
  .sl-g { fill: var(--green); }
  .sl-l { fill: var(--lavender); }
  .sl-b { fill: var(--blue); }
  @media (prefers-reduced-motion: no-preference) { .rc__seal svg { animation: rise 0.7s var(--ease) both; } }

  /* ---- token band ---- */
  .tokenband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(36px, 6vw, 72px); border-radius: var(--r-lg); background: var(--night); color: var(--on-seal); box-shadow: var(--shadow-2); position: relative; overflow: hidden; }
  .tokenband::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, color-mix(in srgb, var(--indigo) 55%, transparent), transparent); pointer-events: none; }
  .tokenband > * { position: relative; }
  .tokenband__ticker { font-size: clamp(56px, 11vw, 150px); line-height: 0.9; font-weight: 700; letter-spacing: -0.06em; margin: 0; }
  .tokenband__body p { color: var(--on-seal-2); font-size: 17px; max-width: 26em; }
  .tokenband__ca { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--on-seal) !important; }
  .tokenband__note { font-size: 14px !important; }
  .tokenband__date { color: var(--on-seal) !important; font-weight: 600; }

  /* ---- faq ---- */
  .faq__list { margin: 0; max-width: 56em; }
  .faq h2 { margin-bottom: 28px; }
  .faq__item { padding: 22px 0; box-shadow: inset 0 1px 0 var(--line-2); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px 40px; }
  .faq__item dt { font: 600 19px/1.3 var(--sans); letter-spacing: -0.015em; }
  .faq__item dd { margin: 0; color: var(--ink-2); }
}

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .hero, .zsec, .tokenband, .receipt-sec { grid-template-columns: minmax(0, 1fr); }
  .nav a { padding: 0 10px; }
}
@media (max-width: 900px) {
  .bar__pill { padding-left: 14px; }
  .menu { display: inline-block; margin-left: auto; }
  .live { margin-left: 0; min-width: 0; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; align-items: stretch; margin: 0; padding: 10px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--ring), var(--shadow-2); }
  .bar[data-open] .nav { display: flex; }
  .nav a { min-height: var(--tap); padding: 0 16px; font-size: 17px; }
  .merge__body { grid-template-columns: minmax(0, 1fr); }
  .merge__pin { top: 150px; }
  .merge__step { min-height: 44vh; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__cell:nth-child(n) { grid-column: auto; min-height: 220px; }
  .faq__item { grid-template-columns: minmax(0, 1fr); }
  .chip { min-height: var(--tap); }
}
@media (pointer: coarse) { .chip { min-height: var(--tap); } }
.src a, .bk-name a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); }
.nav a { min-height: var(--tap); }
.chip { min-height: var(--tap); }
@media (max-width: 600px) {
  .ca { border-radius: var(--r); padding-top: 4px; padding-bottom: 4px; }
  .ca__addr { font-size: 12px; }
  .strip { grid-template-columns: minmax(0, 1fr); }
  .statbook { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot__top, .foot__legal, .ledger__cols, .ledger__row { grid-template-columns: minmax(0, 1fr); }
  .ledger__cols { display: none; }
  .ledger__k { position: static; display: block; width: auto; height: auto; clip: auto; margin-bottom: 4px; font: 600 12px/1.2 var(--mono); opacity: 0.75; }
  .foot__brand { border-radius: var(--r); }
  .rc__body { grid-template-columns: minmax(0, 1fr); }
  .rc__actions .btn { flex: 1 1 100%; }
  .bk-group { padding: 16px 14px 6px; border-radius: var(--r); }
  .lockup__word { font-size: 18px; }
  .live { min-width: 0; padding: 0 10px; }
  .bar__pill { gap: 2px; padding-right: 6px; }
}
@media (max-width: 420px) {
  .live__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .live { width: 44px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
