/* The home page. Loaded on the home page only, after tokens.css and ui.css.
   Colours come from tokens.css and nothing else. Top to bottom: the centred
   hero on the ground (ui.css .lp-ground), the example console's frame, the
   Listed in marks, four feature sections with their product fragments, the
   code band, the proof line and the FAQ.

   The fragments' static markup is their final state. /js/home.js arms the
   timeline and the delivery log (.is-armed) when motion is allowed, and
   lands their steps as they scroll in: every rule for that lives in the
   prefers-reduced-motion: no-preference block at the end, so under reduced
   motion, or without the script, nothing is dimmed. */

body.v2 .hm-muted { color: var(--fg-muted); }
body.v2 .hm-eyebrow {
  margin: 0;
  color: var(--fg-muted);
  font: 400 12px/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body.v2 .hm-sub { margin: 14px 0 0; max-width: 520px; color: var(--fg-muted); font-size: 16px; line-height: 1.6; }

/* Hero: centred, on the ground, with the frame under it. */
body.v2 .hm-hero { isolation: isolate; padding: 64px 0 0; text-align: center; }
body.v2 .hm-hero-text { display: flex; flex-direction: column; align-items: center; }
body.v2 .hm-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--border-control);
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
}
body.v2 .hm-chip:hover { color: var(--fg); border-color: var(--fg-muted); text-decoration: none; }
body.v2 .hm-chip-tag {
  flex: none;
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--fg);
  font-size: 12px;
  font-weight: 500;
}
body.v2 .hm-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.v2 .hm-chip-arrow { flex: none; }
/* The chip's dot: one of the accent's named places (the site's tokens test, ACCENT_PLACES). */
body.v2 .hm-chip-dot { flex: none; width: 6px; height: 6px; margin: 0 -4px 0 6px; border-radius: 50%; background: var(--accent); }
body.v2 .hm-hero h1 {
  max-width: 1000px;
  margin: 22px 0 0;
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
body.v2 .hm-hero .hero-lede { max-width: 720px; margin: 24px auto 0; font-size: 17px; line-height: 1.6; text-wrap: pretty; }
body.v2 .hm-hero .hero-actions { justify-content: center; margin-top: 36px; }
/* The "See live demo" arrow (an accent place); the button's 8 px gap less
   2 px leaves 6 px between the words and the arrow. */
body.v2 .hm-demo-arrow { margin-left: -2px; color: var(--accent); }
/* The three set-up routes, equals, under the actions. */
body.v2 .hm-routes { max-width: 720px; margin: 20px 0 0; color: var(--fg-muted); font-size: 14px; line-height: 1.6; text-wrap: balance; }
body.v2 .hm-routes a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
/* Each route keeps its punctuation (and the last its "or"), so a narrow
   screen never leaves a comma or a conjunction alone on a line. */
body.v2 .hm-routes span { white-space: nowrap; }
body.v2 .hm-terms { margin: 10px 0 0; color: var(--fg-muted); font-size: 13px; }

/* The install line, in the MCP section's copy column: one quiet pill, the
   command then Copy (nav.js wraps the pre in its own .lp-code and puts the
   button before it; here the button sits inline after the command). */
/* Stacked on purpose: the copy column is about 540 px at 1440 and narrower
   between 860 and 1100 px, so pill and words fit one row at only some
   widths. A stack reads the same at every width. */
body.v2 .hm-feat-copy .hm-install { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 24px; }
body.v2 .hm-skill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 40px;
  padding: 0 4px 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-panel);
}
body.v2 .hm-skill .lp-code { display: flex; align-items: center; gap: 10px; min-width: 0; }
body.v2 .hm-skill pre {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body.v2 .hm-skill .lp-copy {
  position: relative;
  top: 0;
  right: 0;
  order: 2;
  flex: none;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg-raised);
  font-size: 13px;
}
body.v2 .hm-or { color: var(--fg-muted); font-size: 14px; }
body.v2 .hm-frame-wrap { margin-top: 48px; }
/* The invitation above the frame: what the scene shows, and that it can be
   explored. */
body.v2 .hm-invite { max-width: 880px; margin: 0 auto 20px; padding: 0 16px; color: var(--fg-muted); font: 400 15px/1.5 var(--font-sans); text-align: center; text-wrap: balance; }
body.v2 .hm-invite b { color: var(--fg); font-weight: 600; }

/* Listed in: the services' own marks, grey at rest. */
body.v2 .hm-listed { padding: 48px 0 0; text-align: center; }
body.v2 .hm-listed p { margin: 0; color: var(--fg-muted); font-size: 13px; }
body.v2 .hm-marks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 44px;
  max-width: 880px;
  margin: 22px auto 0;
  padding: 0;
  list-style: none;
}
body.v2 .hm-marks li { display: flex; }
body.v2 .hm-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 7px;
  filter: grayscale(1);
  opacity: 0.85;
}
/* At rest every mark clears 3:1 against the ground (measured per mark in
   both themes). On the light ground grey alone leaves a pale mark under 3:1,
   so every mark is darkened there. */
[data-theme="light"] body.v2 .hm-mark { filter: grayscale(1) brightness(0.7); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) body.v2 .hm-mark { filter: grayscale(1) brightness(0.7); }
}
body.v2 .hm-mark:hover, body.v2 .hm-mark:focus-visible,
[data-theme="light"] body.v2 .hm-mark:hover, [data-theme="light"] body.v2 .hm-mark:focus-visible { filter: none; opacity: 1; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) body.v2 .hm-mark:hover, :root:not([data-theme]) body.v2 .hm-mark:focus-visible { filter: none; opacity: 1; }
}
body.v2 .hm-mark img { width: 28px; height: 28px; border-radius: 6px; }

/* The four feature sections: copy and a product fragment, alternating. */
body.v2 .hm-feats { padding: var(--section-pad) 0; }
body.v2 .hm-feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
body.v2 .hm-feat + .hm-feat { margin-top: 96px; }
body.v2 .hm-feat--flip .hm-feat-copy { order: 2; }
/* The assistant section, first, leads: a wider fragment, read a size up,
   on the side its copy leaves free. Incidents and Alerts are compact: two
   equal columns, the fragment at most 520 px, against the outer edge. */
body.v2 .hm-feat--lead { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr); }
@media (min-width: 860px) {
  body.v2 .hm-feat--lead.hm-feat--flip { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr); }
}
body.v2 .hm-feat--lead .hm-frag { padding: 24px; font-size: 14px; }
body.v2 .hm-feat--compact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body.v2 .hm-feat--compact .hm-frag { justify-self: end; width: 100%; max-width: 520px; }
body.v2 .hm-feat--compact.hm-feat--flip .hm-frag { justify-self: start; }
body.v2 .hm-feat h2, body.v2 .hm-band h2, body.v2 #faq h2 {
  margin: 12px 0 0;
  font-size: clamp(24px, 3.1vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
/* The section titles sit one step under the shared h2 size (owner,
   2026-11-05); the code band's title stays one step above them. */
body.v2 .hm-band h2 { font-size: clamp(24px, 3.3vw, 36px); }
body.v2 #faq h2 { margin: 0; }
body.v2 .hm-feat .hm-sub { max-width: 500px; }
body.v2 .hm-facts { display: grid; max-width: 500px; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--border); list-style: none; counter-reset: fact; }
body.v2 .hm-facts li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font-size: 15px;
  counter-increment: fact;
}
body.v2 .hm-facts li::before { content: counter(fact, decimal-leading-zero); padding-top: 3px; color: var(--fg-muted); font: 400 12px/1.4 var(--font-mono); }

/* The fragments: drawn in the site's CSS with the console's tokens. */
body.v2 .hm-frag {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-panel);
  font-size: 13px;
  line-height: 1.5;
}
body.v2 .hm-fh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 13px;
}
body.v2 .hm-fh b { color: var(--fg); font-size: 13px; font-weight: 600; }
body.v2 .hm-st { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
body.v2 .hm-dot { flex: none; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-muted); }
body.v2 .hm-dot.is-ok { background: var(--up); }
body.v2 .hm-dot.is-bad { background: var(--down); }
body.v2 .hm-m { color: var(--fg-muted); }
body.v2 .hm-tl-day { margin-top: 4px; font-size: 13px; font-weight: 600; }
body.v2 .hm-tl-ph { margin: 10px 0 4px; color: var(--fg-muted); font-size: 13px; }
body.v2 .hm-tl-i { display: grid; grid-template-columns: 76px 14px minmax(0, 1fr); gap: 8px; align-items: center; padding: 5px 0; }
body.v2 .hm-tl-i time { color: var(--fg-muted); font: 400 13px/1.5 var(--font-mono); }
body.v2 .hm-tl-i b { font-weight: 500; }
body.v2 .hm-x { color: var(--down); font-size: 13px; font-weight: 600; text-align: center; }
body.v2 .hm-tl-note { margin: 4px 0 0 98px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--fg-muted); font-size: 13px; }
body.v2 .hm-dl { display: grid; grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1.1fr) 52px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
body.v2 .hm-dl--head { padding-top: 0; border-top: 0; color: var(--fg-muted); font-size: 13px; }
body.v2 .hm-dl-res { overflow: hidden; color: var(--fg-muted); font: 400 13px/1.5 var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
body.v2 .hm-dl time, body.v2 .hm-dl-at { color: var(--fg-muted); font: 400 13px/1.5 var(--font-mono); text-align: right; }
body.v2 .hm-dl-at { font-family: var(--font-sans); }
body.v2 .hm-tx { display: grid; gap: 12px; padding-top: 6px; }
body.v2 .hm-tx-ask { justify-self: end; max-width: 80%; margin: 0; padding: 9px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-raised); }
body.v2 .hm-tx-calls { margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 8px; list-style: none; }
body.v2 .hm-tx-calls li { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--border); }
body.v2 .hm-tx-calls li:first-child { border-top: 0; }
body.v2 .hm-tx-calls code { padding: 0; border: 0; background: none; font-size: 13px; }
body.v2 .hm-tx-calls span { overflow: hidden; color: var(--fg-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
body.v2 .hm-tx-calls .hm-ok { color: var(--up); }
/* Leading, the transcript's tool rows read a size up with it, and a detail
   wraps rather than being cut short where the column is narrow. */
body.v2 .hm-feat--lead .hm-tx-calls code, body.v2 .hm-feat--lead .hm-tx-calls span { font-size: 14px; }
body.v2 .hm-feat--lead .hm-tx-calls span { white-space: normal; }
body.v2 .hm-tx-reply { margin: 0; color: var(--fg-muted); }

/* The traced run: a summary line, then one row per step, model call and tool
   call (name, start time, and a bar placed on the run's own time scale with
   the idle gap taken out), the idle gap as a dashed fold, and the failed call
   opened under its row. Nothing in it is under 13 px. */
body.v2 .hm-trace .hm-fh { font-size: 13px; }
body.v2 .hm-trace-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 10px; color: var(--fg-muted); }
body.v2 .hm-trace-v { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
body.v2 .hm-trace-v:first-child { color: var(--fg); }
body.v2 .hm-trace-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 5px 0;
}
/* A name wraps rather than being cut: the row grows. */
body.v2 .hm-trace-name { min-width: 0; overflow-wrap: anywhere; }
body.v2 .hm-trace-row[data-depth="1"] .hm-trace-name { padding-left: 12px; color: var(--fg-muted); }
body.v2 .hm-trace-row[data-kind="step"] .hm-trace-name { font-weight: 500; }
body.v2 .hm-trace-row.is-failed .hm-trace-name { color: var(--down); font-weight: 500; }
body.v2 .hm-trace-row time { color: var(--fg-muted); font: 400 13px/1.5 var(--font-mono); }
body.v2 .hm-trace-track { position: relative; height: 10px; }
body.v2 .hm-trace-bar {
  position: absolute;
  top: 1px;
  bottom: 1px;
  /* At least 2 px wide, moved in from the end when that would overrun it. */
  left: min(var(--x), calc(100% - max(var(--w), 2px)));
  width: max(var(--w), 2px);
  border-radius: 2px;
  background: var(--border-strong);
}
body.v2 .hm-trace-row[data-kind="step"] .hm-trace-bar { top: 0; bottom: 0; background: var(--fg-muted); }
body.v2 .hm-trace-row.is-failed .hm-trace-bar { background: var(--down); }
body.v2 .hm-trace-fold {
  margin: 6px 0;
  padding: 4px 0;
  border-block: 1px dashed var(--border-strong);
  color: var(--fg-muted);
  text-align: center;
}
body.v2 .hm-trace-what {
  margin: 2px 0 8px 12px;
  padding: 8px 12px;
  border-left: 2px solid var(--down);
  background: var(--bg-raised);
}
body.v2 .hm-trace-what-h { margin: 0 0 4px; color: var(--down); font-weight: 600; }
body.v2 .hm-trace-what dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; }
body.v2 .hm-trace-what dt { color: var(--fg-muted); }
body.v2 .hm-trace-what dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }

/* Ping from anything: a quiet band with the code tabs. */
body.v2 .band-alt { border-block: 1px solid var(--border); background: var(--band-alt); }
/* The tighter step: under the code block and around the
   proof line, a quarter less than a full section. */
body.v2 { --section-tight: 88px; }
@media (max-width: 759px) {
  body.v2 { --section-tight: 56px; }
}
body.v2 .hm-band { padding: var(--section-pad) 0 var(--section-tight); }
body.v2 .hm-band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
body.v2 .hm-band-copy { min-width: 0; }
body.v2 .hm-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 24px 0 0; }
body.v2 .hm-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); }
body.v2 .hm-code { min-width: 0; border-color: var(--border); background: var(--bg); }
body.v2 .hm-code .code-tabs-list { gap: 6px; padding: 8px; background: var(--bg); }
body.v2 .hm-code .code-tab { min-height: 36px; border: 1px solid var(--border-control); border-radius: 6px; }
body.v2 .hm-code .code-tab[aria-selected="true"] { border-color: var(--fg); }
body.v2 .hm-code .code-tab[aria-selected="true"]::after { content: none; }
body.v2 .hm-code pre { background: var(--bg); font-size: 13px; }

/* The proof line, then the FAQ. */
body.v2 .hm-proof { padding: var(--section-tight) 0; }
body.v2 .hm-two { max-width: 860px; margin: 0; font-size: clamp(19px, 2.4vw, 28px); font-weight: 500; line-height: 1.35; letter-spacing: -0.02em; text-wrap: balance; }
body.v2 .hm-two a { color: var(--fg); text-underline-offset: 5px; }
/* One word of the proof sentence (an accent place). */
body.v2 .hm-accent-word { color: var(--accent); }
body.v2 .hm-proof + #faq { padding-top: 0; border-top: 0; padding-bottom: var(--section-pad); }

/* The panel the frame draws on. */
body.v2 .hm-panel { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-panel); }
body.v2 .hm-pause,
body.v2 .hm-replay {
  flex: none;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-control);
  border-radius: 6px;
  background: transparent;
  color: var(--fg);
  font: 500 13px/1 var(--font-sans);
  cursor: pointer;
}
body.v2 .hm-pause:hover,
body.v2 .hm-replay:hover { border-color: var(--fg-muted); }
body.v2 .hm-pause[aria-pressed="true"] { border-color: var(--fg); background: var(--bg-raised); }
body.v2 .hm-pause[hidden],
body.v2 .hm-replay[hidden] { display: none; }

@media (max-width: 859px) {
  body.v2 .hm-feat, body.v2 .hm-band-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  body.v2 .hm-feat--flip .hm-feat-copy { order: 0; }
  body.v2 .hm-feat--compact .hm-frag { justify-self: stretch; max-width: none; }
  body.v2 .hm-feat + .hm-feat { margin-top: 72px; }
}
@media (max-width: 640px) {
  body.v2 .hm-hero { padding-top: 48px; }
  body.v2 .hm-hero .hero-lede { font-size: 16px; }
  body.v2 .hm-chip { min-height: 44px; }
  /* One route per row, in reading order, so each link's 44 px target has its
     own row and no two targets overlap. The break after the first two routes
     is generated, so the sentence's text is unchanged. */
  body.v2 .hm-routes a { display: inline-block; padding-block: 10px; line-height: 24px; }
  body.v2 .hm-routes > span:not(:last-child)::after { content: " \A"; white-space: pre; }
  /* A row each, the sentence's commas would be leftovers: they stay in the
     text and drop from view. */
  body.v2 .hm-comma { display: none; }
  body.v2 .hm-skill { min-height: 46px; padding-left: 12px; }
  body.v2 .hm-skill pre { font-size: 12px; }
  body.v2 .hm-skill .lp-copy { min-height: 44px; min-width: 44px; margin: -1px 0; }
  body.v2 .hm-frame-wrap { margin-top: 40px; }
  body.v2 .hm-marks { gap: 16px; }
  body.v2 .hm-mark { min-width: 44px; height: 44px; }
  body.v2 .hm-code .code-tab { min-height: 44px; }
  body.v2 .hm-dl { grid-template-columns: minmax(0, 1fr) 88px 44px; }
  body.v2 .hm-dl-res, body.v2 .hm-dl-rh { display: none; }
  body.v2 .hm-tl-note { margin-left: 0; }
  body.v2 .hm-tx-calls li { grid-template-columns: minmax(0, 1fr) auto; }
  body.v2 .hm-tx-calls span:not(.hm-ok) { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
  /* The traced run: the track takes its own row under the name and time. */
  body.v2 .hm-trace-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  body.v2 .hm-trace-track { grid-column: 1 / -1; }
  body.v2 .hm-trace-what { margin-left: 0; }
  body.v2 .hm-trace-what dl { grid-template-columns: minmax(0, 1fr); }
  body.v2 .hm-trace-what dd + dt { margin-top: 4px; }
}

/* The example console's frame (the console-frame block): a window
   1280 px wide at most, a bar naming the scene beside a small "Example"
   label, with its three moments (each led by a dot that takes the accent
   once the scene reaches it), the scene's clock, Replay and Pause, and a
   body that holds the resting still until the showcase (an iframe of
   /console-example/, added by /js/home-frame.js) says it is ready. At
   640 px and under it gives way to the phone walkthrough below.
   The iframe stays hidden (not only transparent) until data-live, so a frame
   the server refused is never drawn over the still. */
body.v2 .hm-frame {
  width: calc(100% - 32px);
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: var(--shadow-frame);
}
body.v2 .hm-frame-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
body.v2 .hm-frame-title { color: var(--fg); font: 600 13px/1.3 var(--font-sans); }
body.v2 .hm-frame-label { flex: none; padding: 3px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--fg-muted); font: 500 11px/1 var(--font-sans); }
body.v2 .hm-moments { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 0 6px; padding: 0; list-style: none; }
body.v2 .hm-moments li { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-muted); font: 400 12px/1.3 var(--font-sans); }
body.v2 .hm-moments li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
/* A moment the scene has reached (an accent place). */
body.v2 .hm-moments [data-reached]::before { background: var(--accent); }
/* The current moment: a brighter word and an underline (an accent place),
   so it reads apart from the reached ones without the colours. */
body.v2 .hm-moments [aria-current="step"] { color: var(--fg); text-decoration: underline 2px var(--accent); text-underline-offset: 4px; }
body.v2 .hm-frame-clock { margin-left: auto; color: var(--fg-muted); font: 400 12px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
body.v2 .hm-clock-final { display: none; }
body.v2 .hm-frame .hm-pause,
body.v2 .hm-frame .hm-replay { min-height: 26px; height: 26px; padding: 0 10px; font-size: 12px; }
body.v2 .hm-frame-body { overflow: hidden; background: var(--bg); }
body.v2 .hm-frame-inner { position: relative; height: 720px; }
body.v2 .hm-still,
body.v2 .hm-still img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
body.v2 .hm-still img { object-fit: cover; object-position: left top; }
body.v2 .hm-still--light { display: none; }
[data-theme="light"] body.v2 .hm-still--dark { display: none; }
[data-theme="light"] body.v2 .hm-still--light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) body.v2 .hm-still--dark { display: none; }
  :root:not([data-theme]) body.v2 .hm-still--light { display: block; }
}
body.v2 .hm-frame-body iframe,
body.v2 .hm-phone-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  visibility: hidden;
}
body.v2 [data-frame-body][data-live] iframe { opacity: 1; visibility: visible; }
body.v2 [data-frame-body][data-live] .hm-still { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  body.v2 .hm-clock-start { display: none; }
  body.v2 .hm-clock-final { display: inline; }
  /* The final state shows, so every moment has been reached (an accent
     place). */
  body.v2 .hm-moments li::before { background: var(--accent); }
}
/* Under 1024 px the moments take a second row of the bar. */
@media (max-width: 1023px) {
  body.v2 .hm-frame-bar { flex-wrap: wrap; row-gap: 6px; padding-block: 8px; }
  body.v2 .hm-moments { order: 10; flex-basis: 100%; margin-left: 0; }
}
@media (min-width: 760px) {
  body.v2 .hm-frame { width: calc(100% - 64px); }
}

/* The phone walkthrough (the console-frame block's second region): at 640 px
   and under, in place of the desktop frame, a phone-sized console showing the
   same scene at a phone's width. Its bar takes two rows (the title, then
   Example, the clock, Replay and Pause), the screen holds the resting still
   until the live console is ready, Open the incident runs full width under
   it, and the three moments follow as cards, each led by a dot; the current
   card's dot takes the accent. */
body.v2 .hm-phone { display: none; }
@media (max-width: 640px) {
  body.v2 .hm-frame { display: none; }
  body.v2 .hm-phone {
    display: block;
    width: min(100% - 32px, 360px);
    margin: 0 auto;
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    box-shadow: var(--shadow-frame);
    text-align: left;
  }
  body.v2 .hm-phone-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 12px 12px 10px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-raised);
  }
  body.v2 .hm-phone-bar .hm-frame-title { flex-basis: 100%; }
  body.v2 .hm-phone .hm-pause,
  body.v2 .hm-phone .hm-replay { min-height: 44px; height: 44px; padding: 0 14px; }
  body.v2 .hm-phone-screen { position: relative; height: 480px; overflow: hidden; background: var(--bg); }
  body.v2 .hm-phone .hm-still img { object-fit: cover; object-position: top; }
  body.v2 .hm-open-incident {
    display: block;
    width: calc(100% - 24px);
    min-height: 44px;
    margin: 12px auto 0;
    border: 1px solid var(--border-control);
    border-radius: 8px;
    background: transparent;
    color: var(--fg);
    font: 500 14px/1 var(--font-sans);
    cursor: pointer;
  }
  body.v2 .hm-open-incident:hover { border-color: var(--fg-muted); }
  body.v2 .hm-open-incident[hidden] { display: none; }
  body.v2 .hm-walk { display: grid; gap: 10px; margin: 0; padding: 14px 16px 16px; list-style: none; }
  body.v2 .hm-walk li { position: relative; padding-left: 16px; color: var(--fg-muted); font: 400 13px/1.45 var(--font-sans); }
  body.v2 .hm-walk li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
  body.v2 .hm-walk b { display: block; font-weight: 600; }
  body.v2 .hm-walk [data-reached] { color: var(--fg); }
  body.v2 .hm-walk [aria-current="step"] { color: var(--fg); }
}
/* The current card's dot (an accent place). */
body.v2 .hm-walk [aria-current="step"]::before { background: var(--accent); }

/* Light: the surfaces step by their borders, not by shadow or tint. The
   frame, the phone region and the fragments take the strong border (3:1 on
   the page), the fragments sit white on the page, and the code band keeps the
   page's own ground, so the one change of ground is into the CTA band. */
[data-theme="light"] body.v2 :is(.hm-frame, .hm-phone) { border-color: var(--border-strong); box-shadow: none; }
[data-theme="light"] body.v2 .hm-frag { background: var(--bg-panel); border-color: var(--border-strong); }
[data-theme="light"] body.v2 .band-alt { background: transparent; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) body.v2 :is(.hm-frame, .hm-phone) { border-color: var(--border-strong); box-shadow: none; }
  :root:not([data-theme]) body.v2 .hm-frag { background: var(--bg-panel); border-color: var(--border-strong); }
  :root:not([data-theme]) body.v2 .band-alt { background: transparent; }
}


@media (prefers-reduced-motion: no-preference) {
  body.v2 .hm-chip, body.v2 .hm-pause, body.v2 .hm-replay, body.v2 .hm-open-incident { transition: border-color 150ms ease, color 150ms ease; }
  body.v2 .hm-mark { transition: filter 250ms ease, opacity 250ms ease; }
  /* The scroll fills: a visible resting state, 4 px low, then each step lands. */
  body.v2 .step { transition: opacity 250ms ease-out, transform 250ms ease-out; }
  /* Resting text stays legible: .88 is the lowest opacity that keeps the
     muted fragment text at 4.5:1 on --bg-panel in light (4.57; dark needs
     .76). The landing is cued by the dot and the cross taking their colour,
     not by the text coming back. */
  body.v2 .is-armed .step:not(.is-on) { opacity: 0.88; transform: translateY(4px); }
  body.v2 .is-armed .step:not(.is-on) .hm-x { color: var(--fg-muted); }
  body.v2 .is-armed .step:not(.is-on) .hm-dot { background: var(--fg-muted); }
  body.v2 .is-armed .step.is-on .hm-dot { animation: hm-dot-in 250ms ease-out; }
  /* The live console fades in over the still, and the still goes once it has. */
  body.v2 [data-frame-body] iframe { transition: opacity 250ms ease, visibility 0s linear 250ms; }
  body.v2 [data-frame-body][data-live] iframe { transition: opacity 250ms ease; }
  body.v2 [data-frame-body][data-live] .hm-still { transition: visibility 0s linear 250ms; }
  @keyframes hm-dot-in { from { transform: scale(0.5); } to { transform: none; } }
}
