/* sections.css: the shared section set (plan 2026-11-09-2150 U5, R5; KTD4, KTD5). Markup in lib/site/parts/sections.ts,
   usage in docs/site-relaunch/SECTIONS.md. Home's layouts, copied from home.css (and For Agencies' floor, How It Works'
   chapters, clean.css's said-by) under the `sx-` prefix. Every selector here names an `sx-` class, and no page outside this
   set prints one, so nothing here can restyle Home or any page built before it (lib/site/__tests__/sections.test.ts).
   Linked on every page after the page's own sheets and before relaunch.css (SitePage.tsx, SiteChrome.tsx). */

/* ---------- shared pieces: the host, the draft card, the said-by line ---------- */
.sx-host { margin: 0; display: grid; justify-items: center; gap: 10px; }
.sx-host__says { justify-self: start; }
.sx-host__uwee { width: min(380px, 100%); }
.sx-host__role { font-family: var(--ui); font-size: clamp(.9rem, .85rem + .2vw, 1rem); font-weight: 800; line-height: 1.2; text-align: center; color: var(--paper); background: var(--navy); border-radius: 999px; padding: 9px 20px; max-width: 100%; width: fit-content; justify-self: center; }
[data-ground="navy"] .sx-host__role, [data-ground="ink"] .sx-host__role { color: var(--ink); background: var(--paper); }

.sx-draft { position: relative; background: #fffdf8; color: var(--ink); border-radius: 10px; box-shadow: 0 24px 60px rgba(17, 22, 39, .3); padding: 20px 22px; font-size: .95rem; line-height: 1.45; }
.sx-draft p { margin: 0 0 .6em; max-width: none; }
.sx-draft .sx-draft__head { margin-bottom: 12px; font-family: var(--ui); font-size: .8rem; color: var(--ink-3); }
.sx-draft__line--struck del { color: var(--ink-3); text-decoration: line-through; text-decoration-color: #c8322b; text-decoration-thickness: 3px; }
.sx-draft__note { font-family: var(--ui); font-size: .8rem; color: #b22a24; }
.sx-draft .sx-draft__source { font-family: var(--ui); font-size: .8rem; color: var(--ink-3); }
.sx-draft .sx-draft__sign { margin: 14px 0 0; padding-top: 10px; border-top: 1px dashed rgba(21, 23, 28, .2); font-family: var(--ui); font-size: .85rem; font-weight: 700; color: #1d7a52; }

.sx-said { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; margin: 14px 0 0; }
.sx-said__uwee { width: 84px; height: 100px; display: flex; align-items: flex-end; justify-content: center; }
.sx-said__uwee img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.sx-said__uwee .shadow { display: none; }
.sx-said p { margin: 0; font-size: 1.05rem; }
.sx-said p > span { display: block; font-family: var(--ui); font-size: .85rem; font-weight: 700; color: var(--muted); }

/* The step number (build nine; the editor's rows asking numbers to match How It Works' "Follow one draft through the loop."):
   the look of that section's numbers (site.css .steps li .n + how.css .steplog 48px + relaunch.css 20), as one class any
   numbered list prints on its number span. A row marked .is-on (the step that is playing) turns its number amber, as there.
   The list item gives it a 48px column and centres it (the class sets no grid of its own). */
.sx-num { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-sizing: border-box; background: var(--card, #fff); border: 1px solid var(--rule, rgba(21, 23, 28, .12)); color: var(--fg, var(--ink)); font-family: var(--display); font-size: 1.05rem; font-weight: 700; line-height: 1; letter-spacing: 0; font-variant-numeric: normal; }
.is-on > .sx-num { background: var(--amber); border-color: var(--amber); color: var(--navy); }

/* ---------- 1. scene: Home's hero (home.css 1, site.css S2). The picture stops at about 60% of a desktop screen
   so the headline and its button sit on the first screen (plan call 1); a phone shows the whole frame. ---------- */
.sx-scene { position: relative; display: grid; overflow: clip; }
.sx-scene__art { position: relative; width: 100%; aspect-ratio: 1672 / 941; overflow: clip; contain: paint; background: var(--navy); }
.sx-scene__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--sx-focus, 50% 45%); }
.sx-scene__band { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px 40px; align-items: end; padding: clamp(24px, 4vh, 44px) 0 clamp(22px, 3.4vh, 36px); }
.sx-scene__head > :is(h1, h2, h3) { max-width: 18ch; margin: 0; color: var(--fg); font-size: clamp(2.3rem, 4.6vw, 4.2rem); font-weight: 700; }
.sx-scene__head > .label { margin: 0 0 10px; }
.sx-scene__side > .lede { max-width: 30ch; margin: 0 0 14px; color: var(--muted); font-size: clamp(1.15rem, 1.8vw, 1.6rem); }
.sx-scene--host .sx-scene__head > .lede { max-width: 46ch; margin: 14px 0; color: var(--muted); }
.sx-scene--host .sx-scene__side { display: grid; justify-items: end; }
/* the optional text link under the doors (sceneHero and crewEnding `link`): one quiet line, the same weight on every page.
   With it the side runs a line longer, so the headline sits level with the lede instead of at the band's foot. */
.sx-scene__link { margin: 14px 0 0; font-weight: 600; }
.sx-scene__link a { color: var(--fg); }
@media (min-width: 861px) { .sx-scene__band:has(.sx-scene__link) { align-items: start; } }
.sx-host--band .sx-host__uwee { width: min(240px, 100%); }
/* Build five SW9: a band's words with a crew member beside them ("Try it free", plans). The figure stays small so the
   band stays slim: words left, figure right from 861 px; on a phone the figure follows the words. */
.sx-beside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 20px clamp(28px, 4vw, 56px); align-items: center; }
.sx-beside__copy { min-width: 0; }
.sx-host--beside { gap: 8px; }
.sx-host--beside .sx-host__uwee { width: min(190px, 100%); }
.sx-host--below { margin-top: clamp(20px, 2.6vw, 32px); }
@media (max-width: 860px) {
  .sx-beside { grid-template-columns: 1fr; }
  .sx-host--beside .sx-host__says { justify-self: center; }
  .sx-host--beside .sx-host__uwee { width: min(150px, 44vw); }
}
.sx-scene--small .sx-scene__head > :is(h1, h2, h3) { font-size: clamp(2.1rem, 4vw, 3.6rem); }
@media (min-width: 861px) {
  .sx-scene--full .sx-scene__art { max-height: 58svh; }
  .sx-scene--small .sx-scene__art { aspect-ratio: 1672 / 560; max-height: 36svh; }
}
@media (max-width: 860px) {
  .sx-scene__band { grid-template-columns: 1fr; padding: 24px 0 22px; }
  .sx-scene__side > .lede { max-width: none; font-size: 1.1rem; }
  .sx-scene--host .sx-scene__side { justify-items: center; }
  .sx-host--band .sx-host__uwee { width: min(180px, 52vw); }
}

/* ---------- 2. host-desk: Home's "What Jinn is" (home.css 1b) ---------- */
.sx-desk__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.sx-desk--host-left .sx-desk__grid { grid-template-columns: .75fr 1.25fr; }
.sx-desk--host-left .sx-host { order: -1; }
.sx-desk__copy > :is(h1, h2, h3) { max-width: 18ch; margin-top: 8px; }
.sx-desk__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: clamp(18px, 2.6vw, 30px) 0; }
.sx-desk__card { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--amber); border-radius: var(--radius); padding: 20px 22px 22px; box-shadow: 0 1px 0 rgba(21, 23, 28, .04), 0 10px 28px -18px rgba(17, 22, 39, .28); }
.sx-desk__card > :is(h2, h3, h4) { font-family: var(--ui); font-size: .95rem; font-weight: 800; margin: 0 0 8px; color: var(--amber-ink); }
[data-ground="navy"] .sx-desk__card > :is(h2, h3, h4), [data-ground="ink"] .sx-desk__card > :is(h2, h3, h4) { color: var(--amber-hi); }
.sx-desk__card p { margin: 0; font-size: 1.04rem; line-height: 1.55; }
.sx-desk__payoff { margin: clamp(26px, 3.4vw, 40px) 0 0; font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.15; max-width: 24ch; }
.sx-desk__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 16px 0 0; font-weight: 600; }
@media (max-width: 860px) {
  .sx-desk__grid, .sx-desk--host-left .sx-desk__grid { grid-template-columns: 1fr; }
  .sx-desk--host-left .sx-host { order: 0; }
  .sx-desk .sx-host__uwee { width: min(240px, 64%); }
  .sx-desk .sx-host__says { justify-self: center; }
}

/* ---------- 3. loop: Home's ring (home.css 3), drawn still ---------- */
.sx-loop__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.sx-loop__ring { position: relative; aspect-ratio: 1; width: min(100%, 560px); justify-self: center; }
.sx-loop__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sx-loop__track { fill: none; stroke: #9db4e0; stroke-width: 6; }
.sx-loop__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44%; text-align: center; }
.sx-loop__center b { display: block; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.7rem); }
.sx-loop__center span { font-size: .85rem; }
.sx-loop__node { position: absolute; width: 20%; transform: translate(-50%, -50%); display: grid; justify-items: center; text-align: center; }
.sx-loop__uwee { width: 100%; }
.sx-loop__tag { display: inline-block; margin-top: 4px; padding: 3px 9px; border-radius: 999px; background: var(--pink); color: #2a1420; font-size: .8rem; font-weight: 600; line-height: 1.3; }
.sx-loop__steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 4px; }
.sx-loop__steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 12px; }
.sx-loop__steps li b { font-family: var(--head); font-size: 1.15rem; }
.sx-loop__steps li p { margin: 0; font-size: .98rem; color: var(--muted); }
.sx-loop__n { font-size: .9rem; font-weight: 700; color: var(--muted); }
.sx-loop__mini { display: none; }
@media (max-width: 860px) {
  .sx-loop__grid { grid-template-columns: 1fr; }
  .sx-loop__ring { display: none; }
  .sx-loop__steps li:has(.sx-loop__mini) { grid-template-columns: 24px 64px 1fr; align-items: center; }
  .sx-loop__mini { display: inline-block; width: 64px; }
  .sx-loop__mini .shadow { display: none; }
}

/* ---------- 4. draft-scroll: Home's bench (home.css 4), as a rail that snaps per stop; no script ---------- */
.sx-scroll__head > :is(h1, h2, h3) { max-width: 22ch; }
.sx-scroll__note { margin: 6px 0 0; }
.sx-scroll__rail { list-style: none; margin: clamp(20px, 3vw, 32px) 0 0; padding: 0 var(--gutter) 14px; display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scroll-padding-inline: var(--gutter); }
.sx-scroll__stop { flex: 0 0 min(1040px, 86vw); scroll-snap-align: start; }
.sx-scroll__scene { position: relative; aspect-ratio: 1672 / 941; border-radius: var(--radius); overflow: hidden; background: var(--studio-2); }
.sx-scroll__scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-scroll__scene > .sx-draft { position: absolute; right: 4%; bottom: 6%; width: min(360px, 44%); }
.sx-scroll__cap { margin: 12px 4px 0; max-width: 70ch; font-size: 1rem; color: var(--muted); }
.sx-scroll__cap b { margin-right: 4px; font-family: var(--head); color: var(--fg); }
@media (prefers-reduced-motion: no-preference) { .sx-scroll__rail { scroll-behavior: smooth; } }
@media (max-width: 860px) {
  .sx-scroll__scene { aspect-ratio: auto; overflow: visible; background: none; }
  .sx-scroll__scene > img { position: relative; inset: auto; height: auto; aspect-ratio: 1672 / 941; border-radius: var(--radius); }
  .sx-scroll__scene > .sx-draft { position: relative; right: auto; bottom: auto; width: auto; margin: -28px 12px 0; padding: 14px 16px; font-size: .88rem; }
}

/* ---------- 5. work-strip: For Agencies' "What the crew hands back"; a grid that never leaves one card alone ---------- */
.sx-strip__note { margin: 6px 0 0; }
.sx-strip__list { list-style: none; margin: clamp(20px, 3vw, 32px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.sx-strip__list[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sx-strip__list[data-count="3"], .sx-strip__list[data-count="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sx-strip__list[data-count="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sx-strip__list[data-count="5"] > .sx-strip__piece { grid-column: span 2; }
.sx-strip__list[data-count="5"] > .sx-strip__piece:nth-child(-n+2) { grid-column: span 3; }
.sx-strip__list[data-count="7"] { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.sx-strip__list[data-count="7"] > .sx-strip__piece { grid-column: span 4; }
.sx-strip__list[data-count="7"] > .sx-strip__piece:nth-child(-n+4) { grid-column: span 3; }
.sx-strip__piece figure { margin: 0; display: grid; gap: 10px; }
.sx-strip__pic { background: #fff; border-radius: 12px; padding: 6px; box-shadow: var(--shadow); }
.sx-strip__pic img { width: 100%; height: auto; border-radius: 8px; }
.sx-strip__piece figcaption { display: grid; gap: 4px; font-size: .92rem; line-height: 1.4; }
.sx-strip__kind { font-family: var(--ui); font-size: .78rem; font-weight: 700; color: var(--muted); }
.sx-strip__piece figcaption b { font-family: var(--head); font-size: 1.05rem; }
.sx-strip__why { color: var(--muted); }
.sx-strip__by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-family: var(--ui); font-size: .8rem; color: var(--muted); }
.sx-strip__face { width: 28px; }
.sx-strip__face .shadow { display: none; }
@media (max-width: 1000px) {
  .sx-strip__list[data-count] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-strip__list[data-count] > .sx-strip__piece, .sx-strip__list[data-count] > .sx-strip__piece:nth-child(n) { grid-column: auto; }
}
/* Build three U12 (specs/templates.md part 5): the strip never scrolls sideways. Phones keep the two-column grid
   above, each piece at its natural ratio; under 360 px it is one column. */
@media (max-width: 359px) {
  .sx-strip__list[data-count] { grid-template-columns: minmax(0, 1fr); }
}

/* Plain job first (R55): the caption form `jobCaption()` prints, the job in the ui face, the name muted after a dot. */
.sx-job { font-family: var(--ui); font-size: .88rem; line-height: 1.4; }
.sx-job b { font-weight: 700; color: var(--fg); }
.sx-job__name { color: var(--muted); }
.sx-job__name::before { content: "\00B7"; margin: 0 .4em; color: var(--muted); }

/* ---------- 6. record-card: Home's feature plate with the record sheet over its foot (home.css 6) ---------- */
.sx-record__note { margin: 6px 0 0; }
.sx-record__grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; align-items: start; margin-top: clamp(20px, 3vw, 32px); }
.sx-record__plate-col { min-width: 0; }
.sx-record__plate { position: relative; aspect-ratio: 1672 / 941; overflow: hidden; border-radius: var(--radius); background: var(--studio-2); }
.sx-record__plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-record__sheet { position: relative; z-index: 2; width: min(460px, 64%); margin: -132px 3% 0 auto; background: #fffdf8; color: var(--ink); border-radius: 10px; box-shadow: 0 18px 44px rgba(17, 22, 39, .28); padding: 18px 22px 20px; font-size: 1rem; line-height: 1.45; }
.sx-record__kicker { margin: 0 0 8px; font-family: var(--ui); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.sx-record__name { margin: 0 0 10px; font-family: var(--head); font-size: 1.3rem; line-height: 1.2; }
.sx-record__rows { margin: 0; display: grid; gap: 10px; }
.sx-record__rows > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; padding-top: 10px; border-top: 1px solid rgba(21, 23, 28, .1); }
.sx-record__rows > div:first-child { padding-top: 0; border-top: 0; }
.sx-record__rows dt { font-family: var(--ui); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.sx-record__rows dd { margin: 0; }
.sx-record__sw { display: inline-block; width: 26px; height: 26px; margin-right: 6px; border-radius: 6px; border: 1px solid rgba(21, 23, 28, .15); vertical-align: middle; }
.sx-record__side > :is(h2, h3, h4) { font-size: 1.6rem; }
@media (max-width: 860px) {
  .sx-record__grid { grid-template-columns: 1fr; }
  .sx-record__sheet { width: auto; margin: -36px 12px 0; padding: 16px 16px 18px; }
  .sx-record__rows > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- 7. navy-table: Home's receipts (home.css 7) ---------- */
.sx-trust__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.sx-trust--solo .sx-trust__grid { grid-template-columns: minmax(0, 1fr); }
.sx-trust--solo .sx-trust__copy { max-width: 920px; }
.sx-trust__host { margin: 0; padding-top: 20px; display: grid; justify-items: center; gap: 12px; }
.sx-trust__uwee { width: min(420px, 100%); }
.sx-trust__said { max-width: 24ch; margin: 10px 0 20px; font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.15; color: var(--fg); }
.sx-trust__table { margin-top: 24px; }
.sx-trust__table th, .sx-trust__table td { border-color: var(--rule); }
.sx-trust__note { margin: 14px 0 0; }
/* Build nine (Sarah edOTNlcXWXGs, the docs page's #errors; ruling 1, so every solo trust band): under a table the note
   runs the table's width instead of stopping at site.css's 62ch paragraph measure. */
.sx-trust--solo .sx-trust__table ~ .sx-trust__note { max-width: none; }
@media (max-width: 860px) {
  .sx-trust__grid { grid-template-columns: 1fr; }
  .sx-trust__uwee { width: min(280px, 72vw); }
}

/* ---------- 8. film: Home's Off the Clock (home.css 7, home-page.css 48) ---------- */
.sx-film__wide { width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sx-film__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin-bottom: 16px; }
.sx-film__head > :is(h1, h2, h3) { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.sx-film__head > .lede, .sx-film__head > .label { margin: 0; max-width: 60ch; color: var(--muted); }
.sx-film__frame { position: relative; aspect-ratio: var(--sx-ratio, 16 / 9); border-radius: var(--radius); overflow: hidden; background: #000; }
.sx-film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-film__frame.is-sound .sx-film__video { object-fit: contain; }
.sx-film__sound { position: absolute; right: 18px; bottom: 18px; z-index: 2; }
.sx-film__sound[hidden] { display: none; }
@media (max-width: 860px) {
  .sx-film__wide { width: 100%; }
  .sx-film__head { padding-inline: var(--gutter); }
  .sx-film__frame { border-radius: 0; }
  .sx-film__sound { right: 12px; bottom: 12px; }
}

/* ---------- 9. crew-ending: gone (plan 2026-11-11-2305 U9); every page ends on the closing band (closing.css) ---------- */

/* ---------- 10. crew-desk: For Agencies' "Watch the floor" ---------- */
.sx-floor__plate { position: relative; aspect-ratio: 1672 / 941; margin-top: clamp(20px, 3vw, 32px); overflow: hidden; border-radius: var(--radius); background: var(--studio-2); }
.sx-floor__plate > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-floor__mount { position: absolute; right: 4%; top: 6%; z-index: 2; width: min(36%, 420px); margin: 0; overflow: hidden; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(17, 22, 39, .25); }
.sx-floor__mount img { width: 100%; height: auto; }
.sx-floor__mount figcaption { padding: 8px 10px; font-family: var(--ui); font-size: .78rem; color: var(--ink-2); }
.sx-floor__crew { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; }
.sx-floor__crew li { display: flex; align-items: center; gap: 8px; }
.sx-floor__face { width: 36px; flex: 0 0 auto; }
.sx-floor__face .shadow { display: none; }
.sx-floor__note { margin: 8px 0 0; }
.sx-floor__below { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 24px; }
.sx-floor__below--solo { grid-template-columns: minmax(0, 480px); }
.sx-floor__io { margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.sx-floor__io > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--rule); }
.sx-floor__io > div:first-child { border-top: 0; }
.sx-floor__io dt { font-family: var(--ui); font-size: .8rem; font-weight: 700; color: var(--muted); }
.sx-floor__io dd { margin: 0; }
.sx-floor__link { margin: 18px 0 0; font-weight: 600; }
@media (max-width: 860px) {
  .sx-floor__plate { aspect-ratio: auto; overflow: visible; background: none; }
  .sx-floor__plate > img { position: relative; inset: auto; height: auto; aspect-ratio: 1672 / 941; border-radius: var(--radius); }
  .sx-floor__mount { position: relative; right: auto; top: auto; width: 78%; margin: -36px 0 0 auto; }
  .sx-floor__below { grid-template-columns: 1fr; }
  .sx-floor__io > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- 11. questions: How It Works' chapters (how.css), the said-by beside each answer ---------- */
.sx-qa__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; margin-top: clamp(20px, 3vw, 32px); }
.sx-qa__index { position: sticky; top: 90px; }
.sx-qa__index > .label { display: block; margin-bottom: 8px; }
.sx-qa__index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sx-qa__index a { display: block; padding: 6px 12px; border-radius: 8px; font-size: .92rem; color: var(--fg); text-decoration: none; }
.sx-qa__index a:hover { background: var(--butter); color: var(--ink); font-weight: 700; }
/* Build six G3-U2 (Sarah -RivUHWfrwV6): each question is a <details>, closed at rest, tighter than the old open list.
   The summary is the question's heading; the sign is the kit fold's own chevron (kit.css .kit-fold__summary), drawn in
   CSS so it adds no word, and it does not move, so reduced motion has nothing to stop. */
.sx-qa__item { border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.sx-qa__item:last-child { border-bottom: 1px solid var(--rule); }
.sx-qa__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: clamp(14px, 1.6vw, 20px) 0; cursor: pointer; list-style: none; }
.sx-qa__q::-webkit-details-marker { display: none; }
.sx-qa__q::after { content: ""; flex: none; box-sizing: border-box; width: 12px; height: 12px; margin: -6px 4px 0 0; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sx-qa__item[open] > .sx-qa__q::after { margin-top: 6px; transform: rotate(-135deg); }
.sx-qa__q:hover::after { border-color: var(--fg); }
.sx-qa__q > :is(h2, h3, h4) { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.15; }
.sx-qa__item > .sx-qa__two { padding-bottom: clamp(8px, 1vw, 14px); }
.sx-qa__two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.sx-qa__two--solo { grid-template-columns: minmax(0, 1fr); }
.sx-qa__link { margin: 0; font-weight: 600; }
@media (max-width: 1000px) {
  .sx-qa__grid { grid-template-columns: 1fr; }
  .sx-qa__index { position: static; }
  .sx-qa__index ul { display: flex; flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 860px) { .sx-qa__two { grid-template-columns: 1fr; } }

/* ---------- 0. open hero (round two U8; docs/site-relaunch/round-two/first-screen.md, the signed spec). Markup:
   sections.ts openHero(), used by the feature, scene and sub-page heroes when their picture has a focus record
   (docs/site-relaunch/hero-focus.json). The block is the picture's settle color; the picture sits right at the
   record's `fit`, full height, feathered over its first 22%; one settle gradient, strongest at the text edge (0.5)
   and clear by 58% (the spec allows 0.55 and 62%). The column starts at the page's left gutter, centered and nudged
   4% low; nothing in it has a fill but the status chip. Values per picture arrive as custom properties: the block
   carries --sx-settle and --sx-settle-rgb, each picture layer its own fit, position and phone crop. Phones (and a
   block with data-stack="1024", up to 1023): the picture first in a 4:3 box, zoomed to about the right 62% of the
   frame, then the words on the page's own ground in ink.
   A clip (specs/hero-motion.md part 2): `.sx-hero__clip`, a <video> after the still in the same picture layer. Every rule
   that sizes or places the still names both (`:is(.sx-hero__img, .sx-hero__clip)`), so the loop sits exactly on it. It
   stays invisible until Stage (js/stage.js) makes its layer the lead (`is-acting`), then fades in over 400ms; under
   reduced motion it is not drawn at all, and with no script it never shows.
   The feather is drawn once, on the picture layer that holds both (`.sx-hero__pic`), never on the still and the clip
   each: two masked layers stacked add up (where the fade should let half through, three quarters came through, 2a - a²).
   The layer spans the block, so the gradient starts where the picture starts (100% minus its fit) and is solid 22% of
   the picture's width later. Each band sets the fit once, as --sx-fit on the layer; the picture's width reads it, so
   the fade and the picture cannot drift apart. Phones and data-stack="1024" turn the feather off on that layer. ---------- */
.sx-hero { --sx-h: clamp(460px, 62svh, 640px); --sx-col: 30rem; --sx-col-max: 46; --sx-h1: clamp(2.4rem, 3.4vw, 3.2rem); position: relative; display: block; height: var(--sx-h); overflow: hidden; container-type: inline-size; background: var(--sx-settle); color: var(--on-dark); }
.sx-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgb(var(--sx-settle-rgb) / .5) 0%, rgb(var(--sx-settle-rgb) / .32) 34%, rgb(var(--sx-settle-rgb) / 0) 58%); }
.sx-hero__stage { position: absolute; inset: 0; z-index: 0; }
.sx-hero__pic { position: absolute; inset: 0; }
.sx-hero .sx-hero__pic { --sx-fit: var(--sx-fit-wide); -webkit-mask-image: linear-gradient(90deg, transparent calc(100% - var(--sx-fit)), #000 calc(100% - var(--sx-fit) * .78)); mask-image: linear-gradient(90deg, transparent calc(100% - var(--sx-fit)), #000 calc(100% - var(--sx-fit) * .78)); }
.sx-hero :is(.sx-hero__img, .sx-hero__clip) { position: absolute; top: 0; right: 0; width: var(--sx-fit); height: 100%; max-width: none; object-fit: cover; object-position: var(--sx-pos-wide); }
.sx-hero .sx-hero__clip { opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.sx-hero .is-acting > .sx-hero__clip { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sx-hero .sx-hero__clip { display: none; } }
.sx-hero__host { position: absolute; z-index: 1; left: 50%; bottom: 0; width: clamp(140px, 15cqw, 230px); }
.sx-hero__col { position: relative; z-index: 2; top: 4%; box-sizing: border-box; height: 100%; width: min(var(--wrap), 100cqw - 2 * var(--gutter)); margin-inline: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.sx-hero__col > * { max-width: min(var(--sx-col), var(--sx-col-max) * 1cqw - (100cqw - min(var(--wrap), 100cqw - 2 * var(--gutter))) / 2); }
.sx-hero__col > :is(h1, h2, h3) { margin: 0 0 .4em; color: inherit; font-size: var(--sx-h1); font-weight: 700; line-height: 1.04; letter-spacing: -.012em; text-wrap: balance; }
.sx-hero__col > :is(.kicker, .label, .hero-status) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; color: inherit; font-family: var(--ui); font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.sx-hero__col .kicker .label { color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.sx-hero .sx-hero__sentence { margin: 0 0 26px; color: var(--on-dark-2); font-size: 1.125rem; line-height: 1.5; text-shadow: 0 0 26px rgb(var(--sx-settle-rgb) / .35); }
.sx-hero__col .doors { gap: 12px 18px; }
/* The button row may run the full open width (the text cap is for reading measure, not for a button and its link). */
.sx-hero__col > .doors { max-width: calc(var(--sx-col-max) * 1cqw - (100cqw - min(var(--wrap), 100cqw - 2 * var(--gutter))) / 2); }
.sx-hero__col .doors .tcta { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.sx-hero[data-tone="light"] { color: var(--ink); }
.sx-hero[data-tone="light"] .sx-hero__sentence { color: var(--ink-2); }
/* Round four U15 (W14): the status prints as a plain line (relaunch.css 17a) in the kicker's own color, never a pill. A
   Coming chip, if a hero ever carries one, keeps its solid pill (its border matches the fill, so the contrast check reads
   only the pill). */
.sx-hero .chip--status { background: var(--paper); color: var(--ink); border-color: var(--paper); text-transform: none; letter-spacing: .01em; }
.sx-hero .chip--status[data-status="Coming"] { --dot: var(--amber-ink); }

/* Width bands (spec table). `sub` takes the 1024 step at every desktop width; `small` keeps the band's column and type. */
@media (min-width: 861px) and (max-width: 1199px) {
  .sx-hero { --sx-h: clamp(440px, 60svh, 560px); --sx-col: 26rem; --sx-col-max: 44; --sx-h1: 2.4rem; }
  .sx-hero .sx-hero__pic { --sx-fit: var(--sx-fit-mid); }
  .sx-hero :is(.sx-hero__img, .sx-hero__clip) { object-position: var(--sx-pos-mid); }
}
@media (min-width: 861px) and (max-width: 1023px) {
  .sx-hero { --sx-h: clamp(420px, 58svh, 500px); --sx-col: 20rem; --sx-col-max: 42; --sx-h1: 2rem; }
  .sx-hero .sx-hero__pic { --sx-fit: var(--sx-fit-narrow); }
  .sx-hero :is(.sx-hero__img, .sx-hero__clip) { object-position: var(--sx-pos-narrow); }
}
.sx-hero.sx-hero--sub { --sx-h: clamp(440px, 60svh, 560px); --sx-col: 26rem; --sx-col-max: 44; --sx-h1: 2.4rem; }
@media (min-width: 861px) {
  .sx-hero.sx-hero--sub .sx-hero__pic { --sx-fit: var(--sx-fit-mid); }
  .sx-hero.sx-hero--sub :is(.sx-hero__img, .sx-hero__clip) { object-position: var(--sx-pos-mid); }
}
/* The sub hero never hides its own words (briefs/sub-hero-fit.md): from 861 up it is at least --sx-h tall and as tall
   as its words need; the stage, picture, mask and gradient are absolute and cover the taller block. The block is a
   grid of three rows in the ratio 16 : 76 : 8, and the column sits centred in the middle one. At --sx-h the middle row
   runs from 16% to 92%, so words that fit stay centred at 54%, where the old 4% nudge put them. Words taller than that
   row grow the block, and the rows keep their ratio (flexible rows in a block of no set height size to their content),
   so the words still span 16% to 92% of the taller block: inside the records' vertical open band (8% to 92%). */
@media (min-width: 861px) {
  .sx-hero.sx-hero--sub { display: grid; grid-template-rows: 4fr 19fr 2fr; height: auto; min-height: var(--sx-h); }
  .sx-hero.sx-hero--sub .sx-hero__col { grid-row: 2; grid-column: 1; align-self: center; top: 0; height: auto; }
}
.sx-hero.sx-hero--small { --sx-h: clamp(280px, 38svh, 400px); }
/* The small hero is short: no downward nudge and tighter gaps, so a wrapped link still sits inside the open area. */
.sx-hero.sx-hero--small .sx-hero__col { top: 0; }
.sx-hero.sx-hero--small .sx-hero__col > :is(.kicker, .label, .hero-status) { margin-bottom: 12px; }
.sx-hero.sx-hero--small .sx-hero__sentence { margin-bottom: 18px; }
.sx-hero.sx-hero--small .sx-hero__col .doors { gap: 8px 18px; }
/* The small hero never lets its words touch its edges (briefs/small-hero-fit.md): from 861 up it is at least --sx-h tall
   and as tall as its words need, with at least 24px of the block above the first text item and below the last. The
   stage, picture, mask and gradient are absolute and cover the taller block. The block is a grid of one row that fills
   it, and the column, padded 24px top and bottom, sits centred in that row: words that fit stay centred where they were,
   longer words grow the block. A stacked block (data-stack="1024") keeps the phone layout up to 1023. */
@media (min-width: 861px) {
  .sx-hero.sx-hero--small:not([data-stack="1024"]) { display: grid; height: auto; min-height: var(--sx-h); }
  .sx-hero.sx-hero--small:not([data-stack="1024"]) .sx-hero__col { grid-row: 1; grid-column: 1; align-self: center; height: auto; padding-block: 24px; }
}

/* Build three U12 (specs/templates.md part 6): a deeper page's opening runs edge to edge. A picture listed in
   lib/site/hero-bleed.ts (`sx-hero--bleed`) fills the band from 861 px up, unmasked, on its own crop when the list
   gives one; the band's wash becomes one soft gradient from the words' side, the settle tone at .78 under the words'
   column easing to 0 by 62% of the width. The words keep their column and sizes; a host cut-out stays. Phones keep
   the fitted layout. Every bleed rule sits in this block (sections.test.ts holds it). */
@media (min-width: 861px) {
  .sx-hero.sx-hero--bleed :is(.sx-hero__img, .sx-hero__clip) { width: 100%; object-position: var(--sx-pos-bleed, var(--sx-pos-wide)); }
  /* second in the block: hero-clip.test.ts reads a block's first rule with the @media line on its selector */
  .sx-hero.sx-hero--bleed .sx-hero__pic { --sx-fit: 100%; -webkit-mask-image: none; mask-image: none; }
  .sx-hero.sx-hero--bleed::after { background: linear-gradient(90deg, rgb(var(--sx-settle-rgb) / .78) 0%, rgb(var(--sx-settle-rgb) / .74) 26%, rgb(var(--sx-settle-rgb) / .5) 40%, rgb(var(--sx-settle-rgb) / .2) 52%, rgb(var(--sx-settle-rgb) / 0) 62%); }
}

/* Phones, and a stacked block up to 1023: the picture, then the words on the page. */
@media (max-width: 1023px) {
  .sx-hero[data-stack="1024"] { height: auto; overflow: visible; container-type: normal; background: none; color: var(--ink); }
  .sx-hero[data-stack="1024"]::after { display: none; }
  .sx-hero[data-stack="1024"] .sx-hero__stage { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3; max-height: 46svh; overflow: hidden; background: var(--sx-settle); }
  .sx-hero[data-stack="1024"] .sx-hero__pic { -webkit-mask-image: none; mask-image: none; }
  .sx-hero[data-stack="1024"] :is(.sx-hero__img, .sx-hero__clip) { left: calc(var(--sx-phone-x) * -.61%); right: auto; width: 161%; height: 100%; object-position: 50% calc(var(--sx-phone-y) * 1%); }
  .sx-hero[data-stack="1024"] .sx-hero__host { left: 4%; width: min(30%, 140px); }
  .sx-hero[data-stack="1024"] .sx-hero__col { top: auto; height: auto; width: auto; margin: 0; padding: 22px var(--gutter) 8px; display: block; }
  .sx-hero[data-stack="1024"] .sx-hero__col > * { max-width: none; }
  .sx-hero[data-stack="1024"] .sx-hero__col > :is(h1, h2, h3) { font-size: 2rem; }
  .sx-hero[data-stack="1024"] .sx-hero__sentence { color: var(--ink-2); text-shadow: none; }
  .sx-hero[data-stack="1024"] .chip--status { background: var(--paper-2); border-color: var(--paper-2); }
  .sx-hero[data-stack="1024"] .doors { flex-direction: column; align-items: stretch; }
  .sx-hero[data-stack="1024"] .doors .tcta { align-self: center; }
}
@media (max-width: 860px) {
  .sx-hero { height: auto; overflow: visible; container-type: normal; background: none; color: var(--ink); }
  .sx-hero::after { display: none; }
  .sx-hero .sx-hero__stage { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3; max-height: 46svh; overflow: hidden; background: var(--sx-settle); }
  .sx-hero .sx-hero__pic { -webkit-mask-image: none; mask-image: none; }
  .sx-hero :is(.sx-hero__img, .sx-hero__clip) { left: calc(var(--sx-phone-x) * -.61%); right: auto; width: 161%; height: 100%; object-position: 50% calc(var(--sx-phone-y) * 1%); }
  .sx-hero .sx-hero__host { left: 4%; width: min(30%, 140px); }
  .sx-hero .sx-hero__col { top: auto; height: auto; width: auto; margin: 0; padding: 22px var(--gutter) 8px; display: block; }
  .sx-hero .sx-hero__col > * { max-width: none; }
  .sx-hero .sx-hero__col > :is(h1, h2, h3) { font-size: 2rem; }
  .sx-hero .sx-hero__sentence, .sx-hero[data-tone] .sx-hero__sentence { color: var(--ink-2); text-shadow: none; }
  .sx-hero[data-tone] { color: var(--ink); }
  .sx-hero .chip--status { background: var(--paper-2); border-color: var(--paper-2); }
  .sx-hero .doors { flex-direction: column; align-items: stretch; }
  .sx-hero .doors .tcta { align-self: center; }
}
/* Phones: the cookie bar never covers the button or the quiet link (briefs/phone-cookie-clear.md, Dan 2026-11-10). The
   bar takes the window's foot (about 98px tall, 8px under it) and the words keep 12px of air above it, so the block may
   reach 100svh less the header (69px) and 110px (118px less the column's own 8px of bottom padding): at 390 by 844 the
   last text item ends at or above y 726. A page whose words would pass that carries `sx-hero--fit` and --sx-words, the
   height of its words column at 390 (set in its own page module, sections.ts phoneFit). Its picture gives up only that
   room: the cap is what the words leave, never under 176px (or the 46svh cap, if that is shorter), never over the
   picture's own 4:3 height. The words still flow under the picture, so a taller column on a narrower or shorter phone
   pushes the block longer (the bar may then cover them) and never leaves it. The width stays; the phone position
   stays too, unless the shorter frame would cut a face, where the page sets its own (--sx-fit-y, phones only). */
@media (max-width: 860px) {
  .sx-hero.sx-hero--fit .sx-hero__stage { max-height: max(min(176px, 46svh), min(46svh, calc(100svh - 69px - 110px - var(--sx-words)))); }
  .sx-hero.sx-hero--fit :is(.sx-hero__img, .sx-hero__clip) { object-position: 50% calc(var(--sx-fit-y, var(--sx-phone-y)) * 1%); }
  /* Under the section bar (subnav.css, build six G5-U1) the hero starts the bar's height lower, so the picture gives up
     that height too (js/pages/subnav.js measures it; 49px is the bar and its rule). Build six close: on
     /what-jinn-can-do/agents/docs at 390 the bar had pushed the button 24px under the cookie bar. */
  .subnav ~ main .sx-hero.sx-hero--fit .sx-hero__stage { max-height: max(min(176px, 46svh), min(46svh, calc(100svh - 69px - var(--subnav-h, 49px) - 110px - var(--sx-words)))); }
}
