/* RT&Co. Cybersecurity — shared stylesheet (prototype)
   Tokens first; every page reuses the same header, footer, rules and form. */

:root {
  --ink: #111214;
  --ink-2: #3a3d42;
  --muted: #595d63;
  --rule: #d7d8da;
  --ground: #ffffff;
  --band: #f4f4f3;
  --red: #bd1f21;
  --red-deep: #a20e20;
  --on-dark: #f3f3f2;
  --on-dark-muted: #b9bbbf;
  --on-dark-soft: #d6d8db;
  --on-dark-body: #e8e9eb;
  --panel-dark: #17181b;
  --rule-dark: #2a2c30;
  --red-light: #e0474a;
  --on-red: #fbeaea;
  --on-red-soft: #f1e3e3;
  --error-light: #ff9a9c;
  --error-light-2: #ff7a7c;
  --field-line: #6c7077;
  --placeholder: #8b8e94;

  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 76rem;
  --measure: 62ch;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-btn: 0.5rem;
}

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

/* Long strings (emails, addresses, translated copy) must never force a scrollbar. */
body { overflow-wrap: break-word; }
.wrap > *, .hero-copy > *, .field, .service { min-width: 0; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ground);
  text-rendering: optimizeLegibility;
}

::selection { background: var(--red); color: #fff; }

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

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
/* Dark and photographic grounds take a white ring: Signal Red falls under 3:1 on them. */
.section--dark :focus-visible, .photo :focus-visible, .tile :focus-visible, .fork :focus-visible, .proof-stage :focus-visible { outline-color: #fff; }

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

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

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ---------- Type ---------- */

h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; }

strong, b { font-weight: 600; color: var(--ink); }
.section--dark strong { color: #fff; }
.t-red { color: var(--red); }
.tagline { color: var(--red); font-weight: 700; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); }
.lede { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: var(--measure); }
.body  { color: var(--ink-2); max-width: var(--measure); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font: inherit; font-weight: 500; font-size: 1rem; line-height: 1;
  padding: 1.05rem 1.6rem;
  background: var(--red); color: #fff;
  border: 1px solid var(--red); border-radius: var(--radius-btn);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.link {
  display: inline-block; padding-block: 0.7rem 0.55rem; min-height: 2.75rem;
  font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.6rem) / 100% 1px no-repeat;
  transition: color 0.2s var(--ease);
}
.link:hover { color: var(--red); }

/* ---------- Utility bar & header ---------- */

.notice { background: var(--ink); color: var(--on-dark); font-size: 0.875rem; }
@media (max-width: 40rem) { .notice { font-size: 0.8125rem; line-height: 1.5; } }
.notice .wrap { padding-block: 0.6rem; }
.notice a { color: var(--on-dark-muted); }

.site-header { border-bottom: 1px solid var(--rule); background: var(--ground); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 4.5rem; }

.brand { padding-block: 0.55rem; display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand b { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.brand b i { font-style: normal; color: var(--red); }
.brand span { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem; }

.nav ul { display: flex; gap: clamp(1rem, 2vw, 2rem); align-items: center; }
.header-actions { display: contents; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 0.9375rem; font-weight: 500; padding-block: 0.7rem; border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.nav a:hover { border-color: var(--ink); }
.nav a[aria-current="page"] { border-color: var(--red); }
.nav .nav-cta { background: var(--red); color: #fff; padding: 0.7rem 1.1rem; border: 1px solid var(--red); border-radius: var(--radius-btn); }
.nav .nav-cta:hover { background: var(--red-deep); border-color: var(--red-deep); }
.nav-book { display: none; }

/* Dropdowns: Resources and About Us. The label stays a link; a separate caret button opens the list for keyboard and touch. */
.nav .has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { display: inline-grid; place-items: center; width: 2.75rem; min-height: 2.75rem; margin-left: 0; margin-right: -1rem; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
.sub-toggle svg { width: 0.85rem; height: 0.85rem; transition: transform 0.25s var(--ease); }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.nav .submenu { position: absolute; top: 100%; left: -1.25rem; z-index: 60; display: none; flex-direction: column; align-items: stretch; gap: 0; min-width: 15rem; padding: 0.5rem 0; background: var(--ground); border: 1px solid var(--rule); box-shadow: 0 14px 28px rgba(17, 18, 20, 0.12); }
.nav .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
.nav .has-sub:hover > .submenu, .nav .has-sub:focus-within > .submenu, .nav .has-sub.is-open > .submenu { display: flex; }
.nav .submenu a { display: block; padding: 0.8rem 1.25rem; border-bottom: 0; }
.nav .submenu a:hover { background: var(--band); }
.nav .submenu a[aria-current="page"] { color: var(--red); }

.nav-toggle { display: none; font: inherit; font-weight: 500; background: none; border: 1px solid var(--ink); border-radius: var(--radius-btn); padding: 0.55rem 0.9rem; cursor: pointer; color: var(--ink); }

/* The full header (wordmark, six links, the long CTA) needs about 1,090px on one line, so the menu takes over below 70rem. */
@media (max-width: 70rem) {
  .site-header .wrap { gap: 0.75rem; }
  .header-actions { display: flex; gap: 0.5rem; align-items: center; flex: none; }
  .nav-book { display: inline-flex; padding: 0.8rem 0.9rem; font-size: 0.9375rem; min-height: 2.75rem; align-items: center; text-decoration: none; white-space: nowrap; background: var(--red); color: #fff; border-radius: var(--radius-btn); font-weight: 500; }
  .nav .nav-cta { display: none; }
  .js .nav-toggle { display: inline-block; min-height: 2.75rem; padding-inline: 0.8rem; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ground); border-bottom: 1px solid var(--rule); }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; }
  .nav li { border-bottom: 1px solid var(--rule); }
  .nav a { display: block; padding: 0.95rem 0; border-bottom: 0; }
  .nav a[aria-current="page"] { color: var(--red); }
  /* In the menu the submenus are always open, indented under their label, so nothing hides behind a second tap. */
  .nav .has-sub { display: block; }
  .sub-toggle { display: none; }
  .nav .submenu { position: static; display: flex; min-width: 0; padding: 0 0 0.6rem 1rem; border: 0; box-shadow: none; background: none; }
  .nav .submenu::before { display: none; }
  .nav .submenu a { padding: 0.7rem 0; font-weight: 400; color: var(--ink-2); }
  .nav .submenu a:hover { background: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.section--band { background: var(--band); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .body, .section--dark .lede { color: var(--on-dark-muted); }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head .body { max-width: 56ch; }
@media (min-width: 62rem) {
  .section-head { grid-template-columns: 5fr 6fr; align-items: end; column-gap: 4rem; }
}

/* ---------- Hero (dark, full-bleed image) ---------- */

:root { --red-on-dark: #e5484b; }

.hero { position: relative; isolation: isolate; background: var(--ink); color: var(--on-dark); overflow: hidden; min-height: clamp(34rem, 82vh, 52rem); display: flex; align-items: center; padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: grayscale(1) contrast(1.15) brightness(0.8); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--red); mix-blend-mode: multiply; opacity: 0.7; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17,18,20,0.9) 0%, rgba(17,18,20,0.7) 42%, rgba(17,18,20,0.2) 100%); }
.hero .wrap { display: block; }
.hero-copy { display: grid; gap: 1.75rem; justify-items: start; }
.hero-copy h1 { font-size: clamp(2.5rem, 1.2rem + 5.4vw, 5.75rem); line-height: 1.02; letter-spacing: -0.035em; color: #fff; }
.hero-copy h1 .line { display: block; }
@media (min-width: 62rem) {
  .hero { align-items: flex-end; padding-block: clamp(5rem, 8vw, 9rem) clamp(3.5rem, 5vw, 5.5rem); }
  .hero-copy { grid-template-columns: 7fr 5fr; column-gap: clamp(3rem, 6vw, 7rem); align-items: end; }
  .hero-copy h1 { grid-column: 1; grid-row: 1 / span 4; align-self: end; }
  .hero-copy > :not(h1) { grid-column: 2; }
}
.hero-copy h1 .t-red { color: var(--red-on-dark); }
.hero .lede { color: var(--on-dark-soft); max-width: 56ch; }
.hero .lede strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: center; margin-top: 0.5rem; }
.hero .link { color: #fff; }
.hero .link:hover { color: var(--red-on-dark); }
.hero-note { font-size: 0.9375rem; color: var(--on-dark-muted); max-width: 52ch; }
.hero :focus-visible { outline-color: #fff; }

.standards { background: var(--panel-dark); color: var(--on-dark); border-bottom: 1px solid var(--rule-dark); }
.standards .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; padding-block: 1.25rem; align-items: baseline; }
.standards p { font-weight: 500; font-size: 0.9375rem; }
.standards ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.75rem; color: var(--on-dark-muted); font-size: 0.9375rem; }

/* ---------- Proactive section & KPIs ---------- */

.proactive { display: grid; gap: 1.25rem; max-width: 60rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.proactive .body { max-width: 64ch; }

.kpi-title { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); margin-bottom: 1.25rem; }
.metrics { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.metrics th, .metrics td { text-align: left; padding: 1.35rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.metrics thead th { font-size: 0.875rem; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--ink); padding-block: 0.9rem; }
.metrics tbody th { font-weight: 700; font-size: 1.0625rem; padding-right: 1.5rem; width: 34%; }
.metrics .m-note { color: var(--ink-2); padding-right: 1.5rem; }
.metrics .m-note small { display: block; font-size: 0.875rem; color: var(--muted); margin-top: 0.15rem; }
.metrics .m-val { text-align: right; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; color: var(--red); }
.metrics thead th:last-child { text-align: right; }
@media (max-width: 40rem) {
  .metrics thead { display: none; }
  .metrics, .metrics tbody, .metrics tr, .metrics th, .metrics td { display: block; width: 100%; }
  .metrics tr { padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
  .metrics th, .metrics td { border: 0; padding: 0; }
  .metrics tbody th { width: 100%; margin-bottom: 0.25rem; }
  .metrics .m-val { text-align: left; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* ---------- Services index ---------- */

.services { border-top: 1px solid var(--ink); }
.service { display: grid; gap: 1rem; padding-block: 2rem; border-bottom: 1px solid var(--rule); text-decoration: none; transition: background-color 0.2s var(--ease); }
.service:hover { background: var(--band); }
.service h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }
.service p { color: var(--ink-2); max-width: 54ch; }
.service .go { font-weight: 500; display: inline-flex; gap: 0.6rem; align-items: center; }
.service .go svg { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.service:hover .go svg { transform: translateX(4px); }
.service:hover .go { color: var(--red); }
@media (min-width: 62rem) {
  .service { grid-template-columns: 4fr 5fr 2fr; column-gap: 3rem; align-items: baseline; padding-inline: 0.75rem; margin-inline: -0.75rem; }
  .service .go { justify-self: end; }
}

/* ---------- Image-led building blocks ---------- */

.has-circuit { background-image: url("../assets/circuit.svg"); background-repeat: no-repeat; background-position: right -6rem center; background-size: min(60rem, 90%); }

/* A section whose background is a photograph, red-toned like the brand artwork. */
.photo { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.photo > .photo-bg { position: absolute; inset: 0; z-index: -2; }
.photo > .photo-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(1.35); }
.photo > .photo-bg::after { content: ""; position: absolute; inset: 0; background: var(--red); mix-blend-mode: multiply; opacity: 0.85; }
.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,18,20,0.35), rgba(17,18,20,0.72)); }
.photo .body, .photo .lede { color: var(--on-red-soft); }

.btn--light { background: transparent; color: #fff; border-color: #fff; }
.btn--light:hover { background: #fff; color: var(--red-deep); border-color: #fff; }

/* ---------- KPI band ---------- */

.kpi-band { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }
.kpi-band .kpi-title { color: #fff; }
.kpi-band .metrics th, .kpi-band .metrics td { border-bottom-color: rgba(255,255,255,0.35); }
.kpi-band .metrics thead th { color: var(--on-red-soft); border-bottom-color: #fff; }
.kpi-band .metrics tbody th { color: #fff; }
.kpi-band .metrics .m-note { color: #fff; }
.kpi-band .metrics .m-note small { color: var(--on-red-soft); }
.kpi-band .metrics .m-val { color: #fff; }
.kpi-band .btn-row { margin-top: 2.25rem; }

/* ---------- Regional fork (image cards) ---------- */

.forks { display: grid; gap: 1.25rem; }
.fork { position: relative; isolation: isolate; display: grid; align-content: end; gap: 1rem; min-height: 30rem; padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); color: #fff; overflow: hidden; background: var(--ink); }
.fork > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.fork::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,18,20,0.05) 0%, rgba(17,18,20,0.55) 45%, rgba(17,18,20,0.92) 100%); }
.fork:hover > img { transform: scale(1.04); }
.fork h3 { color: #fff; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.25rem; }
.fork p { color: var(--on-dark-body); }
.fork p b { color: var(--error-light); font-weight: 700; }
.fork p strong { color: #fff; }
.fork .btn { justify-self: start; margin-top: 0.5rem; }
@media (min-width: 62rem) { .forks { grid-template-columns: repeat(3, 1fr); } .fork { min-height: 36rem; } }

/* ---------- Case study tiles ---------- */

.tiles { display: grid; gap: 1.25rem; }
.tile { position: relative; isolation: isolate; display: grid; align-content: space-between; gap: 2rem; min-height: 22rem; padding: 1.75rem; color: #fff; overflow: hidden; background: var(--ink); }
.tile > img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(1.5); transition: transform 0.9s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--red); mix-blend-mode: multiply; opacity: 0.85; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,18,20,0.0) 20%, rgba(17,18,20,0.65)); }
.tile:hover > img { transform: scale(1.05); }
.tile h3 { color: #fff; font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem); line-height: 1.3; font-weight: 700; }
.tile .btn { justify-self: start; padding: 0.8rem 1.5rem; }
@media (min-width: 40rem) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .tiles { grid-template-columns: repeat(4, 1fr); } .tile { min-height: 26rem; } }

/* ---------- Proof: red panel + photo panel with carousel ---------- */

.proof { display: grid; gap: 1.25rem; }
.proof-intro { background: var(--red); color: #fff; padding: clamp(2rem, 1.5rem + 2.5vw, 4rem); display: grid; gap: 1.5rem; align-content: center; }
.proof-intro h2 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
.proof-intro p { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); color: var(--on-red); max-width: 38ch; }
.proof-stage { position: relative; isolation: isolate; color: #fff; min-height: 30rem; padding: clamp(1.75rem, 1.25rem + 2vw, 3.5rem); display: grid; align-content: space-between; gap: 2rem; overflow: hidden; background: var(--ink); }
.proof-stage > img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(1.9); }
.proof-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--red); mix-blend-mode: multiply; opacity: 0.85; }
.proof-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,18,20,0.25), rgba(17,18,20,0.7)); }
.slide blockquote { font-size: clamp(1.3rem, 1.05rem + 1vw, 2rem); line-height: 1.35; font-weight: 500; letter-spacing: -0.012em; text-wrap: pretty; }
.slide figcaption { margin-top: 1.25rem; font-style: italic; color: var(--on-red); }
.proof-stage { touch-action: pan-y; }
.proof-controls { display: flex; justify-content: center; align-items: center; }
/* The position marker is three short lines; the current one is longer and solid. */
.proof-dots { display: flex; }
.proof-dots button { width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; position: relative; cursor: pointer; }
.proof-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 2.25rem; height: 2px; translate: -50% -50%; scale: 0.556 1; background: rgba(255,255,255,0.45); transition: scale 0.35s var(--ease), background-color 0.35s var(--ease); }
.proof-dots button:hover::before { background: rgba(255,255,255,0.8); }
.proof-dots button[aria-current="true"]::before { scale: 1 1; background: #fff; }

/* Slides sit in one grid cell, so the card is always as tall as the longest quote and never resizes.
   Changing slide is a plain cross-fade. Without JavaScript the quotes simply stack. */
.slide + .slide { margin-top: 2rem; }
.js .slides { display: grid; }
.js .slide { grid-area: 1 / 1; margin-top: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0s linear 0.7s; }
.js .slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.7s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .js .slide, .js .slide.is-active { transition: none; } }
@media (min-width: 62rem) { .proof { grid-template-columns: 5fr 6fr; } }

/* ---------- Assessment: photographic background ---------- */

.section--dark.has-photo { position: relative; isolation: isolate; overflow: hidden; }
.section--dark.has-photo > .photo-bg { position: absolute; inset: 0; z-index: -2; }
.section--dark.has-photo > .photo-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(1.35); }
.section--dark.has-photo > .photo-bg::after { content: ""; position: absolute; inset: 0; background: var(--red); mix-blend-mode: multiply; opacity: 0.85; }
/* On phones the section's top padding is shorter than the sticky header, so a jump to the form needs a margin. */
@media (max-width: 40rem) { #assessment { scroll-margin-top: 1.5rem; } #msp { scroll-margin-top: 4.75rem; } }
/* 0.78 on the right keeps the fields' resting underline at 3:1 over the light partitions in the office photo. */
.section--dark.has-photo .body, .section--dark.has-photo .lede { color: var(--on-dark-soft); }
@media (max-width: 61.99rem) { .section--dark.has-photo::before { background: rgba(17, 18, 20, 0.94); } }
.section--dark.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17,18,20,0.92), rgba(17,18,20,0.78)); }

/* ---------- Assessment form ---------- */

.assess { display: grid; gap: 3rem; }
.assess-copy { display: grid; gap: 1.25rem; align-content: start; }
.assess-copy h2 { max-width: 16ch; }
@media (min-width: 62rem) { .assess { grid-template-columns: 5fr 6fr; column-gap: 5rem; } }

.form { display: grid; gap: 1.5rem; }
.form .row { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.9375rem; font-weight: 500; }
.field input, .field textarea {
  font: inherit; color: inherit; width: 100%;
  background: transparent; border: 0; border-bottom: 1px solid var(--field-line); border-radius: 0;
  padding: 0.7rem 0; caret-color: var(--red-on-dark);
  transition: border-color 0.2s var(--ease);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--on-dark); }
/* The form always sits on a dark photo, where Signal Red measured 2.2-3.0:1, so focus draws in Red on Dark. */
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red-on-dark); box-shadow: 0 1px 0 var(--red-on-dark); }
.field input:user-invalid { border-color: var(--error-light-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
/* Browsers paint autofilled fields with their own light background and dark text. Keep the field transparent and the text in the form's own colour.
   The long background transition delays the browser's fill so it never shows; the text colour is forced separately. */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill,
.field select:-webkit-autofill {
  -webkit-text-fill-color: currentColor;
  caret-color: var(--red-on-dark);
  transition: background-color 600000s 0s, color 600000s 0s, border-color 0.2s var(--ease);
}
.field input:autofill, .field textarea:autofill, .field select:autofill {
  background-color: transparent;
  color: inherit;
  filter: none;
}
.err { color: var(--error-light); font-size: 0.875rem; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error-light-2); }
.form-status { font-size: 0.9375rem; min-height: 1.5em; }
.form-status[data-state="ok"] { color: #fff; }

/* ---------- Footer ---------- */

.site-footer { background: var(--band); color: var(--ink); border-top: 1px solid var(--rule); padding-top: 4rem; font-size: 0.9375rem; }
.site-footer .cols { display: grid; gap: 2.5rem; }
.site-footer h3 { color: var(--red); font-size: 1.0625rem; margin: 1.5rem 0 0.5rem; }
.site-footer h3:first-child { margin-top: 0; }
.site-footer p { color: var(--ink-2); line-height: 1.7; }
.site-footer a { display: inline-block; padding-block: 0.65rem; text-decoration: none; transition: color 0.2s var(--ease); }
.footer-contact a { color: var(--ink-2); }
.footer-contact a:hover { color: var(--red); text-decoration: underline; }
.footer-nav a { color: var(--red); font-weight: 700; font-size: 1.0625rem; }
.footer-nav a:hover { color: var(--red-deep); }
.footer-logo { padding: 0 !important; }
.footer-logo img { width: 13.75rem; max-width: 100%; height: auto; }
.social { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; background: var(--red); color: #fff; }
.social a:hover { background: var(--red-deep); color: #fff; }
.social svg { width: 1.35rem; height: 1.35rem; }
.footer-badge { display: block; width: 7.5rem; height: auto; margin-top: 1.25rem; }
.footer-bar { margin-top: 3rem; background: var(--ink); color: var(--on-dark-muted); font-size: 0.8125rem; }
.footer-bar .wrap { display: flex; flex-wrap: wrap; gap: 0 2rem; justify-content: space-between; align-items: center; }
.footer-bar span { padding-block: 0.85rem; }
@media (min-width: 62rem) { .site-footer .cols { grid-template-columns: 4fr 4fr 4fr; column-gap: 4rem; } }

/* ---------- Services: interior hero, intro panel, category rows ---------- */

/* Interior-page hero: the homepage treatment, shorter, headline only. */
.hero--page { min-height: clamp(22rem, 56vh, 34rem); padding-bottom: clamp(5.5rem, 4rem + 5vw, 8.5rem); }
.hero--page .hero-copy { grid-template-columns: 1fr; }
.hero--page .hero-copy h1 { font-size: clamp(2.25rem, 1.15rem + 4.2vw, 4.5rem); }
.hero--page .hero-bg img { object-position: 60% 45%; }
/* The overlay stays dark under the headline and opens up beside it so the analyst photo reads.
   Phones run the headline across the full width, so there it lightens towards the top instead. */
.hero--page::before { background: linear-gradient(180deg, rgba(17,18,20,0.45) 0%, rgba(17,18,20,0.85) 50%, rgba(17,18,20,0.9) 100%); }
@media (min-width: 62rem) {
  .hero--page .hero-copy h1 { max-width: 12em; }
  .hero--page::before { background: linear-gradient(90deg, rgba(17,18,20,0.9) 0%, rgba(17,18,20,0.85) 55%, rgba(17,18,20,0.3) 100%); }
}

/* The page intro sits in a red panel overlapping the hero, as in the Canva layout. */
.page-intro { position: relative; z-index: 1; margin-top: calc(-1 * clamp(3rem, 2rem + 4vw, 5.5rem)); background: var(--red); color: #fff; padding: 2.25rem; padding: clamp(1.75rem, 1.25rem + 2.5vw, 3.5rem); }
.page-intro p { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.55; font-weight: 500; max-width: 58ch; }

/* Each category: a red-toned photo panel (sticky on desktop) beside ruled service rows. */
/* Categories alternate white and Paper Band, so each one closes with its own padding. */
.svc-cat { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); scroll-margin-top: 4.5rem; }
.section--band .service:hover, .section--band .service:target { background: var(--ground); --row-bg: var(--ground); }
/* Grey bands carry the shared circuit drawing (.has-circuit) behind the rows. Row text gets a halo in the row's own colour so the
   traces stop short of the letters, and the View cue gets a solid backing; neither shows anywhere a trace doesn't pass. */
.section--band .service { --row-bg: var(--band); }
.section--band .service :is(h3, p) { text-shadow: 0 0 2px var(--row-bg), 0 0 2px var(--row-bg), 0 0 3px var(--row-bg), 0 0 4px var(--row-bg); }
.section--band .service .go { background: var(--row-bg); }
.svc-cat > .wrap { display: grid; gap: 1.5rem; }
.svc-cat-media { display: grid; align-content: end; min-height: 12rem; padding: 1.5rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); background: var(--ink); }
.svc-cat-media h2 { color: #fff; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
/* The cue sits beside the name at every width, so phone rows don't spend a line on it. */
.services--stack .service { padding-block: 1.5rem; scroll-margin-top: 6rem; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.25rem; row-gap: 0.5rem; align-items: baseline; }
.services--stack .service h3 { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem); text-wrap: balance; }
.services--stack .service h3 { grid-column: 1; }
.services--stack .service p { grid-column: 1 / -1; text-wrap: pretty; }
.services--stack .service .go { grid-column: 2; grid-row: 1; }
.service:target { background: var(--band); }
/* Training: Canva names the courses but has no page per course, so they run as a plain ruled list with one link. */
.course-list li { padding-block: 1.1rem; border-bottom: 1px solid var(--rule); font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; text-wrap: balance; }
.course-list + .go { display: inline-flex; gap: 0.6rem; align-items: center; min-height: 2.75rem; margin-top: 0.5rem; font-weight: 500; text-decoration: none; transition: color 0.2s var(--ease); }
.course-list + .go svg { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.course-list + .go:hover { color: var(--red); }
.course-list + .go:hover svg { transform: translateX(4px); }
@media (min-width: 62rem) {
  .svc-cat > .wrap { grid-template-columns: 4fr 7fr; column-gap: clamp(2.5rem, 4vw, 4.5rem); align-items: start; }
  .svc-cat-media { position: sticky; top: 6.5rem; min-height: 26rem; }  .services--stack .service { column-gap: 2rem; }
  .services--stack .service p { grid-column: 1; }
}

/* ---------- Partners, Resources, About: shared interior components ---------- */

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field select { font: inherit; color: inherit; width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--field-line); border-radius: 0; padding: 0.7rem 0; transition: border-color 0.2s var(--ease); }
.field select option { color: var(--ink); }
.field select:focus { outline: none; border-color: var(--red); box-shadow: 0 1px 0 var(--red); }
.field select[aria-invalid="true"] { border-color: var(--error-light-2); }
.checks { border: 0; padding: 0; margin: 0; display: grid; gap: 0.35rem 1.5rem; }
.checks legend { padding: 0; margin-bottom: 0.5rem; font-size: 0.9375rem; font-weight: 500; }
.checks label { display: flex; gap: 0.75rem; align-items: center; min-height: 2.75rem; color: var(--on-dark); }
.checks input { accent-color: var(--red); width: 1.25rem; height: 1.25rem; margin: 0; }
@media (min-width: 40rem) { .checks { grid-template-columns: 1fr 1fr; } }
.form-status[data-state="error"] { color: var(--error-light); }

/* Section-to-section links inside Resources (Case Studies, Brochures, News and Updates). */
.subnav { border-bottom: 1px solid var(--rule); }
.subnav ul { display: flex; flex-wrap: wrap; gap: 0 2rem; }
.subnav a { display: inline-block; padding: 1rem 0; min-height: 2.75rem; text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--red); }
.subnav a[aria-current="page"] { border-bottom-color: var(--red); }

/* Ruled list of statements: partner pillars, partner resources, credentials. */
.pillars { display: grid; border-top: 1px solid var(--ink); }
.pillars > li { display: grid; gap: 0.6rem; padding-block: 1.75rem; border-bottom: 1px solid var(--rule); min-width: 0; }
.pillars h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem); }
.pillars p { color: var(--ink-2); max-width: 52ch; }
@media (min-width: 62rem) {
  .pillars { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
}

/* Our DNA: accreditation and framework logos on white cards. */
.logo-group { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.logo-group h3 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.logo-grid li { display: grid; grid-template-rows: 1fr auto; gap: 0.6rem; align-items: center; justify-items: center; aspect-ratio: 1; padding: 1.25rem; background: var(--ground); border: 1px solid var(--rule); border-radius: var(--radius-btn); text-align: center; }
.logo-grid img { width: 100%; height: 100%; min-height: 0; max-height: 11rem; object-fit: contain; }
.logo-grid figcaption, .logo-grid .cap { font-size: 0.75rem; line-height: 1.35; color: var(--ink-2); }
.logo-grid .cap b { display: block; color: var(--ink); font-weight: 600; }
.logo-grid .cap .nowrap { white-space: nowrap; }
.logo-grid li.is-license { aspect-ratio: auto; align-items: start; }
.logo-grid li.is-license img { height: 11rem; box-shadow: 0 1px 4px rgba(17, 18, 20, 0.12); }
.logo-grid--sm li { aspect-ratio: 3 / 2; padding: 1.25rem 1.5rem; grid-template-rows: 1fr; }
.logo-grid--sm img { max-height: 5rem; }
@media (min-width: 40rem) { .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } .logo-grid--sm { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Technology partners: wordmark-style names on a dark ground; logos replace the names when supplied. */

/* News and updates. */
.articles { border-top: 1px solid var(--ink); }
.article { display: grid; gap: 1rem; padding-block: 2.25rem; border-bottom: 1px solid var(--rule); }
.article time { color: var(--muted); font-size: 0.9375rem; }
.article h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem); line-height: 1.25; text-wrap: balance; }
.article p { color: var(--ink-2); max-width: var(--measure); }
.article details { max-width: var(--measure); }
.article summary { display: inline-block; min-height: 2.75rem; padding-block: 0.7rem; font-weight: 500; cursor: pointer; list-style: none; }
.article summary::-webkit-details-marker { display: none; }
.article summary::after { content: " +"; }
.article details[open] summary::after { content: " \2212"; }
.article summary:hover { color: var(--red); }
.article details p + p { margin-top: 1rem; }
@media (min-width: 62rem) {
  .article { grid-template-columns: 3fr 8fr; column-gap: 4rem; }
}

/* Leadership. */
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem 2rem; }
.people + .people { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.people > li { display: grid; justify-items: center; align-content: start; gap: 0.35rem; width: 14rem; text-align: center; min-width: 0; }
.people--lead > li { width: 18rem; }
.people h3 { font-size: 1.25rem; margin-top: 0.9rem; }
.people p { color: var(--muted); text-wrap: balance; }
.portrait { width: 10.5rem; aspect-ratio: 1; padding: 0.35rem; border: 2px solid var(--red); border-radius: 50%; }
.people--lead .portrait { width: 13rem; }
.portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--band); }
.mv { display: grid; gap: 2rem; }
.mv h3 { color: var(--red); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.mv p { color: var(--ink-2); max-width: 46ch; }
@media (min-width: 48rem) { .mv { grid-template-columns: 1fr 1fr; column-gap: 4rem; } }

.two-col { display: grid; gap: 2rem; align-items: center; }
.two-col figure img { width: 100%; height: auto; }
.two-col figcaption { margin-top: 0.6rem; }
@media (min-width: 62rem) { .two-col { grid-template-columns: 6fr 5fr; column-gap: 5rem; } }

/* Photographs that are already red-toned (the partners handshake) skip the greyscale and red multiply the other heroes use. */
.hero--native .hero-bg img { filter: brightness(1.05) contrast(1.05); }
.hero--native .hero-bg::after { display: none; }
.hero--native::before { background: linear-gradient(180deg, rgba(17,18,20,0.35) 0%, rgba(17,18,20,0.6) 100%); }
@media (min-width: 62rem) { .hero--native::before { background: linear-gradient(90deg, rgba(17,18,20,0.75) 0%, rgba(17,18,20,0.45) 55%, rgba(17,18,20,0.1) 100%); } }

/* ---------- Brand logo, utilities ---------- */

.brand--logo { padding-block: 0.4rem; min-width: 0; min-height: 2.75rem; flex: 0 1 auto; display: inline-flex; align-items: center; }
.brand--logo img { display: block; width: 8.75rem; max-width: 100%; height: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.t-light { color: var(--red-light); }

/* ---------- Partners: icon pillars, logo rows, evidence portrait, partner resources ---------- */

.pillars--icons > li { grid-template-columns: 4.5rem 1fr; column-gap: 1.5rem; align-items: start; }
.pillars--icons > li > img { width: 4.5rem; height: 4.5rem; object-fit: contain; }
.pillars--icons > li > div { display: grid; gap: 0.6rem; }

.partner-rows { border-top: 1px solid var(--ink); }
.partner-row { display: grid; gap: 1.25rem; align-items: center; padding-block: 2rem; border-bottom: 1px solid var(--rule); min-width: 0; }
.partner-row .logo { display: flex; align-items: center; min-height: 5rem; }
.partner-row .logo img { width: auto; max-width: min(100%, 13rem); max-height: 4.25rem; object-fit: contain; }
.partner-row .value { font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem); line-height: 1.5; color: var(--ink); max-width: 56ch; text-wrap: pretty; }
.partner-row .caps { margin-top: 0.7rem; font-style: italic; font-size: 0.9375rem; color: var(--red); max-width: 64ch; }
@media (min-width: 62rem) { .partner-row { grid-template-columns: 3fr 8fr; column-gap: 4rem; } }

.evidence { display: grid; gap: 2.5rem; align-items: center; }
.ring { width: min(100%, 17rem); aspect-ratio: 1; padding: 0.7rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0.55rem var(--red-deep); }
.ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.evidence blockquote { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem); line-height: 1.38; font-weight: 500; letter-spacing: -0.015em; text-wrap: pretty; }
.evidence figcaption { margin-top: 1.25rem; color: var(--ink-2); }
.evidence figcaption b { display: block; font-size: 1.125rem; color: var(--ink); }
@media (min-width: 62rem) { .evidence { grid-template-columns: 4fr 7fr; column-gap: 5rem; } .ring { width: min(100%, 20rem); } }

.resources-head { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }
.resources-head .wrap { display: grid; gap: 1.25rem; }
.resources-head h2 { color: #fff; max-width: 16ch; }
.resources-head p { max-width: 60ch; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); }
.resource-rows { display: grid; gap: 2px; margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.resource-rows > li { background: var(--red); color: #fff; padding: clamp(1.25rem, 1rem + 1vw, 1.9rem) clamp(1.25rem, 1rem + 1.5vw, 2.25rem); display: grid; gap: 0.4rem; min-width: 0; }
.resource-rows h3 { color: #fff; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.5rem); }
.resource-rows p { color: var(--on-red); max-width: 70ch; }
@media (min-width: 62rem) { .resource-rows { grid-template-columns: 1fr 1fr; } .resource-rows > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.closing-line { margin-top: 2.5rem; font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.6rem); font-weight: 600; color: var(--red); max-width: 40ch; }

/* ---------- Service detail pages ---------- */

.hero--page .hero-copy h1 { grid-column: 1; grid-row: auto; line-height: 1.12; }
.hero--page .hero-copy > :not(h1) { grid-column: 1; }
.crumb { color: #fff; font-weight: 600; font-size: 1.0625rem; }
.crumb a { color: #fff; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-block: 0.7rem; display: inline-block; }
.crumb a:hover { color: var(--red-on-dark); }
.center-title { text-align: center; text-wrap: balance; max-width: 22ch; margin: 0 auto clamp(2rem, 1.5rem + 2vw, 3.5rem); max-width: 28ch; }
.svc-what { display: grid; gap: 2rem; align-items: center; max-width: 64rem; margin-inline: auto; }
.svc-icon img { width: min(100%, 15rem); height: auto; }
.svc-what .body + .body { margin-top: 1rem; }
.svc-what .body { max-width: 62ch; }
@media (min-width: 62rem) { .svc-what { grid-template-columns: 4fr 8fr; column-gap: 4rem; } .svc-what--solo { grid-template-columns: 1fr; } }

.svc-expect { max-width: 64rem; margin-inline: auto; display: grid; gap: 1.25rem; }
.svc-expect h2 { text-align: center; margin-bottom: 1rem; }
.svc-expect .body { max-width: none; }

.chips { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); margin-block: 0.5rem 1rem; }
.chips li { display: flex; align-items: center; gap: 0.7rem; padding: 0.95rem 1.1rem; background: var(--ground); border: 1px solid var(--rule); font-size: 0.9375rem; font-weight: 600; line-height: 1.35; min-width: 0; }
.chips svg { flex: none; width: 1.6rem; height: 1.6rem; color: var(--red); }

.steps-title { margin-top: 1rem; font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem); }
.steps { counter-reset: step; display: grid; gap: 0.75rem 1rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); margin-block: 0.5rem 1.25rem; }
.steps li { counter-increment: step; display: grid; gap: 0.6rem; justify-items: start; align-content: start; font-weight: 600; font-size: 1rem; line-height: 1.35; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 2px solid var(--red); border-radius: 50%; color: var(--ink); font-size: 1rem; letter-spacing: 0; }

.defs { display: grid; gap: 1.1rem; }
.defs li { color: var(--ink-2); line-height: 1.7; }
.defs b { color: var(--red); font-weight: 700; }
.bullets { display: grid; gap: 0.5rem; padding-left: 1.25rem; list-style: disc; color: var(--ink-2); }
.bullets li::marker { color: var(--red); }

.why { display: grid; border-top: 1px solid var(--ink); }
.why > li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem; align-items: start; padding-block: 1.75rem; border-bottom: 1px solid var(--rule); min-width: 0; }
.why-icon { width: 3.5rem; height: 3.5rem; color: var(--red); }
.why h3 { font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem); margin-bottom: 0.4rem; }
.why p { color: var(--ink-2); max-width: 46ch; }
@media (min-width: 62rem) { .why { grid-template-columns: 1fr 1fr; column-gap: 4rem; } }

.related { background: var(--band); border-top: 1px solid var(--rule); padding-block: 2.5rem; }
.related h2 { font-size: clamp(1.625rem, 1.4rem + 0.9vw, 1.875rem); margin-bottom: 0.75rem; }
.related ul { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.related a { display: inline-block; padding-block: 0.75rem; text-decoration: none; font-weight: 500; }
.related a:hover { color: var(--red); text-decoration: underline; }
.related .all { color: var(--red); font-weight: 700; }

/* ---------- Compact form: the whole White Label form fits one desktop viewport ---------- */

.section--fit { padding-block: clamp(1.75rem, 3.5vh, 2.75rem); }
@media (min-width: 62rem) {
  .section--fit .assess { grid-template-columns: 4fr 8fr; align-items: center; column-gap: 4rem; }
  .form--compact { gap: 1rem; }
  .form--compact .row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem 1.25rem; }
  .form--compact .row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.25rem; }
  .form--compact .row--vol { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0.9rem 1.25rem; align-items: start; }
  .form--compact .field { gap: 0.2rem; }
  .form--compact .field input, .form--compact .field select { padding-block: 0.45rem; min-height: 2.75rem; }
  .form--compact textarea { min-height: 3.25rem; height: 3.25rem; padding-block: 0.45rem; }
  .form--compact .checks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 0.75rem; }
  .form--compact .checks legend { margin-bottom: 0; }
  .form--compact .form-status { min-height: 0; }
}
/* On desktop the band fills the viewport below the sticky header, so jumping to it shows the whole form and nothing of the section above. */
@media (min-width: 62rem) {
  #assessment.section--fit, #msp.section--fit { min-height: calc(100vh - 4.5625rem); min-height: calc(100svh - 4.5625rem); display: flex; align-items: center; scroll-margin-top: 4.5625rem; }
  #assessment.section--fit > .wrap, #msp.section--fit > .wrap { width: 100%; }
}


/* ---------- Contact: offices ---------- */

.offices { display: grid; gap: 2.5rem; }
.office { display: grid; gap: 0.6rem; align-content: start; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.office h3 { color: var(--red); font-size: 1.375rem; }
.office address { font-style: normal; color: var(--ink-2); line-height: 1.7; max-width: 34ch; }
.office .btn { justify-self: start; margin-top: 0.75rem; }
@media (min-width: 48rem) { .offices { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
@media (min-width: 62rem) { .offices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Regional pages ---------- */

.hero--long .hero-copy h1 { font-size: clamp(1.9rem, 1.1rem + 2.7vw, 3.5rem); max-width: 26em; }
.region-case { max-width: 62rem; margin-inline: auto; display: grid; gap: 1.5rem; }
.region-case h2 { text-wrap: balance; max-width: 30ch; }
@media (min-width: 62rem) { .region-case { grid-template-columns: 4fr 7fr; column-gap: 4rem; align-items: start; max-width: none; } .region-case h2 { position: sticky; top: 6rem; } }
.region-case .defs { max-width: 64ch; }
.pillars--three { grid-template-columns: 1fr; }
@media (min-width: 62rem) { .pillars--three { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3rem; } }
.pillars--three > li { align-content: start; }
.bridge { display: grid; gap: 2rem; margin-bottom: 2rem; }
.bridge h3 { font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem); margin-bottom: 0.5rem; }
.bridge p { color: var(--ink-2); max-width: 46ch; }
@media (min-width: 48rem) { .bridge { grid-template-columns: 1fr 1fr; column-gap: 4rem; } }
.facts { display: grid; border-top: 1px solid var(--ink); }
.facts > li { display: grid; gap: 0.5rem 2rem; padding-block: 1.6rem; border-bottom: 1px solid var(--rule); align-items: baseline; }
.fact-fig { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 700; letter-spacing: -0.02em; color: var(--red); line-height: 1.1; }
.facts h3 { font-size: 1.25rem; }
.facts p { color: var(--ink-2); max-width: 54ch; }
@media (min-width: 62rem) { .facts > li { grid-template-columns: 4fr 8fr; } }

/* ---------- Spacing utilities (replace inline styles) ---------- */

.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2rem; }
.mb-md { margin-bottom: 1.25rem; }
.pad-after { padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.flush-top { padding-top: 0; }
.noscript-note { grid-column: 1 / -1; }
.page-intro strong { color: #fff; }

/* ---------- Motion: one authored moment (hero) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: drift 40s var(--ease) both; transform-origin: 62% 45%; }
  .hero-copy h1 .line { animation: reveal 1.1s var(--ease) both; }
  .hero-copy h1 .line:nth-child(2) { animation-delay: 0.14s; }
  .hero-copy > :not(h1) { animation: rise 0.9s var(--ease) both; animation-delay: 0.35s; }
  .hero-copy > .lede { animation-delay: 0.35s; }
  .hero-copy > .hero-actions { animation-delay: 0.47s; }
  .hero-copy > .hero-note { animation-delay: 0.55s; }
}
@keyframes reveal { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(0.35em); } to { opacity: 1; clip-path: inset(0 0 -20% 0); transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07); } }

/* ---------- Scrollbar ---------- */
html { scrollbar-color: var(--placeholder) var(--band); }

/* ---------- Hardening: contrast modes, print ---------- */
@media (forced-colors: active) {
  .btn, .nav .nav-cta, .nav-book { border: 1px solid ButtonText; }
  .hero::before,   .hero { background: Canvas; color: CanvasText; }
  .hero-copy h1, .hero .lede, .hero .lede strong, .hero-note, .hero .link { color: CanvasText; }
}
@media print {
  .notice, .site-header, .hero-bg, .hero::before, .nav-book, .nav-toggle { display: none; }
  .hero, .section--dark, .site-footer, .standards, .footer-bar { background: #fff; color: #000; min-height: 0; }
  .hero-copy h1, .hero .lede, .hero-note { color: #000; }
}

/* 404 */
.hero--404 { min-height: calc(100vh - 4.5625rem); min-height: calc(100svh - 4.5625rem); }
.hero--404 .lede { max-width: 40ch; }
.lost-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: 0.5rem; }
.lost-links a { display: inline-block; padding-block: 0.75rem; color: #fff; font-weight: 500; text-underline-offset: 0.25em; }
.lost-links a:hover { color: var(--red-light); }

