/* ==========================================================================
   Kinetikos redesign, sandbox build.
   Plain CSS, custom properties, no framework, no build step.
   Order: tokens (D1-D3) / reset / typography (D2) / layout / components (D5)
          / page overrides / responsive (D6) / reduced motion / print.
   ========================================================================== */

/* --------------------------------------------------------------- D1 colour */

:root {
  /* Ink */
  --ink-display: #000000;
  --ink-body:    #4D555F;
  --ink-2:       #535C67;
  --ink-3:       #7C7C7C;
  --ink-dark:    #2B3138;
  --ink-dark-2:  #3A414A;
  --ink-on-dark: #C5CDD6;

  /* Ground */
  --paper: #FFFFFF;
  --band:  #EFF4F8;
  --wash:  #FDF1E4;

  /* Rules and borders */
  --rule:        #DAE2E9;
  --rule-strong: #7C7C7C;
  --rule-dark:   rgba(255,255,255,.16);

  /* Accent */
  --accent:              #E67300;
  --accent-hover:        #D06800;
  --accent-text:         #B85C00;
  --accent-text-band:    #A85400;
  --accent-on-dark-text: #F5A55A;

  /* Data visualisation */
  --viz-1:    #E67300;
  --viz-2:    #2B3138;
  --viz-3:    #1F5D8C;
  --viz-ref:  rgba(77,85,95,.12);
  --viz-grid: #DAE2E9;

  /* Error (form validation only) */
  --error: #9B2226;

  /* D2 type */
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-num: var(--font);

  /* D3 layout */
  --container: 1200px;
  --gutter: 24px;
  --gutter-m: 16px;
  --s1: 4px;  --s2: 8px;   --s3: 12px;  --s4: 16px;  --s5: 24px;
  --s6: 32px; --s7: 40px;  --s8: 48px;  --s9: 64px;  --s10: 80px;
  --s11: 96px; --s12: 120px; --s13: 160px;
  --r-data: 2px;
  --r-card: 12px;
  --r-media: 12px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --dur: 160ms;
  --ease: cubic-bezier(.2,.6,.2,1);
  --header-h: 72px;
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

[hidden] { display: none !important; }

/* ------------------------------------------------------------ D2 typography */

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--ink-display);
  line-height: 1.15;
}

.t-display, .hero-a__h1 {
  font-size: 3.5rem; line-height: 1.05; letter-spacing: -.015em;
  max-width: 22ch;
}

h1, .t-h1 { font-size: 2.75rem; line-height: 1.10; letter-spacing: -.012em; }
h2, .t-h2 { font-size: 2.125rem; line-height: 1.15; letter-spacing: -.010em; max-width: 28ch; }
h3, .t-h3 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.005em; }
h4, .t-h4 { font-size: 1.1875rem; line-height: 1.30; }

.lead {
  font-size: 1.25rem; line-height: 1.55; font-weight: 400;
  color: var(--ink-body); max-width: 56ch;
}

p { max-width: 66ch; }
p + p { margin-top: 1em; }

.small { font-size: .9375rem; line-height: 1.60; }

.caption {
  font-size: .8125rem; line-height: 1.50; color: var(--ink-2);
}

.eyebrow {
  font-size: .75rem; line-height: 1.2; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  margin: 0 0 var(--s3);
}

.data-xl {
  font-size: 3rem; line-height: 1; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink-display);
  font-variant-numeric: tabular-nums lining-nums;
}

table, .stat, .chart-label { font-variant-numeric: tabular-nums lining-nums; }

/* No dotted rule: it reads as a spelling error. The title attribute and the
   first-use expansion in the copy carry the meaning. */
abbr[title] { text-decoration: none; border-bottom: 0; cursor: help; }

cite, .pub-title { font-style: italic; font-weight: 400; }

/* Links inside prose */
.prose a, p a, li a.inline, dd a {
  color: var(--ink-display);
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur) var(--ease);
}
.prose a:hover, p a:hover, dd a:hover { text-decoration-color: var(--accent); }
.on-dark p a, .on-dark .prose a { color: #FFF; text-decoration-color: rgba(255,255,255,.55); }
.on-dark p a:hover { text-decoration-color: #FFF; }

/* ------------------------------------------------------------------ focus */

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: inherit;
}
.on-dark :focus-visible, .g-dark :focus-visible { outline-color: #FFFFFF; }

.skip {
  position: absolute; left: var(--s4); top: var(--s4);
  transform: translateY(-200%);
  z-index: 100;
  background: #000; color: #FFF;
  padding: 12px 20px; border-radius: var(--r-pill);
  font-size: 1rem; font-weight: 600; text-decoration: none;
}
.skip:focus { transform: translateY(0); }

/* ----------------------------------------------------------------- layout */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.s { padding-block: 112px; }
.s--tight { padding-block: 72px; }
.s--open  { padding-block: 144px; }

.g-band { background: var(--band); }
.g-dark { background: var(--ink-dark); }
.g-wash { background: var(--wash); }

.on-dark { color: var(--ink-on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #FFFFFF; }
.on-dark .eyebrow, .on-dark .caption { color: var(--ink-on-dark); }
.on-dark .lead { color: var(--ink-on-dark); }

/* Splits. Column gap never exceeds 48px (D3). */
.split { display: grid; gap: 48px; align-items: start; }
.split--7-5 { grid-template-columns: 7fr 5fr; }
.split--5-7 { grid-template-columns: 5fr 7fr; }
.split--4-8 { grid-template-columns: 4fr 8fr; }
.split--8-4 { grid-template-columns: 8fr 4fr; }
.split--6-6 { grid-template-columns: 1fr 1fr; }
.split--centre { align-items: center; }

.section-head { margin-bottom: var(--s8); }
.section-head h2 + .lead,
.section-head h2 + p,
.section-head h2 + ul,
.section-head h2 + ol,
.section-head h2 + .body { margin-top: var(--s5); }
.section-head .lead + p, .section-head p + p { margin-top: 1em; }

.stack > * + * { margin-top: var(--s5); }
.stack-tight > * + * { margin-top: var(--s3); }

.measure-body { max-width: 66ch; }

/* Grid children must be allowed to shrink below their content width, or a long
   button label or a wide card forces the whole row past the viewport. */
.split > *, .cards > *, .hero-a__cols > *, .hero-d__cols > *,
.route-cards > *, .link-cards > *, .mini-cards > *, .dep-cards > *,
.tiles > *, .team-cards > *, .voice-cards > *, .pub-cards > *,
.proof-rail > *, .arch-legend > *, .compare-rows > *, .stat-bar > * { min-width: 0; }

/* Card grids */
.cards { display: grid; gap: var(--s5); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

/* ------------------------------------------------------------- D4 buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 1rem; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn--primary { background: var(--accent); color: #000000; }
.btn--primary:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }

.btn--secondary { background: transparent; border-color: #000000; color: #000000; }
.btn--secondary:hover { background: var(--band); }
.on-dark .btn--secondary { border-color: #FFFFFF; color: #FFFFFF; }
.on-dark .btn--secondary:hover { background: var(--ink-dark-2); }

.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); max-width: none; }
.btn-row--centred { justify-content: center; }

/* Tertiary: text link with a trailing arrow */
.link-arrow, a.link-arrow {
  display: inline-block;
  font-size: 1rem; font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.link-arrow::after { content: " \2192"; }
a.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.g-band .link-arrow, .g-band a.link-arrow { color: var(--accent-text-band); }
.on-dark .link-arrow, .on-dark a.link-arrow { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }

.cta-after { margin-top: var(--s7); }

/* ------------------------------------------------------------- D5.1 header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--s6);
  height: var(--header-h);
}
.site-header__logo { display: block; flex: none; }
.site-header__logo img { width: 145px; height: 36px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--s6); }
.nav__item { position: relative; }

.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--header-h);
  font-size: .9375rem; font-weight: 600; line-height: 1;
  color: #000000; text-decoration: none;
  position: relative;
}
.nav__link[aria-current]::after {
  content: ""; position: absolute; left: 0; right: 0;
  top: calc(50% + 11px);
  height: 2px; background: var(--accent);
}
.nav__chev {
  width: 8px; height: 8px; border-right: 1.5px solid #000; border-bottom: 1.5px solid #000;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__chev { transform: translateY(1px) rotate(-135deg); }

.dropdown {
  position: absolute; top: calc(var(--header-h) - 8px); left: -16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  padding: var(--s4);
  min-width: 320px;
  z-index: 60;
}
.dropdown--wide { min-width: 380px; }
.dropdown__list > li + li { margin-top: 2px; }
.dropdown__list a {
  display: block; padding: 12px; border-radius: 8px; text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}
.dropdown__list a:hover { background: var(--band); }
.dropdown__title { display: block; font-size: 1.1875rem; font-weight: 600; color: #000; line-height: 1.3; }
.dropdown__desc { display: block; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); margin-top: 2px; }
.dropdown__eyebrow {
  display: block; font-size: .75rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px;
}
.dropdown__ruled { margin-top: var(--s3) !important; padding-top: var(--s3); border-top: 1px solid var(--rule); }

.site-header__cta { flex: none; height: 44px; padding: 0 20px; }

.menu-btn {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; margin-left: auto;
  font-size: .9375rem; font-weight: 600; color: #000;
}
.menu-btn__glyph { position: relative; width: 20px; height: 2px; background: #000; display: block; }
.menu-btn__glyph::before, .menu-btn__glyph::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #000;
}
.menu-btn__glyph::before { top: -6px; }
.menu-btn__glyph::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__glyph { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__glyph::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__glyph::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding-block: var(--s5) var(--s7);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-menu__head { margin-top: var(--s5); }
.mobile-menu__head:first-child { margin-top: 0; }
.mobile-menu__list--top { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--rule); }
.mobile-menu__list a {
  display: block; padding-block: 10px;
  font-size: 1.0625rem; font-weight: 600; color: #000; text-decoration: none;
}
.mobile-menu__list a[aria-current] { color: var(--accent-text); }
.mobile-menu .btn { margin-top: var(--s6); }

/* JS off: menus open on hover and focus; the mobile panel is always visible. */
.no-js .dropdown { display: none; }
.nav__item:hover > .dropdown,
.nav__item:focus-within > .dropdown { display: block; }
.no-js .nav__item:hover > .dropdown,
.no-js .nav__item:focus-within > .dropdown { display: block; }
.no-js .mobile-menu { display: block; }

/* --------------------------------------------------------- D5.2 breadcrumb */

.breadcrumb { margin-bottom: var(--s5); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; color: var(--ink-3); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ D5.3 heroes */

.hero { padding-block: 144px; }

/* Hero-A, homepage */
.hero-a__cols { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.hero-a__h1 { margin-block: var(--s2) var(--s5); }
.hero-a__lede { margin-bottom: var(--s5); }
.hero-a__body { margin-bottom: var(--s7); max-width: 48ch; }
.hero-a__figure { justify-self: end; margin: 0; }
.hero-a__figure img { max-height: 560px; width: auto; margin-left: auto; }
.hero-a__figure figcaption { text-align: right; margin-top: var(--s3); }

.arch-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: var(--s11);
  border-top: 1px solid var(--rule);
  padding-top: var(--s6);
}
.arch-strip__item { padding-inline: var(--s6); }
.arch-strip__item:first-child { padding-left: 0; }
.arch-strip__item:last-child { padding-right: 0; }
.arch-strip__item + .arch-strip__item { border-left: 1px solid var(--rule); }
.arch-strip__item p { max-width: 34ch; }

/* Hero-B, solution and product pages */
.hero-b__text { max-width: 66.6%; }
.hero-b__text h1 { max-width: 22ch; }
.page-platform .hero-b__text { max-width: 83.3%; }
.page-platform .hero-b h1 { max-width: 38ch; }
.hero-b__lede { margin-bottom: var(--s5); }
.hero-b__body { margin-bottom: var(--s7); }
.hero-b h1 { margin-block: var(--s2) var(--s5); }

.proof-rail {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s8);
  margin-top: var(--s10);
  padding-top: var(--s6);
  border-top: 1px solid var(--rule);
}
.proof-rail__item p { font-size: .9375rem; line-height: 1.6; max-width: 34ch; }
.proof-rail__item a { text-decoration: none; color: var(--ink-display); }
.proof-rail__item a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }

/* Hero-C, editorial */
.hero-c h1 { margin-block: var(--s2) var(--s5); max-width: 20ch; }
.hero-c .lead { margin-bottom: var(--s5); }

/* Hero-D, product with visual */
.hero-d__cols { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
/* No bleed: cropping a chart at the container edge reads as an error. */
.hero-d__media .figure__frame { width: 100%; max-width: 100%; }

/* Page furniture line under an H1 */
.page-note { margin-top: var(--s4); }

/* -------------------------------------------------------------- D5.4 cards */

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: var(--s6);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card h3, .card h4 { margin-bottom: var(--s3); }
.card p + p { margin-top: .8em; }
.card__foot { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--rule); }

.route-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.route-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: var(--s6);
  display: flex; flex-direction: column;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.route-card__title { margin-bottom: var(--s4); }
.route-card__title a { text-decoration: none; }
.route-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.route-card p.small { flex: 1 1 auto; margin-bottom: var(--s6); }
.route-card:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.route-card:has(a:focus-visible) { border-color: var(--ink-3); }

/* ------------------------------------------- D5.5 publication cards, blocks */

.pub-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s8); }
.pub-card { border-left: 1px solid var(--rule); padding-left: 20px; transition: border-color var(--dur) var(--ease); }
.pub-card a { display: block; text-decoration: none; }
.pub-card:hover { border-left-width: 3px; border-left-color: var(--accent); padding-left: 18px; }
.pub-card__journal { display: block; font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.pub-card__finding { display: block; font-size: .9375rem; line-height: 1.6; color: #000; margin-block: var(--s2); }
.pub-card__authors { display: block; }

.pub-block { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; }
.pub-block + .pub-block { margin-top: var(--s10); padding-top: var(--s10); border-top: 1px solid var(--rule); }
.pub-block__meta p { margin: 0; }
.pub-block__journal { font-size: 1.1875rem; font-weight: 600; color: #000; }
.pub-block__authors { font-size: .9375rem; color: var(--ink-2); margin-top: var(--s2) !important; }
.pub-block__title { font-size: 1.1875rem; font-style: italic; font-weight: 400; color: #000; line-height: 1.4; margin-top: var(--s3) !important; }
.pub-block__link { margin-top: var(--s4) !important; }

.deflist dt {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2);
}
.deflist dd { margin: var(--s2) 0 0; max-width: 62ch; }
.deflist > div { padding-block: var(--s5); border-top: 1px solid var(--rule); }
.deflist > div:first-child { border-top: 0; padding-top: 0; }

/* -------------------------------------------------- D5.6 typed evidence card */

.ev-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex; flex-direction: column;
}
.ev-card h3, .ev-card h4 { margin-bottom: var(--s3); }
.ev-card__body { flex: 1 1 auto; }
.ev-card__foot { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.ev-card--voice { max-width: 520px; }
.ev-card--voice h3, .ev-card--voice h4 { margin-bottom: var(--s2); }
.ev-card--voice p.small + p.small { margin-top: var(--s2); }

/* ---------------------------------------------------------- D5.7/8 tables */

.table-scroll { overflow-x: auto; }
.data-table { font-size: .9375rem; line-height: 1.6; }
.data-table caption { text-align: left; caption-side: top; color: var(--ink-2); font-size: .8125rem; padding-bottom: var(--s4); }
.data-table caption.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 18px var(--s5) 18px 0; }
.data-table th:last-child, .data-table td:last-child { padding-right: 0; }
.data-table thead th {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: var(--s3);
  background: inherit;
}
.data-table tbody tr { border-bottom: 1px solid var(--rule); }
.data-table tbody tr:hover { background: var(--band); }
.g-band .data-table tbody tr:hover { background: #E4ECF3; }
.data-table tbody th { font-weight: 600; color: #000; font-size: 1.1875rem; padding-top: 20px; }
.data-table td:first-child { color: #000; font-weight: 600; }
.data-table td.t-num { font-variant-numeric: tabular-nums lining-nums; font-weight: 400; color: var(--ink-body); }
.data-table .chip-cell { white-space: nowrap; }

.chip {
  display: inline-block;
  background: var(--band);
  color: #000;
  font-size: .8125rem; line-height: 1.4;
  padding: 4px 8px;
  border-radius: var(--r-data);
}
.g-band .chip { background: #FFFFFF; }

.param-list { display: block; }
.param-list li { display: inline; }
.param-list li + li::before { content: "\00B7"; margin: 0 .5em; color: var(--ink-3); }
.param-list .unit { color: var(--ink-2); }

.table-note { margin-top: var(--s5); max-width: 80ch; }

/* ----------------------------------------------------------- D5.9 stepper */

.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s5); position: relative; }
.stepper--3 { grid-template-columns: repeat(3, 1fr); }
.stepper--4 { grid-template-columns: repeat(4, 1fr); }
.stepper--5 { grid-template-columns: repeat(5, 1fr); }
.stepper__item { position: relative; padding-top: var(--s7); }
.stepper__item::before {
  content: ""; position: absolute; top: 12px; left: 0; right: 0;
  height: 1px; background: var(--rule);
}
.stepper__item:first-child::before { left: 0; }
.stepper__item:last-child::before { right: 0; }
.stepper__num {
  position: absolute; top: 0; left: 0;
  font-size: 1.1875rem; font-weight: 600; line-height: 1;
  color: var(--accent-text);
  background: inherit;
  padding-right: var(--s3);
  font-variant-numeric: tabular-nums lining-nums;
}
.g-band .stepper__num { color: var(--accent-text-band); background: var(--band); }
.g-paper .stepper__num, .stepper__num { background: var(--paper); }
.g-band .stepper__num { background: var(--band); }
.stepper__item h3, .stepper__item h4 { font-size: 1.1875rem; line-height: 1.3; margin-bottom: var(--s3); }
.stepper__item p { font-size: .9375rem; line-height: 1.6; }

/* ------------------------------------------------ D5.10/11 spec cards (dl) */

.dep-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); align-items: stretch; }
.dep-card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-card);
  padding: var(--s7);
  display: flex; flex-direction: column;
}
.dep-card__def { margin-bottom: var(--s5); }
.dep-card h3 { margin-bottom: var(--s3); }
.spec-rows { flex: 1 1 auto; }
.spec-rows > div { padding-block: var(--s4); border-top: 1px solid var(--rule); }
.spec-rows dt {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.spec-rows dd { margin: 6px 0 0; font-size: .9375rem; line-height: 1.6; }
.dep-card .link-arrow { margin-top: var(--s6); }

/* D5.11 paired spec cards, drawn as one grid so matched rows line up exactly
   across the two columns. The two card grounds are background elements
   spanning every row; the cells sit on top of them. */
.compare-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* One title row plus eight matched rows. The rows have to be explicit or
     grid-row: 1 / -1 on the card grounds only spans the first row. */
  grid-template-rows: repeat(9, auto);
  column-gap: var(--s5);
  align-items: stretch;
}
.compare-pair__bg {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  grid-row: 1 / -1;
}
.compare-pair__bg--1 { grid-column: 1; }
.compare-pair__bg--2 { grid-column: 2; }
.compare-pair__dl { display: contents; }
.compare-pair__title { grid-row: 1; padding: var(--s7) var(--s7) var(--s5); }
.compare-pair__title--1 { grid-column: 1; }
.compare-pair__title--2 { grid-column: 2; }
.compare-pair__cell { padding: var(--s4) var(--s7); border-top: 1px solid var(--rule); }
.compare-pair__c1 { grid-column: 1; }
.compare-pair__c2 { grid-column: 2; }
.compare-pair__dl > div:nth-last-child(-n+2) { padding-bottom: var(--s7); }
/* Place each matched pair in the same grid row explicitly: the card grounds
   span every row, so auto-placement would push the cells past them. */
.compare-pair__dl > div:nth-child(n+1):nth-child(-n+2) { grid-row: 2; }
.compare-pair__dl > div:nth-child(n+3):nth-child(-n+4) { grid-row: 3; }
.compare-pair__dl > div:nth-child(n+5):nth-child(-n+6) { grid-row: 4; }
.compare-pair__dl > div:nth-child(n+7):nth-child(-n+8) { grid-row: 5; }
.compare-pair__dl > div:nth-child(n+9):nth-child(-n+10) { grid-row: 6; }
.compare-pair__dl > div:nth-child(n+11):nth-child(-n+12) { grid-row: 7; }
.compare-pair__dl > div:nth-child(n+13):nth-child(-n+14) { grid-row: 8; }
.compare-pair__dl > div:nth-child(n+15):nth-child(-n+16) { grid-row: 9; }
.compare-pair dt {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2);
}
.compare-pair dd { margin: 6px 0 0; font-size: .9375rem; line-height: 1.6; }
.compare-pair__who { display: none; }

/* Device decision: matched label with two lines (Platform P5) */
.compare-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s8); }
.compare-row { border-top: 1px solid var(--rule); padding-top: var(--s5); }
.compare-row h3, .compare-row h4 { margin-bottom: var(--s3); }
.compare-row p { font-size: .9375rem; line-height: 1.6; }
.compare-row p + p { margin-top: var(--s2); }
.compare-row .k { font-weight: 600; color: #000; }

/* ---------------------------------------------------- D5.12-15 figures/SVG */

.figure { margin: 0; }
.figure__frame {
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  background: var(--paper);
  padding: var(--s6);
}
.g-band .figure__frame { background: var(--paper); }
.figure__frame--flush { padding: 0; border: 0; border-radius: 0; background: none; }
.figure figcaption { margin-top: var(--s4); }
.figure__scroll-hint { display: none; }
.figure-scroll { overflow: visible; }
.figure svg { width: 100%; height: auto; display: block; }

/* No card around the diagram: it is drawn in the site's own type, not
   captured, and the frame was shrinking it to a thumbnail. */
.arch-figure svg { width: 100%; max-width: 960px; height: auto; margin-inline: auto; }
.arch-figure .svg-vertical { max-width: 480px; }
.arch-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s8); margin-top: var(--s8); }
.arch-legend h3 { font-size: 1.1875rem; margin-bottom: var(--s3); }
.arch-legend p { font-size: .9375rem; line-height: 1.6; }

.figure .svg-vertical, svg.svg-vertical { display: none; }

/* --------------------------------------------------- D5.16 app showcase */

.showcase {
  background: var(--band);
  border-radius: var(--r-card);
  padding: var(--s7);
  display: flex; flex-direction: column; align-items: center;
}
.g-band .showcase { background: var(--paper); }
.showcase img { max-width: 480px; width: 100%; }
.showcase figcaption { margin-top: var(--s5); text-align: center; max-width: 52ch; }

/* -------------------------------------------------------- D5.17 stat bar */

.stat-bar { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-bar--2 { grid-template-columns: repeat(2, 1fr); }
.stat-bar--4 { grid-template-columns: repeat(4, 1fr); }
.stat-bar__item { padding-inline: var(--s6); }
.stat-bar__item:first-child { padding-left: 0; }
.stat-bar__item + .stat-bar__item { border-left: 1px solid var(--rule); }
.stat-bar__fig { display: block; }
.stat-bar__fig .suffix { font-size: .6em; color: var(--ink-2); }
.stat-bar__label { font-size: .9375rem; line-height: 1.6; margin-top: var(--s3); max-width: 26ch; }
.stat-bar + .caption { margin-top: var(--s6); }

/* ------------------------------------------------ D5.18 statement strip */

.strip { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: start; }
.strip__h { font-size: 1.1875rem; line-height: 1.3; }
.strip__body p { max-width: 70ch; }
.strip--inset {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: var(--s7);
  margin-top: var(--s8);
}

/* ------------------------------------------------------ D5.19 CTA band */

.cta-band__inner { max-width: 720px; margin-inline: auto; text-align: center; }
.cta-band__heading { font-size: 2.75rem; line-height: 1.10; letter-spacing: -.012em; max-width: none; }
.cta-band__lede { margin: var(--s5) auto var(--s7); max-width: 56ch; }
.cta-band__quiet { margin: var(--s7) auto 0; color: var(--ink-on-dark); max-width: 60ch; }

/* --------------------------------------------------------- D5.20 footer */

.site-footer { background: var(--ink-dark); border-top: 1px solid var(--rule-dark); padding-block: 80px 48px; }
.site-footer__grid { display: grid; grid-template-columns: 4fr 2fr 2fr 2fr 2fr; gap: var(--s8); }
.site-footer__brand img { width: 145px; height: 37px; }
.site-footer__line { font-size: .9375rem; line-height: 1.6; color: var(--ink-on-dark); margin-top: var(--s5); max-width: 32ch; }
.site-footer__head { margin-bottom: var(--s2); }
.site-footer__col a {
  display: block; padding-block: 10px;
  font-size: .9375rem; color: #FFFFFF; text-decoration: none;
}
.site-footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__accent { color: var(--accent-on-dark-text) !important; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4);
  margin-top: var(--s10); padding-top: var(--s5);
  border-top: 1px solid var(--rule-dark);
}
.site-footer__bottom .caption { color: var(--ink-on-dark); }

/* ----------------------------------------------------------- D5.21 forms */

.form { max-width: 640px; }
.field + .field { margin-top: var(--s5); }
.field label { display: block; font-size: .9375rem; font-weight: 600; color: #000; margin-bottom: var(--s2); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-data);
  padding: 14px 16px;
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.5;
  color: var(--ink-display);
  background: var(--paper);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%234D555F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field .help { margin-top: var(--s2); }
.field .err { display: none; margin-top: var(--s2); color: var(--error); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field.is-invalid .err { display: block; }
.field--check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); align-items: start; }
.field--check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); }
.field--check label { margin: 0; font-weight: 400; font-size: 1.0625rem; color: var(--ink-body); }
.field--check .help, .field--check .err { grid-column: 2; }

.notice {
  background: var(--band);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-data) var(--r-data) 0;
  padding: var(--s4) var(--s5);
  margin-block: var(--s7);
}
.notice p { max-width: 62ch; }

.form-success {
  background: var(--band);
  border-radius: var(--r-card);
  padding: var(--s7);
}
.form-success h3 { margin-bottom: var(--s3); }

.sidebar-panel {
  background: var(--band);
  border-radius: var(--r-card);
  padding: var(--s6);
}
.sidebar-panel h2 { font-size: 1.5rem; line-height: 1.25; }
.sidebar-panel ul { margin-top: var(--s5); }
.sidebar-panel li { font-size: .9375rem; line-height: 1.6; padding-block: var(--s4); border-top: 1px solid var(--rule); }
.sidebar-panel li:first-child { border-top: 0; padding-top: 0; }
.sidebar-panel .caption { margin-top: var(--s5); }

/* --------------------------------------------------------- misc components */

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.tile {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: var(--s5);
}
.tile h3, .tile h4 { margin-bottom: var(--s2); }
.tile p { font-size: .9375rem; line-height: 1.6; }

.wide-card {
  background: var(--band);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-card);
  padding: var(--s7);
  max-width: 1000px; margin-inline: auto;
  display: grid; grid-template-columns: 8fr 4fr; gap: 48px; align-items: center;
}
.g-band .wide-card { background: var(--paper); }
.wide-card__cta { justify-self: end; }
.wide-card--stacked { grid-template-columns: 1fr; }
.wide-card .mini-cards { margin-top: var(--s7); }

.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s8); }
.mini-card { border-top: 1px solid var(--rule); padding-top: var(--s4); }
.mini-card h3, .mini-card h4 { margin-bottom: var(--s2); }
.mini-card p { font-size: .9375rem; line-height: 1.6; }
.mini-card a { text-decoration: none; }
.mini-cards--4 { grid-template-columns: repeat(4, 1fr); }
.mini-cards--2 { grid-template-columns: repeat(2, 1fr); }

.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.link-card {
  position: relative;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-card);
  padding: var(--s6);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.link-card h3 { font-size: 1.1875rem; margin-bottom: var(--s3); }
.link-card h3 a { text-decoration: none; }
.link-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.link-card p { font-size: .9375rem; line-height: 1.6; }
.link-card { display: flex; flex-direction: column; }
.link-card p { flex: 0 0 auto; }
.link-card__go { margin-top: auto; padding-top: var(--s5); }
.link-card:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.link-card:hover .link-card__go { text-decoration: underline; text-underline-offset: 3px; }

.team-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.team-cards--5 { grid-template-columns: repeat(5, 1fr); }
.team-card img { border-radius: var(--r-card); width: 100%; max-width: 240px; height: auto; }
.team-card h3, .team-card h4 { margin-top: var(--s4); margin-bottom: var(--s2); }
.team-card p { font-size: .9375rem; line-height: 1.6; }

.voice-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.voice-cards--2 { grid-template-columns: repeat(2, 1fr); }
.voice-card { border-top: 2px solid var(--rule); padding-top: var(--s5); }
.voice-card h3, .voice-card h4 { margin-bottom: var(--s2); }
.voice-card p { font-size: .9375rem; line-height: 1.6; }
.voice-card p + p { margin-top: var(--s2); }
.voice-card__subject { color: var(--ink-2); }

.caption--disclaimer { margin-top: var(--s7); max-width: 80ch; }

.logo-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s8); margin-top: var(--s8); }
/* 40px is a ceiling, not a target: several of these wordmarks are under 40px
   tall and must not be scaled up past their intrinsic size (build plan D8). */
.logo-band img { height: auto; width: auto; max-height: 40px; max-width: 100%; opacity: .9; }

.anchor-rail { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--rule); }
.anchor-rail ul { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); }
.anchor-rail a { font-size: .9375rem; font-weight: 600; color: #000; text-decoration: none; padding-block: 6px; }
.anchor-rail a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }

.numbered { counter-reset: kh; }
.numbered > li { counter-increment: kh; padding-block: var(--s5); border-top: 1px solid var(--rule); }
.numbered > li:first-child { border-top: 0; padding-top: 0; }
.numbered h3::before, .numbered h4::before {
  content: counter(kh, decimal-leading-zero);
  display: inline-block; min-width: 2.4em;
  color: var(--ink-3); font-variant-numeric: tabular-nums lining-nums;
}
.numbered h3, .numbered h4 { font-weight: 600; }
.numbered p { font-size: .9375rem; line-height: 1.6; margin-top: var(--s2); padding-left: 2.4em; }

.bulleted li { position: relative; padding-left: 20px; }
.bulleted li + li { margin-top: var(--s3); }
.bulleted li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--ink-3); border-radius: 50%; }

.lede-list > li { padding-block: var(--s5); border-top: 1px solid var(--rule); }
.lede-list > li:first-child { border-top: 0; padding-top: 0; }
.lede-list h4, .lede-list__h { margin-bottom: var(--s2); color: var(--ink-display); }
.lede-list p { font-size: .9375rem; line-height: 1.6; }

.media { margin: 0; }
.media img { border-radius: var(--r-media); width: 100%; height: auto; }
/* Never upscale past the intrinsic width (build plan D8). */
.media--420 img { max-width: 420px; }
.media--560 img { max-width: 560px; }
.media figcaption { margin-top: var(--s3); }

.centred-statement { max-width: 760px; margin-inline: auto; text-align: center; }
.centred-statement p { max-width: none; }

.notfound-list > li { padding-block: var(--s4); border-top: 1px solid var(--rule); }
.notfound-list a { font-size: 1.1875rem; font-weight: 600; color: #000; text-decoration: none; }
.notfound-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.notfound-list p { font-size: .9375rem; color: var(--ink-2); margin-top: 2px; }

.collection-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
}
.collection-pair > div {
  border-top: 2px solid var(--accent);
  padding: var(--s5);
  background: var(--band);
  border-radius: 0 0 var(--r-card) var(--r-card);
}
.collection-pair h3 { margin-bottom: var(--s3); }

.reference-details {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.reference-details summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding-block: var(--s4);
  color: var(--ink-display);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.reference-details summary::-webkit-details-marker { display: none; }
.reference-details summary::after { content: "+"; color: var(--accent-text); font-size: 1.5rem; line-height: 1; }
.reference-details[open] summary::after { content: "−"; }
.reference-details__body { padding: 0 0 var(--s5); max-width: 72ch; }

.research-list { border-top: 1px solid var(--rule); }
.research-list li { padding-block: var(--s5); border-bottom: 1px solid var(--rule); }
.research-list h3 { font-size: 1.1875rem; }
.research-list h3 a { text-decoration-color: var(--ink-3); text-underline-offset: 4px; }
.research-list h3 a:hover { text-decoration-color: var(--accent); }
.research-list p { margin-top: var(--s2); color: var(--ink-2); font-size: .9375rem; }
.science-cards .caption { margin-top: var(--s5); }

.credential-card {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: var(--s9);
  align-items: center;
  padding: var(--s8);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}
.credential-card__badge { display: block; }
.credential-card__badge img { width: 100%; height: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Spacing utilities, so templates carry no inline styles. */
.u-mt-3 { margin-top: var(--s3); }
.u-mt-4 { margin-top: var(--s4); }
.u-mt-5 { margin-top: var(--s5); }
.u-mt-6 { margin-top: var(--s6); }
.u-mt-7 { margin-top: var(--s7); }
.u-mt-8 { margin-top: var(--s8); }
.u-mt-9 { margin-top: var(--s9); }
.u-mt-10 { margin-top: var(--s10); }

/* ------------------------------------------------------- page overrides */

/* STANCE: the one orange wash. Headings stay #000 (18.88:1); no orange text on it. */
.g-wash .link-arrow, .g-wash a.link-arrow {
  color: #000000;
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 3px;
}
.g-wash a.link-arrow:hover { text-decoration-color: var(--accent); }

/* ------------------------------------------------------- D6 responsive */

@media (max-width: 1279px) {
  .s { padding-block: 88px; }
  .s--tight { padding-block: 56px; }
  .s--open, .hero { padding-block: 104px; }
  .split, .hero-a__cols, .hero-d__cols, .pub-block, .strip { gap: 40px; }
}

@media (min-width: 1280px) {
  /* Item 16/21: the sticky header already supplies the visual top margin. */
  .hero-b { padding-top: 96px; }
  .page-solutions-stance .hero { padding-block: 96px; }
}

/* Item 4: below 640px the data figures scroll sideways rather than shrink
   their labels to six pixels. Same fade mask as .table-scroll. */
@media (max-width: 639px) {
  .figure-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }
  .figure-scroll .figure__frame { min-width: 640px; }
  .figure-scroll--wide .figure__frame { min-width: 900px; }
  /* The strip's 1200-unit viewBox needs the most room of the four. */
  .figure-scroll--strip .figure__frame { min-width: 960px; }
  .figure__scroll-hint { display: block; margin-bottom: var(--s3); }
}

/* Item 26: no orphaned fifth card in the middle range. */
@media (min-width: 600px) and (max-width: 1023px) {
  .team-cards--5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .team-cards:not(.team-cards--5) { grid-template-columns: repeat(2, 1fr); }
  .team-card img { width: 100%; }
}

@media (max-width: 1023px) {
  .nav, .site-header__cta { display: none; }
  .menu-btn { display: inline-flex; }

  .hero-a__cols, .hero-d__cols, .split--7-5, .split--5-7, .split--4-8, .split--8-4, .split--6-6 {
    grid-template-columns: 1fr;
  }
  .hero-a__figure { justify-self: center; }
  .hero-a__figure img { max-height: 420px; margin-inline: auto; }
  .hero-a__figure figcaption { text-align: center; }
  .pub-block { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; gap: var(--s5); }
  .proof-rail { gap: var(--s6); }
  .stepper, .stepper--3, .stepper--4, .stepper--5 { grid-template-columns: 1fr; gap: 0; }
  .stepper__item { padding-top: 0; padding-left: 44px; padding-block: var(--s5); }
  .stepper__item::before { top: 0; bottom: 0; left: 12px; right: auto; width: 1px; height: auto; }
  .stepper__item:first-child::before { top: 12px; }
  .stepper__item:last-child::before { bottom: auto; height: 12px; }
  .stepper__num { top: var(--s5); padding: 0 0 8px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .voice-cards { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .wide-card { grid-template-columns: 1fr; gap: var(--s6); }
  .wide-card__cta { justify-self: start; }
  .mini-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--3, .cards--4, .link-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .hero-b__text { max-width: 100%; }
  .credential-card { grid-template-columns: 1fr; gap: var(--s7); }
  .credential-card__badge { max-width: 340px; }
}

/* Item 9: below 768px the pair stacks, each answer labelled with its route. */
@media (max-width: 767px) {
  .compare-pair { grid-template-columns: 1fr; grid-template-rows: none; }
  .compare-pair__dl > div { grid-row: auto !important; }
  .compare-pair__bg, .compare-pair__title { display: none; }
  .compare-pair__c1, .compare-pair__c2 { grid-column: 1; }
  .compare-pair__cell { padding: var(--s4) 0; }
  .compare-pair__dl > div:nth-last-child(-n+2) { padding-bottom: var(--s4); }
  .compare-pair__c2 { border-top: 0; padding-top: 0; }
  .compare-pair__c2 dt { display: none; }
  .compare-pair__who {
    display: block; font-size: .8125rem; font-weight: 600; color: var(--ink-2);
    margin-bottom: 2px;
  }
}

@media (max-width: 767px) {
  .container { padding-inline: var(--gutter-m); }
  .s { padding-block: 64px; }
  .s--tight { padding-block: 48px; }
  .s--open, .hero { padding-block: 72px; }

  .t-display, .hero-a__h1 { font-size: 2.25rem; line-height: 1.10; }
  h1, .t-h1, .cta-band__heading { font-size: 2rem; line-height: 1.15; }
  h2, .t-h2 { font-size: 1.6875rem; line-height: 1.20; }
  h3, .t-h3 { font-size: 1.375rem; line-height: 1.30; }
  h4, .t-h4, .dropdown__title { font-size: 1.125rem; line-height: 1.35; }
  .lead { font-size: 1.125rem; }
  .data-xl { font-size: 2.25rem; }

  .route-cards, .pub-cards, .cards--2, .cards--3, .cards--4,
  .dep-cards, .compare-rows, .link-cards, .mini-cards, .mini-cards--4,
  .arch-legend, .proof-rail, .team-cards, .team-cards--5, .voice-cards, .voice-cards--2 {
    grid-template-columns: 1fr;
  }
  .collection-pair { grid-template-columns: 1fr; }
  .credential-card { padding: var(--s5); }
  .pub-cards { gap: var(--s6); }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
  .tile { padding: var(--s4); }

  .arch-strip { grid-template-columns: 1fr; margin-top: var(--s8); padding-top: 0; border-top: 0; }
  .arch-strip__item { padding: var(--s5) 0; border-top: 1px solid var(--rule); }
  .arch-strip__item + .arch-strip__item { border-left: 0; }
  .arch-strip__item:first-child { padding-left: 0; }
  .arch-strip__item:last-child { padding-right: 0; }

  .stat-bar { grid-template-columns: repeat(2, 1fr); gap: var(--s5) 0; }
  .stat-bar__item { padding-inline: var(--s5); }
  .stat-bar__item:nth-child(odd) { padding-left: 0; }
  .stat-bar__item:nth-child(odd) { border-left: 0; }

  .site-footer { padding-block: 64px 40px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--s6); }

  /* A long CTA label is allowed two lines below 768px; above it, it fits. */
  .btn-row .btn { width: 100%; }
  .btn-row { gap: var(--s3); }
  .btn { white-space: normal; text-align: center; height: auto; min-height: 52px; padding: 14px 24px; line-height: 1.35; }

  .table-scroll {
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }
  .table-scroll .data-table { min-width: 640px; }
  .table-scroll .data-table--narrow { min-width: 0; }

  .figure__frame { padding: var(--s4); }
  .figure .svg-horizontal, svg.svg-horizontal { display: none; }
  .figure .svg-vertical, svg.svg-vertical { display: block; }

  .showcase { padding: var(--s5); }
  .wide-card { padding: var(--s5); }
  .dep-card { padding: var(--s5); }
  .card, .ev-card, .link-card, .route-card, .sidebar-panel { padding: var(--s5); }

  .logo-band { gap: var(--s6); }
  .logo-band img { max-height: 32px; }
}

/* Item 24: two tiles per row wraps badly on a small phone. */
@media (max-width: 479px) {
  .tiles { grid-template-columns: 1fr; gap: var(--s2); }
  .tile { padding: 16px 20px; }
  .tile h3 { display: inline; }
  .tile h3::after { content: "\00B7"; margin: 0 .45em; color: var(--ink-3); font-weight: 400; }
  .tile p { display: inline; }
}

/* ------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------- print */

@media print {
  .site-header, .mobile-menu, .cta-band, .skip { display: none; }
  .s, .s--open, .s--tight, .hero { padding-block: 24px; }
  .g-band, .g-dark, .g-wash { background: none !important; }
  .on-dark, .on-dark h2, .on-dark .lead, .on-dark .caption { color: #000 !important; }
  .site-footer { background: none; padding-block: 24px; }
}
