/* Public www site (layouts/www). The look follows the October 2026 partner deck: warm paper canvas,
   heavy black type, red eyebrows, white bordered cards and black bands. Black, white and red.
   Plain CSS. Avoid Sass-only syntax and the CSS min and max functions: the production Sass
   compressor rejects them when the units differ.

   Every color is a token. The light palette is the default; the dark palette applies when the
   system prefers dark and no choice is saved, or when <html data-theme="dark"> is set. The bands,
   footer and CTA stay black or red in both, so text on them is fixed white. */

:root {
  color-scheme: light;
  --ink: #121415;
  --ink-2: #2b2e31;
  --ink-3: #44484c;
  --black: #0b0c0d;
  --black-2: #16181a;
  --paper: #ffffff;
  --canvas: #f6f5f2;
  --surface: #ffffff;
  --stripe: #fbfaf8;
  --cover: #dfe3e6;
  --header-bg: rgba(255, 255, 255, .96);
  --panel-bg: rgba(255, 255, 255, .94);
  --line: #e4e3e0;
  --line-strong: #d6d4cf;
  --line-dark: #2a2d30;
  --muted: #5c6066;
  --muted-dark: #a6abb1;
  --red: #ba122b;
  --red-hover: #8f0e21;
  --red-on-dark: #f2485b;
  --accent: #ba122b;
  --ok: #1d7a45;
  --ok-bg: #e6f5ec;
  --warn-bg: #fdeceb;
  --alert-bg: #fff3f3;
  --notice-bg: #fff4d6;
  --logo-light: block;
  --logo-dark: none;
  --radius: 10px;
  --radius-lg: 14px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(52px, 6.8vw, 96px);
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 1px 2px rgba(18, 20, 21, .06), 0 8px 24px rgba(18, 20, 21, .06);
  --shadow-lg: 0 2px 4px rgba(18, 20, 21, .06), 0 24px 64px rgba(18, 20, 21, .14);
  --header-h: 68px;
}
/* The dark palette, once for the system preference and once for a saved choice. Keep both the
   same: plain CSS cannot share one block between a media query and a selector. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #eef0f1;
    --ink-2: #cfd3d6;
    --ink-3: #c2c6ca;
    --black: #050607;
    --black-2: #121416;
    --paper: #131517;
    --canvas: #1a1d20;
    --surface: #1c1f22;
    --stripe: #212529;
    --cover: #1a1d20;
    --header-bg: rgba(19, 21, 23, .92);
    --panel-bg: rgba(19, 21, 23, .92);
    --line: #2c3034;
    --line-strong: #3a3f44;
    --line-dark: #2c3034;
    --muted: #a6abb1;
    --red-hover: #d41a34;
    --accent: #f2485b;
    --ok: #6fd39a;
    --ok-bg: #163b27;
    --warn-bg: #3a1419;
    --alert-bg: #2a1416;
    --notice-bg: #3a3014;
    --logo-light: none;
    --logo-dark: block;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .4);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 64px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef0f1;
  --ink-2: #cfd3d6;
  --ink-3: #c2c6ca;
  --black: #050607;
  --black-2: #121416;
  --paper: #131517;
  --canvas: #1a1d20;
  --surface: #1c1f22;
  --stripe: #212529;
  --cover: #1a1d20;
  --header-bg: rgba(19, 21, 23, .92);
  --panel-bg: rgba(19, 21, 23, .92);
  --line: #2c3034;
  --line-strong: #3a3f44;
  --line-dark: #2c3034;
  --muted: #a6abb1;
  --red-hover: #d41a34;
  --accent: #f2485b;
  --ok: #6fd39a;
  --ok-bg: #163b27;
  --warn-bg: #3a1419;
  --alert-bg: #2a1416;
  --notice-bg: #3a3014;
  --logo-light: none;
  --logo-dark: block;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .4);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 64px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--font);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.section--black :focus-visible, .band :focus-visible, .latest :focus-visible, .site-footer :focus-visible, .cookie-notice :focus-visible { outline-color: var(--red-on-dark); }
.cta :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section--canvas { background: var(--canvas); }
.section--black { background: var(--black); color: #fff; }
.section--black .eyebrow { color: var(--red-on-dark); }
.section--black .lead, .section--black .muted { color: var(--muted-dark); }
.section + .section--canvas, .section--canvas + .section--canvas { border-top: 1px solid var(--line); }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
#network-design > .split--even { align-items: start; }
.split--rev > :first-child { order: 2; }
.stack > * + * { margin-top: 16px; }
.split > .stack > :last-child { margin-bottom: 0; }
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--even { grid-template-columns: minmax(0, 1fr); }
  .split--rev > :first-child { order: 0; }
  .scenario-beat { row-gap: 12px; }
  .scenario-beat > h2 { margin-bottom: 0; }
}
@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  body { font-size: 17px; }
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  color: var(--accent);
  font: 700 13px/1.2 var(--font);
  letter-spacing: .09em; text-transform: uppercase;
}
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font); color: inherit; }
.display, h1 {
  font-weight: 900; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -.025em;
  text-wrap: balance;
}
h2, .h2 { font-weight: 900; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
h3, .h3 { font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: -.005em; }
h4 { font-weight: 700; font-size: 17px; line-height: 1.3; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--muted); max-width: 46em; text-wrap: pretty; }
.muted { color: var(--muted); }
.caption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.section--black .caption { color: var(--muted-dark); }
.mono { font-family: var(--mono); font-size: .92em; }
.section-head { max-width: 860px; margin-bottom: clamp(26px, 3.8vw, 48px); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { max-width: 820px; flex: 1 1 520px; }
.section-head--row > .link { margin-bottom: 8px; }
.section-head > :last-child, .section-head--row > div > :last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .section-head--row { gap: 14px; }
  .section-head--row > .link { margin-bottom: 0; }
}
.prose { max-width: 720px; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 1.6em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 6px;
  font: 600 16px/1.25 var(--font); letter-spacing: .005em; text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--light:hover { background: #fff; color: var(--black); border-color: #fff; }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 15px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions--links { column-gap: 32px; }
.link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 600; font-size: 16px; text-decoration: none;
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
}
.link:hover { border-bottom-color: currentColor; }
.section--black .link { color: var(--red-on-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.brand__light { display: var(--logo-light); }
.brand__dark { display: var(--logo-dark); }
.nav { display: flex; align-items: stretch; gap: 2px; height: 100%; margin-left: 4px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border: 0; background: none; border-radius: 6px;
  font: 500 15.5px/1 var(--font); color: var(--ink); text-decoration: none; cursor: pointer;
}
.nav__link:hover, .nav__item.is-open > .nav__link { background: var(--canvas); }
.nav__link[aria-current="page"], .nav__link.is-current { color: var(--accent); background: var(--canvas); }
.nav__item > .nav__link.is-current::before, .nav__link[aria-current="page"]::before {
  content: ""; position: absolute; bottom: 0; left: 12px; right: 12px; height: 3px; background: var(--accent);
}
.nav__chev { width: 10px; height: 10px; transition: transform .2s; }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }
.site-header__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav__link--account { max-width: 14em; }
.nav__link--account > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-fallback { font-size: 15px; font-weight: 600; text-underline-offset: 3px; }
.site-header.has-navigation .nav-fallback, .site-header:not(.has-navigation) .nav,
.site-header:not(.has-navigation) .tools-menu, .site-header:not(.has-navigation) .burger { display: none; }
.menu {
  position: absolute; top: 100%; left: -12px; z-index: 60;
  min-width: 300px; padding: 8px; max-height: calc(100vh - var(--header-h) - 8px); overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s, transform .16s;
}
.menu--wide { width: 580px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.menu--right { left: auto; right: 0; }
.nav__item.is-open > .menu { opacity: 1; visibility: visible; transform: none; }
.menu a, .menu__action { display: block; width: 100%; padding: 12px 14px; border: 0; border-radius: 8px; background: none; font: inherit; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.menu a:hover, .menu a:focus-visible, .menu a[aria-current="page"], .menu__action:hover, .menu__action:focus-visible { background: var(--canvas); }
.menu a:focus-visible, .menu__action:focus-visible { outline-offset: -3px; }
.menu a[aria-current="page"] b, .menu a:hover b, .menu__action:hover { color: var(--accent); }
.menu__form { margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 4px; }
.menu__action { font-size: 15.5px; font-weight: 700; }
.menu .menu__overview { grid-column: 1 / -1; margin-bottom: 4px; border-inline-start: 3px solid var(--accent); border-radius: 3px; background: var(--canvas); }
.menu .menu__overview:is(:hover, :focus-visible) b { text-decoration: underline; text-underline-offset: 3px; }
.menu b { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.menu span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.menu__foot { grid-column: 1 / -1; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 4px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: transform .2s; content: ""; }
.burger span::before { position: absolute; top: -7px; }
.burger span::after { position: absolute; top: 7px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1200px) {
  .nav, .site-header__tools .tools-menu, .site-header__tools .site-header__wide { display: none; }
  .burger { display: block; margin-left: 4px; }
  .site-header__tools { margin-left: auto; }
  .site-header__tools .btn { min-height: 40px; padding: 9px 14px; font-size: 15px; }
}
.mobile-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; border-top: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--header-h) - 1px); max-height: calc(100dvh - var(--header-h) - 1px); overflow-y: auto; overscroll-behavior: contain; }
.nav-open .mobile-nav { display: block; }
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary, .mobile-nav > .container > a { display: flex; justify-content: space-between; align-items: center; padding: 13px 4px; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav > .container > a { border-bottom: 1px solid var(--line); }
.mobile-nav details a { display: block; min-height: 44px; padding: 11px 12px; border-inline-start: 2px solid var(--line); text-decoration: none; color: var(--ink); font-size: 16px; line-height: 1.4; }
.mobile-nav details a:last-child { margin-bottom: 12px; }
.mobile-nav details[open] summary, .mobile-nav .is-current { color: var(--accent); }
.mobile-nav details[open] .nav__chev { transform: rotate(180deg); }
.mobile-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; border-color: var(--accent); background: var(--canvas); }
.mobile-nav details .menu__form { margin: 0 0 12px; border: 0; padding: 0; }
.mobile-nav details .menu__action { min-height: 44px; padding: 11px 12px; border-inline-start: 2px solid var(--line); border-radius: 0; font-size: 16px; }
.mobile-nav__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px 16px; font-weight: 700; font-size: 17px; }
@media (min-width: 1201px) { .mobile-nav { display: none !important; } }
/* The switch needs www.js, which reveals it. It sits in the footer and the phone menu. */
.theme-switch { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); }
.theme-switch[hidden] { display: none; }
.theme-switch button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.theme-switch button:focus-visible { outline-offset: 0; }
.theme-switch svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .site-header__bar { gap: 12px; }
  .brand img { height: 36px; }
  .site-header__tools .btn { min-height: 44px; }
}

/* ---------- Home hero (deck cover) ---------- */
.cover { position: relative; min-height: 74vh; display: flex; align-items: center; overflow: hidden; background: var(--cover); }
.cover__media { position: absolute; inset: 0; }
.cover__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.cover__panel {
  position: relative; z-index: 2;
  width: 100%; max-width: 720px;
  margin: clamp(24px, 3vw, 44px) 0;
  padding: clamp(28px, 4vw, 48px);
  background: var(--panel-bg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cover__panel h1 { font-size: clamp(36px, 4.5vw, 60px); }
.cover__panel .lead { font-size: 19px; }
.cover__proof { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }
.cover__proof strong { flex: none; color: var(--accent); font-size: clamp(24px, 2.5vw, 34px); line-height: 1; }
.cover__proof span { max-width: 25ch; font-size: 16px; line-height: 1.3; }
@media (min-height: 980px) { .cover { min-height: 740px; } }
@media (max-width: 840px) {
  .cover { flex-direction: column; min-height: 0; background: var(--paper); }
  .cover__media { position: relative; width: 100%; aspect-ratio: 5 / 2; }
  .cover__panel { max-width: none; margin: 0; padding: 22px 0 24px; border-radius: 0; box-shadow: none; background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .cover__panel .eyebrow { margin-bottom: 12px; }
  .cover__panel .actions { margin-top: 20px; }
}

/* ---------- Page hero (deck slide) ---------- */
.page-hero { padding: clamp(24px, 4.2vw, 60px) 0; background: var(--canvas); border-bottom: 1px solid var(--line); }
.page-hero:not(.page-hero--plain) > .container { display: grid; align-items: center; gap: 22px; }
.page-hero__copy { min-width: 0; }
.page-hero__context { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; }
.page-hero .eyebrow { margin: 0; line-height: 1.4; }
.page-hero .eyebrow::before { content: ""; width: 24px; height: 2px; flex: none; background: var(--accent); }
.page-hero .crumbs + .eyebrow::before { width: 1px; height: 1em; background: var(--line-strong); }
.page-hero h1 { margin: 0; font-size: clamp(36px, 4.1vw, 60px); line-height: 1.04; letter-spacing: -.03em; overflow-wrap: break-word; }
.page-hero .lead { margin: 16px 0 0; max-width: 54ch; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--ink-3); }
.page-hero__media { margin: 0; min-width: 0; }
.page-hero__media img { width: 100%; height: auto; border-radius: var(--radius); background: var(--line); }
.page-hero__media .caption { margin: 8px 0 0; max-width: 65ch; }
.crumbs { font-size: 15px; font-weight: 500; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; gap: 6px; text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (pointer: coarse) {
  .crumbs a { min-height: 44px; }
}
@media (min-width: 861px) {
  .page-hero:not(.page-hero--plain) > .container { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 40px; }
  .page-hero--plain .page-hero__copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(36px, 5vw, 72px); align-items: start; }
  .page-hero--plain .page-hero__context { grid-column: 1 / -1; }
  .page-hero--plain h1 { grid-column: 1; }
  .page-hero--plain .lead { grid-column: 2; margin: 0; }
  .page-hero--plain .actions { grid-column: 2; margin-top: 20px; }
}
@media (max-width: 720px) {
  .page-hero__context { gap: 4px 10px; }
  .page-hero .lead { margin-top: 12px; }
  .page-hero .actions { margin-top: 22px; }
}

/* ---------- Media ---------- */
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius-lg); background: var(--canvas); }
.figure--frame img { border: 1px solid var(--line); }
.figure--wide img { aspect-ratio: 16 / 8; object-fit: cover; }
.home-moments figcaption { margin-top: 16px; }
@media (max-width: 620px) {
  .home-moments { gap: 12px; }
  .home-moments .figure { display: grid; grid-template-columns: 32% 1fr; align-items: center; gap: 16px; }
  .home-moments img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
  .home-moments figcaption { margin: 0; }
  .home-moments .callout__label { margin-bottom: 4px; }
  .home-moments .muted { font-size: 16px; line-height: 1.45; }
}

/* ---------- Cards (deck callouts) ---------- */
.callouts { display: grid; gap: 12px; align-content: start; }
.callout {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(16px, 2vw, 24px);
}
.callout__label, .callout p.callout__label { margin: 0 0 8px; color: var(--accent); font: 700 13px/1.2 var(--font); letter-spacing: .09em; text-transform: uppercase; }
.callout p { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.section--black .callout { background: var(--black-2); border-color: var(--line-dark); }
.section--black .callout p { color: #d5d8db; }
.section--black .callout p.callout__label { color: var(--red-on-dark); }
.callouts--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.callouts--list .callout__label { margin-bottom: 6px; font: 700 18px/1.3 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); }
.section--black .callouts--list .callout__label { color: #fff; }
@media (max-width: 900px) { .callouts--row { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .callouts--list { gap: 0; }
  .callouts--list .callout { padding: 14px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
  .section--black .callouts--list .callout { border-color: var(--line-dark); }
  .callouts--list .callout:last-child { padding-bottom: 0; }
}

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
a.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--line-strong); }
.card__media { overflow: hidden; background: var(--canvas); }
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.card__body .link { margin-top: auto; padding-top: 10px; }
.card__kicker { color: var(--accent); font: 700 12.5px/1 var(--font); letter-spacing: .09em; text-transform: uppercase; }
.card--big h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 900; letter-spacing: -.015em; }
.section--black .card { background: var(--black-2); border-color: var(--line-dark); }
.section--black .card__body p { color: var(--muted-dark); }
/* Linked photo cards. On a phone, .card-rows (and the full scenario list) become thumbnail rows. */
.scenario-cards, .card-rows { gap: 20px; margin: 0; padding: 0; list-style: none; }
.scenario-cards .card, .card-rows .card { height: 100%; }
.scenario-cards .card__body { padding: clamp(16px, 1.5vw, 22px); }
.scenario-card__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.scenario-card__heading :is(h2, h3) { text-wrap: balance; }
.scenario-card__heading .arrow { flex: none; color: var(--accent); font-size: 20px; }
:is(.scenario-cards, .card-rows) a:is(:hover, :focus-visible) :is(h2, h3) { color: var(--accent); }
:is(.scenario-cards, .card-rows) a:focus-visible { outline-offset: 2px; }
@media (min-width: 621px) and (max-width: 900px) {
  .scenario-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  :is(.scenario-cards, .card-rows) { gap: 0; border-top: 1px solid var(--line); }
  :is(.scenario-cards, .card-rows) .card {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px;
    padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  }
  :is(.scenario-cards, .card-rows) .card:hover { box-shadow: none; transform: none; }
  :is(.scenario-cards, .card-rows) .card__media { border-radius: 4px; }
  :is(.scenario-cards, .card-rows) .card__media img { aspect-ratio: 4 / 3; }
  :is(.scenario-cards, .card-rows) .card__body { padding: 0; gap: 4px; }
  :is(.scenario-cards, .card-rows) :is(h2, h3) { font-size: 19px; }
  .card-rows .card { grid-template-columns: 104px minmax(0, 1fr); align-items: start; padding: 14px 0; }
  .card-rows .card__body p { font-size: 15px; line-height: 1.5; }
  .scenario-cards--related p { display: none; }
  .scenario-cards--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; border: 0; }
  .scenario-cards--compact .card { display: flex; align-items: stretch; gap: 8px; padding: 0; border: 0; }
  .scenario-cards--compact .card__media img { aspect-ratio: 16 / 10; }
  .scenario-cards--compact h3 { font-size: 17px; }
  .scenario-cards--compact .card__body p { font-size: 15px; line-height: 1.4; }
  .scenario-cards--compact .scenario-card__heading { gap: 4px; }
}

/* Text-only feature list */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.feature + .feature { padding-left: 28px; border-left: 1px solid var(--line); }
.features:not(.features--4):not(.features--2) .feature:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 16.5px; }
.feature p + p { margin-top: 12px; }
.feature ul { margin: 12px 0 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 18px; margin: 8px 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.feature li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--accent); border-radius: 1px; }
.features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.features--4 .feature:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
.features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features--2 .feature:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
.section--black .features, .section--black .feature { border-color: var(--line-dark); }
.section--black .feature p { color: var(--muted-dark); }
.section--black .feature li { color: #d5d8db; }
@media (max-width: 900px) {
  .features, .features--4, .features--2 { grid-template-columns: 1fr; }
  .feature, .feature + .feature, .features--4 .feature:nth-child(n), .features--2 .feature:nth-child(n) { padding-left: 0; padding-right: 0; border-left: 0; }
}
.standards-list { border-top: 1px solid var(--line); }
.standards-list .feature {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0 16px;
  padding: 16px 0; border-left: 0;
}
.standards-list h3 { margin: 0; }
@media (max-width: 620px) {
  .standards-list .feature { grid-template-columns: 1fr; gap: 4px; }
  .team-links { gap: 0; border-top: 1px solid var(--line); }
  .team-links .card { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .team-links .card__body { padding: 14px 0; gap: 3px; }
}

/* Numbered component row (software platform) */
.components { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.component { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.component h3 { margin: 14px 0 4px; font-size: 19px; }
.component p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .components { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .components { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { --stat-rule: var(--line-dark); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats + .stats { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--stat-rule); }
.stats__heading { margin: 28px 0 16px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 16px; font-weight: 700; color: #fff; }
.stats__heading:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.stat { padding: 4px clamp(16px, 2vw, 28px); }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--stat-rule); }
.stat__num { display: block; font: 900 clamp(44px, 5vw, 68px)/1 var(--font); letter-spacing: -.03em; color: #fff; }
.stat__num small { font-size: .46em; font-weight: 700; letter-spacing: 0; color: var(--red-on-dark); }
.stat__label { display: block; margin-top: 14px; font-size: 16px; line-height: 1.45; color: #d5d8db; max-width: 17em; }
@media (max-width: 900px) {
  .stats:not(.stats--3) { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stats:not(.stats--3) .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .stats, .stats:not(.stats--3) { grid-template-columns: 1fr; gap: 0; }
  .stats .stat { display: grid; grid-template-columns: minmax(7rem, 2fr) minmax(0, 3fr); align-items: baseline; column-gap: 14px; padding: 14px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--stat-rule); }
  .stats + .stats { margin-top: 12px; padding-top: 0; }
  .stats__heading { margin: 12px 0 0; padding-top: 16px; }
  .stat__num { font-size: clamp(32px, 9vw, 48px); }
  .stat__label { margin: 0; max-width: none; font-size: 15px; }
}

/* Key figures (spec list) */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.figures div { padding: 22px 24px; border-right: 1px solid var(--line); }
.figures div:last-child { border-right: 0; }
.figures b { display: block; font: 900 36px/1 var(--font); letter-spacing: -.02em; }
.figures span { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.section--black .figures { background: var(--black-2); border-color: var(--line-dark); }
.section--black .figures div { border-color: var(--line-dark); }
.section--black .figures span { color: var(--muted-dark); }
.figures--one { grid-template-columns: 1fr; }
.figures--one b { font-size: clamp(64px, 8vw, 104px); color: var(--red-on-dark); }
.figures--one span { font-size: 17px; }
.callout h3 { margin: 0 0 8px; font-size: 19px; }
.callout p.mt-1 { margin-top: 14px; }
.section--black .callout h3 { color: #fff; }
@media (max-width: 720px) { .figures { grid-template-columns: 1fr; } .figures div { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 1024px) {
  #credentials .figures > div { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
  #credentials .figures b { font-size: clamp(44px, 7vw, 64px); }
  #credentials .figures span { margin: 0; font-size: 16px; }
}

/* ---------- Tables (deck spec tables) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 620px; }
table.spec--fit { min-width: 0; }
.spec th, .spec td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec thead th { background: var(--ink); color: var(--paper); font: 700 13px/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.spec tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.spec tbody tr:last-child > * { border-bottom: 0; }
.spec td.num, .spec th.num { font-family: var(--mono); font-size: 15px; text-align: right; }
.spec tbody tr:nth-child(even) { background: var(--stripe); }
.spec--fit thead th { white-space: nowrap; }
.spec thead th.num { font: 700 13px/1.3 var(--font); }
@media (max-width: 600px) {
  .spec--fit th, .spec--fit td { padding: 12px clamp(4px, 1.25vw, 8px); }
}
/* Three-column spec tables stack each row on a phone instead of hiding a column off-screen. */
@media (max-width: 600px) {
  table.spec--stack { min-width: 0; }
  .spec--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spec--stack tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .spec--stack tbody tr:last-child { border-bottom: 0; }
  .spec--stack tbody th, .spec--stack td { display: block; padding: 0; border: 0; white-space: normal; }
  .spec--stack td { margin-top: 4px; }
  .spec--stack td + td { color: var(--muted); }
}

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare__col { border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.compare__col--us { border: 2px solid var(--accent); }
.compare__col h3 { margin-bottom: 14px; }
.compare__col ul { margin: 0; padding: 0; list-style: none; }
.compare__col li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 18px 0 0; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); color: var(--accent);
  font: 600 14px/1 var(--mono); position: relative; z-index: 1;
}
.step::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.step:last-child::after { display: none; }
.step h3 { margin: 18px 0 6px; font-size: 18px; }
.step p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.section--black .step::before { background: var(--black); }
.section--black .step p { color: var(--muted-dark); }
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .step:nth-child(3)::after { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 0 0 28px 64px; }
  .step::before { position: absolute; left: 0; top: 0; }
  .step::after { left: 21px; top: 44px; bottom: 0; right: auto; width: 2px; height: auto; background: var(--line); }
  .step:nth-child(3)::after { display: block; }
  .step h3 { margin-top: 10px; }
}

/* ---------- Diagrams ---------- */
.diagram { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(14px, 2vw, 28px); }
.diagram-legend { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; padding-bottom: 14px; margin: 0 0 18px; border-bottom: 1px solid var(--line); line-height: 1.4; }
.diagram-legend b { font-size: 18px; }
.diagram-legend span { color: var(--muted); font-size: 15px; }
.section--black .diagram-legend { border-color: var(--line-dark); }
.section--black .diagram-legend span { color: var(--muted-dark); }
.diagram svg { width: 100%; height: auto; font-family: var(--font); }
.diagram > figcaption { border-top: 1px solid var(--line); padding-top: 14px; line-height: 1.5; }
.section--black .diagram { background: var(--black-2); border-color: var(--line-dark); }
.section--black .diagram > figcaption { border-color: var(--line-dark); }

/* ---------- UI recreations (illustrative) ---------- */
.ui {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden;
  font-size: 14.5px; line-height: 1.45;
}
.ui__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--stripe); font-weight: 700; font-size: 13.5px; }
.ui__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; }
.ui__bar .ui__tag { margin-left: auto; font-weight: 500; color: var(--muted); }
.ui__body { padding: 18px; }
.ui__msg { padding: 12px 14px; border-radius: 10px; margin-bottom: 10px; max-width: 92%; }
.ui__msg--user { background: var(--ink); color: var(--paper); margin-left: auto; }
.ui__msg--bot { background: var(--canvas); }
.ui__msg b { color: var(--accent); }
.ui__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ui__kpi { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.ui__kpi small { display: block; color: var(--accent); font: 700 11px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.ui__kpi b { display: block; margin-top: 6px; font: 900 26px/1 var(--font); letter-spacing: -.02em; }
.ui__kpi span { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.ui__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ui__row em { font-style: normal; color: var(--muted); }
.ui__pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ui__pill--ok { background: var(--ok-bg); color: var(--ok); }
.ui__pill--warn { background: var(--warn-bg); color: var(--accent); }
.ui-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
/* On a phone, each figure reads as one row: its label on the left, its value on the right. */
@media (max-width: 560px) {
  .ui__kpis { grid-template-columns: 1fr; gap: 0; }
  .ui__kpi { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 10px 0; border: 0; border-radius: 0; }
  .ui__kpis .ui__kpi + .ui__kpi { border-top: 1px solid var(--line); }
  .ui__kpi small, .ui__kpi span { grid-column: 1; }
  .ui__kpi b { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; font-size: 24px; text-align: right; white-space: nowrap; }
}

/* ---------- Bands ---------- */
.band { background: var(--black); color: #fff; overflow: hidden; position: relative; }
.band__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: var(--section); padding-bottom: var(--section); }
.band__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.band .lead { color: var(--muted-dark); }
.band .eyebrow { color: var(--red-on-dark); }
@media (max-width: 900px) { .band__inner { grid-template-columns: 1fr; } }

.cta { background: var(--red); color: #fff; }
.cta__inner { padding-top: clamp(36px, 5.5vw, 76px); padding-bottom: clamp(36px, 5.5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta__copy { flex: 1 1 440px; max-width: 44em; }
.cta h2 { margin: 0; max-width: 20em; font-size: clamp(30px, 3.5vw, 48px); }
.cta p { margin: 12px 0 0; font-size: clamp(17px, 1.4vw, 19px); color: #fff; max-width: 58ch; text-wrap: pretty; }
.cta__actions { margin-block: 0; }
.cta .btn--white { background: #fff; color: var(--red); }
.cta .btn--white:hover { background: var(--ink); color: var(--paper); }
.cta .btn--light { border-color: rgba(255, 255, 255, .78); }
.cta .btn--light:hover { color: var(--red); }
@media (max-width: 600px) {
  .cta__inner { gap: 20px; }
  .cta__actions { width: 100%; gap: 10px; }
  .cta__actions .btn { flex: 1 1 auto; min-width: 8.5rem; padding-inline: 12px; }
}

/* Patent / note line */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.note b { color: var(--ink); }
.section--black .note { background: var(--black-2); color: #d5d8db; }
.section--black .note b { color: #fff; }

/* Library list */
.library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.library a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; }
.library a:hover h3 { color: var(--accent); }
.library h3 { margin: 0; font-size: 19px; transition: color .2s; }
.library p { grid-column: 1 / -1; margin: 0; font-size: 15.5px; color: var(--muted); }
.library .kind { color: var(--accent); font: 700 12px/1.6 var(--font); letter-spacing: .09em; text-transform: uppercase; }
@media (max-width: 800px) { .library { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #d5d8db; font-size: 15px; }
.site-footer a { text-decoration: none; color: #d5d8db; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); padding: clamp(40px, 4.6vw, 72px) 0 40px; }
.footer__brand img { height: 46px; width: auto; }
.footer__brand > a { display: inline-flex; vertical-align: top; }
.footer__brand p { margin: 16px 0 0; color: var(--muted-dark); line-height: 1.55; max-width: 42ch; }
.footer__col summary { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 6px 0; list-style: none; cursor: pointer; }
.footer__col summary::-webkit-details-marker { display: none; }
.footer__col h2 { font: 700 12.5px/1.4 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--red-on-dark); margin: 0; }
.footer__col[open] summary .nav__chev { transform: rotate(180deg); }
.footer__col summary[aria-disabled="true"] { cursor: default; }
.footer__col summary[aria-disabled="true"] .nav__chev { display: none; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin: 6px 0 0; line-height: 1.4; }
.footer__col a { display: inline-block; padding: 2px 0; }
.footer__col a[aria-current="page"] { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--red-on-dark); text-underline-offset: 4px; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; font-style: normal; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 24px 0 40px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 14px; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.site-footer .theme-switch { border-color: var(--line-dark); background: var(--black-2); }
.site-footer .theme-switch button { color: var(--muted-dark); }
.site-footer .theme-switch button:hover { color: #fff; }
.site-footer .theme-switch button[aria-pressed="true"] { background: #fff; color: var(--black); }
@media (max-width: 1024px) { .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; gap: 0; padding: 32px 0 0; }
  .footer__brand { padding-bottom: 24px; }
  .footer__brand img { height: 38px; }
  .footer__col { border-top: 1px solid var(--line-dark); }
  .footer__col summary { min-height: 48px; padding: 12px 4px; }
  .footer__col h2 { font-size: 14px; }
  .footer__col ul { padding-bottom: 12px; }
  .footer__col li { margin: 0; }
  .footer__col a { display: block; padding: 11px 8px; line-height: 1.5; }
  .footer__bottom { display: grid; padding: 22px 0; gap: 12px; }
  .footer__bottom nav { gap: 8px 16px; }
  .footer__legal { gap: 8px 16px; }
  .footer__bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__contact { display: grid; justify-items: start; gap: 0; margin-bottom: 12px; }
  .footer__contact span { margin-bottom: 4px; }
  .footer__contact a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 56px; } .mt-4 { margin-top: 80px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.red { color: var(--accent); }
.hr { height: 1px; background: var(--line); border: 0; margin: clamp(48px, 6vw, 80px) 0; }

/* ---------- Flash, cookie notice, latest strip ---------- */
.flash { border-bottom: 1px solid var(--line); background: var(--canvas); }
.flash__msg { display: flex; align-items: baseline; gap: 12px; padding-top: 12px; padding-bottom: 12px; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.flash__msg::before { content: ""; flex: none; width: 10px; height: 6px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.flash[role="alert"] { background: var(--alert-bg); }
.flash[role="alert"] .flash__msg::before { width: 8px; height: 8px; border: 0; background: var(--accent); transform: rotate(45deg); }
.flash__msg p:last-child { margin-bottom: 0; }
.flash__msg ul { margin: 0; padding-inline-start: 1.25em; }
.cookie-notice {
  background: var(--black); color: #fff; font-size: 14px; line-height: 1.45;
}
.cookie-notice__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 6px; }
.cookie-notice a { text-underline-offset: 3px; }
.cookie-notice .btn { flex: none; min-height: 44px; padding: 8px 14px; font-size: 14px; background: transparent; color: #fff; border-color: #919397; }
.cookie-notice .btn:hover { background: #fff; color: var(--black); border-color: #fff; }
.cookie-notice .btn[hidden] { display: none; }
.latest { background: var(--black); color: #fff; }
.latest__inner { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; font-size: 15px; }
.latest__label { color: var(--red-on-dark); font: 700 12.5px/1 var(--font); letter-spacing: .09em; text-transform: uppercase; }
.latest a { color: #fff; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.latest a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* The second content value gives the arrow empty alternative text, so screen readers skip it. */
.latest a::after { content: "→"; content: "→" / ""; color: var(--red-on-dark); }

/* ---------- OpEx and revenue figures ---------- */
.econ { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.econ__col { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 0 0 var(--radius) var(--radius); padding: clamp(18px, 2.2vw, 32px); }
.econ__col h3 { margin-bottom: 0; }
.econ__col > p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.econ__item { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.econ__item:first-of-type { margin-top: 16px; }
.econ__item:last-child { padding-bottom: 0; }
.econ__num { font: 900 clamp(30px, 2.9vw, 40px)/1 var(--font); letter-spacing: -.03em; color: var(--accent); white-space: nowrap; }
.econ__label { margin: 0; font-weight: 700; font-size: 17px; line-height: 1.3; }
@media (max-width: 900px) { .econ { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .econ__item { grid-template-columns: 4.8rem minmax(0, 1fr); gap: 14px; padding: 14px 0; }
}
@media (max-width: 359px) {
  .econ__item { grid-template-columns: 1fr; gap: 8px; }
}

/* Site-wide message from GlobalSetting (layouts/_site_message keeps its alert classes). */
#site-message { padding: 10px var(--gutter); text-align: center; font-size: 15px; font-weight: 500; background: var(--canvas); color: var(--ink); border-bottom: 1px solid var(--line); }
#site-message.alert-danger { background: var(--red); color: #fff; border-color: var(--red); }
#site-message.alert-warning { background: var(--notice-bg); }

/* List and link variants */
.callouts--list, ol.steps { list-style: none; margin: 0; padding: 0; }
a.component { color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.component:hover { border-color: var(--accent); box-shadow: var(--shadow); }

/* Underlay tiles (architectures, #sdan) */
.underlays { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.underlays li { padding: 20px 22px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--black-2); }
.underlays b { display: block; font-size: 19px; color: #fff; }
.underlays span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--muted-dark); }
@media (max-width: 900px) { .underlays { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .underlays { grid-template-columns: 1fr; } }

/* Use HTML at sizes where the technical labels in the wide drawing would shrink. */
.diagram-stack { display: none; }
@media (max-width: 1180px) {
  .diagram svg { display: none; }
  .diagram-stack { display: block; list-style: none; margin: 0; padding: 0; }
  .diagram-stack li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 15px; line-height: 1.45; }
  .diagram-stack li + li { margin-top: 26px; }
  .diagram-stack li + li::before { content: "↓"; content: "↓" / ""; position: absolute; top: -24px; left: 50%; transform: translateX(-50%); color: var(--accent); font-weight: 700; }
  .diagram-stack b { font-size: 16px; }
  .diagram-stack span { color: var(--muted); }
  .diagram-stack__row { display: block; }
  .diagram-stack__row strong { color: var(--ink); }
  .diagram-stack__row + .diagram-stack__row { padding-top: 7px; border-top: 1px solid var(--line); }
  .diagram-stack .mono { color: var(--ink); font-size: 13.5px; }
  .diagram-stack li.diagram-stack__dark { background: var(--black); border-color: var(--black); color: #fff; }
  .diagram-stack__dark span { color: var(--muted-dark); }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .diagram-stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .diagram-stack li + li { margin-top: 0; }
  .diagram-stack li + li::before { content: "→"; content: "→" / ""; top: 14px; left: -13px; }
}

.cluster-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.cluster-tiles li { padding: clamp(8px, 1vw, 14px); border: 1px solid var(--line-dark); border-radius: 6px; background: var(--black); }
.cluster-tiles b { display: block; font-size: 14px; line-height: 1.35; color: #fff; }
.cluster-tiles__dpus { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin-top: 8px; }
.cluster-tiles__dpus i { display: block; height: 20px; border-radius: 2px; background: linear-gradient(to top, var(--red-on-dark) 75%, #8a8f95 75%); }
@media (max-width: 800px) { .cluster-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 660px) {
  .cluster-tiles { gap: 6px; }
  .cluster-tiles li { padding: 6px; }
  .cluster-tiles b { font-size: 12px; }
  .cluster-tiles__dpus { gap: 2px; margin-top: 5px; }
  .cluster-tiles__dpus i { height: 9px; }
}
@media (max-width: 359px) { .cluster-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Resident moments (residential scenario) */
@media (max-width: 720px) {
  .resident-controls .feature { padding-block: 12px; }
}
@media (min-width: 360px) and (max-width: 720px) {
  .resident-moments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .resident-moments figcaption { margin-top: 8px; }
  .resident-moments figcaption p { font-size: 16px; line-height: 1.45; }
  .resident-controls .feature { display: grid; grid-template-columns: 36% minmax(0, 1fr); gap: 16px; }
  .resident-controls .feature h3 { margin: 0; font-size: 18px; }
}
