/* 🤖 Homepage hero (enabled demo builds): Paul's headline, the paste box and a
   looping picture of a real run. home.css (.c-hero and .paste) still applies;
   this file only adds. Ported from the approved 2026-11-12 rework, hero B. */

/* Three tiers of type: the headline (the one heavy thing), the subheading (regular, muted, emphasis by italics
   alone), then one body size for the three lines under them: "You want CARLOS." a touch heavier, the rotating word
   marked only by the accent. The last line is muted, with "Read on" in bold and the main ink: a link told apart by
   its weight, not colour alone, underlined on hover and focus. Weights: 700, 500, 400. The gaps: a tight pair for the
   headline and subheading, then the same step between each tier below. */
.c-hero.hv .sub { font-weight: 400; font-size: clamp(1.15rem, 4.6vw, 1.5rem); line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 1.5rem; }
.c-hero.hv .sub em { font-weight: 400; }
.c-hero.hv .hv-ask { max-width: 36rem; margin-bottom: 1.5rem; font-size: clamp(1.06rem, 3.6vw, 1.2rem); font-weight: 400; line-height: 1.5; }
.c-hero.hv .hv-ask > span { display: block; }
.c-hero.hv .hv-ask > span:first-child { font-weight: 500; }
.c-hero.hv .hv-ask .hv-gloss { margin: 0 0 0.5rem; }
.c-hero.hv .hv-ask > span:last-child { color: var(--hv-muted); }
.c-hero.hv .ask a { font-weight: 700; text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.c-hero.hv .ask a:hover, .c-hero.hv .ask a:focus-visible { text-decoration: underline; }
.c-hero.hv .ask a:focus-visible { outline: 2px solid var(--hv-accent); outline-offset: 3px; border-radius: 3px; }

/* One calm box: a small label, then the line and the button on one row. */
.hv .hv-paste { padding: 0.8rem 0.8rem 0.8rem 1.15rem; }
.hv .hv-paste .pb-to { font-weight: 400; font-size: 0.78rem; color: var(--hv-muted); margin-bottom: 0.35rem; }
.hv .hv-paste .pb-line { font-weight: 400; font-size: 1.06rem; }
.hv .hv-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.hv .hv-row .pb-line { margin: 0; min-width: 0; }
/* Copy stays at the right of the line when both fit; otherwise it wraps under the line and fills the row
   (the line's huge grow share keeps the button its own size while they share a row). */
.hv .hv-row { flex-wrap: wrap; row-gap: 0.6rem; }
.hv .hv-row .pb-line { flex: 999 1 15rem; }
.hv .hv-row .pb-copy { flex: 1 0 auto; justify-content: center; min-height: 40px; }

/* The hosts line, folded away under a quiet disclosure. */
.c-hero.hv .hv-cloud { margin: 0.75rem auto 0; max-width: 34rem; font-size: 0.9rem; color: var(--hv-muted); }
.c-hero.hv .hv-cloud summary { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; cursor: pointer; list-style: none; text-decoration: underline; text-decoration-color: light-dark(rgba(91, 96, 103, 0.5), rgba(154, 165, 181, 0.5)); text-underline-offset: 0.2em; }
.c-hero.hv .hv-cloud summary::-webkit-details-marker { display: none; }
.c-hero.hv .hv-cloud summary::before { content: "+"; font-family: ui-monospace, Menlo, Consolas, monospace; text-decoration: none; display: inline-block; width: 0.8em; }
.c-hero.hv .hv-cloud[open] summary::before { content: "\2212"; }
.c-hero.hv .hv-cloud .start-hosts { margin-top: 0.1rem; }

/* One pane, two columns from 64rem: the text on the left, the agent window on the right, a hairline between them.
   The pane is as tall as the taller column; the text is centred in its half and the replay fills its own. On a phone
   the two stack, the hairline across. */
.hv-b .c-hero-inner { max-width: 74rem; }
.hv-pane { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) {
  .hv-b .c-hero-inner { text-align: left; padding-block: clamp(3rem, 8vw, 5.5rem); }
  .hv-pane { --split: 54%; grid-template-columns: var(--split) minmax(0, 1fr); align-items: stretch; }
  .hv-pane > .hv-col { align-self: center; }
  .hv-pane::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--split); width: 1px; background: var(--g-rule); pointer-events: none; }
  .c-hero.hv-b h1 { font-size: clamp(2.2rem, 4.1vw, 3.2rem); margin-inline: 0; }
  .c-hero.hv-b .sub { font-size: clamp(1.25rem, 1.9vw, 1.6rem); margin-inline: 0; max-width: 30ch; }
  .c-hero.hv-b .hv-ask, .c-hero.hv-b .hv-cloud, .c-hero.hv-b .paste { margin-inline: 0; }
  .c-hero.hv-b .start-hosts { margin-inline: 0; }
}

/* The picture: a scripted loop, CSS only. Paused by the checkbox; still under reduced motion. */
.rp { margin: 0; width: 100%; text-align: left; border-radius: 16px; background: linear-gradient(180deg, light-dark(#ffffff, #1f2a2e), light-dark(#f7f5f1, #182024)); border: 1px solid light-dark(rgba(27, 31, 36, 0.14), rgba(127, 208, 182, 0.28)); box-shadow: 0 24px 48px -28px light-dark(rgba(40, 30, 10, 0.3), rgba(0, 0, 0, 0.8)), inset 0 1px 0 rgba(255, 255, 255, 0.06); overflow: hidden; font: 400 0.9rem/1.45 var(--site-sans); color: light-dark(#2b3036, #dfe6ee); }
.rp-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.6rem 0.55rem 0.9rem; border-bottom: 1px solid light-dark(rgba(27, 31, 36, 0.08), rgba(255, 255, 255, 0.08)); font-size: 0.78rem; color: light-dark(#5b6067, #a9b4c2); }
.rp-dots { display: inline-flex; gap: 5px; }
.rp-dots i { width: 8px; height: 8px; border-radius: 50%; background: light-dark(rgba(27, 31, 36, 0.16), rgba(255, 255, 255, 0.16)); }
.rp-title { font-weight: 500; color: light-dark(#2b3036, #c9d2de); }
/* Pause and Play: one round icon of a fixed size, like the gallery's quiet pause, so nothing beside it moves when
   it changes. The words stay as its name for screen readers (visually hidden, one shown at a time). */
.rp-pause { margin-left: auto; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid light-dark(rgba(27, 31, 36, 0.2), rgba(255, 255, 255, 0.18)); border-radius: 99px; color: light-dark(#2b3036, #dfe6ee); cursor: pointer; position: relative; }
.rp-pause svg { grid-area: 1 / 1; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rp-pause .rp-ic-play { fill: currentColor; stroke-width: 1.2; display: none; }
.rp:has(.rp-pause input:checked) .rp-ic-play { display: block; }
.rp:has(.rp-pause input:checked) .rp-ic-pause { display: none; }
.rp-pause-off, .rp-pause-on { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (pointer: coarse) { .rp-pause { width: 40px; height: 40px; } }
.rp-pause input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rp-pause:has(input:focus-visible) { outline: 3px solid light-dark(#1a5f4f, #2fd4ac); outline-offset: 2px; }
.rp-pause-on { display: none; }
.rp:has(.rp-pause input:checked) .rp-pause-on { display: inline; }
.rp:has(.rp-pause input:checked) .rp-pause-off { display: none; }
.rp:has(.rp-pause input:checked) * { animation-play-state: paused !important; }
body.landing .rp-log { list-style: none; margin: 0; padding: 0.85rem 0.9rem 0.25rem; display: grid; gap: 0.45rem; align-content: start; }
.rp-log li { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); gap: 0.5rem; align-items: baseline; }
.rp-who { font: 400 0.68rem/1.5 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: light-dark(#5b6067, #a9b4c2); }
.rp-log p { margin: 0; overflow-wrap: anywhere; }
.rp-you p { color: light-dark(#14181d, #f3f1ea); }
.rp-agent .rp-who { color: light-dark(#1a5f4f, #7fd0b6); }
/* Agent lines in the panel's own ink, not a grey that reads as disabled; the green AGENT label tells the speakers apart. */
.rp-agent p { color: light-dark(#2b3036, #dfe6ee); }
/* The page's own link colour follows the system, not the chosen theme: the app's address follows the theme. */
.rp-url, body.landing a.rp-url { color: light-dark(#1a5f4f, #7fe9cf); font-weight: 500; }
/* The last line links to the app's permanent example copy, in a new tab. */
a.rp-url { text-decoration: none; overflow-wrap: anywhere; }
a.rp-url:hover { text-decoration: underline; text-underline-offset: 0.18em; }
a.rp-url:focus-visible { outline: 2px solid light-dark(#1a5f4f, #2fd4ac); outline-offset: 2px; border-radius: 3px; }
a.rp-url svg { width: 0.8em; height: 0.8em; vertical-align: -0.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Each line's stamp: the agent's real working time at that point, quiet, at the top right of the line; the live line
   ends with a slightly stronger "Live at m:ss". The replay is sped up; the stamps are real time. */
.rp-time { float: right; margin: 0 0 0 0.6rem; font: 400 0.64rem/1.7 ui-monospace, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; color: light-dark(#575c63, #a3aebb); }
.rp-live { display: inline-block; margin-left: 0.25rem; padding: 0 0.4rem; border-radius: 99px; background: light-dark(rgba(26, 95, 79, 0.1), rgba(127, 208, 182, 0.14)); color: light-dark(#1a5f4f, #7fe9cf); font: 500 0.66rem/1.6 ui-monospace, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-stage { display: grid; }
.rp-stage > * { grid-area: 1 / 1; min-width: 0; }
/* One session per tab, stacked in the stage; inside each, the two scenes stack the same way. */
.rp-session { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.rp-session[hidden] { display: none; }
.rp-session > * { grid-area: 1 / 1; min-width: 0; min-height: 0; }
/* The session showing, under the title bar: its name and a quiet "n of N", crossfading when it changes. */
.rp-now { flex: none; display: flex; align-items: baseline; gap: 0.5rem; padding: 0.45rem 0.9rem; border-bottom: 1px solid light-dark(rgba(27, 31, 36, 0.08), rgba(255, 255, 255, 0.08)); transition: opacity 0.12s ease-out; }
.rp-now.is-swapping { opacity: 0; }
.rp-now-name { font: 500 0.8rem/1.3 var(--site-sans, inherit); color: light-dark(#181c21, #eef2f6); }
.rp-now-count { font: 400 0.68rem/1.3 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.04em; color: light-dark(#5b6067, #a9b4c2); }
/* The replay and its dots, one pane of the hero. */
.rp-col { display: flex; flex-direction: column; align-items: stretch; width: 100%; min-width: 0; }
@media (max-width: 63.99rem) { .rp-col { border-top: 1px solid var(--g-rule); } }
/* The dots under the window: one per session, the active one long, like the apps carousel's dots. They choose a
   session at any time; each is named and titled with it. */
.rp-dotrow { flex: none; display: flex; justify-content: center; padding: 0.15rem 0 0.4rem; }
.rp-dotrow[hidden] { display: none; }
.rp-dot { display: grid; place-items: center; width: 26px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; }
.rp-dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: light-dark(rgba(27, 31, 36, 0.2), rgba(255, 255, 255, 0.24)); transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1); }
.rp-dot[aria-selected="true"]::before { width: 20px; background: light-dark(#1a5f4f, #7fd0b6); }
@media (hover: hover) {
  .rp-dot[aria-selected="false"]:hover::before { background: light-dark(#5b6067, #a9b4c2); transform: scale(1.3); }
  .rp-dot[aria-selected="true"]:hover::before { transform: scaleY(1.25); }
}
.rp-dot:active::before { transform: scale(0.85); transition-duration: 0.08s; }
.rp-dot:focus-visible { outline: 2px solid light-dark(#1a5f4f, #2fd4ac); outline-offset: -2px; }
@media (pointer: coarse) { .rp-dot { width: 28px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .rp-dot::before, .rp-dot:hover::before, .rp-dot:active::before { transform: none !important; } .rp-now { transition: none; } }
.rp-scene2 { display: flex; flex-direction: column; }
.rp-scene2 .rp-app { margin-top: auto; }
.rp-log div > p + .rp-qs { margin-top: 0.3rem; }
body.landing .rp-qs { list-style: decimal; margin: 0; padding-left: 1.2rem; color: light-dark(#2b3036, #dfe6ee); display: grid; gap: 0.1rem; }
.rp-qs li { display: list-item; }
.rp-app { margin: 0.6rem 0.9rem 0; border-radius: 10px 10px 0 0; overflow: hidden; background: #fafafa; box-shadow: 0 -8px 24px -14px light-dark(rgba(40, 30, 10, 0.3), rgba(0, 0, 0, 0.6)); border: 1px solid light-dark(rgba(27, 31, 36, 0.1), transparent); border-bottom: 0; }
.rp-app-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.7rem; background: #ecebe7; color: #474b50; font: 400 0.7rem/1.5 ui-monospace, Menlo, Consolas, monospace; }
.rp-app-bar span { width: 8px; height: 8px; border-radius: 50%; background: #2a9d7f; flex: none; }
.rp-shot { height: 19rem; overflow: hidden; }
.rp-shot img { display: block; width: 100%; height: auto; }
/* A tap on the hero or the replay never zooms the page (pinch zoom still works); the screenshot is a picture, not a target. */
body.site-home .c-hero, .rp { touch-action: manipulation; }
.rp-shot { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.rp-shot img { pointer-events: none; -webkit-user-drag: none; }
.rp-cap { padding: 0.5rem 0.9rem 0.6rem; background: light-dark(#f1eee8, #141b1f); font-size: 0.74rem; color: light-dark(#5b6067, #a9b4c2); }

/* The loop follows the first session's recorded order, at reading pace (Paul, 2026-11-13: slower by default): each
   line appears, fades up to full contrast in 0.25 s, and stays alone long enough to read at about 200 words a minute,
   with 0.6 s between turns. The app then holds 1.5 s, pans down through the page over 5 s and holds again before
   the loop restarts. Times are in seconds of a 68.5 s cycle; .rp-s9 is the app. Without JavaScript only the first
   session (the status page) shows, so these are its times; home/replay.js times every session from its own words.
   Generated: s1 0.4, s2 2.5, s3 14.5, s4 32.6, s5 44.0, s6 46.1, s7 51.8, s8 58.1, s9 60.8, scene 2 at 32.2, pan 62.3 to 67.3. */
.rp { --rp-cycle: 68.5s; } /* the whole loop at 1x */
@keyframes rp-k1 { 0%, 0.58% { opacity: 0; transform: translateY(6px); } 0.95%, 99.27% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.rp-s1 { animation: rp-k1 var(--rp-cycle) infinite both; }
@keyframes rp-k2 { 0%, 3.65% { opacity: 0; transform: translateY(6px); } 4.01%, 99.27% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.rp-s2 { animation: rp-k2 var(--rp-cycle) infinite both; }
@keyframes rp-k3 { 0%, 21.17% { opacity: 0; transform: translateY(6px); } 21.53%, 99.27% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.rp-s3 { animation: rp-k3 var(--rp-cycle) infinite both; }
@keyframes rp-k4 { 0%, 47.59% { opacity: 0; transform: translateY(6px); } 47.96%, 99.27% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.rp-s4 { animation: rp-k4 var(--rp-cycle) infinite both; }
@keyframes rp-k5 { 0%, 64.23% { opacity: 0; transform: translateY(6px); } 64.6%, 99.27% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.rp-s5 { animation: rp-k5 var(--rp-cycle) infinite both; }
@keyframes rp-k6 { 0%, 67.3% { opacity: 0; transform: translateY(6px); } 67.66%, 99.27% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.rp-s6 { animation: rp-k6 var(--rp-cycle) infinite both; }
@keyframes rp-k7 { 0%, 75.62% { opacity: 0; transform: translateY(6px); } 75.99%, 99.27% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.rp-s7 { animation: rp-k7 var(--rp-cycle) infinite both; }
@keyframes rp-k8 { 0%, 84.82% { opacity: 0; transform: translateY(6px); } 85.18%, 99.27% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.rp-s8 { animation: rp-k8 var(--rp-cycle) infinite both; }
@keyframes rp-k9 { 0%, 88.76% { opacity: 0; transform: translateY(14px); } 89.2%, 99.27% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.rp-s9 { animation: rp-k9 var(--rp-cycle) infinite both; }
@keyframes rp-scene1 { 0%, 47.01% { opacity: 1; } 47.59%, 100% { opacity: 0; } }
.rp-scene1 { animation: rp-scene1 var(--rp-cycle) infinite both; }
/* The pan ends with the picture's foot at the window's foot, whatever the window's height. */
@keyframes rp-pan { 0%, 90.95% { top: 0; transform: none; } 98.25%, 100% { top: 100%; transform: translateY(-100%); } }
.rp-shot img { animation: rp-pan var(--rp-cycle) infinite both; }

/* Speed: slower, the current pace, faster. Small and quiet like Pause; shown by home/replay-speed.js. */
.rp-speed { margin-left: auto; display: inline-flex; align-items: center; flex: none; border: 1px solid light-dark(rgba(27, 31, 36, 0.2), rgba(255, 255, 255, 0.18)); border-radius: 99px; color: light-dark(#2b3036, #dfe6ee); }
.rp-speed[hidden] { display: none; }
.rp-speed:not([hidden]) + .rp-pause { margin-left: 0; }
.rp-speed button { display: inline-grid; place-items: center; width: 28px; min-height: 32px; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; cursor: pointer; }
.rp-speed button[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.rp-speed button:focus-visible { outline: 3px solid light-dark(#1a5f4f, #2fd4ac); outline-offset: 1px; }
.rp-speed svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* A fixed width with tabular figures: 0.5x, 1x, 1.5x and 2x all take the same room. */
.rp-speed output { align-self: stretch; display: grid; place-items: center; box-shadow: inset 1px 0 0 var(--rp-seg-line), inset -1px 0 0 var(--rp-seg-line); width: 3.4em; flex: none; white-space: nowrap; text-align: center; font: 500 0.74rem/1 ui-monospace, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) { .rp-speed button { width: 36px; min-height: 40px; } }

/* The replay played as a chat by home/replay.js (.is-live): the CSS loop above stands down, and the script shows
   each line (.is-on) and each character or word of it (.on) as it arrives. Unarrived text is only transparent,
   so the lines keep their places and their whole text for screen readers. */
.rp.is-live :is(.rp-s1, .rp-s2, .rp-s3, .rp-s4, .rp-s5, .rp-s6, .rp-s7, .rp-s8, .rp-s9, .rp-scene1), .rp.is-live .rp-shot img { animation: none; }
.rp.is-live :is(.rp-s1, .rp-s2, .rp-s3, .rp-s4, .rp-s5, .rp-s6, .rp-s7, .rp-s8, .rp-s9):not(.is-on) { opacity: 0; }
.rp.is-live :is(.rp-s1, .rp-s2, .rp-s3, .rp-s4, .rp-s5, .rp-s6, .rp-s7, .rp-s8) { transition: opacity 0.2s ease-out; }
.rp.is-live .rp-s9 { transition: opacity 0.3s ease-out, transform 0.3s ease-out; }
.rp.is-live .rp-s9:not(.is-on) { transform: translateY(14px); }
.rp.is-live .rp-c:not(.on), .rp.is-live .rp-w:not(.on) { opacity: 0; }
.rp.is-live .rp-w { transition: opacity 0.18s ease-out; }
/* Hidden only to the eye (opacity): the whole conversation stays in the page for screen readers, read once, in
   order, however far the replay has played. */
.rp.is-live .rp-qs li:not(.on) { opacity: 0; }
.rp.is-live .rp-scene1 { transition: opacity 0.45s ease-out; }
.rp.is-live .rp-scene1.is-off { opacity: 0; pointer-events: none; transition: opacity 0.45s ease-out; }
.rp.is-live .rp-stage.is-ending { opacity: 0; transition: opacity 0.5s ease-in; }
/* Typing: a caret after the last character typed. */
.rp-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; border-radius: 1px; background: light-dark(#1a5f4f, #7fd0b6); animation: rp-caret 1s steps(1) infinite; }
@keyframes rp-caret { 50% { opacity: 0; } }
/* Thinking: three dots in the agent's row before each message. */
.rp-think .rp-dots3 { display: inline-flex; gap: 4px; align-items: center; height: 1.36em; }
.rp-think .rp-dots3 i { width: 5px; height: 5px; border-radius: 50%; background: light-dark(#1a5f4f, #7fd0b6); animation: rp-think 1.1s ease-in-out infinite; }
.rp-think .rp-dots3 i:nth-child(2) { animation-delay: 0.15s; }
.rp-think .rp-dots3 i:nth-child(3) { animation-delay: 0.3s; }
@keyframes rp-think { 0%, 70%, 100% { opacity: 0.25; transform: none; } 35% { opacity: 1; transform: translateY(-2px); } }
.rp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Loading: the window's frame with soft placeholder lines and a quiet pulse while it connects. */
.rp-loading { display: none; }
.rp.is-live .rp-loading:not([hidden]) { display: grid; align-content: start; gap: 0.55rem; padding: 0.85rem 0.9rem; z-index: 1; background: inherit; }
.rp-loading i { display: block; height: 0.7rem; border-radius: 6px; background: linear-gradient(90deg, light-dark(rgba(27, 31, 36, 0.07), rgba(255, 255, 255, 0.06)) 30%, light-dark(rgba(27, 31, 36, 0.14), rgba(255, 255, 255, 0.13)) 50%, light-dark(rgba(27, 31, 36, 0.07), rgba(255, 255, 255, 0.06)) 70%) 0 0 / 300% 100%; animation: rp-shimmer 1.2s linear infinite; }
.rp-loading i:nth-child(2) { width: 72%; } .rp-loading i:nth-child(3) { width: 88%; } .rp-loading i:nth-child(4) { width: 54%; }
.rp-pulse { width: 8px; height: 8px; border-radius: 50%; background: light-dark(#1a5f4f, #7fd0b6); animation: rp-pulse 1s ease-in-out infinite; }
@keyframes rp-shimmer { to { background-position: -150% 0; } }
@keyframes rp-pulse { 50% { opacity: 0.3; transform: scale(0.8); } }
/* A step forward plays just the next turn in place; a step back fades just the last turn out (home/replay.js). */
/* Back and forward: as small and quiet as the speed control. */
.rp-steps { margin-left: auto; display: inline-flex; align-items: center; flex: none; border: 1px solid light-dark(rgba(27, 31, 36, 0.2), rgba(255, 255, 255, 0.18)); border-radius: 99px; color: light-dark(#2b3036, #dfe6ee); }
.rp-steps[hidden] { display: none; }
.rp-steps:not([hidden]) + .rp-speed { margin-left: 0; }
.rp-steps button { display: inline-grid; place-items: center; width: 28px; min-height: 32px; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; cursor: pointer; }
.rp-steps button:focus-visible { outline: 3px solid light-dark(#1a5f4f, #2fd4ac); outline-offset: 1px; }
.rp-steps svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rp-steps svg .fill { fill: currentColor; stroke-width: 1; }
@media (pointer: coarse) { .rp-steps button { width: 34px; min-height: 40px; } }

/* Back/forward and slower/readout/faster are segmented controls: hairline dividers (inset shadows, so they take no
   room), and each segment square at a divider and rounded only on the pill's outer end, so a hover or press tint
   fills its segment edge to edge. Segments press with a darker fill only (a shrinking segment would open a gap);
   the round Pause presses down like the page's other round buttons. The speed control's spent end takes neither.
   Colour alone under reduced motion. */
.rp { --rp-seg-line: light-dark(rgba(27, 31, 36, 0.16), rgba(255, 255, 255, 0.15)); }
.rp-steps button:first-child, .rp-speed button:first-child { border-radius: 99px 0 0 99px; }
.rp-steps button:last-child, .rp-speed button:last-child { border-radius: 0 99px 99px 0; }
.rp-steps button + button { box-shadow: inset 1px 0 0 var(--rp-seg-line); }
.rp-steps button:focus-visible, .rp-speed button:focus-visible { outline-offset: 1px; }
.rp-steps button, .rp-speed button, .rp-pause { transition: background-color 0.15s, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) {
  .rp-steps button:hover, .rp-speed button:not([aria-disabled="true"]):hover, .rp-pause:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
}
.rp-steps button:active, .rp-speed button:not([aria-disabled="true"]):active { transition-duration: 0.08s; background: color-mix(in srgb, currentColor 17%, transparent); }
.rp-pause:active { transform: scale(0.94); transition-duration: 0.08s; background: color-mix(in srgb, currentColor 17%, transparent); }
.rp-speed button[aria-disabled="true"] { background: none; }

@media (prefers-reduced-motion: reduce) {
  .rp *, .rp { animation: none !important; }
  /* the still picture shows scene two; scene one stays readable to screen readers, before it, as in the conversation */
  body.landing .rp .rp-scene1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rp-pause, .rp-speed, .rp-steps, .rp-loading, .rp-think, .rp-caret { display: none !important; }
  .rp-pause:active { transform: none; }
}
.rp-title, .rp-pause { white-space: nowrap; flex: none; }
@media (max-width: 30rem) { .rp-dots { display: none; } .rp-bar { gap: 0.45rem; } }

/* Rotating adjective. The line never wraps; the slot's width eases to each word. */
.hv .hv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.c-hero.hv .hv-ask .hv-gloss > span { display: inline; }
.hv .hv-rot-line { white-space: nowrap; }
/* Where the text column is narrow (a phone, or the two-column layout just past 64rem), the line is always two lines,
   "A system for building" then the word and "web apps.": the longest words fit, and as the words change nothing
   moves up or down. The column is the container, so this follows its width, not the screen's. */
.c-hero.hv .hv-col { container: hv-col / inline-size; }
@container hv-col (max-width: 30rem) { .hv .hv-rot-pre { display: block; } }
.hv .hv-rot { display: inline-block; overflow: hidden; vertical-align: bottom; line-height: inherit; transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.hv .hv-rot-word { display: inline-block; color: var(--hv-accent); transition: transform 0.22s ease-out, opacity 0.22s ease-out; }
.hv .hv-rot-word.is-out { transform: translateY(-0.5em); opacity: 0; }
.hv .hv-rot-word.is-in { transform: translateY(0.5em); opacity: 0; transition: none; }
@media (max-width: 24rem) { .c-hero.hv .hv-ask .hv-gloss { font-size: 0.94em; } }
@media (prefers-reduced-motion: reduce) { .hv .hv-rot, .hv .hv-rot-word { transition: none; } }

/* Sheen on arrival: a broad, soft diagonal highlight glides once across the word, like light on satin.
   It starts and ends on the accent and moves only between tints close to it, so the word stays readable in either theme. */
@media (prefers-reduced-motion: no-preference) {
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hv .hv-rot-word.is-sheen { background: linear-gradient(112deg, light-dark(#1a5f4f, #2fd4ac) 0 28%, light-dark(#24705e, #7fe9cf) 39%, light-dark(#2f6f8a, #c3f3e4) 50%, light-dark(#24705e, #7fe9cf) 61%, light-dark(#1a5f4f, #2fd4ac) 72% 100%) 100% 0 / 340% 100% no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: hv-sheen 1.6s cubic-bezier(0.45, 0, 0.2, 1) 0.1s both; }
  }
}
@keyframes hv-sheen { from { background-position: 100% 0; } to { background-position: 0% 0; } }

/* The replay is at least a fixed, compact height so it always fits on screen beside the hero text, and fills its
   column when the text is taller; the two scenes swap inside it. Nothing scrolls. */
.rp { display: flex; flex-direction: column; flex: 1 1 0; min-height: min(30rem, max(21rem, calc(100svh - 12.5rem))); font-size: 0.8rem; line-height: 1.36; }
.rp-bar { flex: none; padding-block: 0.4rem; }
.rp-stage { flex: 1; min-height: 0; overflow: hidden; }
.rp-stage > * { min-height: 0; }
.rp-session { height: 100%; }
body.landing .rp-log { padding: 0.6rem 0.8rem 0.15rem; gap: 0.32rem; align-content: start; }
.rp-log li { grid-template-columns: 2.7rem minmax(0, 1fr); gap: 0.4rem; }
.rp-who { font-size: 0.62rem; }
.rp-log div > p + .rp-qs { margin-top: 0.15rem; }
body.landing .rp-qs { gap: 0; }
.rp-scene2 { height: 100%; }
.rp-app { flex: 1; min-height: 4.5rem; display: flex; flex-direction: column; width: 66%; margin: 0.45rem auto 0; }
.rp-app-bar { flex: none; padding: 0.22rem 0.55rem; font-size: 0.62rem; }
/* One line, however long the app's address: an ellipsis rather than a second line taken from the picture. */
.rp-app-bar { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.rp-app-bar span { display: inline-block; vertical-align: middle; margin-right: 0.45rem; }
.rp-shot { flex: 1; min-height: 0; height: auto; position: relative; }
.rp-shot img { position: absolute; left: 0; top: 0; }
.rp-cap { flex: none; padding: 0.35rem 0.8rem 0.4rem; font-size: 0.68rem; }
@media (min-width: 64rem) { .hv-b .c-hero-inner { padding-block: clamp(2rem, 5vw, 4rem); } }
@media (max-width: 63.99rem) { .rp { min-height: min(30rem, calc(100svh - 4.5rem)); } }

/* The drawn background (home/hero-bg.js) sits behind the hero only. Without WebGL the CSS gradient stays. */
/* No clipping: hero.js holds the hero's height, and a pane that grows past it overlaps the next section, on top. */
body.site-home .c-hero { position: relative; z-index: 1; isolation: isolate; }
/* The scene is at most one screen tall: a layer the size of the hero holds the canvas, which sticks to the top of
   the screen as a tall hero (a phone's stacked panes) scrolls past, and ends where the hero ends. lvh does not change
   as a phone's toolbars come and go, so the canvas never resizes or jumps; its foot may sit under a toolbar. */
.c-hero .hero-bg-wrap { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.c-hero .hero-bg { position: sticky; top: 0; display: block; width: 100%; height: min(100vh, 100%); height: min(100lvh, 100%); }
.c-hero.nogl .hero-bg-wrap { display: none; }

/* Frosted glass: one pane over the picture, holding the text and the replay. It turns solid where the browser
   cannot blur or the reader asks for less transparency, and stays put under reduced motion. */
.c-hero .hv-pane {
  --g-tint: light-dark(rgba(255, 255, 255, 0.68), rgba(9, 14, 30, 0.56)); --g-solid: light-dark(#fbfaf7, #121a24);
  --g-edge: light-dark(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.16)); --g-shadow: light-dark(rgba(50, 35, 90, 0.35), rgba(0, 0, 0, 0.7));
  --g-rule: light-dark(rgba(27, 31, 36, 0.14), rgba(255, 255, 255, 0.16));
  --g-sat: 1.5; --g-dim: 1;
  background: var(--g-solid); border: 1px solid var(--g-edge);
  box-shadow: 0 30px 60px -32px var(--g-shadow), inset 0 1px 0 var(--g-edge);
  transform: translate3d(calc(var(--gx, 0) * 1px), calc(var(--gy, 0) * 1px), 0);
}
:root[data-theme="dark"] .c-hero .hv-pane { --g-sat: 1.4; --g-dim: 0.8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-hero .hv-pane { --g-sat: 1.4; --g-dim: 0.8; } }
.c-hero .hv-pane { border-radius: 28px; }
.c-hero .hv-col { padding: clamp(1.25rem, 3vw, 2.25rem); }
/* The replay is the right-hand column, not a card: no fill, frame or shadow of its own. */
.c-hero .rp { background: none; border: 0; border-radius: 0; box-shadow: none; }
.c-hero .rp-bar { padding-inline: 1rem 1.1rem; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .c-hero .hv-pane { background: var(--g-tint); -webkit-backdrop-filter: blur(20px) saturate(var(--g-sat)) brightness(var(--g-dim)); backdrop-filter: blur(20px) saturate(var(--g-sat)) brightness(var(--g-dim)); }
}
@media (prefers-reduced-transparency: reduce) { .c-hero .hv-pane { background: var(--g-solid) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; } }
@media (prefers-reduced-motion: reduce) { .c-hero .hv-pane { transform: none; } }

/* Inside the pane nothing is a box of its own. The paste line is a softly tinted band, like a field without a
   border (a little greener while it has focus or has just copied); the replay's caption is marked by a hairline;
   only its app preview keeps a thin window frame, since it shows a browser. */
body.site-home .c-hero .v-soft { background: light-dark(rgba(27, 31, 36, 0.05), rgba(255, 255, 255, 0.06)); border-color: transparent; border-radius: 14px; box-shadow: none; }
body.site-home .c-hero .v-soft:focus-within, body.site-home .c-hero .v-soft.is-copied { background: light-dark(rgba(26, 95, 79, 0.09), rgba(47, 212, 172, 0.11)); border-color: transparent; box-shadow: none; }
.c-hero .rp-bar { border-bottom-color: var(--g-rule); }
.c-hero .rp-cap { background: transparent; border-top: 1px solid var(--g-rule); }
.c-hero .rp-app { box-shadow: none; border: 1px solid var(--g-rule); border-bottom: 0; }

/* The hero's paste line in a box too narrow for the whole URL: a little smaller, as in home.css. */
@container paste (max-width: 18rem) { .hv .hv-paste .pb-line { font-size: 0.94rem; } }
