
.home-story {
  --btn-h: 40px;
  --btn-h-lg: 50px;
  --btn-px: 20px;
  --btn-px-lg: 28px;
  --btn-gap: 8px;
  --btn-arrow-w: 16px;

  --btn-hover: var(--accent-hover);

  --btn-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --btn-dur: 180ms;

  --icon-arrow-right: url("data:image/svg+xml,<svg fill='black' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'><path fill='currentColor' d='M537.4 273l17-17-17-17-168-168-17-17-33.9 33.9 17 17 127 127-430.1 0 0 48 430.1 0-127 127-17 17 33.9 33.9 17-17 168-168z'/></svg>");
}
.home-story .btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--btn-gap);
  height: var(--btn-h); padding: 0 var(--btn-px);
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-core, var(--font-display, inherit));
  font-size: 14px; font-weight: 500; line-height: 1.2;
  white-space: nowrap; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--text-on-accent, var(--white, #fff));
  transition:
    background 150ms var(--btn-ease),
    border-color 150ms var(--btn-ease),
    color 150ms var(--btn-ease),
    scale 150ms var(--btn-ease);
}
.home-story .btn:hover { background: var(--btn-hover); text-decoration: none; }
.home-story .btn:active { scale: 0.975; }
.home-story .btn:disabled,
.home-story .btn[aria-disabled='true'] {
  opacity: .45; cursor: not-allowed; scale: 1;
}
.home-story .btn-lg { height: var(--btn-h-lg); padding: 0 var(--btn-px-lg); font-size: 15.5px; }
.home-story .btn-sm { height: 32px; padding: 0 14px; font-size: 12.5px; }
.home-story .btn-outline {
  background: transparent;
  border-color: var(--line-1, var(--grey-200, rgba(19, 19, 18, 0.14)));
  color: var(--ink-1, var(--text, inherit));
}
.home-story .btn-outline:hover { background: var(--paper-2, var(--grey-50, rgba(19, 19, 18, 0.04))); }
.home-story .btn-inverse { background: var(--surface-inverse, var(--grey-600, #111)); color: var(--text-on-inverse, var(--white, #fff)); }
.home-story .btn-inverse:hover { background: #000; }
.home-story .btn-label {
  display: inline-block;
  transform: translateX(calc((var(--btn-gap) + var(--btn-arrow-w)) / 2));
  transition: transform var(--btn-dur) var(--btn-ease);
}
.home-story .btn-arrow {

  display: inline-block; flex: none;
  width: var(--btn-arrow-w); height: 0.8em;
  background-color: currentColor;
  -webkit-mask: var(--icon-arrow-right) center / contain no-repeat;
  mask: var(--icon-arrow-right) center / contain no-repeat;
  opacity: 0; transform: translateX(-4px);
  transition: opacity var(--btn-dur) var(--btn-ease), transform var(--btn-dur) var(--btn-ease);
}
.home-story .btn:hover .btn-label,
.home-story .btn:focus-visible .btn-label { transform: translateX(0); }
.home-story .btn:hover .btn-arrow,
.home-story .btn:focus-visible .btn-arrow { opacity: 1; transform: translateX(0); }
@media (hover: none) {
.home-story .btn-label { transform: none; }
.home-story .btn-arrow { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
.home-story .btn,
.home-story .btn-label,
.home-story .btn-arrow { transition: none; }
.home-story .btn:active { scale: 1; }
}

/* ═══════════════════════════════════════════════════════════════════
   home.css — the homepage story only. Loads after landing.css, which
   supplies the tokens, nav, footer and buttons.

   Without the `pin` class on <html> (no scripts, or a viewport shorter
   than 620px, or a phone shorter than 780px) every beat is ordinary content in the page. With it, the
   stage is pinned and home.js steps through the beats on scroll.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Not yet in the design system project that landing.css syncs from. */
  --candidate: var(--blue-600);   /* the thing being changed */
  --pass: var(--green-500);
  --mixed: var(--yellow-500);
  --fail: var(--red-600);
  --fail-text: #B3200F;           /* red-600 darkened to clear 4.5:1 on white */
  --ease-move: cubic-bezier(0.32, 0.72, 0, 1);
  --nav-h: 64px;
}

.story ul { margin: 0; padding: 0; list-style: none; }
.story button { font: inherit; letter-spacing: inherit; color: inherit; }
.story :focus-visible, .closing :focus-visible { outline-offset: 2px; }
.story .mono { font-variant-numeric: tabular-nums; }

/* type */
.display {
  font-size: clamp(38px, 4.4vw, 60px); font-weight: var(--heading-weight);
  letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance;
}
/* The hero headline is three phrases. Side by side with the scene, each of the last two takes its own
   line, so the rotating word always ends its line. */
.hl-a, .hl-b, .hl-c { display: block; }
.hl-b, .hl-c { white-space: nowrap; }
/* The rotating word sits in a slot as wide as the longest word (home.js measures it), so no other word in
   the headline moves when it changes. The next word slides in from the right, the way the wind blows. */
.swap { display: inline-block; position: relative; vertical-align: baseline; width: var(--swap-w, auto); white-space: nowrap; color: var(--green-600); clip-path: inset(-0.3em 0); }
.swap-word { display: inline-block; }
.swap-word.is-in { position: absolute; left: 0; right: 0; top: 0; }
.story .h-lg { font-size: clamp(30px, 3.4vw, 46px); font-weight: var(--heading-weight); letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.h-lg + .lede { font-size: 17px; }
.note { font-size: 13px; color: var(--ink-3); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
/* "Book a call" holds back a phone the way the primary button holds back its
   arrow: same slot, same slide, drawn as a mask so it takes the label colour.
   The glyph is the Material Design "call" icon (Apache 2.0). */
:root { --icon-phone: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/></svg>"); }
.btn-icon-phone { height: 1em; -webkit-mask-image: var(--icon-phone); mask-image: var(--icon-phone); }
/* The plane that crosses a button when it is clicked (home.js). */
.btn-flying { position: relative; overflow: hidden; }
.btn-plane { position: absolute; left: 0; top: 50%; width: 28px; height: 14px; margin-top: -7px; pointer-events: none; }
.btn-plane .a { fill: currentColor; opacity: .8; }
.btn-plane .b { fill: currentColor; opacity: .5; }
.btn-plane .c { fill: currentColor; }
.story .hero-ctas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 460px;
  margin-top: 8px;
}
.story .hero-ctas .btn { width: 100%; padding-inline: 14px; }

/* ——— layout: unpinned default ——— */
.story { position: relative; }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 24px; }
.copy { display: grid; gap: 40px; }
.beat-copy { display: grid; gap: 14px; align-content: start; }
.scene { max-width: 720px; }
.slot { max-width: 520px; }
.rail { display: none; }
.decide { display: grid; gap: 20px; margin-top: 6px; }
.decide li { display: grid; grid-template-columns: 104px 1fr auto; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-3); font-size: 15.5px; align-items: baseline; }
.decide li:first-child { border-top-color: var(--line-1); }
.decide li b { font-weight: 500; }
.decide li span { color: var(--ink-2); }
.cta-block { display: grid; gap: 12px; }

/* ——— scene ——— */
.scene-svg { display: block; width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.pl polygon { stroke: var(--ink-1); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pl .far { fill: var(--paper-1); }
.pl .near { fill: var(--paper-0); }
.pl .keel { fill: var(--paper-2); }
.pl.is-candidate .keel { fill: var(--candidate); }
.sc-text { font-family: var(--font-core); font-size: 14px; fill: var(--ink-1); letter-spacing: -0.01em; }
.sc-text.muted { fill: var(--ink-2); }
.sc-text.sm { font-size: 11.5px; }
.sc-text.num { font-family: var(--font-mono); font-size: 13px; }
.sc-trail { fill: none; stroke: var(--ink-4); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.sc-trail.solid { stroke: var(--candidate); stroke-dasharray: none; }
/* The launch: a gale of trace text, the ground, and the sixteen planes that home.js flies into it. */
.gale text { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0; fill: var(--ink-4); white-space: pre; }
.ground { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pin .sc-x { opacity: 0; }
.score { opacity: 0; }
/* Where traces come from. */
.chip { fill: var(--paper-0); stroke: var(--line-2); }
.chip-t { font-family: var(--font-core); font-size: 13px; fill: var(--ink-1); letter-spacing: -0.01em; }
/* On the sources beat the lines themselves are code, each following its own path around the plane. */
.flow text { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0; fill: var(--ink-3); white-space: pre; }
.chip-glyph rect { fill: none; stroke: var(--ink-1); stroke-width: 1.1; }
.chip-glyph .dot { fill: var(--ink-1); }
html:not(.pin) [data-static="off"] { display: none; }

/* ——— flight: the planes keep flying while scroll moves the story on ———
   Steady, wobbling or fluttering by how the candidate scored. The motion sits
   on the inner drawing, so the beat-to-beat moves on the outer group are free. */
.pl { transform-box: fill-box; transform-origin: center; }
.pl-trail { stroke: var(--ink-4); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: opacity 200ms ease-out; }
.stage[data-beat="1"] .pl-trail, .stage[data-beat="2"] .pl-trail, .stage[data-beat="6"] .pl-trail { opacity: 0; }
.wind line { stroke: var(--line-2); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wind > line, .wind > g { opacity: 0; }
/* Some streaks are the models in the air: a logo, a name and version, and a short streak behind. */
.wind g text { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0; fill: var(--ink-4); }
.wind g image { opacity: 0.45; }
/* The hero plane trails three lines of trace instead of one dotted line. */
.hero-code text { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0; fill: var(--ink-3); white-space: pre; }
.stage[data-beat="0"] .pl-trail { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  [data-beh="steady"] > .pl { animation: fly-steady 4.2s ease-in-out var(--fly-delay, 0s) infinite alternate; }
  [data-beh="wobble"] > .pl { animation: fly-wobble 2.6s ease-in-out var(--fly-delay, 0s) infinite alternate; }
  [data-beh="flutter"] > .pl { animation: fly-flutter 5.2s ease-in-out var(--fly-delay, 0s) infinite; }
  /* After the launch, the planes that stay up but fly badly: rolling hard, or porpoising up and down. */
  .fate-wobble > .pl { animation: fly-wobble-big 1.3s ease-in-out infinite alternate; }
  .fate-wave > .pl { animation: fly-wave 2.4s ease-in-out infinite alternate; }
  .pl-trail { animation: fly-trail 0.9s linear infinite; }
  .pin .wind > line, .pin .wind > g { animation: fly-wind var(--d, 4s) linear var(--o, 0s) infinite; }
  .pin .hero-code text, .pin .gale text { animation: code-scroll var(--d, 20s) linear infinite; }
}
@keyframes fly-steady { from { transform: translateY(-1.5px); } to { transform: translateY(1.5px); } }
@keyframes fly-wobble { from { transform: translateY(-5px) rotate(-4deg); } to { transform: translateY(5px) rotate(5deg); } }
@keyframes fly-wobble-big { from { transform: translateY(-7px) rotate(-15deg); } to { transform: translateY(7px) rotate(14deg); } }
@keyframes fly-wave { from { transform: translateY(-44px) rotate(-9deg); } to { transform: translateY(44px) rotate(9deg); } }
@keyframes fly-flutter {
  0% { transform: translateY(-8px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  30% { transform: translateY(0) rotate(-9deg); }
  50% { transform: translateY(8px) rotate(8deg); }
  70% { transform: translateY(15px) rotate(-8deg); }
  88% { opacity: 1; }
  100% { transform: translateY(22px) rotate(6deg); opacity: 0; }
}
@keyframes code-scroll { to { transform: translateX(var(--w)); } }
@keyframes fly-trail { to { stroke-dashoffset: -16; } }
@keyframes fly-wind { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(-560px); opacity: 0; } }

/* ring and flights */
.flight { fill: none; stroke: var(--ink-4); stroke-width: 1.25; stroke-dasharray: 2 5; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke 200ms ease-out; }
.flight.is-out, [data-strict] .flight.is-tight { stroke: var(--fail); stroke-dasharray: 5 4; }
.flight.is-picked { stroke: var(--ink-1); stroke-dasharray: none; stroke-width: 1.5; }
.ring-half { fill: none; stroke: var(--ink-1); stroke-width: 3; vector-effect: non-scaling-stroke; }
.ring { transition: transform 700ms var(--ease-move); }
[data-strict] .ring.is-edited { transform: scale(0.62); }
.hoop-label { font-family: var(--font-core); font-size: 13px; fill: var(--ink-2); letter-spacing: -0.01em; }
.hoop-label.strong { font-weight: 500; fill: var(--ink-1); }
/* The course: every hoop is an eval. Hover, focus or tap one and the card shows it. */
.hoop-hit { cursor: pointer; outline: none; }
.hoop-hit .hit { fill: transparent; stroke: none; }
.ring.is-on .ring-half { stroke: var(--green-600); stroke-width: 5; }
.hoop-hit.is-on .hoop-label { fill: var(--green-600); font-weight: 500; }
.hoop-hit:focus-visible .ring-half { stroke: var(--focus-ring); }
.hoop-label.yours { font-weight: 500; fill: var(--ink-1); }
.hoop-label.cand { font-size: 12px; }
.miss path { fill: none; stroke: var(--fail); stroke-width: 1.75; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.miss { opacity: 0; transition: opacity 150ms ease-out; }
.miss.is-hit { opacity: 1; }
.flight.is-gone { opacity: 0; transition: opacity 300ms ease-out; }

/* ——— evidence card ——— */
.ev { background: var(--paper-0); border: 2px solid var(--green-600); border-radius: 10px; padding: 13px; display: grid; gap: 10px; text-align: left; }
.ev-src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--ink-3); }
.ev-tag { font-size: 12.5px; font-weight: 500; color: var(--ink-1); border: 1px solid var(--line-1); border-radius: 4px; padding: 2px 7px; }
.ev-tag.yours { background: var(--ink-1); color: var(--text-on-inverse); }
.ev-title { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; text-wrap: balance; }
.ev-edited { font-size: 13px; color: var(--ink-2); }
.ev-out { font-size: 14px; color: var(--ink-2); line-height: 1.4; min-height: 2.8em; }
.ev-label { font-size: 13px; color: var(--ink-3); margin-bottom: 3px; }
.ev-label .verdict { margin-left: 6px; }
.ev-text { font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.ev-req { min-height: 2.9em; }
.ev-resp { min-height: 4.4em; }
.ev-tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; padding: 2px; gap: 2px; background: var(--paper-1); margin-bottom: 8px; }
.ev-tab { border: 0; background: transparent; border-radius: 4px; padding: 6px 12px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; min-height: 32px; }
.ev-tab[aria-pressed="true"] { background: var(--paper-0); color: var(--ink-1); font-weight: 500; box-shadow: 0 1px 2px rgba(19,19,18,.12); }
.ev-tab[data-cand="new"][aria-pressed="true"] { color: var(--candidate); }
.ev-crit { display: grid; gap: 6px; }
.ev-crit li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-3); border-radius: 6px; font-size: 14.5px; line-height: 1.3; }
.ev-crit small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.verdict { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; }
.verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.verdict.pass { color: var(--green-600); }
.verdict.fail { color: var(--fail-text); }
.ev-add {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px dashed var(--ink-4); border-radius: 6px;
  background: transparent; font-size: 14.5px; font-weight: 500; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  transition: background 150ms ease-out, scale 150ms var(--ease-move);
}
.ev-add:hover { background: var(--paper-1); }
.ev-add:active { scale: 0.985; }
.ev-add span:last-child { color: var(--ink-3); font-weight: 400; font-size: 13px; }
.ev-remove { border: 0; background: transparent; padding: 0; font-size: 12px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ev [hidden] { display: none !important; }
/* The tabs and the add button need scripts. */
html:not(.js) .ev-add, html:not(.js) .ev-remove { display: none; }

.sc-below { max-width: 500px; margin: 4px auto 0; display: grid; gap: 8px; }
.tally { display: grid; gap: 6px; }
.tally-row { display: grid; grid-template-columns: 100px 1fr 30px; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.tally-row i { display: block; height: 6px; border-radius: 3px; background: var(--line-3); overflow: hidden; }
.tally-row i span { display: block; height: 100%; background: var(--ink-4); transform-origin: left center; transition: transform 500ms var(--ease-move); }
.tally-row b { font-weight: 400; text-align: right; }
.tally[data-kind="course"] .tally-row { grid-template-columns: 216px 1fr 30px; }
.tally-row.is-out { color: var(--ink-4); }
.tally-row.is-lead { color: var(--ink-1); font-weight: 500; }
.tally-row.is-lead i span { background: var(--candidate); }
.ev-status { font-size: 12.5px; color: var(--ink-3); }

/* ——— closing band ——— */
.closing { padding-top: 96px; padding-bottom: 72px; }
.close-band { background: var(--green-600); color: var(--text-on-inverse); border-radius: 12px; padding: 44px 48px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.close-band h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: var(--heading-weight); letter-spacing: -0.03em; line-height: 1.2; }
.close-band p { color: rgba(244,242,236,.86); margin-top: 8px; max-width: 34em; }
.close-band .btn-outline { border-color: rgba(244,242,236,.5); color: var(--text-on-inverse); }
.close-band .btn-outline:hover { background: rgba(244,242,236,.1); }
.close-band .btn-on-ink { background: var(--paper-1); color: var(--ink-1); }
.close-band .btn-on-ink:hover { background: #fff; }

/* ══════════ pinned stage ══════════ */
.pin .nav { position: sticky; top: 0; z-index: 5; background: var(--paper-0); }
.pin .story { height: calc(100dvh + 6 * 85vh); }
.pin .stage { position: sticky; top: var(--nav-h); height: calc(100dvh - var(--nav-h)); overflow: hidden; }
.pin .stage-grid {
  height: 100%; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto;
  column-gap: 48px; row-gap: 24px; align-content: start; padding-top: clamp(20px, 7vh, 72px); padding-bottom: 40px;
}
.pin .copy { grid-column: 1; grid-row: 1; gap: 0; align-items: start; position: relative; }
.pin .slot { grid-column: 1; grid-row: 2; display: grid; align-items: start; position: relative; max-width: none; }
.pin .scene { grid-column: 2; grid-row: 1 / span 2; align-self: start; max-width: none; }
.pin .copy > *, .pin .slot > *, .pin .sc-below { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 180ms ease-in, visibility 0s linear 180ms; }
.pin .sc-below { grid-area: auto; }
.pin .copy > .on, .pin .slot > .on, .pin .sc-below.on { opacity: 1; visibility: visible; transition: opacity 300ms ease-out 120ms, visibility 0s; }
/* The card's slot is an empty box on most beats. On tall screens it sits over the right half of the
   centred copy, where it would swallow hover and clicks meant for the buttons underneath. */
.pin .slot { pointer-events: none; }
.pin .slot > .on { pointer-events: auto; }
/* Only the active beat takes space, so the column is as tall as what is showing. */
.pin .copy > :not(.on), .pin .slot > :not(.on) { position: absolute; inset: 0 0 auto 0; pointer-events: none; }
.pin .sc-plane, .pin .sc-fade { transition: transform 700ms var(--ease-move), opacity 300ms ease-out; }
.pin .sc-fade { opacity: 0; }
.pin .sc-fade.on { opacity: 1; }
.pin .no-anim .sc-plane, .pin .no-anim .sc-fade, .pin .no-anim .copy > *, .pin .no-anim .slot > *, .pin .no-anim .sc-below { transition: none !important; }
.pin .rail { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line-3); }
.pin .rail span { display: block; height: 100%; background: var(--ink-1); transform-origin: left center; transform: scaleX(0); }
@media (max-height: 760px) and (min-width: 961px) {
  .pin .ev-label, .pin .ev-crit small { display: none; }
  .pin .ev-crit li, .pin .ev-add { min-height: 40px; }
}

/* Tall viewports (portrait and large monitors): the side-by-side layout is
   sized for about 800px of height and would leave the lower half empty. Copy
   and card take the top row, and the scene grows to fill the rest. The top
   row has a fixed height so the scene does not move between beats. */
@media (min-height: 1100px) and (min-width: 961px) {
  .pin .stage-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 480px auto; align-content: safe center; padding-top: 40px; }
  .pin .copy { grid-column: 1; grid-row: 1; }
  .pin .slot { grid-column: 2; grid-row: 1; }
  .pin .scene { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: min(100%, calc((100dvh - var(--nav-h) - 790px) * 1.6)); }
  /* home.js closes the space a short beat leaves in the top row: see fit(). */
  .pin .copy, .pin .slot { transform: translateY(var(--copy-y, 0px)); transition: transform 700ms var(--ease-move); }
  .pin .scene { transform: translateY(var(--scene-y, 0px)) scale(var(--scene-s, 1)); transform-origin: 50% 0; transition: transform 700ms var(--ease-move); }
  .pin .no-anim .copy, .pin .no-anim .slot, .pin .no-anim .scene { transition: none; }
  /* Copy is centred over the scene on every beat except the two that put the
     evidence card in the right half. Left-aligned, that half sat empty. */
  .pin .stage:not([data-beat="4"]):not([data-beat="5"]) .copy { grid-column: 1 / -1; }
  .pin .stage:not([data-beat="4"]):not([data-beat="5"]) .beat-copy { justify-items: center; text-align: center; }
  .pin .stage:not([data-beat="4"]):not([data-beat="5"]) .beat-copy .lede { max-width: 40em; }
  /* Centred: three lines, with the rotating word alone on the middle one so it stays centred whatever its length. */
  .pin .hero-copy .display { font-size: clamp(46px, 4.3vw, 64px); max-width: none; }
  .pin .hero-copy .hl-a, .pin .hero-copy .hl-b, .pin .hero-copy .hl-your { display: inline; }
  .pin .hero-copy .hl-b { white-space: normal; }
  .pin .hero-copy .swap { display: block; margin-inline: auto; text-align: center; }
  .pin .decide { width: 100%; max-width: 520px; text-align: left; }
  .pin .decide .ctas { justify-content: center; }
  .pin .decide .note { text-align: center; }
}

/* ——— responsive ——— */
@media (max-width: 960px) {
  .close-band { grid-template-columns: 1fr; padding: 30px 26px; }
  .pin .stage-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; row-gap: 14px; padding-top: 20px; padding-bottom: 20px; }
  .pin .copy, .pin .slot, .pin .scene { grid-column: 1; grid-row: auto; }
  .beat-copy { gap: 10px; }
  .display { font-size: clamp(30px, 8.4vw, 44px); }
  .lede, .h-lg + .lede { font-size: 15.5px; line-height: 1.45; }
}
@media (max-width: 560px) {
  .story .wrap, .closing.wrap { padding-left: 18px; padding-right: 18px; }
  .ev-text { font-size: 14px; }
  .ev-crit li, .ev-add { font-size: 13.5px; }
  .decide li { grid-template-columns: 88px 1fr auto; font-size: 14px; }
  .pin .ev-status, .pin .ev-label, .pin .ev-crit small { display: none; }
  .pin .ev-resp { min-height: 0; }
  .pin .ev-tabs { margin-bottom: 6px; }
  .pin .tally { gap: 3px; }
  .story .hero-ctas .btn-lg { height: 44px; padding-inline: 8px; font-size: clamp(12px, 3.5vw, 14.5px); }
  /* Phone: the card beats need the room, so drop the paragraph and crop the empty bands of the scene. */
  .pin .stage[data-beat="4"] .beat-copy .lede, .pin .stage[data-beat="5"] .beat-copy .lede { display: none; }
  .pin .stage[data-beat="4"] .scene-svg, .pin .stage[data-beat="5"] .scene-svg { margin-block: -6%; }
  .pin .stage[data-beat="0"] .scene-svg, .pin .stage[data-beat="6"] .scene-svg { margin-block: -14%; }
}

@media (max-width: 350px) {
  .story .hero-ctas .agent-setup { padding-inline: 3px; }
  .story .agent-setup-labels > span { gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .ring, .sc-plane, .sc-fade, .tally-row i span, .flight, .ev-add,
  .pin .copy > *, .pin .slot > *, .pin .sc-below, .pin .sc-plane, .pin .sc-fade { transition: none !important; }
  .pin .copy, .pin .slot, .pin .scene { transition: none !important; }
}

/* Keep the contact action legible on the closing ink band. */
.home-story .btn-on-ink { background: var(--paper-0); color: var(--ink-1); }
.home-story .btn-on-ink:hover { background: var(--paper-2); }

/* SVG buttons need an explicit outline in Chromium. */
.home-story .hoop-hit:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }

/* Keep the example disclosure visible when phone copy is condensed. */
.pin .home-story .ev-status { display: block; font-size: 11px; }

/* Without scripts the setup button cannot copy; signup/contact stay available. */
html:not(.js) .home-story .agent-setup { display: none; }

/* Keep the example link available in pinned and flowing layouts. */
.home-story .nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper-0);
}
.home-story #how, .home-story #story-start { scroll-margin-top: var(--nav-h, 72px); }
.home-story .home-action { display: inline-flex; white-space: nowrap; }
.home-story .home-call { font-size: 0.85rem; white-space: nowrap; }
.home-story #plans { margin-top: 0; border-top: 0; padding-block: clamp(48px, 7vw, 88px) 0; }
.home-story #plans .h-head { margin-bottom: 28px; }
.home-story #plans h2, .home-faq h2 { text-wrap: balance; }

.home-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.home-plan-grid .h-plan {
  padding: clamp(20px, 2.6vw, 32px);
  gap: 16px;
  border-radius: 16px;
  background: var(--paper-0);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.09), 0 2px 4px rgb(0 0 0 / 0.03),
    0 8px 18px -9px rgb(0 0 0 / 0.12);
}
.home-plan-grid .h-plan:first-child { background: #f3f8f5; }
.home-plan-grid .h-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.08;
}
.home-plan-grid .h-price span { font-size: 14px; }
.home-plan-grid .h-plan .btn { align-self: stretch; min-height: 44px; }
.home-plan-grid .h-plan p:not(.h-price) {
  padding-top: 14px;
  border-top: 1px solid var(--line-3);
}

.home-story #faq { margin-top: 0; border-top: 0; padding-block: clamp(32px, 5vw, 64px); }
.home-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.65fr);
  gap: clamp(20px, 5vw, 64px);
  align-items: start;
  padding: clamp(20px, 4vw, 48px);
  border-radius: 16px;
  background: var(--paper-1);
}
.home-faq h2 {
  font-size: clamp(24px, 3.3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.home-faq-list { border-top: 1px solid var(--line-2); }
.home-faq details { border-bottom: 1px solid var(--line-2); }
.home-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 12px 2px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary:hover { color: var(--green-600); }
.home-faq summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  margin-right: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.home-faq details[open] summary::after { transform: rotate(225deg); }
.home-faq details p {
  max-width: 56ch;
  padding: 0 30px 18px 2px;
  color: var(--ink-2);
}
.home-faq details p a { text-decoration: underline; }

@media (max-width: 720px) {
  .home-plan-grid, .home-faq { grid-template-columns: minmax(0, 1fr); }
  .home-faq summary { min-height: 54px; }
}

@media (max-width: 650px) {
  .home-story .nav .btn, .home-story .nav-signin { display: none; }
  .home-story .nav-row { gap: 0.65rem; }
  .home-story .nav .wordmark img { max-width: 105px; }
}
