/* The home page's hero (welcome.html): the headline and its two actions on
   the left, the example run the visitor decides on the right (home-hero.js);
   one column, centred, below 1080px. Painted with welcome.css's tokens. */
.hero-split {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center;
  gap: clamp(28px, 4vw, 64px); width: min(1240px, 100%); margin: 0 auto; text-align: left;
  /* With the hero's own 16px, the gutter every other section has. */
  padding-inline: clamp(0px, calc(3vw - 16px), 16px);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hero-split .hero-mark { margin-bottom: 22px; }
.hero-split h1 { font-size: clamp(40px, 5.6vw, 84px); }
.hero-split h1.h1-ask { font-size: clamp(36px, 4.6vw, 70px); }
.hero-split .mono-sub { margin: 22px 0 28px; }
.hero-split .hero-actions { justify-content: flex-start; }
.hero-founder { margin: 14px 0 0; font-size: 14px; color: var(--mute); }
.hero-founder a { color: var(--ink-2); text-underline-offset: 3px; }
.hero-founder a:hover { color: var(--ink); }
.motion .hero-founder { animation: fadeUp 700ms 1000ms both cubic-bezier(.16,1,.3,1); }
@media (max-width: 1080px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); max-width: 640px; text-align: center; }
  .hero-copy { align-items: center; }
  .hero-split .hero-actions { justify-content: center; }
}

/* ---- the example run ---- */
.hh {
  min-width: 0; text-align: left; background: var(--paper); border: 1px solid var(--line-2);
  border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(17, 17, 17, 0.4);
}
.hh [hidden] { display: none !important; }
.hh-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--ground); }
.hh-dots { display: flex; gap: 6px; }
.hh-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.hh-label {
  margin: 0 0 0 auto; padding: 2px 6px; border: 1px solid var(--line); border-radius: 3px;
  font: 10.5px/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
}
.hh-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; }
/* One height from the first step to either end (home-hero.js): what comes
   later is laid out from the start and shown with visibility. The ask and
   the result share one place; a step after the decision holds both
   endings' words in one place. */
.hh .hh-off { visibility: hidden; }
/* Shown at once: welcome.css's reduced-motion rule gives every property a
   0.01ms transition, and a link still hidden mid-transition takes no focus. */
.hh-ask, .hh-after, .hh-done, .hh-next, .hh-replay, .hh-slot, .hh-stack > * { transition-property: none; }
.hh-zone, .hh-stack { display: grid; }
.hh-zone > *, .hh-stack > * { grid-area: 1 / 1; }
.hh-zone > * { align-self: start; }
.hh-after { display: flex; flex-direction: column; gap: 14px; }
.hh-steps.hh-more { margin-top: -14px; border-top: 0; }
.hh-ticket {
  display: flex; flex-direction: column; gap: 4px; padding: 11px 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--signal); border-radius: 8px; background: var(--ground);
}
.hh-src { font: 10px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.hh-ticket b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.hh-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); font: 12px/1.5 var(--mono); }
.hh-steps li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hh-steps .k { color: var(--mute); }
.hh-steps li > span + span { color: var(--ink-2); overflow-wrap: anywhere; }
.hh-steps li.hh-good > span + span { color: var(--ok-text); }
.hh-ask { padding: 12px 14px 14px; border: 1px solid var(--ink); border-radius: 8px; background: var(--paper); }
.hh-q { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.hh-who {
  display: block; margin-bottom: 4px; font: 500 10px/1.4 var(--mono); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--signal-text);
}
.hh-why { margin: 4px 0 0; font-size: 13px; color: var(--mute); }
.hh-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hh-acts .btn { cursor: pointer; }
.hh-done { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--ground); }
.hh-out { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.hh-out.yes { color: var(--ok-text); }
.hh-trail { margin: 6px 0 0; font: 11px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.hh-trail > *::before { content: "■ "; color: var(--signal); }
.hh-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0; }
.hh-next {
  font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); text-decoration: underline; text-underline-offset: 4px;
}
.hh-next:hover { color: var(--signal-text); }
.hh-replay {
  padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 4px; background: transparent; color: var(--ink-2);
  font: 500 10.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
}
.hh-replay:hover { border-color: var(--ink); color: var(--ink); }
.hh-label:focus { outline: none; }
.hh-label:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hh-vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Playing (home-hero.js, never with reduced motion): the ticket drops in
   and each step lights in turn. Transitions, not animations, so the page's
   Pause animation never leaves a step stuck half-drawn. */
.hh-playing .hh-ticket { opacity: 0; transform: translateY(-8px); transition: opacity 360ms, transform 480ms cubic-bezier(.16,1,.3,1); }
.hh-playing .hh-ticket.on { opacity: 1; transform: none; }
.hh-playing .hh-steps li { opacity: 0; transform: translateX(-6px); transition: opacity 280ms, transform 380ms cubic-bezier(.16,1,.3,1), background 300ms; }
.hh-playing .hh-steps li.on { opacity: 1; transform: none; }
.hh-steps li.live { background: linear-gradient(90deg, rgba(255, 91, 31, 0.10), transparent 70%); }
.hh-steps li.live .k::before { content: "▸ "; color: var(--signal); }
.hh-playing .hh-acts .hh-pulse { animation: hh-press 1.6s ease-in-out 3; }
@keyframes hh-press { 0%, 100% { box-shadow: 0 0 0 0 rgba(17, 17, 17, 0.35); } 50% { box-shadow: 0 0 0 6px rgba(17, 17, 17, 0); } }
.motion .hh { animation: fadeUp 700ms 400ms both cubic-bezier(.16,1,.3,1); }

@media (max-width: 1080px) {
  .hh { width: 100%; }
}
@media (max-width: 640px) {
  .hh-body { padding: 14px; }
  .hh-steps li { grid-template-columns: 66px minmax(0, 1fr); gap: 8px; font-size: 11px; }
  .hh-q { font-size: 16px; }
}
