/* FastLane Robotics – site stylesheet
   Dark/cyan robotics brand, white and cool-grey content, editorial grid rhythm.
   Sections: tokens · base · header · buttons · hero · sections · home components ·
   journal · contact · footer · article · page · prose/content · cookie consent ·
   motion · responsive */

/* ------------------------------------------------------------------ tokens */
:root {
  --ink: #0d1016;
  --ink-2: #141922;
  --ink-3: #1c232e;
  --paper: #ffffff;
  --paper-2: #f4f6f9;
  --paper-3: #e9edf2;

  --text: #121822;
  --text-2: #4a5566;
  --text-3: #6b7687;
  --text-inv: #f4f7fb;
  --text-inv-2: rgba(244, 247, 251, 0.72);

  --line: rgba(18, 24, 34, 0.12);
  --line-strong: rgba(18, 24, 34, 0.24);
  --line-inv: rgba(244, 247, 251, 0.16);

  --accent: #1db6da;
  --accent-hover: #38c4e4;
  --accent-ink: #0d7d99;
  --accent-soft: rgba(29, 182, 218, 0.14);
  --warn: #c98418;

  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Consolas", "SF Mono", Menlo, monospace;

  --radius: 8px;
  --radius-sm: 6px;
  --container-max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 8vw, 100px);
  --header-h: 72px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Dark contexts re-map the neutral tokens so components stay agnostic */
.band,
.site-header,
.site-footer,
.hero,
.callout--dark {
  --line: var(--line-inv);
  --line-strong: rgba(244, 247, 251, 0.32);
  --text: var(--text-inv);
  --text-2: var(--text-inv-2);
  --text-3: rgba(244, 247, 251, 0.56);
  --paper-2: var(--ink-2);
  --paper-3: var(--ink-3);
  --accent-ink: var(--accent);
  color: var(--text-inv);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 24ch;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent-soft);
}

.container {
  width: min(var(--container-max), 100% - (2 * var(--gutter)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #06131a;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

main:focus {
  outline: none;
}

section,
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* Labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.eyebrow--light {
  color: rgba(244, 247, 251, 0.82);
}

.pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.figure-note {
  display: block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--line-inv);
  transition: box-shadow 200ms var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(6, 8, 12, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img,
.footer-logo {
  width: 192px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding: 6px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-inv-2);
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text-inv);
  border-bottom-color: var(--accent);
}

.nav-cta {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-inv);
  border-radius: var(--radius-sm);
  color: var(--text-inv);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #06131a;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--text-inv);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-dark {
  background: var(--ink);
  color: var(--text-inv);
}

.btn-dark:hover {
  background: var(--ink-3);
}

.btn-outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--text);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-thickness 160ms var(--ease), color 160ms var(--ease);
}

.more-link::after {
  content: "\2192";
  transition: transform 160ms var(--ease);
}

.more-link:hover {
  text-decoration-thickness: 2px;
}

.more-link:hover::after {
  transform: translateX(4px);
}

.link-button {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.link-button:hover {
  color: var(--text-inv);
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h));
  min-height: min(calc(100svh - var(--header-h)), 940px);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, rgba(8, 10, 14, 0.72) 0%, rgba(8, 10, 14, 0.4) 48%, rgba(8, 10, 14, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.1) 0%, rgba(8, 10, 14, 0.05) 55%, rgba(8, 10, 14, 0.62) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 12vh, 140px) 0 clamp(40px, 7vh, 88px);
}

.hero-title {
  max-width: 19ch;
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 5.6vw, 4.9rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text-inv);
  text-shadow: 0 6px 30px rgba(6, 8, 12, 0.35);
}

.hero-lede {
  max-width: 46ch;
  margin: 0 0 32px;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: rgba(244, 247, 251, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(244, 247, 251, 0.22);
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: strip;
}

.hero-strip li {
  counter-increment: strip;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 247, 251, 0.85);
}

.hero-strip li::before {
  content: counter(strip, decimal-leading-zero);
  margin-right: 8px;
  color: var(--accent);
}

.video-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(244, 247, 251, 0.35);
  border-radius: 999px;
  background: rgba(13, 16, 22, 0.55);
  color: var(--text-inv);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.video-toggle:hover {
  border-color: rgba(244, 247, 251, 0.7);
  background: rgba(13, 16, 22, 0.75);
}

.video-toggle[data-state="playing"] .icon-play,
.video-toggle[data-state="paused"] .icon-pause {
  display: none;
}

html:not(.js) .video-toggle {
  display: none;
}

/* ---------------------------------------------------------------- sections */
.section {
  padding: var(--section) 0;
}

.section--grey {
  background: var(--paper-2);
}

.section--tight {
  padding-top: 0;
}

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

.band + .band {
  border-top: 1px solid var(--line-inv);
}

.section-head {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head h2 {
  margin-bottom: 0;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-head--row .more-link {
  flex: 0 0 auto;
  margin-bottom: 6px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.split h2 {
  margin-bottom: 0;
}

.split-copy p,
.split-note {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-2);
}

.split-note {
  margin-top: 20px;
  font-size: 1rem;
}

.split-copy p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------- solutions index */
.index-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.index-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.7fr) 32px;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  transition: background-color 160ms var(--ease);
}

.index-num {
  padding-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
}

.index-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: color 160ms var(--ease);
}

.index-copy {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-2);
}

.index-arrow {
  justify-self: end;
  padding-top: 2px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-3);
  transition: transform 160ms var(--ease), color 160ms var(--ease);
}

.index-row:hover .index-title,
.index-row:focus-visible .index-title {
  color: var(--accent-ink);
}

.index-row:hover .index-arrow {
  transform: translateX(6px);
  color: var(--accent-ink);
}

/* ---------------------------------------------------------- feature band */
.feature,
.training,
.about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.feature-copy p,
.training-copy > p,
.about-copy > p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-2);
}

.feature-copy .fine-list,
.about-copy .fine-list {
  margin: 32px 0;
}

.feature-media,
.training-media,
.about-media {
  margin: 0;
}

.feature-media img,
.training-media img,
.about-media img,
.article-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-3);
}

.fine-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.fine-list li {
  position: relative;
  padding: 14px 0 14px 24px;
  border-top: 1px solid var(--line);
  line-height: 1.55;
  color: var(--text-2);
}

.fine-list li strong {
  color: var(--text);
  font-weight: 600;
}

.fine-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 23px;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

/* ------------------------------------------------------------- gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
}

.gallery-item {
  grid-column: span 4;
  margin: 0;
}

.gallery-item--wide {
  grid-column: span 8;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-3);
}

.gallery-item--wide img {
  aspect-ratio: 2 / 1;
}

.gallery-item figcaption {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.gallery-item h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.gallery-item p {
  margin: 0;
  color: var(--text-2);
}

.gallery-item .figure-note {
  margin-top: 12px;
}

/* ------------------------------------------------------------ training */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 28px 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.duo h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.duo p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-2);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-2);
}

/* ------------------------------------------------------------ workflow */
.workflow {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.workflow > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.workflow > li:last-child {
  border-bottom: 1px solid var(--line);
}

.workflow > li::before {
  content: counter(step, decimal-leading-zero);
  padding-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
}

.workflow h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.workflow p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.65;
}

.workflow p + p {
  margin-top: 0.6em;
}

.workflow--columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.workflow--columns > li {
  display: block;
  padding: 22px 0 0;
  border-bottom: 0;
}

.workflow--columns > li:last-child {
  border-bottom: 0;
}

.workflow--columns > li::before {
  display: block;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.workflow--columns h3 {
  font-size: 1.25rem;
}

/* --------------------------------------------------------------- facts */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
}

.facts > div,
.facts > li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.facts dt,
.facts > li > strong:first-child {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
}

.facts dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-2);
}

.facts--single {
  grid-template-columns: 1fr;
}

/* ------------------------------------------------------------- journal */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 28px;
}

.journal-card {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.journal-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.journal-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-3);
  aspect-ratio: 3 / 2;
}

.journal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.journal-card-link:hover .journal-media img {
  transform: scale(1.03);
}

.journal-body {
  padding-top: 18px;
}

.journal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.journal-category {
  color: var(--accent-ink);
}

.journal-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  transition: color 160ms var(--ease);
}

.journal-card-link:hover h3 {
  color: var(--accent-ink);
}

.journal-desc {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--text-2);
}

.journal-grid--featured .is-featured {
  grid-column: span 2;
}

.journal-grid--featured .is-featured .journal-media {
  aspect-ratio: 2 / 1;
}

.journal-grid--featured .is-featured h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 500;
  max-width: 28ch;
}

.journal-grid--featured .is-featured .journal-desc {
  max-width: 62ch;
  font-size: 1.02rem;
}

/* ------------------------------------------------------------- contact */
.contact {
  background: var(--paper-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

/* Introduction column: heading, short lede, direct email */
.contact-intro {
  min-width: 0;
}

.contact-intro h2 {
  margin-bottom: 20px;
}

.contact-lede {
  max-width: 44ch;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-2);
}

.contact-direct {
  max-width: 44ch;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-direct-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.contact-email {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  transition: color 160ms var(--ease);
}

.contact-email-text {
  min-width: 0;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-thickness 160ms var(--ease);
}

.contact-email-arrow {
  font-size: 0.9em;
  color: var(--text-3);
  transition: transform 160ms var(--ease), color 160ms var(--ease);
}

.contact-email:hover {
  color: var(--accent-ink);
}

.contact-email:hover .contact-email-text {
  text-decoration-thickness: 2px;
}

.contact-email:hover .contact-email-arrow {
  transform: translateX(4px);
  color: var(--accent-ink);
}

/* Form panel: white surface with thin border and modest shadow */
.contact-panel {
  min-width: 0;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow:
    0 1px 2px rgba(18, 24, 34, 0.04),
    0 16px 40px -24px rgba(18, 24, 34, 0.16);
}

.contact-form {
  position: relative;
  margin: 0;
}

.contact-form-head {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.contact-form-head h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact-form-intro {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-2);
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field {
  min-width: 0;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.form-hint {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* Optional markers stay available to assistive tech without visual noise;
   the form intro states the rule once for sighted users. */
.form-hint--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(18, 24, 34, 0.04);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background-color 160ms var(--ease);
}

.form-field textarea {
  min-height: 136px;
  resize: vertical;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: rgba(18, 24, 34, 0.4);
}

/* Transparent outline keeps a visible ring in forced-colors mode */
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-ink);
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-3);
  opacity: 1;
}

.form-field [aria-invalid="true"] {
  border-color: #b3261e;
}

.form-field [aria-invalid="true"]:focus {
  border-color: #b3261e;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.14);
}

.field-error {
  margin: 7px 0 0;
  color: #9b2525;
  font-size: 0.83rem;
  line-height: 1.5;
}

.field-error[hidden] {
  display: none;
}

/* Footer row: processing note and submit */
.contact-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-privacy {
  flex: 1 1 260px;
  max-width: 40ch;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-2);
}

.contact-privacy a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 160ms var(--ease);
}

.contact-privacy a:hover {
  color: var(--text);
}

.contact-submit {
  flex: 0 0 auto;
  min-width: 180px;
}

/* Disabled before JS binds, and again while sending */
.contact-submit:disabled {
  cursor: default;
  opacity: 0.6;
  transform: none;
}

.contact-submit:disabled:hover {
  background: var(--accent);
  transform: none;
}

.contact-form[aria-busy="true"] .contact-submit:disabled {
  cursor: progress;
  opacity: 0.75;
}

.contact-form[aria-busy="true"] .form-field input,
.contact-form[aria-busy="true"] .form-field textarea {
  background: var(--paper-2);
  color: var(--text-2);
}

/* Status message: pending, error, success */
.form-status {
  margin: 20px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--text-3);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-status[hidden] {
  display: none;
}

.form-status[data-state="pending"] {
  border-left-color: var(--accent);
}

.form-status[data-state="error"] {
  border-color: #e4b4b4;
  border-left-color: #b3261e;
  background: #fff6f6;
  color: #862828;
}

.form-status[data-state="success"] {
  border-color: #a9d7c5;
  border-left-color: #1c8a5f;
  background: #f1faf6;
  color: #1c6247;
}

.contact-noscript {
  margin: 16px 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-2);
}

.contact-noscript a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* Honeypot: the wrapper carries the HTML hidden attribute, so it is gone
   even with stale or missing CSS. These rules are a second layer only. */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-honeypot[hidden],
.form-honeypot[hidden] * {
  display: none !important;
}

/* Legacy contact card (kept for templates outside the home page) */
.contact-card {
  padding: 4px 28px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.band .contact-card {
  background: var(--ink-2);
}

.contact-link {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.contact-link:first-child {
  border-top: 0;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.contact-value {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  transition: color 160ms var(--ease);
}

.contact-link:hover .contact-value {
  color: var(--accent-ink);
}

.contact-link:hover .index-arrow {
  transform: translateX(6px);
  color: var(--accent-ink);
}

.contact-note {
  margin: 0;
  padding: 18px 0 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-3);
}

.contact-card .more-link {
  margin: 18px 0 16px;
  font-size: 0.95rem;
}

/* -------------------------------------------------------------- footer */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line-inv);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  padding: clamp(48px, 6vw, 80px) 0 40px;
}

.footer-brand p {
  max-width: 40ch;
  margin: 20px 0 22px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-inv-2);
}

.footer-contact,
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact li + li,
.footer-col li + li {
  margin-top: 10px;
}

.footer-contact a {
  font-weight: 600;
  color: var(--text-inv);
}

.footer-title {
  margin: 0 0 16px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-inv);
}

.footer-col a,
.footer-col .link-button {
  font-size: 0.95rem;
  color: var(--text-inv-2);
  transition: color 160ms var(--ease);
}

.footer-col a:hover,
.footer-contact a:hover,
.footer-col .link-button:hover {
  color: var(--accent);
}

.footer-bottom {
  padding: 22px 0 36px;
  border-top: 1px solid var(--line-inv);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-inv-2);
}

/* ------------------------------------------------------------- article */
.article-head {
  padding: 40px 0 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-3);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--line-strong);
}

.breadcrumb a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms var(--ease);
}

.breadcrumb a:hover {
  text-decoration-color: var(--accent);
}

.breadcrumb [aria-current="page"] {
  display: inline-block;
  max-width: 48ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.article-head-inner {
  max-width: 820px;
}

.article-title,
.page-title {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.article-lede,
.page-intro {
  max-width: 60ch;
  margin: 0 0 28px;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-2);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.article-meta dt {
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.article-meta dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.article-figure {
  margin: 44px auto 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  padding: var(--section) 0;
}

.article-layout > .article-body:only-child {
  grid-column: 1 / -1;
}

.article-side {
  min-width: 0;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.toc-title {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.toc ul,
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc ul ul,
.toc ol ol {
  padding-left: 14px;
}

.toc a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-2);
  transition: color 160ms var(--ease);
}

.toc a:hover,
.toc a[aria-current="true"],
.toc a.is-active {
  color: var(--accent-ink);
}

.article-body {
  min-width: 0;
}

.article-cta {
  padding: var(--section) 0;
}

.article-cta h2 {
  margin-bottom: 18px;
}

.related {
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------- page */
.page-head {
  padding: clamp(56px, 7vw, 88px) 0;
}

.page-head-inner {
  max-width: 820px;
}

.page-head .page-intro {
  margin-bottom: 0;
  color: var(--text-inv-2);
}

.page-body {
  padding-top: clamp(48px, 6vw, 80px);
}

/* ---------------------------------------------------- prose / content */
.prose {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text);
}

.prose > * {
  max-width: 70ch;
}

.prose > figure,
.prose > .table-wrap,
.prose > table,
.prose > .diagram,
.prose > .journal-grid,
.prose > .workflow--columns,
.prose > .facts,
.prose > .wide,
.prose > .callout--wide,
.prose > .grid,
.prose > .split {
  max-width: none;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.25em;
}

.prose h2 {
  margin: 2.6em 0 0.8em;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 30ch;
}

.prose h3 {
  margin: 2em 0 0.6em;
  font-size: 1.3rem;
}

.prose h4 {
  margin: 1.8em 0 0.5em;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}

.prose h2 + h3,
.prose h3 + h4 {
  margin-top: 1em;
}

.prose a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness 160ms var(--ease);
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

.prose strong {
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose li::marker {
  color: var(--accent-ink);
}

.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
  margin: 0.4em 0 0;
}

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

.prose img {
  border-radius: var(--radius);
}

.prose code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.prose pre {
  margin: 2em 0;
  padding: 20px 24px;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--text-inv);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

.prose pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.prose .lead {
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--text-2);
}

.prose .eyebrow {
  margin-top: 0;
}

.prose small,
.prose .muted {
  color: var(--text-3);
}

/* Tables: scroll only inside the wrapper */
.table-wrap {
  margin: 2.2em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scrollbar-width: thin;
}

.table-wrap table {
  margin: 0;
  border: 0;
}

.prose table,
table.data {
  width: 100%;
  min-width: 560px;
  margin: 2.2em 0;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.prose > table {
  display: block;
  overflow-x: auto;
  min-width: 0;
}

.prose table caption {
  padding: 0 0 12px;
  text-align: left;
  font-size: 0.86rem;
  color: var(--text-3);
  caption-side: top;
}

.prose th,
.prose td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.prose thead th {
  border-top: 0;
  background: var(--paper-2);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.prose tbody th {
  font-weight: 600;
}

.prose td {
  color: var(--text-2);
}

.prose td strong {
  color: var(--text);
}

.prose tfoot td {
  border-top: 1px solid var(--line-strong);
  font-size: 0.86rem;
  color: var(--text-3);
}

/* Blockquote */
.prose blockquote,
blockquote.quote {
  margin: 2.2em 0;
  padding: 6px 0 6px 28px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--text);
}

.prose blockquote p {
  margin: 0 0 0.6em;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose blockquote cite,
.prose blockquote footer {
  display: block;
  margin-top: 12px;
  font-family: var(--font);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-3);
}

/* Details */
.prose details,
details.faq {
  margin: 0;
  border-top: 1px solid var(--line);
}

.prose details:last-of-type,
details.faq:last-of-type {
  border-bottom: 1px solid var(--line);
}

.prose details + details {
  margin-top: 0;
}

.prose details:first-of-type,
.prose p + details,
.prose h2 + details,
.prose h3 + details {
  margin-top: 1.6em;
}

.prose summary {
  position: relative;
  padding: 18px 40px 18px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  line-height: 1.4;
}

.prose summary::-webkit-details-marker {
  display: none;
}

.prose summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  text-align: center;
  font-size: 1rem;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-2);
  transition: transform 200ms var(--ease), border-color 160ms var(--ease);
}

.prose details[open] summary::after {
  content: "\2013";
  border-color: var(--accent);
  color: var(--accent-ink);
}

.prose summary:hover::after {
  border-color: var(--accent);
}

.prose details > :not(summary) {
  max-width: 68ch;
}

.prose details > :last-child {
  margin-bottom: 0;
  padding-bottom: 20px;
}

.prose details > summary + * {
  margin-top: 0;
}

/* Figures */
.prose figure,
figure.figure {
  margin: 2.6em 0;
}

.prose figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-3);
}

.prose figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-3);
}

.prose figcaption .figure-note,
.prose figure .figure-note {
  display: inline-block;
  margin: 0 0 4px;
}

.prose figure.figure--narrow {
  max-width: 70ch;
}

/* Numbered workflows in content */
.prose .workflow {
  margin: 2.4em 0;
}

.prose .workflow > li {
  margin: 0;
}

.prose .workflow p {
  max-width: 62ch;
}

/* Facts in content */
.prose .facts {
  margin: 2.4em 0;
  border-bottom: 1px solid var(--line);
}

.prose .facts > div,
.prose .facts > li {
  margin: 0;
}

/* Callouts */
.callout {
  margin: 2.2em 0;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--paper-2);
  font-size: 1rem;
  line-height: 1.65;
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout-title,
.callout > strong:first-child {
  display: block;
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.callout p {
  color: var(--text-2);
}

.callout--warning {
  border-left-color: var(--warn);
}

.callout--dark {
  background: var(--ink);
  border-color: var(--ink);
  border-left-color: var(--accent);
}

.callout--dark a {
  color: var(--accent);
}

/* Diagrams */
.diagram {
  margin: 2.6em 0;
  padding: clamp(20px, 3vw, 32px);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.diagram svg {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  font-family: var(--font);
}

.diagram img {
  margin: 0 auto;
  border: 0;
  background: none;
}

.diagram pre {
  margin: 0;
  padding: 0;
  background: none;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.5;
}

.diagram-caption,
.diagram + figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-3);
}

/* Flow (horizontal step diagram built from a list) */
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 2.2em 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow li {
  counter-increment: flow;
  position: relative;
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.92rem;
  line-height: 1.5;
}

.flow li::before {
  content: counter(flow, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
}

/* Generic two-column content grid for service pages */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 2.2em 0;
}

.grid > * > :first-child {
  margin-top: 0;
}

.grid > * > :last-child {
  margin-bottom: 0;
}

/* Service page CTA row in content */
.prose .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 2em 0;
}

.prose .actions .btn {
  text-decoration: none;
}

.prose .btn-primary {
  color: #06131a;
}

.prose .btn-dark {
  color: var(--text-inv);
}

/* Page content spacing when parent uses sections */
.page-content > section {
  padding: 0;
}

.page-content > section + section {
  margin-top: 3em;
}

/* ------------------------------------------------------ cookie consent */
#cc-main {
  --cc-font-family: var(--font);
  --cc-modal-border-radius: 8px;
  --cc-btn-border-radius: 6px;
  --cc-modal-transition-duration: 0.2s;
  --cc-modal-margin: 16px;
  --cc-z-index: 2147483647;

  --cc-bg: #ffffff;
  --cc-primary-color: #121822;
  --cc-secondary-color: #4a5566;

  --cc-btn-primary-bg: #ffffff;
  --cc-btn-primary-color: #121822;
  --cc-btn-primary-border-color: #121822;
  --cc-btn-primary-hover-bg: #f4f6f9;
  --cc-btn-primary-hover-color: #121822;
  --cc-btn-primary-hover-border-color: #121822;

  --cc-btn-secondary-bg: #ffffff;
  --cc-btn-secondary-color: #121822;
  --cc-btn-secondary-border-color: #121822;
  --cc-btn-secondary-hover-bg: #f4f6f9;
  --cc-btn-secondary-hover-color: #121822;
  --cc-btn-secondary-hover-border-color: #121822;

  --cc-separator-border-color: rgba(18, 24, 34, 0.12);
  --cc-toggle-on-bg: #1db6da;
  --cc-toggle-off-bg: #c7ced8;
  --cc-toggle-on-knob-bg: #ffffff;
  --cc-toggle-off-knob-bg: #ffffff;
  --cc-toggle-enabled-icon-color: #ffffff;
  --cc-toggle-disabled-icon-color: #ffffff;
  --cc-toggle-readonly-bg: #dbe1e8;
  --cc-toggle-readonly-knob-bg: #ffffff;
  --cc-toggle-readonly-knob-icon-color: #6b7687;
  --cc-section-category-border: rgba(18, 24, 34, 0.08);
  --cc-cookie-category-block-bg: #f4f6f9;
  --cc-cookie-category-block-border: rgba(18, 24, 34, 0.08);
  --cc-cookie-category-block-hover-bg: #eef1f5;
  --cc-cookie-category-block-hover-border: rgba(18, 24, 34, 0.14);
  --cc-cookie-category-expanded-block-bg: transparent;
  --cc-cookie-category-expanded-block-hover-bg: #eef1f5;
  --cc-overlay-bg: rgba(13, 16, 22, 0.6);
  --cc-webkit-scrollbar-bg: #f4f6f9;
  --cc-webkit-scrollbar-hover-bg: #c7ced8;
  --cc-footer-bg: #f4f6f9;
  --cc-footer-color: #4a5566;
  --cc-footer-border-color: rgba(18, 24, 34, 0.12);
  --cc-link-color: #0d7d99;
}

#cc-main .cm,
#cc-main .pm {
  border: 1px solid rgba(18, 24, 34, 0.14);
  box-shadow: 0 24px 60px rgba(13, 16, 22, 0.22);
}

#cc-main .cm__title,
#cc-main .pm__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

#cc-main .cm__desc,
#cc-main .pm__section-desc {
  line-height: 1.6;
}

#cc-main .cm__btn,
#cc-main .pm__btn {
  min-height: 44px;
  border-width: 1px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

#cc-main .cm__btn:focus-visible,
#cc-main .pm__btn:focus-visible,
#cc-main .section__toggle:focus-visible + .toggle__icon {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#cc-main .cm__btn--secondary,
#cc-main .pm__btn--secondary {
  text-decoration: none;
}

#cc-main .pm__badge {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* -------------------------------------------------------------- motion */
.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal-pending.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-pending {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .index-row:hover .index-arrow,
  .more-link:hover::after,
  .contact-email:hover .contact-email-arrow,
  .journal-card-link:hover .journal-media img {
    transform: none;
  }
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .index-row {
    grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.4fr) 28px;
  }
}

@media (max-width: 1050px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 4px var(--gutter) 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-inv);
    box-shadow: 0 24px 50px rgba(6, 8, 12, 0.4);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--line-inv);
    font-size: 1.05rem;
    color: var(--text-inv);
  }

  .nav-list a:hover {
    border-bottom-color: var(--accent);
  }

  .nav-cta {
    margin-top: 18px;
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .toc {
    position: static;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-2);
  }

  .toc ul {
    columns: 2;
    column-gap: 32px;
  }

  .toc ul ul {
    columns: 1;
  }

  .workflow--columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Contact stacks with the tablet navigation: intro and direct email
     first, form panel full width below. */
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .contact-intro h2 {
    max-width: 24ch;
  }
}

@media (max-width: 900px) {
  h2 {
    max-width: none;
  }

  .split,
  .feature,
  .training,
  .about {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .training-media {
    order: 2;
  }

  .about-media,
  .feature-media {
    order: 2;
  }

  .index-row {
    grid-template-columns: 40px minmax(0, 1fr) 28px;
    gap: 10px 16px;
    padding: 24px 0;
  }

  .index-copy {
    grid-column: 2 / 3;
  }

  .index-arrow {
    grid-row: 1;
    grid-column: 3;
  }

  .gallery-item,
  .gallery-item--wide {
    grid-column: span 12;
  }

  .gallery-item--wide img {
    aspect-ratio: 3 / 2;
  }

  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .journal-grid--featured .is-featured {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: span 2;
  }

  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  :root {
    --section: clamp(56px, 14vw, 72px);
  }

  .brand img {
    width: 160px;
    height: 40px;
  }

  .hero {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }

  .hero-inner {
    padding: 64px 0 40px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-strip {
    gap: 8px 20px;
  }

  .duo,
  .facts,
  .workflow--columns,
  .journal-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand,
  .journal-grid--featured .is-featured {
    grid-column: span 1;
  }

  .journal-grid--featured .is-featured .journal-media {
    aspect-ratio: 3 / 2;
  }

  .contact-card {
    padding: 4px 20px 8px;
  }

  .contact-link {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 4px 12px;
  }

  .contact-label {
    grid-column: 1 / -1;
  }

  .contact-grid {
    gap: 36px;
  }

  .contact-direct {
    margin-top: 28px;
    padding-top: 22px;
  }

  .contact-email {
    font-size: 1.1rem;
  }

  .contact-panel {
    padding: 22px 18px 24px;
  }

  .contact-form-head {
    margin-bottom: 22px;
    padding-bottom: 18px;
  }

  .contact-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .contact-form-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 24px;
  }

  .contact-privacy {
    flex: 0 1 auto;
    max-width: none;
  }

  .contact-submit {
    width: 100%;
    min-width: 0;
  }

  .toc ul {
    columns: 1;
  }

  .prose {
    font-size: 1.02rem;
  }

  .prose blockquote {
    padding-left: 20px;
    font-size: 1.1rem;
  }

  .prose th,
  .prose td {
    padding: 11px 12px;
  }

  .callout {
    padding: 18px 20px;
  }

  .article-meta {
    gap: 14px 28px;
  }

  .breadcrumb [aria-current="page"] {
    max-width: 22ch;
  }
}

@media (max-width: 400px) {
  :root {
    --gutter: 16px;
  }

  .brand img {
    width: 140px;
    height: 36px;
  }

  .pills li {
    font-size: 0.76rem;
    padding: 5px 11px;
  }
}

/* --------------------------------------------------------------- print */
.prose .btn { text-decoration: none; }
.prose .journal-card a { color: inherit; text-decoration: none; }
.prose .journal-card h2 { margin: 0 0 .7em; padding: 0; border: 0; font-size: 1.45rem; }
.journal-card-body { padding-block: 20px; }
.journal-card > a > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc ol li { margin: 0 0 12px; line-height: 1.4; }
.page-content > figure:first-child { max-width: 100%; }
.service-page .page-content > figure:first-child { max-width: 980px; }
.service-page .page-content > figure:first-child img { max-height: 580px; object-fit: cover; }
.prose .diagram img { border: 0; }

@media print {
  .site-header,
  .site-footer,
  .hero-media,
  .video-toggle,
  .article-cta,
  .related,
  .contact,
  .skip-link {
    display: none !important;
  }

  .hero {
    min-height: 0;
    background: none;
    color: #000;
  }

  .hero-title,
  .hero-lede {
    color: #000;
    text-shadow: none;
  }

  .prose a {
    color: #000;
  }

  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #444;
  }
}
