:root {
  color-scheme: light dark;
  --navy: #09357a;
  --navy-deep: #071831;
  --navy-ink: #0a1b38;
  --teal: #007f71;
  --mint: #00bc9d;
  --gold: #0d8a8a; /* brand has no gold — legacy token mapped to accent teal */
  --cream: #fbf7ee;
  --white: #ffffff;
  --ink: #0f1f3c;
  --muted: #62708a;
  --line: rgba(9, 53, 122, 0.12);
  --line-strong: rgba(9, 53, 122, 0.22);
  --bg: #f3f5fb;
  --bg-soft: #eaf1fb;
  --surface: rgba(253, 250, 244, 0.9);
  --surface-strong: rgba(251, 247, 238, 0.94);
  --surface-quiet: rgba(251, 247, 238, 0.76);
  --surface-muted: rgba(253, 250, 244, 0.5);
  --surface-dark: rgba(9, 25, 52, 0.92);
  /* Light-mode named tokens (fully-light theme). Dark mode overrides --ink/--muted
     above; these are only consumed by the html:not(.dark) light-mode layer. */
  --teal-ink: #006257;             /* AA-safe teal for small text/labels on light */
  --lm-card: #ffffff;              /* elevated white card surface (tiles/cards) */
  --lm-slate: #41506a;             /* body copy on light surfaces */
  --lm-shadow: 0 18px 44px rgba(8, 32, 78, 0.08);
  --lm-border: rgba(9, 53, 122, 0.14);
  --band-tint: #eef2fb;            /* soft cool wash for emphasis bands */
  --shadow: 0 12px 32px rgba(8, 32, 78, 0.08);
  --shadow-soft: 0 8px 22px rgba(8, 32, 78, 0.06);
  --shadow-strong: 0 18px 48px rgba(8, 32, 78, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --transition: 220ms ease;
}

html.dark {
  --ink: #f2f7ff;
  --muted: #a7b9d8;
  --line: rgba(158, 197, 255, 0.12);
  --line-strong: rgba(158, 197, 255, 0.2);
  --bg: #05101f;
  --bg-soft: #091a34;
  --surface: rgba(7, 19, 40, 0.78);
  --surface-strong: rgba(10, 27, 58, 0.92);
  --surface-quiet: rgba(13, 31, 63, 0.8);
  --surface-muted: rgba(255, 255, 255, 0.04);
  --surface-dark: rgba(4, 13, 28, 0.94);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 18px 54px rgba(0, 0, 0, 0.24);
  --shadow-strong: 0 40px 140px rgba(0, 0, 0, 0.46);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* iOS Safari landscape text inflation enlarges nowrap text past its boxes —
     the classic phone-only horizontal-overflow trigger. Pin it. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Work Sans", "Avenir Next", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--bg), var(--bg-soft));
  position: relative;
  overflow-x: hidden;
}

/* Horizontal-overflow guard. `clip` (unlike `hidden`) forbids ALL horizontal
   scrolling of the viewport — iOS Safari can still touch-pan a `hidden` body.
   Older engines drop the unsupported `clip` and fall back to the body
   `overflow-x: hidden` above. Fix real offenders at the source; this is the
   backstop, not the fix. */
html,
body {
  overflow-x: clip;
}

body::before,
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -2;
}

body::before {
  background-image:
    linear-gradient(rgba(9, 53, 122, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 53, 122, 0.045) 1px, transparent 1px);
  background-size: 112px 112px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 86%);
  opacity: 0.55;
}

body::after {
  background:
    radial-gradient(circle at 48% 16%, rgba(0, 188, 157, 0.12), transparent 30%),
    radial-gradient(circle at 52% 80%, rgba(9, 53, 122, 0.12), transparent 42%);
  filter: blur(26px);
  z-index: -3;
}

body.page--home {
  background:
    radial-gradient(circle at 12% 10%, rgba(5, 18, 39, 0.9), transparent 24%),
    radial-gradient(circle at 34% 0%, rgba(9, 53, 122, 0.28), transparent 32%),
    linear-gradient(180deg, rgba(4, 15, 33, 0.94) 0, rgba(7, 21, 44, 0.78) 138px, rgba(10, 26, 54, 0.46) 270px, rgba(10, 26, 54, 0) 430px),
    radial-gradient(circle at 84% 10%, rgba(9, 53, 122, 0.18), transparent 26%),
    radial-gradient(circle at 78% 80%, rgba(215, 186, 117, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 16%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}

::selection {
  background: rgba(0, 188, 157, 0.24);
}

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

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 999;
  padding: 8px 18px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

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

.shell {
  width: min(1240px, calc(100vw - 28px));
  margin: 0 auto;
}

.scroll-indicator {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--mint), var(--gold));
  transform-origin: left center;
  transform: scaleX(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 10px 0 8px;
}

.nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(9, 53, 122, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(8, 32, 78, 0.12);
}

html.dark .nav-card {
  border-color: rgba(158, 197, 255, 0.18);
  background: #071831;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.site-header.is-scrolled {
  padding: 8px 0;
}

.site-header.is-scrolled .nav-card {
  box-shadow: 0 26px 64px rgba(8, 32, 78, 0.16);
  background: rgba(255, 255, 255, 0.98);
}

html.dark .site-header.is-scrolled .nav-card {
  background: #061427;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-logo-box {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(7, 28, 61, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(160deg, rgba(6, 19, 41, 0.96), rgba(7, 27, 58, 0.92));
  box-shadow: 0 14px 34px rgba(6, 20, 42, 0.16);
  overflow: hidden;
}

.brand-logo-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(0, 188, 157, 0.16), transparent 20%);
  pointer-events: none;
}

.brand-logo-box--header {
  width: 76px;
  height: 56px;
  padding: 6px;
  border-radius: 10px;
}

.brand-logo-box--footer {
  width: 148px;
  min-width: 148px;
  height: 106px;
  padding: 14px;
}

.brand-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.22));
}

.brand-logo--header {
  transform: scale(0.98);
}

.brand-logo--footer {
  transform: none;
}

/* ── Light mode logo box ─────────────────────────────────────────────────────
   JS in setTheme() swaps the img src between mdbillinglogo.png (dark mode)
   and mdbillinglogo-light.png (light mode).                              */
html:not(.dark) .brand-logo-box {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(9, 53, 122, 0.12);
  box-shadow: 0 8px 24px rgba(9, 53, 122, 0.10);
}

html:not(.dark) .brand-logo-box::before {
  display: none;
}

html:not(.dark) .brand-logo {
  filter: none;
}

.brand-tagline {
  min-width: 0;
  max-width: 10rem;
}

.brand-tagline span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

html.dark .brand-tagline span {
  color: rgba(232, 241, 255, 0.84);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 14px;
}

.nav-link,
.drawer-link,
.drawer-quick-link,
.footer-column a,
.footer-bottom__links a {
  color: var(--muted);
  transition: color var(--transition), transform var(--transition);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
}

html.dark .nav-link,
html.dark .drawer-link,
html.dark .drawer-quick-link {
  color: rgba(236, 244, 255, 0.88);
}

.nav-link:hover,
.nav-link.is-active,
.drawer-link:hover,
.drawer-quick-link:hover,
.drawer-quick-link.is-active,
.footer-column a:hover,
.footer-bottom__links a:hover {
  color: var(--teal);
}

html.dark .nav-link:hover,
html.dark .nav-link.is-active,
html.dark .drawer-link:hover,
html.dark .drawer-quick-link:hover,
html.dark .drawer-quick-link.is-active,
html.dark .footer-column a:hover,
html.dark .footer-bottom__links a:hover {
  color: var(--mint);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.button {
  border: 0;
  border-radius: 999px;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(9, 53, 122, 0.12);
  background: #ffffff;
  color: var(--ink);
}

html.dark .icon-button {
  border-color: rgba(158, 197, 255, 0.18);
  background: #0a1b38;
  color: rgba(242, 247, 255, 0.94);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.button:hover,
.icon-button:hover,
.story-card:hover,
.process-tab:hover,
.contact-card:hover,
.contact-mini-card:hover,
.service-pill:hover {
  transform: translateY(-2px);
}

.button[disabled] {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.button:focus-visible,
.icon-button:focus-visible,
.nav-link:focus-visible,
.drawer-link:focus-visible,
.drawer-quick-link:focus-visible,
.faq-button:focus-visible,
.process-tab:focus-visible {
  outline: 2px solid rgba(0, 188, 157, 0.65);
  outline-offset: 3px;
}

.button--primary {
  color: var(--white);
  /* Solid navy — white text maintains ≥ 6:1 contrast (WCAG AA) */
  background: var(--navy);
  box-shadow: 0 6px 18px rgba(9, 53, 122, 0.22);
}

.button--secondary {
  color: var(--ink);
  border: 1px solid rgba(0, 127, 113, 0.22);
  background: rgba(255, 255, 255, 0.66);
}

html.dark .button--secondary {
  color: var(--navy-deep);
  border-color: rgba(215, 186, 117, 0.24);
  background: rgba(251, 247, 238, 0.96);
}

.button--ghost {
  color: var(--ink);
  border: 1px solid rgba(9, 53, 122, 0.12);
  background: #ffffff;
}

html.dark .button--ghost {
  color: rgba(242, 247, 255, 0.94);
  border-color: rgba(158, 197, 255, 0.18);
  background: #0a1b38;
}

.button--nav {
  display: none;
}

.button--nav-cta {
  display: inline-flex;
  font-size: 0.78rem;
  min-height: 40px;
  padding: 9px 13px;
  min-width: 0;
}

.drawer-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 6px 0;
}

.drawer-quick-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(9, 53, 122, 0.12);
  background: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
}

html.dark .drawer-quick-link {
  color: rgba(236, 244, 255, 0.9);
  border-color: rgba(158, 197, 255, 0.16);
  background: #0a1b38;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

html.dark .drawer-quick-link.is-active {
  color: var(--mint);
  border-color: rgba(0, 188, 157, 0.28);
  background: #0d2847;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.page-map-drawer {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(9, 53, 122, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 54px rgba(8, 32, 78, 0.14);
  display: grid;
  gap: 18px;
}

html.dark .page-map-drawer {
  border-color: rgba(158, 197, 255, 0.16);
  background: #071831;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

.drawer-column h3,
.footer-column h3 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

html.dark .drawer-column h3,
html.dark .footer-column h3 {
  color: var(--mint);
}

.drawer-column {
  display: grid;
  gap: 10px;
}

.drawer-link {
  font-size: 0.96rem;
  font-weight: 600;
}

.site-main {
  position: relative;
  padding-bottom: 72px;
}

.hero {
  padding: 26px 0 22px;
}

.hero__grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.hero__content,
.hero__visual {
  min-width: 0;
}
.hero__title {
  margin: 18px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.85rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero__copy {
  margin: 18px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

html.dark .trust-chip {
  background: rgba(255, 255, 255, 0.04);
}

.page-hero__frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 24px;
  border: 1px solid rgba(118, 154, 211, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(4, 14, 31, 0.97), rgba(6, 21, 45, 0.98));
  box-shadow: 0 18px 48px rgba(1, 8, 22, 0.24);
}

html.dark .page-hero__frame {
  border-color: rgba(158, 197, 255, 0.14);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 76% 20%, rgba(0, 188, 157, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(4, 14, 31, 0.98), rgba(6, 21, 45, 1));
}

.page-hero__frame::before,
.page-hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero__frame::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(3, 11, 24, 0.8) 0%, rgba(3, 11, 24, 0.62) 34%, rgba(3, 11, 24, 0.26) 60%, rgba(3, 11, 24, 0.46) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%);
}

.page-hero__frame::after {
  z-index: 4;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.14), transparent 20%),
    radial-gradient(circle at 74% 24%, rgba(0, 188, 157, 0.16), transparent 20%),
    radial-gradient(circle at 78% 74%, rgba(215, 186, 117, 0.08), transparent 20%);
  mix-blend-mode: screen;
}

.page-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__flow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
  isolation: isolate;
}

.page-hero__flow::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 64%, rgba(3, 11, 24, 0.52), transparent 24%),
    linear-gradient(90deg, rgba(3, 11, 24, 0.3), rgba(3, 11, 24, 0.04) 36%, transparent 62%);
  pointer-events: none;
}

.page-hero__flow-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.88;
  mix-blend-mode: screen;
}

.page-hero__backdrop::before,
.page-hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero__backdrop::before {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3, 11, 24, 0.92) 0%, rgba(3, 11, 24, 0.72) 28%, rgba(3, 11, 24, 0.24) 62%, rgba(3, 11, 24, 0.58) 100%),
    linear-gradient(180deg, rgba(3, 11, 24, 0.06), rgba(3, 11, 24, 0.22));
}

.page-hero__backdrop::after {
  z-index: 4;
  background-image:
    linear-gradient(rgba(176, 214, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 214, 255, 0.04) 1px, transparent 1px);
  background-size: 104px 104px;
  mask-image: radial-gradient(circle at 70% 42%, rgba(0, 0, 0, 0.92), transparent 88%);
}

.page-hero__wave-image {
  position: absolute;
  inset: -4%;
  width: 108%;
  max-width: none; /* the global img{max-width:100%} cap defeated the -4% overscan,
                      leaving a bare ~4%-wide strip along the frame's right edge
                      (invisible on the dark theme, a white streak on the light one)
                      and letting heroDrift expose the image edge mid-animation. */
  height: 108%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.08) contrast(1.08);
  animation: heroDrift 40s ease-in-out infinite;
}

html.dark .page-hero__wave-image {
  opacity: 0.58;
}

.page-hero__grid {
  position: relative;
  z-index: 6;
}

.page-hero__content,
.page-hero__visual {
  position: relative;
  z-index: 6;
}
.page-hero .hero__title {
  color: #f3f8ff;
  font-size: clamp(2.45rem, 4.25vw, 4.15rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
  max-width: 12ch;
}

.page-hero__copy {
  max-width: 39rem;
}

.page-hero .hero__copy {
  color: rgba(233, 242, 255, 0.8);
}



.page-hero__actions {
  margin-top: 32px;
}

/* Match the home hero's secondary button: opaque deep-teal fill so the hero's
   particle animation can't bleed through and wash out the label (translucent
   glass was hard to read). The .hero.page-hero compound (3 classes) outranks
   the global html.dark / html:not(.dark) .button--secondary !important rules. */
.hero.page-hero .button--secondary {
  color: #f4f9ff !important;
  border-color: hsla(178, 55%, 58%, 0.55) !important;
  background: linear-gradient(135deg, hsl(180 52% 24%), hsl(184 60% 17%)) !important;
  box-shadow: 0 10px 26px hsla(184, 60%, 12%, 0.45),
    inset 0 1px 0 hsla(178, 60%, 70%, 0.18) !important;
}

.hero.page-hero .button--secondary:hover {
  background: linear-gradient(135deg, hsl(180 54% 30%), hsl(184 60% 22%)) !important;
  border-color: var(--mdh-teal-soft) !important;
}

.page-hero__trust {
  margin-top: 24px;
}

.page-hero .trust-chip {
  border-color: rgba(220, 234, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%);
  color: rgba(243, 249, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(2, 10, 24, 0.16);
}

.page-hero__visual {
  display: flex;
  align-items: center;
}

.hero-brand-scene {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: end;
  width: 100%;
}

.hero-brand-scene__glow {
  display: none;
}

.hero-brand-scene__pills {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: flex-start;
  width: 100%;
}

.hero-brand-scene__pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(220, 234, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(243, 249, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.18;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-brand-scene__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  width: min(100%, 720px);
  margin-left: auto;
  padding: 44px 38px;
  border: 1px solid rgba(220, 234, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(7, 19, 40, 0.95);
  box-shadow: 0 12px 32px rgba(2, 10, 24, 0.18);
}

.hero-brand-scene__card::before,
.hero-brand-scene__card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-brand-scene__card::before {
  display: none;
}

.hero-brand-scene__card::after {
  display: none;
}

.hero-brand-scene__card-sheen {
  display: none;
}

.hero-brand-scene__image-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 0 4px;
}

.hero-brand-scene__image {
  display: block;
  width: min(100%, 470px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.18));
}

.hero-brand-scene--page {
  min-height: clamp(320px, 42vw, 560px);
  padding: 18px 8px 16px;
}

.system-visual {
  display: grid;
  gap: 18px;
}

.system-visual__surface,
.system-visual__sidebar,
.section-panel,
.footer-cta,
.footer-map,
.quote-panel,
.dashboard-board__panel,
.dashboard-board__chart {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--surface), var(--surface-strong));
  box-shadow: var(--shadow-soft);
}

html.dark .system-visual__surface,
html.dark .system-visual__sidebar,
html.dark .section-panel,
html.dark .footer-cta,
html.dark .footer-map,
html.dark .quote-panel,
html.dark .dashboard-board__panel,
html.dark .dashboard-board__chart {
  background: linear-gradient(160deg, rgba(7, 19, 40, 0.88), rgba(9, 26, 57, 0.9));
}

.system-visual__sidebar,
.section-panel,
.footer-cta,
.footer-map,
.quote-panel,
.dashboard-board__panel,
.dashboard-board__chart,
.report-preview__panel,
.report-preview__note {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.system-visual__sidebar > *,
.section-panel > *,
.footer-cta > *,
.footer-map > *,
.quote-panel > *,
.dashboard-board__panel > *,
.dashboard-board__chart > *,
.report-preview__panel > *,
.report-preview__note > * {
  position: relative;
  z-index: 1;
}

.system-visual__sidebar::before,
.section-panel::before,
.footer-cta::before,
.footer-map::before,
.quote-panel::before,
.dashboard-board__panel::before,
.dashboard-board__chart::before,
.report-preview__panel::before,
.report-preview__note::before {
  content: "";
  position: absolute;
  inset: clamp(18px, 3vw, 38px) clamp(-12px, 1vw, 18px) clamp(18px, 3vw, 34px) auto;
  width: clamp(240px, 28vw, 520px);
  background: url("assets/reimbursement-caduceus-mark-light.png") no-repeat center / contain;
  opacity: 0.09;
  filter: saturate(0.9);
  pointer-events: none;
  z-index: 0;
}

html.dark .system-visual__sidebar::before,
html.dark .section-panel::before,
html.dark .footer-cta::before,
html.dark .footer-map::before,
html.dark .quote-panel::before,
html.dark .dashboard-board__panel::before,
html.dark .dashboard-board__chart::before,
html.dark .report-preview__panel::before,
html.dark .report-preview__note::before {
  background-image: url("assets/reimbursement-caduceus-mark.png");
  opacity: 0.085;
}

.system-visual__surface {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background:
    radial-gradient(circle at 16% 16%, rgba(0, 188, 157, 0.18), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(215, 186, 117, 0.16), transparent 16%),
    linear-gradient(160deg, rgba(4, 13, 28, 0.98), rgba(9, 33, 71, 0.94));
  color: #f3f9ff;
  box-shadow: var(--shadow-strong);
}

.system-visual__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%),
    radial-gradient(circle at 52% 58%, rgba(0, 188, 157, 0.12), transparent 28%);
  pointer-events: none;
}

.system-visual__hud {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-pill--gold {
  border-color: rgba(215, 186, 117, 0.32);
  background: rgba(215, 186, 117, 0.12);
  color: var(--gold);
}

.mini-pill--teal {
  border-color: rgba(0, 188, 157, 0.32);
  background: rgba(0, 188, 157, 0.12);
  color: var(--mint);
}

.system-visual__arena {
  position: relative;
  min-height: 420px;
  margin-top: 22px;
}

.system-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.44;
}

.system-lines circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.2;
}

.system-lines path {
  fill: none;
  stroke: rgba(0, 188, 157, 0.5);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 14;
  animation: beam 8s linear infinite;
}

.system-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 184px;
  min-height: 184px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.2), rgba(0, 188, 157, 0.12) 46%, rgba(255, 255, 255, 0.04));
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.system-core span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.system-core strong {
  display: block;
  margin-top: 10px;
  font-size: 1.24rem;
  line-height: 1.18;
}

.system-core small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  line-height: 1.6;
}

.system-node {
  position: absolute;
  width: 128px;
  padding: 12px 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.system-node__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(0, 188, 157, 0.62);
}

.system-node__title {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.system-node__copy {
  margin-top: 6px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.66);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.system-node--1 {
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.system-node--2 {
  top: 78px;
  right: 8px;
}

.system-node--3 {
  right: 0;
  bottom: 100px;
}

.system-node--4 {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.system-node--5 {
  left: 0;
  bottom: 100px;
}

.system-node--6 {
  top: 78px;
  left: 8px;
}

.visual-metric-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.visual-metric,
.metric-tile,
.story-card,
.process-tab,
.contact-card,
.contact-mini-card,
.form-field {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

html.dark .visual-metric,
html.dark .metric-tile,
html.dark .story-card,
html.dark .process-tab,
html.dark .contact-card,
html.dark .contact-mini-card,
html.dark .form-field {
  background: rgba(255, 255, 255, 0.04);
}

.visual-metric {
  padding: 14px 16px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.visual-metric__value {
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.visual-metric__label {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  line-height: 1.5;
}

.system-visual__sidebar {
  padding: 18px;
}

.rail-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.rail-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

html.dark .rail-item {
  background: rgba(255, 255, 255, 0.04);
}

.rail-item strong {
  font-size: 0.9rem;
  line-height: 1.5;
}

.rail-item span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.page-section {
  padding: 32px 0;
}

.page-section--dark .section-panel {
  color: #f3f9ff;
  background:
    radial-gradient(circle at 18% 16%, rgba(0, 188, 157, 0.14), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(215, 186, 117, 0.12), transparent 16%),
    linear-gradient(160deg, rgba(7, 19, 40, 0.98), rgba(9, 30, 64, 0.95));
}

.section-panel {
  padding: 28px;
}

.section-header {
  max-width: 760px;
}

.section-title {
  margin: 18px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Heading overflow safety net: break-word only breaks in emergency overflow
   and does not change min-content sizing (unlike `anywhere`), so text-wrap:
   balance and grid track sizing are unaffected. */
.hero__title,
.section-title,
.page-hero__title,
.story-card__title,
.results-panel__title {
  overflow-wrap: break-word;
}

.section-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.page-section--dark .section-copy,
.page-section--dark .story-card__copy,
.page-section--dark .story-copy .section-copy,
.page-section--dark .metric-tile__label,
.page-section--dark .process-stage__copy,
.page-section--dark .process-stage__title {
  color: rgba(243, 249, 255, 0.72);
}

.page-section--dark .metric-band .metric-tile {
  border-color: rgba(9, 53, 122, 0.14) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 18px 40px rgba(8, 32, 78, 0.12) !important;
}

.page-section--dark .metric-band .metric-tile__value,
.page-section--dark .metric-band .metric-tile__value span,
.page-section--dark .metric-band .metric-tile__label,
.page-section--dark .metric-band .metric-tile * {
  color: var(--navy-ink) !important;
  opacity: 1 !important;
}

.story-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.story-copy {
  padding: 2px 4px;
}

.card-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.card-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card-grid--3,
.card-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.story-card {
  display: block;
  padding: 20px;
  box-shadow: 0 18px 44px rgba(8, 32, 78, 0.08);
}

/* Featured card — spans 2 cols, horizontal layout with larger type */
.story-card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  align-items: start;
  padding: 28px 30px;
}
.story-card--featured .story-card__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.32rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
  grid-row: 1 / 3;
}
.story-card--featured .story-card__copy {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 1rem;
  line-height: 1.72;
  align-self: center;
}
@media (max-width: 720px) {
  .story-card--featured {
    grid-column: span 1;
    display: block;
  }
}

.story-card__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html.dark .story-card__eyebrow {
  color: var(--mint);
}

.story-card__metric {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

html.dark .story-card__metric {
  color: var(--white);
}

.story-card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.story-card__copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.story-card__meta {
  margin-top: 16px;
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 700;
}

html.dark .story-card__meta {
  color: var(--mint);
}

.metric-band {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.metric-tile {
  padding: 20px 22px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(8, 32, 78, 0.06);
}

.metric-tile__value {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.metric-tile__label {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.service-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 14px 36px rgba(8, 32, 78, 0.08);
}

html.dark .service-pill {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.process-layout {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.process-tabs {
  display: grid;
  gap: 12px;
}

.process-tab {
  display: block;
  padding: 16px 18px;
  text-align: left;
  box-shadow: 0 14px 36px rgba(8, 32, 78, 0.08);
}

.process-tab[data-active="true"] {
  border-color: rgba(0, 188, 157, 0.45);
  background: rgba(0, 188, 157, 0.12);
  box-shadow: 0 18px 40px rgba(0, 188, 157, 0.16);
}

.process-tab__label {
  display: block;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html.dark .process-tab__label {
  color: var(--mint);
}

.process-tab__title {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.process-panels {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.48);
  padding: 22px;
}

html.dark .process-panels {
  background: rgba(255, 255, 255, 0.04);
}

.process-stage__eyebrow {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-stage {
  display: block;
}

html.dark .process-stage__eyebrow {
  color: var(--mint);
}

.process-stage__title {
  margin: 12px 0 0;
  font-size: 1.5rem;
  line-height: 1.15;
}

.process-stage__copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.82;
}

.section-spacer {
  height: 18px;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 42px rgba(8, 32, 78, 0.08);
  overflow: hidden;
}

html.dark .faq-item {
  background: rgba(255, 255, 255, 0.04);
}

.faq-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  text-align: left;
}

.faq-question {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 127, 113, 0.12);
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform var(--transition);
}

html.dark .faq-icon {
  background: rgba(0, 188, 157, 0.12);
  color: var(--mint);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.85;
  /* max-height is set via JS (scrollHeight) so transition animates the exact computed value,
     avoiding the layout-thrash of a guessed large max-height */
  transition: max-height 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[data-open="true"] .faq-answer {
  padding-bottom: 22px;
}

.faq-item[data-open="true"] .faq-icon {
  transform: rotate(45deg);
}

.quote-panel {
  padding: 28px;
  margin-top: 28px;
}

.quote-panel p {
  margin: 0;
  font-size: clamp(1.32rem, 3.2vw, 2rem);
  line-height: 1.5;
}

.quote-panel span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.contact-layout {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

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

.contact-rail {
  display: grid;
  gap: 14px;
}

.contact-card {
  padding: 18px 20px;
  box-shadow: 0 16px 42px rgba(8, 32, 78, 0.08);
}

.contact-card span,
.contact-mini-card span {
  display: block;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html.dark .contact-card span,
html.dark .contact-mini-card span {
  color: var(--mint);
}

.contact-card strong,
.contact-mini-card strong,
.contact-card a,
.contact-mini-card a {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  text-decoration: none;
}

html.dark .contact-card a,
html.dark .contact-mini-card a {
  color: #f3f9ff;
}

.consult-panel {
  padding: 24px;
}

.consult-panel__eyebrow {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
}

.form-field label,
.form-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.form-field select {
  appearance: none;
}

.form-field:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 127, 113, 0.12);
}

.form-field.is-invalid {
  border-color: rgba(185, 58, 58, 0.34);
  box-shadow: 0 0 0 3px rgba(185, 58, 58, 0.08);
}

.consult-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding: 0;
  border: none;
  background: none;
  min-height: unset;
}

.lead-form-shell {
  display: grid;
  gap: 18px;
}

.lead-form__actions,
.form-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.lead-form__meta,
.form-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.page--contact .form-field {
  border-color: rgba(96, 146, 218, 0.18);
  background: rgba(16, 35, 68, 0.96);
  box-shadow: 0 14px 34px rgba(4, 18, 44, 0.18);
}

.page--contact .form-field label,
.page--contact .form-field span {
  color: rgba(212, 229, 255, 0.72);
}

.page--contact .form-field input,
.page--contact .form-field textarea,
.page--contact .form-field select {
  color: rgba(247, 251, 255, 0.98);
}

.page--contact .form-field input::placeholder,
.page--contact .form-field textarea::placeholder {
  color: rgba(191, 211, 240, 0.66);
}

.page--contact .form-field:focus-within {
  border-color: rgba(0, 188, 157, 0.46);
  box-shadow:
    0 14px 34px rgba(4, 18, 44, 0.18),
    0 0 0 4px rgba(0, 188, 157, 0.12);
}

.free-audit-section .form-field {
  border-color: rgba(9, 53, 122, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(4, 21, 48, 0.12);
}

.free-audit-section .form-field label,
.free-audit-section .form-field span {
  color: rgba(9, 53, 122, 0.9);
}

.free-audit-section .form-field input,
.free-audit-section .form-field textarea,
.free-audit-section .form-field select {
  color: var(--navy-ink);
}

.free-audit-section .form-field input::placeholder,
.free-audit-section .form-field textarea::placeholder {
  color: rgba(10, 27, 56, 0.48);
}

.free-audit-section .form-field select option {
  color: var(--navy-ink);
}

.free-audit-section .form-field:focus-within {
  border-color: rgba(0, 127, 113, 0.42);
  box-shadow:
    0 12px 28px rgba(4, 21, 48, 0.12),
    0 0 0 4px rgba(0, 127, 113, 0.1);
}

html.dark .free-audit-section .form-field {
  border-color: rgba(115, 164, 228, 0.18);
  background: rgba(18, 36, 68, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

html.dark .free-audit-section .form-field label,
html.dark .free-audit-section .form-field span {
  color: rgba(117, 196, 255, 0.72);
}

html.dark .free-audit-section .form-field input,
html.dark .free-audit-section .form-field textarea,
html.dark .free-audit-section .form-field select {
  color: rgba(243, 249, 255, 0.96);
}

html.dark .free-audit-section .form-field input::placeholder,
html.dark .free-audit-section .form-field textarea::placeholder {
  color: rgba(196, 215, 242, 0.48);
}

html.dark .free-audit-section .form-field:focus-within {
  border-color: rgba(0, 188, 157, 0.52);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.18),
    0 0 0 4px rgba(0, 188, 157, 0.14);
}

html.dark .free-audit-section .lead-form__meta,
html.dark .free-audit-section .form-status {
  color: rgba(231, 240, 255, 0.82);
}

html.dark .free-audit-section.section-panel--dark::before,
html.dark .free-audit-section .section-panel--dark::before,
html.dark .free-audit-section .section-panel::before {
  opacity: 0.035;
}

.form-status:not(:empty) {
  color: var(--teal);
  font-weight: 600;
}

.form-success,
.white-paper-callout {
  padding: 24px;
  border: 1px solid rgba(8, 32, 78, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 249, 253, 0.78)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 42%);
  box-shadow: 0 20px 52px rgba(8, 32, 78, 0.08);
}

.form-success h2,
.white-paper-callout h3 {
  margin: 16px 0 0;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  line-height: 1.12;
}

.form-success p,
.white-paper-callout p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.78;
}

.white-paper-callout {
  display: grid;
  gap: 18px;
}

.white-paper-callout__list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.white-paper-callout__list li + li {
  margin-top: 10px;
}

.white-paper-callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

html.dark .form-success,
html.dark .white-paper-callout {
  border-color: rgba(220, 234, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(14, 28, 56, 0.88), rgba(10, 23, 47, 0.82)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 42%);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.2);
}

html.dark .form-success h2,
html.dark .white-paper-callout h3,
html.dark .white-paper-callout__list {
  color: #f3f9ff;
}

.page--resources .white-paper-callout h3,
html.dark .page--resources .white-paper-callout h3 {
  color: var(--navy-deep);
}

.dashboard-board {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.dashboard-board__panel,
.dashboard-board__chart {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 249, 253, 0.68)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 40%);
  box-shadow: 0 18px 40px rgba(8, 32, 78, 0.08);
}

html.dark .dashboard-board__panel,
html.dark .dashboard-board__chart {
  background:
    linear-gradient(180deg, rgba(14, 28, 56, 0.88), rgba(10, 23, 47, 0.8)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%);
}

.dashboard-board__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-board__header strong {
  font-size: 1.08rem;
}

.dashboard-board__header span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 188, 157, 0.1);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html.dark .dashboard-board__header span {
  color: var(--mint);
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 280px;
}

.chart-bar {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 240px;
  padding: 0 10px 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(9, 53, 122, 0.04), rgba(9, 53, 122, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 24%);
  overflow: hidden;
}

.chart-bar::before {
  content: "";
  position: absolute;
  inset: auto 10px 44px;
  height: 180px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, rgba(0, 188, 157, 0.9), rgba(0, 127, 113, 0.84));
  transform: scaleY(var(--bar-progress, 0));
  transform-origin: 50% 100%;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-bar span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.page--home .site-main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 980px;
  pointer-events: none;
  /* Light mode: homepage background is white — the dark hero→content fade is
     removed (dark mode keeps its overlay via the html.dark rule below). The
     hero/nav stay dark through their own fills. */
  background: none;
  opacity: 0;
}

html.dark .page--home .site-main::before {
  background:
    radial-gradient(circle at 14% 6%, rgba(0, 188, 157, 0.07), transparent 22%),
    radial-gradient(circle at 86% 18%, rgba(9, 53, 122, 0.18), transparent 22%),
    radial-gradient(circle at 74% 44%, rgba(0, 127, 113, 0.1), transparent 26%);
  opacity: 0.8;
}

.page--home .hero {
  position: relative;
  isolation: isolate;
  padding-top: 10px;
}

.page--home .hero::before {
  content: "";
  position: absolute;
  inset: 14px -20px -26px;
  z-index: -1;
  border-radius: 56px;
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.06), transparent 18%),
    radial-gradient(circle at 18% 56%, rgba(9, 53, 122, 0.24), transparent 28%),
    radial-gradient(circle at 76% 42%, rgba(0, 188, 157, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(5, 16, 35, 0.46), rgba(5, 16, 35, 0.18) 54%, rgba(5, 16, 35, 0) 100%);
  pointer-events: none;
}

.page--home .site-header {
  position: sticky;
  isolation: isolate;
  padding-bottom: 4px;
}

.page--home .site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -18px;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 0%, rgba(12, 41, 84, 0.34), transparent 34%),
    radial-gradient(circle at 74% 14%, rgba(0, 188, 157, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(6, 19, 40, 0.78) 0%, rgba(6, 19, 40, 0.56) 72%, rgba(6, 19, 40, 0.16) 100%);
  pointer-events: none;
}

.page--home .site-header:not(.is-scrolled) .nav-card {
  border-color: rgba(9, 53, 122, 0.12);
  background: rgba(255, 255, 255, 0.97);
}

html.dark .page--home .site-header:not(.is-scrolled) .nav-card {
  border-color: rgba(158, 197, 255, 0.18);
  background: #071831;
}

.page--home .drawer-quick-links {
  position: relative;
  padding: 10px 6px 4px;
}

.page--home .drawer-quick-links::before {
  content: "";
  position: absolute;
  inset: 2px 0 0;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(14, 34, 67, 0.28), rgba(14, 34, 67, 0.12)),
    radial-gradient(circle at 50% 0%, rgba(111, 169, 221, 0.08), transparent 52%);
  opacity: 0.65;
  pointer-events: none;
}

.page--home .drawer-quick-link {
  position: relative;
  border-color: rgba(9, 53, 122, 0.12);
  background: #ffffff;
}

html.dark .page--home .drawer-quick-link {
  border-color: rgba(158, 197, 255, 0.16);
  background: #0a1b38;
}

html.dark .page--home .drawer-quick-link.is-active {
  background: #0d2847;
}

.page--home .home-hero__frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 24px 24px 24px 28px; /* left +~15% per request */
  border: 1px solid rgba(118, 154, 211, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(4, 14, 31, 0.97), rgba(6, 21, 45, 0.98));
  box-shadow: 0 18px 48px rgba(1, 8, 22, 0.24);
}

html.dark .page--home .home-hero__frame {
  border-color: rgba(158, 197, 255, 0.26);
  background: linear-gradient(180deg, rgba(10, 24, 54, 0.97), rgba(13, 32, 68, 0.99));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

.page--home .home-hero__frame::before,
.page--home .home-hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page--home .home-hero__frame::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(3, 11, 24, 0.82) 0%, rgba(3, 11, 24, 0.68) 34%, rgba(3, 11, 24, 0.26) 60%, rgba(3, 11, 24, 0.48) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%);
}

.page--home .home-hero__frame::after {
  z-index: 4;
  background: none;
}

.page--home .home-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page--home .home-hero__flow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
  isolation: isolate;
}

.page--home .home-hero__flow::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 64%, rgba(3, 11, 24, 0.52), transparent 24%),
    linear-gradient(90deg, rgba(3, 11, 24, 0.3), rgba(3, 11, 24, 0.04) 36%, transparent 62%);
  pointer-events: none;
}

.page--home .home-hero__flow-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.88;
  mix-blend-mode: screen;
}

.page--home .home-hero__backdrop::before,
.page--home .home-hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page--home .home-hero__backdrop::before {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3, 11, 24, 0.9) 0%, rgba(3, 11, 24, 0.6) 30%, rgba(3, 11, 24, 0.42) 58%, rgba(3, 11, 24, 0.74) 100%),
    linear-gradient(180deg, rgba(3, 11, 24, 0.08), rgba(3, 11, 24, 0.3));
}

.page--home .home-hero__backdrop::after {
  z-index: 4;
  background-image:
    linear-gradient(rgba(176, 214, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 214, 255, 0.04) 1px, transparent 1px);
  background-size: 104px 104px;
  mask-image: radial-gradient(circle at 40% 52%, rgba(0, 0, 0, 0.9), transparent 86%);
}

.page--home .home-hero__wave-image {
  position: absolute;
  inset: -4%;
  width: 108%;
  max-width: none; /* see .page-hero__wave-image — restores the intended overscan */
  height: 108%;
  object-fit: cover;
  opacity: 0.18;
  animation: none;
}

html.dark .page--home .home-hero__wave-image {
  opacity: 0.24;
}

.page--home .home-hero__grid {
  position: relative;
  z-index: 6;
  grid-template-areas:
    "copy"
    "visual"
    "trust";
  gap: 26px;
  align-items: start;
}

.page--home .home-hero__content,
.page--home .home-hero__visual,
.page--home .home-hero__trust {
  position: relative;
  z-index: 6;
}

.page--home .home-hero__content {
  grid-area: copy;
  padding-top: 10px;
}
.page--home .home-hero__visual {
  grid-area: visual;
  display: flex;
}

.page--home .home-hero__trust {
  grid-area: trust;
}
.page--home .hero__title {
  color: #f3f8ff;
  font-size: clamp(2.4rem, 3.9vw, 4.05rem);
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: 12ch;
  text-wrap: balance;
}

.page--home .home-hero__copy {
  max-width: 38rem;
}

.page--home .hero__copy {
  color: rgba(233, 242, 255, 0.82);
  font-size: clamp(0.98rem, 1.16vw, 1.06rem);
  line-height: 1.82;
}

.page--home .home-hero__actions {
  margin-top: 32px;
}



/* Opaque deep-teal fill so the hero's particle animation can't bleed through
   and wash out the label (translucent glass was hard to read). Near-white text
   on deep teal clears ~7:1; stays clearly secondary to the bright primary CTA. */
.page--home .home-hero .button--secondary {
  color: #f4f9ff !important;
  border-color: hsla(178, 55%, 58%, 0.55) !important;
  background: linear-gradient(135deg, hsl(180 52% 24%), hsl(184 60% 17%)) !important;
  box-shadow: 0 10px 26px hsla(184, 60%, 12%, 0.45),
    inset 0 1px 0 hsla(178, 60%, 70%, 0.18) !important;
}

.page--home .home-hero .button--secondary:hover {
  background: linear-gradient(135deg, hsl(180 54% 30%), hsl(184 60% 22%)) !important;
  border-color: var(--mdh-teal-soft) !important;
}

.page--home .home-hero__trust {
  display: grid;
  gap: 10px;
}

.page--home .trust-chip--hero {
  min-height: 46px;
  justify-content: flex-start;
  padding: 12px 16px;
  border-color: rgba(220, 234, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%);
  color: rgba(243, 249, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(2, 10, 24, 0.16);
}

html.dark .page--home .trust-chip--hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%);
  color: rgba(243, 249, 255, 0.9);
}

.page--home .hero-brand-scene--home {
  min-height: clamp(300px, 52vw, 560px);
  padding: 36px 10px 18px;
}

.page--home .hero-brand-scene--home .hero-brand-scene__glow {
  inset: 14% 10% 16% 20%;
  opacity: 0.44;
  animation: none;
}

.page--home .hero-brand-scene--home .hero-brand-scene__pills {
  justify-content: flex-start;
}

.page--home .hero-brand-scene--home .hero-brand-scene__card {
  width: min(100%, 640px);
  padding: 52px 42px;
  background:
    linear-gradient(160deg, rgba(7, 19, 40, 0.96), rgba(8, 25, 53, 0.98)),
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.06), transparent 22%);
  /* backdrop-filter removed — card sits on static dark bg; blur was purely decorative */
}

.page--home .hero-brand-scene--home .hero-brand-scene__image {
  width: min(100%, 500px);
}

.page--home .home-chapter .section-panel {
  padding: 32px 24px;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page--home .home-chapter--leaks .section-panel,
.page--home .home-chapter--front-end .section-panel,
.page--home .home-chapter--documentation .section-panel,
.page--home .home-chapter--reporting .section-panel,
.page--home .home-chapter--segments .section-panel,
.page--home .home-chapter--who .section-panel,
.page--home .home-chapter--assessment .section-panel {
  background:
    linear-gradient(180deg, rgba(253, 250, 244, 0.94), rgba(251, 247, 238, 0.82)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 36%);
}

html.dark .page--home .home-chapter--leaks .section-panel,
html.dark .page--home .home-chapter--front-end .section-panel,
html.dark .page--home .home-chapter--documentation .section-panel,
html.dark .page--home .home-chapter--reporting .section-panel,
html.dark .page--home .home-chapter--segments .section-panel,
html.dark .page--home .home-chapter--who .section-panel,
html.dark .page--home .home-chapter--assessment .section-panel {
  background: linear-gradient(160deg, rgba(7, 19, 40, 0.88), rgba(9, 26, 57, 0.9));
}

.page--home .home-chapter .section-panel,
.page--home .footer-cta,
.page--home .footer-map {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page--home .home-chapter .section-panel > *,
.page--home .footer-cta > *,
.page--home .footer-map > * {
  position: relative;
  z-index: 1;
}

.page--home .home-chapter .section-panel::before,
.page--home .footer-cta::before,
.page--home .footer-map::before {
  content: "";
  position: absolute;
  inset: clamp(20px, 4vw, 44px) clamp(-10px, 1vw, 18px) clamp(18px, 3vw, 36px) auto;
  width: clamp(280px, 34vw, 560px);
  background: url("assets/reimbursement-caduceus-mark-light.png") no-repeat center / contain;
  opacity: 0.11;
  filter: saturate(0.9);
  pointer-events: none;
  z-index: 0;
}

html.dark .page--home .home-chapter .section-panel::before,
html.dark .page--home .footer-cta::before,
html.dark .page--home .footer-map::before {
  background-image: url("assets/reimbursement-caduceus-mark.png");
  opacity: 0.11;
}

/* Caduceus watermark pared back to a single faint mark in the footer contact band.
   Removed from all home section panels, the footer map, and the proof/dashboard modules. */
.page--home .home-chapter .section-panel::before,
.footer-map::before,
.quote-panel::before,
.dashboard-board__panel::before,
.dashboard-board__chart::before,
.report-preview__panel::before,
.report-preview__note::before { display: none !important; }

.page--home .home-leak-grid,
.page--home .process-architecture {
  margin-top: 30px;
}

.page--home .home-leak-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page--home .home-leak-card {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 0 18px;
  border: 1px solid rgba(9, 53, 122, 0.1);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(253, 250, 244, 0.88), rgba(251, 247, 238, 0.72));
  box-shadow: var(--shadow-soft);
}

html.dark .page--home .home-leak-card {
  background: linear-gradient(160deg, rgba(14, 32, 64, 0.88), rgba(9, 22, 46, 0.72));
  border-color: rgba(158, 197, 255, 0.1);
}

.page--home .home-leak-card span {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.page--home .process-architecture {
  position: relative;
  display: grid;
  gap: 14px;
}

.page--home .process-architecture__card {
  position: relative;
  padding: 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.16);
}

.page--home .process-architecture__step {
  color: rgba(243, 249, 255, 0.48);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page--home .process-architecture__label {
  margin-top: 10px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page--home .process-architecture__title {
  margin: 10px 0 0;
  color: #f3f9ff;
  font-size: 1.06rem;
  line-height: 1.36;
}

.page--home .process-architecture__copy {
  margin: 12px 0 0;
  color: rgba(243, 249, 255, 0.74);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* report-preview — global (homepage + dashboard demo) */
.report-preview {
  display: grid;
  gap: 16px;
}

.page--home .report-preview {
  margin-top: 30px;
}

.report-preview__panel,
.report-preview__note {
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.report-preview__panel {
  padding: 22px;
  background: linear-gradient(160deg, rgba(253, 250, 244, 0.94), rgba(251, 247, 238, 0.84));
}

html.dark .report-preview__panel {
  background: linear-gradient(160deg, rgba(10, 24, 54, 0.92), rgba(7, 19, 44, 0.88));
  border-color: rgba(158, 197, 255, 0.12);
}

.report-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-preview__header strong {
  font-size: 1rem;
  color: var(--ink);
}

.report-preview__header span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 127, 113, 0.08);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html.dark .report-preview__header span {
  background: rgba(0, 188, 157, 0.12);
  color: var(--mint);
}

.report-preview__rows {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.report-preview__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(250, 247, 241, 0.84);
  border: 1px solid rgba(9, 53, 122, 0.08);
}

html.dark .report-preview__row {
  background: rgba(14, 32, 64, 0.7);
  border-color: rgba(158, 197, 255, 0.08);
}

.report-preview__row strong {
  font-size: 0.92rem;
  line-height: 1.42;
  color: var(--ink);
}

.report-preview__row span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
}

.report-preview__stack {
  display: grid;
  gap: 12px;
}

.report-preview__note {
  padding: 18px;
  background: linear-gradient(160deg, rgba(253, 250, 244, 0.9), rgba(251, 247, 238, 0.76));
}

html.dark .report-preview__note {
  background: linear-gradient(160deg, rgba(10, 24, 54, 0.88), rgba(7, 19, 44, 0.82));
  border-color: rgba(158, 197, 255, 0.1);
}

.report-preview__note strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.46;
  color: var(--ink);
}

.report-preview__note p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.68;
}

.page--home .story-card {
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(160deg, var(--surface), var(--surface-quiet));
  box-shadow: var(--shadow-soft);
}

.page--home .home-chapter--workflow .process-architecture__card,
.page--home .home-chapter--back-end .story-card,
.page--home .home-chapter--trust .story-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.page--home .home-chapter--back-end .story-card__copy,
.page--home .home-chapter--trust .story-card__copy {
  color: rgba(243, 249, 255, 0.74);
}

.page--home .home-chapter--back-end .story-card__title,
.page--home .home-chapter--trust .story-card__title {
  color: #f3f9ff;
}

.page--home .home-chapter--back-end .story-card__meta,
.page--home .home-chapter--trust .story-card__meta {
  color: var(--mint);
}

.page--home .home-chapter--trust .metric-tile {
  border-color: rgba(9, 53, 122, 0.14) !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(8, 32, 78, 0.08) !important;
}

.page--home .home-chapter--trust .metric-tile__value,
.page--home .home-chapter--trust .metric-tile__value span,
.page--home .home-chapter--trust .metric-tile__label {
  color: var(--navy-ink) !important;
}

.page--home .home-chapter--segments .card-grid,
.page--home .home-chapter--front-end .card-grid,
.page--home .home-chapter--documentation .card-grid,
.page--home .home-chapter--back-end .card-grid,
.page--home .home-chapter--trust .card-grid,
.page--home .home-chapter--who .card-grid {
  margin-top: 30px;
}

.assessment-invite {
  display: grid;
  gap: 18px;
}

.assessment-invite__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.assessment-page-section .section-panel {
  /* overflow must stay visible so the sticky output panel can pin as the user
     scrolls the questions (an overflow:hidden ancestor disables position:sticky). */
  overflow: visible;
}

.assessment-shell {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.assessment-shell__intro {
  display: grid;
  gap: 14px;
}

.assessment-progress {
  display: grid;
  gap: 10px;
}

.assessment-progress__label {
  color: rgba(243, 249, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.assessment-progress__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.assessment-progress__bar {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--mint), rgba(215, 186, 117, 0.9));
  transition: width 260ms ease;
}

.assessment-shell__note {
  margin: 0;
  color: rgba(243, 249, 255, 0.68);
  font-size: 0.94rem;
  line-height: 1.72;
}

.assessment-shell__body {
  display: grid;
  gap: 20px;
}

.assessment-step {
  padding: 24px;
  border: 1px solid rgba(220, 234, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.05), transparent 22%);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.18);
}

.assessment-step__eyebrow {
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.assessment-step__title {
  margin: 14px 0 0;
  color: #f3f9ff;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.assessment-step__copy {
  margin: 14px 0 0;
  color: rgba(243, 249, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.8;
}

.assessment-question {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.assessment-question legend {
  padding: 0;
  color: #f3f9ff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.assessment-question.is-invalid legend {
  color: #ffd4d4;
}

.assessment-options {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.assessment-option {
  position: relative;
  display: block;
}

.assessment-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.assessment-option__surface {
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 16px 18px;
  border: 1px solid rgba(220, 234, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 44%);
  color: rgba(243, 249, 255, 0.88);
  transition:
    border-color var(--transition),
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.assessment-option__surface:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 234, 255, 0.2);
}

.assessment-option input:checked + .assessment-option__surface {
  border-color: rgba(0, 188, 157, 0.52);
  background:
    linear-gradient(180deg, rgba(0, 188, 157, 0.16), rgba(0, 188, 157, 0.08)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 44%);
  box-shadow: 0 18px 44px rgba(0, 188, 157, 0.14);
}

.assessment-option input:focus-visible + .assessment-option__surface {
  outline: 2px solid rgba(0, 188, 157, 0.72);
  outline-offset: 4px;
}

.assessment-option__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
}

.assessment-lead-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.assessment-input {
  display: grid;
  gap: 10px;
}

.assessment-input--wide {
  grid-column: 1 / -1;
}

.assessment-input span {
  color: rgba(243, 249, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.assessment-input input,
.assessment-input textarea {
  width: 100%;
  border: 1px solid rgba(220, 234, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3f9ff;
  padding: 16px 18px;
  outline: 0;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.assessment-input input::placeholder,
.assessment-input textarea::placeholder {
  color: rgba(243, 249, 255, 0.42);
}

.assessment-input input:focus,
.assessment-input textarea:focus {
  border-color: rgba(0, 188, 157, 0.5);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(0, 188, 157, 0.12);
}

.assessment-input.is-invalid input,
.assessment-input.is-invalid textarea {
  border-color: rgba(255, 124, 124, 0.48);
}

.assessment-shell__controls,
.assessment-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Revenue Health Assessment — single-page layout + live sticky panel ──── */
.assessment-layout {
  display: grid;
  gap: 22px;
  align-items: start;
}
@media (min-width: 981px) {
  .assessment-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
  }
}
.assessment-questions {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.assessment-questions .assessment-question {
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(220, 234, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.05), transparent 22%);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.16);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.assessment-question__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.assessment-question__number {
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.assessment-focus-pill {
  border: 1px solid rgba(220, 234, 255, 0.16);
  border-radius: 999px;
  padding: 5px 12px;
  color: rgba(243, 249, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.assessment-question__prompt {
  display: block;
  margin: 0;
  color: #f3f9ff;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
}
.assessment-option__surface {
  gap: 14px;
}
.assessment-option__key {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(220, 234, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f9ff;
  font-weight: 800;
  font-size: 0.9rem;
}
.assessment-option input:checked + .assessment-option__surface .assessment-option__key {
  border-color: rgba(0, 188, 157, 0.55);
  background: var(--teal);
  color: #ffffff;
}
.assessment-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  align-self: start;
  padding: 22px;
  border: 1px solid rgba(220, 234, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}
@media (min-width: 981px) {
  .assessment-panel {
    position: sticky;
    top: 24px;
  }
}
.assessment-panel__eyebrow {
  margin: 0;
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.assessment-score__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.assessment-score__label {
  color: rgba(243, 249, 255, 0.7);
  font-size: 0.82rem;
}
.assessment-score__value {
  color: #f3f9ff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}
.assessment-score .assessment-progress {
  margin-top: 12px;
}
.assessment-score__note {
  margin: 10px 0 0;
  color: rgba(243, 249, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.6;
}
.assessment-output {
  border-top: 1px solid rgba(220, 234, 255, 0.1);
  padding-top: 6px;
}
.assessment-output-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(220, 234, 255, 0.08);
  color: rgba(243, 249, 255, 0.82);
  font-size: 0.9rem;
}
.assessment-output-row span:last-child {
  font-weight: 800;
}
.assessment-gate {
  display: grid;
  gap: 12px;
}
.assessment-gate__note,
.assessment-panel__fineprint {
  margin: 0;
  color: rgba(243, 249, 255, 0.62);
  font-size: 0.8rem;
  line-height: 1.6;
}
.assessment-gate__hint {
  margin: 0;
  color: rgba(243, 249, 255, 0.5);
  font-size: 0.76rem;
}
.assessment-gate .button,
.assessment-panel__actions .button {
  width: 100%;
  justify-content: center;
}
.assessment-panel__actions {
  display: grid;
  gap: 10px;
}
.assessment-results {
  display: grid;
  gap: 16px;
}
.assessment-band {
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 16px;
}
.assessment-band__label {
  display: block;
  font-size: 1rem;
}
.assessment-band__summary {
  margin: 8px 0 0;
  font-size: 0.86rem;
  line-height: 1.6;
}
.assessment-band[data-tone="strong"],
.assessment-band[data-tone="stable"] {
  border-color: rgba(0, 188, 157, 0.5);
  background: rgba(0, 188, 157, 0.12);
  color: #cffaf0;
}
.assessment-band[data-tone="mixed"],
.assessment-band[data-tone="risk"] {
  border-color: rgba(215, 154, 75, 0.55);
  background: rgba(215, 154, 75, 0.14);
  color: #ffe6c2;
}
.assessment-band[data-tone="urgent"] {
  border-color: rgba(224, 122, 95, 0.6);
  background: rgba(192, 57, 43, 0.18);
  color: #ffd7cf;
}
.assessment-focus__title {
  margin: 0 0 10px;
  color: #f3f9ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.assessment-focus-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.assessment-focus-list li {
  border-left: 3px solid var(--mint);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
}
.assessment-focus-list strong {
  display: block;
  color: #f3f9ff;
  font-size: 0.9rem;
}
.assessment-focus-list span {
  display: block;
  margin-top: 3px;
  color: rgba(243, 249, 255, 0.7);
  font-size: 0.82rem;
  line-height: 1.5;
}
.assessment-focus__next {
  margin: 0;
  color: rgba(243, 249, 255, 0.7);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* ── Lead-form opt-in switches (checklist PDF + newsletter bell) ─────────── */
.lead-form__optins {
  display: grid;
  gap: 12px;
  margin: 6px 0 2px;
}
.form-optin {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.form-optin input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.form-optin__switch {
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(220, 234, 255, 0.2);
  transition: background var(--transition), border-color var(--transition);
}
.form-optin__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition);
}
.form-optin input:checked + .form-optin__switch {
  background: var(--teal);
  border-color: var(--teal);
}
.form-optin input:checked + .form-optin__switch::after {
  transform: translateX(20px);
}
.form-optin input:focus-visible + .form-optin__switch {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
.form-optin__text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(243, 249, 255, 0.86);
  font-size: 0.9rem;
  line-height: 1.45;
}
.form-optin__icon {
  display: inline-flex;
  color: var(--mint);
}
.form-optin__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.assessment-summary {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(220, 234, 255, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 84% 18%, rgba(0, 188, 157, 0.1), transparent 22%);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.18);
}

.assessment-summary__headline {
  max-width: 50rem;
}

.assessment-summary__title {
  margin: 18px 0 0;
  color: #f3f9ff;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.12;
}

.assessment-summary__copy {
  margin: 14px 0 0;
  color: rgba(243, 249, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.78;
}

.assessment-summary__grid {
  display: grid;
  gap: 16px;
}

.assessment-score-card,
.assessment-recommendation-card {
  border: 1px solid rgba(220, 234, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 46%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.assessment-score-card {
  padding: 22px;
}

.assessment-score-card__label {
  color: rgba(243, 249, 255, 0.66);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.assessment-score-card__value {
  display: block;
  margin-top: 14px;
  color: #f3f9ff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.assessment-score-card__band {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 16px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 188, 157, 0.12);
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.assessment-score-card__copy {
  margin: 16px 0 0;
  color: rgba(243, 249, 255, 0.72);
  font-size: 0.96rem;
  line-height: 1.72;
}

.assessment-recommendations h4 {
  margin: 0 0 12px;
  color: #f3f9ff;
  font-size: 1.02rem;
}

.assessment-recommendations__list {
  display: grid;
  gap: 12px;
}

.assessment-recommendation-card {
  padding: 18px;
}

.assessment-recommendation-card h5 {
  margin: 0;
  color: #f3f9ff;
  font-size: 1rem;
  line-height: 1.45;
}

.assessment-recommendation-card p {
  margin: 10px 0 0;
  color: rgba(243, 249, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.72;
}

/* Sticky conversion bar. Shown only below 960px — the same breakpoint where
   the header's inline "Contact Us" CTA is hidden — so a contact action is
   always on screen. Pages that ARE the conversion target (contact/quote/
   assessment) don't emit this markup at all. */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 10px clamp(14px, 4vw, 24px) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(9, 53, 122, 0.12);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
}

.mobile-cta-bar .button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.85rem;
}

/* Reserve room so the bar never hides the footer's last lines. */
body:has(.mobile-cta-bar) {
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 960px) {
  .mobile-cta-bar {
    display: none;
  }

  body:has(.mobile-cta-bar) {
    padding-bottom: 0;
  }
}

.site-footer {
  padding: 24px 0 40px;
}

.footer-cta {
  display: grid;
  gap: 20px;
  padding: 24px clamp(24px, 4vw, 100px);
}

.footer-cta__copy h2 {
  margin: 18px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.footer-cta__copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.footer-cta__cards {
  display: grid;
  gap: 12px;
}

.contact-mini-card {
  padding: 18px;
}

.footer-map {
  display: grid;
  gap: 24px;
  margin-top: 20px;
  padding: 24px clamp(24px, 4vw, 100px);
}

.footer-map__intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.footer-map__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
  max-width: 56ch;
}

.footer-grid {
  display: grid;
  gap: 20px;
}

.footer-column {
  display: grid;
  gap: 10px;
}

.footer-column a,
.footer-bottom {
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.footer-social__link:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: rgba(0, 127, 113, 0.08);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* Hint the compositor only while waiting to enter; release once shown so layers
   are not pinned (avoids a one-frame hitch when several reveals fire together). */
.reveal:not(.is-visible) { will-change: opacity, transform; }

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@keyframes heroDrift {
  0%,
  100% {
    transform: scale(1.01) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.03) translate3d(-0.35%, 0.3%, 0);
  }
}

@keyframes heroHalo {
  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 0.66;
  }
  50% {
    transform: scale(1.03) translate3d(0.4%, -0.3%, 0);
    opacity: 0.8;
  }
}

@keyframes beam {
  from {
    stroke-dashoffset: 240;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes signalPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 188, 157, 0.08);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 12px rgba(0, 188, 157, 0.12);
  }
}

@keyframes metricSweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@media (min-width: 720px) {
  .system-visual__sidebar::before,
  .section-panel::before,
  .footer-cta::before,
  .footer-map::before,
  .quote-panel::before,
  .dashboard-board__panel::before,
  .dashboard-board__chart::before,
  .report-preview__panel::before,
  .report-preview__note::before {
    inset: 32px 10px 24px auto;
    width: clamp(300px, 30vw, 560px);
  }

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

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

  .contact-layout,
  .dashboard-board {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

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

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

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

  .page-hero__frame {
    padding: 28px;
  }

  .page--home .home-hero__frame {
    padding: 28px 28px 28px 32px; /* left +~15% per request */
  }

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

  .page--home .home-leak-grid,
  .page--home .process-architecture,
  .page--home .report-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page--home .home-chapter .section-panel::before,
  .page--home .footer-cta::before,
  .page--home .footer-map::before {
    inset: 56px 10px 26px auto;
    width: clamp(340px, 36vw, 620px);
  }
}

@media (min-width: 960px) {
  .shell {
    width: calc(100vw - 24px);
  }

  .brand-logo-box--header {
    width: 82px;
    height: 60px;
    padding: 7px;
  }

  .brand-tagline {
    max-width: 10.5rem;
  }

  .desktop-nav {
    display: flex;
  }

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

  .button--nav-cta {
    /* width (not min-width) so the CTA can shrink as a flex item under text
       enlargement instead of being pushed past the viewport edge. */
    width: 210px;
    min-width: 0;
    max-width: 100%;
    font-size: 0.88rem;
    min-height: 46px;
    padding: 12px 18px;
  }

  .drawer-quick-links {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero__grid,
  .story-grid,
  .process-layout,
  .footer-cta,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero__grid {
    align-items: center;
  }

  .hero__content {
    padding-right: 12px;
  }

  .page-hero__frame {
    padding: 34px;
  }

  .page-hero__grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 46px;
    align-items: stretch;
    min-height: 620px;
  }

  .page-hero__content {
    display: grid;
    align-content: center;
    padding-top: 12px;
  }

  .page-hero .hero-brand-scene--page {
    min-height: 100%;
    padding: 44px 16px 20px;
  }

  .page-hero .hero-brand-scene--page .hero-brand-scene__card {
    width: min(100%, 740px);
    min-height: 430px;
    padding: 52px 44px;
  }

  .site-header.is-scrolled .nav-card {
    padding: 10px 14px;
  }

  .system-visual {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: stretch;
  }

  .section-panel {
    padding: 32px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-map-drawer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page--home .home-hero__frame {
    padding: 34px 34px 34px 39px; /* left +~15% per request */
  }

  .page--home .home-hero__grid {
    grid-template-areas:
      "copy visual"
      "trust visual";
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); /* balanced ~48/52 */
    gap: 42px;
    align-items: center; /* vertically center the composition */
    min-height: 680px;
  }

  .page--home .home-hero__content {
    display: grid;
    align-content: center;
    padding: 22px 0 0;
  }

  .page--home .home-hero__visual {
    align-items: center;
  }

  .page--home .hero-brand-scene {
    min-height: 100%;
    padding: 56px 16px 26px 26px;
  }

  .page--home .home-hero__trust {
    align-self: end;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page--home .hero-brand-scene__card {
    transform: translateY(-42px);
  }

  .page--home .home-leak-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .page--home .home-chapter .section-panel::before,
  .page--home .footer-cta::before,
  .page--home .footer-map::before {
    inset: 28px 20px 68px auto;
    width: clamp(420px, 34vw, 620px);
  }

  .page--home .process-architecture {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page--home .report-preview {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  }

  .page--home .home-chapter .section-panel {
    padding: 40px 34px;
  }
}

@media (min-width: 1180px) {
  .system-visual__sidebar::before,
  .section-panel::before,
  .footer-cta::before,
  .footer-map::before,
  .quote-panel::before,
  .dashboard-board__panel::before,
  .dashboard-board__chart::before,
  .report-preview__panel::before,
  .report-preview__note::before {
    inset: 26px 18px 30px auto;
    width: clamp(360px, 28vw, 620px);
  }

  .shell {
    width: calc(100vw - 28px);
  }

  .nav-card {
    padding-inline: 18px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  }

  .story-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .process-layout {
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  }

  .footer-cta {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }

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

  .page-hero__frame {
    padding: 38px clamp(38px, 5vw, 130px);
  }

  .page-hero__grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 54px;
    min-height: 820px;
    max-width: 1720px;
    margin-inline: auto;
  }

  .page-hero .hero__title {
    font-size: clamp(3rem, 4.2vw, 5.25rem);
    max-width: 12ch;
  }

  .page-hero .hero-brand-scene--page .hero-brand-scene__card {
    width: min(100%, 700px);
    min-height: 470px;
    padding: 58px 50px;
  }

  .page--home .home-hero__frame {
    padding: 38px clamp(38px, 5vw, 130px) 38px clamp(44px, 5.75vw, 150px); /* left +~15% per request */
  }

  .page--home .home-hero__grid {
    /* Balanced two-column hero (~48% / 52%): wider left text column, right column
       holds the logo centered with generous negative space. Wider max-width lets
       the composition occupy more of the viewport while staying optically centered. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 54px;
    min-height: 820px;
    max-width: 1660px;
    margin-inline: auto;
  }

  .page--home .hero__title {
    font-size: clamp(3rem, 4.2vw, 5.25rem);
    max-width: 12ch;
  }

  .page--home .hero-brand-scene {
    padding-left: 42px;
  }

  .page--home .hero-brand-scene__card {
    width: min(100%, 700px);
    transform: translateY(-200px);
  }
}

/* ============================================================
   WebGL enhancement canvases (hero-wave, ai-graph, dashboard-charts,
   process-flow, metrics-bg)
   ============================================================ */

/* --- hero-wave.js: animated wave mesh behind homepage hero backdrop --- */
.home-hero__wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.home-hero__backdrop.has-wave-gl .home-hero__wave-canvas {
  opacity: 1;
}

/* Fade out the static PNG once the WebGL canvas is live */
.home-hero__backdrop.has-wave-gl .home-hero__wave-image {
  opacity: 0;
  transition: opacity 0.9s ease;
}

/* --- ai-graph.js: neural node graph in hero visual --- */
.ai-graph-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.page-hero__visual.has-ai-gl .ai-graph-canvas {
  opacity: 1;
}

.page-hero__visual.has-ai-gl .hero-brand-scene {
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

/* --- dashboard-charts.js: radial gauge charts in hero visual --- */
.dashboard-gauges-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.page-hero__visual.has-gauges-gl .dashboard-gauges-canvas {
  opacity: 1;
}

.page-hero__visual.has-gauges-gl .hero-brand-scene {
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

/* --- process-flow.js: vertical flow trace alongside process tabs --- */
.process-layout.has-flow-gl .process-tabs {
  position: relative;
}

.process-flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* Ensure tab buttons sit above the canvas */
.process-layout.has-flow-gl .process-tab {
  position: relative;
  z-index: 1;
}

/* --- metrics-bg.js: hex-grid background behind metric band --- */
.metric-band-gl-wrap {
  position: relative;
}

.metric-bg-canvas {
  position: absolute;
  inset: -16px;
  display: block;
  pointer-events: none;
  z-index: 0;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.metric-band-gl-wrap.has-metrics-gl .metric-bg-canvas {
  opacity: 1;
}

/* Ensure metric tiles sit above the hex-grid canvas */
.metric-band-gl-wrap .metric-band {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   FOOTER POLISH — "Editorial Open Footer"
   One conversion card (.footer-cta, structurally unchanged) → a single
   teal gradient hairline → an open, type-led sitemap (.footer-nav) →
   a quiet utility baseline (.footer-bottom). The old .footer-map /
   .footer-grid card rules now match nothing and are inert.
   Colours resolve via tokens; mint accents drop to teal in light mode.
   ============================================================ */
/* Bottom padding reserves the a11y FAB zone: 22px offset + 60px FAB = 82px;
   +14px gap. Keep in sync with --rc-fab-size/offsets in mdb-accessibility-hub.js. */
.site-footer { padding: 24px 0 calc(96px + env(safe-area-inset-bottom, 0px)); }

/* — Zone 1: contact tiles upgraded to icon chips (the card stays a card) — */
.footer-cta__cards { display: grid; gap: 14px; }
@media (min-width: 960px) {
  .footer-cta__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.contact-mini-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  min-height: 56px;
}
.contact-mini-card__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 188, 157, 0.10);
  color: var(--mint);
}
html:not(.dark) .contact-mini-card__icon {
  background: rgba(0, 127, 113, 0.08);
  color: var(--teal);
}
.contact-mini-card__icon svg { width: 20px; height: 20px; display: block; }
.contact-mini-card__body { min-width: 0; }
.contact-mini-card__label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}
html:not(.dark) .contact-mini-card__label { color: var(--teal); }
.contact-mini-card__body a,
.contact-mini-card__body strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.45;
  color: #f3f9ff;
  text-decoration: none;
  overflow-wrap: anywhere;
}
html:not(.dark) .contact-mini-card__body a,
html:not(.dark) .contact-mini-card__body strong { color: var(--ink); }
.contact-mini-card--num .contact-mini-card__body a {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.contact-mini-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }

/* — Zone 2: open editorial sitemap (no border / bg / watermark) — */
.footer-nav { margin-top: 72px; display: grid; gap: 48px; }
.footer-nav::before {
  content: "";
  display: block;
  grid-column: 1 / -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mdh-teal) 18%, var(--mdh-teal) 82%, transparent);
  opacity: 0.55;
}
html:not(.dark) .footer-nav::before { opacity: 0.4; }
.footer-nav__brand { display: grid; gap: 16px; align-content: start; }
.footer-nav__brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
  max-width: 42ch;
}
html:not(.dark) .footer-nav__brand p { color: #51607a; }
.footer-nav__links { display: grid; gap: 40px 32px; grid-template-columns: 1fr; }
.footer-nav .footer-column { display: grid; gap: 12px; align-content: start; }
.footer-nav .footer-column h3 {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}
html:not(.dark) .footer-nav .footer-column h3 { color: var(--teal); }
.footer-nav .footer-column a {
  display: inline-block;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
  padding-block: 3px;
  transition: color 200ms var(--mdh-ease), transform 200ms var(--mdh-ease);
}
html:not(.dark) .footer-nav .footer-column a { color: #51607a; }
.footer-nav .footer-column a:hover { color: var(--mint); transform: translateX(3px); }
html:not(.dark) .footer-nav .footer-column a:hover { color: var(--teal); }
@media (min-width: 768px) {
  .footer-nav__links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .footer-nav {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 2.65fr);
    column-gap: clamp(48px, 6vw, 120px);
    align-items: start;
  }
}

/* — Zone 3: quiet utility baseline — */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-bottom__copy { color: var(--muted); }
html:not(.dark) .footer-bottom__copy { color: #51607a; }
.footer-bottom__links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer-bottom__links a {
  color: var(--muted);
  font-size: 0.85rem;
  padding-block: 4px;
  transition: color 200ms var(--mdh-ease);
}
html:not(.dark) .footer-bottom__links a { color: #51607a; }
.footer-bottom__links a:hover { color: var(--mint); }
html:not(.dark) .footer-bottom__links a:hover { color: var(--teal); }
.footer-backtop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 44px;
  /* In the <960px column layout .footer-bottom stretches flex items — without
     this the 44px hit-area spans full width under the a11y FAB corner. */
  align-self: flex-start;
  text-decoration: none;
  transition: color 200ms var(--mdh-ease);
}
html:not(.dark) .footer-backtop { color: #51607a; }
.footer-backtop svg { transition: transform 200ms var(--mdh-ease); }
.footer-backtop:hover { color: var(--mint); }
.footer-backtop:hover svg { transform: translateY(-2px); }
html:not(.dark) .footer-backtop:hover { color: var(--teal); }
@media (min-width: 960px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 480px) {
  /* >=20px gap between the 44px backtop target and the 60px a11y FAB on small phones */
  .site-footer { padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px)); }
}

/* Stacking contract: mdb-accessibility-hub.js owns the top layer
   (--rc-z: 2147483000). Site chrome stays in-flow or below it, and no
   interactive element may occupy the reserved bottom-right zone
   (right < 82px AND bottom < 96px). Backtop stays in-flow (z:auto). */

/* — Focus rings + reduced motion for the polished footer — */
.footer-nav .footer-column a:focus-visible,
.footer-bottom__links a:focus-visible,
.footer-backtop:focus-visible,
.contact-mini-card__body a:focus-visible {
  outline: 2px solid var(--mdh-teal);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .contact-mini-card,
  .footer-nav .footer-column a,
  .footer-backtop,
  .footer-backtop svg { transition: none; }
  .contact-mini-card:hover,
  .footer-nav .footer-column a:hover,
  .footer-backtop:hover svg { transform: none; }
}
