/* Home hero (owned by the hero rework). Loads after site.css on the home page only.
   Self-contained for the stage and the signal card, so the old stage rules in site.css can go.
   The stage reads left to right: your market, what changed (the triggers), the reason to talk. */

.hero h1 .nw, .sigcard .nw { white-space: nowrap; }
.hero--paper .hero__row .lede { max-width: 50ch; }

@media (min-width: 960px) {
  .hero--paper .hero__row {
    display: grid; grid-template-columns: minmax(0, 52ch) auto;
    justify-content: space-between; align-items: end; gap: 24px 48px;
  }
  .hero--paper .hero__ctas { padding-bottom: 4px; }
}

/* ---------- The stage: the dark film panel ---------- */
.hero .hero__stage {
  position: relative; overflow: hidden;
  aspect-ratio: auto; height: auto; min-height: 0;
  margin: clamp(28px, 3.4vw, 44px) 0 0;
  padding: 22px 24px 24px;
  border-radius: var(--radius-lg); border: 1px solid var(--ink-line);
  background: #0d0b0a; color: var(--on-ink);
}
.hero .hero__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .hero__grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero__cols {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 208px minmax(0, 372px);
  gap: 0 40px;
  min-height: 340px;
}
.hero__col { display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; }
.hero__lab {
  font-family: var(--mono); font-size: 11.5px; line-height: 28px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-ink-muted); margin: 0 0 12px;
}
.hero__market { flex: 1; min-height: 120px; }

/* the trigger list: always visible, the active one lights up */
.hero__trig { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hero__trig li {
  display: flex; align-items: center; gap: 11px;
  height: 38px; padding: 0 12px; margin-left: -12px; border-radius: 9px;
  font-size: 15px; line-height: 1.2; letter-spacing: -0.005em; white-space: nowrap;
  color: var(--on-ink-muted);
  transition: color .45s var(--ease), background-color .45s var(--ease), border-color .45s var(--ease);
}
.hero__trig .dot { width: 8px; height: 8px; opacity: .8; transition: opacity .45s, box-shadow .45s var(--ease); }
.hero__trig li.is-on { color: var(--on-ink); background: rgba(244, 240, 232, .07); }
.hero__trig li.is-on .dot { opacity: 1; box-shadow: 0 0 0 4px rgba(244, 240, 232, .1); }
.hero__note { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: var(--on-ink-muted); max-width: 26ch; }

/* the signal card: in the flow of its column */
.hero__stage .sigcard {
  position: relative; top: auto; right: auto; bottom: auto; left: auto; transform: none;
  width: auto; z-index: 3;
  display: flex; flex-direction: column;
  padding: 18px 20px 16px;
  border-radius: 16px;
  background: rgba(244, 240, 232, 0.97); color: var(--text);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
}
.hero__stage .sigcard__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.hero__stage .sigcard__type { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; }
.hero__stage .sigcard__type .dot { width: 8px; height: 8px; }
.hero__stage .sigcard__time { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.hero__stage .sigcard__title { font-family: var(--serif); font-weight: 650; font-size: 21px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 12px; min-height: 0; }
.hero__stage .sigcard__rows { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.hero__stage .sigcard__row { display: grid; grid-template-columns: 78px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.4; }
.hero__stage .sigcard__row b { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.hero__stage .sigcard__foot {
  display: block; margin: auto 0 0; padding-top: 14px;
  font-size: 13px; line-height: 1.4; color: var(--muted);
}
.hero__stage .sigcard__foot b { color: var(--text); font-weight: 600; }
.hero__stage .sigcard__title, .hero__stage .sigcard__rows { transition: opacity .35s, transform .35s var(--ease); }
.hero__stage .sigcard__type, .hero__stage .sigcard__time, .hero__stage .sigcard__foot { transition: opacity .35s; }
.hero__stage .sigcard.swap .sigcard__type, .hero__stage .sigcard.swap .sigcard__time, .hero__stage .sigcard.swap .sigcard__foot { opacity: 0; }
.hero__stage .sigcard.swap .sigcard__title, .hero__stage .sigcard.swap .sigcard__rows { opacity: 0; transform: translateY(5px); }

/* the pause control sits on the label row, top right */
.hero .hero__pause {
  position: absolute; top: 22px; right: 24px; bottom: auto; z-index: 4;
  height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--ink-line-strong); background: rgba(13, 11, 10, .6); color: var(--on-ink-muted);
  font: 500 11.5px/1 var(--mono); letter-spacing: .02em; cursor: pointer; transition: color .2s, border-color .2s;
}
.hero .hero__pause:hover { color: var(--on-ink); border-color: var(--on-ink-muted); }
.hero .hero__pause:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.no-js .hero .hero__pause { display: none; }

/* without JS the canvas stays empty: a quiet dot field stands in for the market */
.no-js .hero__market {
  background-image: radial-gradient(rgba(244, 240, 232, .22) 1.1px, transparent 1.6px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent);
  mask-image: linear-gradient(90deg, #000 55%, transparent);
}

/* ---------- Tablet: market strip on top, triggers and card side by side ---------- */
@media (max-width: 999px) {
  .hero__cols { grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto auto; gap: 18px 32px; min-height: 0; }
  .hero__col--market { grid-column: 1 / -1; }
  .hero__market { flex: none; height: 104px; min-height: 0; }
  .no-js .hero__market { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Phone: everything stacked, triggers as chips ---------- */
@media (max-width: 639px) {
  .hero .hero__stage { padding: 14px; border-radius: 18px; }
  .hero__cols { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hero__lab { font-size: 11px; margin-bottom: 8px; }
  .hero__market { height: 84px; }
  .hero__trig { display: flex; flex-wrap: wrap; gap: 6px; }
  .hero__trig li {
    height: 32px; margin: 0; padding: 0 11px; gap: 8px; font-size: 13.5px;
    border: 1px solid var(--ink-line); border-radius: 999px;
  }
  .hero__trig li.is-on { border-color: rgba(244, 240, 232, .28); }
  .hero__trig .dot { width: 7px; height: 7px; }
  .hero__note { display: none; }
  .hero .hero__pause { top: 14px; right: 14px; }
  .hero__stage .sigcard { padding: 16px 16px 14px; border-radius: 13px; }
  .hero__stage .sigcard__title { font-size: 19.5px; }
  .hero__stage .sigcard__row { grid-template-columns: 70px 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__trig li, .hero__trig .dot, .hero__stage .sigcard * { transition: none; }
}

/* ---------- Clay strip: a quiet caption row under the stage, no rule touching the panel ---------- */
.hero .clayband { border-top: 0; }
.hero .clayband__in { padding-block: 22px 2px; }
@media (max-width: 640px) {
  .hero .clayband__in { gap: 14px; padding-top: 20px; }
  .hero .clayband__facts { display: flex; flex-direction: column; gap: 6px; }
}

/* Round 2 QA */
@media (min-width: 1000px) and (max-height: 920px) {
  .hero--paper h1 { font-size: clamp(56px, 6vw, 88px); }
  .hero--paper .hero__top { gap: 20px; }
  .hero .hero__stage { margin-top: 24px; }
  .hero__cols { min-height: 320px; }
}
.hero .hero__pause::after { content: ""; position: absolute; inset: -6px -2px; }
@media (max-width: 639px) { .hero .kicker { align-items: flex-start; } .hero .kicker::before { margin-top: 6px; } }
