/* Aria AI: page CSS on top of the kit (system.css, layout.css). Only what the kit lacks:
   the client's logo files, the brief's see-through nav over the film hero, the film itself,
   and the drawn pieces inside visuals. */

/* ---------- the lit ground behind UI in panels: a soft neutral grey, not sand (the brief's palette) ---------- */
html[data-ground="sand"] { --ground-bg: #e3e1dc; --ground-surface: #ecebe7; --ground-ink: #1d1d1c; --ground-muted: #5f5d58; --ground-accent: #2557d6; }

/* ---------- logo ---------- */
.nav__logo .logo { height: 26px; width: auto; display: block; }
.nav__logo .logo--light { display: none; }
@media (max-width: 639px) { .nav__logo .logo { height: 22px; } }
.footer__logo img { height: 32px; width: auto; }

/* ---------- nav: see-through over the film hero (the brief), warm white with a soft blur once scrolled ---------- */
.nav { transition: background-color 240ms var(--ease), border-color 240ms var(--ease), color 240ms var(--ease); }
.nav.is-scrolled {
  background: color-mix(in oklab, var(--p-bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
@media (min-width: 1024px) {
  .nav[data-over="dark"]:not(.is-scrolled):not(:has(.nav__item:hover, .nav__item:focus-within)) {
    background: transparent; border-bottom-color: rgb(255 255 255 / .14);
    --ink: #f4f2ee; color: #f4f2ee;
  }
  .nav[data-over="dark"]:not(.is-scrolled):not(:has(.nav__item:hover, .nav__item:focus-within)) .logo--dark { display: none; }
  .nav[data-over="dark"]:not(.is-scrolled):not(:has(.nav__item:hover, .nav__item:focus-within)) .logo--light { display: block; }
  .nav[data-over="dark"]:not(.is-scrolled):not(:has(.nav__item:hover, .nav__item:focus-within)) .btn--primary {
    --action: #f4f2ee; --action-ink: #151515; background: #f4f2ee; color: #151515; border-color: #f4f2ee;
  }
}
@media (max-width: 1023px) {
  .nav[data-over="dark"]:not(.is-scrolled):not(.is-open) {
    background: transparent; border-bottom-color: rgb(255 255 255 / .14); --ink: #f4f2ee; color: #f4f2ee;
  }
  .nav[data-over="dark"]:not(.is-scrolled):not(.is-open) .logo--dark { display: none; }
  .nav[data-over="dark"]:not(.is-scrolled):not(.is-open) .logo--light { display: block; }
  .nav[data-over="dark"]:not(.is-scrolled):not(.is-open) .nav__toggle { color: #f4f2ee; border-color: rgb(255 255 255 / .4); }
  .nav[data-over="dark"]:not(.is-scrolled):not(.is-open) .btn--primary { background: #f4f2ee; color: #151515; border-color: #f4f2ee; }
}
.nav__menu { box-shadow: 0 24px 48px -32px rgb(21 21 21 / .25); }
.nav__menu .menu-col a { transition: color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.nav__menu .menu-col a:hover { transform: translateX(4px); }

/* ---------- the film hero: stock footage over the whole first screen, words on its dark calm side ---------- */
.hero--cine { background: #0e0e0e; }
.hero--cine > video.hero__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--ly-pos, 50% 50%); filter: grayscale(1) contrast(1.05); }
.hero--cine::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 10% 60%, rgb(10 10 10 / .62), rgb(10 10 10 / 0) 70%), linear-gradient(180deg, rgb(10 10 10 / .35), rgb(10 10 10 / 0) 22%, rgb(10 10 10 / 0) 70%, rgb(10 10 10 / .55)); }
.hero--cine > .wrap { position: relative; z-index: 1; }
.hero--cine .hero__eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-5); font-size: var(--t-label); font-weight: 500; color: rgb(244 242 238 / .82); }
.hero--cine .hero__eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7da2ff; box-shadow: 0 0 0 4px rgb(125 162 255 / .18); }
.hero--cine:not(.hero--light) .btn--secondary { color: #f4f2ee; border-color: rgb(244 242 238 / .5); background: transparent; }
.hero--cine:not(.hero--light) .btn--secondary:hover { border-color: #f4f2ee; }
.hero--cine:not(.hero--light) .btn--primary { background: #f4f2ee; color: #151515; border-color: #f4f2ee; }
.hero--cine .hero__facts dt { color: rgb(244 242 238 / .7); }
.hero--cine .hero__facts { border-top: 1px solid rgb(244 242 238 / .2); }
@media (max-width: 1023px) {
  .hero--cine, .hero--cine[data-tone] { background: #0e0e0e; color: #f4f2ee; --ink: #f4f2ee; --muted: rgb(244 242 238 / .78); --line: rgb(255 255 255 / .2); --line-strong: rgb(255 255 255 / .5); }
  .hero--cine > video.hero__bg { top: 0; height: 100%; }
  .hero--cine > .wrap > .hero-text, .hero--cine[data-calm] > .wrap > .hero-text { justify-content: flex-end; }
  .hero--cine:not(.hero--light) .btn--secondary { color: #f4f2ee; }
}
.film-toggle {
  position: absolute; z-index: 2; right: max(var(--gut), calc((100% - 1280px) / 2)); bottom: var(--hpadb);
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgb(244 242 238 / .45); background: rgb(14 14 14 / .35); color: #f4f2ee; cursor: pointer;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.film-toggle:hover { border-color: #f4f2ee; transform: translateY(-1px); }
.film-toggle:active { transform: scale(.96); }
.film-toggle svg { width: 14px; height: 14px; }
.film-toggle .i-play { display: none; }
.film-toggle[aria-pressed="true"] .i-play { display: block; }
.film-toggle[aria-pressed="true"] .i-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .hero--cine > video.hero__bg { display: none; } .hero--cine { background: #111 var(--poster, none) center / cover no-repeat; } }

/* ---------- inner-page heroes (light, statement + picture) ---------- */
.hero--page .hero__lead { max-width: 46ch; }
.page-hero-media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--g-alt); height: 100%; min-height: 320px; }
.page-hero-media > img, .page-hero-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- photo cards (solutions, culture) ---------- */
.photo-card { display: grid; gap: var(--s-3); align-content: start; }
.photo-card .ph { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 5; background: var(--g-alt); }
.photo-card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
a.photo-card:hover .ph img { transform: scale(1.03); }
a.photo-card { transition: transform var(--dur) var(--ease); }
a.photo-card:hover { transform: translateY(-2px); }
.photo-card .t-card { margin-top: var(--s-2); }
.photo-card p { margin: 0; color: var(--ink); }
.ph--wide { aspect-ratio: 3 / 2 !important; }

/* ---------- axioms: logic set in the mono face (statement and cognitive core) ---------- */
.axioms { display: grid; gap: var(--s-4); margin-top: var(--s-8); }
.axioms.grid { gap: var(--gutter, 24px); }
.axiom { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); padding: var(--s-6) var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: color-mix(in oklab, var(--bg) 70%, #fff); }
.axiom code { font: 400 clamp(15px, 1.2vw, 19px)/1.5 var(--font-mono); letter-spacing: -0.01em; color: var(--ink); white-space: pre-wrap; }
.axiom code b { font-weight: 500; color: var(--action); }
.axiom span { font-size: var(--t-small); color: var(--muted); }
.ground-inverse .axiom { background: var(--p-inv-surface); }

/* ---------- audit trail (governance visual) ---------- */
.audit { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--p-inv-surface); }
.audit__bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.audit__bar b { font-weight: 500; }
.audit__ok { margin-left: auto; display: inline-flex; align-items: center; gap: var(--s-2); color: #8fd6a7; font-size: var(--t-label); }
.audit__ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: audit-pulse 2.8s var(--ease) infinite; }
@keyframes audit-pulse { 50% { opacity: .35; } }
.audit ol { list-style: none; margin: 0; padding: 0; }
.audit li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: var(--s-4); align-items: baseline; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.audit li:last-child { border-bottom: 0; }
.audit time, .audit code { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.audit .ev b { font-weight: 500; display: block; }
.audit .ev span { color: var(--muted); }
.audit .tag { font-size: 13px; font-weight: 500; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-strong); white-space: nowrap; }
.audit .tag--block { color: #ff9b8a; border-color: rgb(255 155 138 / .45); }
.audit .tag--ok { color: #8fd6a7; border-color: rgb(143 214 167 / .45); }
.audit .tag--wait { color: #f2c46d; border-color: rgb(242 196 109 / .45); }
@media (max-width: 639px) { .audit li { grid-template-columns: minmax(0, 1fr) auto; } .audit time { display: none; } }
@media (prefers-reduced-motion: reduce) { .audit__ok::before { animation: none; } }

/* ---------- autonomy track (four steps) ---------- */
.track { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.track li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.track li:last-child { border-bottom: 1px solid var(--line); }
.track .n { font: 400 14px/1.6 var(--font-mono); color: var(--muted); }
.track h3 { margin: 0 0 var(--s-1); font-size: var(--t-card); }
.track p { margin: 0; }

/* ---------- prose pages (blog, articles, security, legal) ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--t-h3); margin: var(--s-9) 0 var(--s-4); }
.prose h3 { font-size: var(--t-card); margin: var(--s-7) 0 var(--s-3); }
.prose p, .prose li { font-size: 18px; line-height: 1.7; }
.prose ul { padding-left: 1.2em; }
.prose blockquote { margin: var(--s-7) 0; padding-left: var(--s-5); border-left: 2px solid var(--action); font-size: var(--t-card); line-height: 1.5; }
.post-meta { font-size: var(--t-small); color: var(--muted); }

/* ---------- people (about) ---------- */
.person-card { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-7); border: 1px solid var(--line); border-radius: var(--r-lg); }
.monogram { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--p-ink); color: var(--p-bg); font: 500 22px/1 var(--font-display); letter-spacing: -0.02em; }
.person-card h3 { margin: 0; font-size: var(--t-card); }
.person-card .role { color: var(--muted); font-size: var(--t-small); margin: 0; }
.person-card p { margin: 0; }
.ground-inverse .monogram { background: var(--p-inv-ink); color: var(--p-inv-bg); }

/* ---------- layer cards on the home page: the small pieces drawn inside their panels ---------- */
.mini { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s-6); }
.mini-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); width: 100%; max-width: 340px; }
.mini-steps div { padding: var(--s-4) var(--s-3); border-radius: var(--r-md); background: var(--p-bg); border: 1px solid var(--line); font-size: 13px; display: grid; gap: var(--s-1); }
.mini-steps b { font-weight: 500; font-size: 14px; }
.mini-steps i { font-style: normal; font-family: var(--font-mono); color: var(--muted); font-size: 13px; }
.mini-steps div:nth-child(2) { border-color: var(--action); box-shadow: 0 0 0 3px color-mix(in oklab, var(--action) 14%, transparent); }
.mini-rails { width: 100%; max-width: 340px; display: grid; gap: var(--s-2); }
.mini-rails div { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--p-bg); border: 1px solid var(--line); font-size: 14px; }
.mini-rails div::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2f9e5f; flex: none; }
.mini-rails div.is-hold::before { background: #d9932b; }
.mini-rails em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* ---------- forms ---------- */
.form-card { padding: var(--s-8); border-radius: var(--r-lg); background: color-mix(in oklab, var(--p-bg) 55%, #fff); border: 1px solid var(--line); }
@media (max-width: 639px) { .form-card { padding: var(--s-5); } }
.form textarea { min-height: 120px; resize: vertical; }

/* ---------- long reading sections grow with their text (blog, articles, legal) ---------- */
main > section.section--auto { height: auto; min-height: 100svh; }
/* inner heroes that hold a form grow on small screens rather than cut it */
@media (max-width: 1023px) {
  .hero--page { height: auto !important; min-height: 100svh; }
  .hero--page .hero-visual { margin-top: var(--s-7); }
}

/* ---------- misc ---------- */
.kicker { font-size: var(--t-label); font-weight: 500; color: var(--muted); margin: 0 0 var(--s-4); }
.link-row { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-5); }
.list-rows { list-style: none; margin: 0; padding: 0; }
.list-rows li { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-1); padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.list-rows li:last-child { border-bottom: 1px solid var(--line); }
.list-rows b { font-weight: 500; font-size: var(--t-card); }
.list-rows span { color: var(--ink); }
.stack-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.stack-tags span { font: 400 13px/1 var(--font-mono); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); }
.figure { font: var(--display-weight) var(--t-stat)/1 var(--font-display); letter-spacing: -0.03em; margin: 0; }
.figure-label { color: var(--muted); font-size: var(--t-small); margin: var(--s-2) 0 0; }

/* ---------- the light film hero on the home page (dark logo, dark words, film washed to warm white) ---------- */
.hero--cine.hero--light { background: var(--p-bg); color: var(--p-ink); --ink: var(--p-ink); --muted: var(--p-muted); --line: color-mix(in oklab, var(--p-ink) 12%, transparent); --line-strong: color-mix(in oklab, var(--p-ink) 22%, transparent); }
.hero--light > video.hero__bg { filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; object-position: 50% 100%; }
.hero--light::after { background:
  linear-gradient(90deg, rgb(244 242 238 / .9) 0%, rgb(244 242 238 / .6) 36%, rgb(244 242 238 / 0) 60%),
  linear-gradient(180deg, rgb(244 242 238 / .65), rgb(244 242 238 / 0) 18%, rgb(244 242 238 / 0) 78%, rgb(244 242 238 / .9)); }
.hero--light .hero__eyebrow { color: var(--p-muted); }
.hero--light .hero__eyebrow::before { background: var(--p-action); box-shadow: 0 0 0 4px color-mix(in oklab, var(--p-action) 16%, transparent); }
.hero--light .hero__lead { color: var(--p-ink); }
.hero--light .film-toggle { color: var(--p-ink); border-color: var(--line-strong); background: rgb(244 242 238 / .7); }
@media (max-width: 1023px) {
  .hero--cine.hero--light, .hero--cine.hero--light[data-tone] { background: var(--p-bg); color: var(--p-ink); --ink: var(--p-ink); --muted: var(--p-muted); }
  .hero--light::after { background: linear-gradient(0deg, rgb(244 242 238 / .98) 0%, rgb(244 242 238 / .92) 48%, rgb(244 242 238 / .3) 78%, rgb(244 242 238 / .5) 100%); }
  .hero--light .btn--secondary { color: var(--p-ink); }
}

/* ---------- footer: the client's logo in place of the set name ---------- */
.close__logo { display: block; margin-top: var(--s-8); width: min(320px, 60%); }
.close__logo img { width: 100%; height: auto; display: block; opacity: .95; }
@media (max-width: 639px) { .close__logo { width: 200px; margin-top: var(--s-6); } }

/* ---------- ROI calculator ---------- */
.roi-hero { height: auto !important; min-height: 100svh; }
.roi-form { padding: var(--s-7); }
.roi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); margin-top: var(--s-4); }
.roi-grid .field:last-child { grid-column: 1 / -1; }
.roi-form .field p.t-small { margin: var(--s-1) 0 0; }
.roi-form input { font-variant-numeric: tabular-nums; }
@media (max-width: 639px) { .roi-grid { grid-template-columns: minmax(0, 1fr); } .roi-form { padding: var(--s-5); } }
.roi-out .roi-head { max-width: 22ch; font-size: var(--t-h2); }
.roi-figs { margin-top: var(--s-8); row-gap: var(--s-6); }
.roi-figs .figure { font-variant-numeric: tabular-nums; }
.roi-story { margin-top: var(--s-9); row-gap: var(--s-6); }
.roi-step { padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.roi-step .n { font: 400 13px/1.4 var(--font-mono); color: var(--muted); margin: 0 0 var(--s-3); }
.roi-step h3 { font-size: var(--t-card); margin: 0 0 var(--s-2); font-variant-numeric: tabular-nums; }
.roi-step p { margin: 0; }
.roi-bar { height: 6px; border-radius: 999px; background: var(--line); margin-top: var(--s-5); overflow: hidden; }
.roi-bar i { display: block; height: 100%; width: calc(var(--k, 0) * 100%); background: var(--p-action); border-radius: inherit; transition: width 500ms var(--ease); }
.roi-payback { margin-top: var(--s-8); max-width: 60ch; }
.roi-payback b { font-weight: 500; }
.roi-assume { margin-top: var(--s-7); border-top: 1px solid var(--line); padding-top: var(--s-5); }
.roi-assume summary { cursor: pointer; font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.roi-teaser { padding: var(--s-8); border-radius: var(--r-lg); background: var(--p-bg); border: 1px solid var(--line); }
.roi-teaser__big { font: var(--display-weight) clamp(40px, 5vw, 72px)/1 var(--font-display); letter-spacing: -0.035em; margin: var(--s-3) 0 var(--s-2); }
@media (max-width: 1023px) { .roi-teaser { margin-top: var(--s-7); padding: var(--s-6); } }

/* gate fixes */
@media (max-width: 1023px) {
  .hero--cine { --photo: 0px; height: 100svh; }
  .hero--cine > .wrap > .hero-text, .hero--cine[data-calm] > .wrap > .hero-text { justify-content: center; }
}
@media (max-width: 639px) {
  .photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-row > .photo-card { grid-column: auto; }
  .photo-row .photo-card p { display: none; }
  .frame--fill { min-height: 280px; }
}
a.roi-teaser { display: grid; gap: var(--s-2); margin-top: var(--s-8); align-self: start; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
a.roi-teaser:hover { transform: translateY(-2px); border-color: var(--line-strong); }
a.roi-teaser .roi-teaser__big { display: block; margin: var(--s-2) 0 0; }
a.roi-teaser .roi-bar { display: block; margin: var(--s-3) 0; }
.footer__legal > span { display: inline-flex; flex-wrap: wrap; gap: var(--s-4); }

/* user: highlighted returns, less empty space, a compact footer */
.roi-figs--hl { padding: var(--s-7); border-radius: var(--r-lg); background: var(--p-ink); color: var(--p-bg); }
.roi-figs--hl .figure { color: #fff; font-size: clamp(36px, 4vw, 56px); }
.roi-figs--hl .figure-label { color: rgb(244 242 238 / .7); }
.roi-figs--hl > div:first-child .figure, .roi-figs--hl > div:nth-child(2) .figure { color: #8fb0ff; }
.roi-payback b { color: var(--p-action); font-size: 1.15em; }
main > section:not(.hero) { height: auto !important; min-height: 0 !important; padding-top: 96px; padding-bottom: 96px; }
@media (max-width: 639px) { main > section:not(.hero) { padding-top: 64px; padding-bottom: 64px; } }
main > section.g2 > .wrap { display: block !important; }
main > section.g2 > .wrap > .grid { margin-top: var(--s-6); }
footer.closing { height: auto !important; min-height: 0 !important; padding-top: 72px; padding-bottom: 32px; }
footer.closing .close__logo { width: 140px; margin-top: var(--s-6); }
footer.closing .closing__links { margin-top: var(--s-7); }
footer.closing .footer__legal { margin-top: var(--s-6); }

/* ---------- scroll-driven section: the four autonomy steps (home) ---------- */
main > section.scrolly { height: 320vh !important; padding: 0 !important; }
.scrolly__pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: var(--nav); }
.scrolly__pin > .wrap { width: min(100% - 2 * var(--gut), 1280px); }
.scrolly__steps { list-style: none; margin: var(--s-7) 0 0; padding: 0; }
.scrolly__steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid var(--line); opacity: .35; transition: opacity 400ms var(--ease); }
.scrolly__steps li.sc-on { opacity: 1; }
.scrolly__steps .n { font: 400 14px/1.6 var(--font-mono); color: var(--muted); }
.scrolly__steps h3 { margin: 0 0 var(--s-1); font-size: var(--t-card); }
.scrolly__steps p { margin: 0; }
.scrolly__track { height: 2px; background: var(--line); margin-top: var(--s-5); border-radius: 2px; overflow: hidden; }
.scrolly__track i { display: block; height: 100%; width: calc(var(--sp, 0) * 100%); background: var(--p-action); }
.scrolly__stage { position: relative; min-height: 480px; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(70% 80% at 80% 15%, rgb(37 87 214 / .12), transparent 60%), radial-gradient(60% 70% at 10% 95%, rgb(21 21 21 / .08), transparent 70%), #ebe9e4; }
.sc-card { position: absolute; left: 50%; top: 50%; width: min(420px, 82%); padding: var(--s-6); border-radius: 16px; background: #fbfaf8; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgb(21 21 21 / .28); opacity: 0; transform: translate(-50%, -44%) scale(.97); transition: opacity 500ms var(--ease), transform 600ms var(--ease); }
.sc-card.sc-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sc-tag { font: 400 13px/1 var(--font-mono); color: var(--muted); margin: 0 0 var(--s-3); }
.sc-title { font-size: var(--t-card); font-weight: 500; margin: 0 0 var(--s-5); }
.sc-doc { display: grid; gap: 10px; }
.sc-doc i { display: block; height: 8px; border-radius: 4px; background: #e2e0db; }
.sc-rows { list-style: none; margin: 0; padding: 0; }
.sc-rows li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--line); font-size: 15px; }
.sc-rows span { color: var(--muted); }
.sc-rows b { font-weight: 500; }
.sc-rows--checks b { color: #2f8a55; }
.sc-actions { display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.sc-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; }
.sc-btn--primary { background: var(--p-action); color: #fff; border-color: var(--p-action); }
.sc-foot { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-5) 0 0; font-size: 14px; color: var(--muted); }
.sc-dot { width: 8px; height: 8px; border-radius: 50%; background: #2f9e5f; flex: none; }
.sc-dot--grey { background: #a3a19c; } .sc-dot--amber { background: #d9932b; }
.sc-big { font: var(--display-weight) 56px/1 var(--font-display); letter-spacing: -0.03em; margin: 0; }
.sc-big small { font-size: 15px; color: var(--muted); letter-spacing: 0; margin-left: var(--s-3); font-weight: 400; }
.sc-meter { height: 6px; border-radius: 999px; background: #e2e0db; margin-top: var(--s-4); overflow: hidden; }
.sc-meter i { display: block; height: 100%; width: calc(var(--k) * 100%); background: var(--p-action); }
@media (max-width: 1023px), (prefers-reduced-motion: reduce) {
  main > section.scrolly { height: auto !important; padding: 64px 0 !important; }
  .scrolly__pin { position: static; height: auto; padding-top: 0; display: block; }
  .scrolly__steps li { opacity: 1; }
  .scrolly__track { display: none; }
  .scrolly__stage { min-height: 0; background: none; display: grid; gap: var(--s-4); margin-top: var(--s-7); overflow: visible; }
  .sc-card, .sc-card.sc-on { position: static; width: 100%; opacity: 1; transform: none; box-shadow: none; }
}

/* ---------- abstract grounds: inner-page heroes and dark bands ---------- */
.hero--page { position: relative; overflow: hidden;
  background: radial-gradient(55% 65% at 88% 8%, rgb(37 87 214 / .09), transparent 62%), radial-gradient(45% 55% at 0% 100%, rgb(21 21 21 / .06), transparent 70%), var(--p-bg); }
.hero--page::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23151515' stroke-opacity='.08'%3E%3Cpath d='M-20 700C240 620 420 760 700 680S1180 520 1460 600'/%3E%3Cpath d='M-20 730C250 650 430 790 710 712S1190 552 1460 632'/%3E%3Cpath d='M-20 760C260 680 440 820 720 744S1200 584 1460 664'/%3E%3Cpath d='M-20 790C270 710 450 850 730 776S1210 616 1460 696'/%3E%3Cpath d='M-20 820C280 740 460 880 740 808S1220 648 1460 728'/%3E%3Cpath d='M-20 850C290 770 470 910 750 840S1230 680 1460 760'/%3E%3Cpath d='M600 -20C700 140 980 120 1080 260S1300 420 1460 380'/%3E%3Cpath d='M630 -20C730 150 1000 140 1100 280S1310 440 1460 410'/%3E%3Cpath d='M660 -20C760 160 1020 160 1120 300S1320 460 1460 440'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.hero--page > .wrap { position: relative; z-index: 1; }
main > section.ground-inverse, footer.closing.ground-inverse {
  background: radial-gradient(60% 80% at 90% 0%, rgb(37 87 214 / .22), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgb(255 255 255 / .05), transparent 70%), var(--p-inv-bg); }

/* user: no pause controls anywhere (the kit adds one to every loop) */
.loop-pause, .ui-pause, .ui-pause--below, .ui-pause--title, .ui-pause-beside, button[class*="pause"] { display: none !important; }

/* user: footer credit tiny and right-aligned */
footer.closing .footer__legal a.credits { margin-left: auto; font-size: 10px; line-height: 1; min-height: 0; height: auto; opacity: .6; letter-spacing: .02em; }
footer.closing .footer__legal { flex-wrap: nowrap; align-items: center; }
footer.closing .footer__legal > span { align-items: center; }
footer.closing .footer__legal { grid-column: 1 / -1; width: 100%; }
footer.closing .footer__legal > span { flex-wrap: nowrap; white-space: nowrap; }
footer.closing .footer__legal a.credits { font-size: 8px; margin-left: auto; text-align: right; justify-content: flex-end; }

/* user: the demo call is its own section on every page, never inside the footer */
main > section.cta-band { background: var(--p-surface); border-top: 1px solid var(--line); }
.cta-band__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-7); }
.cta-band__inner h2 { margin: 0 0 var(--s-3); }
.cta-band__inner .t-lead { margin: 0; max-width: 46ch; color: var(--muted); }
.cta-band__inner .btn { flex: none; }
@media (max-width: 767px) {
  .cta-band__inner { flex-direction: column; align-items: stretch; gap: var(--s-5); }
}
footer.closing .close__logo { display: block; margin-bottom: var(--s-7); }
footer.closing .closing__links { margin-top: 0 !important; padding-top: 0 !important; }
footer.closing .close__logo { margin-bottom: var(--s-6); }

/* user: the six subsystems always read three and three (tablet and up) */
@media (min-width: 768px) {
  #layers .grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; column-gap: var(--gutter, 24px); }
  #layers .grid > .card { grid-column: auto !important; width: auto !important; }
  #layers > .wrap > .grid { margin-top: var(--s-7); }
}

/* ---------- home: subsystem graphs (bottom three cards) ---------- */
.g-svg { width: 100%; max-width: 360px; height: auto; overflow: visible; font: 500 12px/1 var(--font-text); }
.g-svg text { fill: var(--ink); text-anchor: middle; }
.g-lines path { fill: none; stroke: #c9c6bf; stroke-width: 1.5; }
.g-lines .g-dash { stroke-dasharray: 3 4; }
.g-pulse path { fill: none; stroke: var(--p-action); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 10 200; stroke-dashoffset: 210; animation: g-run 2.8s ease-in-out infinite; }
.g-pulse path:nth-child(2) { animation-delay: .35s; } .g-pulse path:nth-child(3) { animation-delay: .7s; } .g-pulse path:nth-child(4) { animation-delay: 1.05s; }
@keyframes g-run { to { stroke-dashoffset: 0; } }
.g-node { fill: #fbfaf8; stroke: #d6d3cc; }
.g-core { fill: var(--p-ink); }
.g-svg .g-core-t { fill: #f4f2ee; font-size: 11px; }
.g-svg .g-core-t--lg { font-size: 16px; font-weight: 500; }
.g-ring { fill: none; stroke: var(--p-action); stroke-opacity: .25; stroke-width: 1.5; }
.g-hold { fill: #d9932b; }
.card:hover .g-pulse path { animation-duration: 1.8s; }
.g-bars { width: 100%; max-width: 320px; display: grid; gap: var(--s-3); }
.g-bars__cols { height: 150px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; }
.g-bars__cols i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(to top, var(--p-action) 0 calc(var(--a) * 100%), #d9932b calc(var(--a) * 100%) calc((var(--a) + var(--b)) * 100%), #c4483e calc((var(--a) + var(--b)) * 100%) 100%); transform-origin: bottom; transform: scaleY(.92); transition: transform 500ms ease; }
.card:hover .g-bars__cols i { transform: scaleY(1); }
.g-bars__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; text-align: center; font: 400 12px/1 var(--font-mono); color: var(--muted); }
.g-bars__key { display: flex; gap: var(--s-4); font-size: 12px; color: var(--muted); }
.g-bars__key span { display: inline-flex; align-items: center; gap: 6px; }
.g-bars__key b { width: 8px; height: 8px; border-radius: 2px; }
.k-a { background: var(--p-action); } .k-b { background: #d9932b; } .k-c { background: #c4483e; }
@media (prefers-reduced-motion: reduce) { .g-pulse { display: none; } }

/* ---------- home: the three rails as a graph (dark band) ---------- */
.rail-graph { margin-top: var(--s-7); display: grid; gap: var(--s-4); }
.rail-graph__cap { margin: 0; font: 400 13px/1 var(--font-mono); color: var(--p-inv-muted); }
.rail-row { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr) 64px; gap: var(--s-4); align-items: center; padding-top: var(--s-4); border-top: 1px solid rgb(255 255 255 / .12); }
.rail-row__name { display: grid; gap: 4px; font-weight: 500; }
.rail-row__name small { font-weight: 400; font-size: 13px; color: var(--p-inv-muted); }
.rail-row__bar { height: 10px; border-radius: 999px; background: rgb(255 255 255 / .08); overflow: hidden; }
.rail-row__bar i { display: block; height: 100%; width: calc(var(--w) * 100%); min-width: 6px; border-radius: inherit; background: #7d9cf0; }
.rail-row--hold .rail-row__bar i { background: #e0a54a; }
.rail-row > b { text-align: right; font: 500 15px/1 var(--font-mono); }

/* ---------- home: ROI estimate ---------- */
main > section.roi-home { background: var(--p-surface); }
.roi-fields { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.combo { position: relative; display: grid; gap: var(--s-2); }
.combo > label { font-size: 14px; font-weight: 500; }
.combo__box { position: relative; }
.combo__box input, .roi-nums input { width: 100%; height: 48px; padding: 0 44px 0 14px; border-radius: 10px; border: 1px solid #c9c6bf; background: #fbfaf8; font: 400 16px/1 var(--font-text); color: var(--ink); }
.roi-nums input { padding-right: 12px; }
.combo__box input:focus, .roi-nums input:focus { outline: none; border-color: var(--p-action); box-shadow: 0 0 0 3px rgb(37 87 214 / .15); }
.combo__toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.combo__toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 200ms; }
.combo.is-open .combo__toggle svg { transform: rotate(180deg); }
.combo__list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 6px 0 0; padding: 6px; list-style: none; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; background: #fbfaf8; border: 1px solid #c9c6bf; border-radius: 12px; box-shadow: 0 24px 48px -24px rgb(21 21 21 / .35); }
.combo__list[hidden] { display: none; }
.combo__list li[role="option"] { display: grid; gap: 2px; padding: 9px 10px; border-radius: 8px; font-size: 15px; cursor: pointer; }
.combo__list li[role="option"] small { font-size: 12px; color: var(--muted); }
.combo__list li[role="option"]:hover, .combo__list li.is-active { background: #ebe9e4; }
.combo__list li[aria-selected="true"] { color: var(--p-action); font-weight: 500; }
.combo__list mark { background: rgb(37 87 214 / .14); color: inherit; border-radius: 2px; }
.combo__group { position: sticky; top: -6px; padding: 10px 10px 6px; font: 500 11px/1.2 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: #fbfaf8; }
.combo__none { padding: 12px 10px; font-size: 14px; color: var(--muted); }
.roi-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.roi-nums .field { display: grid; gap: var(--s-2); margin: 0; }
.roi-nums .field > span { font-size: 13px; font-weight: 500; }
.roi-home__out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); align-content: start; }
.roi-card { padding: var(--s-6); border-radius: 16px; background: #fbfaf8; border: 1px solid var(--line); display: flex; flex-direction: column; }
.roi-card__k { margin: 0 0 var(--s-4); font: 500 13px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.roi-card__big { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: var(--display-weight) clamp(32px, 3.4vw, 48px)/1 var(--font-display); letter-spacing: -0.03em; }
.roi-card__big span { color: var(--muted); font-size: .62em; }
.roi-card__big svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.4; flex: none; }
.roi-card__big b { font-weight: inherit; }
.roi-card--rel .roi-card__big b { color: #2f8a55; }
.roi-card__sub { margin: var(--s-2) 0 0; font-size: 14px; color: var(--muted); }
.roi-card__rows { list-style: none; margin: auto 0 0; padding: var(--s-5) 0 0; display: grid; }
.roi-card__rows li { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); font-size: 14px; }
.roi-card__rows span { color: var(--muted); }
.roi-card__rows b { font-weight: 500; white-space: nowrap; }
.roi-card--money { color: #f4f2ee; border-color: var(--p-ink); background: radial-gradient(80% 90% at 100% 0%, rgb(37 87 214 / .35), transparent 60%), var(--p-ink); }
.roi-card--money .roi-card__k, .roi-card--money .roi-card__rows span { color: #a9a7a2; }
.roi-card--money .roi-card__rows li { border-color: rgb(255 255 255 / .12); }
.roi-card--money .roi-card__big { font-size: clamp(40px, 4.4vw, 64px); }
.roi-home__story { grid-column: 1 / -1; margin: var(--s-2) 0 0; font-size: 15px; color: var(--muted); }
.roi-home__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s-6); }
.roi-home.is-invalid .roi-home__out { opacity: .45; }
@media (max-width: 1023px) {
  .roi-home .grid > .span-5, .roi-home .grid > .span-6 { grid-column: 1 / -1; }
  .roi-home__out { margin-top: var(--s-7); }
}
@media (max-width: 639px) {
  .roi-home__out, .roi-nums { grid-template-columns: minmax(0, 1fr); }
  .rail-row { grid-template-columns: minmax(0, 1fr) 56px; }
  .rail-row__bar { grid-column: 1 / -1; grid-row: 2; }
}

/* subsystem graphs: lighter bars, larger flow drawings */
.g-bars__cols { gap: 16px; height: 140px; padding: 0 6px; }
.g-bars__days { gap: 16px; padding: 0 6px; }
.g-bars__cols i { border-radius: 4px; background: linear-gradient(to top, #6f8fe6 0 calc(var(--a) * 100%), #e3ad5b calc(var(--a) * 100%) calc((var(--a) + var(--b)) * 100%), #d0675e calc((var(--a) + var(--b)) * 100%) 100%); }
.k-a { background: #6f8fe6; } .k-b { background: #e3ad5b; } .k-c { background: #d0675e; }
.g-svg { max-width: 380px; }

/* ---------- user: each section is one screen, one scroll each (desktop and laptop) ---------- */
@media (min-width: 1024px) and (min-height: 640px) {
  html { scroll-snap-type: y mandatory; scroll-padding-top: var(--nav, 72px); }
  main > section, main > section.hero { scroll-snap-align: start; scroll-snap-stop: always; }
  main > section:not(.hero):not(.scrolly):not(.cta-band) {
    min-height: calc(100svh - var(--nav, 72px)) !important; height: auto !important;
    display: flex !important; flex-direction: column; justify-content: center;
    padding-top: 40px !important; padding-bottom: 40px !important; box-sizing: border-box;
  }
  main > section:not(.hero):not(.scrolly):not(.cta-band) > .wrap { width: min(100% - 2 * var(--gut, 24px), 1280px); margin-inline: auto; }
  /* the pinned autonomy steps scroll inside their own section, then snap on */
  main > section.scrolly { scroll-snap-stop: normal; }
  /* the demo band and the footer share the last screen */
  main > section.cta-band { min-height: 0 !important; padding: 56px 0 !important; }
  footer.closing { scroll-snap-align: end; }
  /* fit the taller sections into one screen */
  #layers .panel { --p-h: clamp(150px, calc((100svh - 520px) / 2), 240px); }
  #layers .card > p { margin-bottom: var(--s-3); }
  #layers > .wrap > .grid { margin-top: var(--s-5) !important; }
  #layers .group .grid { margin-top: var(--s-5); }
  #deploy .panel { --p-h: min(520px, calc(100svh - 240px)); }
}

/* ---------- one screen: fitting the long sections (desktop and laptop) ---------- */
@media (min-width: 1024px) and (min-height: 640px) {
  main #layers .panel { --p-h: clamp(150px, calc((100svh - 560px) / 2), 240px); }
  /* long posts and legal text read in two columns */
  main > section article.prose.span-7 { grid-column: 1 / span 8; columns: 2; column-gap: var(--s-8); }
  main > section article.prose.span-7 > * { break-inside: avoid; }
  main > section article.prose.span-7 > :first-child { margin-top: 0; }
  main > section article.prose.span-7 + .span-4.start-9 { grid-column: 10 / span 3; }
  main > section > .wrap > .prose { max-width: none; columns: 2; column-gap: var(--s-8); }
  main > section > .wrap > .prose > * { break-inside: avoid; }
  main > section > .wrap > .prose > h2 { break-after: avoid; }
  /* ROI page result: tighter */
  .roi-out .roi-head { font-size: clamp(28px, 2.6vw, 38px); max-width: 30ch; }
  .roi-figs { margin-top: var(--s-5); }
  .roi-figs--hl { padding: var(--s-5) var(--s-6); }
  .roi-figs--hl .figure { font-size: clamp(32px, 3.2vw, 46px); }
  .roi-story { margin-top: var(--s-6); }
  .roi-step { padding-top: var(--s-4); }
  .roi-payback { margin-top: var(--s-5); }
  .roi-assume { margin-top: var(--s-4); padding-top: var(--s-3); }
}

@media (min-width: 1024px) and (min-height: 640px) {
  main > section article.prose.span-7 > *, main > section > .wrap > .prose > * { break-inside: auto; }
  main > section article.prose.span-7 > h2 { column-span: all; margin-bottom: var(--s-5); }
  main > section article.prose.span-7 > p, main > section > .wrap > .prose li { orphans: 3; widows: 3; }
  main > section > .wrap > .prose li { break-inside: avoid; }
  main > section article.prose.span-7 > :is(h2, h3), main > section > .wrap > .prose > :is(h2, h3) { break-after: avoid; }
}
/* short laptop screens scroll freely; the snap needs a screen tall enough to hold a section */
@media (max-height: 799px) { html { scroll-snap-type: none !important; } }
@media (min-width: 1024px) and (min-height: 640px) {
  main > section article.prose.span-7 { grid-column: 1 / span 9; }
  main > section article.prose.span-7 > h2 { font-size: clamp(28px, 2.4vw, 36px); }
}

/* ROI reliability figure stays on one line */
.roi-card--rel .roi-card__big { flex-wrap: nowrap; font-size: clamp(28px, 2.7vw, 44px); white-space: nowrap; }
.roi-card--rel .roi-card__big span { font-size: .6em; }
@media (min-width: 1024px) and (min-height: 640px) {
  main > section article.prose.span-7 { font-size: 16px; line-height: 1.55; }
  main > section article.prose.span-7 > p { margin-block: 0 .8em; }
}
@media (min-width: 1024px) and (min-height: 640px) {
  main > section article.prose.span-7 { grid-column: 1 / -1; columns: 3; column-gap: var(--s-7); max-width: none; }
  main > section article.prose.span-7 > p:first-child { column-span: all; }
  main > section article.prose.span-7 + .span-4.start-9 { display: none; }
}
/* graphs scale to whatever height their panel has */
#layers .mini { padding: var(--s-4); }
#layers .g-svg { width: auto; height: 100%; max-width: 100%; max-height: 100%; }
#layers .g-bars { height: 100%; grid-template-rows: minmax(0, 1fr) auto auto; gap: var(--s-2); }
#layers .g-bars__cols { height: auto; min-height: 0; }
#layers .panel .mini { display: flex; align-items: center; justify-content: center; padding: 16px; }
#layers .panel .g-svg { height: calc(var(--p-h) - 32px); width: auto; max-width: 100%; }
#layers .panel .g-bars { height: calc(var(--p-h) - 32px); }

/* ---------- home: Anthropomorphic Interface, one persona on three surfaces ---------- */
#layers .panel .mini--free { display: block; padding: 0; }
.ava { position: absolute; inset: 0; font-size: 12px; }
.ava__chat { position: absolute; left: 8%; top: 12%; width: 62%; padding: 10px 12px; border-radius: 12px; background: #fbfaf8; border: 1px solid #dcd9d2; box-shadow: 0 14px 28px -18px rgb(21 21 21 / .35); z-index: 2; }
.ava__who { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ava__av { width: 20px; height: 20px; border-radius: 50%; background: var(--p-ink); color: #f4f2ee; display: grid; place-items: center; font-size: 11px; font-weight: 500; }
.ava__who b { font-weight: 500; }
.ava__who em { font-style: normal; color: var(--muted); margin-left: auto; font-family: var(--font-mono); font-size: 10px; }
.ava__chat p { margin: 0; line-height: 1.4; color: var(--ink); }
.ava__api { position: absolute; right: 7%; bottom: 12%; width: 60%; padding: 8px 10px; border-radius: 10px; background: #1b1b1b; color: #d7dcf0; box-shadow: 0 14px 28px -18px rgb(21 21 21 / .5); z-index: 1; }
.ava__api code { display: block; font: 400 10.5px/1.45 var(--font-mono); white-space: normal; }
.ava__tag { display: inline-block; margin-bottom: 4px; font: 500 9.5px/1 var(--font-mono); letter-spacing: .06em; color: #8fa6e8; }
.ava__voice { position: absolute; right: 7%; top: 12%; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #fbfaf8; border: 1px solid #dcd9d2; z-index: 3; }
.ava__voice em { font-style: normal; font: 400 10px/1 var(--font-mono); color: var(--muted); }
.ava__mic { width: 8px; height: 8px; border-radius: 50%; background: #2f9e5f; }
.ava__wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.ava__wave i { width: 2px; height: 100%; border-radius: 2px; background: var(--p-action); transform-origin: center; animation: ava-wave 1.1s ease-in-out infinite; }
.ava__wave i:nth-child(2n) { animation-delay: -.3s; } .ava__wave i:nth-child(3n) { animation-delay: -.6s; } .ava__wave i:nth-child(4n) { animation-delay: -.8s; }
@keyframes ava-wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.card:hover .ava__chat { transform: translateY(-2px); transition: transform 300ms ease; }
@media (prefers-reduced-motion: reduce) { .ava__wave i { animation: none; transform: scaleY(.6); } }

/* ---------- home: Governance Sentinel, a week of checked actions as a ring ---------- */
.gs { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 7%; padding: 14px 18px; }
.gs__ring { position: relative; height: min(100%, 150px); aspect-ratio: 1; flex: none; }
.gs__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gs__track { fill: none; stroke: #e2e0db; stroke-width: 12; }
.gs__seg { fill: none; stroke-width: 12; stroke-dasharray: var(--len) 100; stroke-dashoffset: calc(var(--off) * -1); }
.gs__seg--a { stroke: #6f8fe6; } .gs__seg--b { stroke: #e3ad5b; } .gs__seg--c { stroke: #d0675e; }
.gs__seg--a { animation: gs-draw 1.4s ease-out both; }
@keyframes gs-draw { from { stroke-dasharray: 0 100; } }
.gs__mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gs__mid b { font: 500 18px/1 var(--font-display); letter-spacing: -0.02em; }
.gs__mid span { font: 400 10px/1.4 var(--font-mono); color: var(--muted); }
.gs__key { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; min-width: 0; flex: 1; max-width: 170px; font-size: 12px; }
.gs__key li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.gs__key i { width: 8px; height: 8px; border-radius: 2px; }
.gs__key span { color: var(--muted); }
.gs__key b { font: 500 12px/1 var(--font-mono); }
.gs__sig { grid-template-columns: minmax(0, 1fr) auto !important; padding-top: 7px; border-top: 1px solid #dcd9d2; }
.gs__sig code { font: 400 10.5px/1 var(--font-mono); color: #2f8a55; }
@media (prefers-reduced-motion: reduce) { .gs__seg--a { animation: none; } }
.ava__chat { left: 6%; top: 10%; width: 54%; }
.ava__voice { right: 6%; top: 10%; }
.ava__api { right: 6%; bottom: 10%; width: 52%; z-index: 3; }

/* ---------- home: Governance Sentinel as a light check window (matches the code window card) ---------- */
.gw { position: absolute; left: 8%; right: 8%; top: 12%; border-radius: 12px; background: #fbfaf8; border: 1px solid #dcd9d2; box-shadow: 0 14px 28px -18px rgb(21 21 21 / .3); overflow: hidden; font-size: 12.5px; }
.gw__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #e6e3dd; }
.gw__tab { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; border: 1px solid #e0ddd6; border-radius: 6px; font-size: 12px; }
.gw__tab b { font: 500 9.5px/1 var(--font-mono); padding: 3px 4px; border-radius: 4px; background: #ebe9e4; color: var(--muted); }
.gw__chip { font: 400 11px/1 var(--font-mono); color: var(--muted); padding: 4px 7px; border: 1px solid #e0ddd6; border-radius: 6px; }
.gw__rows { list-style: none; margin: 0; padding: 4px 10px 6px; }
.gw__rows li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #efece7; }
.gw__rows li:first-child { border-top: 0; }
.gw__rows em { font: 400 11px/1 var(--font-mono); font-style: normal; color: var(--muted); }
.gw__ok { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #bdb9b1; position: relative; }
.gw__ok::after { content: ""; position: absolute; left: 4px; top: 2px; width: 3px; height: 6px; border: solid var(--ink); border-width: 0 1.4px 1.4px 0; transform: rotate(45deg); }
.gw__dot { width: 8px; height: 8px; margin-left: 3px; border-radius: 50%; background: #d9932b; }
.gw__wait span:nth-child(2) { font-weight: 500; }
.gw__wait em { color: #a86a14; }
.card:hover .gw { transform: translateY(-2px); transition: transform 300ms ease; }
.gw { top: 50%; transform: translateY(-50%); }
.card:hover .gw { transform: translateY(calc(-50% - 2px)); }
.gw__bar { padding: 5px 10px; }
.gw__rows { padding: 2px 10px 4px; }
.gw__rows li { padding: 4px 0; }

/* ---------- user: no empty bands; a section is as tall as its content (one screen at most), one scroll each ---------- */
@media (min-width: 1024px) and (min-height: 640px) {
  main > section:not(.hero):not(.scrolly):not(.cta-band) {
    min-height: 0 !important; justify-content: flex-start;
    padding-top: 72px !important; padding-bottom: 72px !important;
  }
  main > section.cta-band { padding: 48px 0 !important; }
}
main > section:not(.hero):not(.scrolly):not(.cta-band) > .wrap > :first-child { margin-top: 0; }

/* ---------- user: a compact footer ---------- */
footer.closing { padding-top: 48px !important; padding-bottom: 20px !important; }
footer.closing .close__logo { margin: 0 0 var(--s-5) !important; }
footer.closing .close__logo img { width: 120px; height: auto; }
footer.closing .closing__links { gap: 0 !important; row-gap: 0 !important; }
footer.closing .closing__links > .grid { row-gap: var(--s-4); }
footer.closing .footer__col h3 { margin: 0 0 var(--s-2); }
footer.closing .footer__col ul { display: grid; gap: 2px; margin: 0; padding: 0; }
footer.closing .footer__col li a { min-height: 0 !important; padding: 3px 0; }
footer.closing .footer__lede { margin: 0; }
footer.closing .footer__legal { margin-top: var(--s-5) !important; padding-top: var(--s-3) !important; }
footer.closing .footer__legal a:not(.btn) { min-height: 32px !important; }
/* sections now size to content: fixed heights where a part used to fill the section */
#platform .app.fill { height: clamp(420px, calc(100svh - 330px), 600px) !important; flex: none; }
#compounds .frame--photo { aspect-ratio: 5 / 1 !important; }
@media (min-width: 1024px) and (min-height: 640px) { main > section#layers { padding-top: 48px !important; padding-bottom: 48px !important; } }
#platform .app.fill { height: clamp(380px, calc(100svh - 420px), 560px) !important; }
#life .photo-card .ph { aspect-ratio: 3 / 2 !important; }

/* ---------- user (final): one section = one screen, one scroll each; 72px padding kept ---------- */
@media (min-width: 1024px) and (min-height: 640px) {
  html { scroll-snap-type: y mandatory !important; scroll-padding-top: var(--nav, 72px); }
  main > section:not(.hero):not(.scrolly):not(.cta-band),
  main > section#layers {
    min-height: calc(100svh - var(--nav, 72px)) !important; height: auto !important;
    display: flex !important; flex-direction: column; justify-content: center;
    padding-top: 72px !important; padding-bottom: 72px !important; box-sizing: border-box;
    scroll-snap-align: start; scroll-snap-stop: always;
  }
  /* the demo band takes the rest of the last screen, the footer sits under it */
  main > section.cta-band {
    min-height: calc(100svh - var(--nav, 72px) - var(--foot-h, 400px)) !important;
    display: flex !important; flex-direction: column; justify-content: center;
    padding-top: 72px !important; padding-bottom: 72px !important; box-sizing: border-box;
    scroll-snap-align: start; scroll-snap-stop: always;
  }
  /* the subsystem grid fits one screen with full padding */
  main #layers .panel { --p-h: clamp(140px, calc((100svh - 620px) / 2), 260px); }
}
@media (min-width: 1024px) and (min-height: 640px) {
  main #layers .panel { --p-h: clamp(150px, calc((100svh - 540px) / 2), 260px); }
  #layers .card > p { margin-bottom: var(--s-2); }
  #layers .group .grid, #layers > .wrap > .grid { row-gap: var(--s-4); }
}
.ava__chat { width: 52%; }
.ava__api { width: 50%; }
@media (min-width: 1024px) and (min-height: 640px) {
  main #layers .panel { --p-h: clamp(150px, calc((100svh - 580px) / 2), 260px); }
  #layers .group .grid, #layers > .wrap > .grid { row-gap: var(--s-3); }
  #layers > .wrap > .grid { margin-top: var(--s-4) !important; }
}
@media (min-width: 1024px) and (min-height: 640px) { main #layers .panel { --p-h: clamp(150px, calc((100svh - 592px) / 2), 260px); } }
@media (min-width: 1024px) and (min-height: 640px) {
  main #layers .panel { --p-h: clamp(128px, calc((100svh - 592px) / 2), 260px); }
  main > section .frame--photo { max-height: calc(100svh - var(--nav, 72px) - 144px); }
  main > section > .wrap > .prose li { font-size: 15px; }
}
@media (min-width: 1024px) and (min-height: 640px) and (max-height: 880px) {
  #how .list-rows { margin-top: var(--s-5) !important; }
  #how .list-rows li { padding-top: var(--s-3); padding-bottom: var(--s-3); }
}

/* ---------- pager: every section is exactly one screen at every size; the script moves one section per gesture ---------- */
html.is-paged { scroll-snap-type: none !important; scroll-padding-top: var(--nav, 72px); }
html.is-paged main > section.hero { height: 100svh !important; min-height: 0 !important; max-height: 100svh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
html.is-paged main > section:not(.hero):not(.cta-band) {
  height: calc(100svh - var(--nav, 72px)) !important; min-height: 0 !important; max-height: calc(100svh - var(--nav, 72px));
  display: flex !important; flex-direction: column; justify-content: flex-start;
  padding-top: 72px !important; padding-bottom: 72px !important; box-sizing: border-box;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgb(21 21 21 / .2) transparent;
}
html.is-paged main > section:not(.hero):not(.cta-band) > .wrap { margin-block: auto; width: min(100% - 2 * var(--gut, 24px), 1280px); margin-inline: auto; }
html.is-paged main > section.cta-band {
  height: auto !important; min-height: max(calc(100svh - var(--nav, 72px) - var(--foot-h, 400px)), 200px) !important;
  display: flex !important; flex-direction: column; justify-content: center; padding-top: 72px !important; padding-bottom: 72px !important; box-sizing: border-box;
}
/* the autonomy steps: one screen, one step per scroll (desktop); stacked inside the screen on phones */
html.is-paged main > section.scrolly { padding: 0 !important; }
html.is-paged .scrolly__pin { position: relative; top: auto; height: auto; min-height: 100%; display: flex; align-items: center; padding: 72px 0; box-sizing: border-box; }
html.is-paged .scrolly__steps li { cursor: pointer; }
@media (max-width: 767px) {
  html.is-paged main > section:not(.hero):not(.cta-band), html.is-paged main > section.cta-band { padding-top: 48px !important; padding-bottom: 48px !important; }
  html.is-paged .scrolly__pin { padding: 48px 0; }
}

/* ---------- Rules: an abstract ground of logic lines and nodes, scaled to the section at every size ---------- */
main > section#rules { position: relative; isolation: isolate;
  background: radial-gradient(60% 70% at 85% 30%, rgb(37 87 214 / .08), transparent 65%), radial-gradient(50% 60% at 10% 100%, rgb(21 21 21 / .05), transparent 70%), var(--p-bg); }
main > section#rules::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='xMaxYMid slice'%3E%3Cg fill='none' stroke='%23151515' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M520 120C700 120 760 260 900 260S1100 140 1240 140'/%3E%3Cpath d='M520 200C700 200 760 340 900 340S1100 220 1240 220'/%3E%3Cpath d='M520 280C700 280 760 420 900 420S1100 300 1240 300'/%3E%3Cpath d='M520 360C700 360 760 500 900 500S1100 380 1240 380'/%3E%3Cpath d='M520 440C700 440 760 580 900 580S1100 460 1240 460'/%3E%3Cpath d='M520 520C700 520 760 660 900 660S1100 540 1240 540'/%3E%3Cpath d='M520 600C700 600 760 740 900 740S1100 620 1240 620'/%3E%3C/g%3E%3Cg fill='none' stroke='%232557d6' stroke-opacity='.28' stroke-width='1.2'%3E%3Cpath d='M760 180L900 260L1040 200M900 260L900 420L1060 470M900 420L760 500L900 580'/%3E%3C/g%3E%3Cg fill='%23f4f2ee' stroke='%232557d6' stroke-opacity='.45' stroke-width='1.2'%3E%3Ccircle cx='760' cy='180' r='5'/%3E%3Ccircle cx='900' cy='260' r='7'/%3E%3Ccircle cx='1040' cy='200' r='5'/%3E%3Ccircle cx='900' cy='420' r='7'/%3E%3Ccircle cx='1060' cy='470' r='5'/%3E%3Ccircle cx='760' cy='500' r='5'/%3E%3Ccircle cx='900' cy='580' r='5'/%3E%3C/g%3E%3C/svg%3E") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
@media (max-width: 767px) { main > section#rules::before { opacity: .55; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%); mask-image: linear-gradient(180deg, transparent 0%, #000 60%); } }

/* ---------- user: no scrollbars anywhere (everything still scrolls) ---------- */
html, body, * { scrollbar-width: none !important; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ---------- smooth arrival: content settles in as its section comes on screen ---------- */
html.arrive-ready main > section.arrive > .wrap > *,
html.arrive-ready main > section.arrive .scrolly__pin > .wrap > .grid > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(.22, .61, .36, 1), transform 900ms cubic-bezier(.22, .61, .36, 1);
}
html.arrive-ready main > section.arrive > .wrap > *:nth-child(2),
html.arrive-ready main > section.arrive .scrolly__pin > .wrap > .grid > *:nth-child(2) { transition-delay: 120ms; }
html.arrive-ready main > section.arrive > .wrap > *:nth-child(3) { transition-delay: 220ms; }
html.arrive-ready main > section.arrive > .wrap > *:nth-child(n+4) { transition-delay: 300ms; }
html.arrive-ready main > section.arrive.is-in > .wrap > *,
html.arrive-ready main > section.arrive.is-in .scrolly__pin > .wrap > .grid > * { opacity: 1; transform: none; }

/* ---------- softer step changes in the autonomy section ---------- */
.sc-card { transition: opacity 650ms cubic-bezier(.22, .61, .36, 1), transform 800ms cubic-bezier(.22, .61, .36, 1) !important; }
.scrolly__steps li { transition: opacity 500ms ease !important; }
.scrolly__track i { transition: width 700ms cubic-bezier(.22, .61, .36, 1); }
@media (prefers-reduced-motion: reduce) {
  html.arrive-ready main > section.arrive > .wrap > * { opacity: 1 !important; transform: none !important; }
}
/* Rules: the rule cards sit close under the lead */
#rules .section-head { margin-bottom: 0; }
#rules .axioms { margin-top: var(--s-6); }
#rules .axioms.grid { row-gap: var(--s-4); }
.hero--cine .hero__lead { font-size: clamp(16px, 1.25vw, 18px); max-width: 44ch; }

/* ---------- governance band: rails fill, counts rise, the audit log writes itself (once, on arrival) ---------- */
html.gov-ready #governance .rail-row__bar i { transform-origin: left center; transform: scaleX(0); transition: transform 1200ms cubic-bezier(.22, .61, .36, 1); }
html.gov-ready #governance .rail-graph > .rail-row:nth-child(3) i { transition-delay: 180ms; }
html.gov-ready #governance .rail-graph > .rail-row:nth-child(4) i { transition-delay: 360ms; }
html.gov-ready #governance .rail-graph > .rail-row:nth-child(5) i { transition-delay: 640ms; }
html.gov-ready #governance.gov-play .rail-row__bar i { transform: scaleX(1); }
html.gov-ready #governance .audit ol > li { opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 600ms cubic-bezier(.22, .61, .36, 1); }
html.gov-ready #governance.gov-play .audit ol > li { opacity: 1; transform: none; }
html.gov-ready #governance.gov-play .audit ol > li:nth-child(1) { transition-delay: 500ms; }
html.gov-ready #governance.gov-play .audit ol > li:nth-child(2) { transition-delay: 750ms; }
html.gov-ready #governance.gov-play .audit ol > li:nth-child(3) { transition-delay: 1000ms; }
html.gov-ready #governance.gov-play .audit ol > li:nth-child(4) { transition-delay: 1250ms; }
html.gov-ready #governance.gov-play .audit ol > li:nth-child(5) { transition-delay: 1500ms; }
html.gov-ready #governance .audit__ok { opacity: 0; transition: opacity 500ms ease 1800ms; }
html.gov-ready #governance.gov-play .audit__ok { opacity: 1; }

/* ---------- autonomy: a compact, lighter stage; the whole section fits one screen ---------- */
@media (min-width: 1024px) {
  html.is-paged .scrolly__pin > .wrap > .grid { align-items: center; }
  .scrolly__stage {
    align-self: center; height: min(440px, calc(100svh - var(--nav, 72px) - 160px)); min-height: 300px !important;
    background: radial-gradient(70% 80% at 85% 15%, rgb(37 87 214 / .07), transparent 60%), #efede9 !important;
    border: 1px solid #e4e1db;
  }
  .sc-card { width: min(380px, 84%); padding: var(--s-5); }
  .sc-title { margin-bottom: var(--s-4); }
  .scrolly__steps { margin-top: var(--s-5); }
  .scrolly__steps li { padding: var(--s-3) 0; }
}
/* shorter laptop screens: the steps tighten so heading, steps and stage all show at once */
@media (min-width: 1024px) and (max-height: 820px) {
  #autonomy h2 { font-size: clamp(32px, 3.2vw, 44px); }
  #autonomy .measure { font-size: 15px; margin-top: var(--s-2); }
  .scrolly__steps { margin-top: var(--s-4); }
  .scrolly__steps li { padding: var(--s-2) 0; gap: var(--s-2); }
  .scrolly__steps h3 { font-size: 17px; margin-bottom: 2px; }
  .scrolly__steps p { font-size: 14px; }
  .scrolly__track { margin-top: var(--s-3); }
  .sc-card { padding: var(--s-4) var(--s-5); }
  .sc-doc { gap: 8px; } .sc-rows li { padding: var(--s-2) 0; }
  .sc-big { font-size: 44px; }
}
/* deploy: text and diagram read as one block, with no empty band above or below the diagram */
@media (min-width: 1024px) {
  main #deploy .panel { --p-h: 400px; }
  #deploy .wrap > .grid { align-items: center; }
  #deploy .list-rows { margin-top: var(--s-5) !important; }
  #deploy .measure { margin-top: var(--s-3); }
}
@media (min-width: 1024px) { #deploy .list-rows li { padding-top: var(--s-3); padding-bottom: var(--s-3); } }
/* content sits in the middle of its screen, never stuck to the top with an empty band below */
html.is-paged main > section:not(.hero):not(.cta-band) > .wrap { display: flex !important; flex-direction: column; justify-content: safe center; flex: 1 1 auto; min-height: 0; margin-block: 0; }

/* ---------- six subsystems: one-line copy, visuals sized from the screen so both rows always fit ---------- */
@media (min-width: 1024px) {
  html.is-paged main > section#layers > .wrap { justify-content: center; }
  #layers .section-head { margin-bottom: var(--s-5) !important; }
  #layers .group > .grid, #layers > .wrap > .grid { margin-top: 0 !important; row-gap: 0; }
  #layers > .wrap > .grid { margin-top: var(--s-6) !important; }
  #layers .card { gap: 0; }
  #layers .card > h3 { margin: 0 0 4px; font-size: 18px; }
  #layers .card > p { margin: 0 0 var(--s-3) !important; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  main #layers .panel { --p-h: clamp(120px, calc((100svh - 470px) / 2), 250px) !important; }
}
@media (min-width: 1024px) {
  #layers .card > p { display: block !important; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; line-height: 1.45 !important; -webkit-line-clamp: unset !important; margin: 0 !important; }
  #layers .card > .panel { margin-top: var(--s-3) !important; }
  #layers .group { margin: 0 !important; padding: 0 !important; }
  html.is-paged main > section#layers > .wrap { gap: 0 !important; }
  #layers > .wrap > .grid { margin-top: var(--s-6) !important; }
  main #layers .panel { --p-h: clamp(120px, calc((100svh - 490px) / 2), 250px) !important; }
}

/* ---------- user: comfortable reading rhythm (line spacing and row spacing), still one section per screen ---------- */
main p, main li, .t-lead, .measure { line-height: 1.6; }
.t-lead { line-height: 1.55; }
.list-rows li { row-gap: 6px; }
.list-rows li > span { line-height: 1.6; }
/* autonomy steps: each step gets air between title and line, and between steps */
.scrolly__steps li { padding: var(--s-4) 0 !important; }
.scrolly__steps h3 { margin: 0 0 6px !important; line-height: 1.3; }
.scrolly__steps p { line-height: 1.6; }
@media (min-width: 1024px) and (max-height: 820px) {
  .scrolly__steps li { padding: 12px 0 !important; }
  .scrolly__steps h3 { margin-bottom: 4px !important; }
}
@media (min-width: 1024px) and (max-height: 820px) { main .list-rows li { padding-top: 12px; padding-bottom: 12px; } }

/* ---------- six subsystems in one row (desktop); three and three on tablets; one per row on phones ---------- */
.g-svg--v { display: none; }
@media (min-width: 768px) and (max-width: 1199px) {
  #layers .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; row-gap: var(--s-6) !important; }
}
@media (min-width: 1200px) {
  #layers .group > .grid { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; column-gap: 16px !important; row-gap: 0 !important; margin-top: 0 !important; }
  #layers .grid > .card { grid-column: auto !important; display: flex !important; flex-direction: column; min-width: 0; }
  #layers .card > h3 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #layers .card > p { white-space: normal !important; overflow: visible; font-size: 14px !important; line-height: 1.5 !important; min-height: 3em; }
  main #layers .panel { --p-h: clamp(240px, calc(100svh - 420px), 460px) !important; margin-top: var(--s-3) !important; }
  /* swarm: the top-to-bottom flow */
  #layers .g-svg--h { display: none; }
  #layers .g-svg--v { display: block; height: calc(var(--p-h) - 40px) !important; width: auto; max-width: 100%; }
  /* motivation: the three steps stack */
  #layers .mini-steps { grid-template-columns: minmax(0, 1fr) !important; max-width: 160px; gap: 8px; }
  #layers .mini-steps div { padding: 10px 12px; }
  /* Ava: chat, voice and API stack inside the panel */
  #layers .ava__chat { left: 8%; right: 8%; width: auto; top: 7%; }
  #layers .ava__voice { left: 8%; right: auto; top: 50%; transform: translateY(-50%); }
  #layers .ava__api { left: 8%; right: 8%; width: auto; bottom: 7%; }
  #layers .ava__api code { font-size: 10px; }
  /* sentinel: the check window narrows */
  #layers .gw { left: 6%; right: 6%; font-size: 11.5px; }
  #layers .gw__chip { display: none; }
  #layers .gw__rows em { font-size: 10px; }
  #layers .gw__rows li { grid-template-columns: 14px minmax(0, 1fr); row-gap: 2px; }
  #layers .gw__rows li em { grid-column: 2; }
}
@media (min-width: 1200px) {
  #layers .card .at-rise.fit { left: 10px !important; right: 10px !important; width: auto !important; max-width: none !important; transform: none !important; top: 18px !important; }
  #layers .card .ui-code { width: 100% !important; font-size: 11px; }
  #layers .card .ui-code__pre { font-size: 10.5px; line-height: 1.7; white-space: pre; overflow: hidden; }
  #layers .card .ui-code__tab { font-size: 11px; }
  #layers .card .ui-code__chip { display: none; }
}
@media (min-width: 1200px) {
  #layers .group > .grid { grid-template-rows: auto auto auto; }
  #layers .grid > .card { display: grid !important; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  #layers .card > h3 { white-space: normal !important; overflow: visible; line-height: 1.3; align-self: end; }
  #layers .card > p { min-height: 0; }
}

/* ---------- never squeeze: a section's content keeps its size (nothing slides over text) ---------- */
html.is-paged main > section > .wrap > *, html.is-paged main > section > .wrap > .group > * { flex-shrink: 0 !important; }
@media (min-width: 1200px) {
  #layers .grid > .card > * { min-height: 0; }
  #layers .grid > .card > .panel { overflow: hidden; }
  /* visuals follow the screen height: from short windows to large monitors */
  main #layers .panel { --p-h: clamp(150px, calc(100svh - 410px), 460px) !important; }
  #layers .section-head { margin-bottom: var(--s-4) !important; }
}
/* short windows: each visual keeps only its essentials so it shows whole */
@media (min-width: 1200px) and (max-height: 800px) {
  #layers .card > p { font-size: 13px !important; }
  #layers .mini-steps { gap: 6px; }
  #layers .mini-steps div { padding: 7px 10px; gap: 2px; font-size: 0; }
  #layers .mini-steps div i, #layers .mini-steps div b { font-size: 12px; }
  #layers .mini-steps div b { font-size: 13px; }
  #layers .ava__voice { display: none; }
  #layers .ava__chat { top: 8%; }
  #layers .ava__chat p { font-size: 11.5px; }
  #layers .ava__api { bottom: 8%; }
  #layers .ava__api code { font-size: 9.5px; }
  #layers .gw__rows li { grid-template-columns: 14px minmax(0, 1fr) !important; padding: 3px 0; }
  #layers .gw__rows li em { display: none; }
  #layers .gw__bar { padding: 4px 8px; }
  #layers .card .ui-code__hint { display: none; }
}
@media (min-width: 1200px) and (max-height: 680px) {
  #layers .mini-steps div i { display: none; }
  #layers .ava__api { display: none; }
  #layers .ava__chat { top: 50%; transform: translateY(-50%); }
}
@media (min-width: 1200px) { #layers .grid > .card > .panel { min-height: var(--p-h) !important; height: var(--p-h) !important; } }

/* ---------- UI test fixes ---------- */
/* the hero never scrolls inside itself (its entrance briefly measures taller) */
html.is-paged main > section.hero { overflow: hidden !important; }
/* small laptops (1024-1199 wide, under 820 tall): long posts and split sections tighten to stay one screen */
@media (min-width: 1024px) and (max-width: 1199px) and (max-height: 820px) {
  main > section article.prose.span-7 { font-size: 14.5px !important; line-height: 1.5 !important; column-gap: var(--s-5) !important; }
  main > section article.prose.span-7 > h2 { font-size: 26px !important; margin-bottom: var(--s-3) !important; }
  main > section article.prose.span-7 > p { margin-bottom: .6em !important; }
  main .list-rows li { padding-top: 9px !important; padding-bottom: 9px !important; }
  main .list-rows li > span { font-size: 15px; line-height: 1.5; }
  main section h2 { font-size: clamp(28px, 3.4vw, 40px); }
  main section .measure { font-size: 15px; }
}
@media (min-width: 1024px) and (max-width: 1199px) and (max-height: 820px) { main > section article.prose.span-7 { line-height: 1.45 !important; } main > section article.prose.span-7 > ul { margin-block: .4em !important; } }
@media (min-width: 1024px) and (max-width: 1199px) and (max-height: 820px) { main > section article.prose.span-7 { font-size: 14px !important; } }
@media (min-width: 1024px) and (max-width: 1199px) and (max-height: 820px) { main > section article.prose.span-7 > p:first-child { display: none; } }
@media (min-width: 1024px) and (max-width: 1199px) and (max-height: 720px) { main > section article.prose.span-7 { font-size: 13.5px !important; line-height: 1.4 !important; } }

/* ---------- six across on short screens: fewer words, bigger visuals ---------- */
@media (min-width: 1200px) and (max-height: 860px) {
  #layers h2 { font-size: clamp(32px, 3vw, 42px) !important; }
  #layers .section-head { margin-bottom: var(--s-4) !important; }
  #layers .card > p { display: none !important; }
  #layers .card > h3 { font-size: 15px !important; margin-bottom: 0 !important; }
  main #layers .panel { --p-h: clamp(190px, calc(100svh - 330px), 460px) !important; margin-top: var(--s-3) !important; }
  /* the rule reads in full: no line numbers, slightly smaller code */
  #layers .card .ui-code__pre .ui-code__ln::before { display: none !important; content: none !important; }
  #layers .card .ui-code__pre { font-size: 10px !important; padding-left: 10px !important; }
  #layers .card .ui-code__ln { padding-left: 0 !important; }
}

/* with the taller visuals, the full versions fit again from 640px tall */
@media (min-width: 1200px) and (min-height: 640px) and (max-height: 860px) {
  #layers .mini-steps div { font-size: 12px !important; padding: 9px 12px !important; gap: 3px !important; }
  #layers .mini-steps div i { display: block !important; font-size: 11px !important; }
  #layers .mini-steps div b { font-size: 13px !important; }
  #layers .ava__voice { display: flex !important; }
  #layers .ava__api { display: block !important; }
  #layers .ava__chat { top: 7% !important; transform: none !important; }
  #layers .gw__rows li { grid-template-columns: 14px minmax(0, 1fr) !important; padding: 4px 0 !important; }
  #layers .gw__rows li em { display: block !important; grid-column: 2; font-size: 10px; }
}
/* optical centre: content sits a little above the middle of its screen (one part space above, two parts below) */
html.is-paged main > section:not(.hero):not(.cta-band) > .wrap { justify-content: flex-start !important; }
html.is-paged main > section:not(.hero):not(.cta-band) > .wrap::before { content: ""; flex: 1 1 0; min-height: 0; }
html.is-paged main > section:not(.hero):not(.cta-band) > .wrap::after { content: ""; flex: 2 1 0; min-height: 0; }

/* ---------- short desktop windows (under 760px tall): tighter type and rows so every section stays one screen ---------- */
@media (min-width: 1024px) and (max-height: 760px) {
  main > section h2 { font-size: clamp(30px, 2.9vw, 40px) !important; line-height: 1.08 !important; }
  main > section .measure, main > section .t-lead { font-size: 15px !important; line-height: 1.5 !important; }
  main .list-rows li { padding-top: 8px !important; padding-bottom: 8px !important; row-gap: 2px !important; }
  main .list-rows li > span { font-size: 14.5px !important; line-height: 1.45 !important; }
  main .list-rows { margin-top: var(--s-4) !important; }
  /* governance band */
  .rail-graph { margin-top: var(--s-4) !important; gap: var(--s-2) !important; }
  .rail-row { padding-top: var(--s-2) !important; }
  .rail-row__name small { font-size: 12px !important; }
  .audit ol > li { padding-top: 8px !important; padding-bottom: 8px !important; }
  /* solutions: design-target figures */
  main .figure { font-size: clamp(26px, 2.4vw, 34px) !important; }
  main section .kicker { margin-bottom: var(--s-2) !important; }
  main > section article.prose.span-7 { font-size: 14px !important; line-height: 1.45 !important; }
  main > section article.prose.span-7 > h2 { font-size: 26px !important; }
}

/* ---------- nav menu cards: product visuals instead of stock photos ---------- */
.mc-panel { --p-h: 166px; background: radial-gradient(70% 80% at 85% 15%, rgb(37 87 214 / .08), transparent 60%), #efede9 !important; border: 1px solid #e4e1db; }
.mc-hub { position: absolute; inset: 0; }
.mc-hub::before { content: ""; position: absolute; inset: 22% 14% 10%; border: 1px dashed #cfccc5; border-radius: 50%; }
.mc-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 9px 14px; border-radius: 10px; background: var(--p-ink); color: #f4f2ee; font: 500 12px/1 var(--font-text); box-shadow: 0 10px 24px -12px rgb(21 21 21 / .5); }
.mc-chip { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); white-space: nowrap; padding: 5px 9px; border-radius: 999px; background: #fbfaf8; border: 1px solid #dcd9d2; font: 500 11px/1 var(--font-text); color: var(--ink); }
.mc-checks { position: absolute; left: 10%; right: 10%; top: 50%; transform: translateY(-50%); display: grid; gap: 0; padding: 6px 12px; border-radius: 12px; background: #fbfaf8; border: 1px solid #dcd9d2; box-shadow: 0 14px 28px -18px rgb(21 21 21 / .3); }
.mc-checks span { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12.5px; border-top: 1px solid #efece7; }
.mc-checks span:first-child { border-top: 0; }
.mc-checks i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #bdb9b1; position: relative; flex: none; }
.mc-checks i::after { content: ""; position: absolute; left: 4px; top: 2px; width: 3px; height: 6px; border: solid var(--ink); border-width: 0 1.4px 1.4px 0; transform: rotate(45deg); }
.menu-card:hover .mc-core, .menu-card:hover .mc-checks { box-shadow: 0 16px 32px -14px rgb(21 21 21 / .4); }

/* ---------- governance band: link under the audit trail; a lighter section ---------- */
#governance .gov-more { margin: var(--s-5) 0 0; }
#governance .rail-graph { margin-top: var(--s-5); gap: var(--s-3); }
#governance .rail-row { padding-top: var(--s-3); }
#governance .audit ol > li { padding-top: 10px; padding-bottom: 10px; }
@media (min-width: 1024px) and (max-height: 760px) {
  main > section > .wrap > .prose { font-size: 14px !important; line-height: 1.5 !important; }
  main > section > .wrap > .prose h2 { font-size: 20px !important; margin: 0 0 6px !important; }
  main > section > .wrap > .prose p, main > section > .wrap > .prose li { font-size: 14px !important; line-height: 1.5 !important; }
  main > section > .wrap > .prose li { padding-top: 4px !important; padding-bottom: 4px !important; }
  main > section article.prose.span-7 > p:first-child { display: none; }
  main > section article.prose.span-7 { font-size: 13.5px !important; line-height: 1.42 !important; }
}
.mc-team { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0; }
.mc-team .mc-chip { position: static; transform: none; padding: 7px 11px; font-size: 12px; }
.mc-team i { width: 18px; height: 1px; background: #cfccc5; }
.mc-team .mc-chip:nth-child(3) { background: var(--p-ink); color: #f4f2ee; border-color: var(--p-ink); }
/* user: no spacer above section content; it starts right after the top padding */
html.is-paged main > section:not(.hero):not(.cta-band) > .wrap::before { content: none !important; display: none !important; }
html.is-paged .scrolly__pin { align-items: flex-start !important; }
html.is-paged main > section.scrolly .scrolly__pin { padding: 0 !important; min-height: 0; height: 100%; }
#governance .gov-more { text-align: right; display: flex; justify-content: flex-end; }
/* leadership portraits */
.person-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; display: block; background: #e8e5df; border: 1px solid rgb(255 255 255 / .14); }

/* ---------- footer: logo, socials, company and address ---------- */
footer.closing .foot-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-6); }
footer.closing .foot-top .close__logo { margin: 0 !important; }
.socials-row { display: flex; gap: 10px; }
.socials-row .social { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgb(255 255 255 / .16); color: #f4f2ee; transition: background 200ms ease, border-color 200ms ease, transform 200ms ease; }
.socials-row .social svg { width: 16px; height: 16px; fill: currentColor; }
.socials-row .social:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .32); transform: translateY(-2px); }
footer.closing .foot-company { display: grid; gap: 6px; align-content: start; }
footer.closing .foot-company .footer__lede { margin: 0; font-weight: 500; }
footer.closing .foot-company address { font-style: normal; color: var(--p-inv-muted); line-height: 1.55; font-size: 15px; }
footer.closing .foot-mail { color: #f4f2ee; font-size: 15px; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .3); text-underline-offset: 3px; justify-self: start; min-height: 0 !important; }
@media (max-width: 767px) { footer.closing .foot-top { flex-direction: column; align-items: flex-start; } }

/* ---------- contact: email directory ---------- */
.mail-card { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fbfaf8; padding: 6px 22px; box-shadow: 0 24px 48px -32px rgb(21 21 21 / .25); }
.mail-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: 15px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mail-row:first-child { border-top: 0; }
.mail-row__k { color: var(--muted); font-size: 15px; }
.mail-row b { font-weight: 500; font-size: 15px; }
.mail-row:hover b { color: var(--p-action); }
.office-card { display: grid; gap: 8px; align-content: start; padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fbfaf8; }
.office-card .kicker { margin: 0; }
.office-card__name { margin: 0; font-size: var(--t-card); font-weight: 500; }
.office-card address { font-style: normal; color: var(--muted); line-height: 1.6; }
@media (max-width: 639px) { .mail-row { flex-direction: column; align-items: flex-start; gap: 2px; } }

/* ---------- blog and articles: card grid, and plain reading pages for each post ---------- */
html[data-free-scroll] { scroll-snap-type: none !important; }
html[data-free-scroll] main > section:not(.cta-band) { min-height: 0 !important; display: block !important; }
main > section.post-top { padding-top: calc(var(--nav, 72px) + 56px) !important; padding-bottom: 80px !important; }
.post-list__h { font-size: clamp(36px, 4.4vw, 60px); margin: var(--s-3) 0 var(--s-4); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: var(--s-8); }
@media (max-width: 1023px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform var(--dur, 200ms) var(--ease, ease), box-shadow var(--dur, 200ms) var(--ease, ease); }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(21, 21, 21, .08); }
.post-card__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--p-surface); }
.post-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease, ease); }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 20px 22px; }
.post-card__body h3 { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.post-card__body p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--p-muted); }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 500; color: var(--p-accent); }
.post-card:hover .post-card__more svg { transform: translateX(2px); }
.post-card__more svg { transition: transform 200ms ease; }

.post { max-width: 720px; margin-inline: auto; }
.post__back { display: inline-block; font-size: 14px; color: var(--p-muted); text-decoration: none; margin-bottom: var(--s-6); }
.post__back:hover { color: var(--p-accent); }
.post h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; margin: var(--s-3) 0 var(--s-4); }
.post__dek { font-size: 20px; line-height: 1.5; color: var(--p-muted); margin: 0 0 var(--s-7); }
.post__body h2 { font-size: 26px; line-height: 1.25; margin: 44px 0 12px; }
.post__body p, .post__body li { font-size: 18px; line-height: 1.75; }
.post__body p { margin: 0 0 1.1em; }
.post__body ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.post__body li { margin-bottom: .4em; }
.post__body blockquote { margin: 32px 0; padding-left: 20px; border-left: 2px solid var(--p-accent); font-size: 22px; line-height: 1.45; }

/* ---------- solutions: decision trace (systems -> Fabric -> Verax -> Sentinel -> three ways out) ---------- */
.trace { --ac: #2557d6; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: 0; margin-top: var(--s-8); border-top: 1px solid var(--ink); }
.trace__col { padding: 24px 24px 8px; }
.trace__col + .trace__col { border-left: 1px solid var(--line); }
.trace__col--in { padding-left: 0; } .trace__col--out { padding-right: 0; }
.trace__label { margin: 0 0 16px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted); }
.trace__systems { list-style: none; margin: 0; padding: 0; display: grid; }
.trace__systems li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.trace__systems li b { font-weight: 500; }
.trace__systems li span { color: var(--p-muted); font-size: 13px; text-align: right; }
.trace__systems li::after { content: "→"; color: var(--ac); margin-left: 4px; }
.trace__foot { margin: 12px 0 0; font-size: 13px; color: var(--p-muted); }
.trace__case { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.trace__case b { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.trace__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 5px rgb(37 87 214 / .14); }
.trace__bundle { margin-left: auto; font: 400 11px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line-strong, #d0cdc7); border-radius: 999px; color: var(--p-muted); }
.trace__stages { list-style: none; margin: 0; padding: 0; position: relative; }
.trace__stages::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 24px; width: 2px; background: linear-gradient(var(--ac), var(--ac)) 0 0 / 2px var(--fill, 100%) no-repeat, var(--line); animation: trace-fill 2.8s var(--ease, ease) both; }
@keyframes trace-fill { from { --fill: 0%; background-size: 2px 0%, auto; } to { background-size: 2px 100%, auto; } }
@media (prefers-reduced-motion: reduce) { .trace__stages::before { animation: none; } }
.trace__stage { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
.trace__n { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #151515; color: #f4f2ee; font: 500 11px/1 var(--font-mono); }
.trace__stage.is-held .trace__n { background: #fff; color: #b4453b; border: 2px solid #b4453b; }
.trace__name { margin: 4px 0 8px; font-size: 16px; font-weight: 500; }
.trace__name em { font-style: normal; font: 400 11px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--p-muted); margin-left: 10px; }
.trace__fact { margin: 0; display: grid; gap: 2px; font-size: 14px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.trace__fact span { font: 400 12px/1.3 var(--font-mono); color: var(--p-muted); }
.trace__stage.is-held .trace__fact { border-color: rgb(180 69 59 / .35); }
.trace__verax { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.trace__verax span { font: 400 12px/1 var(--font-mono); padding: 7px 9px; border-radius: 6px; background: var(--p-surface, #e8e5df); }
.trace__verax span + span::before { content: "›"; margin-right: 8px; color: var(--p-muted); }
.trace__verax .is-ok { background: rgb(37 87 214 / .1); color: var(--ac); font-weight: 500; }
.trace__verax .is-no { background: rgb(180 69 59 / .1); color: #b4453b; font-weight: 500; }
.trace__rule { margin: 8px 0 0; font: 400 12px/1.3 var(--font-mono); color: var(--p-muted); }
.trace__road { margin: 4px 0 16px 48px; font-size: 13px; color: var(--p-muted); }
.trace__lane { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.trace__lane:first-of-type { padding-top: 0; }
.trace__lane p { margin: 0 0 2px; font-size: 15px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.trace__lane p em { font-style: normal; font: 400 11px/1.6 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--p-muted); }
.trace__lane > span { font-size: 14px; padding-left: 14px; position: relative; }
.trace__lane > span::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong, #c9c6c0); }
.trace__lane--sent > span::before { background: var(--ac); }
.trace__lane--held > span::before { background: #b4453b; }
@media (max-width: 1023px) {
  .trace { grid-template-columns: minmax(0, 1fr); }
  .trace__col, .trace__col--in, .trace__col--out { padding: 20px 0; }
  .trace__col + .trace__col { border-left: 0; border-top: 1px solid var(--line); }
  .trace__systems { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 639px) {
  .trace__systems { grid-template-columns: minmax(0, 1fr); }
  .trace__bundle { margin-left: 0; }
  .trace__road { margin-left: 0; }
}.arch-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-7); }
.arch-tabs button { font: 500 14px/1 var(--font-text); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong, #d0cdc7); background: transparent; color: var(--ink); cursor: pointer; transition: background 200ms ease, color 200ms ease, border-color 200ms ease; }
.arch-tabs button:hover { border-color: var(--ink); }
.arch-tabs button[aria-selected="true"] { background: #151515; border-color: #151515; color: #f4f2ee; }
.arch-tabs button:focus-visible { outline: 2px solid #2557d6; outline-offset: 2px; }
.arch-panel .trace { margin-top: var(--s-6); }
.arch-more { margin: var(--s-5) 0 0; }
.wf-item { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.wf-item h3 { margin: 0 0 6px; font-size: var(--t-card); }
.wf-item p { margin: 0; color: var(--p-muted); }

/* nav: the Solutions menu card, a tiny decision trace */
.mc-trace { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: 8px 6px; padding: 16px; }
.mc-trace__step { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px 7px 7px; border-radius: 999px; background: #fff; border: 1px solid #d9d6d0; font-size: 12px; font-weight: 500; }
.mc-trace__step i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #151515; color: #f4f2ee; font: 500 9px/1 var(--font-mono); font-style: normal; }
.mc-trace__step + .mc-trace__step::before { content: "›"; margin: 0 4px 0 -12px; color: #2557d6; order: -1; }
.mc-trace__id { flex-basis: 100%; text-align: center; font: 400 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #2557d6; }
.menu-card:hover .mc-trace__step { border-color: #c9c6c0; }
/* ---------- contact: Sales / Partners tabs and a one-column form ---------- */
.contact-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-6); }
.contact-pills span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong, #d0cdc7); background: color-mix(in oklab, var(--p-bg) 50%, #fff); font-size: 14px; }
.contact-pills svg { width: 16px; height: 16px; fill: none; stroke: #2557d6; stroke-width: 1.4; stroke-linecap: round; }
.contact-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: var(--p-surface, #e8e5df); }
.contact-tabs button { font: 500 14px/1 var(--font-text); padding: 12px; border: 0; border-radius: 9px; background: transparent; color: var(--p-muted); cursor: pointer; transition: background 200ms ease, color 200ms ease; }
.contact-tabs button:hover { color: var(--ink); }
.contact-tabs button[aria-selected="true"] { background: #fff; color: #2557d6; box-shadow: 0 1px 2px rgb(21 21 21 / .08); }
.contact-tabs button:focus-visible { outline: 2px solid #2557d6; outline-offset: 2px; }
.contact-card { padding: var(--s-7); }
.contact-card__h { margin: 0 0 var(--s-5); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.form.form--stack { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.form--stack .field :is(input, select) { background: #fff; }
.form--stack .field :is(input, select):focus { outline: none; border-color: #2557d6; box-shadow: 0 0 0 3px rgb(37 87 214 / .15); }
.form--stack .btn-row .btn { width: 100%; justify-content: center; }
@media (max-width: 639px) { .contact-card { padding: var(--s-5); } }
.field__opt { font-weight: 400; color: var(--p-muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* footer on phones: let the footer's grid shrink to the screen instead of growing to its widest content */
footer.closing > .wrap { grid-template-columns: minmax(0, 1fr); }
footer.closing > .wrap > *, footer.closing .foot-top > *, footer.closing .closing__links > * { min-width: 0; }
@media (max-width: 639px) {
  footer.closing .closing__links > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  footer.closing .closing__links > .grid > .foot-company { grid-column: 1 / -1; }
  footer.closing .closing__links > .grid > .footer__col { grid-column: auto / span 1; }
  footer.closing .footer__legal { flex-wrap: wrap; gap: 8px 16px; }
  footer.closing .socials-row { flex-wrap: wrap; }
}
@media (max-width: 639px) {
  footer.closing .footer__legal > span { flex-wrap: wrap; white-space: normal; gap: 6px 16px; }
  h1, h2 { overflow-wrap: break-word; hyphens: auto; }
}

/* inner-page heroes grow to fit what they hold (a long form on a short laptop screen is never cut),
   and use overflow: clip, which can never be scrolled from inside, so the heading always sits below the nav */
html.is-paged main > section.hero--page, main > section.hero--page { height: auto !important; min-height: 100svh !important; max-height: none !important; overflow: clip !important; }
/* gentle scrolling for in-page links on the freely scrolling pages, unless the visitor asks for less motion */
@media (prefers-reduced-motion: no-preference) { html[data-free-scroll] { scroll-behavior: smooth; } }

/* short laptop screens: the closing band and the footer share the last screen without either being cut */
@media (min-width: 1024px) and (max-height: 820px) {
  main > section.cta-band { padding: 28px 0 !important; }
  main > section.cta-band h2 { font-size: clamp(26px, 2.4vw, 34px); }
  main > section.cta-band .t-lead { margin-top: 6px; font-size: 16px; }
  footer.closing { padding-top: 28px !important; padding-bottom: 20px !important; }
  footer.closing .foot-top { margin-bottom: 18px !important; }
  footer.closing .closing__links > .grid { row-gap: 12px !important; }
  footer.closing .footer__col li a { padding: 1px 0 !important; }
  footer.closing .footer__legal { margin-top: 14px !important; padding-top: 12px !important; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  html body main > section.cta-band { padding: 28px 0 !important; min-height: 0 !important; }
  html body footer.closing > .wrap { gap: 16px !important; row-gap: 16px !important; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  html.is-paged main > section.cta-band#book, main > section.cta-band#book { padding: 28px 0 !important; min-height: 0 !important; }
}

/* headings in a grid hug their text instead of stretching to the row's height */
.grid > :is(h1, h2, h3) { align-self: start; }

/* footer bottom line: copyright, Privacy and Terms on the left, Media credits on the right, one shared baseline */
footer.closing .footer__legal { display: flex !important; flex-wrap: wrap; justify-content: space-between !important; align-items: baseline !important; gap: 8px 24px; text-align: left; }
footer.closing .footer__legal > span { display: inline-flex; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 6px 20px; }
footer.closing .footer__legal > a.credits { width: auto !important; flex: 0 0 auto !important; margin: 0 0 0 auto !important; text-align: right !important; font-size: inherit !important; letter-spacing: inherit !important; text-transform: none !important; opacity: 1 !important; color: inherit !important; font-family: inherit !important; line-height: inherit !important; align-self: baseline !important; }
footer.closing .footer__legal span span, footer.closing .footer__legal a { line-height: 1.4; }
/* desktop: an inner page's hero picture is sized to the screen, so the whole hero shows at once */
@media (min-width: 1024px) {
  main > section.hero--page .hero-visual > .frame--photo { aspect-ratio: auto !important; height: min(calc(100svh - var(--nav, 72px) - 150px), 680px); min-height: 320px; }
  main > section.hero--page .hero-visual > .frame--photo > .frame__img, main > section.hero--page .hero-visual > .frame--photo > video { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- home hero: three slides that rotate on their own, pause on hover or touch, and can be moved by hand ---------- */
.hero--photo .hero__text.hero-slider { width: min(100%, 640px); }
@media (min-width: 1280px) { .hero--photo .hero__text.hero-slider { width: min(54%, 700px); } }
.hs__track { display: grid; }
.hs__slide { grid-area: 1 / 1; align-self: center; opacity: 0; transform: translateY(14px); visibility: hidden;
  transition: opacity 700ms cubic-bezier(.4, 0, .2, 1), transform 900ms cubic-bezier(.2, .7, .2, 1), visibility 0s linear 700ms; }
.hs__slide.is-active { opacity: 1; transform: none; visibility: visible; transition-delay: 0s, 0s, 0s; }
.hs__slide > * + * { margin-top: var(--s-5); }
.hs__slide > .btn-row { margin-top: var(--s-6); }
.hero .hs__title { font-size: var(--ly-h1-xl); line-height: 1.02; letter-spacing: var(--display-tracking-xl, var(--display-tracking)); text-wrap: balance; max-width: 15ch; font-weight: var(--display-weight, 500); }
.hero .hs__title--md { font-size: calc(var(--ly-scale, 1) * clamp(36px, 2.6vw + 22px, 64px)); max-width: 17ch; }
.hero .hs__title--sm { font-size: calc(var(--ly-scale, 1) * clamp(32px, 2.2vw + 18px, 54px)); max-width: 20ch; line-height: 1.06; }
.hs__stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hs__stats li { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgb(255 255 255 / .72); border: 1px solid var(--line-strong, #d0cdc7); font-size: 14px; backdrop-filter: blur(6px); }
.hs__stats b { font-size: 17px; font-weight: 600; color: #2557d6; }
.hero .hs__list { font-size: 16px; line-height: 1.55; max-width: 56ch; color: var(--p-muted, #5f5d58); }
.hs__controls { display: flex; align-items: center; gap: 10px; margin-top: var(--s-7); }
.hs__arrow, .hs__toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong, #d0cdc7); background: rgb(255 255 255 / .7); color: var(--ink); cursor: pointer; transition: background 200ms ease, border-color 200ms ease; backdrop-filter: blur(6px); }
.hs__arrow:hover, .hs__toggle:hover { background: #fff; border-color: var(--ink); }
.hs__arrow svg, .hs__toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hs__toggle .hs__i-play { display: none; fill: currentColor; stroke: none; }
.hs__toggle[aria-pressed="true"] .hs__i-pause { display: none; }
.hs__toggle[aria-pressed="true"] .hs__i-play { display: block; }
.hs__toggle { margin-left: 4px; }
.hs__dots { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.hs__dot { position: relative; width: 28px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; }
.hs__dot i { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgb(21 21 21 / .16); overflow: hidden; transition: width 300ms ease; }
.hs__dot i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: #2557d6; border-radius: inherit; }
.hs__dot[aria-current="true"] { width: 48px; }
.hs__dot[aria-current="true"] i { background: rgb(37 87 214 / .22); }
.hs__dot:not([aria-current="true"]) i::after { transform: scaleX(0); }
:is(.hs__arrow, .hs__toggle, .hs__dot):focus-visible { outline: 2px solid #2557d6; outline-offset: 2px; }
@media (max-width: 639px) {
  .hs__controls { margin-top: var(--s-6); }
  .hs__stats li { font-size: 13px; padding: 6px 11px; }
  .hero .hs__list { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .hs__slide { transform: none; transition: opacity 200ms linear, visibility 0s linear 200ms; } }
.hero .hs__slide > .hs__stats { margin-top: var(--s-5) !important; } .hero .hs__slide > .hs__stats + .hs__list { margin-top: var(--s-4) !important; } .hs__controls { gap: 0; }
.hs__dot[aria-current="true"] i::after { transition: transform 100ms linear; } @media (prefers-reduced-motion: reduce) { .hs__dot i::after { transition: none; } }

/* slide 3: key figures set like a report, not as chips: big numerals, quiet labels, hairline dividers */
.hero .hs__slide > .hs__figures { display: flex; flex-wrap: wrap; margin: var(--s-6) 0 0 !important; padding: 0; }
.hs__figures > div { display: flex; flex-direction: column-reverse; padding: 2px 28px 2px 0; }
.hs__figures > div + div { padding-left: 28px; border-left: 1px solid rgb(21 21 21 / .14); }
.hs__figures dd { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 500); font-size: calc(var(--ly-scale, 1) * clamp(32px, 1.8vw + 14px, 46px)); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.hs__figures dt { margin-top: 8px; font-size: 14px; line-height: 1.3; color: var(--p-muted, #5f5d58); }
.hero .hs__slide > .hs__names { display: flex; flex-wrap: wrap; gap: 4px 0; margin: var(--s-5) 0 0 !important; padding: 0; list-style: none; max-width: 60ch; font-size: 15px; line-height: 1.6; color: var(--p-muted, #5f5d58); }
.hs__names li { white-space: nowrap; }
.hs__names li + li::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 12px; border-radius: 50%; background: currentColor; opacity: .55; vertical-align: middle; }
.hs__names li:first-child { color: var(--ink); }
@media (max-width: 639px) {
  .hs__figures > div { padding-right: 18px; }
  .hs__figures > div + div { padding-left: 18px; }
  .hs__figures dt { font-size: 12.5px; }
  .hero .hs__slide > .hs__names { font-size: 14px; }
  .hs__names li + li::before { margin: 0 9px; }
}
/* separators only between names on the same line: each dot sits in its item's left gutter, and the gutter of the
   first item on every line falls in a strip that is clipped away */
.hero .hs__slide > .hs__names { margin-left: -27px !important; clip-path: inset(-4px -4px -4px 27px); }
.hs__names li { position: relative; padding-left: 27px; }
.hs__names li + li::before { position: absolute; left: 12px; top: calc(0.8em - 1.5px); margin: 0; }
.hs__names li::before { content: ""; position: absolute; left: 12px; top: calc(0.8em - 1.5px); width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }
@media (max-width: 639px) { .hero .hs__slide > .hs__names { margin-left: -21px !important; clip-path: inset(-4px -4px -4px 21px); } .hs__names li { padding-left: 21px; } .hs__names li::before { left: 9px; } }
/* phones: the slider hero grows if a slide needs more room, and the smallest screens get slightly tighter type */
@media (max-width: 639px) { html main > section.hero.hero--cine { height: auto !important; min-height: 100svh; padding-bottom: 32px; } }
@media (max-width: 380px) {
  .hero .hs__title { font-size: 34px; }
  .hero .hs__title--md { font-size: 30px; }
  .hero .hs__title--sm { font-size: 27px; }
  .hs__figures dd { font-size: 28px; }
  .hs__figures > div { padding-right: 14px; } .hs__figures > div + div { padding-left: 14px; }
  .hs__slide > * + * { margin-top: var(--s-4); }
}
@media (max-width: 639px) { html.is-paged main > section.hero.hero--cine, html main > section.hero.hero--cine { height: auto !important; max-height: none !important; min-height: 100svh !important; } }

/* slider: sideways swipes belong to the slider, up/down still scrolls the page */
main > section.hero.hero--cine { touch-action: pan-y; }
/* the bars read as something to press: a bigger target, a darker bar on hover */
.hs__dots { gap: 4px; margin-left: -8px; }
.hs__dot { width: 44px; height: 40px; padding: 0 8px; }
.hs__dot[aria-current="true"] { width: 64px; }
.hs__dot i { left: 8px; right: 8px; }
.hs__dot:hover i { background: rgb(21 21 21 / .32); }
.hs__dot[aria-current="true"]:hover i { background: rgb(37 87 214 / .32); }
/* held after a click: the running bar turns ink and stops, so the pause is visible without a button */
.hero.is-held .hs__dot[aria-current="true"] i::after { background: var(--ink); }
/* phones: the three figures stay on one row, labels wrap under their numbers */
@media (max-width: 639px) {
  .hero .hs__slide > .hs__figures { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); }
  .hs__figures dt { max-width: 11ch; }
}

/* slider arrows: at the far left and right of the hero, halfway down; quiet glass circles in the site's palette */
main > section.hero.hero--cine { position: relative; }
.hs__edge { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; padding: 0; border-radius: 50%; border: 1px solid rgb(21 21 21 / .14); background: rgb(255 255 255 / .62); color: var(--ink); cursor: pointer; backdrop-filter: blur(8px); box-shadow: 0 6px 20px -12px rgb(21 21 21 / .35); transition: background 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease; }
.hs__edge--prev { left: clamp(12px, 2vw, 32px); }
.hs__edge--next { right: clamp(12px, 2vw, 32px); }
.hs__edge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hs__edge:hover { background: #fff; border-color: rgb(21 21 21 / .35); box-shadow: 0 10px 26px -12px rgb(21 21 21 / .4); }
.hs__edge--prev:hover { transform: translateX(-2px); }
.hs__edge--next:hover { transform: translateX(2px); }
.hs__edge:active { transform: scale(.96); }
.hs__edge:focus-visible { outline: 2px solid #2557d6; outline-offset: 3px; }
/* keep the words clear of the arrows on tablets and laptops */
@media (min-width: 640px) and (max-width: 1439px) { main > section.hero.hero--cine > .wrap { padding-inline: 64px; } }
/* phones: swipe or use the bars; arrows would sit on the words */
@media (max-width: 639px) { .hs__edge { display: none; } }

/* slide 3 figures: cobalt numerals that count up, a refined "+", labels on one line on wider screens */
.hs__figures dd { color: #2557d6; display: flex; align-items: flex-start; }
.hs__figures dd span { font-variant-numeric: tabular-nums lining-nums; min-width: 1ch; }
.hs__figures dd sup { font-size: .5em; line-height: 1; margin: .12em 0 0 .06em; font-weight: 500; color: #2557d6; opacity: .85; top: 0; }
@media (min-width: 640px) { .hs__figures dt { white-space: nowrap; } }
@media (min-width: 1440px) { main > section.hero.hero--cine > .wrap { padding-inline: 40px; } }

/* slides 2 and 3 films: inverted and softened to the slide 1 look (pale ground, soft grey line-work), each fading in
   over the slide 1 film with its slide; the sand fade on the left (the hero's ::after) stays on top for the words */
.hero .hs__film { opacity: 0; mix-blend-mode: normal; background: #f4f2ee; filter: invert(1) grayscale(1) contrast(.5) brightness(1.14) sepia(.05); object-position: 50% 50%; transition: opacity 1100ms cubic-bezier(.4, 0, .2, 1); }
.hero .hs__film.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero .hs__film { display: none; } }
main > section.hero video.hero__bg.hs__film { mix-blend-mode: normal !important; background: #f4f2ee !important; filter: invert(1) grayscale(1) contrast(.5) brightness(1.14) sepia(.05) !important; object-position: 50% 50% !important; }
main > section.hero video.hero__bg.hs__film[data-hs-film="2"] { filter: invert(1) grayscale(1) contrast(.4) brightness(1.2) sepia(.05) !important; }
/* slide 1 heading: a step above slides 2 and 3, not a giant (about 64px on a laptop, 34px on a small phone) */
.hero .hs__title:not(.hs__title--md):not(.hs__title--sm) { font-size: calc(var(--ly-scale, 1) * clamp(34px, 2.8vw + 24px, 68px)); max-width: 16ch; }
main > section.hero video.hero__bg.hs__film[data-hs-film="2"] { filter: grayscale(1) contrast(1.02) brightness(1.01) sepia(.07) !important; object-position: 60% 50% !important; }

/* the "aria" wordmark: nav at its usual cap height; footer sized by height so the shorter word keeps the same weight */
.nav__logo .logo { height: 28px; width: auto; }
@media (max-width: 639px) { .nav__logo .logo { height: 24px; } }
footer.closing .close__logo { width: auto !important; }
footer.closing .close__logo img { width: auto !important; height: 34px !important; }
@media (max-width: 639px) { footer.closing .close__logo img { height: 30px !important; } }

/* hero slide headings: open, readable spacing (normal-width letters, gentle tracking, a little more line height) */
.hero .hs__title { font-stretch: 100% !important; letter-spacing: -0.012em !important; word-spacing: 0.02em; line-height: 1.1 !important; }
.hero .hs__title--md { letter-spacing: -0.008em !important; line-height: 1.12 !important; }
.hero .hs__title--sm { letter-spacing: -0.004em !important; line-height: 1.14 !important; }
.hero .hs__title:not(.hs__title--md):not(.hs__title--sm) { max-width: 18ch; } .hero .hs__title--md { max-width: 18ch; } .hero .hs__title--sm { max-width: 22ch; }
@media (min-width: 768px) { .hero--photo .hero__text.hero-slider { width: min(100%, 720px) !important; } } @media (min-width: 1280px) { .hero--photo .hero__text.hero-slider { width: min(62%, 780px) !important; } }
.hero .hs__title { word-spacing: 0.09em !important; } .hero .hs__title--sm { word-spacing: 0.07em !important; }

/* every heading on the site: a little more air between words (the letter spacing and normal-width letters come from
   --display-tracking, --display-tracking-xl and --display-stretch in src/layout.mjs) */
:is(main, footer, .nav__menu) :is(h1, h2, h3, .t-h1, .t-h2, .t-card) { word-spacing: 0.06em; }
main h1 { word-spacing: 0.08em; }

/* readability: clearer gaps between words on every heading */
:is(main, footer, .nav__menu) :is(h1, h2, h3, .t-h1, .t-h2, .t-card) { word-spacing: 0.12em; }
main h1 { word-spacing: 0.14em; }
.hero .hs__title, .hero .hs__title--md { word-spacing: 0.15em !important; }
.hero .hs__title--sm { word-spacing: 0.13em !important; }
/* inner-page heroes: the heading scales with the column so a long word ("Anthropomorphic") always fits */
@media (min-width: 1024px) { .hero-copy > h1 { font-size: min(var(--t-h1), 4.9vw); } }

/* contact form: fits on one screen. Two columns of fields, a small card title, tighter spacing */
.contact-tabs { margin-bottom: 10px; }
.contact-tabs button { padding: 10px; }
.form-card.contact-card { padding: 24px 28px 20px; }
.form-card.contact-card .contact-card__h { font-size: 19px !important; line-height: 1.3; letter-spacing: 0 !important; word-spacing: normal !important; font-weight: 600; margin: 0 0 14px; }
.form.form--stack { gap: 12px 14px; }
@media (min-width: 640px) { .form.form--stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form--stack .field { gap: 6px; font-size: 13.5px; }
.form--stack .field :is(input, select) { height: 42px; min-height: 42px; padding-block: 0; font-size: 15px; }
.form--stack .btn-row { margin-top: 4px; }
.form--stack .btn-row .btn { min-height: 44px; }
.form--stack > p.t-small { margin: 0; font-size: 12.5px; }
.form--stack .form__status:empty { display: none; }
