/* audiencesai.com — design system v1 (spec v5 §10 + v5.1 §A8)
   Paper-white ground, cool ink, cobalt house accent, petrol for Triage.
   Grey (--held) is a state, reserved for refusal / held / withheld / insufficient data.
   Gold and terracotta exist only inside the logo SVG files.
   No uppercase letterspaced labels, no pills, no card grids, no scroll reveals. */

:root {
  --paper: #f7f8fa;
  --paper-2: #eef0f3;
  --ink: #191c21;
  --ink-2: #575d66;
  --line: #dde0e4;
  --line-strong: #a6abb3;
  --accent: #1f3fbf;
  --accent-ink: #17308f;
  --accent-tint: #edf0fb;
  --petrol: #0f6b66;
  --petrol-ink: #0b524e;
  --petrol-tint: #e9f2f1;
  --held: #5f646b;
  --held-bg: #eff1f3;
  --sans: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 76px; font-weight: 650; max-width: 15em; letter-spacing: -0.02em; }
h2 { font-size: 40px; margin-bottom: 0.6em; }
h3 { font-size: 21.5px; }
p { margin: 0 0 1em; }
p.lede { font-size: 21.5px; color: var(--ink-2); max-width: 40em; line-height: 1.5; }

.wrap { max-width: 1080px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 760px; }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* header */
.site-head { background: #191c21; }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 62px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 650; font-size: 17px; }
.brand img { width: 30px; height: 30px; display: block; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.site-nav a { text-decoration: none; color: #a7adb5; font-size: 13.5px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a.cta { color: #fff; border: 1px solid #6a7078; padding: 7px 14px; border-radius: 2px; }
.site-nav a.cta:hover { border-color: #fff; background: transparent; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px 8px; margin-left: auto; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 5px; }

/* Mobile / tablet: hamburger panel, same links, bigger targets. The .js
   gate keeps the wrapping nav as a no-JS fallback. */
@media (max-width: 1024px) {
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; }
  .js .site-head.open .site-nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin-left: 0; gap: 0; padding: 6px 0 18px; }
  .js .site-head.open .site-nav a { font-size: 17px; padding: 13px 2px; color: #eceef1; border-bottom: 1px solid #2b2f37; }
  .js .site-head.open .site-nav a[aria-current="page"] { color: #fff; font-weight: 600; }
  .js .site-head.open .site-nav a.cta { margin-top: 16px; text-align: center; border: 1px solid #6a7078; border-radius: 2px; padding: 13px; }
  .js .site-head.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .js .site-head.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .js .site-head.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 720px) {
  .site-head .wrap { gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .site-nav { width: 100%; margin-left: 0; gap: 8px 14px; padding-bottom: 4px; }
  .site-nav a { font-size: 13.5px; }
  .site-nav a.cta { padding: 6px 12px; }
}

/* footer */
.site-foot { margin-top: 0; background: var(--ink); --ink-2: #a7adb5; --line: #3a3f46; color: #e9ebee; }
.site-foot a { color: #c3c8cf; }
.site-foot a:hover { color: #fff; }
.site-foot .wrap { padding-top: 40px; padding-bottom: 48px; display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; font-size: 17px; }
.site-foot nav { display: flex; gap: 40px; flex-wrap: wrap; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-note { color: var(--ink-2); max-width: 34em; }
.foot-note img { width: 26px; height: 26px; margin-bottom: 10px; }

/* sections */
.band { padding-top: 88px; padding-bottom: 88px; }
main > .band:first-child { padding-top: 96px; padding-bottom: 88px; }
.band + .band { border-top: 1px solid var(--line); }
.band-tight { padding-top: 48px; padding-bottom: 48px; }
.kick { color: var(--ink-2); font-size: 13.5px; margin-bottom: 14px; }
.kick b { color: var(--ink); font-weight: 600; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.split.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 820px) { .split, .split.rev { grid-template-columns: 1fr; gap: 24px; } }

/* ledger tables */
table.ledger { width: 100%; border-collapse: collapse; font-size: 17px; }
.ledger caption { text-align: left; font-weight: 600; padding-bottom: 10px; }
.ledger th { text-align: left; font-weight: 600; font-size: 13.5px; color: var(--ink-2); border-bottom: 1px solid var(--line-strong); padding: 8px 16px 8px 0; }
.ledger td { border-bottom: 1px solid var(--line); padding: 10px 16px 10px 0; vertical-align: top; }
.ledger td.num, .ledger td.state { font-family: var(--mono); font-size: 13.5px; }
.ledger tr.held td { color: var(--held); }
.tbl-scroll { overflow-x: auto; }
.prov { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; max-width: 60em; }

/* decision card */
.decision-card { border: 1px solid var(--line-strong); background: #fff; border-radius: 2px; max-width: 620px; }
.decision-card header { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.decision-card header .sys { font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); }
.decision-card h3 { margin: 0; font-size: 17px; }
.dc-row { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 11px 20px; border-bottom: 1px solid var(--line); font-size: 17px; margin: 0; }
.dc-row:last-of-type { border-bottom: 0; }
.dc-row dt { font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); }
.dc-row dd { margin: 0; }
.decision-card .dc-actions { padding: 12px 20px; display: flex; gap: 10px; border-top: 1px solid var(--line); background: var(--paper); font-size: 13.5px; }
.decision-card.held { border-color: var(--held); background: var(--held-bg); }
.decision-card.held header { border-color: var(--held); }
.dc-note { font-size: 13.5px; color: var(--ink-2); padding: 10px 20px 14px; margin: 0; }
@media (max-width: 480px) { .dc-row { grid-template-columns: 1fr; gap: 2px; } }

/* states: grey has meaning */
.state { font-family: var(--mono); font-size: 13.5px; }
.state.held { color: var(--held); }
.state.go { color: var(--petrol-ink); }

/* stage + honesty devices */
.stage-note { color: var(--ink); max-width: 46em; }
.stage-note strong { color: var(--accent-ink); }
.stage-note.triage strong { color: var(--petrol-ink); }
.assume { font-size: 13.5px; color: var(--ink-2); font-style: italic; max-width: 46em; }

/* buttons */
.btn { display: inline-block; font-size: 17px; font-weight: 550; padding: 11px 20px; border-radius: 2px; text-decoration: none; border: 1px solid var(--ink); color: var(--paper); background: var(--ink); }
.btn:hover { background: #000; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* index lists (articles, work) */
.index-list { list-style: none; margin: 0; padding: 0; }
.index-list li { border-top: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 170px 1fr; gap: 20px; }
.index-list li:last-child { border-bottom: 1px solid var(--line); }
.index-list .meta { font-size: 13.5px; color: var(--ink-2); }
.index-list h3 { font-size: 17px; margin: 0 0 4px; }
.index-list h3 a { color: var(--ink); text-decoration: none; }
.index-list h3 a:hover { color: var(--accent-ink); text-decoration: underline; }
.index-list p { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 52em; }
@media (max-width: 640px) { .index-list li { grid-template-columns: 1fr; gap: 6px; } }

/* flow rows */
.flow { font-family: var(--mono); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: baseline; }
.flow .stepv { color: var(--ink); }
.flow .stepv.held { color: var(--held); }
.flow .arr { color: var(--line-strong); }

/* article pages */
.article-body { font-family: var(--serif); font-size: 21.5px; line-height: 1.65; max-width: 720px; }
.article-body h2 { font-family: var(--sans); font-size: 27px; margin-top: 1.6em; }
.article-body blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 2px solid var(--line-strong); color: var(--ink-2); }
.article-body table { font-family: var(--sans); }
.article-body ol, .article-body ul { padding-left: 1.3em; }
.art-meta { font-family: var(--sans); font-size: 13.5px; color: var(--ink-2); margin: 10px 0 34px; }
.art-route { font-family: var(--sans); font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; }

/* theme groupings on the hub */
.theme-block { margin-top: 44px; }
.theme-block > h2 { font-size: 21.5px; border-bottom: 1px solid var(--line-strong); padding-bottom: 10px; }

/* forms */
form.contact { display: grid; gap: 18px; max-width: 560px; }
.contact label { display: grid; gap: 6px; font-size: 17px; font-weight: 550; }
.contact input, .contact textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 2px; background: #fff; color: var(--ink); }
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.contact button { justify-self: start; cursor: pointer; }

/* the one authored motion: context switch */
.ctx-switch { display: flex; gap: 24px; margin: 18px 0 14px; flex-wrap: wrap; }
.ctx-switch button { font: inherit; font-size: 17px; padding: 4px 0; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; color: var(--ink-2); }
.ctx-switch button[aria-pressed="true"] { border-bottom-color: var(--ink); color: var(--ink); font-weight: 600; }
.ctx-panel { display: none; }
.ctx-panel.on { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .ctx-panel.on { animation: ctx-in 240ms ease-out; }
  @keyframes ctx-in { from { opacity: 0.35; } to { opacity: 1; } }
}

/* utility */
.mono { font-family: var(--mono); font-size: 13.5px; }
.muted { color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { position: fixed; left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* color-block bands (visual pass, Aug 2026): variable scoping recolors components inside */
.band-ink { background: #191c21; --ink: #eceef1; --ink-2: #a7adb5; --line: #3a3f46; --line-strong: #6a7078; --accent-ink: #aebdf5; --accent: #c7d2fa; color: #eceef1; }
.band-ink h1, .band-ink h2, .band-ink h3 { color: #fff; }
.band-ink .prov::before { color: #fff; }
.band-ink .btn { background: #fff; color: #191c21; border-color: #fff; }
.band-ink .btn:hover { background: var(--paper); color: #191c21; }
.band-accent { background: #17308f; --ink: #ffffff; --ink-2: #cdd6f6; --line: #3d55c4; --line-strong: #7c90e8; --accent-ink: #ffffff; --accent: #ffffff; color: #fff; }
.band-accent h1, .band-accent h2 { color: #fff; }
.band-accent .btn { background: #fff; color: #17308f; border-color: #fff; }
.band-accent .btn:hover { background: var(--accent-tint); color: #17308f; }
.band-accent .btn.ghost, .band-ink .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.band-tint-a { background: var(--accent-tint); }
.band-tint-p { background: var(--petrol-tint); }
.band + .band-ink, .band + .band-accent, .band-ink + .band, .band-accent + .band,
.band + .band-tint-a, .band + .band-tint-p, .band-tint-a + .band, .band-tint-p + .band { border-top: 0; }

/* big stats */
.stat-row { display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); }
.stat-row:last-of-type { border-bottom: 1px solid var(--line); }
.stat-row .stat-big { font-size: 56px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; white-space: nowrap; }
.stat-row p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 26em; }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; gap: 4px; } }

/* loop diagram */
.loop-svg { width: 100%; height: auto; display: block; }

/* editorial serif titles on the article hub */
.theme-block .index-list h3 { font-family: var(--serif); font-size: 21.5px; font-weight: 600; }

/* founder portrait */
.portrait { width: 100%; height: auto; max-width: 400px; border-radius: 2px; display: block; margin-left: auto; }
@media (max-width: 820px) { .portrait { margin-left: 0; max-width: 320px; } }

/* offer trio (taste-skill: bento background diversity, no icon tiles, no borders) */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.offer-grid .offer { padding: 26px 24px 20px; border-radius: 2px; }
.offer-grid h3 { font-size: 17px; margin-bottom: 8px; }
.offer-grid p { margin: 0; font-size: 17px; color: var(--ink-2); }
@media (max-width: 820px) { .offer-grid { grid-template-columns: 1fr; } }

/* artwork + diagrams */
.hero-art img, .viz { width: 100%; height: auto; display: block; }
.art-cap { font-size: 13.5px; color: var(--ink-2); margin-top: 12px; font-family: var(--mono); max-width: 34em; }

/* dark hero stage: field backdrop + floating product card (reference pattern) */
.hero-stage { position: relative; min-height: 420px; }
.hero-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-stage .decision-card { position: absolute; right: 0; bottom: 12px; max-width: 400px; }
.band-ink .art-cap { color: #a7adb5; }
@media (max-width: 820px) { .hero-stage { min-height: 360px; margin-top: 8px; } .hero-stage .decision-card { position: static; margin-top: -80px; } }
/* decision card is self-contained: identical on paper, tint, or ink grounds */
.decision-card { color: #191c21; position: relative; z-index: 1; }
.decision-card h3 { color: #191c21; }
.decision-card .dc-row dt, .decision-card header .sys, .decision-card .dc-note { color: #575d66; }
.decision-card .dc-row dd { color: #191c21; }

/* full-bleed hero: the whole viewport is the design (reference-site pattern) */
/* Hero bands. Each page carries its own color via --hero-bg / --hero-soft;
   the build inlines a twinkling field texture (bg rect stripped) on top. */
.hero-bleed { background: var(--hero-bg, #17308f); color: #fff; display: flex; align-items: center; min-height: min(86vh, 780px); }
.hero-bleed .wrap { padding-top: 90px; padding-bottom: 110px; }
.hero-bleed h1 { color: #fff; font-size: 88px; max-width: 12.5em; margin-bottom: 26px; }
.hero-bleed .lede { color: var(--hero-soft, #cdd6f6); font-size: 27px; max-width: 30em; }
.hero-bleed .btn { background: #fff; color: var(--hero-bg, #17308f); border-color: #fff; }
.hero-bleed .btn:hover { background: #edf0fb; color: var(--hero-bg, #17308f); }
.hero-bleed .btn.ghost { background: transparent; color: #fff; border-color: var(--hero-soft, #93a5ee); }
.hero-bleed .btn.ghost:hover { border-color: #fff; background: transparent; }
.hero-bleed .hero-note { margin-top: 56px; font-family: var(--mono); font-size: 13.5px; color: var(--hero-soft, #93a5ee); }
.hero-bleed .kick { color: var(--hero-soft, #cdd6f6); }
.hero-bleed .kick b { color: #fff; }
.hero-bleed .stage-line { margin-top: 40px; color: var(--hero-soft, #cdd6f6); max-width: 44em; }
.hero-bleed .stage-line strong { color: #fff; }

.hero-bleed.petrol { --hero-bg: #0b524e; --hero-soft: #bfe0dd; --mark-line: #3f8d88; }
.hero-bleed.wine   { --hero-bg: #8e2a52; --hero-soft: #f0cfdd; --mark-dim: #a94f74; --mark-bright: #f2b3ca; --mark-line: #c9789a; }

/* The inlined cobalt field's marks re-tint to each hero's hue, so the squares
   assimilate with the background. Petrol uses its native petrol texture. */
.hero-field rect[fill="#3d55c4"] { fill: var(--mark-dim, #3d55c4); }
.hero-field rect[fill="#8fa3f2"] { fill: var(--mark-bright, #8fa3f2); }
.hero-field rect[fill="none"] { stroke: var(--mark-line, #5a70d8); }

/* Inner-page heroes: same deep jewel register as home/Interpret/Triage,
   one distinct tone per page, marks tinted to match. */
.hero-bleed.ink        { --hero-bg: #191c21; --hero-soft: #a7adb5; --mark-dim: #383d46; --mark-bright: #7d8493; --mark-line: #565c66; }
.hero-bleed.governance { --hero-bg: #3d55c4; --hero-soft: #dde4fb; --mark-dim: #5e73d6; --mark-bright: #c9d4fb; --mark-line: #8fa0ea; }
.hero-bleed.violet     { --hero-bg: #45276f; --hero-soft: #d9c9ef; --mark-dim: #6b4a99; --mark-bright: #d4c2f0; --mark-line: #9d7fc9; }
.hero-bleed.amber      { --hero-bg: #9c5d10; --hero-soft: #f4dcb4; --mark-dim: #b97f2e; --mark-bright: #f2c979; --mark-line: #d5a250; }
.hero-bleed.plum       { --hero-bg: #5c1a3f; --hero-soft: #eec9dd; --mark-dim: #8a3f66; --mark-bright: #eebbd6; --mark-line: #b5719a; }
.hero-bleed.midnight   { --hero-bg: #101f5c; --hero-soft: #b9c4f0; --mark-dim: #2a3c8e; --mark-bright: #7d92e8; --mark-line: #4c5fb0; }

/* Inner-page hero: same band, less altitude. */
.hero-bleed.short { min-height: 0; }
.hero-bleed.short .wrap { padding-top: 84px; padding-bottom: 88px; }
.hero-bleed.short h1 { font-size: clamp(38px, 5.5vw, 60px); max-width: 17em; }
.hero-bleed.short .lede { font-size: 22px; }

/* hover states (interaction feedback, reduced-motion safe via global guard) */
a { transition: color .15s ease; }
.btn { transition: background .15s ease, border-color .15s ease, transform .1s ease; }
.btn:active { transform: translateY(1px); }
.index-list li { transition: background .15s ease; }
.index-list li:hover { background: #ffffff; }
.offer { transition: transform .15s ease; }
.offer:hover { transform: translateY(-2px); }
.ctx-switch button { transition: color .15s ease, border-color .15s ease; }

/* big footer */
.foot-word { font-size: 96px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.3; color: #fff; margin: 0; }
.foot-grid { display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; }
.foot-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-legal { border-top: 1px solid #3a3f46; margin-top: 40px; padding-top: 18px; font-size: 13.5px; color: #8a9097; }
.site-foot .wrap { display: block; }

/* same-signal pairs (replaces the cross-industry table) */
.sig-pair { border-top: 1px solid var(--line); padding: 20px 0; }
.sig-pair:last-of-type { border-bottom: 1px solid var(--line); }
.sig-pair .sig { font-family: var(--mono); font-size: 13.5px; color: var(--ink); margin-bottom: 10px; }
.sig-pair .sig span { color: var(--ink-2); }
.sig-pair .two-col { gap: 28px; }
.sig-pair p { margin: 0; font-size: 17px; color: var(--ink-2); }

/* sample loss map interactive */
.loss-rows { list-style: none; margin: 0; padding: 0; }
.loss-rows button { display: grid; grid-template-columns: 1fr auto; gap: 14px; width: 100%; text-align: left; font: inherit; font-size: 17px; padding: 13px 6px; background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; color: var(--ink-2); align-items: baseline; }
.loss-rows li:last-child button { border-bottom: 1px solid var(--line); }
.loss-rows button .hrs { font-family: var(--mono); font-size: 13.5px; }
.loss-rows button[aria-pressed="true"] { color: var(--ink); font-weight: 600; background: #fff; }

/* stepped type below desktop (replaces fluid clamp for engine-parseable hierarchy) */
@media (max-width: 900px) {
  h1 { font-size: 48px; }
  h2 { font-size: 30px; }
  .hero-bleed h1 { font-size: 52px; }
  .hero-bleed .lede { font-size: 21.5px; }
  .stat-row .stat-big { font-size: 42px; }
  .foot-word { font-size: 56px; }
  .foot-mark { width: 48px; height: 48px; }
}
@media (max-width: 480px) {
  h1 { font-size: 40px; }
  .hero-bleed h1 { font-size: 42px; }
  .foot-word { font-size: 38px; }
  .foot-mark { width: 34px; height: 34px; }
  .foot-brand { gap: 14px; flex-wrap: wrap; }
}
/* generous leading where the engine measures multi-line risk */
.narrow h1, .wrap h1 { line-height: 1.3; }
.theme-block > h2, .theme-block .index-list h3 { line-height: 1.4; }
.hero-bleed h1 { line-height: 1.14; }
.index-list p, .index-list .meta, .foot-note, .sig-pair p, .theme-block * { line-height: 1.6; }
.theme-block > h2 { line-height: 1.4; }

.foot-brand { display: flex; align-items: center; gap: 22px; margin-bottom: 28px; }
.foot-mark { width: 84px; height: 84px; display: block; flex: none; }

/* learning loop: U-channel anchored to the context->outcome span */
.loop-span { position: relative; display: inline-flex; gap: 10px 16px; flex-wrap: wrap; align-items: baseline; padding-bottom: 40px; }
.loop-u { position: absolute; left: 4px; right: 4px; bottom: 10px; height: 20px; border: 1.5px solid var(--line-strong); border-top: 0; border-radius: 0 0 4px 4px; }
.loop-u::before { content: ""; position: absolute; left: -5px; top: -7px; width: 9px; height: 8px; background: var(--line-strong); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.loop-u i { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); background: var(--paper); padding: 0 12px; font-style: normal; font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); line-height: 1.2; }

/* Inlined hero field layer (injected by the build). Sits under the content. */
.hero-bleed { position: relative; }
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-bleed > .wrap { position: relative; z-index: 1; }

/* Motion tier. site.js sets html.motion and randomizes per-element timing;
   without JS (or with reduced motion) none of this applies. */
@media (prefers-reduced-motion: no-preference) {
  .motion [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .35s ease-out, transform .35s ease-out; }
  .motion [data-reveal].in { opacity: 1; transform: none; }

  /* Hero field: squares keep changing and highlighting. Half the squares run
     two events per cycle - a bright flash and a dim-out; hollow squares blink.
     site.js randomizes each rect's duration and phase so no two pulse together. */
  .motion .hero-field rect:nth-of-type(2n) { animation: sq-hi 5s ease-in-out infinite; }
  .motion .hero-field rect[fill="none"] { animation-name: sq-blink; }
  @keyframes sq-hi { 8% { filter: brightness(3); } 18% { filter: none; } 55% { opacity: .2; } 68% { opacity: 1; } }
  @keyframes sq-blink { 10% { opacity: .05; } 22% { opacity: 1; } 60% { filter: brightness(2.2); } 70% { filter: none; } }

  /* Step chains (decision flow, build path): a shine travels the chain in flow
     order, forever. site.js staggers animation delays in document order. */
  .motion :is(.stepv, .arr, .loop-u i) { animation: chain-shine 5s ease-in-out infinite; }
  @keyframes chain-shine { 5% { color: var(--accent-ink, #1f3fbf); text-shadow: 0 0 14px rgba(31, 63, 191, .35); } 12% { text-shadow: none; } }

  /* Decision map: the ringed build-first dots ping like radar. */
  .motion .viz circle[stroke="#1f3fbf"] { transform-box: fill-box; transform-origin: center; animation: dot-ping 2.6s ease-out infinite; }
  .motion .viz circle[stroke="#1f3fbf"] ~ circle[stroke="#1f3fbf"] { animation-delay: .9s; }
  .motion .viz circle[stroke="#1f3fbf"] ~ circle[stroke="#1f3fbf"] ~ circle[stroke="#1f3fbf"] { animation-delay: 1.8s; }
  @keyframes dot-ping { 0% { transform: scale(.55); opacity: 0; } 25% { opacity: 1; } 75%, 100% { transform: scale(1.5); opacity: 0; } }
}
