/* ==========================================================================
   otc-pools.xyz — design system
   BTX MatMul (M31) mining pool, part of the OTC-DESK stack.
   Identity: dark surface, dual lime/wire accents used semantically
   ("mine" vs "verify/desk"), field-matrix motif grounded in the PoW.
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #0a0c10;
  --surface: #12151c;
  --surface-2: #171b23;
  --border: #1f242e;
  /* accent-derived tints (follow --lime/--wire, so a chain theme re-tints them) */
  --border-lit: color-mix(in srgb, var(--lime) 38%, transparent);
  --border-wire: color-mix(in srgb, var(--wire) 34%, transparent);

  /* ink */
  --ink: #e8ecf2;
  --muted: #8a93a6;
  --faint: #59626f;

  /* THEME ACCENTS — the two per-chain slots (chrome only, never chart fills).
     Overridden per chain by assets/js/theme.js; these are the BTX defaults.
     accent-1 = "mine / primary", accent-2 = "verify / data / secondary". */
  --lime: #c4ff4d;
  --wire: #3be8ff;

  /* chart series (validated for dark surface via dataviz validator) */
  --s1: #2aa0c4;  /* cyan   */
  --s2: #57a83a;  /* green  */
  --s3: #7c5fd6;  /* violet */
  --s4: #d07d1f;  /* amber  */

  /* status */
  --ok: #4ade80;
  --pending: #fbbf24;
  --orphan: #f87171;

  --font-sans: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --r: 14px;      /* card radius */
  --r-sm: 10px;
  --maxw: 1120px;
  --gap: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- ambient background: field grid + glows --------------------------- */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(232, 236, 242, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 236, 242, .022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 55%, transparent 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(680px 460px at 0% -5%, color-mix(in srgb, var(--lime) 7%, transparent), transparent 62%),
    radial-gradient(760px 520px at 100% 8%, color-mix(in srgb, var(--wire) 6%, transparent), transparent 62%),
    radial-gradient(560px 460px at 82% 108%, color-mix(in srgb, var(--lime) 4%, transparent), transparent 60%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.wrap-wide { max-width: 1280px; }

/* --- type ------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow .hash { color: var(--lime); }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.lime { color: var(--lime); }
.wire { color: var(--wire); }
a { color: var(--wire); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- nav -------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(10,12,16,.92), rgba(10,12,16,.72));
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.brand-name { font-family: var(--font-mono); font-weight: 600; letter-spacing: .14em; font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: var(--muted); font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: .05em; padding: 8px 12px; border-radius: 9px; text-transform: uppercase;
}
.nav-links a:hover { color: var(--ink); background: rgba(232, 236, 242, .05); text-decoration: none; }
.nav-links a.active { color: var(--lime); }
.nav-links a.desk { color: var(--wire); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* node status pill (live tip height + health dot) */
.node-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px;
  white-space: nowrap;
}
.node-pill b { color: var(--ink); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--faint); }
.dot.up { background: var(--ok); box-shadow: 0 0 9px var(--ok); }
.dot.warn { background: var(--pending); box-shadow: 0 0 9px var(--pending); }
.dot.down { background: var(--orphan); box-shadow: 0 0 9px var(--orphan); }

/* mobile nav toggle */
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 9px;
  color: var(--ink); padding: 7px 10px; font-family: var(--font-mono); cursor: pointer; }

/* --- buttons ---------------------------------------------------------- */
.btn {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  border-radius: 11px; padding: 12px 22px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--lime); color: #05060a; box-shadow: 0 0 30px -10px color-mix(in srgb, var(--lime) 90%, transparent); }
.btn-primary:hover { box-shadow: 0 0 34px -6px color-mix(in srgb, var(--lime) 95%, transparent); }
.btn-wire { background: transparent; color: var(--wire); border-color: var(--border-wire); }
.btn-wire:hover { background: color-mix(in srgb, var(--wire) 7%, transparent); }
.btn-ghost { background: rgba(232,236,242,.04); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: rgba(232,236,242,.07); }
.btn-sm { padding: 9px 15px; font-size: 12px; }

/* --- page header ------------------------------------------------------ */
.page-head { padding: 46px 0 10px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 14px; }
.page-head p { color: var(--muted); max-width: 640px; margin-top: 12px; font-size: 15.5px; }

section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 15px; font-family: var(--font-mono); font-weight: 500; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 .hash { color: var(--lime); }
.section-head a { font-family: var(--font-mono); font-size: 12.5px; }

/* --- cards & panels --------------------------------------------------- */
.card, .panel {
  background: rgba(18, 21, 28, .72); border: 1px solid var(--border);
  border-radius: var(--r); backdrop-filter: blur(4px);
}
.panel { padding: 22px 24px; }
.card:hover { border-color: rgba(255,255,255,.09); }

/* --- stat tiles (KPI) ------------------------------------------------- */
.stat-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(4, 1fr); }
.stat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.stat-tile {
  background: rgba(18, 21, 28, .72); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 20px; position: relative; overflow: hidden;
}
.stat-tile::after { /* thin accent edge */
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px;
  background: var(--lime); opacity: .55; border-radius: 2px;
}
.stat-tile.wire::after { background: var(--wire); }
.stat-tile .label {
  color: var(--muted); font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .14em;
}
.stat-tile .value { font-family: var(--font-mono); font-size: clamp(20px, 2.4vw, 27px); font-weight: 600; margin-top: 6px; }
.stat-tile .value.lime { color: var(--lime); }
.stat-tile .value.wire { color: var(--wire); }
.stat-tile .sub { color: var(--faint); font-family: var(--font-mono); font-size: 11px; margin-top: 3px; }

/* --- data tables ------------------------------------------------------ */
.dtable-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); background: rgba(18,21,28,.6); }
.dtable { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.dtable th, .dtable td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.dtable th {
  color: var(--muted); font-family: var(--font-mono); font-weight: 500; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .12em; background: rgba(255,255,255,.012);
  position: sticky; top: 0;
}
.dtable td { font-family: var(--font-mono); }
.dtable tr:last-child td { border-bottom: none; }
.dtable tr:hover td { background: rgba(255,255,255,.02); }
.dtable td.num { text-align: right; }
.dtable a { color: var(--wire); }
.trunc { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }

/* --- status pills ----------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 10px; border: 1px solid transparent;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: rgba(74, 222, 128, .1); border-color: rgba(74,222,128,.28); }
.pill.pending { color: var(--pending); background: rgba(251, 191, 36, .1); border-color: rgba(251,191,36,.28); }
.pill.orphan { color: var(--orphan); background: rgba(248, 113, 113, .1); border-color: rgba(248,113,113,.28); }
.pill.live { color: var(--lime); background: color-mix(in srgb, var(--lime) 9%, transparent); border-color: var(--border-lit); }
.pill.soon { color: var(--wire); background: color-mix(in srgb, var(--wire) 8%, transparent); border-color: var(--border-wire); }

/* --- forms ------------------------------------------------------------ */
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.input {
  flex: 1; min-width: 240px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; color: var(--ink); font-family: var(--font-mono); font-size: 14px;
  padding: 13px 16px; outline: none; transition: border-color .12s ease;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--border-wire); }

/* --- code blocks ------------------------------------------------------ */
pre.code, .code-block {
  font-family: var(--font-mono); font-size: 13px; color: var(--lime);
  background: #0b0d12; border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 15px 17px; overflow-x: auto; line-height: 1.75;
}
pre.code .c, .code-block .c { color: var(--faint); }
pre.code .w, .code-block .w { color: var(--wire); }
code.inline { font-family: var(--font-mono); color: var(--ink); background: rgba(255,255,255,.05);
  padding: 2px 6px; border-radius: 6px; font-size: .92em; }

/* --- charts ----------------------------------------------------------- */
.chart-card { background: rgba(18,21,28,.72); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 22px; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.chart-title { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.chart-now { font-family: var(--font-mono); font-size: 15px; color: var(--ink); font-weight: 600; }
.chart-svg { width: 100%; display: block; overflow: visible; }
.chart-svg .grid line { stroke: rgba(255,255,255,.05); stroke-width: 1; }
.chart-svg .axis text { fill: var(--faint); font-family: var(--font-mono); font-size: 10px; }
.chart-svg .area { opacity: .16; }
.chart-svg .line { fill: none; stroke-width: 2; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.legend .item { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.legend .swatch { width: 11px; height: 11px; border-radius: 3px; }
.chart-tip {
  position: fixed; pointer-events: none; z-index: 80; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 9px; padding: 8px 11px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,.5); opacity: 0; transition: opacity .1s ease; white-space: nowrap;
}
.chart-empty { color: var(--faint); font-family: var(--font-mono); font-size: 12px; padding: 40px 0; text-align: center; }

/* --- hero + matmul motif (signature) ---------------------------------- */
.hero { padding: 66px 0 24px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  background: color-mix(in srgb, var(--lime) 7%, transparent); border: 1px solid var(--border-lit);
  border-radius: 999px; padding: 6px 15px; margin-bottom: 24px;
}
.badge .dot { width: 6px; height: 6px; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.hero h1 { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.06; }
.hero h1 .lime { color: var(--lime); text-shadow: 0 0 36px color-mix(in srgb, var(--lime) 42%, transparent); }
.hero .lede { color: var(--muted); max-width: 580px; margin: 18px auto 0; font-size: 16.5px; }
.hero .lede b { color: var(--ink); font-weight: 500; }
.hero .cta-row { justify-content: center; margin-top: 30px; }

.matmul-motif {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(8px, 1.8vw, 22px); margin: 40px auto 8px; max-width: 100%;
  overflow-x: auto; padding: 8px 4px;
}
.mm-grid { display: flex; flex-direction: column; gap: 9px; align-items: center; }
.mm-cells { display: grid; gap: 3px; }
.mm-cell {
  font-family: var(--font-mono); font-size: clamp(8px, .95vw, 11px); color: var(--faint);
  background: rgba(255, 255, 255, .015); border: 1px solid var(--border); border-radius: 4px;
  width: clamp(20px, 2.3vw, 30px); height: clamp(20px, 2.3vw, 30px);
  display: grid; place-items: center; transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.mm-cell.row, .mm-cell.col { color: var(--wire); border-color: var(--border-wire); background: color-mix(in srgb, var(--wire) 9%, transparent); }
.mm-cell.lit { color: var(--lime); }
.mm-cell.flash { background: color-mix(in srgb, var(--lime) 20%, transparent); border-color: var(--border-lit); box-shadow: 0 0 14px -3px var(--lime); color: var(--lime); }
.mm-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mm-op { font-family: var(--font-mono); font-size: clamp(15px, 2vw, 22px); color: var(--faint); align-self: center; margin-top: -14px; }
.field-note { text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: .06em; margin-top: 6px; }

/* argon2id memory-hard motif */
.argon-motif { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 40px auto 8px; max-width: 100%; overflow-x: auto; padding: 8px 4px; }
.arg-grid { display: grid; gap: 3px; }
.arg-cell {
  width: clamp(9px, 1vw, 14px); height: clamp(9px, 1vw, 14px); border-radius: 3px;
  background: rgba(255, 255, 255, .02); border: 1px solid var(--border);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.arg-cell.filled { background: color-mix(in srgb, var(--lime) 12%, transparent); border-color: color-mix(in srgb, var(--lime) 22%, transparent); }
.arg-cell.ref { background: color-mix(in srgb, var(--wire) 30%, transparent); border-color: var(--border-wire); }
.arg-cell.hot { background: color-mix(in srgb, var(--lime) 42%, transparent); border-color: var(--border-lit); box-shadow: 0 0 10px -2px var(--lime); }
.arg-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 620px) { .arg-cell { width: 8px; height: 8px; } }

/* NoisyGEMM / proof-of-useful-work motif (Pearl): big matmul -> compact zk proof */
.gemm-motif { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 40px auto 8px; max-width: 100%; overflow-x: auto; padding: 8px 4px; }
.gemm-stage { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2.4vw, 30px); }
.gemm-gridwrap, .gemm-proof-wrap { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.gemm-grid { display: grid; gap: 3px; }
.gemm-cell {
  width: clamp(11px, 1.25vw, 17px); height: clamp(11px, 1.25vw, 17px); border-radius: 3px;
  background: color-mix(in srgb, var(--lime) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--lime) 14%, transparent);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .3s ease, transform .3s ease;
}
.gemm-cell.done { background: color-mix(in srgb, var(--lime) 20%, transparent); border-color: color-mix(in srgb, var(--lime) 34%, transparent); }
.gemm-cell.active { background: color-mix(in srgb, var(--lime) 40%, transparent); border-color: var(--border-lit); box-shadow: 0 0 10px -2px var(--lime); }
.gemm-cell.noise { background: color-mix(in srgb, var(--wire) 42%, transparent); border-color: var(--border-wire); box-shadow: 0 0 8px -2px var(--wire); }
.gemm-cell.fold { opacity: .12; transform: scale(.6); }
.gemm-arrow { font-family: var(--font-mono); font-size: clamp(16px, 2.2vw, 24px); color: var(--wire); align-self: center; margin-top: -16px; }
.gemm-proof {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--border);
  background: rgba(255, 255, 255, .015);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.gemm-proof.on { border-style: solid; border-color: var(--border-lit);
  background: color-mix(in srgb, var(--lime) 8%, transparent); box-shadow: 0 0 26px -6px var(--lime); }
.gemm-hash { font-family: var(--font-mono); font-size: clamp(12px, 1.5vw, 16px); font-weight: 600; color: var(--muted); letter-spacing: .04em; transition: color .3s ease; }
.gemm-proof.on .gemm-hash { color: var(--lime); }
.gemm-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gemm-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); text-align: center; }
@media (max-width: 620px) { .gemm-cell { width: 9px; height: 9px; } .gemm-stage { gap: 12px; } }

@media (max-width: 620px) { .matmul-motif { gap: 6px; } .mm-cell { width: 18px; height: 18px; } }

/* --- footer ----------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border); margin-top: 40px; padding: 30px 0 40px;
  color: var(--muted); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
.api-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing: .04em; }

/* --- helpers ---------------------------------------------------------- */
.grid-2 { display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: var(--gap); grid-template-columns: repeat(3, 1fr); }
.split { display: grid; gap: var(--gap); grid-template-columns: 1.35fr 1fr; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.wrap-gap { flex-wrap: wrap; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; } .mt-4 { margin-top: 40px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- accessibility ---------------------------------------------------- */
:focus-visible { outline: 2px solid var(--wire); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: #05060a;
  padding: 8px 14px; border-radius: 8px; font-family: var(--font-mono); z-index: 100; }
.skip:focus { left: 12px; }

/* --- responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 58px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    background: var(--surface); border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 9px; }
  .nav-toggle { display: inline-flex; }
  .node-pill { display: none; }
}
@media (max-width: 560px) {
  .stat-grid, .stat-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 16px; }
}

/* --- loading skeletons ------------------------------------------------ */
/* Applied to a value placeholder while its data is in flight; the page's
   load() calls OTC.clearSkel() once data (or the sample fallback) lands. */
.skeleton {
  display: inline-block; width: 4.2em; height: .95em; vertical-align: -.06em;
  color: transparent !important; border-radius: 6px; overflow: hidden; position: relative;
  background: color-mix(in srgb, var(--ink) 9%, var(--surface));
}
.skeleton.sk-wide { width: 6.5em; }
.skeleton.sk-sm { width: 2.4em; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 13%, transparent), transparent);
  animation: otc-shimmer 1.3s ease-in-out infinite;
}
@keyframes otc-shimmer { 100% { transform: translateX(100%); } }

/* --- entrance + reveal motion (only when motion is welcome) ------------ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes otc-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes otc-fadein { from { opacity: .25; } to { opacity: 1; } }
  .hero > *, .hub-hero > *, .page-head > * { animation: otc-rise .6s both; }
  .hero > *:nth-child(2), .hub-hero > *:nth-child(2), .page-head > *:nth-child(2) { animation-delay: .06s; }
  .hero > *:nth-child(3), .hub-hero > *:nth-child(3), .page-head > *:nth-child(3) { animation-delay: .12s; }
  .hero > *:nth-child(4), .hub-hero > *:nth-child(4), .page-head > *:nth-child(4) { animation-delay: .18s; }
  .hero > *:nth-child(5), .hub-hero > *:nth-child(5), .page-head > *:nth-child(5) { animation-delay: .24s; }
  .hero > *:nth-child(6), .hub-hero > *:nth-child(6), .page-head > *:nth-child(6) { animation-delay: .30s; }
  .skel-done { animation: otc-fadein .45s ease; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .skeleton::after { display: none; }
}
