/* ===== 10-menu.css ===== */
/* The header, its three menus, the phone menu and the footer. Forge V2 kit, Forge Mark palette:
   White ground, Ink words, hairlines in Line, the Teal snap on the one button, Ink tile for the
   menu's lead. The kit has no navigation style; links are Geist Medium 15px, a step under the 16px
   pill, so the pill leads. */

:root {
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header: 76px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.brand {
  display: inline-flex;
  flex: none;
  text-decoration: none;
}
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.top.is-scrolled {
  border-bottom-color: var(--line-strong);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header);
}
.top .brand img {
  width: auto;
  height: 40px;
}
.mm {
  display: flex;
  flex: 1;
  align-items: center;
  align-self: stretch;
  gap: 20px;
}
.mm-list {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mm-list > li {
  display: flex;
}
.dd-btn,
.mm-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 15px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.mm-link:hover,
.mm-link[aria-current="page"],
.dd-btn[data-here="true"] {
  text-decoration: underline;
  text-decoration-color: var(--fm-primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.5em;
}
.dd-btn i {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.mm-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.mm-end .pill {
  margin-left: 12px;
}

/* A menu is a full-width panel under the bar. It opens on hover (pointers that hover), on keyboard
   focus and on a click (touch), and closes on Escape or a click away (assets/motion.js). The
   button runs the bar's full height, so the pointer never crosses a gap on its way down. */
.dd-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-strong);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
}
.dd.is-open .dd-panel {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.dd.is-open .dd-btn i {
  transform: rotate(225deg);
  margin-top: 3px;
}
@media (hover: hover) {
  .dd:hover .dd-panel {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .dd:hover .dd-btn i {
    transform: rotate(225deg);
    margin-top: 3px;
  }
}
.dd-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(240px, 22vw, 320px);
  gap: var(--gap) 40px;
  padding-block: 36px 44px;
}
.dd-cols {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: var(--gap) 28px;
}
.dd-col .label {
  margin-bottom: 14px;
}
.dd-col ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dd-col a {
  display: grid;
  gap: 2px;
  margin: 0 -12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-decoration: none;
}
.dd-col a:hover,
.dd-col a:focus-visible {
  background: var(--panel);
}
.dd-col strong {
  font: 500 16px/1.3 var(--font-sans);
}
.dd-col a span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.dd-lead {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 220px;
  padding: 28px;
  border-radius: var(--corner) var(--radius) var(--radius) var(--radius);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}
.dd-lead strong {
  font: 500 24px/1.15 var(--font-sans);
  letter-spacing: -0.03em;
}
.dd-lead span {
  font-size: 15px;
  line-height: 1.45;
}
.dd-lead .label {
  margin-bottom: auto;
}
.dd-mark {
  position: absolute;
  top: 24px;
  right: 24px;
  width: auto;
  height: 40px;
  transition: transform 0.25s var(--ease);
}
.dd-lead:hover .dd-mark {
  transform: translateY(-3px);
}

/* ---------- The phone menu: a details, so it opens with scripts off ---------- */

.mnav {
  display: none;
  margin-left: auto;
}
.mnav > summary {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  list-style: none;
  cursor: pointer;
}
.mnav > summary::-webkit-details-marker {
  display: none;
}
.mnav > summary i,
.mnav > summary i::before,
.mnav > summary i::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.mnav > summary i {
  position: relative;
}
.mnav > summary i::before,
.mnav > summary i::after {
  content: "";
  position: absolute;
  left: 0;
}
.mnav > summary i::before {
  top: -7px;
}
.mnav > summary i::after {
  top: 7px;
}
.mnav[open] > summary i {
  background: transparent;
}
.mnav[open] > summary i::before {
  top: 0;
  transform: rotate(45deg);
}
.mnav[open] > summary i::after {
  top: 0;
  transform: rotate(-45deg);
}
.mnav-panel {
  position: fixed;
  inset: var(--header) 0 0 0;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px var(--gutter) 48px;
  overflow-y: auto;
  background: var(--white);
}
.mnav-panel details {
  border-bottom: 1px solid var(--line-strong);
}
.mnav-panel summary,
.mnav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font: 500 20px/1.2 var(--font-sans);
  letter-spacing: -0.02em;
  list-style: none;
  text-decoration: none;
  cursor: pointer;
}
.mnav-panel summary::-webkit-details-marker {
  display: none;
}
.mnav-panel summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.mnav-panel details[open] summary::after {
  transform: rotate(225deg);
}
.mnav-panel details .label {
  margin: 8px 0 6px;
}
.mnav-panel details ul {
  display: grid;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.mnav-panel details li a {
  display: block;
  padding: 10px 0;
  font-size: 17px;
  text-decoration: none;
}
.mnav-panel .tile {
  margin-top: 24px;
  width: 100%;
}
@media (max-width: 1099px) {
  .mm {
    display: none;
  }
  .mnav {
    display: block;
  }
}
@media (max-width: 640px) {
  :root {
    --header: 68px;
  }
  .top .brand img {
    height: 36px;
  }
}

/* ---------- Footer: the wordmark and the main call on the left, four lists on the right ---------- */

.foot {
  margin-top: -1px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px 56px;
  padding-top: 64px;
  padding-bottom: 56px;
}
.foot .brand img {
  width: auto;
  height: 64px;
}
.foot-words {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 24px;
}
.foot-line {
  font-size: 17px;
  line-height: 1.45;
  color: var(--white);
}
.foot-btn {
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}
.foot-btn:hover {
  box-shadow: none;
}
.foot-cols {
  display: grid;
  grid-template-columns: 1.3fr 1.5fr 1fr 1fr;
  gap: 40px var(--gap);
}
.foot-cols .label {
  margin-bottom: 16px;
  font-weight: 400;
}
.foot-cols ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-cols a {
  font-weight: 500;
  text-decoration-line: none;
}
.foot-cols a:hover,
.foot-cols a[aria-current="page"] {
  text-decoration-line: underline;
}
.foot-legal {
  display: grid;
  gap: 10px;
  padding-top: 28px;
  padding-bottom: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.foot-legal small {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-on-ink);
}
@media (max-width: 1023px) {
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== 20-components.css ===== */
/* Page parts (src/kit.mjs): the product hero, feature rows, the visual stage, the step rail, figures,
   tabs, questions, related cards, the comparison table, the logo marquee and the guides' long read.
   Boxes take 2px corners and one in each group the 20px top-left; no gradients, no shadows; Ember
   for key figures and bars (never under small White words), Teal only for snaps and stops. */

/* ---------- Motion starting states: only when assets/motion.js is on its way (boot.js) ---------- */

.fm-js:not(.fm-reduce) [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.fm-js:not(.fm-reduce) [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@keyframes fm-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- The product hero ---------- */

/* The main call at pill size, for a page head that shares its row with a visual: the tile's colours
   and light (kit Button, Ember deep carrying White words), the pill's size. The tile stays for the
   home page and each page's closing call. */
.main {
  padding: 16px 22px 16px 26px;
  border-radius: var(--corner-button) var(--radius) var(--radius) var(--radius);
  background: var(--fm-primary-deep);
  color: var(--white);
  box-shadow: var(--lit-tile);
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.main .snap {
  background: var(--white);
}
.main:hover {
  box-shadow: var(--lit-tile-hover);
  transform: translateY(-1px);
}
.main:active {
  transform: translateY(1px);
}
@media (prefers-reduced-motion: reduce) {
  .main {
    transition: none;
  }
  .main:hover,
  .main:active {
    transform: none;
  }
}
.ph-text .actions {
  gap: 16px;
}

.ground:has(> .ph:first-child) {
  padding-top: clamp(40px, 5vw, 72px);
}
.ph-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(32px, 4vw, 72px);
  align-items: center;
}
.ph-stack .ph-grid {
  grid-template-columns: minmax(0, 1fr);
}
.display.ph-title {
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1.02;
}
/* A title whose last two words, held together, are wider than the column at the usual size
   ("AI assistants recommend", 2 November 2026): a step smaller, so it never runs under the visual
   or off a phone. */
.display.ph-title.ph-long {
  font-size: clamp(33px, 3.6vw, 52px);
}
.ph-text .label {
  margin-top: 16px;
}
.ph-text .intro {
  margin-top: 24px;
  font-size: clamp(18px, 1.5278vw, 22px);
}
.ph-text .actions {
  margin-top: 36px;
}
.ph-stack .ph-text .intro {
  font-size: clamp(18px, 1.6667vw, 24px);
}
.ph-stack .ph-visual {
  margin-top: 16px;
}
@media (max-width: 959px) {
  .ph-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A line more of leading room above a text link that follows words. */
a.more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-weight: 500;
  text-decoration-line: none;
}
a.more::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: var(--corner-snap) 1px 1px 1px;
  background: var(--fm-tertiary);
  transition: transform 0.25s var(--ease);
}
a.more:hover {
  text-decoration-line: underline;
}
a.more:hover::after {
  transform: translateX(4px);
}

/* ---------- Feature rows: words one side, a visual the other, centred on each other ---------- */

.fr {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(32px, 5vw, 88px);
  align-items: center;
}
.fr.wide {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}
.fr.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.fr.wide.flip {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}
.fr.flip .fr-text {
  order: 2;
}
.fr-h {
  font-size: clamp(30px, 3vw, 44px);
}
.fr-text p,
.fr-text .dashes {
  margin-top: 20px;
}
.fr-text p:first-of-type {
  margin-top: 24px;
}
/* The short bold line under a feature heading (the kit's Lead style), then the two-sentence paragraph. */
.fr-text .fr-lead {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.fr-text .fr-lead + p {
  margin-top: 12px;
}
/* A row of short tiles: a Mist or White box each, the first with the group's corner. */
.tiles > * {
  display: grid;
  align-content: start;
  gap: 10px;
}
.tiles p {
  margin-top: 0;
  font-size: 16px;
  line-height: 1.5;
}
.g-white .tiles > * {
  background: var(--mist);
}
.fr-text .tag {
  margin-top: 24px;
}
@media (max-width: 859px) {
  .fr,
  .fr.wide,
  .fr.flip,
  .fr.wide.flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .fr.flip .fr-text {
    order: 0;
  }
}

/* ---------- The visual stage ---------- */

/* Every visual sits in a stage drawn here: Ink, Mist or White, 2px corners and the group's 20px
   top-left, a Mono strip under it saying it's sample data. The stage is a size container, so a
   visual sizes its type and marks in cqw and narrows by @container, not by the page's width. */
.vis {
  position: relative;
  container-type: inline-size;
  margin: 0;
  overflow: hidden;
  border-radius: var(--corner) var(--radius) var(--radius) var(--radius);
}
.vis.on-ink {
  background: var(--ink);
  color: var(--white);
}
.vis.on-white {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.vis.on-mist {
  background: var(--mist);
}
.vis-stage {
  position: relative;
  aspect-ratio: var(--ar, 16/10);
  overflow: hidden;
}
@container (max-width: 520px) {
  .vis-stage {
    aspect-ratio: var(--ar-sm, var(--ar, 16/10));
  }
}
.vis-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font: 400 11px/1.4 var(--font-mono);
  color: var(--muted);
}
.vis.on-ink .vis-cap {
  border-top-color: rgba(255, 255, 255, 0.12);
  color: var(--muted-on-ink);
}
.vis-mark {
  flex: none;
  width: auto;
  height: 16px;
}
/* The Forge Mark's anvil on the closing tile, top right, in its White and Ember cut. */
.tile-mark {
  position: absolute;
  top: var(--card-pad);
  right: var(--card-pad);
  width: auto;
  height: clamp(48px, 5.5vw, 80px);
}
.v-missing .vis-stage {
  display: grid;
  place-items: center;
}

/* ---------- Steps on a rail ---------- */

.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.rail li {
  position: relative;
  padding-top: 28px;
}
.rail li::before,
.rail li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.rail li::before {
  background: var(--line-strong);
}
.rail li::after {
  background: var(--fm-primary);
  transform-origin: left;
}
.fm-js:not(.fm-reduce) .rail li::after {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 140ms + 200ms);
}
.fm-js:not(.fm-reduce) .rail li.is-in::after {
  transform: scaleX(1);
}
.rail-n {
  display: block;
  margin-bottom: 14px;
  font: 400 13px/1.4 var(--font-mono);
  color: var(--muted);
}
.rail p {
  margin-top: 12px;
  padding-right: 12px;
}
@media (max-width: 959px) {
  .rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px var(--gap);
  }
}
@media (max-width: 559px) {
  .rail {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Figures ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 40px var(--gap);
  margin: 48px 0 0;
}
.stats > div {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.stats dt {
  font: 500 clamp(52px, 6vw, 88px) / 0.95 var(--font-mono);
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--fm-primary);
  white-space: nowrap;
}
.stats dd {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.45;
}

/* ---------- Tabs: every panel in turn until scripts make them tabs ---------- */

.tab-list {
  display: none;
}
.tabs.is-tabs .tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 8px;
}
.tab-btn {
  padding: 14px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--corner-button) var(--radius) var(--radius) var(--radius);
  background: transparent;
  color: var(--ink);
  font: 500 15px/1 var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.tab-btn:hover {
  border-color: var(--ink);
}
.tab-btn[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(32px, 5vw, 88px);
  align-items: center;
  margin-top: 56px;
}
.tabs.is-tabs .tab-panel {
  margin-top: 32px;
}
.tabs.is-tabs .tab-panel[hidden] {
  display: none;
}
.tabs.is-tabs .tab-panel.is-on .tab-text,
.tabs.is-tabs .tab-panel.is-on .tab-media {
  animation: fm-fade 0.5s var(--ease) both;
}
.tabs.is-tabs .tab-panel.is-on .tab-media {
  animation-delay: 0.08s;
}
.tab-text p,
.tab-text .dashes {
  margin-top: 16px;
}
@media (max-width: 859px) {
  .tab-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Questions ---------- */

.faq {
  margin-top: 40px;
  border-top: 1px solid var(--line-strong);
}
.faq details {
  border-bottom: 1px solid var(--line-strong);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font: 500 clamp(18px, 1.6667vw, 22px) / 1.3 var(--font-sans);
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary i {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
}
.faq summary i::before,
.faq summary i::after {
  content: "";
  position: absolute;
  inset: 8px 0 auto;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.faq summary i::after {
  transform: rotate(90deg);
}
.faq details[open] summary i::after {
  transform: rotate(0);
}
.faq-a {
  padding: 0 0 28px;
}
.faq details[open] .faq-a {
  animation: fm-fade 0.4s var(--ease) both;
}

/* ---------- Related cards ---------- */

.rels {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 48px;
}
.rel {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 210px;
  padding: var(--card-pad);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  transition: background-color 0.25s;
}
.rel.lead {
  border-radius: var(--corner) var(--radius) var(--radius) var(--radius);
}
.rel:hover {
  background: var(--mist);
}
.rel p {
  font-size: 16px;
  line-height: 1.5;
}
.rel-go {
  position: absolute;
  right: var(--card-pad);
  bottom: var(--card-pad);
  width: 12px;
  height: 12px;
  border-radius: var(--corner-snap) 1px 1px 1px;
  background: var(--fm-tertiary);
  transition: transform 0.25s var(--ease);
}
.rel:hover .rel-go {
  transform: translateX(5px);
}
.rels .rel:nth-child(1) {
  grid-column: span 5;
}
.rels .rel:nth-child(2) {
  grid-column: span 4;
}
.rels .rel:nth-child(3) {
  grid-column: span 3;
}
.rels.n6 .rel:nth-child(4) {
  grid-column: span 3;
}
.rels.n6 .rel:nth-child(5) {
  grid-column: span 4;
}
.rels.n6 .rel:nth-child(6) {
  grid-column: span 5;
}
@media (max-width: 859px) {
  .rels .rel:nth-child(n),
  .rels.n3 .rel:nth-child(n),
  .rels.n6 .rel:nth-child(n) {
    grid-column: 1 / -1;
    min-height: 0;
  }
  .rel p {
    padding-right: 32px;
  }
}

/* ---------- The comparison table ---------- */

.cmp-wrap {
  margin-top: 48px;
  overflow-x: auto;
}
.cmp {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
}
.cmp th,
.cmp td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  vertical-align: middle;
}
.cmp thead th {
  font: 500 17px/1.3 var(--font-sans);
  letter-spacing: -0.01em;
}
.cmp tbody th {
  font-weight: 500;
}
.cmp th.ours,
.cmp td.ours {
  background: var(--mist);
}
.cmp thead th.ours {
  border-radius: var(--corner) var(--radius) 0 0;
  background: var(--ink);
  color: var(--white);
}
.cmp .yes,
.cmp .no {
  display: inline-block;
  vertical-align: middle;
}
.cmp .yes {
  width: 18px;
  height: 10px;
  margin-top: -4px;
  border-left: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg);
}
.cmp .no {
  width: 14px;
  height: 2.5px;
  background: var(--line-strong);
  background: rgba(18, 13, 11, 0.3);
}

/* ---------- The logo marquee ---------- */

.marq {
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marq-track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 64px;
  min-width: 100%;
  margin: 0;
  padding: 28px 64px 28px 0;
  list-style: none;
  justify-content: space-around;
  animation: marq 48s linear infinite;
}
.marq:hover .marq-track {
  animation-play-state: paused;
}
.marq img {
  width: auto;
  max-width: none;
}
@keyframes marq {
  to {
    transform: translateX(-100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marq {
    overflow-x: auto;
    mask-image: none;
  }
  .marq-track {
    animation: none;
  }
  .marq-track[aria-hidden="true"] {
    display: none;
  }
}

/* ---------- The guides' long read ---------- */

.guide {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 48px var(--gap);
  align-items: start;
}
.guide-toc {
  position: sticky;
  top: calc(var(--header) + 32px);
}
.guide-toc ol {
  display: grid;
  gap: 4px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.guide-toc a {
  display: block;
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--line-strong);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.guide-toc a:hover {
  border-left-color: var(--fm-primary);
}
.guide-body > section + section {
  margin-top: var(--section);
}
.guide-body .heading {
  font-size: clamp(30px, 3vw, 44px);
}
/* The reading column is seven of the body's nine columns: seven twelfths of the page, the same edge
   every section head and intro on the site shares. Visuals and tables take the whole body. */
.guide-body > section {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  column-gap: var(--gap);
}
.guide-body > section > * {
  grid-column: 1 / 8;
}
.guide-body > section > .heading,
.guide-body > section > .vis,
.guide-body > section > table,
.guide-body > section > .cmp-wrap,
.guide-body > section > figure {
  grid-column: 1 / -1;
}
@media (max-width: 959px) {
  .guide-body > section > * {
    grid-column: 1 / -1;
  }
}
.guide-body > section > p,
.guide-body > section > ul,
.guide-body > section > ol {
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.6;
}
.guide-body > section > h2 + p {
  margin-top: 24px;
}
.guide-body .vis {
  margin-block: 40px;
}
.guide-body > section > h3 {
  margin-top: 40px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
@media (max-width: 959px) {
  .guide {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide-toc {
    position: static;
  }
}

/* Page sections inside a band keep their own rhythm, but a standing label sits close under its
   heading as the kit asks. */
.fr-text .label,
.ph-text .label {
  display: block;
}

/* A link inside a mode box (the home page's two modes) sits last, under the list. */
.mode > a.more {
  order: 4;
  align-self: flex-start;
}

/* The home page's .ours (a flex figure box) must not turn a comparison table's column into one. */
.cmp td.ours,
.cmp th.ours {
  display: table-cell;
}

.nf-mark {
  width: auto;
  height: 79px;
  margin-bottom: 32px;
}

/* Related cards on a Mist band are White, so they read as cards. */
.g-mist .rel {
  background: var(--white);
}
.g-mist .rel:hover {
  background: var(--panel);
}

/* A small Mono tag under a feature's words (a premium note): its own width, not the column's. */
.fr-text .tag {
  display: table;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--fm-primary-deep);
  color: var(--white);
  font: 400 12px/1.4 var(--font-mono);
}

/* A stacked hero's words take the section head's column: seven of twelve, or as wide as the heading
   on one line, so the sub never runs wider than the kit's measure. */
.ph-stack .ph-text {
  display: grid;
  grid-template-columns: minmax(min(100%, var(--column)), max-content) minmax(0, 1fr);
}
.ph-stack .ph-text > * {
  grid-column: 1 / 2;
  min-width: 0;
}
.ph-stack .ph-text > .intro,
.ph-stack .ph-text > .label {
  contain: inline-size;
}

/* ===== 30-home.css ===== */
/* The home page: the hero's working app under its rail of screens, and the logo strip. The
   "Why your platforms disagree" module styles itself (src/visuals/disagree.mjs). */

/* The home hero: the headline on the left, the plain words and the calls on the right, and the
   product window straight under them so it is on the first screen. */
.ground:has(> .hero2:first-child) {
  padding-top: clamp(28px, 3.5vw, 48px);
}
.hero2-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(32px, 4vw, 64px);
  align-items: end;
}
.hero2 .display {
  font-size: clamp(40px, 4.5vw, 68px);
}
.hero2 .display.ph-long {
  font-size: clamp(33px, 3.8vw, 58px);
}
.hero2-title .label {
  margin-top: 18px;
}
.hero2-side .intro {
  font-size: clamp(17px, 1.3889vw, 20px);
}
.hero2-side .actions {
  margin-top: 28px;
  gap: 16px;
}
@media (max-width: 959px) {
  .hero2-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hero-vis {
  margin-top: clamp(28px, 3vw, 44px);
}
.works {
  margin-top: 72px;
}
.works > .label {
  margin-bottom: 20px;
}

/* ---------- The hero's rail ---------- */

/* Ten screens of the working app, one button each, on a Mist track like the demo page's switch. The
   chosen one is Ink; while the rail tours, its bar fills in Ember and the next screen opens when it's
   full (assets/demo.js). The bar holds while the pointer is on the window or the window is away. */
.hero-tour {
  margin-top: clamp(28px, 3vw, 44px);
}
.tour-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n, 10), minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--mist);
}
.tour-stop {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 60px;
  padding: 10px 12px 12px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.tour-stop:first-child {
  border-top-left-radius: 16px;
}
.tour-stop:not(.is-active):hover {
  background: var(--white);
}
.tour-stop.is-active {
  background: var(--ink);
  color: var(--white);
}
.tour-stop:focus-visible {
  outline: 2px solid var(--fm-primary);
  outline-offset: 2px;
}
.tour-n {
  font: 400 12px/1 var(--font-mono);
  color: var(--muted);
}
.tour-stop.is-active .tour-n {
  color: var(--muted-on-ink);
}
.tour-stop b {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}
.tour-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
}
.tour-bar i {
  display: block;
  height: 100%;
  background: var(--fm-primary);
  transform: scaleX(0);
  transform-origin: left;
}
.tour-rail.is-touring .tour-stop.is-active .tour-bar i {
  animation: tour-fill 7s linear forwards;
}
.tour-rail.is-held .tour-bar i,
.tour-rail.is-away .tour-bar i {
  animation-play-state: paused !important;
}
@keyframes tour-fill {
  to {
    transform: scaleX(1);
  }
}
.tour-note {
  min-height: 1.5em;
  margin: 16px 0 var(--gap);
  font-size: clamp(17px, 1.3889vw, 20px);
  line-height: 1.4;
}
.hero-tour .shot {
  margin-top: 0;
}
.hero-tour .shot figcaption a {
  color: inherit;
}
@media (max-width: 1199px) {
  .tour-rail.is-long {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .tour-rail.is-long .tour-stop:first-child {
    border-top-left-radius: var(--radius);
  }
}
@media (max-width: 640px) {
  .tour-rail {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .tour-rail::-webkit-scrollbar {
    display: none;
  }
  .tour-stop {
    flex: none;
    min-height: 54px;
    scroll-snap-align: start;
  }
  .tour-note {
    min-height: 2.8em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour-stop {
    transition: none;
  }
}

/* ---------- visual: adscan-read ---------- */

.as { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: 2em; padding: 2em 2.2em; font-size: clamp(11px, 1.6cqw, 14px); line-height: 1.25; color: var(--white); }
.as p { margin: 0; }
.as-k { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3em 1em; font: 400 0.9em/1.2 var(--font-mono); color: var(--muted-on-ink); }
.as-agg { color: var(--white); }
.as-in { position: relative; display: grid; grid-template-rows: auto auto auto 1fr; gap: 0.9em; min-height: 0; }
.as-ads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6em; }
.as-ad { position: relative; display: grid; gap: 0.45em; padding: 0.55em; border-radius: 2px; background: rgba(255,255,255,.08); }
.as-ad:first-child { border-radius: 1em 2px 2px 2px; }
.as-mk { height: 0.85em; width: auto; max-width: 70%; filter: brightness(0) invert(1); opacity: .8; }
.as-pic { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.as-pic i { position: absolute; border-radius: 2px; background: rgba(255,255,255,.22); }
.as-a .as-pic i { left: 30%; top: 22%; width: 40%; height: 62%; border-radius: 40% 40% 2px 2px; }
.as-b .as-pic i { left: 0; right: 0; bottom: 0; height: 38%; clip-path: polygon(0 60%, 30% 10%, 55% 55%, 75% 25%, 100% 70%, 100% 100%, 0 100%); border-radius: 0; height: 60%; }
.as-c .as-pic i { left: 20%; top: 30%; width: 60%; height: 46%; border-radius: 30% 30% 2px 2px; }
.as-hl { display: grid; gap: 0.3em; }
.as-hl i { display: block; height: 0.42em; border-radius: 2px; background: rgba(255,255,255,.3); }
.as-hl i + i { width: 62%; background: rgba(255,255,255,.16); }
.as-tag { position: absolute; z-index: 1; padding: 0.3em 0.5em; border-radius: 2px; background: var(--white); color: var(--ink); font: 400 0.85em/1 var(--font-mono); white-space: nowrap; }
.as-ad .as-tag { right: -0.3em; top: 1.8em; }
.as-tiles { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0.6em; }
.as-tile { position: relative; display: grid; align-content: start; gap: 0.4em; padding: 0.55em; border-radius: 2px; background: rgba(255,255,255,.08); }
.as-tile em { font: 400 0.85em/1 var(--font-mono); font-style: normal; color: var(--muted-on-ink); }
.as-pg { display: grid; gap: 0.3em; aspect-ratio: 16 / 7; padding: 0.4em; border-radius: 2px; background: rgba(255,255,255,.1); }
.as-pg i { display: block; height: 0.4em; border-radius: 2px; background: rgba(255,255,255,.26); }
.as-pg i:first-child { height: 0.9em; width: 70%; }
.as-pg i:last-child { width: 50%; }
.as-prod .as-pic { aspect-ratio: 1; }
.as-prod .as-pic i { left: 26%; top: 26%; width: 48%; height: 48%; border-radius: 50% 50% 2px 2px; }
.as-tile .as-tag { right: -0.3em; top: 0.4em; }
.as-terms { display: grid; align-content: start; gap: 0.45em; margin: 0; padding: 0; list-style: none; }
.as-terms li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 0.6em; padding: 0.45em 0.6em; border-radius: 2px; background: rgba(255,255,255,.06); font-size: 0.95em; }
.as-terms li.as-th { padding: 0; background: none; font: 400 0.85em/1.2 var(--font-mono); color: var(--muted-on-ink); }
.as-terms .as-tag { position: static; }
.as-scan { position: absolute; left: -0.6em; right: -0.6em; top: 1.6em; height: 2px; border-radius: 2px; background: var(--white); opacity: 0; pointer-events: none; }

.as-out { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0.6em; min-height: 0; }
.as-svg { width: 100%; height: 100%; overflow: visible; }
.as-svg .bub circle { fill: rgba(255,255,255,.1); }
.as-svg .bub.hot circle { fill: var(--fm-primary-deep); }
.as-svg .bub { transform-box: fill-box; transform-origin: center; }
.as-svg text { font-family: var(--font-sans); fill: var(--white); }
.as-svg .pct { font: 500 20px var(--font-mono); letter-spacing: -1px; text-anchor: middle; }
.as-svg .bub.hot .pct { font-size: 26px; }
.as-svg .nm { font-size: 12px; font-weight: 500; text-anchor: middle; }
.as-svg .dot { fill: rgba(255,255,255,.7); }
.as-svg .dot.hot { fill: var(--white); }
.as-svg .link { fill: none; stroke: var(--fm-primary); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.as-svg .why { font: 400 12px var(--font-mono); fill: var(--fm-primary); }
.as-svg .bl, .as-svg .bk { font: 400 12px var(--font-mono); fill: rgba(255,255,255,.66); }
.as-svg .bv { font: 500 12.5px var(--font-mono); fill: var(--white); }
.as-svg .seg { fill: rgba(255,255,255,.22); transform-box: fill-box; transform-origin: left; }
.as-svg .seg.hot { fill: var(--fm-primary); }

@container (max-width: 640px) {
  .as { gap: 1.4em; padding: 1.6em 1.7em; }
  .as-mk { height: 0.85em; }
}
@container (max-width: 520px) {
  .as { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); font-size: clamp(11px, 3.1cqw, 14px); padding: 1.3em; gap: 1em; }
  .as-in { grid-template-rows: auto auto auto; gap: 0.6em; }
  .as-tiles, .as-terms li:nth-child(n+4) { display: none; }
  .as-pic { aspect-ratio: 16 / 9; }
  .as-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4em; }
  .as-terms li.as-th { grid-column: 1 / -1; }
  .as-terms li { font-size: 0.9em; }
  .as-terms li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Motion. Beat 0 resets at once; 1 shows what the platforms run; 2 reads and tags it; 3 groups the
   tags into profiles and draws the line to the spend. */
@media (prefers-reduced-motion: no-preference) {
  .fm-js .as[data-beat="0"] * { transition: none !important; }
  .fm-js .as[data-beat="0"] .as-ad, .fm-js .as[data-beat="0"] .as-tile, .fm-js .as[data-beat="0"] .as-terms li:not(.as-th) { opacity: 0; transform: translateY(0.6em); }
  .fm-js .as-ad, .fm-js .as-tile, .fm-js .as-terms li { transition: opacity .5s ease, transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .fm-js .as[data-beat="0"] .as-tag, .fm-js .as[data-beat="1"] .as-tag { opacity: 0; transform: scale(.7); }
  .fm-js .as-tag { transition: opacity .3s ease, transform .35s var(--ease); transition-delay: calc(var(--t) * 150ms + 250ms); }
  .fm-js .as[data-beat="2"] .as-scan { animation: as-scan 1.6s var(--ease) both; }
  .fm-js .as:not([data-beat="3"]) .as-svg .bub { opacity: 0; transform: scale(.4); }
  .fm-js .as:not([data-beat="3"]) .as-svg .dot { transform: translate(var(--dx), var(--dy)); opacity: 0; }
  .fm-js .as[data-beat="2"] .as-svg .dot { opacity: 1; transition: opacity .3s ease; transition-delay: calc(var(--i) * 25ms + 1.4s); }
  .fm-js .as[data-beat="3"] .as-svg .dot { transition: transform 1.1s var(--ease), opacity .3s; transition-delay: calc(var(--i) * 18ms); }
  .fm-js .as[data-beat="3"] .as-svg .bub { transition: opacity .5s ease, transform .8s var(--ease); transition-delay: calc(var(--k) * 120ms + .7s); }
  .fm-js .as:not([data-beat="3"]) .as-svg .link { stroke-dashoffset: 1; }
  .fm-js .as:not([data-beat="3"]) .as-svg .seg { transform: scaleX(0); }
  .fm-js .as:not([data-beat="3"]) .as-svg .why, .fm-js .as:not([data-beat="3"]) .as-svg .bv, .fm-js .as:not([data-beat="3"]) .as-svg .bl, .fm-js .as:not([data-beat="3"]) .as-svg .bk, .fm-js .as:not([data-beat="3"]) .as-agg { opacity: 0; }
  .fm-js .as[data-beat="3"] .as-agg { transition: opacity .5s ease 1.2s; }
  .fm-js .as[data-beat="3"] .as-svg .bl, .fm-js .as[data-beat="3"] .as-svg .bk { transition: opacity .5s ease 1.9s; }
  .fm-js .as[data-beat="3"] .as-svg .seg { transition: transform .8s var(--ease); transition-delay: calc(var(--k) * 140ms + 2.1s); }
  .fm-js .as[data-beat="3"] .as-svg .link { transition: stroke-dashoffset .9s var(--ease) 2.9s; }
  .fm-js .as[data-beat="3"] .as-svg .why, .fm-js .as[data-beat="3"] .as-svg .bv { transition: opacity .5s ease 3.6s; }
}
.as-pf { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 1em 0.9em; padding: 2em 2.2em; font-size: clamp(11px, 1.6cqw, 14px); line-height: 1.3; color: var(--white); }
.as-pf p, .as-pf dl, .as-pf dd { margin: 0; }
.as-card { display: grid; align-content: start; gap: 1em; padding: 1.3em 1.4em; border-radius: 2px; background: rgba(255,255,255,.07); min-height: 0; }
.as-card.hot { border-radius: 1.4em 2px 2px 2px; }
.as-ch { display: grid; gap: 0.35em; }
.as-ch b { font-size: 1.45em; font-weight: 500; letter-spacing: -0.02em; }
.as-ch span { font-size: 0.95em; color: var(--muted-on-ink); }
.as-ch em { font: 500 1.15em/1 var(--font-mono); font-style: normal; color: var(--white); }
.as-card.hot .as-ch em { color: var(--fm-primary); }
.as-sh { display: block; height: 0.5em; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.as-sh i { display: block; height: 100%; width: calc(var(--s) * 100%); background: rgba(255,255,255,.6); transform-origin: left; }
.as-card.hot .as-sh i { background: var(--fm-primary); }
.as-card dl { display: grid; gap: 0.85em; }
.as-card dl div { display: grid; gap: 0.2em; padding-top: 0.85em; border-top: 1px solid rgba(255,255,255,.1); }
.as-card dt { font: 400 0.85em/1.2 var(--font-mono); color: var(--muted-on-ink); }
.as-card dd { font-size: 1.02em; font-weight: 500; }
.as-pn { grid-column: 1 / -1; font-size: 0.95em; color: var(--muted-on-ink); }
@container (max-width: 520px) {
  .as-pf { font-size: clamp(11px, 3.1cqw, 14px); padding: 1.3em; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .as-card { padding: 1em; gap: 0.85em; }
  .as-card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5em 0.85em; }
  .as-card dl div { padding-top: 0.5em; }
}
@media (prefers-reduced-motion: no-preference) {
  .fm-js .as-card { opacity: 0; transform: translateY(0.85em); }
  .fm-js .as-sh i { transform: scaleX(0); }
  .fm-js .as-card dl div, .fm-js .as-pn { opacity: 0; }
  .is-in .as-card { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s var(--ease); transition-delay: calc(var(--i) * 180ms); }
  .is-in .as-sh i { transform: none; transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 180ms + .4s); }
  .is-in .as-card dl div { opacity: 1; transition: opacity .4s ease; transition-delay: calc(var(--i) * 180ms + var(--j) * 140ms + .8s); }
  .is-in .as-pn { opacity: 1; transition: opacity .5s ease 1.8s; }
}
@keyframes as-scan { 0% { top: 1.6em; opacity: 0; } 10% { opacity: .8; } 90% { opacity: .8; } 100% { top: 100%; opacity: 0; } }


/* ---------- visual: adstock ---------- */

.ad { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 1.1em; padding: 1.8em 2em 1.5em; font-size: max(10.5px, 1.3cqw); color: var(--white); }
.ad p { margin: 0; }
.ad-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8em 1.6em; }
.ad-ctl { display: flex; align-items: center; gap: 0.9em; }
.ad-lbl, .ad-fixed, .ad-t, .ad-n, .ad .ad-weeks, .ad-wk span { font: 400 1em/1.2 var(--font-mono); color: var(--muted-on-ink); }
.ad-fixed { color: var(--white); }
.ad-btns { display: none; gap: 0.5em; }
.fm-js .ad-btns { display: flex; }
.fm-js .ad-fixed { display: none; }
.ad-btns button { padding: 0.85em 1.25em; border: 1px solid rgba(255,255,255,.3); border-radius: 10px 2px 2px 2px; background: transparent; color: var(--white); font: 500 1.05em/1 var(--font-sans); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.ad-btns button:hover { border-color: var(--white); }
.ad-btns button[aria-pressed="true"] { border-color: var(--white); background: var(--white); color: var(--ink); }
.ad-btns button:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.ad .ad-read { display: flex; align-items: baseline; gap: 0.7em; font: 400 0.95em/1.2 var(--font-mono); color: var(--muted-on-ink); }
.ad .ad-read b { font: 500 2.5em/1 var(--font-mono); letter-spacing: -0.05em; color: var(--fm-primary); font-variant-numeric: tabular-nums; }
.ad-plot { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.6em; }
.ad-cols { position: relative; display: grid; grid-template-rows: minmax(0, 2fr) minmax(0, 5fr); gap: 0.9em; min-height: 0; }
.ad-band { position: absolute; top: 0; bottom: 0; left: 33.333%; width: 8.333%; background: rgba(255,255,255,.08); border-radius: 2px; }
.ad-p { position: relative; min-height: 0; }
.ad-p svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ad-ax { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ad-bar { fill: rgba(255,255,255,.8); }
.ad-seg { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ad-line { fill: none; stroke: var(--fm-primary); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ad-t { position: absolute; top: 0; }
.ad-sp .ad-t { right: 0; }
.ad-ef .ad-t { left: 0; }
.ad-n { position: absolute; top: 26%; color: var(--white); }
.ad-n.n1 { left: 26.20%; }
.ad-n.n2 { left: 67.47%; }
.ad .ad-wk { font-size: 1em; position: absolute; top: 4%; left: 42.67%; display: grid; gap: 0.3em; }
.ad .ad-wk b { font: 500 1.3em/1.2 var(--font-sans); }
.ad-wk span { color: var(--fm-primary); font-weight: 500; font-size: 1.25em; }
.ad .ad-weeks li { font: inherit; margin: 0; text-wrap: nowrap; }
.ad .ad-weeks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; text-align: center; }

@container (max-width: 640px) {
  .ad { font-size: max(10px, 2.6cqw); padding: 1.4em; gap: 1em; }
  .ad-btns button { padding: 0.8em 1em; }
  .ad-n { top: 30%; }
}

/* Motion: spend grows, then each week's tails spread week by week, then the total line is drawn. */
@media (prefers-reduced-motion: no-preference) {
  .fm-js .ad-bar, .fm-js .ad-seg { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; }
  .fm-js .ad-line { clip-path: inset(0 100% 0 0); }
  .fm-js .ad-n, .fm-js .ad-wk, .fm-js .ad-band, .fm-js .ad-t { opacity: 0; }
  .fm-js .is-in .ad-bar { transform: none; transition: transform .6s var(--ease); transition-delay: calc(var(--i) * 140ms); }
  .fm-js .is-in .ad-seg { transform: none; transition: transform .7s var(--ease); transition-delay: calc(1100ms + var(--t) * 170ms); }
  .fm-js .is-in .ad-line { clip-path: inset(0 0 0 0); transition: clip-path 2.1s linear 1.1s; }
  .fm-js .is-in .ad-t, .fm-js .is-in .ad-n { opacity: 1; transition: opacity .6s ease .5s; }
  .fm-js .is-in .ad-band { opacity: 1; transition: opacity .6s ease 3.2s; }
  .fm-js .is-in .ad-wk { opacity: 1; transition: opacity .6s ease 3.4s; }
}


/* ---------- visual: agent-queue ---------- */

.aq, .aq-m { position: absolute; inset: 0; font-size: clamp(11px, 1.75cqw, 15px); line-height: 1.3; color: var(--ink); }
.aq p, .aq-m p { margin: 0; }
.aq { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; gap: 0.85em; padding: 1.8em 2em 1.5em; }
.aq-k { display: flex; justify-content: space-between; gap: 1em; font: 400 0.85em/1.2 var(--font-mono); color: var(--muted); }
.aq-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.85em; }
.aq-goal { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0.6em 1.6em; padding: 1em 1.2em; border-radius: 1.4em 2px 2px 2px; background: var(--white); }
.aq-goal .aq-k { grid-column: 1 / -1; }
.aq-cpa { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 1em; }
.aq-fig { display: grid; gap: 0.2em; }
.aq-fig b { font: 500 2.2em/1 var(--font-mono); letter-spacing: -0.05em; color: var(--fm-primary); font-variant-numeric: tabular-nums; }
.aq-fig span { font: 400 0.85em/1.1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.aq-scale { position: relative; height: 0.6em; margin-bottom: 0.35em; border-radius: 2px; background: rgba(18,13,11,.1); }
.aq-scale .fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--now) * 100%); border-radius: 2px; background: var(--ink); transform-origin: left; }
.aq-scale .lim { position: absolute; left: calc(var(--lim) * 100%); top: -0.5em; bottom: -0.5em; width: 2px; background: var(--fm-primary-deep); }
.aq-scale .liml { position: absolute; right: calc((1 - var(--lim)) * 100%); bottom: 1.4em; font: 400 0.85em/1 var(--font-mono); color: var(--ember-deep); white-space: nowrap; transform: translateX(50%); }
.aq-spend { display: grid; align-content: end; gap: 0.45em; font: 400 0.85em/1.1 var(--font-mono); color: var(--muted); }
.aq-spend i { display: block; height: 0.6em; border-radius: 2px; background: rgba(18,13,11,.1); position: relative; overflow: hidden; }
.aq-spend i::after { content: ""; position: absolute; inset: 0; background: rgba(18,13,11,.42); transform-origin: left; transform: scaleX(var(--s)); }
.aq-auto { display: grid; align-content: center; justify-items: start; gap: 0.5em; padding: 1em 1.2em; border-radius: 2px; background: var(--white); }
.aq-auto p { font-size: 0.85em; color: var(--muted); }
.aq-sw { display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.95em; font-weight: 500; white-space: nowrap; }
.aq-swt { position: relative; display: block; width: 2.5em; height: 1.4em; border-radius: 0.85em; background: rgba(18,13,11,.18); }
.aq-swt > i { position: absolute; left: 0.2em; top: 0.2em; width: 1em; height: 1em; border-radius: 50%; background: var(--white); }
.aq-swt.on { background: var(--ink); }
.aq-swt.on > i { left: auto; right: 0.2em; }
.aq-sw em { font: 400 0.85em/1 var(--font-mono); font-style: normal; color: var(--muted); }

.aq-qh { display: flex; justify-content: space-between; font: 400 0.85em/1.2 var(--font-mono); color: var(--muted); }
.aq-n { color: var(--ink); }
.aq-q { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 0.5em; margin: 0; padding: 0; list-style: none; min-height: 0; }
.aq-c { display: grid; grid-template-columns: minmax(0, 1fr) auto 7.4em; align-items: center; gap: 1.2em; padding: 0.85em 1em 0.85em 1.1em; border-radius: 2px; background: var(--white); border-left: 3px solid transparent; transition: border-color .3s ease; }
.aq-c.one { border-left-color: var(--fm-primary); }
.aq-ct { display: grid; gap: 0.45em; min-width: 0; }
.aq-ct b { font-size: 1.05em; font-weight: 500; letter-spacing: -0.01em; }
.aq-ev { display: flex; flex-wrap: wrap; gap: 0.35em; }
.aq-ev i { padding: 0.3em 0.5em; border-radius: 2px; background: var(--mist); font: 400 0.85em/1 var(--font-mono); font-style: normal; white-space: nowrap; }
.aq-val { display: grid; justify-items: end; gap: 0.15em; text-align: right; }
.aq-val b { font: 500 1em/1.1 var(--font-mono); white-space: nowrap; }
.aq-val span { font: 400 0.85em/1 var(--font-mono); color: var(--muted); }
.aq-act { display: grid; justify-items: end; align-items: center; row-gap: 0.35em; }
.aq-c.one .aq-ap { grid-area: 1 / 1 / 3 / 2; align-self: center; }
.aq-ap { padding: 0.6em 1em; border-radius: 0.85em 2px 2px 2px; background: var(--fm-primary-deep); color: var(--white); font-size: 0.9em; font-weight: 500; transition: background-color .15s ease, transform .15s ease; }
.aq-c:not(.one) .aq-ap { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.aq-wait { display: none; }
.aq-c.one .aq-ap { visibility: hidden; opacity: 0; }
.aq-c.one .aq-done { grid-area: 1 / 1; }
.aq-c.one .aq-undo { grid-area: 2 / 1; }
.aq-done { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.9em; font-weight: 500; }
.aq-done svg { width: 1.1em; height: 1.1em; }
.aq-done path, .aq-ok path { fill: none; stroke: var(--fm-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aq-undo { font: 400 0.85em/1 var(--font-mono); color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }

.aq-read { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 1.2em; padding: 0.85em 1.2em; border-radius: 2px; background: var(--ink); color: var(--white); }
.aq-rk { font: 400 0.85em/1.2 var(--font-mono); color: var(--muted-on-ink); }
.aq-rt { font-size: 0.95em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.aq-rv { display: flex; align-items: baseline; gap: 0.6em; }
.aq-rv span { font: 400 0.85em/1 var(--font-mono); color: var(--muted-on-ink); white-space: nowrap; }
.aq-rv b { font: 500 1.5em/1 var(--font-mono); letter-spacing: -0.04em; color: var(--fm-tertiary); font-variant-numeric: tabular-nums; }
.aq-days { display: flex; gap: 0.3em; margin: 0; padding: 0; list-style: none; }
.aq-days li { display: grid; place-items: center; min-width: 2.1em; height: 1.7em; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); font: 400 0.85em/1 var(--font-mono); color: var(--muted-on-ink); }
.aq-days li.on { background: var(--white); box-shadow: none; color: var(--ink); }
.aq-foot { font: 400 0.85em/1.2 var(--font-mono); color: var(--ink); }

@container (max-width: 640px) {
  .aq { padding: 1.5em 1.6em 1.3em; gap: 0.65em; }
  .aq-c { grid-template-columns: minmax(0, 1fr) auto 6.4em; gap: 0.9em; }
  .aq-ev i + i { display: none; }
  .aq-rt { display: none; }
  .aq-read { grid-template-columns: auto minmax(0, 1fr) auto; }
}
@container (max-width: 520px) {
  .aq { font-size: clamp(11px, 3.1cqw, 14px); padding: 1.3em; }
  .aq-top { grid-template-columns: minmax(0, 1fr); }
  .aq-goal { grid-template-columns: minmax(0, 1fr); gap: 0.85em; }
  .aq-auto { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: 0.85em 1em; gap: 1em; }
  .aq-c { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 0.5em 0.85em; padding: 0.85em 0.85em 0.85em 0.9em; }
  .aq-ct { grid-column: 1 / -1; }
  .aq-val { justify-items: start; text-align: left; }
  .aq-act { grid-template-columns: auto auto; justify-content: end; column-gap: 0.85em; }
  .aq-c.one .aq-ap { grid-area: 1 / 1 / 2 / 3; }
  .aq-c.one .aq-done { grid-area: 1 / 1; }
  .aq-c.one .aq-undo { grid-area: 1 / 2; }
  .aq-read { grid-template-columns: minmax(0, 1fr) auto; gap: 0.5em 1em; }
  .aq-days { display: none; }
}

/* Motion: beat 0 resets at once, 1 fills the goal and brings the queue in, 2 presses Approve, 3 is
   Applied, 4 the read at 7 days. */
@media (prefers-reduced-motion: no-preference) {
  .fm-js .aq[data-beat="0"] * { transition: none !important; }
  .fm-js .aq[data-beat="0"] .aq-scale .fill { transform: scaleX(0); }
  .fm-js .aq[data-beat="0"] .aq-spend i::after { transform: scaleX(0); }
  .fm-js .aq-scale .fill { transition: transform 1.1s var(--ease) .2s; }
  .fm-js .aq-spend i::after { transition: transform 1.1s var(--ease) .4s; }
  .fm-js .aq[data-beat="0"] .aq-c { opacity: 0; transform: translateY(0.85em); }
  .fm-js .aq-c { transition: opacity .5s ease, transform .5s var(--ease), border-color .3s ease, background-color .3s ease; transition-delay: calc(var(--i) * 160ms + .5s); }
  .fm-js .aq:not([data-beat="3"]):not([data-beat="4"]) .aq-c.one { border-left-color: transparent; transition-delay: 0s; }
  .fm-js .aq:not([data-beat="3"]):not([data-beat="4"]) .aq-c.one .aq-ap { visibility: visible; opacity: 1; }
  .fm-js .aq:not([data-beat="3"]):not([data-beat="4"]) .aq-c.one .aq-done, .fm-js .aq:not([data-beat="3"]):not([data-beat="4"]) .aq-c.one .aq-undo { opacity: 0; visibility: hidden; }
  .fm-js .aq[data-beat="2"] .aq-c.one .aq-ap { background: var(--ink); transform: scale(.94); }
  .fm-js .aq[data-beat="3"] .aq-c.one .aq-done, .fm-js .aq[data-beat="3"] .aq-c.one .aq-undo { transition: opacity .35s ease; }
  .fm-js .aq[data-beat="3"] .aq-c.one .aq-undo { transition-delay: .5s; }
  .fm-js .aq:not([data-beat="4"]) .aq-read { opacity: 0; transform: translateY(0.85em); }
  .fm-js .aq:not([data-beat="4"]) .aq-days li.on { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); color: var(--muted-on-ink); }
  .fm-js .aq[data-beat="4"] .aq-read { transition: opacity .5s ease, transform .5s var(--ease); }
  .fm-js .aq[data-beat="4"] .aq-days li.on { transition: background-color .3s ease .9s, color .3s ease .9s; }
}

/* ---------- The still panels ---------- */
.aq-m { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1.2em; padding: 2em 2.2em; font-size: clamp(11px, 2cqw, 16px); }
.aq-m > ul, .aq-m > .aq-chat { align-self: center; }
.aq-m .aq-note { font-size: 0.95em; color: var(--muted); }
.on-ink .aq-m { color: var(--white); }

.aq-mv { display: grid; align-content: center; gap: 1.4em; margin: 0; padding: 0; list-style: none; }
.aq-mv li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); grid-template-rows: auto auto; gap: 0.4em 1em; align-items: center; }
.aq-mv b { grid-row: 1 / 3; font-size: 1.15em; font-weight: 500; }
.aq-mv .bars { display: grid; gap: 0.3em; }
.aq-mv .bars i { display: block; height: 1.3em; border-radius: 2px; transform-origin: left; }
.aq-mv .was { width: calc(var(--a) * 100%); background: rgba(18,13,11,.14); }
.aq-mv .to { width: calc(var(--b) * 100%); background: rgba(18,13,11,.6); }
.aq-mv .to.up { background: var(--fm-primary); }
.aq-mv em { font: 400 0.85em/1 var(--font-mono); font-style: normal; color: var(--muted); }
.aq-range { display: grid; gap: 0.6em; }
.aq-range p { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; font: 400 0.85em/1.2 var(--font-mono); color: var(--muted); }
.aq-range b { font: 500 1.5em/1 var(--font-mono); letter-spacing: -0.04em; color: var(--fm-tertiary); white-space: nowrap; }
.aq-range .trk { position: relative; display: block; height: 0.85em; border-radius: 2px; background: rgba(18,13,11,.08); }
.aq-range .rg { position: absolute; top: 0; bottom: 0; left: calc(var(--lo) * 100%); width: calc((var(--hi) - var(--lo)) * 100%); border-radius: 2px; background: rgba(238,70,43,.4); }
.aq-range .mid { position: absolute; top: -0.35em; bottom: -0.35em; left: calc(var(--mid) * 100%); width: 3px; background: var(--fm-primary); }

.aq-cm { position: relative; display: grid; align-content: center; gap: 0.85em; margin: 0; padding: 0; list-style: none; }
.aq-cm li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 3em; align-items: center; gap: 1em; }
.aq-cm b { font-size: 0.98em; font-weight: 500; }
.aq-cm .bar { position: relative; display: block; height: 1em; border-radius: 2px; background: rgba(18,13,11,.06); }
.aq-cm .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); border-radius: 2px; background: rgba(18,13,11,.55); transform-origin: left; }
.aq-cm li.over .bar i { background: var(--fm-primary); }
.aq-cm em { font: 500 0.95em/1 var(--font-mono); font-style: normal; text-align: right; }
.aq-cm li.over em { color: var(--ember-deep); }
.aq-cm .aq-limrow { position: absolute; inset: -0.6em 0; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 3em; pointer-events: none; }
.aq-cm .limline { grid-column: 2; position: relative; align-self: stretch; }
.aq-cm .limline::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--lim) * 100%); width: 2px; background: var(--fm-primary-deep); }
.aq-cm .aq-limrow .liml { position: absolute; top: -0.9em; left: calc(var(--lim) * 100%); transform: translate(-50%, -100%); white-space: nowrap; font: 400 0.85em/1 var(--font-mono); color: var(--ember-deep); }

.aq-dr { display: grid; align-content: center; gap: 0.6em; margin: 0; padding: 0; list-style: none; }
.aq-dr li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; gap: 0.35em 1em; align-items: center; padding: 1em 1.2em; border-radius: 2px; background: var(--mist); }
.aq-dr li:first-child { border-radius: 1.4em 2px 2px 2px; }
.aq-dr .k { font: 400 0.85em/1.1 var(--font-mono); color: var(--muted); }
.aq-dr b { grid-column: 1; font-size: 1.05em; font-weight: 500; }
.aq-dr .d { grid-column: 1; font: 400 0.85em/1.2 var(--font-mono); color: var(--muted); }
.aq-dr .pz { grid-column: 2; grid-row: 1 / 4; padding: 0.4em 0.85em; border-radius: 2px; background: var(--ink); color: var(--white); font: 400 0.85em/1 var(--font-mono); }

.aq-automate { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.aq-master { padding: 0.9em 1.1em; border-radius: 1.4em 2px 2px 2px; background: var(--mist); }
.aq-master .aq-sw { font-size: 1.1em; }
.aq-kinds { display: grid; align-content: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.aq-kinds li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1.2em; padding: 0.85em 0.2em; border-bottom: 1px solid var(--line-strong); }
.aq-kinds b { font-weight: 500; }
.aq-kinds em { font: 400 0.85em/1 var(--font-mono); font-style: normal; color: var(--muted); }
.aq-kinds .aq-swl { display: none; }
.aq-guard { display: flex; flex-wrap: wrap; gap: 0.4em; }
.aq-guard span { padding: 0.4em 0.6em; border-radius: 2px; background: var(--mist); font: 400 0.85em/1 var(--font-mono); }

.aq-chat { display: grid; align-content: start; gap: 0.85em; }
.aq-chat .me { justify-self: end; max-width: 78%; padding: 0.85em 1em; border-radius: 1em 2px 2px 2px; background: var(--ink); color: var(--white); font-size: 0.98em; }
.aq-chat .it { display: grid; justify-items: start; gap: 0.6em; max-width: 86%; padding: 0.9em 1.1em; border-radius: 2px; background: var(--mist); }
.aq-chat .it p { font-size: 0.98em; }
.aq-pill { padding: 0.4em 0.85em; border-radius: 2px; background: var(--fm-primary-deep); color: var(--white); font: 400 0.85em/1 var(--font-mono); }
.aq-log { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.aq-log li { display: grid; grid-template-columns: 8.4em minmax(0, 1fr) auto; align-items: center; gap: 1em; padding: 0.85em 0; border-bottom: 1px solid var(--line-strong); }
.aq-log span { font: 400 0.85em/1.1 var(--font-mono); color: var(--muted); }
.aq-log b { font-size: 0.95em; font-weight: 500; }
.aq-log .u { text-decoration: underline; text-decoration-color: var(--line-strong); }
.aq-log .ok { display: inline-flex; align-items: center; gap: 0.3em; color: var(--ink); }
.aq-log .ok svg { width: 1.1em; height: 1.1em; }

@container (max-width: 520px) {
  .aq-m { font-size: clamp(11px, 3.1cqw, 14px); padding: 1.4em; gap: 0.9em; }
  .aq-mv li { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .aq-mv b { grid-row: auto; }
  .aq-cm li, .aq-cm .aq-limrow { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) 2.6em; gap: 0.6em; }
  .aq-kinds li { grid-template-columns: minmax(0, 1fr) auto; }
  .aq-kinds em { grid-row: 2; }
  .aq-log li { grid-template-columns: minmax(0, 1fr) auto; }
  .aq-log li > span:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .fm-js .aq-m li, .fm-js .aq-chat > *, .fm-js .aq-range, .fm-js .aq-guard, .fm-js .aq-master { opacity: 0; transform: translateY(0.6em); }
  .fm-js .aq-mv .to, .fm-js .aq-cm .bar i { transform: scaleX(0); }
  .fm-js .aq-range .rg { transform: scaleX(0); }
  .is-in .aq-m li, .is-in .aq-chat > *, .is-in .aq-range, .is-in .aq-guard, .is-in .aq-master { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 140ms + .1s); }
  .is-in .aq-chat > :nth-child(2) { transition-delay: .7s; }
  .is-in .aq-range, .is-in .aq-guard { transition-delay: .9s; }
  .is-in .aq-mv .to, .is-in .aq-cm .bar i { transform: none; transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 140ms + .5s); }
  .is-in .aq-range .rg { transform: none; transition: transform .8s var(--ease) 1.3s; }
}


/* ---------- visual: ai-answers ---------- */

.aa { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 1.4em 1.8em; padding: 2em 2.2em; font-size: clamp(11px, 1.72cqw, 15px); line-height: 1.3; color: var(--white); }
.aa p { margin: 0; }
.aa-ask { grid-column: 1 / -1; display: grid; gap: 0.6em; }
.aa-k { display: flex; justify-content: space-between; gap: 1em; font: 400 0.95em/1.2 var(--font-mono); color: var(--muted-on-ink); }
.aa-field { position: relative; display: flex; align-items: center; min-height: 3.4em; padding: 0.85em 1.2em; border-radius: 1.2em 2px 2px 2px; background: var(--white); color: var(--ink); font-size: 1.15em; font-weight: 500; letter-spacing: -0.01em; }
.aa-q { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.aa-caret { flex: none; width: 2px; height: 1.2em; margin-left: 2px; background: var(--ink); opacity: 0; }

.aa-rows { display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; min-height: 0; }
.aa-row { display: grid; grid-template-columns: 8.6em minmax(0, 1fr) 5.4em; align-items: center; gap: 1.2em; min-height: 0; border-top: 1px solid rgba(255,255,255,.1); }
.aa-row:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.aa-eng { display: flex; align-items: center; gap: 0.6em; min-width: 0; font-size: 1.02em; font-weight: 500; white-space: nowrap; }
.aa-eng img { flex: none; width: 1.4em; height: 1.4em; object-fit: contain; filter: brightness(0) invert(1); }
.aa-eng.is-word img { width: auto; height: 1.5em; max-width: 100%; }
.aa-ans { display: grid; gap: 0.55em; min-width: 0; }
.aa-l { display: flex; align-items: center; gap: 0.5em; min-width: 0; height: 1.9em; }
.aa-l2 { height: 0.85em; }
.aa-l i { display: block; flex: 0 1 calc(var(--w) * 100%); min-width: 0.85em; height: 0.85em; border-radius: 2px; background: rgba(255,255,255,.2); transform-origin: left; }
.aa-name { flex: none; padding: 0.4em 0.85em; border-radius: 2px; background: rgba(255,255,255,.12); font-size: 0.95em; font-weight: 500; line-height: 1.1; white-space: nowrap; transform-origin: left; }
.aa-name.is-you { background: var(--fm-primary-deep); }
.aa-res { display: grid; justify-items: end; gap: 0.15em; text-align: right; }
.aa-res b { font: 500 1.9em/1 var(--font-mono); letter-spacing: -0.04em; color: var(--fm-primary); }
.aa-res span { font: 400 0.85em/1.1 var(--font-mono); color: var(--muted-on-ink); }
.aa-res .aa-no { font-size: 0.9em; color: rgba(255,255,255,.5); white-space: nowrap; }

.aa-score { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1.2em; align-content: start; min-height: 0; padding: 1.4em; border-radius: 2px; background: rgba(255,255,255,.06); }
.aa-ring { position: relative; width: min(100%, 9.6em); justify-self: center; aspect-ratio: 1; }
.aa-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.aa-ring circle { fill: none; stroke-width: 9; }
.aa-ring .trk { stroke: rgba(255,255,255,.1); }
.aa-ring .was { stroke: rgba(255,255,255,.32); stroke-dasharray: var(--v) 100; }
.aa-ring .now { stroke: var(--fm-primary); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v)); }
.aa-pct { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.2em; }
.aa-fig { font: 500 2.9em/1 var(--font-mono); letter-spacing: -0.05em; color: var(--fm-primary); font-variant-numeric: tabular-nums; }
.aa-pct span { font: 400 0.85em/1 var(--font-mono); color: var(--muted-on-ink); }
.aa-sum { display: grid; align-content: start; gap: 0.5em; min-height: 0; }
.aa-st { font-size: 1em; font-weight: 500; line-height: 1.25; }
.aa-up { font: 400 0.9em/1.2 var(--font-mono); color: var(--fm-primary); }
.aa-trend { position: relative; height: 4em; margin-top: 0.4em; }
.aa-trend svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.aa-trend path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.aa-trend .grid { stroke: rgba(255,255,255,.1); stroke-width: 1; }
.aa-trend .body { stroke: rgba(255,255,255,.62); stroke-width: 1.5; }
.aa-trend .last { stroke: var(--fm-primary); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.aa-dot { position: absolute; left: var(--x); top: var(--y); width: 0.85em; height: 0.85em; margin: -0.4em 0 0 -0.4em; border-radius: 50%; background: var(--fm-primary); }
.aa-tl { display: flex; justify-content: space-between; font: 400 0.85em/1.2 var(--font-mono); color: var(--muted-on-ink); }

@container (max-width: 640px) {
  .aa { padding: 1.6em 1.7em; gap: 1.2em 1.4em; }
  .aa-row { grid-template-columns: 7.6em minmax(0, 1fr) 4.6em; gap: 0.9em; }
  .aa-l2 { display: none; }
  .aa-ans { gap: 0; }
}
@container (max-width: 520px) {
  .aa { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; font-size: clamp(11px, 3.1cqw, 14px); padding: 1.4em; }
  .aa-k span + span { display: none; }
  .aa-field { min-height: 3em; font-size: 1.05em; padding: 0.6em 0.9em; }
  .aa-q { white-space: normal; overflow: visible; }
  .aa-row { grid-template-columns: 8em minmax(0, 1fr) 4.4em; gap: 0.85em; }
  .aa-res .aa-no { font-size: 0.85em; white-space: nowrap; }
  .aa-res span:not(.aa-no) { display: none; }
  .aa-res b { font-size: 1.6em; }
  .aa-score { grid-template-columns: 6.6em minmax(0, 1fr); grid-template-rows: auto; align-items: center; gap: 1.1em; padding: 1em 1.1em; }
  .aa-ring { width: 6.6em; }
  .aa-fig { font-size: 1.8em; }
  .aa-pct span { display: none; }
  .aa-trend { height: 2.6em; margin-top: 0.2em; }
  .aa-tl { display: none; }
}

/* Motion: only when the runtime is coming and motion is allowed. data-beat 0 resets at once (no
   transition, so nothing plays backwards); each later beat transitions in. */
@media (prefers-reduced-motion: no-preference) {
  .fm-js .aa[data-beat="0"] .aa-l > *, .fm-js .aa[data-beat="0"] .aa-res, .fm-js .aa[data-beat="0"] .aa-up, .fm-js .aa[data-beat="0"] .aa-dot { transition: none; }
  .fm-js .aa[data-beat="0"] .aa-l > * { transform: scaleX(0); }
  .fm-js .aa[data-beat="0"] .aa-name, .fm-js .aa[data-beat="1"] .aa-name { color: transparent; background: rgba(255,255,255,.2); }
  .fm-js .aa[data-beat="0"] .aa-res, .fm-js .aa[data-beat="1"] .aa-res { opacity: 0; transform: translateX(-0.6em); }
  .fm-js .aa[data-beat="0"] .aa-caret { animation: aa-blink 0.9s steps(1) infinite; }
  .fm-js .aa:not([data-beat="3"]) .aa-ring .now { stroke-dashoffset: 100; transition: none; }
  .fm-js .aa:not([data-beat="3"]) .aa-trend .last { stroke-dashoffset: 1; transition: none; }
  .fm-js .aa:not([data-beat="3"]) .aa-dot, .fm-js .aa:not([data-beat="3"]) .aa-up, .fm-js .aa:not([data-beat="3"]) .aa-tl span + span { opacity: 0; transition: none; }
  .fm-js .aa[data-beat="3"] .aa-tl span + span { transition: opacity .3s ease 1.5s; }
  .fm-js .aa:not([data-beat="3"]) .aa-ring .was { opacity: 0.35; }

  .fm-js .aa[data-beat="1"] .aa-l > * { transition: transform .55s var(--ease); transition-delay: calc(var(--i) * 130ms + var(--j) * 170ms); }
  .fm-js .aa[data-beat="2"] .aa-name { transition: color .35s ease, background-color .45s ease; transition-delay: calc(var(--i) * 110ms); }
  .fm-js .aa[data-beat="2"] .aa-res { transition: opacity .45s ease, transform .45s var(--ease); transition-delay: calc(var(--i) * 110ms + 150ms); }
  .fm-js .aa[data-beat="3"] .aa-ring .now { transition: stroke-dashoffset 1.3s var(--ease) .1s; }
  .fm-js .aa[data-beat="3"] .aa-ring .was { transition: opacity .5s ease; }
  .fm-js .aa[data-beat="3"] .aa-trend .last { transition: stroke-dashoffset .7s var(--ease) .9s; }
  .fm-js .aa[data-beat="3"] .aa-dot { transition: opacity .3s ease 1.5s; }
  .fm-js .aa[data-beat="3"] .aa-up { transition: opacity .5s ease 1.3s; }
}
@keyframes aa-blink { 0% { opacity: 1; } 50% { opacity: 0; } }

/* The gaps board */
.aa-gaps { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1.2em; padding: 2em 2.2em; font-size: clamp(11px, 1.72cqw, 15px); line-height: 1.3; color: var(--ink); }
.aa-gaps p { margin: 0; }
.aa-gh { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; font: 400 0.95em/1.2 var(--font-mono); color: var(--muted); }
.aa-gh b { font-weight: 500; color: var(--ink); }
.aa-gl { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 0.85em; margin: 0; padding: 0; list-style: none; min-height: 0; }
.aa-gl > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; gap: 0.85em 1.4em; padding: 1em 1.3em; border-radius: 2px; background: var(--mist); }
.aa-gl > li:first-child { border-radius: 1.4em 2px 2px 2px; }
.aa-gq { display: grid; gap: 0.3em; min-width: 0; }
.aa-gq b { font-size: 1.15em; font-weight: 500; letter-spacing: -0.01em; }
.aa-gq span { font: 400 0.85em/1.2 var(--font-mono); color: var(--muted); }
.aa-gs { display: flex; align-self: center; gap: 0.3em; margin: 0; padding: 0; list-style: none; }
.aa-gs li { padding: 0.45em 0.85em; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(18,13,11,.16); font: 400 0.85em/1 var(--font-mono); color: var(--muted); }
.aa-gs li.done { background: rgba(18,13,11,.08); box-shadow: none; color: var(--ink); }
.aa-gs li.on { background: var(--ink); box-shadow: none; color: var(--white); }
.aa-gn { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.85em; font-size: 0.95em; color: var(--ink); }
.aa-gd { display: inline-flex; gap: 0.25em; }
.aa-gd i { width: 0.85em; height: 0.85em; border-radius: 50%; background: rgba(18,13,11,.14); }
.aa-gd i.y { background: var(--fm-primary); }
.aa-gf { font-size: 0.95em; color: var(--muted); }
@container (max-width: 520px) {
  .aa-gaps { font-size: clamp(11px, 3.1cqw, 14px); padding: 1.4em; gap: 1em; }
  .aa-gl > li { grid-template-columns: minmax(0, 1fr); padding: 0.9em 1em; gap: 0.6em; }
  .aa-gq b { font-size: 1.05em; }
  .aa-gq span { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .fm-js .aa-gl > li { opacity: 0; transform: translateY(0.85em); }
  .fm-js .aa-gs li.done, .fm-js .aa-gs li.on { background: transparent; box-shadow: inset 0 0 0 1px rgba(18,13,11,.16); color: var(--muted); }
  .fm-js .aa-gd i.y { background: rgba(18,13,11,.14); }
  .fm-js .aa-gn { opacity: 0; }
  .is-in .aa-gl > li { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * 160ms); }
  .is-in .aa-gs li.done { background: rgba(18,13,11,.08); box-shadow: none; color: var(--ink); }
  .is-in .aa-gs li.on { background: var(--ink); box-shadow: none; color: var(--white); }
  .is-in .aa-gs li.done, .is-in .aa-gs li.on { transition: background-color .35s ease, color .35s ease, box-shadow .35s ease; transition-delay: calc(var(--i) * 160ms + var(--k) * 380ms + 700ms); }
  .is-in .aa-gn { opacity: 1; transition: opacity .5s ease; transition-delay: calc(var(--i) * 160ms + 1.7s); }
  .is-in .aa-gd i.y { background: var(--fm-primary); transition: background-color .3s ease; transition-delay: calc(var(--d) * 260ms + 2.1s); }
}


/* ---------- visual: connect-orbit ---------- */

.co { position: absolute; inset: 0; font-size: max(10.5px, 1.3cqw); color: var(--white); }
.co p { margin: 0; }
.co-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.co-sm { display: none; }
.co-line, .co-pulse { fill: none; stroke-linecap: round; }
.co-line { stroke: rgba(255,255,255,.34); stroke-width: 2; }
.co-pulse { display: none; stroke: var(--fm-primary); stroke-width: 9; stroke-dasharray: 0.012 1.2; }
.co-chip, .co-hub, .co-lab { position: absolute; left: var(--x); top: var(--y); }
.co-chip { display: flex; align-items: center; width: var(--w); height: var(--h); padding: 0 0.9em; border-radius: 2px; background: var(--white); color: var(--ink); }
.co-logo { display: flex; align-items: center; gap: 0.5em; min-width: 0; height: 100%; }
.co-logo img { display: block; height: 38%; width: auto; max-width: 100%; }
.co-logo img[style] { height: auto; width: min(100%, calc(var(--r) * 1.55em)); }
.co-shopify .co-logo img, .co-astro .co-logo img { width: min(100%, calc(var(--r) * 1.85em)); }
.co-logo .co-ic { width: 1.35em; height: 1.35em; flex: none; }
.co-t { font: 500 0.98em/1.1 var(--font-sans); letter-spacing: -0.01em; white-space: nowrap; }
.co-hubspot .co-t { font-size: 1.15em; letter-spacing: -0.02em; }
.co-r { display: none; font: 400 0.95em/1.2 var(--font-mono); color: var(--muted); }
.co-lab { font: 400 0.95em/1 var(--font-mono); color: var(--muted-on-ink); white-space: nowrap; transform: translateY(-100%); }
.co-lab.end { transform: translate(-100%, -100%); }
.co-lab.under { transform: none; }
.co-lab.end.under { transform: translateX(-100%); }
.co-h { position: absolute; top: 4.4%; font: 400 0.95em/1.2 var(--font-mono); color: var(--muted-on-ink); }
.co-h1 { left: 2%; top: 22.4%; }
.co-h2 { left: 76%; top: 6.6%; }
.co-hub { display: grid; place-content: center; justify-items: center; gap: 0.9em; width: var(--w); height: var(--h); border-radius: 20px 2px 2px 2px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.co-hub img { width: 62%; height: auto; margin: 0 auto; }
.co-n { display: flex; align-items: center; gap: 0.5em; font: 400 0.95em/1 var(--font-mono); color: var(--muted-on-ink); white-space: nowrap; }
.co-n b { font-weight: 500; color: var(--white); font-variant-numeric: tabular-nums; }
.co-n i { width: 0.6em; height: 0.6em; border-radius: 2px; background: var(--fm-primary); }
.co-foot { position: absolute; left: 0; right: 0; bottom: 5.5%; text-align: center; font: 400 0.95em/1.2 var(--font-mono); color: var(--white); }

/* A narrow stage: every source in one column, feeding the centre on the right. */
@container (max-width: 520px) {
  .co { font-size: max(10px, 2.9cqw); }
  .co-wide, .co-lab { display: none; }
  .co-sm { display: block; }
  .co-line { stroke-width: 3.5; }
  .co-pulse { stroke-width: 16; }
  .co-chip, .co-hub { left: var(--xs); top: var(--ys); width: var(--ws); height: var(--hs); }
  .co-chip { flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.3em; padding: 0 0.8em; }
  .co-logo { height: auto; }
  .co-logo img { height: 1.15em; }
  .co-logo img[style] { width: auto; height: 1.15em; max-width: 100%; }
  .co-shopify .co-logo img, .co-astro .co-logo img { height: 1.45em; }
  .co-r { display: block; }
  .co-h1 { left: 4%; top: 2%; }
  .co-h2 { left: 4%; top: 32.7%; }
  .co-hub img { width: 72%; }
  .co-foot { bottom: 3%; left: 4%; right: 4%; text-align: left; }
}

/* Motion: each source starts dim and unconnected, then connects in turn; pulses only while in view. */
@media (prefers-reduced-motion: no-preference) {
  .fm-js .co-chip { opacity: 0.32; }
  .fm-js .co-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .fm-js .co-lab, .fm-js .co-foot { opacity: 0; }
  .fm-js .co-hub { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.2); }
  .is-in .co-chip { opacity: 1; transition: opacity .5s ease var(--d); }
  .is-in .co-line { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease) var(--d); }
  .is-in .co-lab { opacity: 1; transition: opacity .5s ease calc(var(--d) + .5s); }
  .is-in .co-hub { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); transition: box-shadow 1.2s ease 1s; }
  .is-in .co-foot { opacity: 1; transition: opacity .7s ease var(--d); }
  .fm-js .is-in .co-pulse { display: block; opacity: 0; animation: co-flow var(--t) linear var(--d) infinite; }
}
@keyframes co-flow {
  0% { stroke-dashoffset: 0.012; opacity: 0; }
  8% { opacity: 1; }
  62% { stroke-dashoffset: -1; opacity: 1; }
  66%, 100% { stroke-dashoffset: -1; opacity: 0; }
}


/* ---------- visual: consent-gate ---------- */

.cg { --gx: 50%; --bx: 75%; position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1.1em; padding: 1.5em 1.7em 1.3em; font-size: max(10px, 1.7cqw); line-height: 1.25; color: var(--white); }
.cg p { margin: 0; }
.cg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7em 1.2em; }
.cg-seg { display: inline-flex; padding: 0.25em; border-radius: 10px 2px 2px 2px; background: rgba(255,255,255,.08); }
.cg-seg button { padding: 0.65em 1em; border: 0; border-radius: 2px; background: transparent; color: var(--muted-on-ink); font: 500 1em/1 var(--font-sans); cursor: pointer; transition: background-color .25s, color .25s; }
.cg-seg button:first-child { border-radius: 8px 2px 2px 2px; }
.cg-seg button:hover { color: var(--white); }
.cg-seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.cg-rule { font: 400 0.9em/1.3 var(--font-mono); color: var(--muted-on-ink); }
.cg .r-ca, .cg[data-region="ca"] .r-uk { display: none; }
.cg[data-region="ca"] .r-ca { display: inline; }

.cg-flow { position: relative; display: grid; grid-template-rows: 1fr 1fr; min-height: 0; }
.cg-gate { position: absolute; left: var(--gx); top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255,255,255,.22); }
.cg-lane { position: relative; }
.cg-ll { position: absolute; left: 0; bottom: calc(50% + 1.75em); font: 400 0.88em/1.2 var(--font-mono); color: var(--muted-on-ink); }
.cg-track { position: absolute; left: 0; width: var(--bx); top: 50%; height: 2.2em; margin-top: -1.1em; overflow: hidden; }
.cg-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(255,255,255,.18); }
.cg-chip { position: absolute; top: 0.2em; left: 0; display: inline-flex; align-items: center; height: 1.8em; padding: 0 0.7em; border-radius: 2px; background: #2b2624; color: var(--white); font: 400 0.92em/1 var(--font-mono); white-space: nowrap; will-change: transform, opacity; }
.cg-lane.m .cg-chip { background: var(--ember-deep); }
.cg-chip.held { opacity: .35; }
.cg-static { position: absolute; left: 0; right: 0; top: 50%; height: 2.2em; margin-top: -1.1em; }
.cg-static .cg-chip { left: auto; }
.cg.is-live .cg-static { display: none; }
.cg[data-a="0"] .cg-lane.a .past, .cg[data-m="0"] .cg-lane.m .past { display: none; }
.cg[data-a="0"] .cg-lane.a .at, .cg[data-m="0"] .cg-lane.m .at { opacity: .35; }
.cg-sw { position: absolute; left: var(--gx); top: 50%; z-index: 2; transform: translate(-50%, -50%); display: grid; justify-items: center; }
.cg-swl { position: absolute; bottom: calc(100% + 0.55em); left: 50%; transform: translateX(-50%); font: 400 0.88em/1.2 var(--font-mono); color: var(--muted-on-ink); white-space: nowrap; }
.cg-sw button { position: relative; width: 3em; height: 1.7em; padding: 0; border: 0; border-radius: 1em; background: #3a3532; box-shadow: 0 0 0 0.3em var(--ink); cursor: pointer; transition: background-color .3s ease; }
.cg-sw button i { position: absolute; top: 0.25em; left: 0.25em; width: 1.2em; height: 1.2em; border-radius: 50%; background: rgba(255,255,255,.7); transition: transform .3s var(--ease), background-color .3s; }
.cg-sw button[aria-checked="true"] { background: var(--fm-primary); }
.cg-sw button[aria-checked="true"] i { transform: translateX(1.3em); background: var(--white); }
.cg-sw button:focus-visible { outline: 2px solid var(--white); outline-offset: 0.35em; }
.cg-box { position: absolute; left: var(--bx); right: 0; top: 0; bottom: 0; display: grid; grid-template-rows: auto 1fr 1fr; padding: 0.8em 1em; border-radius: 1em 2px 2px 2px; background: rgba(255,255,255,.08); }
.cg-name { font: 500 1.2em/1.1 var(--font-sans); letter-spacing: -0.02em; }
.cg-row { display: grid; align-content: center; gap: 0.25em; }
.cg-row span { font: 400 0.88em/1.2 var(--font-mono); color: var(--muted-on-ink); }
.cg-row b { font: 500 1.7em/1 var(--font-mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; transition: color .3s; }
.cg-row.m b { color: var(--fm-primary); }
.cg[data-a="0"] .cg-row.a b, .cg[data-m="0"] .cg-row.m b { color: rgba(255,255,255,.35); }
.cg-end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.4em 1.2em; }
.cg-status { font: 500 1em/1.3 var(--font-mono); }
.cg-foot { font: 400 0.9em/1.3 var(--font-mono); color: var(--muted-on-ink); }

@container (max-width: 520px) {
  .cg { --gx: 43%; --bx: 69%; font-size: max(10px, 2.9cqw); padding: 1.2em 1.1em 1em; gap: 0.9em; }
  .cg-seg { width: 100%; }
  .cg-seg button { flex: 1; padding: 0.7em 0.5em; }
  .cg-chip { padding: 0 0.5em; }
  .cg-box { padding: 0.7em 0.7em; }
  .cg-name { font-size: 1.05em; }
  .cg-row b { font-size: 1.4em; }
  .cg-end { display: grid; }
  .cg-static .pre { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .fm-js .cg-box, .fm-js .cg-sw, .fm-js .cg-gate { opacity: 0; }
  .is-in .cg-gate { opacity: 1; transition: opacity .5s ease .1s; }
  .is-in .cg-sw { opacity: 1; transition: opacity .5s ease .3s; }
  .is-in .cg-box { opacity: 1; transition: opacity .5s ease .5s; }
  .cg-row b.bump { color: var(--white); }
}


/* ---------- visual: disagree ---------- */

.dg > .wrap > .heading { margin: 0 0 clamp(28px, 3vw, 44px); }
.dg-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap) clamp(32px, 4vw, 64px); align-items: center; }
.dg-tabs { position: relative; display: grid; gap: 4px; }
.dg-tabs button { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 20px 20px; border: 0; border-radius: var(--radius); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color .25s ease; }
.dg-tabs button:hover { background: rgba(255,255,255,.55); }
.dg-tabs button[aria-selected="true"] { background: var(--white); }
.dg-tabs button:first-child[aria-selected="true"] { border-radius: var(--corner) var(--radius) var(--radius) var(--radius); }
.dg-tabs button:focus-visible { outline: 2px solid var(--fm-primary); outline-offset: 2px; }
.dg-step { font: 400 13px/1 var(--font-sans); color: var(--muted); }
.dg-step::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 1px; background: var(--line-strong); vertical-align: 0; }
[aria-selected="true"] > .dg-step::before { background: var(--fm-primary); }
.dg-title, .dg-text { text-wrap: pretty; }
.dg-title { font-weight: 500; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.25; letter-spacing: -0.015em; }
.dg-text { display: none; font-size: 16px; line-height: 1.5; color: var(--muted); }
[aria-selected="true"] > .dg-text { display: block; }
.dg-prog { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; overflow: hidden; }
.dg-prog i { display: block; height: 100%; background: var(--fm-primary); transform: scaleX(0); transform-origin: left; }
.dg.is-auto [aria-selected="true"] .dg-prog i { animation: dg-fill var(--dg-ms, 9000ms) linear forwards; }
.dg.is-auto.is-held [aria-selected="true"] .dg-prog i { animation-play-state: paused; }
@keyframes dg-fill { to { transform: scaleX(1); } }

/* The stage: every panel in one cell, so it keeps the tallest one's height and nothing below moves. */
.dg-stage { display: grid; padding: clamp(24px, 3vw, 40px); border-radius: var(--corner) var(--radius) var(--radius) var(--radius); background: var(--ink); color: var(--white); }
.dg-panel { grid-area: 1 / 1; min-width: 0; }
.fm-js .dg-panel { visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s linear .35s; }
.fm-js .dg[data-tab="0"] .dg-panel[data-i="0"], .fm-js .dg[data-tab="1"] .dg-panel[data-i="1"], .fm-js .dg[data-tab="2"] .dg-panel[data-i="2"], .fm-js .dg[data-tab="3"] .dg-panel[data-i="3"] { visibility: visible; opacity: 1; transition: opacity .35s ease; }
html:not(.fm-js) .dg-panel + .dg-panel { margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.12); }
html:not(.fm-js) .dg-panel { grid-area: auto; }
.dg-cap { grid-area: 2 / 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 0; font: 400 12px/1.4 var(--font-sans); color: var(--muted-on-ink); }
.dg-stage p, .dg-stage ul, .dg-stage ol { margin: 0; padding: 0; list-style: none; }
.dg-label { font: 400 13px/1.3 var(--font-sans); color: var(--muted-on-ink); }
.dg-note { min-height: 2.9em; margin: 14px 0 18px !important; font-size: 15px; line-height: 1.45; color: var(--muted-on-ink); }

/* Logos keep their own colours on a White chip. */
.dg-logo { display: inline-flex; align-items: center; justify-content: center; width: 112px; height: 40px; padding: 0 12px; border-radius: var(--radius); background: var(--white); flex: none; }
.dg-logo img { display: block; width: auto; max-width: 100%; height: 20px; max-height: 20px; object-fit: contain; }
.dg-blank { background: rgba(255,255,255,.08); }
.dg-text-logo { font-size: 15px; font-weight: 500; }

.dg-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
.dg-sum span { font-size: 15px; color: var(--muted-on-ink); }
.dg-sum b { font: 500 clamp(20px, 1.9vw, 28px)/1.1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.dg-sum.is-over b { color: var(--fm-primary); }

/* 1 The claims */
.dg-claim-list { display: grid; gap: 8px; margin: 14px 0 16px !important; }
.dg-claim-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 16px 10px 10px; border-radius: var(--radius); background: var(--panel-on-ink); }
.dg-claim-list span:not(.dg-logo) { font-size: 15px; color: var(--muted-on-ink); }
.dg-claim-list b { font: 500 clamp(18px, 1.6vw, 24px)/1 var(--font-mono); letter-spacing: -0.03em; }
.dg-month { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.dg-bar { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: calc(var(--w) * 100%); min-width: 14em; margin-top: 8px; padding: 10px 14px; border-radius: var(--radius); background: rgba(255,255,255,.14); font-size: 15px; transform-origin: left; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.dg-bar.is-over { background: rgba(238,70,43,.28); }
.dg-bar b { font: 500 16px/1 var(--font-mono); }
.dg-gap { margin-top: 12px !important; font-size: 15px; color: var(--muted-on-ink); }
.dg-gap b { font: 500 16px/1 var(--font-mono); color: var(--fm-primary); }
.dg[data-tab="0"].is-in .dg-claim-list li { animation: dg-rise .5s ease both; animation-delay: calc(var(--i) * 120ms); }

/* Chips */
.dg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dg-chips button { min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius); background: rgba(255,255,255,.08); color: var(--white); font: 500 14px/1 var(--font-sans); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.dg-chips button:hover { background: rgba(255,255,255,.16); }
.dg-chips button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.dg-chips button:focus-visible { outline: 2px solid var(--fm-primary); outline-offset: 2px; }

/* 2 Models */
.dg-touches { display: grid; gap: 8px; margin-bottom: 12px !important; }
.dg-touches li { display: grid; grid-template-columns: 112px minmax(7em, 10em) minmax(0, 1fr) 5.5em; align-items: center; gap: 16px; }
.dg-what { font-size: 15px; line-height: 1.25; }
.dg-what small { display: block; font-size: 13px; color: var(--muted-on-ink); }
.dg-track { position: relative; height: 10px; border-radius: 1px; background: rgba(255,255,255,.08); }
.dg-track i { position: absolute; inset: 0 auto 0 0; width: calc(var(--s) * 100%); border-radius: 1px; background: var(--fm-tertiary-on-ink); transition: width .7s cubic-bezier(.2,.7,.2,1); }
.dg-touches b { font: 500 16px/1 var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
.dg-order { padding-top: 8px; border-top: 1px dashed rgba(255,255,255,.18); }
.dg-order .dg-track { background: none; }
.dg-dot { justify-self: center; width: 14px; height: 14px; border-radius: 50%; background: var(--fm-primary); box-shadow: 0 0 0 5px rgba(238,70,43,.25); }

/* 3 Lenses */
.dg-table { display: grid; margin-bottom: 8px; }
.dg-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 6.5em 3.6em; align-items: center; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.dg-thead { padding-top: 0; font: 400 12px/1.2 var(--font-sans); color: var(--muted-on-ink); }
.dg-num { text-align: right; font: 500 15px/1 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dg-thead .dg-num { font: inherit; }
.dg-spread { position: relative; height: 22px; }
.dg-spread::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.12); }
.dg-tick { position: absolute; top: 3px; bottom: 3px; left: calc(var(--x) * 100%); width: 2px; margin-left: -1px; background: rgba(255,255,255,.3); }
.dg-fill { position: absolute; left: 0; top: 5px; bottom: 5px; width: calc(var(--x) * 100%); border-radius: 1px; background: var(--fm-tertiary-on-ink); transition: width .7s cubic-bezier(.2,.7,.2,1); }
.dg-row.is-moved .dg-fill { background: var(--fm-primary); }
.dg-v.is-text { font: 400 13px/1.2 var(--font-sans); color: var(--muted-on-ink); white-space: normal; }

/* 4 Journeys */
.dg-flip { display: grid; }
.dg-flip > * { grid-area: 1 / 1; min-width: 0; }
.dg-journeys .dg-p { visibility: hidden; }
.dg-journeys[data-view="predicted"] .dg-p { visibility: visible; }
.dg-journeys[data-view="predicted"] .dg-k { visibility: hidden; }
.dg-orders { display: grid; gap: 8px; align-content: start; }
.dg-orders > li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px 12px; border-radius: var(--radius); background: var(--panel-on-ink); }
.dg-o { display: grid; gap: 4px; }
.dg-o b { font: 500 15px/1 var(--font-mono); }
.dg-o span { font: 500 15px/1 var(--font-mono); color: var(--muted-on-ink); }
.dg-o small { font-size: 12px; color: var(--muted-on-ink); }
.dg-path { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.dg-visit { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 10px 4px 4px; border-radius: var(--radius); background: rgba(255,255,255,.05); }
.dg-visit .dg-logo { width: 78px; height: 34px; padding: 0 8px; }
.dg-visit .dg-logo img { height: 15px; }
.dg-blank { background: rgba(255,255,255,.1); color: var(--white); font-size: 13px; }
.dg-vt { display: grid; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.25; }
.dg-sure { font: normal 400 12px/1.2 var(--font-sans); color: var(--muted-on-ink); }
.dg-visit.is-likely .dg-sure { color: #7FC3CE; }
.dg-visit.is-possible { box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.dg-visit.is-modelled { background: none; outline: 1px dashed rgba(255,255,255,.45); outline-offset: -1px; }
.dg-visit.is-modelled .dg-sure { color: var(--fm-primary); }
.dg-none { grid-column: 1 / -1; padding: 10px 0; font-size: 14px; color: var(--muted-on-ink); }
.dg-journeys[data-view="predicted"] .dg-p .dg-visit { animation: dg-rise .4s ease both; }

@keyframes dg-rise { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 1099px) {
  .dg-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .dg-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-tabs [aria-selected="true"] > .dg-text { display: none; }
}
@media (max-width: 640px) {
  .dg-tabs { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .dg-tabs::-webkit-scrollbar { display: none; }
  .dg-tabs button { flex: none; width: 72%; padding: 14px 16px 16px; scroll-snap-align: start; }
  .dg-tabs button:first-child[aria-selected="true"] { border-radius: 16px var(--radius) var(--radius) var(--radius); }
  .dg-stage { padding: 20px 16px; }
  .dg-logo { width: 92px; height: 34px; }
  .dg-logo img { height: 16px; }
  .dg-touches li { grid-template-columns: 92px minmax(0, 1fr) 4.6em; gap: 10px; }
  .dg-touches .dg-track { grid-column: 1 / -1; grid-row: 2; }
  .dg-row { grid-template-columns: 92px minmax(0, 1fr) 5.6em 3em; gap: 10px; }
  .dg-spread-h { visibility: hidden; }
  .dg-orders > li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dg-path { grid-template-columns: minmax(0, 1fr); }
  .dg-o { grid-auto-flow: column; justify-content: start; gap: 12px; align-items: baseline; }
  .dg-bar { min-width: 12em; }
}
@media (prefers-reduced-motion: reduce) {
  .dg *, .dg *::before { animation: none !important; transition: none !important; }
}


/* ---------- visual: form-dropoff ---------- */

.fd { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0.9em; padding: 1.6em 2.2em 1.4em; font-size: max(10px, 1.2cqw); color: var(--ink); }
.fd p, .fd ol { margin: 0; padding: 0; }
.fd-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1em; }
.fd-title { font: 500 1.45em/1.15 var(--font-sans); letter-spacing: -0.02em; }
.fd-title span { display: block; margin-top: 0.35em; font: 400 0.66em/1.2 var(--font-mono); letter-spacing: 0; color: var(--muted); }
.fd-heads { display: grid; grid-template-columns: 6.2em 6.2em; font: 400 0.95em/1.2 var(--font-mono); color: var(--muted); text-align: right; }
.fd-rows { position: relative; display: grid; grid-template-rows: 0.8fr repeat(5, 1fr) 1fr; min-height: 0; list-style: none; }
.fd-row { display: grid; grid-template-columns: 22% minmax(0, 1fr) 6.2em 6.2em; align-items: center; min-height: 0; border-top: 1px solid var(--line); }
.fd-row:first-child { border-top: 0; }
.fd-lane { position: relative; align-self: stretch; }
.fd-lane::before, .fd-lane::after { content: ""; position: absolute; right: 0.9em; background: rgba(18,13,11,.1); }
.fd-lane::before { top: -1px; height: calc(50% + 1px); width: calc(var(--r) * 78%); }
.fd-lane::after { bottom: 0; height: 50%; width: calc(var(--n) * 78%); }
.fd-exit { position: absolute; top: 50%; left: 0; width: calc(100% - 0.9em - var(--r) * 78%); height: max(2px, calc(var(--l) * 1.1em)); transform: translateY(-50%); border-radius: 0 2px 2px 0; background: rgba(18,13,11,.18); }
.hot .fd-exit { background: var(--fm-primary); }
.fd-field { grid-column: 2; grid-row: 1; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 0.6em; height: 64%; min-height: 2.2em; padding: 0 0.9em; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 1.05em; color: var(--muted); }
.fd-field span { color: var(--ink); }
.hot .fd-field { box-shadow: inset 0 0 0 1.5px var(--fm-primary); }
.fd-flag { grid-column: 2; grid-row: 1; justify-self: end; margin-right: 0.7em; padding: 0.35em 0.6em; border-radius: 2px; background: var(--fm-primary-deep); color: var(--white); font: 400 0.86em/1.2 var(--font-mono); font-style: normal; white-space: nowrap; }
.fd-what { font-size: 1.05em; }
.fd-reach { justify-self: end; font: 500 1.35em/1 var(--font-mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fd-left { justify-self: end; font: 400 1em/1 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.hot .fd-left { color: var(--ember-deep); font-weight: 500; }
.fd-sent { border-top: 1px solid var(--line-strong); }
.fd-sent .fd-what { font-weight: 500; }
.fd-sent .fd-reach { font-size: 1.9em; color: var(--ember-deep); }
.fd-sent .fd-lane::before { background: var(--ink); }
.fd-sent .fd-lane::after { display: none; }
.fd-foot { font: 400 0.95em/1.3 var(--font-mono); color: var(--muted); }
.fd-dots { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fd-dots i { position: absolute; left: 0; top: 0; width: 0.45em; height: 0.45em; margin: -0.225em 0 0 -0.225em; border-radius: 50%; background: var(--ink); will-change: transform, opacity; }
.fd-dots i.x { background: rgba(18,13,11,.45); }
.fd-dots i.xh { background: var(--fm-primary); }

@container (max-width: 520px) {
  .fd { font-size: max(10px, 2.9cqw); padding: 1.3em 1.2em 1.1em; }
  .fd-top { grid-template-columns: minmax(0, 1fr); }
  .fd-heads { display: none; }
  .fd-rows { grid-template-rows: 0.8fr 1fr 1fr 1fr 1.7fr 1fr 1fr; }
  .fd-row { grid-template-columns: 17% minmax(0, 1fr) 3.4em 3.2em; }
  .fd-row.hot { grid-template-rows: auto auto; align-content: center; row-gap: 0.4em; }
  .hot .fd-lane { grid-row: 1 / 3; }
  .hot .fd-field { height: 2.4em; }
  .fd-field { height: 70%; padding: 0 0.7em; }
  .hot .fd-flag { grid-column: 2 / 5; grid-row: 2; justify-self: start; }
  .hot .fd-flag { margin: 0; }
  .fd-sent { grid-template-columns: 17% minmax(0, 1fr) auto auto; column-gap: 0.4em; }
}

/* Motion: the band and the figures arrive as the stream's front passes each row (JS adds .play to
   the root and .on to each row in turn); without that, everything stays as drawn. */
@media (prefers-reduced-motion: no-preference) {
  .fd.play .fd-row:not(.on) .fd-lane::before, .fd.play .fd-row:not(.on) .fd-lane::after { transform: scaleY(0); }
  .fd.play .fd-lane::before { transform-origin: top; }
  .fd.play .fd-lane::after { transform-origin: top; }
  .fd.play .fd-row:not(.on) .fd-exit { transform: translateY(-50%) scaleX(0); }
  .fd.play .fd-exit { transform-origin: right; }
  .fd.play .fd-row:not(.on) .fd-left, .fd.play .fd-row:not(.on) .fd-flag { opacity: 0; }
  .fd.play .fd-row.on .fd-lane::before { transition: transform .35s linear; }
  .fd.play .fd-row.on .fd-lane::after { transition: transform .35s linear .3s; }
  .fd.play .fd-row.on .fd-exit { transition: transform .6s var(--ease) .35s; }
  .fd.play .fd-row.on .fd-left { transition: opacity .4s ease .5s; }
  .fd.play .fd-row.on .fd-flag { transition: opacity .5s ease .9s; }
}


/* ---------- visual: funnel-stall ---------- */

.fs { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.6em; padding: 1.6em 1.7em 1.5em; font-size: max(10px, 1.6cqw); line-height: 1.25; color: var(--white); }
.fs p { margin: 0; }
.fs-t { font: 400 0.88em/1.2 var(--font-mono); color: var(--muted-on-ink); }
.fs-fun { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0.9em; min-height: 0; }
.fs-rows { display: grid; grid-auto-rows: minmax(0, 1fr); gap: 0.4em; margin: 0; padding: 0; list-style: none; min-height: 0; }
.fs-r { position: relative; display: grid; align-content: center; gap: 0.35em; padding: 0 0.7em; border-radius: 2px; }
.fs-r.flag { background: rgba(255,255,255,.07); }
.fs-r.flag::after { content: ""; position: absolute; left: 100%; top: 50%; width: 1.6em; border-top: 1px dashed rgba(255,255,255,.45); }
.fs-lab { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; }
.fs-lab span { font-size: 1.05em; font-weight: 500; }
.fs-lab b { font: 500 1.05em/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.fs-bar { display: flex; height: 0.95em; }
.fs-bar i { display: block; height: 100%; min-width: 3px; transform-origin: left; }
.fs-bar .go { background: var(--fm-primary); border-radius: 2px 0 0 2px; }
.fs-bar .left { position: relative; background: rgba(255,255,255,.2); border-radius: 0 2px 2px 0; }
.fs-r.end .go { border-radius: 2px; }
.fs-r.flag .left::after { content: ""; position: absolute; inset: -0.3em -0.3em; border: 2px solid var(--white); border-radius: 3px; opacity: 0; }
.fs-note { display: flex; flex-wrap: wrap; gap: 0.2em 0.9em; font: 400 0.85em/1.2 var(--font-mono); color: var(--muted-on-ink); }
.fs-flag { font: 500 1.08em/1.2 var(--font-sans); color: var(--white); }

.fs-zoom { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 0.75em; min-height: 0; padding: 1em 1.1em; border-radius: 1em 2px 2px 2px; background: rgba(255,255,255,.06); transform-origin: 0 32%; }
.fs-page { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 0.8em; min-height: 0; padding: 0.8em; border-radius: 2px; background: rgba(255,255,255,.06); }
.fs-img { border-radius: 2px; background: rgba(255,255,255,.1); }
.fs-info { display: flex; flex-direction: column; justify-content: center; gap: 0.55em; min-width: 0; }
.fs-info .ln { display: block; height: 0.6em; border-radius: 1px; background: rgba(255,255,255,.28); }
.fs-info .ln.a { width: 90%; }
.fs-info .ln.b { width: 60%; }
.fs-info .ln.c { width: 34%; height: 0.8em; margin-top: 0.2em; background: rgba(255,255,255,.5); }
.fs-size { display: flex; gap: 0.35em; margin-top: 0.3em; }
.fs-size span { position: relative; display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); font: 500 0.9em/1 var(--font-sans); }
.fs-size .hit { box-shadow: inset 0 0 0 2px var(--fm-primary); }
.fs-size .rp { position: absolute; left: 50%; top: 50%; width: 2.4em; height: 2.4em; margin: -1.2em 0 0 -1.2em; border: 2px solid var(--fm-primary); border-radius: 50%; opacity: 0; pointer-events: none; }
.fs-btn { display: grid; place-items: center; height: 2.2em; border-radius: 2px; background: var(--white); color: var(--ink); font: 500 0.9em/1 var(--font-sans); }
.fs-tag { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2em 0.8em; font-family: var(--font-mono); }
.fs-tag b { font-weight: 500; font-size: 1em; color: var(--fm-primary); }
.fs-tag span { font-size: 0.88em; color: var(--muted-on-ink); }
.fs-vit { display: grid; gap: 0.55em; padding-top: 0.7em; border-top: 1px solid rgba(255,255,255,.12); }
.fs-vit ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9em; margin: 0; padding: 0; list-style: none; }
.fs-vit li { display: grid; align-content: start; gap: 0.45em; }
.fs-vit li p:first-child { display: flex; justify-content: space-between; gap: 0.4em; font-family: var(--font-mono); }
.fs-vit li p:first-child span { font-size: 0.88em; color: var(--muted-on-ink); }
.fs-vit li p:first-child b { font-weight: 500; font-size: 0.95em; white-space: nowrap; }
.fs-vit .warn p:first-child b { color: var(--fm-primary); }
.fs-vit .tr { position: relative; display: block; height: 0.45em; border-radius: 1px; background: rgba(255,255,255,.12); }
.fs-vit .tr::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--z1); background: rgba(255,255,255,.28); border-radius: 1px 0 0 1px; }
.fs-vit .tr i { position: absolute; top: -0.35em; bottom: -0.35em; left: calc(var(--at) * 100%); width: 3px; margin-left: -1.5px; border-radius: 1px; background: var(--white); }
.fs-vit .warn .tr i { background: var(--fm-primary); }
.fs-vit .st { font: 400 0.85em/1.2 var(--font-mono); color: var(--muted-on-ink); }
.fs-vit .warn .st { color: var(--white); }

@container (max-width: 560px) {
  .fs { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.1em; padding: 1.2em 1.1em 1.1em; font-size: max(10px, 2.9cqw); }
  .fs-zoom { transform-origin: 50% 0; }
  .fs-r.flag::after { display: none; }
  .fs-vit ul { gap: 0.6em; }
}

@media (prefers-reduced-motion: no-preference) {
  .fm-js .fs-bar i { transform: scaleX(0); }
  .fm-js .fs-bar .left { opacity: 0; }
  .fm-js .fs-lab, .fm-js .fs-note { opacity: 0; }
  .fm-js .fs-r.flag { background-color: transparent; }
  .fm-js .fs-flag, .fm-js .fs-r.flag::after { opacity: 0; }
  .fm-js .fs-zoom { opacity: 0; transform: scale(.92); }
  .fm-js .fs-tag { opacity: 0; }
  .fm-js .fs-vit .tr i { transform: scaleY(0); opacity: 0; }
  .fm-js .fs-vit li { opacity: 0; }
  .is-in .fs-lab { opacity: 1; transition: opacity .5s ease calc(var(--i) * 140ms); }
  .is-in .fs-bar .go { transform: none; transition: transform .9s var(--ease) calc(var(--i) * 140ms + 150ms); }
  .is-in .fs-bar .left { transform: none; opacity: 1; transition: transform .9s var(--ease) calc(var(--i) * 140ms + 700ms), opacity .4s ease calc(var(--i) * 140ms + 700ms); }
  .is-in .fs-note { opacity: 1; transition: opacity .5s ease calc(var(--i) * 140ms + 1200ms); }
  .is-in .fs-r.flag { background-color: rgba(255,255,255,.07); transition: background-color .6s ease 2.2s; }
  .is-in .fs-flag { opacity: 1; transition: opacity .5s ease 2.3s; }
  .is-in .fs-r.flag::after { opacity: 1; transition: opacity .5s ease 3.2s; }
  .is-in .fs-r.flag .left::after { animation: fs-pulse 1.6s var(--ease) 2.3s 3; }
  .is-in .fs-zoom { opacity: 1; transform: none; transition: opacity .6s ease 3.3s, transform .8s var(--ease) 3.3s; }
  .is-in .fs-size .rp { animation: fs-ripple 1.1s var(--ease) 4.3s 3; }
  .is-in .fs-size .rp:nth-child(2) { animation-delay: 4.45s; }
  .is-in .fs-size .rp:nth-child(3) { animation-delay: 4.6s; }
  .is-in .fs-tag { opacity: 1; transition: opacity .5s ease 4.7s; }
  .is-in .fs-vit li { opacity: 1; transition: opacity .5s ease calc(var(--i) * 250ms + 5.6s); }
  .is-in .fs-vit .tr i { transform: none; opacity: 1; transition: transform .4s var(--ease) calc(var(--i) * 250ms + 5.9s), opacity .3s ease calc(var(--i) * 250ms + 5.9s); }
}
@keyframes fs-pulse { 0% { opacity: 0; transform: scale(1); } 30% { opacity: .9; } 100% { opacity: 0; transform: scale(1.06, 1.5); } }
@keyframes fs-ripple { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.9); } }


/* ---------- visual: geo-test ---------- */

.gt { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1.3em; padding: 1.8em 2em 1.6em; font-size: max(10px, 1.15cqw); color: var(--white); }
.gt p { margin: 0; }
.gt-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.gt-beats { display: flex; gap: 0.4em; margin: 0; padding: 0; list-style: none; }
.gt-beats li { position: relative; padding: 0.55em 0.9em 0.7em; font: 400 0.95em/1 var(--font-mono); color: rgba(255,255,255,.5); white-space: nowrap; transition: color .3s; }
.gt-beats li span { margin-right: 0.6em; }
.gt-beats li::after { content: ""; position: absolute; left: 0.9em; right: 0.9em; bottom: 0; height: 2px; background: rgba(255,255,255,.14); }
.gt-size { display: flex; gap: 0.3em; padding: 0.25em; border-radius: 2px; background: rgba(255,255,255,.07); }
.gt-size button { padding: 0.65em 0.95em; border: 0; border-radius: 2px; background: transparent; color: rgba(255,255,255,.72); font: 500 1em/1 var(--font-sans); cursor: pointer; transition: background-color .2s, color .2s; white-space: nowrap; }
.gt-size button:hover { color: var(--white); }
.gt-size button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.gt-body { display: grid; grid-template-columns: minmax(0, 3.6fr) minmax(0, 6.4fr); gap: 2em; min-height: 0; align-items: center; }
.gt-map { display: grid; gap: 0.9em; }
.gt-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45em; margin: 0; padding: 0; list-style: none; }
.gt-tile { position: relative; display: grid; align-content: space-between; aspect-ratio: 1.15; padding: 0.55em 0.6em; border-radius: 2px; background: rgba(255,255,255,.13); box-shadow: inset 0 0 0 1.5px transparent; transition: background-color .5s, box-shadow .5s; }
.gt-tile:first-child { border-top-left-radius: 10px; }
.gt-tile b { font: 500 1.05em/1 var(--font-mono); }
.gt-tile span { justify-self: end; font: 400 0.85em/1 var(--font-mono); color: rgba(255,255,255,.62); }
.gt-tile.t { background: rgba(238,70,43,.12); box-shadow: inset 0 0 0 1.5px var(--fm-primary); }
.gt-tile.t span { color: var(--fm-primary); }
.gt-key, .gt-legend { display: flex; flex-wrap: wrap; gap: 0.4em 1.3em; font: 400 0.9em/1.2 var(--font-mono); color: rgba(255,255,255,.7); }
.gt-key span, .gt-legend span { display: inline-flex; align-items: center; gap: 0.5em; }
.gt-key span::before, .gt-legend span::before { content: ""; width: 0.9em; height: 0.9em; border-radius: 2px; }
.gt-key .k-t::before { box-shadow: inset 0 0 0 1.5px var(--fm-primary); }
.gt-key .k-c::before { background: rgba(255,255,255,.3); }
.gt-legend .k-c::before { height: 3px; background: var(--white); }
.gt-legend .k-t::before { height: 3px; background: var(--fm-primary); }
.gt-legend .k-b::before { background: rgba(238,70,43,.3); }
.gt-plot { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0.6em; min-height: 0; height: 100%; }
.gt-pl { font: 400 0.9em/1.2 var(--font-mono); color: rgba(255,255,255,.62); }
.gt-charts { position: relative; min-height: 0; }
.gt-chart { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity .45s ease; }
.gt-axis { fill: none; stroke: rgba(255,255,255,.3); }
.gt-grid { fill: none; stroke: rgba(255,255,255,.08); }
.gt-offzone { fill: rgba(255,255,255,.035); }
.gt-off { fill: none; stroke: rgba(255,255,255,.5); stroke-dasharray: 3 4; }
.gt-t { font: 400 15px var(--font-mono); fill: rgba(255,255,255,.62); }
.gt-lift { font-weight: 500; fill: var(--fm-primary); }
.gt-lift-b { fill: none; stroke: var(--fm-primary); stroke-width: 1.5; }
.gt-band { fill: rgba(238,70,43,.28); }
.gt-gap { fill: rgba(255,255,255,.1); }
.gt-l { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.gt-c { stroke: var(--white); }
.gt-x { stroke: var(--fm-primary); }
.gt-reads { position: relative; display: grid; }
.gt-read { grid-area: 1 / 1; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "fig range" "sub rl" ". verdict"; align-items: center; column-gap: 2em; row-gap: 0.35em; transition: opacity .45s ease, visibility 0s linear .45s; }
.gt-fig { grid-area: fig; font: 500 3em/1 var(--font-mono); letter-spacing: -0.04em; color: var(--fm-tertiary-on-ink); font-variant-numeric: tabular-nums; }
.gt-sub { grid-area: sub; font: 400 0.9em/1.2 var(--font-mono); color: rgba(255,255,255,.62); }
.gt-range { grid-area: range; position: relative; height: 1.1em; }
.gt-range i { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.gt-r0 { left: 0; right: 0; background: rgba(255,255,255,.12); }
.gt-rb { left: calc(var(--a) * 100%); right: calc((1 - var(--b)) * 100%); background: rgba(238,70,43,.5); }
.gt-range .gt-rm { left: calc(var(--m) * 100%); width: 4px; margin-left: -2px; top: -0.45em; bottom: -0.45em; background: var(--fm-primary); }
.gt-range .gt-r-zero { left: calc(var(--z) * 100%); width: 2px; top: -0.3em; bottom: -0.3em; background: rgba(255,255,255,.7); }
.gt-r-zero b { position: absolute; bottom: calc(100% + 0.3em); left: 50%; transform: translateX(-50%); font: 400 0.85em/1 var(--font-mono); color: rgba(255,255,255,.62); }
.gt-rl { grid-area: rl; font: 400 0.95em/1.25 var(--font-mono); color: var(--white); }
.gt-verdict { grid-area: verdict; font: 500 1em/1.25 var(--font-mono); color: rgba(255,255,255,.62); }
.gt-read[data-size="small"] .gt-fig { color: var(--white); }
.gt-read[data-size="small"] .gt-verdict { color: var(--fm-primary); }
.gt[data-size="big"] .gt-chart[data-size="small"], .gt[data-size="small"] .gt-chart[data-size="big"] { opacity: 0; }
.gt[data-size="big"] .gt-read[data-size="small"], .gt[data-size="small"] .gt-read[data-size="big"] { opacity: 0; visibility: hidden; }
.gt[data-size="big"] .gt-read[data-size="big"], .gt[data-size="small"] .gt-read[data-size="small"] { transition-delay: 0s; }

@container (max-width: 620px) {
  .gt { font-size: max(10px, 2.5cqw); padding: 1.3em; gap: 1em; grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .gt-top { flex-wrap: wrap; }
  .gt-beats { display: none; }
  .gt-size { width: 100%; }
  .gt-size button { flex: 1; }
  .gt-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 0.9em; grid-row: 2 / 4; }
  .gt-tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.3em; }
  .gt-tile { aspect-ratio: auto; padding: 0.45em 0.35em; }
  .gt-tile span { display: none; }
  .gt-tile b { font-size: 0.95em; }
  .gt-t { font-size: 19px; }
  .gt-read { grid-template-columns: auto minmax(0, 1fr); column-gap: 1.2em; }
  .gt-fig { font-size: 2.3em; }
}

/* Motion: beats arrive as classes b1 to b4 (the HTML carries them all); snap turns transitions off for a reset. */
@media (prefers-reduced-motion: no-preference) {
  .fm-js .gt:not(.b1) .gt-tile.t { background: rgba(255,255,255,.13); box-shadow: inset 0 0 0 1.5px transparent; }
  .fm-js .gt:not(.b1) .gt-tile span, .fm-js .gt:not(.b2) .gt-tile span { opacity: 0; }
  .fm-js .gt-tile span { transition: opacity .4s ease; transition-delay: calc(var(--i) * 25ms); }
  .fm-js .gt:not(.b2) .gt-tile.t { background: rgba(238,70,43,.38); }
  .fm-js .gt-tile.t { transition-delay: calc(var(--i) * 30ms); }
  .fm-js .gt:not(.b1) .gt-key { opacity: 0; }
  .fm-js .gt-key { transition: opacity .5s ease .3s; }
  .fm-js .gt-l { stroke-dasharray: 1; transition: stroke-dashoffset 2s var(--ease); }
  .fm-js .gt-x { transition-delay: .15s; }
  .fm-js .gt:not(.b3) .gt-l { stroke-dashoffset: 1; }
  .fm-js .gt:not(.b2) .gt-off, .fm-js .gt:not(.b2) .gt-offl, .fm-js .gt:not(.b2) .gt-offzone { opacity: 0; }
  .fm-js .gt-off, .fm-js .gt-offl, .fm-js .gt-offzone { transition: opacity .5s ease; }
  .fm-js .gt-band, .fm-js .gt-gap, .fm-js .gt-lift, .fm-js .gt-lift-b { transition: opacity .6s ease; }
  .fm-js .gt:not(.b4) .gt-band, .fm-js .gt:not(.b4) .gt-gap, .fm-js .gt:not(.b4) .gt-lift, .fm-js .gt:not(.b4) .gt-lift-b { opacity: 0; }
  .fm-js .gt-reads { transition: opacity .6s ease .2s; }
  .fm-js .gt:not(.b4) .gt-reads { opacity: 0; transition-delay: 0s; }
  .fm-js .gt-rb { transition: transform .8s var(--ease) .3s; }
  .fm-js .gt:not(.b4) .gt-rb { transform: scaleX(0); }
  .fm-js .gt.is-auto .gt-beats li { color: rgba(255,255,255,.5); }
  .fm-js .gt.is-auto .gt-beats li::after { background: rgba(255,255,255,.14); }
  .fm-js .gt.is-auto[data-beat="1"] li[data-b="1"], .fm-js .gt.is-auto[data-beat="2"] li[data-b="2"], .fm-js .gt.is-auto[data-beat="3"] li[data-b="3"], .fm-js .gt.is-auto[data-beat="4"] li[data-b="4"] { color: var(--white); }
  .fm-js .gt.is-auto[data-beat="1"] li[data-b="1"]::after, .fm-js .gt.is-auto[data-beat="2"] li[data-b="2"]::after, .fm-js .gt.is-auto[data-beat="3"] li[data-b="3"]::after, .fm-js .gt.is-auto[data-beat="4"] li[data-b="4"]::after { background: var(--fm-primary); }
  .fm-js .gt.snap, .fm-js .gt.snap * { transition: none !important; animation: none !important; }
}
.gt:not(.is-auto) .gt-beats li { color: var(--white); }
.gt:not(.is-auto) .gt-beats li[data-b="4"]::after { background: var(--fm-primary); }


/* ---------- visual: hero-window ---------- */

.hw { position: absolute; inset: 0; display: grid; grid-template-columns: 14em minmax(0, 1fr); font-size: max(8px, 1.02cqw); line-height: 1.3; color: var(--ink); }
.hw b, .hw p { margin: 0; }
.hw-side { padding: 1.8em 1.2em; background: var(--white); color: var(--ink); border-right: 1px solid var(--line); }
.hw-store { font-size: 1.15em; font-weight: 500; letter-spacing: -0.01em; }
.hw-store small { display: block; margin-top: 0.3em; font: 400 0.85em/1.2 var(--font-sans); color: var(--muted); }
.hw-side ul { display: grid; gap: 0.2em; margin: 2em 0 0; padding: 0; list-style: none; }
.hw-side li { padding: 0.75em 0.9em; border-radius: 2px; font-size: 1.05em; color: var(--ink); }
.hw-side li.on { background: var(--panel); font-weight: 500; }
.hw-side li.gap { margin-top: 1.6em; }
.hw-main { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 1.1em; padding: 1.4em 1.6em 1.6em; min-width: 0; background: var(--mist); }
.hw-top { display: flex; align-items: center; gap: 0.7em; }
.hw-top b { margin-right: auto; font-size: 1.7em; font-weight: 500; letter-spacing: -0.03em; }
.hw-chip { padding: 0.55em 0.9em; border-radius: 2px; background: var(--white); font-size: 0.95em; box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap; }
.hw-chip em { font-style: normal; font-weight: 500; }
.hw-sample { font-family: var(--font-mono); font-size: 0.85em; }
.hw-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.8em; }
.hw-tile { padding: 1em 1.1em 0.9em; border-radius: 2px; background: var(--white); }
.hw-tile:first-child { border-radius: 1.4em 2px 2px 2px; }
.hw-l { display: flex; align-items: center; gap: 0.6em; font-size: 0.95em; }
.hw-l .up, .hw-l .dn { font: 500 0.85em/1 var(--font-mono); color: var(--fm-tertiary); }
.hw-l .dn { color: var(--ember-deep); }
.hw-fig { display: block; margin-top: 0.35em; font: 500 2em/1.1 var(--font-mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.hw-spark { width: 100%; height: 2.6em; margin-top: 0.7em; overflow: visible; }
.hw-spark path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hw-spark .p { stroke: rgba(18,13,11,.28); stroke-width: 1; stroke-dasharray: 2 3; }
.hw-spark .c { stroke: var(--fm-primary); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hw-panes { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: 0.8em; min-height: 0; }
.hw-pane { display: flex; flex-direction: column; min-height: 0; padding: 1.1em 1.3em; border-radius: 2px; background: var(--white); }
.hw-ink { background: var(--ink); color: var(--white); }
.hw-keys { display: inline-flex; align-items: center; gap: 0.5em; margin-left: auto; font: 400 0.85em/1 var(--font-mono); color: var(--muted-on-ink); }
.hw-keys i { width: 1.4em; height: 0; border-top: 2px solid var(--fm-primary); }
.hw-keys .k2 { margin-left: 0.8em; border-top: 2px dashed rgba(255,255,255,.4); }
.hw-chart { position: relative; flex: 1; min-height: 0; margin-top: 0.8em; }
.hw-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hw-chart path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hw-chart .grid { stroke: rgba(255,255,255,.1); stroke-width: 1; }
.hw-chart .prev { stroke: rgba(255,255,255,.4); stroke-width: 1.5; stroke-dasharray: 4 4; }
.hw-chart .line { stroke: var(--fm-primary); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hw-chart .area { fill: rgba(238,70,43,.14); stroke: none; }
.hw-dot { position: absolute; right: 0; top: var(--y); width: 0.9em; height: 0.9em; margin: -0.45em -0.45em 0 0; border-radius: 50%; background: var(--fm-primary); box-shadow: 0 0 0 0.35em rgba(238,70,43,.25); }
.hw-tip { position: absolute; right: 1.2em; top: calc(var(--y) - 3.2em); padding: 0.45em 0.8em; border-radius: 2px; background: var(--white); color: var(--ink); font: 500 0.9em/1 var(--font-mono); white-space: nowrap; }
.hw-table table { width: 100%; margin-top: 0.7em; border-collapse: collapse; font-size: 1em; }
.hw-table th, .hw-table td { padding: 0.85em 0.5em; border-bottom: 1px solid var(--line); text-align: right; font-weight: 400; font-variant-numeric: tabular-nums; }
.hw-table thead th { padding-top: 0.2em; font: 400 0.82em/1.2 var(--font-mono); color: var(--muted); }
.hw-table th:first-child, .hw-table td:first-child { padding-left: 0; text-align: left; }
.hw-table tbody th img { width: auto; height: 1.35em; max-width: none; }
.hw-table td { position: relative; font-family: var(--font-mono); }
.hw-table td i { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--w) * 100%); background: var(--line-strong); transform-origin: left; }
.hw-table .fm { background: rgba(228,237,236,.7); }
.hw-table td.fm b { font-weight: 500; }
.hw-roas { transition: color .3s; }
.hw-roas.flash { color: var(--ember-deep); }

/* The Forge Mark sting opens the window (kit: stings play in view and end on the logo); the poster is
   its last frame, the logo on Ink. With no script or reduced motion it never shows. */
.hw-sting { display: none; }
.fm-js:not(.fm-reduce) .hw-sting { display: block; position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; background: var(--ink); opacity: 1; transition: opacity .7s ease; }
.fm-js:not(.fm-reduce) .hw.go .hw-sting, .fm-js:not(.fm-reduce) .hw.skip .hw-sting { opacity: 0; pointer-events: none; }

@container (max-width: 760px) {
  .hw { grid-template-columns: minmax(0, 1fr); font-size: max(9px, 1.55cqw); }
  .hw-side { display: none; }
  .hw-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-tile:nth-child(5) { display: none; }
  .hw-panes { grid-template-columns: minmax(0, 1fr); }
  .hw-ink { display: none; }
  .hw-chip:not(.hw-sample) { display: none; }
}
@container (max-width: 520px) { .hw { font-size: max(10px, 2.5cqw); } .hw-main { padding: 1.2em; } .hw-table th:nth-child(2), .hw-table td:nth-child(2) { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .fm-js .hw-spark .c, .fm-js .hw-chart .line { stroke-dashoffset: 1; }
  .fm-js .hw-chart .area, .fm-js .hw-chart .prev, .fm-js .hw-dot, .fm-js .hw-tip { opacity: 0; }
  .fm-js .hw-tile, .fm-js .hw-table tbody tr { opacity: 0; transform: translateY(0.8em); }
  .fm-js .hw-table td i { transform: scaleX(0); }
  .hw.go .hw-tile { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 90ms); }
  .hw.go .hw-spark .c { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s var(--ease) .4s; }
  .hw.go .hw-chart .line { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease) .5s; }
  .hw.go .hw-chart .area { opacity: 1; transition: opacity 1s ease 1.6s; }
  .hw.go .hw-chart .prev { opacity: 1; transition: opacity .8s ease .4s; }
  .hw.go .hw-dot { opacity: 1; transition: opacity .4s ease 2.5s; }
  .hw.go .hw-tip { opacity: 1; transition: opacity .4s ease 2.7s; }
  .hw.go .hw-table tbody tr { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 140ms + 1s); }
  .hw.go .hw-table td i { transform: scaleX(1); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 140ms + 1.3s); }
}


/* ---------- visual: holdout-power ---------- */

.hp[data-size="small"] { --lo: 28.667%; --w: 56.000%; --pt: 56.667%; --hit: 1; --ver: var(--fm-primary); }
.hp[data-size="medium"] { --lo: 55.000%; --w: 25.000%; --pt: 67.500%; --hit: 0; --ver: var(--ink); }
.hp[data-size="large"] { --lo: 58.667%; --w: 11.333%; --pt: 64.333%; --hit: 0; --ver: var(--ink); }
.hp { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 1.2em; padding: 1.8em 2em 1.7em; font-size: max(10.5px, 1.3cqw); color: var(--ink); }
.hp p { margin: 0; }
.hp-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8em 1.6em; }
.hp-ctl { display: flex; align-items: center; gap: 0.9em; }
.hp-lbl, .hp-fixed, .hp .hp-orders, .hp .hp-cap, .hp .hp-ticks, .hp-zero span, .hp-true span, .hp .hp-result, .hp .hp-smallest { font: 400 0.95em/1.25 var(--font-mono); color: var(--muted); }
.hp-fixed { color: var(--ink); }
.hp-btns { display: none; gap: 0.5em; }
.fm-js .hp-btns { display: flex; }
.fm-js .hp-fixed { display: none; }
.hp-btns button { padding: 0.85em 1.25em; border: 1px solid var(--line-strong); border-radius: 10px 2px 2px 2px; background: transparent; color: var(--ink); font: 500 1.05em/1 var(--font-sans); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.hp-btns button:hover { border-color: var(--ink); }
.hp-btns button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.hp-btns button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hp-orders b { font-weight: 500; color: var(--ink); }

.hp-chart { position: relative; flex: 1; min-height: 0; margin: 0 0.4em; }
.hp .hp-cap { position: absolute; left: 0; top: 0; }
.hp-chart > * { position: absolute; }
.hp-zero, .hp-true { top: 14%; bottom: 20%; }
.hp-zero { left: 50%; width: 2px; margin-left: -1px; background: var(--ink); }
.hp-true { left: 65.000%; width: 0; border-left: 2px dashed rgba(18,13,11,.45); }
.hp-zero span, .hp-true span { position: absolute; white-space: nowrap; }
.hp-zero span { top: 100%; left: 0; margin-top: 0.5em; transform: translateX(-50%); }
.hp-true span { bottom: 100%; left: 0; margin-bottom: 0.45em; transform: translateX(-50%); color: var(--ink); }
.hp-band { left: var(--lo); width: var(--w); top: 35%; height: 24%; border-radius: 2px; background: rgba(18,13,11,.12); box-shadow: inset 2px 0 0 var(--ink), inset -2px 0 0 var(--ink); transition: left .9s var(--ease), width .9s var(--ease); }
.hp-e { top: 26%; transform: translateX(-50%); font: 500 0.95em/1 var(--font-mono); transition: left .9s var(--ease); }
.hp-e1 { left: var(--lo); }
.hp-e2 { left: calc(var(--lo) + var(--w)); }
.hp-hit { left: 50%; top: 35%; height: 24%; width: 4px; margin-left: -2px; background: var(--fm-primary); opacity: var(--hit); transition: opacity .5s ease; }
.hp-dot { left: var(--pt); top: 47%; width: 1.5em; height: 1.5em; margin: -0.75em 0 0 -0.75em; border-radius: 50%; background: var(--fm-primary); box-shadow: 0 0 0 3px var(--white); transition: left .9s var(--ease); }
.hp .hp-ticks { left: 0; right: 0; bottom: 0; height: 1.4em; margin: 0; padding: 0; list-style: none; }
.hp .hp-ticks li { position: absolute; top: 0; transform: translateX(-50%); }
.hp .hp-ticks li:first-child { transform: none; }

.hp-out { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.5em 2em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.hp .hp-verdict { display: flex; align-items: center; gap: 0.6em; grid-row: span 2; }
.hp-verdict i { flex: none; width: 1em; height: 1em; border-radius: 4px 1px 1px 1px; background: var(--ver, var(--fm-primary)); transition: background-color .4s; }
.hp .hp-verdict b { font: 500 2.2em/1.05 var(--font-sans); letter-spacing: -0.03em; }
.hp .hp-result, .hp .hp-smallest { color: var(--ink); }
.hp-smallest b { font-weight: 500; }

@container (max-width: 640px) {
  .hp { font-size: max(10px, 2.6cqw); padding: 1.4em; gap: 1em; }
  .hp-btns button { padding: 0.8em 1em; }
  .hp-out { grid-template-columns: minmax(0, 1fr); }
  .hp .hp-verdict { grid-row: auto; }
  .hp .hp-verdict b { font-size: 2em; }
  .hp .hp-ticks li:nth-child(even) { display: none; }
  .hp-zero, .hp-true { top: 18%; bottom: 22%; }
}

@media (prefers-reduced-motion: no-preference) {
  .fm-js .hp-band, .fm-js .hp-dot, .fm-js .hp-e { opacity: 0; }
  .fm-js .is-in .hp-band, .fm-js .is-in .hp-dot, .fm-js .is-in .hp-e { opacity: 1; transition: left .9s var(--ease), width .9s var(--ease), opacity .6s ease .3s; }
}


/* ---------- visual: impact-ba ---------- */

.ib { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 0.9em; padding: 1.9em 2.1em 1.7em; font-size: max(10px, 1.15cqw); color: var(--ink); }
.ib p { margin: 0; }
.ib-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.4em 1.5em; }
.ib-what { display: flex; align-items: baseline; gap: 0.8em; }
.ib-what span, .ib-unit, .ib-days { font: 400 0.95em/1.2 var(--font-mono); color: var(--muted); }
.ib-what b { font-weight: 500; font-size: 1.25em; letter-spacing: -0.015em; }
.ib-plot { position: relative; min-height: 0; }
.ib-plot svg { position: absolute; top: 2.2em; bottom: 2em; left: 0; width: 100%; height: calc(100% - 4.2em); overflow: visible; }
.ib-plot svg * { vector-effect: non-scaling-stroke; }
.ib-flag { position: absolute; top: 0; left: var(--xc); display: flex; align-items: center; gap: 0.6em; margin-left: -0.45em; font: 500 1em/1.6em var(--font-mono); white-space: nowrap; }
.ib-flag::before { content: ""; width: 0.9em; height: 0.9em; border-radius: 2px; background: var(--ink); }
.ib-ax { position: absolute; left: 0; right: 0; bottom: 0; height: 1.4em; font: 400 0.95em/1.4 var(--font-mono); color: var(--muted); }
.ib-ax span { position: absolute; top: 0; left: 0; }
.ib-ax span:last-child { left: auto; right: 0; }
.ib-ax .ib-ax-c { left: var(--xc); transform: translateX(-50%); }
.ib-axis { fill: none; stroke: rgba(18,13,11,.3); }
.ib-grid { fill: none; stroke: rgba(18,13,11,.08); }
.ib-after { fill: rgba(255,255,255,.45); }
.ib-band { fill: rgba(18,13,11,.09); }
.ib-gap { fill: rgba(238,70,43,.24); }
.ib-l { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.ib-rest { stroke: rgba(18,13,11,.38); }
.ib-this { stroke: var(--ink); }
.ib-exp { stroke: rgba(18,13,11,.45); stroke-dasharray: 5 6; }
.ib-now { stroke: var(--fm-primary); stroke-width: 3; }
.ib-mark { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.ib-legend { display: flex; flex-wrap: wrap; gap: 0.4em 1.5em; font: 400 0.9em/1.2 var(--font-mono); color: var(--muted); }
.ib-legend span { display: inline-flex; align-items: center; gap: 0.5em; }
.ib-legend span::before { content: ""; width: 1.2em; height: 3px; border-radius: 1px; }
.ib-legend .k-this::before { background: var(--ink); }
.ib-legend .k-now::before { background: var(--fm-primary); }
.ib-legend .k-rest::before { background: rgba(18,13,11,.38); }
.ib-legend .k-exp::before { height: 0.8em; background: rgba(18,13,11,.09); box-shadow: inset 0 -1.5px 0 rgba(18,13,11,.45); }
.ib-read { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.4em 1.6em; padding-top: 1em; border-top: 1px solid var(--line-strong); }
.ib-fig { font: 500 3.2em/1 var(--font-mono); letter-spacing: -0.05em; color: var(--fm-tertiary); font-variant-numeric: tabular-nums; min-width: 3.3ch; }
.ib-says { display: grid; gap: 0.25em; }
.ib-says b { font-weight: 500; font-size: 1.2em; letter-spacing: -0.015em; }
.ib-says span { font-size: 1em; line-height: 1.35; color: var(--muted); }
.ib-days { align-self: end; white-space: nowrap; }

@container (max-width: 620px) {
  .ib { font-size: max(10px, 2.5cqw); padding: 1.4em 1.3em 1.2em; gap: 0.8em; }
  .ib-what { flex-direction: column; gap: 0.3em; }
  .ib-legend .k-rest, .ib-legend .k-now { display: none; }
  .ib-read { grid-template-columns: auto minmax(0, 1fr); }
  .ib-days { grid-column: 1 / -1; }
  .ib-fig { font-size: 2.6em; }
}

/* Motion, as it scrolls in: the 28 days before, the marker, the 28 days after, then the gap and its reading. */
@media (prefers-reduced-motion: no-preference) {
  .fm-js .ib-l { clip-path: inset(-10% 0 -10% 0); }
  .fm-js .vis:not(.is-in) .ib-l { clip-path: inset(-10% 100% -10% 0); }
  .fm-js .vis:not(.is-in) .ib-mark, .fm-js .vis:not(.is-in) .ib-flag { opacity: 0; transform: translateY(-14px); }
  .fm-js .vis:not(.is-in) .ib-after, .fm-js .vis:not(.is-in) .ib-band, .fm-js .vis:not(.is-in) .ib-gap, .fm-js .vis:not(.is-in) .ib-read, .fm-js .vis:not(.is-in) .ib-legend .k-exp { opacity: 0; }
  .fm-js .vis.is-in .ib-rest, .fm-js .vis.is-in .ib-this { transition: clip-path 2s var(--ease) .3s; }
  .fm-js .vis.is-in .ib-mark, .fm-js .vis.is-in .ib-flag { transition: opacity .4s ease 2.3s, transform .6s var(--ease) 2.3s; }
  .fm-js .vis.is-in .ib-after { transition: opacity .5s ease 2.6s; }
  .fm-js .vis.is-in .ib-exp, .fm-js .vis.is-in .ib-now { transition: clip-path 2s var(--ease) 2.9s; }
  .fm-js .vis.is-in .ib-band, .fm-js .vis.is-in .ib-legend .k-exp { transition: opacity .6s ease 3.2s; }
  .fm-js .vis.is-in .ib-gap { transition: opacity .7s ease 4.7s; }
  .fm-js .vis.is-in .ib-read { transition: opacity .6s ease 5s; }
}


/* ---------- visual: job-stages ---------- */

.js { --lane: 3.4em; --node: 1.7em; position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto auto; gap: 1.6em; padding: 1.6em 1.2em 1.4em; font-size: clamp(11px, 1.75cqw, 17px); color: var(--ink); }
.js p, .js h4 { margin: 0; }
.js-l0 { font: 400 1em/1.2 var(--font-mono); color: var(--muted); }
.js-card { display: flex; align-items: center; justify-content: space-between; gap: 1.6em; padding: 1.4em 1.6em; border-radius: var(--corner) var(--radius) var(--radius) var(--radius); background: var(--mist); }
.js-ct { display: grid; gap: 0.5em; }
.js-card h4 { font: 500 1.7em/1.15 var(--font-sans); letter-spacing: -0.02em; }
.js-val { font: 500 1.35em/1.2 var(--font-mono); letter-spacing: -0.02em; color: var(--ember-deep); }
.js-send { position: relative; flex: none; display: grid; justify-items: center; padding: 0.9em 1.3em; border-radius: var(--corner-button, 10px) var(--radius) var(--radius) var(--radius); background: var(--ink); color: var(--white); font: 500 1.05em/1 var(--font-mono); white-space: nowrap; }
.js-send > span { grid-area: 1 / 1; }
.js-s0 { opacity: 0; }
.js-s1 { opacity: 1; }
.js-board { position: relative; align-self: center; padding-top: var(--lane); }
.js-line { position: absolute; left: calc(100% / 18); right: calc(100% / 18); top: calc(var(--lane) + var(--node) / 2 - 1px); height: 2px; background: var(--line-strong); }
.js-line i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--at) / 8 * 100%); background: var(--ember); }
.js-sts { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.js-st { position: relative; display: grid; justify-items: center; align-content: start; gap: 0.7em; text-align: center; }
.js-st > i { position: relative; z-index: 1; display: block; width: var(--node); height: var(--node); border-radius: 2px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.js-st.done > i { background: var(--ink); box-shadow: none; }
.js-st.now > i { background: var(--ember); }
.js-l { font: 400 0.9em/1.25 var(--font-mono); letter-spacing: -0.04em; color: var(--muted); }
.js-st.done .js-l { color: var(--ink); }
.js-st.now .js-l { font-weight: 500; }
.js-q { font: 500 0.9em/1 var(--font-mono); color: var(--ember-deep); }
.js-chip { position: absolute; z-index: 2; top: 0; left: calc((var(--at) + 0.5) / 9 * 100%); transform: translateX(-50%); padding: 0.65em 0.9em; border-radius: var(--radius); background: var(--ember-deep); color: var(--white); font: 500 0.9em/1 var(--font-mono); white-space: nowrap; }
.js-chip::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: calc(var(--lane) - 2.1em); margin-left: -1px; background: var(--ember-deep); }
.js-impact { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "l t" "b b"; align-items: center; gap: 0.9em 1.6em; align-self: end; padding-top: 1.3em; border-top: 1px solid var(--line); }
.js-impact .js-l0 { grid-area: l; }
.js-it { grid-area: t; font: 500 1.35em/1.25 var(--font-sans); letter-spacing: -0.02em; }
.js-bars { grid-area: b; display: grid; gap: 0.5em; }
.js-bars div { display: grid; grid-template-columns: 9em 1fr; align-items: center; gap: 0.8em; font: 400 0.95em/1 var(--font-mono); color: var(--muted); }
.js-bars i { display: block; height: 0.9em; border-radius: 2px; transform-origin: left; }
.js-bars .b0 { width: 52%; background: var(--line-strong); box-shadow: inset 0 0 0 1px var(--muted); background-image: none; }
.js-bars .b1 { width: 82%; background: var(--ember); }
.js-note { font: 400 1em/1.3 var(--font-mono); color: var(--muted); }

@container (max-width: 620px) {
  .js { --lane: 0px; --node: 1.5em; font-size: max(10.5px, 2.5cqw); gap: 1.3em; padding: 1.4em; grid-template-rows: auto 1fr auto auto; }
  .js-card { flex-direction: column; align-items: flex-start; gap: 1em; padding: 1.1em 1.2em; }
  .js-card h4 { font-size: 1.5em; }
  .js-board { padding: 0 6.5em 0 0; align-self: stretch; }
  .js-line { left: calc(var(--node) / 2 - 1px); right: auto; top: calc(100% / 18); bottom: calc(100% / 18); width: 2px; height: auto; }
  .js-line i { right: 0; bottom: auto; width: auto; height: calc(var(--at) / 8 * 100%); }
  .js-sts { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(9, minmax(0, 1fr)); height: 100%; }
  .js-st { grid-auto-flow: column; justify-content: start; justify-items: start; align-items: center; align-content: center; gap: 0.9em; text-align: left; }
  .js-chip { top: calc((var(--at) + 0.5) / 9 * 100%); left: auto; right: 0; transform: translateY(-50%); }
  .js-chip::after { display: none; }
  .js-impact { grid-template-columns: 1fr; grid-template-areas: "l" "t" "b"; gap: 0.6em; padding-top: 1em; }
  .js-bars div { grid-template-columns: 8.5em 1fr; }
  .js-it { font-size: 1.25em; }
  .js-l, .js-q { font-size: 1em; }
  .js-bars { max-width: 22em; }
}

@media (prefers-reduced-motion: no-preference) {
  .fm-js .js-chip { transition: left .55s var(--ease), top .55s var(--ease), opacity .4s ease; }
  .fm-js .js-line i { transition: width .55s var(--ease), height .55s var(--ease); }
  .fm-js .js-st > i { transition: background-color .35s ease, box-shadow .35s ease; }
  .fm-js .js-l { transition: color .35s ease; }
  .fm-js .js-q, .fm-js .js-impact, .fm-js .js-s0, .fm-js .js-s1 { transition: opacity .5s ease; }
  .fm-js .js-bars i { transition: transform .8s var(--ease); }
  .fm-js .js-card { transition: transform .7s var(--ease), background-color .5s ease; }
  /* before it is sent: the card is the only thing lit, the chip waits on the card */
  .fm-js .js[data-at="-1"] .js-chip { opacity: 0; }
  .fm-js .js[data-at="-1"] .js-s0 { opacity: 1; }
  .fm-js .js[data-at="-1"] .js-s1 { opacity: 0; }
  .fm-js .js[data-at="-1"] .js-card { transform: translateY(0.8em); background: var(--white); box-shadow: inset 0 0 0 1px var(--line-strong); }
  .fm-js .js[data-impact="0"] .js-impact { opacity: 0.18; }
  .fm-js .js[data-impact="0"] .js-bars .b1 { transform: scaleX(0); }
  .fm-js .js[data-impact="0"] .js-bars .b0 { transform: scaleX(0); }
  .fm-js .js:not([data-at]) .js-q { opacity: 0; }
  .fm-js .js[data-at="-1"] .js-q, .fm-js .js[data-at="0"] .js-q { opacity: 0; }
}


/* ---------- visual: journey-river ---------- */

.jr { --aw: 22%; --bx: 39%; --bw: 22%; --cx: 82%; --cw: 18%; position: absolute; inset: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 0.9em; padding: 1.5em 1.7em 1.3em; font-size: max(10px, 1.7cqw); line-height: 1.25; color: var(--white); }
.jr p { margin: 0; }
.jr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8em 1.4em; }
.jr-seg { display: inline-flex; padding: 0.25em; border-radius: 10px 2px 2px 2px; background: rgba(255,255,255,.08); }
.jr-seg button { padding: 0.65em 1.1em; border: 0; border-radius: 8px 2px 2px 2px; background: transparent; color: var(--muted-on-ink); font: 500 1em/1 var(--font-sans); cursor: pointer; transition: background-color .25s, color .25s; }
.jr-seg button + button { border-radius: 2px; }
.jr-seg button:hover { color: var(--white); }
.jr-seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.jr-key { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3em 0.6em; font-size: 0.95em; }
.jr-key i { width: 1.6em; height: 0.7em; border-radius: 2px; background: var(--fm-primary); }
.jr-key b { font: 500 1em/1.2 var(--font-mono); color: var(--fm-primary); }
.jr-cols { position: relative; height: 1.2em; font: 400 0.85em/1.2 var(--font-mono); color: var(--muted-on-ink); }
.jr-cols span { position: absolute; top: 0; white-space: nowrap; }
.jr-cols .mid { left: var(--bx); }
.jr-cols .end { right: 0; }
.jr-plot { position: relative; min-height: 0; }
.jr-bands { position: absolute; top: 0; height: 100%; overflow: visible; }
.jr-bands.s1 { left: var(--aw); width: calc(var(--bx) - var(--aw)); }
.jr-bands.s2 { left: calc(var(--bx) + var(--bw)); width: calc(var(--cx) - var(--bx) - var(--bw)); }
.jr-bands path { stroke: var(--ink); stroke-width: 0.75; vector-effect: non-scaling-stroke; transition: opacity .3s, fill .3s; }
.jr-bands .rec { fill: rgba(255,255,255,.09); }
.jr-bands .rec.x { fill: rgba(255,255,255,.22); }
.jr-bands .rec.hot { fill: var(--fm-primary); }
.jr-bands .nr { fill: rgba(255,255,255,.03); stroke: rgba(255,255,255,.4); stroke-dasharray: 3 3; }
.jr-bands .mod { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.62); stroke-dasharray: 3 3; }
.jr-bands .mod.hot { fill: rgba(238,70,43,.24); stroke: var(--fm-primary); }
.jr.is-hl .jr-bands path { opacity: .16; }
.jr.is-hl .jr-bands path.on { opacity: 1; }
.jr.is-hl .jr-bands .rec.on:not(.hot) { fill: rgba(255,255,255,.55); }
.jr.is-hl .jr-bands .mod.on:not(.hot) { fill: rgba(255,255,255,.2); stroke: var(--white); }

.jr-n { position: absolute; top: var(--t0); height: var(--h0); display: flex; align-items: center; gap: 0.45em; min-height: 0; padding: 0 0.55em 0 0.75em; overflow: hidden; border: 0; border-radius: 2px; background: rgba(255,255,255,.07); color: var(--white); font: 400 1em/1.1 var(--font-sans); text-align: left; cursor: pointer; transition: background-color .25s; }
.jr-n.c-a { left: 0; width: var(--aw); }
.jr-n.c-b { left: var(--bx); width: var(--bw); }
.jr-n.c-c { left: var(--cx); width: var(--cw); }
.jr-n::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,.9); }
.jr-n:hover, .jr-n:focus-visible, .jr-n.on { background: rgba(255,255,255,.16); }
.jr-n .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: clip; }
.jr-n b { flex: none; font: 500 1em/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.jr-n.nr { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); color: var(--muted-on-ink); }
.jr-n.nr::before { display: none; }
.jr-m { position: absolute; left: 0; top: var(--mt); height: var(--mh); width: 3px; border-left: 3px dashed var(--white); background: var(--ink); opacity: 0; pointer-events: none; }
.jr-n b i { font-style: normal; font-weight: 400; color: var(--muted-on-ink); }
.jr-n .nm, .jr-n b { position: relative; z-index: 1; }
.jr-buy { display: grid; align-content: start; gap: 0.35em; padding: 0.9em 0.8em 0.9em 1em; cursor: default; }
.jr-buy::before { background: var(--fm-primary); }
.jr-buy b { font-size: 1.9em; letter-spacing: -0.04em; }
.jr-buy .nm { flex: none; color: var(--muted-on-ink); }
.jr-buy .val { font: 500 1.05em/1 var(--font-mono); }
.jr-foot { display: flex; align-items: center; min-height: 1.4em; font: 400 0.88em/1.3 var(--font-mono); color: var(--muted-on-ink); }
.jr-foot span { display: inline-flex; align-items: center; gap: 0.6em; }
.jr-foot .sw { width: 1.8em; height: 0.8em; border-radius: 2px; border: 1px dashed rgba(255,255,255,.55); }
.jr-foot .sw.mod { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.8); }

/* The two views: Known by default; Predicted moves the bars and swaps the bands. */
.jr-bands.lp { opacity: 0; }
.jr[data-mode="p"] .jr-bands.lk { opacity: 0; }
.jr[data-mode="p"] .jr-bands.lp { opacity: 1; }
.jr .tp { display: none; }
.jr[data-mode="p"] .tp { display: inline; }
.jr[data-mode="p"] .tk { display: none; }
.jr[data-mode="p"] .jr-foot .tp { display: inline-flex; }
.jr[data-mode="p"] .jr-n { top: var(--t1); height: var(--h1); }
.jr[data-mode="p"] .jr-m { opacity: 1; }
.jr[data-mode="p"] .jr-n.gone { opacity: 0; visibility: hidden; }

@container (max-width: 520px) {
  .jr { font-size: max(10px, 2.9cqw); padding: 1.2em 1.1em 1em; gap: 0.75em; }
  .jr-top { gap: 0.6em; }
  .jr-seg { width: 100%; }
  .jr-seg button { flex: 1; }
  .jr { --aw: 28%; --bx: 41%; --bw: 28%; --cx: 83%; --cw: 17%; }
  .jr-n b { display: none; }
  .jr-buy b { display: block; }
  .jr-n { padding: 0 0.3em 0 0.6em; }
  .jr-buy { padding: 0.7em 0.5em 0.7em 0.7em; }
  .jr-buy b { font-size: 1.5em; }
  .jr-buy .nm { display: block; }
  .jr-buy .val { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .fm-js .jr-bands { clip-path: inset(0 100% 0 0); transition: opacity .35s ease, clip-path 0s linear .35s; }
  .fm-js .is-in .jr[data-mode="k"] .jr-bands.lk, .fm-js .is-in .jr[data-mode="p"] .jr-bands.lp { clip-path: inset(0 0 0 0); transition: opacity .2s ease, clip-path 1.5s var(--ease) var(--d, 0s); }
  .fm-js .jr-bands.s1 { --d: .55s; }
  .fm-js .jr-bands.s2 { --d: 1.55s; }
  .fm-js .jr-n { opacity: 0; transform: translateX(-0.6em); }
  .fm-js .is-in .jr-n { opacity: 1; transform: none; transition: opacity .5s var(--ease) calc(var(--c) * 480ms), transform .5s var(--ease) calc(var(--c) * 480ms), top .7s var(--ease), height .7s var(--ease), background-color .25s; }
  .fm-js .is-in .jr[data-mode="p"] .jr-n.gone { opacity: 0; }
  .fm-js .jr-m { transition: opacity .4s ease; }
  .fm-js .jr[data-mode="p"] .jr-m { transition-delay: .5s; }
  .fm-js .jr-key, .fm-js .jr-foot { opacity: 0; }
  .fm-js .is-in .jr-key { opacity: 1; transition: opacity .6s ease 2.2s; }
  .fm-js .is-in .jr-foot { opacity: 1; transition: opacity .6s ease 2.6s; }
}


/* ---------- visual: lenses ---------- */

.lz { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.1em; padding: 2em 2.2em 1.7em; font-size: max(10px, 1.62cqw); color: var(--ink); }
.lz p { margin: 0; }
.lz-bar { display: flex; align-items: center; gap: 0.6em 1.2em; flex-wrap: wrap; }
.lz-by { font: 400 0.95em/1 var(--font-mono); color: var(--muted); }
.lz-chips { display: flex; flex-wrap: wrap; gap: 0.45em; }
.lz-chips button { position: relative; overflow: hidden; padding: 0.8em 1.05em; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; color: var(--ink); font: 500 1em/1 var(--font-sans); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.lz-chips button:first-child { border-top-left-radius: 10px; }
.lz-chips button:hover { border-color: var(--ink); }
.lz-chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.lz-chips button i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--fm-primary); transform: scaleX(0); transform-origin: left; }
.lz-note { font: 400 1.05em/1.35 var(--font-mono); min-height: 1.35em; }
.lz-table { display: grid; grid-template-rows: auto repeat(4, minmax(0, 1fr)); min-height: 0; }
.lz-row { position: relative; display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr) 7.2em 5em; align-items: center; column-gap: 1.4em; padding: 0.9em 0; border-bottom: 1px solid var(--line); }
.lz-head { padding: 0 0 0.7em; font: 400 0.85em/1.2 var(--font-mono); color: var(--muted); border-bottom-color: var(--line-strong); }
.lz-ch { display: flex; align-items: center; gap: 0.6em; min-width: 0; }
.lz-ch img { width: auto; height: 1.35em; max-width: 100%; object-fit: contain; object-position: left center; }
.lz-ch b { font-weight: 500; font-size: 1.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lz-num { text-align: right; font: 500 1.2em/1 var(--font-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lz-head .lz-num { font: inherit; letter-spacing: 0; }
.lz-num.is-none { font: 400 0.92em/1.1 var(--font-mono); letter-spacing: 0; color: var(--muted); white-space: normal; }
.lz-track { position: relative; height: 1.6em; }
.lz-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-strong); }
.lz-tick { position: absolute; top: 0.15em; bottom: 0.15em; left: calc(var(--x) * 100%); width: 2px; margin-left: -1px; background: rgba(18,13,11,.2); }
.lz-fill { position: absolute; left: 0; top: 0.3em; bottom: 0.3em; width: calc(var(--x) * 100%); border-radius: 0 2px 2px 0; background: var(--ink); }
.lz-row.is-swing .lz-fill { background: var(--fm-primary); }
.lz-row.is-swing .lz-v { color: var(--ember-deep); }
.lz-delta { position: absolute; right: 0; bottom: -0.05em; transform: translateY(50%); padding: 0.15em 0.5em; border-radius: 2px; background: var(--white); font: 400 0.8em/1.2 var(--font-mono); color: var(--ember-deep); white-space: nowrap; }
.lz-delta:empty { display: none; }
.lz-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5em 2em; padding-top: 0.2em; }
.lz-foot p { display: flex; align-items: baseline; gap: 0.7em; }
.lz-foot span { font: 400 0.9em/1.2 var(--font-mono); color: var(--muted); }
.lz-foot b { font: 500 1.25em/1 var(--font-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lz-total.is-over { color: var(--ember-deep); }
.lz-foot .lz-over { margin-left: auto; font: 400 0.9em/1.2 var(--font-mono); color: var(--ember-deep); }
.lz-foot .lz-over[hidden] { display: none; }

@container (max-width: 560px) {
  .lz { font-size: max(10px, 2.6cqw); padding: 1.4em 1.3em 1.2em; gap: 0.9em; }
  .lz-by { flex-basis: 100%; }
  .lz-chips button { padding: 0.75em 0.8em; }
  .lz-row { grid-template-columns: minmax(0, 1fr) auto 4.6em; row-gap: 0.55em; padding: 0.8em 0 0.9em; }
  .lz-ch { grid-column: 1; grid-row: 1; }
  .lz-v { grid-column: 2; grid-row: 1; }
  .lz-r { grid-column: 3; grid-row: 1; }
  .lz-track { grid-column: 1 / -1; grid-row: 2; height: 1.2em; }
  .lz-head .lz-th-track { display: none; }
  .lz-head span:first-child { grid-column: 1; }
  .lz-delta { bottom: auto; top: 0.1em; transform: none; display: none; }
  .lz-foot .lz-over { margin-left: 0; }
}

/* Motion: the bars and figures move between lenses; the chip in use fills along its foot while it waits. */
@media (prefers-reduced-motion: no-preference) {
  .fm-js .lz-fill { transition: width .9s var(--ease), background-color .4s; }
  .fm-js .lz-tick { transition: background-color .4s; }
  .fm-js .lz-v { transition: color .4s; }
  .fm-js .lz-delta:not(:empty) { animation: lz-in .5s var(--ease) .5s both; }
  .fm-js .lz.is-auto .lz-chips button[aria-pressed="true"] i { transform: scaleX(1); transition: transform var(--dwell, 3s) linear; }
}
@keyframes lz-in { from { opacity: 0; transform: translateY(50%) translateY(4px); } }


/* ---------- visual: mmm ---------- */

.mmv { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 3.1fr) minmax(0, 7fr); gap: 2.2cqw; padding: 2.4cqw; font-size: max(10px, 1.1cqw); }
.mmv-steps { display: grid; align-content: center; gap: 0.5em; margin: 0; padding: 0; list-style: none; }
.mmv-steps button { position: relative; display: grid; gap: 0.35em; width: 100%; padding: 1.1em 1.2em 1.1em 1.4em; border: 0; border-radius: 2px; background: transparent; color: rgba(255,255,255,.62); text-align: left; font: inherit; cursor: pointer; transition: background-color .3s, color .3s; }
.mmv-steps button:hover { color: var(--white); }
.mmv-steps button[aria-current="true"] { background: rgba(255,255,255,.07); color: var(--white); }
.mmv-steps .n { font: 400 0.85em/1 var(--font-mono); letter-spacing: 0; }
.mmv-steps .sm { display: none; }
.mmv-steps b { font: 500 1.45em/1.15 var(--font-sans); letter-spacing: -0.02em; }
.mmv-steps .d { font-size: 1.05em; line-height: 1.4; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.mmv-steps button[aria-current="true"] .d { max-height: 6em; opacity: 1; }
.mmv-steps i { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,.14); }
.mmv-steps button[aria-current="true"] i { background: var(--fm-primary); }
.mmv-steps i::after { content: ""; position: absolute; inset: 0; background: var(--fm-primary); transform: scaleY(0); transform-origin: top; }
.mmv-canvas { position: relative; min-height: 0; border-radius: 2px; background: rgba(255,255,255,.04); }
.mm-scene { position: absolute; inset: 0; width: 100%; height: 100%; padding: 1.4% 2%; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.mmv[data-step="0"] .s0, .mmv[data-step="1"] .s1, .mmv[data-step="2"] .s2, .mmv[data-step="3"] .s3 { opacity: 1; visibility: visible; transition-delay: 0s; }
.mm-scene .t { font: 400 15px var(--font-mono); fill: rgba(255,255,255,.62); }
.mm-scene .nm { font: 500 21px var(--font-sans); fill: var(--white); }
.mm-scene .v { font: 500 18px var(--font-mono); fill: var(--white); text-anchor: end; }
.mm-scene .fig { font: 500 54px var(--font-mono); fill: var(--fm-tertiary-on-ink); letter-spacing: -2px; }
.mm-scene .axis, .mm-scene .grid, .mm-scene .drop { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1; }
.mm-scene .grid { stroke: rgba(255,255,255,.08); }
.mm-scene .drop { stroke-dasharray: 3 4; }
.mm-scene .sales, .mm-scene .curve { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.mm-scene .sales { stroke: var(--fm-primary); }
.mm-scene .curve.c1 { stroke: var(--fm-primary); }
.mm-scene .curve.c2 { stroke: rgba(255,255,255,.7); }
.mm-scene .dot { fill: var(--ink); stroke: var(--white); stroke-width: 3; }
.mm-scene .lay-l { font: 500 15px var(--font-sans); }
.mm-scene .track { fill: rgba(255,255,255,.12); }
.mm-scene .range { fill: rgba(238,70,43,.45); }
.mm-scene .mark { fill: var(--fm-primary); }
.mm-scene .k1, .mm-scene .t2 { fill: var(--white); }

@container (min-width: 1000px) {
  .vis-stage:has(> .mmv) { aspect-ratio: 21 / 9; }
}
@container (max-width: 700px) {
  .vis-stage:has(> .mmv) { aspect-ratio: 5 / 4.6; }
  .mmv { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 1.4em; padding: 1.6em; font-size: max(10px, 2.4cqw); }
  .mmv-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: 0.4em; }
  .mmv-steps button { padding: 0.8em 0.6em; }
  .mmv-steps b { font-size: 1.15em; }
  .mmv-steps .lg { display: none; }
  .mmv-steps .sm { display: inline; }
  .mmv-steps .d { display: none; }
  .mm-scene .t { font-size: 18px; }
}

/* Motion: each scene's parts start undrawn and draw when its step is the current one. */
@media (prefers-reduced-motion: no-preference) {
  .fm-js .mm-scene .sales, .fm-js .mm-scene .curve { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .fm-js .mm-scene .bar { transform: scaleY(0); transform-origin: 50% 372px; transform-box: view-box; }
  .fm-js .mm-scene .layer { clip-path: inset(0 100% 0 0); }
  .fm-js .mm-scene .lay-l, .fm-js .mm-scene .drop, .fm-js .mm-scene .dot, .fm-js .mm-scene .t:not(.nm), .fm-js .mm-scene .fig, .fm-js .mm-scene .mark { opacity: 0; }
  .fm-js .mm-scene .b1.down { --from: 1.22; }
  .fm-js .mm-scene .b1.up { --from: 0.82; }
  /* a scene that is leaving keeps its drawing until it has faded */
  .fm-js .mm-scene * { transition: opacity 0s linear .5s, transform 0s linear .5s, stroke-dashoffset 0s linear .5s, clip-path 0s linear .5s; }
  .fm-js .mm-scene .b1 { transform: scaleX(var(--from, 1)); transform-box: fill-box; transform-origin: left; }
  .fm-js .mm-scene .range { transform: scaleX(0); transform-box: fill-box; transform-origin: 50% 50%; }
  .fm-js .mm-scene .nm, .fm-js .mm-scene .v, .fm-js .mm-scene .b0 { opacity: 0; }

  .fm-js .mmv[data-step="0"] .s0 .bar { transform: none; transition: transform .7s var(--ease); transition-delay: calc(var(--i) * 30ms); }
  .fm-js .mmv[data-step="0"] .s0 .sales { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease) .9s; }
  .fm-js .mmv[data-step="0"] .s0 .t { opacity: 1; transition: opacity .6s ease .3s; }

  .fm-js .mmv[data-step="1"] .s1 .layer { clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease); transition-delay: calc(var(--k) * 380ms); }
  .fm-js .mmv[data-step="1"] .s1 .lay-l { opacity: 1; transition: opacity .5s ease; transition-delay: calc(var(--k) * 380ms + 900ms); }
  .fm-js .mmv[data-step="1"] .s1 .t { opacity: 1; transition: opacity .6s ease .2s; }

  .fm-js .mmv[data-step="2"] .s2 .curve { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease); }
  .fm-js .mmv[data-step="2"] .s2 .c2 { transition-delay: .2s; }
  .fm-js .mmv[data-step="2"] .s2 .c1 { transition-delay: .6s; }
  .fm-js .mmv[data-step="2"] .s2 .drop { opacity: 1; transition: opacity .6s ease 2.0s; }
  .fm-js .mmv[data-step="2"] .s2 .dot { opacity: 1; transition: opacity .5s ease 2.1s; }
  .fm-js .mmv[data-step="2"] .s2 .t { opacity: 1; transition: opacity .6s ease 2.3s; }

  .fm-js .mmv[data-step="3"] .s3 .nm, .fm-js .mmv[data-step="3"] .s3 .b0 { opacity: 1; transition: opacity .5s ease; }
  .fm-js .mmv[data-step="3"] .s3 .v { opacity: 1; transition: opacity .5s ease 1.4s; }
  .fm-js .mmv[data-step="3"] .s3 .b1 { transform: none; transition: transform 1.1s var(--ease) .5s; }
  .fm-js .mmv[data-step="3"] .s3 .range { transform: none; transition: transform .9s var(--ease) 1.6s; }
  .fm-js .mmv[data-step="3"] .s3 .mark, .fm-js .mmv[data-step="3"] .s3 .fig, .fm-js .mmv[data-step="3"] .s3 .t { opacity: 1; transition: opacity .5s ease 2.2s; }
  .fm-js .mmv[data-step="3"] .s3 .t:first-of-type { transition-delay: .2s; }

  .mmv-steps button[aria-current="true"] i::after { transform: scaleY(1); transition: transform var(--dwell, 5.4s) linear; }
}


/* ---------- visual: models ---------- */

.md { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.1em; padding: 1.8em 2em 1.6em; font-size: max(9px, 1.15cqw); color: var(--ink); }
.md p { margin: 0; }
.md-chips { display: flex; flex-wrap: wrap; gap: 0.6em; }
.md-chips button { padding: 0.95em 1.3em; border: 1px solid var(--line-strong); border-radius: 10px 2px 2px 2px; background: transparent; color: var(--ink); font: 500 1.1em/1 var(--font-sans); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.md-chips button:hover { border-color: var(--ink); }
.md-chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.md-note { font-size: 1.25em; line-height: 1.35; min-height: 1.35em; }
.md-journey { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 0.8em; align-items: end; min-height: 0; }
.md-journey::before { content: ""; position: absolute; left: 4%; right: 8%; bottom: calc(3.4em + 1.5em); height: 2px; background: var(--line-strong); }
.md-t, .md-order { position: relative; display: grid; grid-template-rows: 1fr auto auto auto; justify-items: center; gap: 0.35em; min-height: 0; height: 100%; text-align: center; }
.md-track { position: relative; width: 100%; max-width: 5.4em; min-height: 9em; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.md-track i { display: block; width: 100%; height: calc(var(--s) * 100%); min-height: 2px; background: var(--fm-primary); border-radius: 2px 2px 0 0; transition: height .9s var(--ease); }
.md-track b { order: -1; margin-bottom: 0.5em; font: 500 1.15em/1 var(--font-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.md-order .md-track { max-width: none; }
.md-order .md-track b { margin: 0; font-size: 1.6em; }
.md-node { position: relative; z-index: 1; display: grid; place-items: center; width: 3.4em; height: 3.4em; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.md-node img { width: 1.7em; height: 1.7em; object-fit: contain; }
.md-t:nth-child(1) .md-node img, .md-t:nth-child(2) .md-node img, .md-t:nth-child(3) .md-node img { width: 2.2em; }
.md-sale { background: var(--ink); box-shadow: none; }
.md-sale span { width: 0.9em; height: 0.9em; border-radius: 4px 1px 1px 1px; background: var(--fm-tertiary-on-ink); }
.md-what { font-weight: 500; font-size: 1.05em; line-height: 1.25; }
.md-day { font: 400 0.9em/1.2 var(--font-mono); color: var(--muted); }
.md-claims { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8em 1.6em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.md-ct { font: 400 0.95em/1.3 var(--font-mono); color: var(--muted); }
.md-claims ul { display: flex; gap: 1.4em; margin: 0; padding: 0; list-style: none; }
.md-claims li { display: flex; align-items: center; gap: 0.6em; font: 500 1.05em/1 var(--font-mono); }
.md-claims li img { width: auto; height: 1.3em; max-width: none; }
.md-sum { margin-left: auto; font: 500 1.05em/1.2 var(--font-mono); color: var(--ember-deep); }
.md-sum { white-space: nowrap; }

@container (max-width: 640px) {
  .md { font-size: max(10px, 2.1cqw); padding: 1.4em; }
  .md-sum { margin-left: 0; }
  .md-chips button { padding: 0.8em 0.9em; }
}
@container (max-width: 440px) {
  .md { font-size: 10.5px; }
  .md-order { display: none; }
  .md-journey { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md-journey::before { right: 4%; }
  .md-claims ul { flex-wrap: wrap; gap: 0.8em 1.2em; }
  .md-what { font-size: 1em; }
}


/* ---------- visual: profit-waterfall ---------- */

.pw { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1.2em; padding: 1.9em 2.1em 1.6em; font-size: max(10px, 1.15cqw); color: var(--ink); }
.pw p { margin: 0; }
.pw-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.pw-t { font: 400 0.95em/1.2 var(--font-mono); color: var(--muted); }
.pw-tog { display: flex; gap: 0.3em; padding: 0.25em; border-radius: 2px; background: var(--mist); }
.pw-tog button { padding: 0.65em 1em; border: 0; border-radius: 2px; background: transparent; color: var(--ink); font: 500 1em/1 var(--font-sans); cursor: pointer; transition: background-color .2s, color .2s; }
.pw-tog button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.pw-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 1.1em; min-height: 0; margin: 0; padding: 0; list-style: none; }
.pw-col { display: grid; grid-template-rows: minmax(0, 1fr) 3em; gap: 0.7em; min-height: 0; }
.pw-track { position: relative; margin-top: 2.2em; border-bottom: 1px solid var(--line-strong); }
.pw-fill { position: absolute; left: 0; right: 0; bottom: calc(var(--lo) * 100%); height: max(2px, calc((var(--hi) - var(--lo)) * 100%)); border-radius: 2px; background: rgba(18,13,11,.2); transition: bottom .8s var(--ease), height .8s var(--ease); }
.k-sales .pw-fill { background: var(--ink); }
.k-net .pw-fill { background: var(--fm-primary); }
.pw-link { position: absolute; left: 100%; width: 1.1em; bottom: calc(var(--c) * 100%); height: 0; border-top: 1px dashed rgba(18,13,11,.4); transition: bottom .8s var(--ease); }
.pw-v { position: absolute; left: 50%; bottom: calc(var(--hi) * 100% + 0.5em); transform: translateX(-50%); font: 500 1.15em/1 var(--font-mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; transition: bottom .8s var(--ease); }
.k-net .pw-v { font-size: 1.45em; color: var(--ember-deep); }
.pw-name { font-size: 1em; line-height: 1.25; font-weight: 500; text-align: center; }
.k-cost .pw-name { font-weight: 400; color: var(--muted); }
.pw-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5em 2em; padding-top: 1em; border-top: 1px solid var(--line); }
.pw-foot p { display: flex; align-items: baseline; gap: 0.6em; }
.pw-foot span { font: 400 0.9em/1.2 var(--font-mono); color: var(--muted); }
.pw-foot b { font: 500 1.25em/1 var(--font-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pw-foot .pw-note { flex: 1 1 18em; justify-content: flex-end; text-align: right; font: 400 0.9em/1.3 var(--font-mono); color: var(--muted); }

/* A narrow stage: the waterfall runs down the page, one row a step. */
@container (max-width: 560px) {
  .pw { font-size: max(10px, 2.6cqw); padding: 1.4em 1.3em 1.2em; gap: 1em; }
  .pw-top { flex-wrap: wrap; }
  .pw-bars { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 0.35em; align-content: stretch; }
  .pw-col { grid-template-columns: 8em minmax(0, 1fr) 6.4em; grid-template-rows: none; align-items: center; gap: 0.8em; }
  .pw-name { order: -1; text-align: left; }
  .pw-track { grid-column: 2; align-self: center; height: 2.2em; margin: 0; border-bottom: 0; border-left: 1px solid var(--line-strong); }
  .pw-fill { top: 0.25em; bottom: 0.25em; height: auto; left: calc(var(--lo) * 100%); right: auto; width: max(2px, calc((var(--hi) - var(--lo)) * 100%)); transition: left .8s var(--ease), width .8s var(--ease); }
  .pw-link { display: none; }
  .pw-v { left: auto; right: calc(-6.4em - 0.8em); bottom: auto; top: 50%; width: 6.4em; transform: translateY(-50%); text-align: right; font-size: 1.1em; }
  .k-net .pw-v { font-size: 1.1em; }
  .pw-foot .pw-note { text-align: left; justify-content: flex-start; }
}

/* Motion, as it scrolls in: the bars fall left to right, the link lines and names follow. */
@media (prefers-reduced-motion: no-preference) {
  .fm-js .vis:not(.is-in) .pw-fill { transform: scaleY(0); }
  .fm-js .vis:not(.is-in) .pw-link, .fm-js .vis:not(.is-in) .pw-v, .fm-js .vis:not(.is-in) .pw-foot { opacity: 0; }
  .fm-js .pw-fill { transform-origin: 50% 0; }
  .fm-js .k-sales .pw-fill, .fm-js .k-net .pw-fill { transform-origin: 50% 100%; }
  .fm-js .vis.is-in .pw-fill { transition: bottom .8s var(--ease), height .8s var(--ease), transform .7s var(--ease) calc(var(--i) * 260ms + 200ms); }
  .fm-js .vis.is-in .pw-v { transition: bottom .8s var(--ease), opacity .4s ease calc(var(--i) * 260ms + 300ms); }
  .fm-js .vis.is-in .pw-link { transition: bottom .8s var(--ease), opacity .3s ease calc(var(--i) * 260ms + 800ms); }
  .fm-js .vis.is-in .pw-foot { transition: opacity .6s ease 2.4s; }
}
@container (max-width: 560px) {
  @media (prefers-reduced-motion: no-preference) {
    .fm-js .vis:not(.is-in) .pw-fill { transform: scaleX(0); }
    .fm-js .pw-fill { transform-origin: 100% 50%; }
    .fm-js .k-sales .pw-fill, .fm-js .k-net .pw-fill { transform-origin: 0 50%; }
    .fm-js .vis.is-in .pw-fill { transition: left .8s var(--ease), width .8s var(--ease), transform .7s var(--ease) calc(var(--i) * 220ms + 200ms); }
  }
}


/* ---------- visual: recs-rank ---------- */

.rr { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1em; padding: 1.6em 2em; font-size: max(10px, 1.15cqw); color: var(--ink); }
.rr p, .rr ol, .rr dl, .rr dd { margin: 0; padding: 0; }
.rr-top { display: flex; align-items: end; justify-content: space-between; gap: 0.6em 1.4em; flex-wrap: wrap; }
.rr-title { font: 500 1.45em/1.15 var(--font-sans); letter-spacing: -0.02em; }
.rr-title span { display: block; margin-top: 0.35em; font: 400 0.66em/1.2 var(--font-mono); letter-spacing: 0; color: var(--muted); }
.rr-total { font: 400 0.95em/1.3 var(--font-mono); color: var(--muted); text-align: right; }
.rr-total b { display: block; font: 500 1.75em/1.1 var(--font-mono); letter-spacing: -0.04em; color: var(--ember-deep); font-variant-numeric: tabular-nums; }
.rr-list { display: flex; flex-direction: column; gap: 0.3em; min-height: 0; list-style: none; }
.rr-row { border-radius: 2px; background: var(--white); }
.rr-row:first-child { border-radius: 1.2em 2px 2px 2px; }
.rr-head { display: grid; grid-template-columns: 1.9em minmax(0, 1fr) auto 3.2em; align-items: center; gap: 0.9em; width: 100%; padding: 0.55em 0.9em 0.55em 0.6em; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.rr-head:hover .rr-t { text-decoration: underline; text-underline-offset: 0.2em; }
.rr-n { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 2px; background: var(--ink); color: var(--white); font: 500 0.95em/1 var(--font-mono); }
.rr-t { min-width: 0; font: 500 1.05em/1.25 var(--font-sans); letter-spacing: -0.01em; }
.rr-t small, .rr-v small { display: block; margin-top: 0.2em; font: 400 0.82em/1.2 var(--font-mono); letter-spacing: 0; color: var(--muted); }
.rr-t small { display: inline; margin: 0 0 0 0.7em; }
.rr-v { font: 500 1em/1.1 var(--font-mono); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rr-m { display: flex; gap: 0.2em; justify-self: end; }
.rr-m i { width: 0.8em; height: 0.8em; border-radius: 1px; background: rgba(18,13,11,.13); transition: background-color .35s ease; }
.rr-row[data-s="1"] .rr-m i:nth-child(-n+1), .rr-row[data-s="2"] .rr-m i:nth-child(-n+2), .rr-row[data-s="3"] .rr-m i:nth-child(-n+3) { background: var(--ink); }
.rr-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.rr-row.open .rr-more { grid-template-rows: 1fr; }
.rr-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.6em 1.8em; min-height: 0; overflow: hidden; padding: 0 0.9em 0 3.4em; }
.rr-row.open .rr-in { padding-bottom: 0.9em; }
.rr-chart { display: flex; align-items: flex-end; gap: 0.35em; height: 4.6em; }
.rr-chart span { display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 0.3em; width: 4.4em; height: 100%; }
.rr-chart i { align-self: end; width: 100%; height: calc(var(--v) * 100%); background: rgba(18,13,11,.2); border-radius: 1px; }
.rr-chart .hot i { background: var(--fm-primary); }
.rr-chart em { font: 400 0.78em/1 var(--font-mono); font-style: normal; color: var(--muted); }
.rr-ev { display: flex; gap: 1.6em; }
.rr-ev dt { font: 500 1.5em/1 var(--font-mono); letter-spacing: -0.03em; }
.rr-ev dd { margin-top: 0.3em; font: 400 0.85em/1.25 var(--font-mono); color: var(--muted); }
.rr-acts { display: flex; gap: 0.5em; }
.rr-b { display: inline-flex; align-items: center; padding: 0.7em 1em; border-radius: 0.6em 2px 2px 2px; font: 500 0.95em/1 var(--font-sans); white-space: nowrap; }
.rr-apply { background: var(--ink); color: var(--white); }
.rr-send { box-shadow: inset 0 0 0 1px var(--ink); }

@container (max-width: 640px) {
  .rr { font-size: max(10px, 1.75cqw); padding: 1.3em 1.3em; }
  .rr-t small { display: block; margin: 0.25em 0 0; }
  .rr-in { grid-template-columns: minmax(0, 1fr); padding-left: 3.4em; gap: 0.8em; }
  .rr-ev { gap: 1.2em; }
}
@container (max-width: 520px) {
  .rr { font-size: max(10px, 2.9cqw); gap: 0.9em; }
  .rr-top { display: grid; }
  .rr-total { text-align: left; }
  .rr-head { grid-template-columns: 1.9em minmax(0, 1fr) 2.8em; grid-template-rows: auto auto; gap: 0.25em 0.7em; padding: 0.6em 0.7em 0.6em 0.5em; }
  .rr-n { grid-row: 1 / 3; }
  .rr-t { grid-column: 2; }
  .rr-v { grid-column: 2; grid-row: 2; text-align: left; }
  .rr-v small { display: inline; margin-left: 0.5em; }
  .rr-m { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .rr-t small { display: inline; margin: 0 0 0 0.6em; }
  .rr-in { padding-left: 3em; }
  .rr-chart { height: 3.8em; }
}

/* Motion (JS adds .play while it runs): rows arrive, meters fill, then the list sorts. */
@media (prefers-reduced-motion: no-preference) {
  .rr.play .rr-row { opacity: 0; transform: translateY(0.6em); }
  .rr.play .rr-row.in { opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
  .rr.play .rr-row:not(.lit) .rr-m i { background: rgba(18,13,11,.13); }
  .rr.play .rr-row:not(.lit) .rr-v { opacity: 0.25; }
  .rr-v { transition: opacity .4s ease; }
  .rr-m i:nth-child(2) { transition-delay: .12s; }
  .rr-m i:nth-child(3) { transition-delay: .24s; }
  .rr-row.open .rr-chart i { animation: rr-grow .8s var(--ease) .3s both; }
  .rr-row.open .rr-chart span:nth-child(2) i { animation-delay: .4s; }
  .rr-row.open .rr-chart span:nth-child(3) i { animation-delay: .5s; }
  .rr-row.open .rr-chart span:nth-child(4) i { animation-delay: .6s; }
}
@keyframes rr-grow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }


/* ---------- visual: serp-climb ---------- */

.sc { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 1.3em 1.8em; padding: 2em 2.2em; font-size: clamp(11px, 1.72cqw, 15px); line-height: 1.25; color: var(--ink); }
.sc p { margin: 0; }
.sc-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.4em; }
.sc-field { flex: 1; display: flex; align-items: center; min-height: 3em; padding: 0 1.2em; border-radius: 1.2em 2px 2px 2px; background: var(--mist); font-size: 1.15em; font-weight: 500; }
.sc-where { display: grid; gap: 0.2em; justify-items: end; font: 400 0.85em/1.2 var(--font-mono); color: var(--muted); white-space: nowrap; }

.sc-list { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0.4em; min-height: 0; }
.sc-hd { display: grid; grid-template-columns: 3em minmax(0, 1fr) 7.6em; gap: 0.85em; font: 400 0.85em/1 var(--font-mono); color: var(--muted); }
.sc-hd span:last-child { text-align: right; }
.sc-places { display: grid; grid-template-rows: repeat(10, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; min-height: 0; }
.sc-pl { display: grid; grid-template-columns: 3em minmax(0, 1fr) 7.6em; align-items: center; gap: 0.85em; min-height: 0; border-top: 1px solid var(--line); }
.sc-pl b { font: 400 0.95em/1 var(--font-mono); color: var(--muted); grid-column: 1; }
.sc-ctr { grid-column: 3; display: grid; grid-template-columns: minmax(0, 1fr) 3em; align-items: center; gap: 0.5em; }
.sc-ctr i { display: block; height: 0.6em; width: calc(var(--c) * 100%); justify-self: start; border-radius: 2px; background: rgba(18,13,11,.14); transition: background-color .4s ease; }
.sc-ctr em { font: 400 0.85em/1 var(--font-mono); font-style: normal; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.sc-res { position: absolute; left: 3.8em; right: 8.4em; bottom: 0; top: calc(0.85em + 0.4em); margin: 0; padding: 0; list-style: none; }
.sc-r { position: absolute; left: 0; right: 0; top: calc(var(--pos) * 10%); height: 10%; display: flex; align-items: center; gap: 0.85em; padding: 0 0.2em; }
.sc-fav { flex: none; width: 1em; height: 1em; border-radius: 50%; background: rgba(18,13,11,.12); }
.sc-bars { flex: 1; display: grid; gap: 0.3em; }
.sc-bars i { display: block; height: 0.42em; width: calc(var(--w) * 100%); border-radius: 2px; background: rgba(18,13,11,.12); }
.sc-bars i + i { height: 0.55em; background: rgba(18,13,11,.2); }
.sc-you { z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.15em; padding: 0 0.85em; border-radius: 2px; background: var(--ink); color: var(--white); }
.sc-url { font: 400 0.85em/1 var(--font-mono); color: var(--muted-on-ink); }
.sc-you b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92em; font-weight: 500; line-height: 1.1; }

.sc-side { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1em; min-height: 0; }
.sc-checks { position: relative; padding: 1.1em 1.2em 2.9em; border-radius: 2px; background: var(--mist); }
.sc-k { font: 400 0.85em/1.2 var(--font-mono); color: var(--muted); }
.sc-wk { position: relative; height: 4.4em; margin: 0.6em 0.4em 0; padding: 0; list-style: none; }
.sc-wk::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0.45em; height: 2px; background: rgba(18,13,11,.14); }
.sc-wk li { --on: 1; position: absolute; left: calc(var(--x) * 100%); bottom: 0; display: grid; justify-items: center; gap: 0.5em; transform: translateX(-50%); }
.sc-wk li b { font: 500 0.85em/1 var(--font-mono); opacity: var(--on); transition: opacity .3s ease; }
.sc-wk li i { width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--mist); transition: background-color .3s ease; }
.sc-wk li:last-child i { background: var(--fm-primary); }
.sc-wk li:last-child b { color: var(--ember-deep); }
.sc-fix { position: absolute; left: calc(1.6em + var(--x) * (100% - 3.2em)); bottom: 0.85em; transform: translateX(-50%); padding: 0.3em 0.55em; border-radius: 2px; background: var(--fm-primary-deep); color: var(--white); font: 400 0.85em/1.1 var(--font-mono); white-space: nowrap; }
.sc-fix::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: 1.5em; border-left: 1.5px dashed var(--fm-primary-deep); }
.sc-card { display: grid; align-content: center; gap: 0.85em; padding: 1.2em; border-radius: 2px; background: var(--ink); color: var(--white); min-height: 0; }
.sc-tag { justify-self: start; padding: 0.35em 0.6em; border-radius: 2px; background: var(--fm-primary-deep); font: 400 0.85em/1.1 var(--font-mono); }
.sc-fig { display: grid; gap: 0.3em; }
.sc-fig b { font: 500 2.6em/1 var(--font-mono); letter-spacing: -0.05em; color: var(--fm-primary); }
.sc-fig span { font-size: 0.92em; line-height: 1.3; color: var(--muted-on-ink); }
.sc-meter { display: grid; grid-template-columns: 1fr auto; gap: 0.4em; font: 400 0.85em/1 var(--font-mono); color: var(--muted-on-ink); }
.sc-meter em { font-style: normal; color: var(--white); font-variant-numeric: tabular-nums; }
.sc-meter i { grid-column: 1 / -1; position: relative; height: 0.5em; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.sc-meter i::after { content: ""; position: absolute; inset: 0; background: var(--fm-primary); transform-origin: left; transform: scaleX(var(--g)); }
.sc[data-at="1"] .sc-pl:nth-child(1) .sc-ctr i { background: var(--fm-primary); } .sc[data-at="1"] .sc-pl:nth-child(1) em, .sc[data-at="1"] .sc-pl:nth-child(1) b { color: var(--ink); font-weight: 500; }
.sc[data-at="2"] .sc-pl:nth-child(2) .sc-ctr i { background: var(--fm-primary); } .sc[data-at="2"] .sc-pl:nth-child(2) em, .sc[data-at="2"] .sc-pl:nth-child(2) b { color: var(--ink); font-weight: 500; }
.sc[data-at="3"] .sc-pl:nth-child(3) .sc-ctr i { background: var(--fm-primary); } .sc[data-at="3"] .sc-pl:nth-child(3) em, .sc[data-at="3"] .sc-pl:nth-child(3) b { color: var(--ink); font-weight: 500; }
.sc[data-at="4"] .sc-pl:nth-child(4) .sc-ctr i { background: var(--fm-primary); } .sc[data-at="4"] .sc-pl:nth-child(4) em, .sc[data-at="4"] .sc-pl:nth-child(4) b { color: var(--ink); font-weight: 500; }
.sc[data-at="5"] .sc-pl:nth-child(5) .sc-ctr i { background: var(--fm-primary); } .sc[data-at="5"] .sc-pl:nth-child(5) em, .sc[data-at="5"] .sc-pl:nth-child(5) b { color: var(--ink); font-weight: 500; }
.sc[data-at="6"] .sc-pl:nth-child(6) .sc-ctr i { background: var(--fm-primary); } .sc[data-at="6"] .sc-pl:nth-child(6) em, .sc[data-at="6"] .sc-pl:nth-child(6) b { color: var(--ink); font-weight: 500; }
.sc[data-at="7"] .sc-pl:nth-child(7) .sc-ctr i { background: var(--fm-primary); } .sc[data-at="7"] .sc-pl:nth-child(7) em, .sc[data-at="7"] .sc-pl:nth-child(7) b { color: var(--ink); font-weight: 500; }
.sc[data-at="8"] .sc-pl:nth-child(8) .sc-ctr i { background: var(--fm-primary); } .sc[data-at="8"] .sc-pl:nth-child(8) em, .sc[data-at="8"] .sc-pl:nth-child(8) b { color: var(--ink); font-weight: 500; }
.sc[data-at="9"] .sc-pl:nth-child(9) .sc-ctr i { background: var(--fm-primary); } .sc[data-at="9"] .sc-pl:nth-child(9) em, .sc[data-at="9"] .sc-pl:nth-child(9) b { color: var(--ink); font-weight: 500; }
.sc[data-at="10"] .sc-pl:nth-child(10) .sc-ctr i { background: var(--fm-primary); } .sc[data-at="10"] .sc-pl:nth-child(10) em, .sc[data-at="10"] .sc-pl:nth-child(10) b { color: var(--ink); font-weight: 500; }

.sc-br { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1.2em; padding: 2em 2.2em; font-size: clamp(11px, 1.72cqw, 15px); line-height: 1.25; color: var(--ink); }
.sc-br p { margin: 0; }
.sc-bh { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6em 1.4em; font: 400 0.85em/1.2 var(--font-mono); color: var(--muted); }
.sc-key { display: inline-flex; align-items: center; gap: 0.5em; }
.sc-key i { width: 0.85em; height: 0.85em; border-radius: 2px; }
.sc-key i.nb { background: var(--fm-primary); }
.sc-key i.b { margin-left: 0.85em; background: rgba(18,13,11,.3); }
.sc-bars16 { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 0.45em; align-items: stretch; margin: 0; padding: 0; list-style: none; min-height: 0; border-bottom: 1px solid var(--line-strong); }
.sc-bars16 li { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.4em; min-height: 0; }
.sc-bars16 .st { display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; transform-origin: bottom; }
.sc-bars16 .st i { display: block; border-radius: 2px 2px 0 0; }
.sc-bars16 .st i.n { height: calc(var(--n) * 100%); background: var(--fm-primary); }
.sc-bars16 .st i.b { height: calc(var(--b) * 100%); border-radius: 0; background: rgba(18,13,11,.3); }
.sc-bars16 em { min-height: 1.2em; font: 400 0.85em/1.2 var(--font-mono); font-style: normal; color: var(--muted); text-align: center; white-space: nowrap; }
.sc-bars16 li.sc-cmp em { color: var(--ink); font-weight: 500; }
.sc-bn { display: flex; align-items: baseline; gap: 0.85em; }
.sc-bn b { flex: none; font: 500 2.4em/1 var(--font-mono); letter-spacing: -0.05em; color: var(--fm-primary); }
.sc-bn span { font-size: 1em; line-height: 1.35; }
@container (max-width: 520px) {
  .sc-br { font-size: clamp(11px, 3.1cqw, 14px); padding: 1.4em; }
  .sc-bars16 { gap: 0.25em; }
  .sc-bars16 em { font-size: 0.85em; }
  .sc-bn { display: grid; gap: 0.4em; }
}
@media (prefers-reduced-motion: no-preference) {
  .fm-js .sc-bars16 .st { transform: scaleY(0); }
  .fm-js .sc-bn { opacity: 0; }
  .is-in .sc-bars16 .st { transform: none; transition: transform .7s var(--ease); transition-delay: calc(var(--i) * 70ms); }
  .is-in .sc-bn { opacity: 1; transition: opacity .6s ease 1.5s; }
}

@container (max-width: 640px) {
  .sc { padding: 1.6em 1.7em; gap: 1.1em 1.3em; }
  .sc-where span + span { display: none; }
  .sc-fig span { display: none; }
  .sc-card { gap: 0.6em; padding: 1em; }
}
@container (max-width: 520px) {
  .sc { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; font-size: clamp(11px, 3.1cqw, 14px); padding: 1.4em; gap: 1em; }
  .sc-where { display: none; }
  .sc-hd, .sc-pl { grid-template-columns: 2em minmax(0, 1fr) 5.6em; }
  .sc-res { left: 2.8em; right: 6.4em; }
  .sc-ctr { grid-template-columns: minmax(0, 1fr) 2.2em; }
  .sc-side { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto; gap: 0.85em; }
  .sc-checks { padding: 0.9em 0.9em 2.6em; }
  .sc-wk { margin-inline: 0.3em; }
  .sc-wk li b { font-size: 0.85em; }
  .sc-fix { font-size: 0.85em; bottom: 0.9em; }
  .sc-card { padding: 0.9em; gap: 0.5em; }
  .sc-fig b { font-size: 1.9em; }
  .sc-fig span, .sc-meter span, .sc-meter em, .sc-hd span:nth-child(2) { display: none; }
  .sc-tag { font-size: 0.85em; }
}

@media (prefers-reduced-motion: no-preference) {
  .fm-js .sc-r { transition: top .8s var(--ease); }
  .fm-js .sc-you { transition: top .9s var(--ease), background-color .3s; }
  .fm-js .sc-meter i::after { transition: transform .8s var(--ease); }
  .fm-js .sc[data-w="0"] .sc-wk li:nth-child(n+2) { --on: 0; }
  .fm-js .sc[data-w="1"] .sc-wk li:nth-child(n+3) { --on: 0; }
  .fm-js .sc[data-w="2"] .sc-wk li:nth-child(n+4) { --on: 0; }
  .fm-js .sc[data-w="3"] .sc-wk li:nth-child(n+5) { --on: 0; }
  .fm-js .sc[data-w="4"] .sc-wk li:nth-child(n+6) { --on: 0; }
  
  .fm-js .sc:not([data-w="5"]) .sc-wk li:last-child i { background: var(--ink); }
  .fm-js .sc:not([data-w="5"]) .sc-wk li:last-child b { color: var(--ink); }
  .fm-js .sc-wk li i { opacity: calc(0.18 + var(--on) * 0.82); }
  .fm-js .sc[data-beat="0"] .sc-card { opacity: 0; transform: translateY(0.85em); }
  .fm-js .sc[data-beat="0"] .sc-fix, .fm-js .sc[data-beat="1"] .sc-fix { opacity: 0; transform: translate(-50%, 0.5em); }
  .fm-js .sc-card { transition: opacity .5s ease, transform .5s var(--ease); }
  .fm-js .sc-fix { transition: opacity .4s ease, transform .4s var(--ease); }
  .fm-js .sc[data-beat="0"] *, .fm-js .sc[data-beat="0"] .sc-meter i::after { transition: none; }
  .fm-js .sc[data-beat="0"] .sc-card { transition: none; }
}


/* ---------- visual: survey-bars ---------- */

.sv { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 1em; padding: 1.7em 1.9em 1.4em; font-size: max(10px, 1.7cqw); line-height: 1.25; color: var(--ink); }
.sv p { margin: 0; }
.sv .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sv-head { margin-bottom: 0.4em; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.8em 1.6em; }
.sv-q { padding: 0.9em 1.1em; border-radius: 1.2em 2px 2px 2px; background: var(--mist); }
.sv-ask { font: 500 1.45em/1.15 var(--font-sans); letter-spacing: -0.02em; }
.sv-n { margin-top: 0.4em !important; font: 400 0.9em/1.2 var(--font-mono); color: var(--muted); }
.sv-key { display: flex; gap: 1.2em; font: 400 0.9em/1.2 var(--font-mono); color: var(--muted); }
.sv-key span { display: inline-flex; align-items: center; gap: 0.5em; }
.sv-key i { width: 1.4em; height: 0.7em; border-radius: 2px; }
.sv-key .k-c { background: var(--ink); }
.sv-key .k-s { background: var(--fm-primary); }
.sv-rows { display: grid; align-content: center; gap: 0.3em; margin: 0; padding: 0; list-style: none; min-height: 0; }
.sv-r { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); align-items: center; gap: 1em; padding: 0.5em 0.7em; border-radius: 2px; transition: background-color .5s ease; }
.sv-r.miss { background: var(--mist); }
.sv-ch { font-size: 1.05em; font-weight: 500; }
.sv-bars { display: grid; gap: 0.3em; }
.sv-b { display: flex; align-items: center; gap: 0.6em; height: 1.25em; }
.sv-b i { display: block; width: max(3px, calc(var(--v) * 82%)); height: 100%; border-radius: 1px 2px 2px 1px; transform-origin: left; }
.sv-b.c i { background: var(--ink); height: 70%; }
.sv-b.s i { background: var(--fm-primary); }
.sv-b b { font: 500 0.9em/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.sv-b.s b { color: var(--ember-deep); }
.sv-sum { display: flex; flex-wrap: wrap; gap: 0.6em 2.2em; padding-top: 0.9em; border-top: 1px solid var(--line-strong); }
.sv-fig { display: flex; align-items: baseline; gap: 0.5em; }
.sv-fig b { font: 500 2.2em/1 var(--font-mono); letter-spacing: -0.04em; }
.sv-fig.s b { color: var(--fm-primary); }
.sv-fig span { font-size: 1em; }
.sv-foot { font: 400 0.82em/1.3 var(--font-mono); color: var(--muted); }

@container (max-width: 520px) {
  .sv { font-size: max(10px, 2.9cqw); padding: 1.3em 1.2em 1.1em; gap: 0.8em; }
  .sv-r { grid-template-columns: 5.6em minmax(0, 1fr); gap: 0.6em; padding: 0.4em 0.5em; }
  .sv-ask { font-size: 1.3em; }
  .sv-fig b { font-size: 1.8em; }
  .sv-sum { gap: 0.5em; }
}

@media (prefers-reduced-motion: no-preference) {
  .fm-js .sv-b i { transform: scaleX(0); }
  .fm-js .sv-b b, .fm-js .sv-sum, .fm-js .sv-foot, .fm-js .sv-key { opacity: 0; }
  .fm-js .sv-r.miss { background-color: transparent; }
  .fm-js .sv-q { opacity: 0; transform: translateY(0.6em); }
  .is-in .sv-q { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .is-in .sv-key { opacity: 1; transition: opacity .5s ease .4s; }
  .is-in .sv-b.c i { transform: none; transition: transform .9s var(--ease) calc(var(--i) * 110ms + 600ms); }
  .is-in .sv-b.s i { transform: none; transition: transform 1s var(--ease) calc(var(--i) * 110ms + 1500ms); }
  .is-in .sv-b.c b { opacity: 1; transition: opacity .4s ease calc(var(--i) * 110ms + 900ms); }
  .is-in .sv-b.s b { opacity: 1; transition: opacity .4s ease calc(var(--i) * 110ms + 1800ms); }
  .is-in .sv-r.miss { background-color: var(--mist); transition: background-color .7s ease 3.1s; }
  .is-in .sv-sum { opacity: 1; transition: opacity .7s ease 3.5s; }
  .is-in .sv-foot { opacity: 1; transition: opacity .7s ease 3.9s; }
}

