/* Homepage. Same board, seen from the street: a brass ticker tape carrying the coin's CA across
   the top, the engraving on the right, one door into the launchpad. Tokens come from styles.css. */
.home { overflow: hidden; }
.h-app {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto var(--foot);
}
.has-ca .h-app { grid-template-rows: 40px auto minmax(0, 1fr) auto var(--foot); }

/* ticker tape: the board's own tape, carrying one figure */
.tape {
  position: relative; display: block; width: 100%; height: 40px; overflow: hidden;
  background: var(--brass); color: var(--ink);
  border-radius: 0; text-align: left;
}
.tape:focus-visible { outline: 2px solid var(--cream); outline-offset: -4px; border-radius: 0; }
.tape-track { display: flex; width: max-content; height: 100%; animation: tape 90s linear infinite; }
.tape:hover .tape-track, .tape:focus-visible .tape-track { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }
.tape-half { display: flex; align-items: center; flex: none; }
.tape-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; white-space: nowrap; font: 500 14px/1 var(--f-text); }
.tape-item b { font: 600 var(--t-label)/1 var(--f-text); letter-spacing: .18em; padding: 4px 6px; border: 1px solid rgba(12, 11, 9, .55); border-radius: 2px; }
.tape-item .addr { font-size: 14.5px; letter-spacing: .02em; }
.tape-item svg.i { width: 15px; height: 15px; }
.tape-sep { width: 6px; height: 6px; transform: rotate(45deg); background: var(--ink); flex: none; opacity: .55; }
.tape:not(:disabled):hover { background: var(--brass-hi); }
.tape.is-pending { background: var(--ink-2); color: var(--cream-3); border-bottom: 1px solid var(--rule); cursor: default; }
.tape.is-pending .tape-item b { border-color: var(--rule-2); color: var(--cream-2); }
.tape.is-pending .tape-sep { background: var(--brass); }

.h-top { display: flex; align-items: center; gap: 28px; padding: 0 clamp(20px, 4vw, 56px); height: 72px; border-bottom: 1px solid var(--rule); }
.h-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: var(--r-plate); }
.h-brand .mark { width: 40px; height: 40px; }
.h-brand .wordmark { font-size: 28px; }
.h-nav { display: flex; gap: 4px; margin-left: auto; }
.h-nav a, .h-nav button { height: 38px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-plate); color: var(--cream-2); text-decoration: none; font-size: var(--t-body); }
.h-nav a:hover, .h-nav button:hover { color: var(--cream); background: var(--ink-2); }
.h-nav a:active, .h-nav button:active { background: var(--ink-3); }

.h-main {
  min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: 0 clamp(20px, 4vw, 56px);
}
.h-title { margin: 0; font: 600 clamp(40px, 5.4vw, 88px)/0.98 var(--f-display); letter-spacing: -.035em; }
.h-title em { font-weight: 400; color: var(--cream-2); }
.h-lede { margin: clamp(14px, 2.2vh, 26px) 0 0; max-width: 54ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: var(--cream-2); }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(18px, 3vh, 34px); }
.btn-xl { height: 52px; padding: 0 22px; font-size: 16px; }
.btn svg.i-fill { fill: currentColor; stroke: none; width: 16px; height: 16px; }
.btn .i:last-child { transition: transform var(--dur) var(--ease-out); }
.btn-primary:hover .i:last-child { transform: translateX(3px); }
.h-ca { margin-top: clamp(18px, 3vh, 30px); display: grid; gap: 8px; max-width: 620px; }
.h-ca-btn {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--rule-2); border-radius: var(--r-plate); color: var(--cream); text-align: left;
  font-size: 15px; overflow: hidden;
}
.h-ca-btn .addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .02em; }
.h-ca-btn svg.i { color: var(--cream-3); }
.h-ca-btn:not(:disabled):hover { border-color: var(--brass); background: var(--ink-1); }
.h-ca-btn:not(:disabled):hover svg.i { color: var(--brass); }
.h-ca-btn:not(:disabled):active { background: var(--ink-2); }
.h-ca-btn:disabled { color: var(--cream-3); cursor: default; font-size: var(--t-small); }

.h-feat { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; min-height: 32px; }
.h-feat-stat { display: inline-flex; align-items: baseline; gap: 8px; }
.h-feat-stat b { font: 600 17px/1 var(--f-text); }
.h-feat-stat em { font-style: normal; font-size: var(--t-small); }
.h-feat-stat .up { color: var(--ok); }
.h-feat-stat .down { color: var(--bad); }
.h-feat .btn { margin-left: auto; }

.h-art { display: grid; place-items: center; min-height: 0; }
.mark-hero { width: min(460px, 34vw, 56vh); height: min(460px, 34vw, 56vh); border-radius: 50%; }

.h-ledger { display: grid; grid-template-columns: 1fr 1.6fr 1fr 1fr; border-top: 1px solid var(--rule); }
.h-cell { display: grid; align-content: start; gap: 6px; padding: 16px clamp(20px, 2.4vw, 32px) 18px; border-right: 1px solid var(--rule); min-width: 0; }
.h-cell:last-child { border-right: 0; }
.h-num { font: 600 30px/1 var(--f-display); letter-spacing: -.015em; }
.h-sub { display: inline-flex; align-items: center; gap: 6px; color: var(--cream-3); font-size: var(--t-small); }
.h-sub a { color: var(--cream-2); }
.h-sub svg.i { width: 13px; height: 13px; }
#hFeed[data-s="live"] { color: var(--ok); }
#hFeed[data-s="retry"] { color: var(--warn); }
#hFeed[data-s="down"] { color: var(--bad); }
.h-latest-list { display: flex; gap: 8px; flex-wrap: wrap; min-height: 30px; align-items: center; }
.h-tok { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 5px; border: 1px solid var(--rule); border-radius: var(--r-thumb); text-decoration: none; font-size: var(--t-small); }
.h-tok:hover { border-color: var(--rule-2); background: var(--ink-1); }
.h-tok img, .h-tok-l { width: 22px; height: 22px; border-radius: 2px; object-fit: cover; background: var(--ink-3); display: grid; place-items: center; font: 600 12px/1 var(--f-display); color: var(--cream-3); }
.h-tok b { font-weight: 500; }
.h-tok .num { color: var(--cream-4); }
.h-tok.arrived { animation: arrive-bg 1600ms var(--ease-out) both; border-color: var(--brass); }

.home .foot { grid-area: auto; justify-content: center; }

/* the strike: copy rises, ledger follows; the mark gathers on its own */
.strike .h-title, .strike .h-lede, .strike .h-cta, .strike .h-ca, .strike .h-ledger { animation: rise 640ms var(--ease-out) both; }
.strike .h-lede { animation-delay: 90ms; }
.strike .h-cta { animation-delay: 170ms; }
.strike .h-ca { animation-delay: 240ms; }
.strike .h-ledger { animation-delay: 320ms; }

@media (max-width: 900px) {
  .h-app { grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .has-ca .h-app { grid-template-rows: 36px auto minmax(0, 1fr) auto auto; }
  .tape { height: 36px; }
  .h-top { height: 60px; gap: 12px; }
  .h-nav { display: none; }
  .h-top .btn { margin-left: auto; height: 36px; padding: 0 12px; font-size: var(--t-small); }
  .h-brand .wordmark { font-size: 22px; }
  .h-brand .mark { width: 34px; height: 34px; }
  .h-main { grid-template-columns: 1fr; align-content: center; gap: 8px; }
  .h-art { display: none; }
  .h-latest-list { flex-wrap: nowrap; overflow: hidden; }
  .h-title { font-size: clamp(32px, 9vw, 48px); }
  .h-lede { font-size: 15px; line-height: 1.5; }
  .h-cta .btn-xl { height: 46px; flex: 1 1 auto; }
  .h-ledger { grid-template-columns: 1fr 1fr; }
  .h-cell:nth-child(2) { border-right: 0; }
  .h-cell:nth-child(3), .h-cell:nth-child(4) { display: none; }
  .h-cell { padding: 10px 16px 12px; }
  .h-num { font-size: 24px; }
}
@media (max-width: 900px) and (max-height: 740px) { .h-lede { display: none; } }
@media (max-width: 380px) { .h-brand .wordmark { display: none; } }
@media (max-height: 640px) and (min-width: 901px) { .h-lede, .h-ca { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none !important; }
}
