/* =====================================================
   Thompson Environmental - Design System
   ===================================================== */

/* --------- Tokens --------- */
:root {
  /* Brand */
  --c-navy:      #003B5C;
  --c-blue:      #005792;
  --c-teal:      #0894C4;
  --c-teal-text: #06719A;   /* teal for small text and behind white labels: #0894C4 is only 3.5:1 on white */
  --c-cyan:      #21D4FF;
  --c-ink:       #0A1929;

  /* Surfaces */
  --c-white:     #FFFFFF;
  --c-mist:      #F4F8FB;
  --c-fog:      #E6EEF3;
  --c-line:      #D7E1E8;
  --c-field-line: #7B8EA0;  /* form field borders: 3.4:1 on white, 3.2:1 on the mist fill (WCAG 1.4.11) */

  /* Text */
  --c-body:      #455A6E;
  --c-muted:     #5B6F82;

  /* Effects */
  --grad-hero: linear-gradient(135deg, rgba(0,42,72,.85) 0%, rgba(0,87,146,.78) 45%, rgba(8,148,196,.55) 100%);
  --grad-soft: linear-gradient(180deg, var(--c-mist) 0%, var(--c-white) 100%);
  --grad-cta:  linear-gradient(135deg, var(--c-blue) 0%, var(--c-teal-text) 100%);
  --grad-deep: linear-gradient(135deg, #001F35 0%, #003B5C 50%, #005792 100%);

  --shadow-sm: 0 1px 2px rgba(10,25,41,.06), 0 1px 3px rgba(10,25,41,.05);
  --shadow-md: 0 4px 6px -1px rgba(10,25,41,.07), 0 2px 4px -2px rgba(10,25,41,.05);
  --shadow-lg: 0 14px 30px -10px rgba(0,59,92,.18), 0 6px 12px -4px rgba(0,59,92,.10);
  --shadow-xl: 0 28px 56px -16px rgba(0,59,92,.28), 0 10px 24px -8px rgba(0,59,92,.16);
  --shadow-glow: 0 0 0 1px rgba(8,148,196,.18), 0 12px 30px -8px rgba(8,148,196,.32);

  /* Card hover tokens (--pop-time, --pop-glow, --pop-scale) live with the "SHARED CARD POP" block near the end */

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  /* Type */
  --font-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: 'Fraunces', "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------- Reset --------- */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding keeps anchor targets, the skip-link target and keyboard-focused controls clear of the fixed header
   (97px scrolled on desktop, about 69px on phones). --alert-h is set on <html> by main.js while the alert bar shows.
   Phones get 6rem, not 5rem, because a deep-linked .reveal target still sits 20px low when the page scrolls to it. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--alert-h, 0px) + 7rem); }
@media (max-width: 760px) { html { scroll-padding-top: calc(var(--alert-h, 0px) + 6rem); } }
/* Landscape phones use the shorter phone header too (see "Header"), so the same offset. */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 1024px) { html { scroll-padding-top: calc(var(--alert-h, 0px) + 6rem); } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-body);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* clip (not hidden) so stray horizontal overflow is cut without turning body into a scroll container */
html, body { overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue); text-decoration: none; transition: color .2s var(--ease-soft); }
a:hover { color: var(--c-teal-text); }   /* small-text teal: --c-teal is only 3.5:1 on white */
/* Keep phone numbers, "2 a.m." style phrases and short compounds on one line (no mid-number wraps on phones) */
a[href^="tel:"] { white-space: nowrap; }
.nowrap { white-space: nowrap; }
button { font-family: inherit; cursor: pointer; }

/* --------- Refined focus states (accessibility + polish) --------- */
/* Blue ring + white halo on light surfaces (the cyan ring was ~1.8:1 on white). */
:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 2px; border-radius: 4px; box-shadow: 0 0 0 6px #fff; }
/* :where() keeps this at class-level specificity, so pills, round buttons and cards keep their own shape when focused; unstyled links still get a rounded ring. */
:where(a, button, input, select, textarea):focus-visible { border-radius: 6px; }
.btn:focus-visible { outline-offset: 3px; }
main:focus { outline: none; }
/* Dark surfaces: flip to the cyan ring with a navy halo */
.hero :focus-visible, .site-footer :focus-visible, .page-banner :focus-visible, .section--deep :focus-visible, .cta-banner :focus-visible, .err-stage :focus-visible {
  outline-color: var(--c-cyan);
  box-shadow: 0 0 0 6px rgba(0,31,53,.9);
}

/* --------- Selection --------- */
::selection { background: rgba(8,148,196,.25); color: var(--c-ink); }
h1, h2, h3, h4, h5 { color: var(--c-ink); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
/* Even out headline line lengths so no heading ends on a lone word. Bare h1 is left out on purpose:
   the home hero h1 keeps its own layered build and .hero__line balance. */
h2, h3, .page-banner h1 { text-wrap: balance; }
/* Intro paragraphs: avoid a one-word last line. The two-line industry leads need balance ("pretty"
   leaves "developments." alone in Edge); their line count and card heights stay the same. */
.section-head .lead, .page-banner .lead { text-wrap: pretty; }
/* Body copy avoids a lone last word (e.g. the footer's '1993.'). Longhand, so nowrap elements are untouched;
   browsers without pretty wrap as before. */
p, li, dd, summary { text-wrap-style: pretty; }
/* Div cells and captions the p/li rule above does not reach (home compare list, credentials ribbon). */
.compare > .cell, .cred-text span { text-wrap-style: pretty; }
/* Balance is tuned for the two-line desktop leads. Narrower than this they run 3-4 lines and the
   balancer breaks well short of the measure, so let them wrap normally on phones and small tablets. */
@media (min-width: 761px) { .industry-card .ind-lead { text-wrap: balance; } }
p { margin: 0 0 1em; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 110;
  pointer-events: none;
}
/* Drawn with scaleX, not width, so updating it never triggers layout (main.js writes --p as a 0-1 fraction) */
.scroll-progress::before {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--c-teal), var(--c-cyan));
  box-shadow: 0 0 8px rgba(33,212,255,.5);
  transition: transform 80ms linear;
}
/* Where supported (Chrome/Edge 115+, Safari 26+) the bar follows the scroll on the compositor and main.js skips its per-scroll write.
   animation-timeline must come after the animation shorthand, which resets it. main.js uses the same feature test. */
@supports (animation-timeline: scroll()) {
  .scroll-progress::before {
    transition: none;
    animation: teiScrollProgress linear both;
    animation-duration: auto;
    animation-timeline: scroll(root block);
  }
}
@keyframes teiScrollProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Visually hidden - for accessible labels and structural headings */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Back to top */
.back-top {
  position: fixed;
  right: 1.5rem;
  bottom: calc(1.5rem + 56px + .85rem); /* sits above the chat launcher (56px + gap) */
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--grad-cta);
  color: #fff;
  border: 0;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden; /* visibility, not just opacity, keeps it out of the tab order while hidden (as the chat launcher does) */
  transform: translateY(12px) scale(.9);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .2s, visibility 0s linear .25s;
  z-index: 105;
  pointer-events: none;
}
.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-top:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px) scale(1); }
@media (max-width: 600px) {
  .back-top { right: 1rem; bottom: calc(1rem + 52px + .85rem); width: 44px; height: 44px; } /* above the 52px phone launcher */
}
/* The open contact popover covers the spot where back-to-top floats, so step it aside meanwhile. */
body:has(.chat-popover.is-open) .back-top { opacity: 0; visibility: hidden; pointer-events: none; }
/* The open phone menu covers the page: the floating back-to-top and contact buttons step aside, as back-to-top already does for the popover. */
body.nav-open .back-top, body.nav-open .chat-launcher, body.nav-open .chat-popover { opacity: 0; visibility: hidden; pointer-events: none; }

/* --------- Service alert bar (boil-water notices, system events) --------- */
.alert-bar {
  position: relative;
  background: linear-gradient(90deg, #003B5C 0%, #005792 50%, #0894C4 100%);
  color: #fff;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .01em;
  z-index: 101;
  isolation: isolate;
}
.alert-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(33,212,255,.18), transparent);
  background-size: 200% 100%;
  animation: alertShimmer 6s linear infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes alertShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .alert-bar::before { animation: none; } }
.alert-bar__inner {
  display: flex; align-items: center; gap: .85rem;
  padding: .7rem var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.alert-bar__pulse {
  flex-shrink: 0;
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 0 0 rgba(33,212,255,.65);
  animation: alertPulse 2s ease-in-out infinite;
}
@keyframes alertPulse {
  0%   { box-shadow: 0 0 0 0 rgba(33,212,255,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(33,212,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(33,212,255,0); }
}
.alert-bar__label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-cyan);
  flex-shrink: 0;
}
.alert-bar__msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-bar__msg a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.alert-bar__msg a:hover { color: var(--c-cyan); }
.alert-bar__close {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  padding: .6rem; /* ~44px hit area; negative margin keeps the bar height unchanged */
  margin: -.35rem -.35rem -.35rem 0;
  border-radius: 6px;
  display: grid; place-items: center;
  transition: color .2s, background .2s;
}
.alert-bar__close:hover { color: #fff; background: rgba(255,255,255,.10); }
@media (max-width: 600px) {
  .alert-bar__label { display: none; }
  .alert-bar__inner { padding: .55rem var(--gutter); gap: .55rem; align-items: flex-start; }
  /* let the message (and its CTA link) wrap instead of ellipsizing */
  .alert-bar__msg { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
}
/* Push the sticky header down when alert bar is showing */
body.has-alert .site-header { top: var(--alert-h, 0px); }
.alert-bar.is-hidden { display: none; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: .85rem 1.5rem;
  background: var(--c-blue);
  color: #fff;
  z-index: 200;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: top .2s var(--ease-soft);
  box-shadow: var(--shadow-lg);
}
.skip-link:focus, .skip-link:focus-visible {
  top: 1rem;
  color: #fff;
  outline: 3px solid var(--c-cyan);
  outline-offset: 2px;
}

/* --------- Layout --------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
/* White section before the white CTA band: drop its bottom padding so the gap above the banner matches pages whose
   last section is coloured (was 120 + 80px of white; now 80px at 1440, sampling about 94, and 48px on phones).
   Any new coloured section modifier (for example .section--navy) must be added to the :not() list. */
.section:not(.section--mist, .section--deep, .section--cream, .section--accent):has(+ .section > .container > .cta-banner) { padding-bottom: 0; }
.section--mist {
  background: var(--c-mist);
  position: relative;
}
/* Subtle topographic-style decorative SVG behind mist sections (very faint) */
.section--mist::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(900px circle at 8% 12%, rgba(8,148,196,.045), transparent 50%),
    radial-gradient(700px circle at 92% 88%, rgba(33,212,255,.04), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.section--mist > * { position: relative; z-index: 1; }

/* New: warm ivory/sand section variant for content variety */
.section--cream {
  background: linear-gradient(180deg, #fdfcf8 0%, #f6f1e8 100%);
  position: relative;
}
.section--cream::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(1200px circle at 50% 0%, rgba(8,148,196,.05), transparent 60%);
  pointer-events: none;
}
.section--cream > * { position: relative; z-index: 1; }

/* New: gradient strip variant - subtle blue-tinted background for highlight sections */
.section--accent {
  background: linear-gradient(180deg, #e9f5fb 0%, #f3f9fc 60%, var(--c-mist) 100%);
  position: relative;
}
.section--accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px circle at 0% 0%, rgba(8,148,196,.10), transparent 50%),
    radial-gradient(900px circle at 100% 50%, rgba(33,212,255,.08), transparent 55%);
  pointer-events: none;
}
.section--accent > * { position: relative; z-index: 1; }

/* Inline section divider - a subtle wave between two same-color sections */
.section-divider {
  position: relative;
  height: 80px;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}
.section-divider svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.section-divider--white-to-mist { background: #fff; }
.section-divider--white-to-mist svg path { fill: var(--c-mist); }
.section-divider--mist-to-white { background: var(--c-mist); }
.section-divider--mist-to-white svg path { fill: #fff; }
.section-divider--white-to-deep { background: #fff; }
.section-divider--white-to-deep svg path { fill: var(--c-navy); }

/* Section heading flourish - a very light decorative underline shape under section h2's
   (.section-head h2 itself is defined once, under "Section head" below) */
.section-head--center h2::after {
  content: '';
  display: block;
  width: 56px; height: 3px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--c-teal), var(--c-cyan));
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(33,212,255,.5);
}

/* --- Section ribbon: thin accent bar at the top of certain heavy sections --- */
.section--accent::after,
.section--cream::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--c-teal) 30%, var(--c-cyan) 50%, var(--c-teal) 70%, transparent 100%);
  opacity: .6;
}
.section--deep {
  background: var(--grad-deep);
  color: rgba(255,255,255,.85);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }
/* Atmospheric glow inside deep sections */
.section--deep::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px circle at 80% 0%, rgba(33,212,255,.14), transparent 55%),
    radial-gradient(700px circle at 5% 100%, rgba(8,148,196,.16), transparent 55%);
  pointer-events: none;
}

/* --------- Wave dividers between sections --------- */
.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin: 0;
  line-height: 0;
  position: relative;
}
.wave-divider svg { display: block; width: 100%; height: 100%; }
.wave-divider--mist-to-white { background: var(--c-mist); }
.wave-divider--mist-to-white svg { fill: #fff; }
.wave-divider--white-to-mist { background: #fff; }
.wave-divider--white-to-mist svg { fill: var(--c-mist); }
.wave-divider--deep-to-white { background: var(--c-navy); }
.wave-divider--deep-to-white svg { fill: #fff; }
.wave-divider--white-to-deep { background: #fff; }
.wave-divider--white-to-deep svg { fill: var(--c-navy); }
.wave-divider--deep-to-mist { background: var(--c-navy); }
.wave-divider--deep-to-mist svg { fill: var(--c-mist); }
.wave-divider--mist-to-deep { background: var(--c-mist); }
.wave-divider--mist-to-deep svg { fill: var(--c-navy); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700;
  color: var(--c-teal-text);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-cyan));
  border-radius: 2px;
}
/* Service split number-led eyebrow ("01 / Drinking Water Treatment") */
.split-content > .eyebrow:first-child {
  font-size: .82rem;
}
.split-content > .eyebrow:first-child::before {
  width: 32px;
}

/* Big design-led numeral watermark for service split sections.
   Anchored to the copy column, not to the row: .split is align-items:center, so a row-anchored mark was positioned by
   the PHOTO height and struck through the "0x / ..." eyebrow on most blocks. The copy column now reserves the mark's own
   height as padding and the mark is pinned to the top of that reserve, so it sits above the eyebrow on every block and
   can never spill onto the photo above, the row above or a section edge. One token keeps the size and the reserve in step.
   On reverse rows the copy is the right-hand column, so the mark follows it into the gutter by itself (no grid maths to
   keep in sync, which is what the old .split--reverse calc needed). */
.split > .split-content[data-numeral] {
  --ts-numeral: clamp(8rem, 16vw, 16rem);
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--ts-numeral) * .92);
}
.split > .split-content[data-numeral]::before {
  content: attr(data-numeral);
  position: absolute;
  top: 0;
  left: -1.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--ts-numeral);
  line-height: 1;
  letter-spacing: -.04em;
  /* italic digits lean past their box; background-clip: text needs the room or the last digit is sliced */
  padding-right: .3em;
  background: linear-gradient(135deg, rgba(8,148,196,.16) 0%, rgba(33,212,255,.04) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  z-index: -1;
  user-select: none;
}
/* Stacked rows: only the size token and the inset change, never the offset, so the reserve stays tied to the mark. */
@media (max-width: 920px) {
  .split > .split-content[data-numeral] { --ts-numeral: clamp(6rem, 22vw, 9rem); }
  .split > .split-content[data-numeral]::before { left: -.5rem; }
}
.section--deep .eyebrow { color: var(--c-cyan); }
.section--deep .eyebrow::before { background: var(--c-cyan); }

.section-head { max-width: 760px; margin: 0 auto 3.5rem; text-align: center; }
/* a heading that ends its section (nothing below it) needs no gap, so the band keeps even padding */
.section-head:last-child { margin-bottom: 0; }
.section-head--left { text-align: left; margin-inline: 0; }
.section-head h2 {
  position: relative;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
}
.section-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  /* blue→teal gradient text comes from the shared `h1 em, h2 em, h3 em` rule (PASS 3) */
}
.section--deep .section-head h2 em {
  background: linear-gradient(135deg, #66E1FF, var(--c-cyan), #6FB5DF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(33,212,255,.18));
}
.section-head .lead {
  font-size: 1.125rem;
  color: var(--c-muted);
  margin-top: 1rem;
  font-feature-settings: "kern", "liga", "calt";
}
.section--deep .section-head .lead { color: rgba(255,255,255,.75); }

/* --------- Buttons --------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
/* The hidden attribute has to beat .btn's own display value, or an author rule silently defeats it:
   main.js keeps "Clear answers" hidden until an answer exists. */
.btn[hidden] { display: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform .35s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-lg); }

.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn-ghost:hover { background: var(--c-white); border-color: var(--c-teal); color: var(--c-blue); }

.btn-light { background: rgba(255,255,255,.10); color:#fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.18); color:#fff; border-color: rgba(255,255,255,.45); }

.btn-solid-light { background: #fff; color: var(--c-blue); }
.btn-solid-light:hover { color: var(--c-blue); box-shadow: var(--shadow-lg); }

/* --------- Header --------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease-soft), box-shadow .3s var(--ease-soft), padding .3s var(--ease-soft);
  padding-block: 1.1rem;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(10,25,41,.06), 0 8px 30px -16px rgba(10,25,41,.10);
  padding-block: .65rem;
  border-bottom-color: rgba(8,148,196,.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img {
  height: 100px;
  width: auto;
  transition: height .3s var(--ease-soft), filter .3s var(--ease-soft);
}
.is-scrolled .brand img { height: 76px; }
@media (max-width: 760px) {
  .brand img { height: 56px; }
  .is-scrolled .brand img { height: 48px; }
}
/* Landscape phones are wider than 760px but short: use the phone logo so the fixed header does not take a third of the screen.
   The page banner and scroll-padding follow with the same query (see "Page banner" and "Reset"). */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 1024px) {
  .brand img { height: 56px; }
  .is-scrolled .brand img { height: 48px; }
}
/* Over the hero (transparent header, not on a light/inner page), invert the
   logo to white so the deep blue + teal SVG strokes don't blend into the
   water background. Filter transitions back smoothly when the header solidifies. */
.site-header:not(.is-scrolled):not(.is-light) .brand img {
  filter: brightness(0) invert(1);
}
/* Brand-text is intentionally hidden - the logo carries the brand */
.brand-text { display: none; }

/* Header on transparent hero state - invert (full white, with the scrim below, so the labels reach 4.5:1 on the light streams).
   Selector left without :not(.is-light) on purpose: at that specificity it would outrank the phone drawer's ink links. */
.site-header:not(.is-scrolled) .nav-link { color: #fff; }
.site-header:not(.is-scrolled) .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
/* Hover colours for the home hero only, on desktop only: inner pages (.is-light) keep ink on hover at the top of the page,
   as when scrolled (white or cyan vanished on their white header), and the phone drawer keeps its own hover rules below. */
@media (min-width: 921px) {
  .site-header:not(.is-scrolled):not(.is-light) .nav-link:hover { color: #fff; }
  .site-header:not(.is-scrolled):not(.is-light) .btn-ghost:hover { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.7); }
}
.site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }
/* Soft scrim behind the header strip over the home hero, so the nav reads at 4.5:1 on the brightest light-stream band.
   It fades to nothing at the header's bottom edge and fades out with the scrolled-header transition. */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0,22,40,.42) 0%, rgba(0,22,40,.30) 55%, rgba(0,22,40,0) 100%); opacity: 0; transition: opacity .3s var(--ease-soft); }
.site-header:not(.is-scrolled):not(.is-light)::before { opacity: 1; }

/* on light pages (no hero), force solid */
.site-header.is-light { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 rgba(10,25,41,.06); }
.site-header.is-light .nav-link { color: var(--c-ink); }
.site-header.is-light .btn-ghost { color: var(--c-ink); border-color: var(--c-line); }
.site-header.is-light .nav-toggle span { background: var(--c-ink); } /* hamburger was white-on-white on inner pages before scroll */

/* --------- Nav --------- */
.nav { display: flex; align-items: center; gap: 1.25rem; }
/* Call pill: shown in the phone drawer (920px and below, see that block) and now also beside Get a Quote
   in the desktop header when the header is wide enough, so desktop visitors see the number in the first screen.
   Container query in rem (not a px media query): the header content is capped at 1160px, so a larger default
   font keeps the pill hidden instead of squashing the logo. container-type starts at 921px so the fixed phone
   drawer is never inside a container. Two classes so it beats .btn's display:inline-flex. */
.nav .nav-call { display: none; }
@media (min-width: 921px) { .header-inner { container-type: inline-size; } }
@container (min-width: 70rem) { .nav .nav-call { display: inline-flex; } }
/* Tap-to-call circle in the phone header (920px and below, styled in that block) so a call is one tap from the
   first screen of every page. Hidden above 920px: the desktop header has the call pill instead and no spare room. */
.header-call { display: none; }
.nav-list { display: flex; align-items: center; gap: 1.3rem; list-style: none; padding: 0; margin: 0; }
@media (max-width: 1220px) { .nav-list { gap: .95rem; } .nav { gap: .8rem; } .nav-link { font-size: .9rem; } }
@media (max-width: 1040px) { .nav-list { gap: .75rem; } .nav { gap: .65rem; } .nav-link { font-size: .86rem; } }
.nav-link {
  position: relative; color: var(--c-ink); font-weight: 500; font-size: .96rem;
  padding: .35rem 0; transition: color .25s var(--ease-out);
}
/* Gradient underline that grows out from the center */
.nav-link::after {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: -3px; height: 2px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-cyan));
  border-radius: 2px;
  transition: left .35s var(--ease-out), right .35s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after, .nav-link[aria-current="page"]::after { left: 0; right: 0; }

.nav-toggle { display: none; background: none; border: 0; padding: .65rem .5rem; gap: 5px; flex-direction: column; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  /* Phone header call circle: margin-left auto pushes it beside the menu button, and the negative right margin
     trims the 2rem header gap to .75rem. Static (no pop or ripple). Two classes so the global a:hover teal and
     the 6px focus radius cannot recolour the glyph or square the circle; the focus ring keeps its halo. */
  .site-header .header-call { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; margin-right: -1.25rem; border-radius: 50%; background: var(--grad-cta); color: #fff; box-shadow: 0 6px 16px -8px rgba(0,87,146,.6); flex-shrink: 0; }
  .site-header .header-call:hover { color: #fff; }
  .site-header .header-call:focus-visible { border-radius: 50%; box-shadow: 0 0 0 6px #fff; }
  .site-header:not(.is-scrolled):not(.is-light) .header-call:focus-visible { outline-color: var(--c-cyan); box-shadow: 0 0 0 6px rgba(0,31,53,.9); }
  /* The header's backdrop-filter (scrolled / light state) makes it the containing block
     for the fixed drawer, which clipped the drawer to the header strip. Make that
     containing block explicit in every state (translateZ) and hang the drawer off the
     header's own bottom edge so it fills the rest of the viewport at any header height. */
  .site-header { transform: translateZ(0); }
  .nav {
    position: fixed; top: 100%; left: 0; right: 0; bottom: auto;
    height: calc(100vh - 100% - var(--alert-h, 0px));
    height: calc(100dvh - 100% - var(--alert-h, 0px));
    flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; padding: 2rem var(--gutter);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden; /* closed drawer leaves the tab order / accessibility tree */
    transition: transform .35s var(--ease-out), visibility 0s .35s;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: .25rem; width: 100%; }
  .nav-list li { width: 100%; border-bottom: 1px solid var(--c-fog); }
  .nav-list a { display: block; padding: 1rem 0; font-size: 1.1rem; }
  /* Both drawer pills (quote, call) centre their label; flex-shrink 0 because .btn-primary's
     overflow:hidden would otherwise let the column squash the call pill on short phones (the drawer scrolls instead). */
  .nav .btn { margin-top: 1.25rem; justify-content: center; flex-shrink: 0; }
  .nav .nav-call { display: inline-flex; }
  /* Drawer: the search row carries the word "Search" so it is not an unlabelled grey bar next to the
     labelled pills. height:auto + min-height keeps the word inside the bar under user text scaling. */
  .nav .search-trigger { margin: 1rem 0 .5rem; width: 100%; height: auto; min-height: 48px; gap: .6rem; justify-content: center; padding: .85rem; font-size: .95rem; font-weight: 600; border-radius: 10px; }
  .nav .search-trigger span { display: inline; }
  /* The drawer is always white: undo the transparent-header (over-hero) inversions */
  .site-header .nav .nav-link { color: var(--c-ink); }
  .site-header .nav .nav-link:hover, .site-header .nav .nav-link.is-active, .site-header .nav .nav-link[aria-current="page"] { color: var(--c-teal-text); }
  .site-header .nav .btn-ghost { color: var(--c-ink); border-color: var(--c-line); }
  .site-header .nav .btn-ghost:hover { background: var(--c-white); border-color: var(--c-teal); color: var(--c-blue); }
  .site-header .nav .search-trigger,
  .site-header:not(.is-scrolled):not(.is-light) .nav .search-trigger { color: var(--c-ink); background: var(--c-mist); border-color: var(--c-fog); }
  .site-header .nav .search-trigger:hover,
  .site-header:not(.is-scrolled):not(.is-light) .nav .search-trigger:hover { color: var(--c-blue); background: var(--c-fog); }
}

/* --------- Hero --------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  will-change: transform;
  overflow: hidden;
  /* Deep brand blue fallback - any transparent pixels from displacement
     blend into water-colored darkness, never reveal page background. */
  background: #003B5C;
}
/* The hero img sits in a <picture> (phones get a portrait crop): contents keeps the img's
   box, mask and animations sized against .hero__bg exactly as before. */
.hero__bg picture { display: contents; }
.hero__bg img {
  width: 124%; height: 124%;
  margin: -12% 0 0 -12%; /* bigger bleed on every side so displaced edges sit well off-screen */
  object-fit: cover;
  object-position: center top; /* anchor crop to the top of the source image - maximum sky/light */
  transform: scale(1.05);
  animation: heroZoom 14s var(--ease-out) forwards, heroSwim 52s ease-in-out infinite;
  /* SVG-filter underwater shimmer - animates via SMIL on the filter itself */
  filter: url(#hero-water-shimmer);
  /* GPU hint for the animated filter */
  will-change: transform, filter;
  /* Soft inset mask - fades the image edge into the deep-blue .hero__bg fallback,
     hiding any wavy displacement artifact at the source bounding-box edges. */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, #000 6%, #000 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-image:
    linear-gradient(to right,  transparent 0%, #000 6%, #000 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes heroSwim {
  0%   { transform: scale(1.02) translate3d(0, 0, 0); }
  25%  { transform: scale(1.025) translate3d(-6px, -3px, 0); }
  50%  { transform: scale(1.02) translate3d(0, -8px, 0); }
  75%  { transform: scale(1.025) translate3d(6px, -3px, 0); }
  100% { transform: scale(1.02) translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg img {
    filter: none !important;
    animation: none !important;
    transform: none;
  }
}

/* Animated surface waves at the bottom of the hero */
.hero__waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero__waves svg {
  position: absolute;
  left: -10%;
  bottom: 0;
  width: 120%;
  /* the global img/svg max-width:100% would cap the 120% bleed and cut the waves off at 90% */
  max-width: none;
  height: 100%;
  display: block;
}
.hero__wave {
  transform-origin: center;
  will-change: transform;
}
.hero__wave--back  { animation: heroWave1 28s ease-in-out infinite; }
.hero__wave--mid   { animation: heroWave2 22s ease-in-out infinite; }
.hero__wave--front { animation: heroWave3 16s ease-in-out infinite; }
@keyframes heroWave1 {
  0%, 100% { transform: translateX(0)    translateY(0); }
  50%      { transform: translateX(-30px) translateY(-2px); }
}
@keyframes heroWave2 {
  0%, 100% { transform: translateX(0)    translateY(0); }
  50%      { transform: translateX(35px) translateY(-3px); }
}
@keyframes heroWave3 {
  0%, 100% { transform: translateX(0)    translateY(0); }
  50%      { transform: translateX(-22px) translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__waves { display: none; }
}
/* The extra left-weighted layer darkens only the text column so the intro reads at 4.5:1 or better,
   while the right side and the light streams (::before / ::after, painted above this) stay bright. */
.hero__overlay { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,22,40,.62) 0%, rgba(0,22,40,.46) 38%, rgba(0,22,40,.16) 62%, rgba(0,22,40,0) 80%),
    var(--grad-hero); }
.hero__veil  { position: absolute; inset: auto 0 0 0; height: 50%;
  background: linear-gradient(180deg, transparent, rgba(0,15,30,.6)); z-index: -1; }

/* Animated god-rays / light streams piercing down from the top of the hero */
.hero__overlay::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 140%;
  height: 80%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background:
    /* three soft conic light shafts at varying angles + opacities */
    linear-gradient(190deg, rgba(180, 235, 255, .32) 0%, rgba(180, 235, 255, .12) 28%, transparent 55%),
    linear-gradient(170deg, rgba(220, 245, 255, .26) 0%, rgba(220, 245, 255, .08) 30%, transparent 60%),
    linear-gradient(200deg, rgba(140, 220, 255, .22) 0%, transparent 45%);
  mix-blend-mode: screen;
  filter: blur(6px);
  opacity: .9;
  animation: heroLightDrift 14s ease-in-out infinite alternate;
}
.hero__overlay::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% -10%, rgba(220, 245, 255, .35) 0%, rgba(180, 235, 255, .15) 30%, transparent 60%);
  mix-blend-mode: screen;
}
@keyframes heroLightDrift {
  0%   { transform: translateX(-50%) translateY(0) scale(1); opacity: .85; }
  50%  { transform: translateX(-48%) translateY(-2%) scale(1.05); opacity: 1; }
  100% { transform: translateX(-52%) translateY(2%) scale(1.03); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__overlay::before { animation: none !important; }
}
/* Cinematic corner vignette */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,15,30,.45) 100%);
}

/* Floating droplet motif */
.hero__droplets { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__droplets span {
  position: absolute;
  display: block;
  width: var(--s, 14px);
  height: calc(var(--s, 14px) * 1.35);
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(33,212,255,.18));
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  filter: blur(.5px);
  opacity: 0;
  transform: translate3d(0,0,0);
  animation: floatUp var(--d, 14s) var(--delay, 0s) ease-in-out infinite;
}
.hero__droplets span::after {
  content: '';
  position: absolute; inset: 18% 28% auto auto;
  width: 22%; height: 22%;
  background: rgba(255,255,255,.55);
  border-radius: 50%;
  filter: blur(1px);
}
@keyframes floatUp {
  0%   { opacity: 0; transform: translate3d(0, 30px, 0) scale(.9); }
  15%  { opacity: .9; }
  85%  { opacity: .8; }
  100% { opacity: 0; transform: translate3d(0, -120vh, 0) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__droplets span { animation: none; opacity: 0; }
}
/* Phones / touch: drop the SVG displacement filter, blurred blend layer and droplets:
   keep only the simple zoom so the hero stays cheap to paint. */
@media (max-width: 760px), (pointer: coarse) {
  .hero__bg img {
    filter: none;
    width: 110%; height: 110%;
    margin: -5% 0 0 -5%;
    animation: heroZoom 14s var(--ease-out) forwards;
  }
  .hero__overlay::before { animation: none; filter: none; width: 100%; opacity: .6; }
  .hero__droplets { display: none; }
}
/* Where .hero__bg img has filter:none (phones, touch, reduced motion) the shimmer filter is unused; display:none also
   stops its SMIL clock. This media list must match both filter:none blocks above: update it if either one changes. */
@media (max-width: 760px), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .hero-fx-defs { display: none; }
}

.hero__inner { padding-top: 8rem; padding-bottom: 6rem; max-width: 920px; }
/* Tag line under the hero headline - whole phrase set in the serif italic formerly used for "since 1993" */
.hero__eyebrow {
  display: flex; align-items: center; gap: 1rem;
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--c-cyan);
  white-space: nowrap;               /* the tag always stays on one line */
  text-shadow: 0 1px 2px rgba(0,18,34,.6), 0 0 14px rgba(0,18,34,.5);   /* legible over the brightest light streams */
}
@media (max-width: 400px) {
  .hero__eyebrow { gap: .6rem; font-size: .95rem; }
  .hero__eyebrow::before { width: 20px; }
}
/* Phones: pale end of the dark-surface cyan ramp plus a firmer halo, so the tag line reads over the light streams (4.5:1) */
@media (max-width: 760px) {
  .hero__eyebrow { color: #b8f1ff; text-shadow: 0 0 2px rgba(0,18,34,.9), 0 1px 3px rgba(0,18,34,.85), 0 0 10px rgba(0,18,34,.7), 0 0 20px rgba(0,18,34,.5); }
}
.hero__eyebrow::before {
  content: '';
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, var(--c-cyan), rgba(33,212,255,0));
  display: inline-block;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.875rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -.03em;
  color: #fff; margin: 0 0 .85rem; /* headline leads the hero; the tag line sits directly beneath it */
  text-shadow: 0 2px 30px rgba(0,15,30,.35);
}
/* When JS hasn't split words yet, fall back to a simple fade-up on the whole h1 */
.hero h1:not(.words-split) {
  animation: heroIn 1s var(--ease-out) both;
  animation-delay: .2s;
}
/* Word-by-word reveal once JS has split the h1 into <span class="word"> chunks */
.hero h1.words-split .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  filter: blur(6px);
  animation: wordIn .85s var(--ease-out) forwards;
  animation-delay: var(--w-delay, 0s);
}
/* The italic em is animated as a single unit; preserve its block display */
.hero h1.words-split .word.word--block {
  display: block;
}
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); filter: none; } /* end on none so no filter surface lingers over the animated headline */
}
.hero__eyebrow { animation: heroIn .9s var(--ease-out) both; animation-delay: .7s; } /* follows the headline */
.hero p.lead { animation: heroIn 1s var(--ease-out) both; animation-delay: 1.05s; }
.hero__actions { animation: heroIn 1s var(--ease-out) both; animation-delay: 1.2s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero__eyebrow, .hero p.lead, .hero__actions { animation: none; }
  .hero h1.words-split .word { opacity: 1; transform: none; filter: none; animation: none; }
}
/* The headline normally stays on one line: the font-size shrinks to the container width before
   it can overflow. Wrapping is allowed only as a safety valve (a visitor's text-spacing
   override, text-only zoom, an unusually wide fallback font) so the words are never clipped by
   .hero's overflow:hidden. Both layers share the grid cell, font and width, so they break at
   the same point and stay registered. The water tiles in .hero__fill are one line-height tall and
   repeat vertically, so every wrapped line gets its own waterline. */
.hero h1 .hero__line {
  display: block;
  white-space: normal;
  text-wrap: balance;                /* ignored where unsupported (those browsers wrap normally) */
  /* "Services you can trust" in Manrope 800 (tracking -.028em) measures ≈10.35em wide; 11.1 leaves a ~7% margin for the outline */
  font-size: min(1em, calc((100vw - 2.5rem) / 11.1));
}
.hero h1 em {
  display: block;
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  background: linear-gradient(135deg, #66E1FF 0%, var(--c-cyan) 50%, #6FB5DF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.025em;
  position: relative;
  filter: drop-shadow(0 0 35px rgba(33,212,255,.18));
}

/* ---- Hero headline: outlined letters with moving water inside ----
   Layers share one grid cell so they can never drift apart:
     .hero__outline = OUTLINE. The same words, thickened outward by two rings of hard text-shadows
                    (round, spike-free corners that -webkit-text-stroke cannot give): an inner
                    dark line for crisp separation, then a bright cyan hairline traced outside
                    it. Static and on its own layer, so it is rasterised once.
     .hero__fill  = CENTRE. White letters whose lower half holds two wave layers drifting in
                    opposite directions, plus a sheen that glides across once per cycle. Only
                    background-position animates, on its own layer, so each frame repaints
                    just this one small element. No images, no JavaScript.
   Tune with the custom properties below. Motion stops under prefers-reduced-motion. */
.hero h1 em.hero__line,
.hero h1.words-split em.hero__line.word--block {
  --hero-fill-top: #FFFFFF;
  --hero-fill-bottom: #E6F8FF;
  --hero-line: #02304D;        /* inner dark line */
  --hero-trace: #45D9FF;       /* outer traced hairline */
  --o1: .024em;                /* inner line thickness */
  --o2: .04em;                 /* outer edge of the traced hairline (must exceed --o1) */
  --water-level: .38em;        /* top of the back wave tile, measured from the top of the fill box */
  display: grid;
  justify-items: start;
  isolation: isolate;
  /* Upright Manrope ExtraBold - the same face as every inner-page title: plain, sturdy, professional */
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -.028em;
  background: none;
  -webkit-background-clip: border-box;
          background-clip: border-box;
  color: var(--hero-line);
  text-shadow: none;
  filter: none;
  padding: .06em 0 .12em;      /* room for the outline above caps and below descenders */
}
@media (max-width: 760px) {
  /* keep the two lines readable when the headline is small */
  .hero h1 em.hero__line,
  .hero h1.words-split em.hero__line.word--block { --o1: .034em; --o2: .058em; }
}
/* The outline words are generated content inside an empty aria-hidden span, so every screen
   reader skips them and the h1 holds its text only once for crawlers, copy and find-in-page. */
.hero h1 em.hero__line .hero__outline::before { content: attr(data-text); }
.hero h1 em.hero__line .hero__outline {
  -webkit-user-select: none;
          user-select: none;
  pointer-events: none;
  grid-area: 1 / 1;
  z-index: 0;
  color: var(--hero-line);
  -webkit-text-fill-color: var(--hero-line);
  transform: translateZ(0);          /* own layer: the animated fill above never re-rasterises this */
  text-shadow:
    /* inner dark line */
    calc(var(--o1) *  1)     calc(var(--o1) *  0)     0 var(--hero-line),
    calc(var(--o1) *  .9659) calc(var(--o1) *  .2588) 0 var(--hero-line),
    calc(var(--o1) *  .866)  calc(var(--o1) *  .5)    0 var(--hero-line),
    calc(var(--o1) *  .7071) calc(var(--o1) *  .7071) 0 var(--hero-line),
    calc(var(--o1) *  .5)    calc(var(--o1) *  .866)  0 var(--hero-line),
    calc(var(--o1) *  .2588) calc(var(--o1) *  .9659) 0 var(--hero-line),
    calc(var(--o1) *  0)     calc(var(--o1) *  1)     0 var(--hero-line),
    calc(var(--o1) * -.2588) calc(var(--o1) *  .9659) 0 var(--hero-line),
    calc(var(--o1) * -.5)    calc(var(--o1) *  .866)  0 var(--hero-line),
    calc(var(--o1) * -.7071) calc(var(--o1) *  .7071) 0 var(--hero-line),
    calc(var(--o1) * -.866)  calc(var(--o1) *  .5)    0 var(--hero-line),
    calc(var(--o1) * -.9659) calc(var(--o1) *  .2588) 0 var(--hero-line),
    calc(var(--o1) * -1)     calc(var(--o1) *  0)     0 var(--hero-line),
    calc(var(--o1) * -.9659) calc(var(--o1) * -.2588) 0 var(--hero-line),
    calc(var(--o1) * -.866)  calc(var(--o1) * -.5)    0 var(--hero-line),
    calc(var(--o1) * -.7071) calc(var(--o1) * -.7071) 0 var(--hero-line),
    calc(var(--o1) * -.5)    calc(var(--o1) * -.866)  0 var(--hero-line),
    calc(var(--o1) * -.2588) calc(var(--o1) * -.9659) 0 var(--hero-line),
    calc(var(--o1) *  0)     calc(var(--o1) * -1)     0 var(--hero-line),
    calc(var(--o1) *  .2588) calc(var(--o1) * -.9659) 0 var(--hero-line),
    calc(var(--o1) *  .5)    calc(var(--o1) * -.866)  0 var(--hero-line),
    calc(var(--o1) *  .7071) calc(var(--o1) * -.7071) 0 var(--hero-line),
    calc(var(--o1) *  .866)  calc(var(--o1) * -.5)    0 var(--hero-line),
    calc(var(--o1) *  .9659) calc(var(--o1) * -.2588) 0 var(--hero-line),
    /* outer traced hairline (painted beneath the dark line, so only its outer rim shows) */
    calc(var(--o2) *  1)     calc(var(--o2) *  0)     0 var(--hero-trace),
    calc(var(--o2) *  .9659) calc(var(--o2) *  .2588) 0 var(--hero-trace),
    calc(var(--o2) *  .866)  calc(var(--o2) *  .5)    0 var(--hero-trace),
    calc(var(--o2) *  .7071) calc(var(--o2) *  .7071) 0 var(--hero-trace),
    calc(var(--o2) *  .5)    calc(var(--o2) *  .866)  0 var(--hero-trace),
    calc(var(--o2) *  .2588) calc(var(--o2) *  .9659) 0 var(--hero-trace),
    calc(var(--o2) *  0)     calc(var(--o2) *  1)     0 var(--hero-trace),
    calc(var(--o2) * -.2588) calc(var(--o2) *  .9659) 0 var(--hero-trace),
    calc(var(--o2) * -.5)    calc(var(--o2) *  .866)  0 var(--hero-trace),
    calc(var(--o2) * -.7071) calc(var(--o2) *  .7071) 0 var(--hero-trace),
    calc(var(--o2) * -.866)  calc(var(--o2) *  .5)    0 var(--hero-trace),
    calc(var(--o2) * -.9659) calc(var(--o2) *  .2588) 0 var(--hero-trace),
    calc(var(--o2) * -1)     calc(var(--o2) *  0)     0 var(--hero-trace),
    calc(var(--o2) * -.9659) calc(var(--o2) * -.2588) 0 var(--hero-trace),
    calc(var(--o2) * -.866)  calc(var(--o2) * -.5)    0 var(--hero-trace),
    calc(var(--o2) * -.7071) calc(var(--o2) * -.7071) 0 var(--hero-trace),
    calc(var(--o2) * -.5)    calc(var(--o2) * -.866)  0 var(--hero-trace),
    calc(var(--o2) * -.2588) calc(var(--o2) * -.9659) 0 var(--hero-trace),
    calc(var(--o2) *  0)     calc(var(--o2) * -1)     0 var(--hero-trace),
    calc(var(--o2) *  .2588) calc(var(--o2) * -.9659) 0 var(--hero-trace),
    calc(var(--o2) *  .5)    calc(var(--o2) * -.866)  0 var(--hero-trace),
    calc(var(--o2) *  .7071) calc(var(--o2) * -.7071) 0 var(--hero-trace),
    calc(var(--o2) *  .866)  calc(var(--o2) * -.5)    0 var(--hero-trace),
    calc(var(--o2) *  .9659) calc(var(--o2) * -.2588) 0 var(--hero-trace);
  /* applied to the finished outlined shape: a soft drop for depth and a faint water glow */
  filter:
    drop-shadow(0 .05em .09em rgba(0, 18, 36, .5))
    drop-shadow(0 0 .45em rgba(33, 212, 255, .2));
}
.hero h1 em.hero__line .hero__fill {
  grid-area: 1 / 1;
  z-index: 1;
  /* padding + equal negative margin: the painted box grows to cover overhang and descenders
     (background-clip:text only paints inside the box) without moving the text */
  padding: .06em .1em .16em .05em;
  margin: -.06em -.1em -.16em -.05em;
  transform: translateZ(0);          /* own layer for the animated background */
  will-change: transform;            /* Chromium ignores translateZ(0) on Android phones with 1 GB RAM or less; this still creates the layer there */
  background-image:
    /* 1 sheen */
    linear-gradient(100deg, rgba(255,255,255,0) 34%, rgba(255,255,255,.92) 50%, rgba(255,255,255,0) 66%),
    /* 2 front wave, with a bright crest line. The tile is one line box tall (102 units = 1.02em, so 1 unit = .01em)
       and repeats down the box, one tile per wrapped line. The water stops at V77 here and V82 in the back wave.
       Both are 1.20em below the box top at --water-level .38em. That is just under the y descender (1.203em) and
       clear of the next line's cap tops (1.239em). Re-derive both V values if --water-level, the h1 line-height or
       the headline font changes. */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 102' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='17' x2='0' y2='100'%3E%3Cstop offset='0' stop-color='%2356DAFF'/%3E%3Cstop offset='1' stop-color='%23129CD3'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 25 Q25 9 50 25 T100 25 V77 H0Z' fill='url(%23g)'/%3E%3Cpath d='M0 25 Q25 9 50 25 T100 25' fill='none' stroke='%23fff' stroke-opacity='.9' stroke-width='2.4'/%3E%3C/svg%3E"),
    /* 3 back wave, opposite phase, paler */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 102' preserveAspectRatio='none'%3E%3Cpath d='M0 25 Q25 41 50 25 T100 25 V82 H0Z' fill='%23A9EBFF'/%3E%3C/svg%3E"),
    /* 4 base */
    linear-gradient(180deg, var(--hero-fill-top) 0%, var(--hero-fill-top) 45%, var(--hero-fill-bottom) 100%);
  background-size: 2.4em 100%, 1.5em 1.02em, 2.1em 1.02em, 100% 100%;   /* 1.02em = the h1 line-height: one wave tile per line */
  background-size: 2.4em 100%, 1.5em 1lh, 2.1em 1lh, 100% 100%;         /* where lh is supported: follows a visitor's line-height override */
  background-repeat: no-repeat, repeat, repeat, no-repeat;
  background-position:
    -2.6em 0,
    0 calc(var(--water-level) + .05em),
    0 var(--water-level),
    0 0;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  animation: heroWater 12s linear infinite;
}
/* One loop = the front wave travels two of its periods left (-3em), the back wave one of its
   periods right (+2.1em), so the loop is seamless. The sheen crosses during the first 16%.
   The slow-drift interval after the sheen is stepped, so the fill repaints about 30 times a
   second instead of on every display frame (each step is at most 0.65px):
   302 = (12s x 84%) x 30. Recompute it if the 12s duration or the 16% split changes. */
@keyframes heroWater {
  0% {
    background-position:
      -2.6em 0,
      0 calc(var(--water-level) + .05em),
      0 var(--water-level),
      0 0;
    /* sheen pass, 1.92s: linear (from the shorthand), full frame rate */
  }
  16% {
    background-position:
      calc(100% + 2.6em) 0,
      -.48em calc(var(--water-level) + .05em),
      .336em var(--water-level),
      0 0;
    animation-timing-function: steps(302, end);
  }
  100% {
    background-position:
      calc(100% + 2.6em) 0,
      -3em calc(var(--water-level) + .05em),
      2.1em var(--water-level),
      0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 em.hero__line .hero__fill { animation: none; }
}
/* main.js adds .is-offscreen while the hero is scrolled out of view or covered by the story video: every hero loop stops, so
   nothing repaints behind the visitor's back. Paused animations resume where they left off. */
.hero.is-offscreen *,
.hero.is-offscreen *::before,
.hero.is-offscreen *::after { animation-play-state: paused !important; }
/* ...but let the one-shot entrance fades finish off-screen (reload or tab-restore with a restored scroll
   position), so the headline, lead and buttons are already there when the visitor scrolls back up.
   Higher specificity beats the blanket rule; the loops match only the blanket rule and stay paused. */
.hero.is-offscreen h1 .word,
.hero.is-offscreen .hero__eyebrow,
.hero.is-offscreen p.lead,
.hero.is-offscreen .hero__actions { animation-play-state: running !important; }
/* High-contrast mode and print: drop the effect and show plain, solid text */
@media (forced-colors: active) {
  .hero h1 em.hero__line .hero__fill { background: none; -webkit-text-fill-color: CanvasText; color: CanvasText; animation: none; }
  .hero h1 em.hero__line .hero__outline { display: none; }
}
@media print {
  /* Firefox runs no CSS animations in print documents, so the JS-added .word would stay at its hidden base style.
     Chrome prints the live document, where the entrance animations may still sit at opacity 0. Force the hero copy visible either way. */
  .hero h1.words-split .word, .hero__eyebrow, .hero p.lead, .hero__actions { opacity: 1 !important; transform: none !important; }
  .hero h1.words-split .word { filter: none !important; }
  .hero h1 em.hero__line .hero__fill { background: none !important; -webkit-text-fill-color: #000 !important; animation: none !important; }
  .hero h1 em.hero__line .hero__outline { display: none !important; }
}
.hero p.lead {
  font-size: 1.2rem; max-width: 620px; color: rgba(255,255,255,.96);
  text-shadow: 0 1px 2px rgba(0,18,34,.55), 0 0 18px rgba(0,18,34,.45);
  margin-bottom: 2.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
/* the video button and its transcript link wrap as one unit, so the link never lands alone under another button */
.hero__video { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.75rem; }
.hero__transcript-link { display: inline-block; padding: .7rem 0; font-size: .85rem; color: rgba(255,255,255,.9); text-decoration: underline; text-underline-offset: 3px; }
.hero__transcript-link:hover { color: #fff; }
/* WCAG 2.2.2: an on-page way to stop the looping hero motion. Same small underlined style as the
   transcript link. It ships with [hidden] and main.js unhides it, so a visitor without JS never sees
   a control that would do nothing. No display value here, so [hidden] still hides it. */
.hero__motion-toggle { padding: .7rem 0; background: none; border: 0; font: inherit; font-size: .85rem; color: rgba(255,255,255,.9); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hero__motion-toggle:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .hero__motion-toggle { display: none; } }
/* The hero itself pauses through .hero.is-offscreen; these two loops live on the other pages and
   follow the same saved choice. Freeze only, so nothing is hidden or reset. */
html.motion-paused .page-banner__droplets span,
html.motion-paused .cta-banner::after { animation-play-state: paused; }

/* Video button: a thumbnail of the story video (a real frame from it) with a play disc on top,
   then the label. The picture tells visitors it is a video before they read a word. */
.btn-play {
  display: inline-flex; align-items: center; gap: .95rem;
  padding: .25rem .5rem .25rem .25rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: .98rem;
  text-align: left;
  cursor: pointer;
  border-radius: 16px;
  transition: transform .3s var(--ease-out);
}
.btn-play:hover { transform: translateY(-2px); }
.btn-play .play-thumb {
  position: relative;
  flex: none;
  display: grid; place-items: center;
  width: 128px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #1DB0E6;               /* the frame's own blue, shown while the image loads */
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.7), 0 10px 26px rgba(0,15,30,.5);
  transition: box-shadow .3s var(--ease-out);
}
.btn-play .play-thumb img {
  grid-area: 1 / 1;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
/* soft navy veil so the play disc reads on the bright frame */
.btn-play .play-thumb::after {
  content: '';
  grid-area: 1 / 1;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(2,32,56,.38) 0%, rgba(2,32,56,.12) 70%);
  transition: opacity .3s;
}
.btn-play:hover .play-thumb { box-shadow: 0 0 0 2px var(--c-cyan), 0 14px 32px rgba(0,15,30,.55), 0 0 26px rgba(33,212,255,.35); }
.btn-play:hover .play-thumb img { transform: scale(1.07); }
.btn-play:hover .play-thumb::after { opacity: .7; }
.btn-play .play-disc {
  grid-area: 1 / 1;
  z-index: 1;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(3,37,65,.82);
  border: 1.5px solid rgba(255,255,255,.95);
  box-shadow: 0 4px 14px rgba(0,15,30,.45);
  display: grid; place-items: center;
  position: relative;
  transition: background .25s, transform .3s var(--ease-out);
}
.btn-play .play-disc::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.85);
  opacity: 0;                       /* the keyframes drive opacity; nothing is left behind when the animation does not run */
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.85); opacity: .6; }
  60% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(.85); opacity: 0; }
}
.btn-play:hover .play-disc {
  background: var(--c-blue);
  transform: scale(1.1);
}
.btn-play .play-icon {
  width: 0; height: 0;
  border-left: 10px solid #fff;
  border-top: 6.5px solid transparent;
  border-bottom: 6.5px solid transparent;
  margin-left: 3px;
}
.btn-play .label { letter-spacing: -.005em; line-height: 1.25; white-space: nowrap; }
.btn-play .sub {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-top: 3px;
}
@media (max-width: 760px) {
  /* stacked layout on phones: the transcript link (when shown) sits beside the video button, or directly under it on narrow screens */
  .btn-play { margin-top: .35rem; }
  .btn-play .play-thumb { width: 116px; }
}
@media (forced-colors: active) {
  /* forced colours would paint the triangle's transparent borders and turn it into a square */
  .btn-play .play-disc { forced-color-adjust: none; background: Canvas; border-color: CanvasText; }
  .btn-play:hover .play-disc { background: Canvas; }   /* keep the system pair on hover */
  .btn-play .play-disc::before { display: none; }
  .btn-play .play-icon { border-left-color: CanvasText; }
}

/* Video modal */
.video-modal {
  position: fixed; inset: 0;
  background: rgba(0, 15, 30, .92);
  display: none;
  flex-direction: column; gap: .9rem;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}
.video-modal.is-open { display: flex; animation: lbFadeIn .3s var(--ease-out); }
.video-modal-frame {
  position: relative;
  /* Also capped by height so the 16:9 frame fits short windows (landscape phones): 7rem is the modal's 1.5rem top + bottom padding plus the caption-link line under the frame. vh first as the fallback. */
  width: min(96vw, 1100px, (100vh - 7rem) * 16 / 9);
  width: min(96vw, 1100px, (100dvh - 7rem) * 16 / 9);
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.video-modal-frame video { width: 100%; height: 100%; display: block; }
/* The player fills a frame with overflow:hidden, so the global :focus-visible ring on the video itself is clipped. Draw it on the frame instead. */
.video-modal-frame:has(video:focus-visible) { outline: 3px solid #fff; outline-offset: 3px; }
/* Link to the captioned copy of the same video on YouTube, shown under the player. */
.video-modal-note { margin: 0; max-width: min(96vw, 1100px); text-align: center; font-size: .92rem; line-height: 1.4; color: rgba(255,255,255,.86); }
.video-modal-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.video-modal-note a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 3px; }
.video-modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  z-index: 1;
}
.video-modal-close:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); }

@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero__inner { padding-top: 7rem; padding-bottom: 5rem; }
  /* Headline shrinks to fit its single line on narrow screens */
  .hero h1 { font-size: min(clamp(2.1rem, 9vw, 3.2rem), calc((100vw - 2.5rem) / 11.1)); }
  .hero p.lead { font-size: 1.05rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* --------- Page banner (non-home pages) --------- */
.page-banner {
  position: relative;
  padding: 11rem 0 5rem;
  background-color: var(--c-navy);
  background-image: url('../images/banner-water-900.jpg');   /* phones: 88 KB (the full file is 215 KB) */
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
/* Wider screens get the 1600 px texture. It sits under a 62-88% overlay, so more pixels buy nothing. */
@media (min-width: 900px) { .page-banner { background-image: url('../images/banner-water.jpg'); } }
/* Strong darkening overlay so headings stay luminous on the image */
.page-banner::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(135deg, rgba(0,31,53,.88) 0%, rgba(0,59,92,.78) 50%, rgba(0,87,146,.62) 100%),
    radial-gradient(circle at 80% 20%, rgba(33,212,255,.15), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(8,148,196,.18), transparent 55%);
}
/* Static cyan glow in the banner's top-right corner */
.page-banner::after {
  content: '';
  position: absolute;
  top: -10%; right: -10%;
  width: 60%; height: 120%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(33,212,255,.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
/* Decorative water droplets */
.page-banner__droplets {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.page-banner__droplets span {
  position: absolute;
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), rgba(33,212,255,.2) 70%, transparent);
  box-shadow: 0 0 10px rgba(33,212,255,.4);
  animation: bannerDropFall var(--dur, 14s) linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
  top: -20px;
  left: var(--x, 50%);
  transform: scale(var(--s, 1));
}
@keyframes bannerDropFall {
  0%   { transform: translateY(-20px) scale(var(--s,1)); opacity: 0; }
  10%  { opacity: .7; }
  90%  { opacity: .5; }
  100% { transform: translateY(110vh) scale(var(--s,1)); opacity: 0; }
}
/* Animated wave at the bottom of the banner - connects banner to body smoothly */
.page-banner__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  width: 100%; height: 60px;
  z-index: -1;
  pointer-events: none;
}
.page-banner__wave svg { width: 100%; height: 100%; display: block; }
.page-banner__wave svg path { fill: var(--c-white); }
.page-banner.is-on-mist + section.section--mist + * .page-banner__wave svg path,
.page-banner.is-on-mist .page-banner__wave svg path { fill: var(--c-mist); }

@media (prefers-reduced-motion: reduce) {
  .page-banner__droplets span { animation: none !important; }
}
.page-banner h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -.025em; text-shadow: 0 2px 12px rgba(0,15,30,.45); }
.page-banner h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, #66E1FF, var(--c-cyan), #6FB5DF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(33,212,255,.22));
}
/* Opt-in (Industries): keep the accent sentence together, so its first word does not stay behind on the bold line.
   The vertical padding plus the equal negative margin keeps descenders (q, y, p) painted under background-clip:text
   without moving the text; longhands, so the shared side padding and margin stay. */
.page-banner h1 em.accent-unit {
  display: inline-block;
  padding-top: .1em; padding-bottom: .25em;
  margin-top: -.1em; margin-bottom: -.25em;
}
.page-banner .lead {
  font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 780px; margin-top: 1rem;
  letter-spacing: -.005em;
  text-shadow: 0 1px 6px rgba(0,15,30,.35);
}
/* Pill-style breadcrumbs */
.page-banner .crumbs {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: .85rem; letter-spacing: .03em; text-transform: uppercase;
  color: rgba(255,255,255,.78);   /* was .6: small uppercase text needs 4.5:1 over the bright caustics in the phone banner photo */
  margin-bottom: 1.25rem;
}
.page-banner .crumbs a { color: #fff; }   /* stays a step brighter than the current-page label */
/* Links inside the dark banner lead (the advisories emergency number): the base link blue is
   unreadable on the water photo, so white with a soft underline, like the alert-bar links. */
.page-banner .lead a {
  color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,.5);
  transition: color .2s var(--ease-soft), text-decoration-color .2s var(--ease-soft);
}
.page-banner .lead a:hover { color: var(--c-cyan); text-decoration-color: currentColor; }
@media (max-width: 760px) {
  .page-banner { padding: calc(var(--alert-h, 0px) + 8.25rem) 0 4rem; }
  .page-banner .lead { font-size: 1.02rem; margin-top: .75rem; }
  .page-banner .crumbs { margin-bottom: 1rem; }
}
/* Landscape phones get the 56px phone logo (see "Header"), so the banner text starts under it as on portrait phones. */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 1024px) {
  .page-banner { padding-top: calc(var(--alert-h, 0px) + 8.25rem); }
}

/* --------- Stats Strip --------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -22px rgba(0, 59, 92, .25), 0 8px 18px -8px rgba(0, 59, 92, .14);
  margin-top: -4.5rem; position: relative; z-index: 5;
  overflow: visible;                 /* a hovered cell pops out of the strip; the corner cells carry the rounding */
  border: 1px solid rgba(255,255,255,.6);
}
.stat {
  padding: 2.5rem 1.75rem;
  text-align: center;
  background: #fff;
  border-right: 1px solid var(--c-fog);
  position: relative;
  overflow: hidden;
}
.stat:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.stat:last-child  { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
/* Hover pop (lift, grow, dark-blue edge, light-blue glow): SHARED CARD POP near the end of the
   file. This is the card the owner approved the effect on; every other card now matches it. */
.stat::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
  opacity: 0;
  transition: opacity .3s var(--ease-soft);
}
.stat:hover { background: linear-gradient(180deg, #F1FAFE, #fff); }
.stat:hover::before { opacity: 1; }
.stat:last-child { border-right: 0; }

.stat .num {
  display: block;
  font-size: clamp(2.4rem, 4.2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* no text-shadow here: Chromium paints it over the clipped gradient and washed the numbers out to about 2:1 */
  font-feature-settings: "ss01", "tnum";
  transition: transform .45s var(--ease-out), filter .45s var(--ease-out);
}
.stat:hover .num { transform: scale(1.12); filter: drop-shadow(0 6px 12px rgba(33,212,255,.42)); }
.stat .num em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  /* keep the gradient on em as well */
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}
.stat .label {
  display: block;
  margin-top: .9rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--c-muted);
  font-weight: 600;
}

@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -3rem; }
  .stat { border-bottom: 1px solid var(--c-fog); padding: 2rem 1rem; }
  .stat:nth-child(odd) { border-right: 1px solid var(--c-fog); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  /* 2 x 2 layout: each cell rounds its own outer corner */
  .stat:nth-child(1) { border-radius: var(--radius-lg) 0 0 0; }
  .stat:nth-child(2) { border-radius: 0 var(--radius-lg) 0 0; }
  .stat:nth-child(3) { border-radius: 0 0 0 var(--radius-lg); }
  .stat:nth-child(4) { border-radius: 0 0 var(--radius-lg) 0; }
}
/* Narrow four-column strip (tablets): a little less side padding so the unbreakable "Florida-licensed"
   label on Team fits its cell instead of splitting at the hyphen. */
@media (min-width: 821px) and (max-width: 960px) {
  .stat { padding-inline: 1rem; }
}
/* Phones: tighter tracking plus balanced lines keep the 2 x 2 labels on two even lines, with no line
   ending in "&" or a hyphen. The 359px step keeps "Florida-licensed" inside its cell on the smallest phones. */
@media (max-width: 480px) {
  .stat { padding-inline: .75rem; }
  .stat .label { letter-spacing: .08em; text-wrap: balance; }
}
@media (max-width: 359px) {
  .stat .label { font-size: .72rem; letter-spacing: .03em; }
}

/* --------- Service Grid --------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1020px) { .svc-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px)  { .svc-grid { grid-template-columns: 1fr; } }
/* Odd card counts (portal security, about values, advisories: 3 cards) leave one card alone in the two-column
   tablet layout: centre it at the same width as the others. 1.5rem = the .svc-grid gap above; change both together. */
@media (min-width: 621px) and (max-width: 1020px) { .svc-grid > .svc-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 1.5rem) / 2); } }

.svc-card {
  position: relative;
  padding: 2.25rem 1.85rem 2rem;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
  overflow: hidden;
  isolation: isolate;
}
.svc-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(8,148,196,.07), rgba(0,87,146,.03));
  opacity: 0; transition: opacity .35s var(--ease-out);
}
/* Animated gradient line at top of card on hover */
.svc-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-teal) 30%, var(--c-cyan) 50%, var(--c-teal) 70%, transparent);
  transform: translateX(-100%);
  transition: transform .6s var(--ease-out);
  z-index: 1;
}
/* Lift/border/shadow on hover come from the shared card hover rule near the end of the file. */
.svc-card:hover::before { opacity: 1; }
.svc-card:hover::after { transform: translateX(0); }
.svc-card .icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(8,148,196,.14), rgba(0,87,146,.20));
  color: var(--c-blue); display: grid; place-items: center; margin-bottom: 1.4rem;
  position: relative;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out);
}
.svc-card .icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(33,212,255,.4), rgba(0,87,146,.2));
  opacity: 0;
  z-index: -1;
  filter: blur(10px);
  transition: opacity .35s var(--ease-out);
}
.svc-card:hover .icon { transform: scale(1.05) rotate(-3deg); }
.svc-card:hover .icon::before { opacity: 1; }
.svc-card h3 { font-size: 1.25rem; font-weight: 700; }
.svc-card p { color: var(--c-body); font-size: .98rem; margin-bottom: 0; }
/* "Learn more" is always shown (touch and keyboard visitors never saw the hover-only link) and is pinned to
   the card bottom, so the links line up across each row. Only the linked home cards become a flex column. */
a.svc-card { display: flex; flex-direction: column; }
.svc-card .more { margin-top: auto; padding-top: 1.25rem; align-self: flex-start; display: inline-flex; align-items: center; font-size: .9rem; color: var(--c-blue); }
/* small arrow nudge, mouse only and gated like the card pop so it never sticks after a tap */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .svc-card .more svg { transition: translate .3s var(--ease-out); }
  a.svc-card:is(:hover, :focus-visible) .more svg { translate: 3px 0; }
}

/* --------- Split (alt rows) --------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
/* Reverse rows have the photo first in the DOM: on desktop the columns are mirrored (photo left, copy right)
   so the rows really alternate, with the glow mirrored to match. Stacked at 920px and below, the photo
   drops after the copy like every other row and the glow returns to the standard side.
   Must stay after the .split 920px rule above (same specificity) or phones get two columns. */
.split--reverse { grid-template-columns: 1fr 1.05fr; }
.split--reverse > .split-media::before { inset: -8% 4% -4% -4%; }
@media (max-width: 920px) {
  .split--reverse { grid-template-columns: 1fr; }
  .split--reverse > .split-media { order: 2; }
  .split--reverse > .split-media::before { inset: -8% -4% -4% 4%; }
}
/* Stacked rows (screen only): cap the 4:5 photo at 480px, left-aligned under the copy, so it no longer grows into a
   full-width 750x940 slab on tablets. Services copy is capped near 78 characters a line. Print keeps its own layout. */
@media screen and (max-width: 920px) {
  .split-media { width: 100%; max-width: 480px; }
  .split > .split-content[data-numeral] { max-width: 38rem; }
}
.split h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); font-weight: 800; }
.split h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  /* blue→teal gradient text comes from the shared `h1 em, h2 em, h3 em` rule (PASS 3) */
}
.split p { color: var(--c-body); font-size: 1.05rem; }

.split-media { position: relative; }
.split-media::before {
  /* Soft glow behind media frame */
  content: '';
  position: absolute;
  inset: -8% -4% -4% 4%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(8,148,196,.22), rgba(33,212,255,.10) 50%, transparent);
  filter: blur(36px);
  z-index: -1;
  opacity: .85;
}
.split-media .media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 70px -22px rgba(0,40,72,.42), 0 14px 30px -12px rgba(0,40,72,.18);
  aspect-ratio: 4/5;
  isolation: isolate;
}
.split-media .media-frame::after {
  /* Subtle inner gradient overlay for depth */
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 60%, rgba(0,30,53,.18));
  pointer-events: none;
}
.split-media .media-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
}
/* Tall portrait in the 4:5 frame (About owner photo): anchor the crop near the top so his head is not cut off (same value as the Team page card) */
.split-media .media-frame--portrait img { object-position: 50% 15%; }
.split-media:hover .media-frame img { transform: scale(1.03); }
.split-media .floating-card {
  position: absolute; bottom: -1.5rem; left: max(-1.5rem, calc(.5rem - var(--gutter)));
  background: #fff; padding: 1.25rem 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: .9rem;
  max-width: 280px;
}
.floating-card .ic { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--c-teal), var(--c-blue)); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.floating-card strong { display: block; color: var(--c-ink); font-size: .98rem; font-weight: 700; }
/* Caption on its own line with its own leading: as an inline span it sat on the parent's 1.65 body line
   box and read double-spaced. Child combinator so the injected .fx-shine span is never matched. */
.floating-card > div > span { display: block; font-size: .82rem; line-height: 1.45; margin-top: .15rem; color: var(--c-muted); text-wrap: balance; }

.checks { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; gap: .75rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; font-size: 1rem; color: var(--c-ink); font-weight: 500; }
.checks li::before {
  content: ''; flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px;
  /* teal→cyan gradient glyph with a soft halo (masked to the checkmark) */
  background-color: transparent;
  background-image: linear-gradient(135deg, var(--c-teal), var(--c-cyan));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 60%;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 60%;
  border-radius: 999px;
  border: 1.5px solid transparent;
  box-shadow: 0 0 0 4px rgba(8,148,196,.06), 0 4px 8px -2px rgba(8,148,196,.25);
}

/* --------- Service Areas (cities) --------- */
/* Content-sized chips in centred rows: fixed grid tiles wrapped longer names onto two or three lines
   (and left the "&" alone on a line). A chip keeps its name on one line whenever it fits and only
   wraps when it is wider than the whole row by itself (very narrow screens, large text), so the page
   never scrolls sideways. */
.areas {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
}
.areas .city {
  padding: 1.05rem 1.35rem; background: #fff; border: 1px solid var(--c-fog); border-radius: 12px;
  display: flex; align-items: center; gap: .65rem; font-weight: 600; color: var(--c-ink);
  position: relative;
  isolation: isolate;
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  flex: 0 1 auto; max-width: 100%;
}
/* phones: slightly smaller chips so the rows stay compact */
@media (max-width: 560px) {
  .areas { gap: .6rem; }
  .areas .city { padding: .75rem 1rem; font-size: .95rem; gap: .5rem; }
}
/* hover lift/border/shadow: shared card hover rule near the end of the file */
.areas .city svg { color: var(--c-teal); flex-shrink: 0; }
.areas .city::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(8,148,196,.0), rgba(8,148,196,.12));
  opacity: 0;
  transition: opacity .3s var(--ease-soft);
}
.areas .city:hover::before { opacity: 1; }

.section--deep .areas .city {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  color: #fff;
  backdrop-filter: blur(2px);
}
.section--deep .areas .city svg { color: var(--c-cyan); }
.section--deep .areas .city:hover {
  background: rgba(255,255,255,.10);
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 1px rgba(33,212,255,.25), 0 8px 24px -8px rgba(33,212,255,.18);
}
.section--deep .areas .city::before {
  background: linear-gradient(135deg, rgba(33,212,255,0), rgba(33,212,255,.18));
}

/* --------- Testimonials --------- */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .t-grid { grid-template-columns: 1fr; } }

.t-card {
  background: #fff; padding: 2.25rem 2rem 2rem; border-radius: var(--radius);
  border: 1px solid var(--c-fog);
  position: relative;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
  isolation: isolate;
  overflow: hidden;
}
.t-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-cyan), var(--c-teal));
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.t-card:hover::before { opacity: 1; animation: shimmerBar 2.5s linear infinite; }
@keyframes shimmerBar { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .t-card:hover::before { animation: none; }
}
.t-card .quote-mark { position: absolute; top: -12px; left: 1.5rem; width: 42px; height: 42px; border-radius: 12px; background: var(--grad-cta); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; line-height: 1; padding-top: 6px; }
.t-card blockquote { margin: 1rem 0 1.25rem; padding: 0; color: var(--c-ink); font-size: 1.02rem; line-height: 1.6; font-weight: 500; }
.t-card cite { font-style: normal; display: block; }
.t-card cite strong { display: block; color: var(--c-ink); font-size: .98rem; }
.t-card cite span { color: var(--c-muted); font-size: .85rem; }
.t-card .stars { color: #f5b400; margin-bottom: .25rem; letter-spacing: 2px; }

/* --------- Client Types Grid --------- */
.client-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }   /* 8 tiles: two full rows of 4, no orphan row */
.ct-card { padding: 1.75rem 1.25rem; text-align: center; background: #fff; border-radius: var(--radius); border: 1px solid var(--c-fog); transition: transform .25s, box-shadow .25s, border-color .25s; }
/* hover: shared card pop near the end of the file */
/* Rounded square, not a circle: every other icon chip on the site is one (.step .ic 48/12, .advisory-empty__ic 56/14), and this was the only circle in the set. 14px on a 56px chip is the same corner ratio the rest use, so nothing reflows. */
.ct-card .ic { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 14px; background: linear-gradient(135deg, rgba(8,148,196,.12), rgba(0,87,146,.18)); color: var(--c-blue); display: grid; place-items: center; }
.ct-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0; }
/* Tablets and phones: a compact 2 x 4 grid instead of four cramped columns or eight full-width rows */
@media (max-width: 900px) {
  .client-types { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .ct-card { padding: 1.25rem .75rem; }
}

/* --------- CTA Banner --------- */
.cta-banner {
  position: relative;
  background: var(--grad-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 80px -28px rgba(0, 31, 53, .5);
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px circle at 90% 110%, rgba(33,212,255,.26), transparent 50%),   /* .35 before: softened so the white phone pill above it keeps 4.5:1 */
    radial-gradient(800px circle at 0% 0%, rgba(8,148,196,.30), transparent 55%);
}
/* Animated shimmer line */
.cta-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  transform: translateX(-100%);
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  animation: shimmer 8s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}
/* transform, not left: a left animation re-lays-out the page every frame and each frame counts as a layout shift (CLS) */
@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-banner::after { animation: none; }
}
.cta-banner__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 820px) { .cta-banner__inner { grid-template-columns: 1fr; text-align: left; } }
.cta-banner h2 { color: #fff; font-size: clamp(1.85rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; }
.cta-banner h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, #66E1FF, var(--c-cyan), #6FB5DF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(33,212,255,.20));
}
/* Phones: keep the accent sentence together, so its first word does not stay behind on the bold line.
   Opt-in (Industries) up to 450px, and for every closing banner on the smallest phones, where a long accent
   would otherwise break mid-sentence. Kept off wider screens: there the single box makes balance pull the
   heading's last words down onto the accent line. Padding plus equal negative margin gives descenders
   (y, g, p) paint room under background-clip:text without moving the text. */
@media (max-width: 450px) {
  .cta-banner h2 em.accent-unit {
    display: inline-block;
    padding-top: .1em; padding-bottom: .25em;
    margin-top: -.1em; margin-bottom: -.25em;
  }
}
@media (max-width: 359px) {
  .cta-banner h2 em {
    display: inline-block;
    padding-top: .1em; padding-bottom: .25em;
    margin-top: -.1em; margin-bottom: -.25em;
  }
}
.cta-banner p { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 0; text-wrap: balance; }   /* even lines, so no banner ends on a lone "register." or "or night." (same line count) */
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: flex-end; }
@media (max-width: 820px) { .cta-banner__actions { justify-content: flex-start; } }
/* Desktop and tablet: a two-button CTA pair fills its column, so a wrapped pair stacks as two equal pills like on phones. Single-button banners are unchanged. */
@media (min-width: 821px) { .cta-banner__actions .btn:not(:only-child) { flex: 1 1 auto; justify-content: center; } }
/* The alert banners have one button: size its column to the button so the heading gets the rest of the row.
   Kept inside the 821px query so the 820px one-column stack still wins on tablets and phones. */
@media (min-width: 821px) { .cta-banner--alert .cta-banner__inner { grid-template-columns: 1fr auto; } }
/* Booking card buttons on contact.html (was an inline style; same values, so desktop is unchanged) */
.booking-actions { display: flex; gap: .65rem; flex-wrap: wrap; justify-content: center; }
/* Phones: button pairs go full width and equal, centred, matching the approved hero buttons (.hero__actions .btn) */
@media (max-width: 600px) {
  .cta-banner__actions .btn, .dust-actions .btn, .booking-actions .btn, .btn-row .btn { width: 100%; justify-content: center; }
  :is(.cta-banner__actions, .dust-actions, .booking-actions, .btn-row) .btn svg { flex-shrink: 0; }   /* icons and arrows keep their size */
}
/* The narrowest phones: "Email office@teiwater.com" is wider than the space, so the email button wraps inside its pill
   instead of being clipped (other labels, including phone numbers, stay on one line) */
@media (max-width: 359px) {
  :is(.cta-banner__actions, .dust-actions, .booking-actions, .btn-row) .btn[href^="mailto:"] { white-space: normal; text-align: center; }
}
/* Phones under 390px: the CTA banner pills take slimmer side padding and may wrap, so both stay inside the card */
@media (max-width: 389px) {
  .cta-banner__actions .btn { white-space: normal; text-align: center; padding-left: .8rem; padding-right: .8rem; }
}
/* Emergency (red) variant: warm glows replace the cyan ones, so the red stays clean instead of turning grey-mauve.
   Used on contact.html and advisories.html (was an inline background). Shimmer and hover shine are unchanged. */
.cta-banner--alert {
  background: linear-gradient(135deg, #7A0B0B 0%, #A52A2A 100%);
  box-shadow: 0 30px 80px -28px rgba(90,10,10,.40);
}
.cta-banner--alert::before {
  background:
    radial-gradient(600px circle at 90% 110%, rgba(255,150,130,.22), transparent 50%),
    radial-gradient(800px circle at 0% 0%, rgba(255,255,255,.06), transparent 55%);
}
.cta-banner--alert p { color: rgba(255,255,255,.85); }   /* same as the old inline value, a touch brighter than the base .8 */
/* The one action on the red card takes the card's own red, so the alert reads as one surface instead of a blue CTA on a red backdrop. */
.cta-banner--alert .btn-solid-light,
.cta-banner--alert .btn-solid-light:hover { color: #7A0B0B; }

/* --------- Contact --------- */
/* The quote form is this page's primary action and the only element here that turns extra width into usable
   field area: the info rows are short lines, so the wider column goes to the form. */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info .ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--c-teal), var(--c-blue)); color: #fff; display: grid; place-items: center; }
.contact-info strong { color: var(--c-ink); display: block; font-size: 1rem; font-weight: 700; }
.contact-info span, .contact-info a { color: var(--c-body); font-size: .98rem; }
.contact-info a:hover { color: var(--c-teal-text); }
.contact-info > .eyebrow { font-size: .8rem; color: var(--c-teal-text); } /* the span rule above outranks .eyebrow; restore the standard eyebrow size and teal */

.form-card { background: #fff; padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); border: 1px solid var(--c-fog); }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form-grid > .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-field label { display: block; font-size: .82rem; font-weight: 700; color: var(--c-ink); text-transform: uppercase; letter-spacing: .01em; margin-bottom: .5rem; transition: color .2s var(--ease-soft); }
/* "(required)" / "(optional)" beside a label, so people see which fields are needed before they submit (WCAG 3.3.2).
   Its own color keeps it muted when the label turns blue on focus. */
.form-field label .form-req { color: var(--c-muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.form-field {
  position: relative;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .9rem 1rem; border: 1px solid var(--c-field-line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--c-ink); background-color: var(--c-mist);
  transition: border-color .25s var(--ease-soft), box-shadow .25s var(--ease-soft), background-color .25s var(--ease-soft);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--c-teal);
  box-shadow: 0 0 0 4px rgba(8,148,196,.12), 0 0 0 1px var(--c-teal);
  background-color: #fff;   /* background-color, not the shorthand, so the select chevron stays on focus */
}
.form-field input:hover:not(:focus),
.form-field select:hover:not(:focus),
.form-field textarea:hover:not(:focus) {
  border-color: var(--c-teal);   /* hover strengthens the edge instead of fading it */
}
.form-field textarea { resize: vertical; min-height: 130px; }
/* The select drops the OS styling so it matches the inputs beside it (same height and 17px text inset) and gets a
   site-blue chevron inside its padding. #005792 is --c-blue (a data URI cannot read CSS variables). Long option
   names end in an ellipsis instead of running under the chevron. Option text and values are unchanged. */
.form-field select {
  -webkit-appearance: none; appearance: none;
  line-height: 1.375;   /* 22px, the inputs' Manrope line height: a fixed value keeps the height right even if the select is drawn before the web font loads */
  padding-right: 2.25rem;
  cursor: pointer;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005792' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px 16px;
}
/* The "Select an option" prompt reads as a prompt (muted, still AA on the mist field). Kept on its own so a
   browser without :has() drops only this rule. */
.form-field select:has(> option[value='']:checked) { color: var(--c-muted); }
.form-field select option { color: var(--c-ink); }
/* High contrast: give the select its system arrow back, since a fixed blue chevron may not show on system colours */
@media (forced-colors: active) {
  .form-field select { -webkit-appearance: auto; appearance: auto; background-image: none; padding-right: 1rem; }
}
/* Animated gradient underline on focus */
.form-field::after {
  content: '';
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
  border-radius: 2px;
  pointer-events: none;
}
.form-field:focus-within::after { transform: scaleX(1); }
.form-field:focus-within label { color: var(--c-blue); }
.form-card button[type="submit"] { width: 100%; justify-content: center; margin-top: .25rem; }
/* Quote form only, and only while it has no data-action: main.js adds this line under the button to say
   that Send Request opens the visitor's own email app. Left-aligned and muted, so it reads as one block
   with the "Prefer to call or email?" line below it. */
.form-mailnote { margin: .6rem 0 0; font-size: .82rem; line-height: 1.45; color: var(--c-muted); }
/* portal.html's document form has no .form-grid, so its fields sat almost touching. Same 1rem rhythm as the
   contact form (the honeypot label is absolutely positioned, so it adds no gap). The mail-app fallback panel
   that main.js appends gets its spacing from the gap, not from its own margin. */
.form-card .contact-form { display: grid; gap: 1rem; }
.form-card .contact-form > .form-status { margin-top: 0; }
.form-card button[type="submit"][aria-busy="true"] { opacity: .8; cursor: progress; pointer-events: none; }
.form-error {
  display: none;
  margin-top: .35rem;
  font-size: .82rem;
  color: #c0392b;
  font-weight: 500;
}
.form-field.has-error .form-error { display: block; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}
/* The focus bar belongs under the input: wrappers keep their own height in the two-column grid (a stretched
   wrapper beside an invalid field put the bar in the gap), and a field showing its error hides the bar (it would
   hang under the message) and gets a stronger red focus ring instead. scaleX(0), not content: none, so the bar
   still sweeps in with its usual transition once the error clears. Later in the file than the focus rules on purpose. */
.form-grid > .form-field { align-self: start; }
.form-field.has-error::after { transform: scaleX(0); }
.form-field.has-error input:focus,
.form-field.has-error select:focus,
.form-field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(192,57,43,.22), 0 0 0 1px #c0392b; background-color: #fff; }
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
  /* Not focusable, so browser autofill leaves it alone (bots reading the HTML still fill it) */
  visibility: hidden !important;
}
.form-success {
  display: none;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(8,148,196,.06), rgba(33,212,255,.10));
  border: 1px solid rgba(8,148,196,.35);
  border-radius: var(--radius);
  text-align: center;
}
.form-success.is-shown { display: block; animation: fadeInUp .5s var(--ease-out); }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form-success .check {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-teal), var(--c-blue));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}
.form-success h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.form-success p { color: var(--c-body); margin: 0; }

/* --------- Process steps (How we work) --------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
@media (max-width: 980px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
/* Three-step rows (procurement): three equal columns, then one column on tablets and phones (no 2+1 leftover card) */
.process.process--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .process.process--3 { grid-template-columns: 1fr; } }
.step {
  position: relative;
  isolation: isolate;
  padding: 2.25rem 1.6rem 1.85rem;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius);
  counter-increment: step;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
/* hover lift/border/shadow: shared card hover rule near the end of the file */
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  /* The numeral shares the icon chip's optical centre and the card's right text edge: top is the card's
     2.25rem padding-top plus half the 48px .ic chip less half the 2.4rem numeral's own line box, and
     right is the card's 1.6rem padding-right exactly, so the card padding, the chip size and the numeral
     size have to be revisited together if any one of them changes. Print overrides top (see @media print). */
  top: calc(2.25rem + 24px - .5em);
  right: 1.6rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 2.4rem;
  color: rgba(8, 148, 196, .25);
  line-height: 1;
}
.step .ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(8,148,196,.12), rgba(0,87,146,.18));
  color: var(--c-blue); display: grid; place-items: center; margin-bottom: 1rem;
}
.step h3, .step h4 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { font-size: .94rem; color: var(--c-body); margin: 0; }

.section--deep .step { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10); }
.section--deep .step h3, .section--deep .step h4 { color: #fff; }
.section--deep .step p { color: rgba(255,255,255,.75); }
.section--deep .step .ic { background: rgba(33,212,255,.14); color: var(--c-cyan); }
.section--deep .step::before { color: rgba(33,212,255,.32); }

/* About's "What we believe" cards are .svc-card on the deep band: the same dark treatment as .step above,
   kept in the stylesheet so the shared cyan hover edge near the end of this file is not outranked by an
   inline style. No h3 rule is needed: .section--deep h3 already makes it white. */
.section--deep .svc-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10); color: rgba(255,255,255,.85); }
.section--deep .svc-card p { color: rgba(255,255,255,.75); }
.section--deep .svc-card .icon { background: rgba(33,212,255,.14); color: var(--c-cyan); }
/* the light card's hover wash cannot be seen on navy, so lift the card itself, as .value-card does */
.section--deep .svc-card:hover { background: rgba(255,255,255,.07); }

/* --------- Credentials ribbon --------- */
.credentials {
  background: var(--c-mist);
  padding: 2.25rem 0;
  border-top: 1px solid var(--c-fog);
  border-bottom: 1px solid var(--c-fog);
}
.cred-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 920px) { .cred-row { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }
@media (max-width: 480px) { .cred-row { grid-template-columns: 1fr; } }
.cred {
  position: relative;
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: 12px;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
  transform-origin: center;
  z-index: 1;
}
.cred::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 18px;
  background: radial-gradient(closest-side, rgba(33, 212, 255, .38), rgba(8, 148, 196, .18) 60%, transparent 80%);
  filter: blur(14px);
  opacity: 0;
  z-index: -1;
  transition: opacity .35s var(--ease-out), inset .35s var(--ease-out);
  pointer-events: none;
}
/* lift, growth, dark-blue edge and shadow: SHARED CARD POP near the end of the file; the soft
   light-blue halo below is this badge's own extra */
.cred:hover { z-index: 2; }
.cred:hover::after {
  opacity: 1;
  inset: -16px;
}
.cred .ic {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(8,148,196,.12), rgba(0,87,146,.18));
  color: var(--c-blue);
  display: grid; place-items: center;
}
.cred-text {
  line-height: 1.25;
}
.cred-text strong {
  display: block;
  color: var(--c-ink);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.005em;
}
.cred-text span {
  display: block;
  font-size: .76rem;
  color: var(--c-muted);
  letter-spacing: .04em;
}

/* --------- Trusted-by strip (auto-scroll marquee) --------- */
.trusted {
  padding: 2.5rem 0;
  border-top: 1px solid var(--c-fog);
  border-bottom: 1px solid var(--c-fog);
  background: #fff;
  overflow: hidden;
}
.trusted-label {
  text-align: center;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-muted);
  font-weight: 700;
  margin-bottom: 1.75rem;
}
.trusted-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.trusted-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.trusted-track > span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--c-ink);
  opacity: .82;
  white-space: nowrap;
  flex-shrink: 0;
}
.trusted-track > span.dot {
  font-family: var(--font-sans);
  color: var(--c-teal);
  opacity: 1;
  font-style: normal;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.trusted-marquee:hover .trusted-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .trusted-track { animation: none; }
  .trusted-marquee { mask-image: none; -webkit-mask-image: none; }
  .trusted-marquee { overflow-x: auto; }
}

/* Legacy trusted-row support (centered static layout fallback) */
.trusted-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 2rem 3rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  color: var(--c-ink);
  opacity: .82;
}
.trusted-row span { white-space: nowrap; }

/* --------- FAQ --------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--c-fog);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: .85rem;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq details[open] { border-color: rgba(8, 148, 196, .35); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600;
  color: var(--c-ink);
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  background-color: var(--c-teal);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>") no-repeat center / contain;
  transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--c-blue); }
/* <details> clips its overflow (for the rounded corners), which erased the global focus ring drawn
   outside the summary. Draw it inside instead so keyboard users can see which question has focus. */
.faq summary:focus-visible { outline: 3px solid var(--c-blue); outline-offset: -3px; box-shadow: none; border-radius: var(--radius); }
.faq .answer { padding: 0 1.5rem 1.5rem; color: var(--c-body); font-size: .98rem; line-height: 1.7; }
/* The panel is 820px, which left answers running past 107 characters a line. Cap the text at the 68ch
   measure .advisory-empty p already uses, so an answer reads at the same width as the lead above it.
   No media gate is needed: at phone width the answer box is about 300px, far under the cap. */
.faq .answer p { max-width: 68ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* --------- Differentiators (us vs them) --------- */
.compare {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.compare > * {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--c-fog);
}
.compare-head {
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--c-mist);
  display: flex; align-items: center; gap: .5rem;
}
.compare-head.us { color: var(--c-blue); background: linear-gradient(180deg, rgba(8,148,196,.10), rgba(8,148,196,.04)); }
.compare-head.them { color: var(--c-muted); }
.compare-head.criterion { background: transparent; color: var(--c-ink); }

.compare > .row-label {
  color: var(--c-ink);
  font-weight: 600;
  font-size: .98rem;
}
.compare > .cell {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .95rem;
  color: var(--c-body);
}
.compare > .cell.us {
  color: var(--c-ink);
  font-weight: 500;
  background: rgba(8,148,196,.04);
}
.compare > .cell .ic {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 999px;
  display: grid; place-items: center;
}
.compare > .cell.us .ic {
  background: linear-gradient(135deg, var(--c-teal), var(--c-blue));
  color: #fff;
}
.compare > .cell.them .ic {
  background: var(--c-fog);
  color: var(--c-muted);
}
.compare > *:nth-last-child(-n+3) { border-bottom: 0; }

/* "What to expect" list: the same table with only the TEI column (the owner prefers positive
   statements about TEI to comparisons with other operators) */
.compare--solo { grid-template-columns: 1fr 1.35fr; }
.compare--solo > *:nth-last-child(3) { border-bottom: 1px solid var(--c-fog); }
.compare--solo > .cell.us { font-size: 1rem; }

/* Mobile: linearize comparison into cards */
@media (max-width: 760px) {
  .compare {
    display: block;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }
  .compare > * { padding: 0; border-bottom: 0; }
  .compare-head { display: none; }
  .compare > .row-label {
    display: block;
    margin-top: 1rem;
    margin-bottom: .65rem;
    padding: 0 .25rem;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--c-muted);
    font-weight: 700;
  }
  .compare > .row-label:first-of-type { margin-top: 0; }
  .compare > .cell {
    display: flex;
    background: #fff;
    border: 1px solid var(--c-fog);
    border-radius: 12px;
    padding: .85rem 1rem;
    margin-bottom: .5rem;
    font-size: .94rem;
  }
  .compare > .cell.us {
    border-color: rgba(8,148,196,.35);
    background: linear-gradient(180deg, rgba(8,148,196,.06), #fff);
    box-shadow: var(--shadow-sm);
  }
  .compare > .cell.us::before {
    content: 'TEI';
    flex-shrink: 0;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--c-blue);
    background: rgba(8,148,196,.12);
    padding: .2rem .5rem;
    border-radius: 999px;
    margin-right: .25rem;
    height: max-content;
    margin-top: 1px;
  }
  .compare > .cell.them::before {
    content: 'Typical';
    flex-shrink: 0;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--c-muted);
    background: var(--c-fog);
    padding: .2rem .5rem;
    border-radius: 999px;
    margin-right: .25rem;
    height: max-content;
    margin-top: 1px;
  }
  .compare > .cell .ic { display: none; }
  /* single-column list: no "TEI" tag needed, show the check mark instead */
  .compare--solo > .cell.us::before { content: none; }
  .compare--solo > .cell .ic { display: grid; }
}

/* --------- History timeline --------- */
.timeline {
  position: relative;
  padding-left: 3.25rem;
  max-width: 760px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-cyan) 0%, var(--c-teal) 30%, var(--c-blue) 70%, transparent 100%);
  border-radius: 2px;
}
.tl-item {
  position: relative;
  padding-bottom: 3rem;
  transition: transform .25s var(--ease-soft);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:hover { transform: translateX(4px); }
.tl-item::before {
  content: '';
  position: absolute;
  left: -3.25rem;
  top: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-teal));
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(8,148,196,.30), 0 0 24px rgba(8,148,196,.18);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
/* The marker had a blurred white specular highlight (a .tl-item::after dot): it was dropped so the disc matches the flat gradient treatment used by the icon tiles and the check glyphs. Please do not re-add it. */
.tl-item:hover::before { transform: scale(1.1); box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(33,212,255,.40), 0 0 32px rgba(33,212,255,.32); }
.section--mist .tl-item::before { box-shadow: 0 0 0 4px var(--c-mist), 0 0 0 5px rgba(8,148,196,.30), 0 0 24px rgba(8,148,196,.20); }
.section--mist .tl-item:hover::before { box-shadow: 0 0 0 4px var(--c-mist), 0 0 0 6px rgba(33,212,255,.40), 0 0 32px rgba(33,212,255,.32); }

.tl-year {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* background-clip:text paints only inside the box, and line-height:1 cuts a block box off at
     the baseline, so the Fraunces italic descender in "Today" was never painted. Padding plus an
     equal negative margin gives it paint room. The h4 below has its own margin, so the gap below
     the year stays exactly .35rem at every size in the clamp. */
  padding-bottom: .25em;
  margin-bottom: calc(.35rem - .25em);
  letter-spacing: -.01em;
  line-height: 1;
}
.tl-item h4 {
  font-size: 1.25rem;
  margin-bottom: .5rem;
  margin-top: .3rem;
  letter-spacing: -.01em;
}
.tl-item p {
  color: var(--c-body);
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.65;
}
/* The history band paired a 760px heading cap with a 760px timeline and nothing beside them, so a third of
   the 1160px container sat empty down the whole section. On wide screens the two existing children become
   columns, so the band fills its measure and loses about 250px of height. The 1fr track lands near 688px
   inside the 1160px container, so .timeline's own max-width: 760px never binds and is left alone (raising
   --container past 1240px would make it bind again and reopen the gap). Screen only: print resets
   .container, and paper keeps the stacked layout. Below 1100px nothing changes. */
@media screen and (min-width: 1100px) {
  .section--history > .container {
    display: grid;
    grid-template-columns: minmax(320px, 400px) 1fr;
    column-gap: 4.5rem;
    align-items: start;
  }
  .section--history > .container > .section-head { margin-bottom: 0; }
}

/* --------- Team --------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.member {
  background: #fff; border: 1px solid var(--c-fog); border-radius: var(--radius); padding: 1.5rem; text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
/* hover: shared card pop near the end of the file */
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1rem; background: linear-gradient(135deg, var(--c-teal), var(--c-blue)); color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.85rem; font-weight: 600; box-shadow: var(--shadow-md); }
.member h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.member span { font-size: .85rem; color: var(--c-teal-text); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
/* about.html: four compact tiles. A centred flex row instead of the grid: four across on desktop
   (4.5rem = the three inherited 1.5rem gaps), 2 + 2 on tablets, so no row is left with an empty slot.
   Keep the .team-grid gap as it is. Phones (640px and below) use compact one-row tiles: avatar left,
   name and role right, so the names fit on about one screen instead of tall centred cards. */
.team-grid--center { display: flex; flex-wrap: wrap; justify-content: center; }
.team-grid--center > .member { flex: 0 1 calc((100% - 4.5rem) / 4); min-width: min(190px, 100%); }
@media (min-width: 641px) and (max-width: 900px) {
  .team-grid--center > .member { flex-basis: calc((100% - 1.5rem) / 2); }
}
@media (max-width: 640px) {
  .team-grid--center { gap: .75rem; }
  .team-grid--center > .member { flex-basis: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 1rem; row-gap: .1rem; align-items: center; text-align: left; padding: 1rem 1.25rem; }
  .team-grid--center .avatar { width: 56px; height: 56px; margin: 0; font-size: 1.3rem; grid-row: 1 / span 2; }
  .team-grid--center .member > h3 { grid-column: 2; margin: 0; align-self: end; }
  .team-grid--center .member > span:not(.fx-shine) { grid-column: 2; align-self: start; font-size: .8rem; }
}

/* --------- References --------- */
.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 820px) { .ref-grid { grid-template-columns: 1fr; } }
.ref-card { position: relative; background: #fff; padding: 1.85rem; border-radius: var(--radius); border: 1px solid var(--c-fog); transition: transform .25s, box-shadow .25s, border-color .25s; }
/* hover lift/border/shadow: shared card hover rule near the end of the file */
/* Cyan accent left border that fades in on hover */
.ref-card::before {
  content: '';
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--c-teal), var(--c-cyan));
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.ref-card:hover::before { opacity: 1; }
.ref-card .head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.ref-card h3 { font-size: 1.2rem; margin-bottom: 0; }
.ref-card .badge { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .65rem; border-radius: 999px; background: rgba(8,148,196,.10); color: var(--c-teal); white-space: nowrap; }
.ref-card .meta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.25rem; font-size: .92rem; color: var(--c-body); }
.ref-card .meta strong { display: block; color: var(--c-ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: .15rem; }

/* --------- Footer --------- */
.site-footer {
  background: linear-gradient(180deg, #001625 0%, #00263d 100%);
  color: rgba(255,255,255,.7);
  padding: 5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Hairline gradient line at top of footer */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(33,212,255,.55), rgba(8,148,196,.55), rgba(33,212,255,.55), transparent);
  z-index: 1;
}
/* Atmospheric decorative glows + subtle droplet pattern */
.site-footer::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px circle at 90% 0%, rgba(8,148,196,.20), transparent 55%),
    radial-gradient(800px circle at 0% 100%, rgba(33,212,255,.10), transparent 60%);
  pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; position: relative; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-col:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-col:first-child { grid-column: 1; } }
/* Phones: the 12-link Navigate list runs in two columns to shorten the footer (DOM/tab order unchanged).
   Held back below 360px so no label ever wraps in a narrow column. */
@media (min-width: 360px) and (max-width: 480px) {
  .footer-col:nth-child(2) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
}
/* Desktop at full container width: the same two-column Navigate list as phones, so the 12 links stop running about 230px
   past the other three columns and the four columns finish near the same line (DOM/tab order unchanged).
   Gated at the 1240px --container width (media queries cannot read the token), where the content box is a constant
   1160px, so no label can wrap. The tracks give roughly 286 / 343 / 217 / 194px with 160px Navigate sub-columns. */
@media (min-width: 1240px) {
  .footer-grid { grid-template-columns: 1.25fr 1.5fr .95fr .85fr; }
  .footer-col:nth-child(2) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
}
.footer-col h3 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 1.25rem;
  font-weight: 700;
  position: relative;
  padding-bottom: .65rem;
}
.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-cyan), transparent);
  border-radius: 2px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.footer-col a {
  color: rgba(255,255,255,.65);
  font-size: .96rem;
  position: relative;
  display: inline-block;
  transform-origin: left center;
  transition: color .25s var(--ease-out), padding-left .25s var(--ease-out), transform .25s var(--ease-out);
}
/* The unlinked address (last item of "Get in touch") matches the link size instead of the 17px body size.
   Scoped to that one item so the link rows keep their current spacing. */
.footer-col:last-child li:last-child { font-size: .96rem; }
/* Hover: bold cyan ➜ arrow slides in, text brightens and scales - no underline */
.footer-col a::before {
  content: '➜';
  position: absolute;
  left: -1.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  background: transparent;
  opacity: 0;
  color: var(--c-cyan);
  font-size: 1.25em;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 8px rgba(33, 212, 255, .55);
  transition: opacity .25s var(--ease-out), left .25s var(--ease-out);
}
.footer-col a:hover {
  color: #fff;
  padding-left: .35rem;
  transform: scale(1.06);
}
.footer-col a:hover::before {
  opacity: 1;
  left: -1.15rem;
}

.footer-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.25rem; }
/* White-inverted logo with a subtle cyan glow (brightens on hover) */
.footer-brand img {
  height: 56px;
  filter: brightness(0) invert(1) drop-shadow(0 0 16px rgba(33,212,255,.15));
  opacity: .92;
  transition: filter .4s var(--ease-out);
}
.footer-brand:hover img {
  filter: brightness(0) invert(1) drop-shadow(0 0 24px rgba(33,212,255,.35));
}
/* Above the phone breakpoint the 56px mark left the ENVIRONMENTAL line unreadable: match the
   scrolled header logo (76px). Phones keep 56px, which already matches their header. */
@media (min-width: 761px) { .footer-brand img { height: 76px; } }
.footer-brand strong { color: #fff; font-size: 1.05rem; font-weight: 800; }

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.55);
}
.footer-bottom > span { display: inline-flex; align-items: center; gap: .55rem; }
.footer-bottom > div { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.footer-bottom a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--c-cyan); }
/* The fixed contact button (56px, 24px from the corner) sat on the end of the tagline until the 1240px container pulls it clear: keep the line out from under it. Screen only: the button is hidden on paper. */
@media screen and (min-width: 601px) and (max-width: 1360px) {
  .footer-bottom { padding-right: 4.5rem; }
}
/* Narrow phones: the left-aligned tagline reached under the 52px button, so it wraps one word earlier. */
@media screen and (max-width: 380px) {
  .footer-bottom > span { padding-right: 4rem; }
}
@media (max-width: 600px) {
  /* 44px-ish touch rows for footer links */
  .footer-col ul { gap: .25rem; }
  .footer-col a { padding-block: .45rem; }
  .footer-bottom a { display: inline-block; padding: .4rem 0; }
  /* Copyright gets its own line, so the row below reads "Privacy · Terms · Accessibility" with no dangling "·" */
  .footer-bottom > div > span:first-child { flex-basis: 100%; }
  .footer-bottom > div > span:first-child + .sep { display: none; }
}
.footer-bottom .sep { color: rgba(255,255,255,.3); padding: 0 .15rem; }
.footer-bottom .lic-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.footer-bottom .lic-badge svg { color: var(--c-cyan); }

/* --------- Reveal on scroll --------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-stagger.is-in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(1) { --rd: .05s; transition-delay: .05s; }
.reveal-stagger.is-in > *:nth-child(2) { --rd: .12s; transition-delay: .12s; }
.reveal-stagger.is-in > *:nth-child(3) { --rd: .19s; transition-delay: .19s; }
.reveal-stagger.is-in > *:nth-child(4) { --rd: .26s; transition-delay: .26s; }
.reveal-stagger.is-in > *:nth-child(5) { --rd: .33s; transition-delay: .33s; }
.reveal-stagger.is-in > *:nth-child(6) { --rd: .40s; transition-delay: .40s; }
/* Failsafe for when main.js is blocked or fails before its scroll-reveal block: that block adds .js to <html>,
   so without it the hidden content fades in by itself after 3s. Normal visits add .js long before the delay ends,
   which removes this animation before it has changed anything (fill-mode forwards only, no 'from' step). */
html:not(.js) .reveal, html:not(.js) .reveal-stagger > * { animation: revealFailsafe .6s var(--ease-out) 3s forwards; }
@keyframes revealFailsafe { to { opacity: 1; transform: none; } }
/* The quote form (contact.html#quote) is the landing spot for every Get a Quote / Request a Quote link.
   While it is the URL target it skips the 20px slide (it still fades in), so the browser scrolls it to its
   final spot and the html scroll-padding-top alone clears the header. No extra scroll offset is added. */
#quote.reveal:target { transform: none; transition: opacity .9s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* --------- Decorative droplet bg motif --------- */
.deco-droplets { position: absolute; inset: auto 0 0 0; height: 50%; pointer-events: none; opacity: .08; z-index: 0; }
.deco-droplets svg { width: 100%; height: 100%; }

/* --------- Media specifics --------- */
.banner-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery img { aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); transition: transform .35s var(--ease-out); }
.gallery img:hover { transform: scale(1.02); }

/* --------- Field gallery (asymmetric mosaic) --------- */
.field-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);   /* 12 tracks so wide 8 + tall 4, then three small tiles of 4, fill every row (6 left a gap and an orphan) */
  grid-auto-rows: 180px;
  gap: 1rem;
}
@media (max-width: 920px) { .field-gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; } }
@media (max-width: 600px) { .field-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } }
.field-gallery .tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-fog);
  cursor: zoom-in;
  isolation: isolate;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  display: block;
}
.field-gallery .tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.field-gallery .tile:hover img { transform: scale(1.06); }
.field-gallery .tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,15,30,.55));
  opacity: 0; transition: opacity .3s var(--ease-out);
  pointer-events: none;
}
.field-gallery .tile:is(:hover, :focus-visible)::after { opacity: 1; }   /* keyboard focus shows the gradient and caption too */
.field-gallery .tile .caption {
  position: absolute;
  bottom: .85rem; left: 1rem; right: 1rem;
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
.field-gallery .tile:is(:hover, :focus-visible) .caption { opacity: 1; transform: translateY(0); }
.field-gallery .tile.t-wide  { grid-column: span 8; grid-row: span 2; }
.field-gallery .tile.t-tall  { grid-column: span 4; grid-row: span 2; }
.field-gallery .tile.t-cell  { grid-column: span 4; grid-row: span 1; }
.field-gallery .tile.t-square { grid-column: span 4; grid-row: span 1; }
@media (max-width: 920px) {
  .field-gallery .tile.t-wide  { grid-column: span 4; }
  .field-gallery .tile.t-tall  { grid-column: span 2; }
  .field-gallery .tile.t-cell  { grid-column: span 2; }
  .field-gallery .tile.t-square{ grid-column: span 2; }
  /* five tiles: the last one closes the mosaic full width (2 rows) instead of leaving an orphan */
  .field-gallery .tile:last-child { grid-column: 1 / -1; grid-row: span 2; }
}
@media (max-width: 600px) {
  .field-gallery .tile.t-wide  { grid-column: span 2; grid-row: span 2; }
  .field-gallery .tile.t-tall  { grid-column: span 1; grid-row: span 2; }   /* tall beside two small tiles, so no tile is left alone at the end */
  .field-gallery .tile.t-cell,
  .field-gallery .tile.t-square { grid-column: span 1; grid-row: span 1; }
  .field-gallery .tile:last-child { grid-column: 1 / -1; grid-row: span 1; }   /* the fifth tile closes the row full width */
}

/* --------- Lightbox --------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 15, 30, .92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 1.5rem;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
}
.lightbox.is-open { display: flex; animation: lbFadeIn .25s var(--ease-out); }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); }

/* --------- Store: filter chips --------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 2.5rem;
  align-items: center;
}
.filter-chip {
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--c-fog);
  color: var(--c-ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.filter-chip:hover { border-color: var(--c-teal); color: var(--c-blue); }
.filter-chip.is-active {
  background: var(--grad-cta);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px -4px rgba(8,148,196,.55), inset 0 1px 0 rgba(255,255,255,.2);
}
.filter-count { color: var(--c-muted); font-size: .9rem; margin-left: auto; transition: color .25s var(--ease-out); }
.filter-bar:hover .filter-count { color: var(--c-blue); }

/* --------- Store: product grid --------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}
.product-card {
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
/* hover lift/border/shadow: shared card hover rule near the end of the file */
.product-card.is-hidden { display: none; }
.product-media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--c-mist) 0%, #E2EFF6 100%);
  display: grid; place-items: center;
  position: relative;
  border-bottom: 1px solid var(--c-fog);
  overflow: hidden;
}
.product-media svg {
  color: var(--c-blue);
  opacity: .85;
  filter: drop-shadow(0 4px 12px rgba(0, 87, 146, .15));
  transition: transform .35s var(--ease-out);
}
.product-card:hover .product-media svg { transform: scale(1.06); }
.product-media .badge-cat {
  position: absolute;
  top: .85rem; left: .85rem;
  background: rgba(255,255,255,.92);
  color: var(--c-blue);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--c-fog);
  backdrop-filter: blur(4px);
}
.product-body {
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex; flex-direction: column; gap: .55rem;
  flex: 1;
}
.product-body h3 {
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: -.01em;
}
.product-body .desc {
  font-size: .9rem;
  color: var(--c-muted);
  margin: 0;
  flex: 1;
}
.product-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem;
  margin-top: .5rem;
}
.product-price {
  font-size: .98rem;
  color: var(--c-ink);
  font-weight: 700;
}
.product-price .from { font-weight: 500; color: var(--c-muted); font-size: .82rem; margin-right: .15rem; }
.product-price.no-price { color: var(--c-muted); font-weight: 600; font-size: .9rem; font-style: italic; }
.btn-add {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: rgba(8,148,196,.10);
  color: var(--c-blue);
  border: 0;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.btn-add:hover { background: var(--grad-cta); color: #fff; }
.btn-add.is-added { background: linear-gradient(135deg, #2ecc71, #27ae60); color: #fff; }
.btn-add svg { width: 14px; height: 14px; }

/* --------- Floating cart button --------- */
.cart-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 5rem;
  display: flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  background: var(--grad-cta);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 105;
  opacity: 0;
  transform: translateY(12px) scale(.95);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .2s;
  pointer-events: none;
}
.cart-fab.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.cart-fab:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); }
.cart-fab .count {
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.35);
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .82rem;
  min-width: 24px;
  text-align: center;
}
@media (max-width: 600px) { .cart-fab { right: 1rem; bottom: 5rem; } }

/* When a page has both a cart FAB and back-to-top, stack back-to-top above the cart FAB */
body:has(.cart-fab) .back-top {
  bottom: calc(1.5rem + 56px + .85rem + 56px + .65rem);
}
@media (max-width: 600px) {
  body:has(.cart-fab) .back-top {
    bottom: calc(1rem + 56px + .85rem + 52px + .55rem);
  }
}

/* --------- Cart drawer --------- */
.cart-drawer {
  position: fixed; inset: 0;
  background: rgba(0, 15, 30, .55);
  display: none;
  z-index: 200;
  backdrop-filter: blur(6px);
}
.cart-drawer.is-open { display: block; animation: lbFadeIn .2s var(--ease-out); }
.cart-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(94vw, 520px);
  background: #fff;
  display: flex; flex-direction: column;
  box-shadow: -20px 0 40px -10px rgba(0,15,30,.3);
  animation: slideInRight .3s var(--ease-out);
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.cart-drawer__head {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--c-fog);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-drawer__head h3 { margin: 0; font-size: 1.2rem; }
.cart-drawer__close {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--c-mist);
  border: 0;
  color: var(--c-ink);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s;
}
.cart-drawer__close:hover { background: var(--c-fog); }

.cart-list {
  list-style: none;
  margin: 0; padding: 1rem 1.5rem;
  flex: 1;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: .85rem;
}
.cart-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--c-muted);
}
.cart-empty svg { color: var(--c-line); margin-bottom: 1rem; }
.cart-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  grid-template-areas:
    "ic main remove"
    "ic qty  line";
  column-gap: .85rem;
  row-gap: .35rem;
  padding: .85rem;
  background: var(--c-mist);
  border-radius: 12px;
}
.cart-item__ic {
  grid-area: ic;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(8,148,196,.15), rgba(0,87,146,.20));
  color: var(--c-blue);
  display: grid; place-items: center;
  align-self: start;
}
.cart-item__main { grid-area: main; min-width: 0; }
.cart-item__name {
  font-size: .94rem;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.3;
}
.cart-item__meta {
  font-size: .78rem;
  font-weight: 500;
  color: var(--c-muted);
  margin-top: .15rem;
}
.cart-item__qty {
  grid-area: qty;
  display: inline-flex; align-items: center; gap: .35rem;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: 999px;
  padding: .15rem;
  width: max-content;
}
.cart-item__qty button {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--c-blue);
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  padding: 0;
}
.cart-item__qty button:hover { background: var(--c-mist); }
.cart-item__qty span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  font-size: .92rem;
  color: var(--c-ink);
  padding: 0 .15rem;
}
.cart-item__line {
  grid-area: line;
  font-weight: 700;
  font-size: .96rem;
  color: var(--c-ink);
  align-self: end;
  text-align: right;
}
.cart-item__remove {
  grid-area: remove;
  background: none; border: 0; color: var(--c-muted); cursor: pointer; padding: .25rem;
  transition: color .2s;
  align-self: start;
  justify-self: end;
}
.cart-item__remove:hover { color: #c0392b; }

/* Totals block */
.cart-totals {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--c-fog);
  background: #fff;
}
.cart-totals__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .35rem 0;
  font-size: .92rem;
  color: var(--c-ink);
}
.cart-totals__row--muted {
  color: var(--c-muted);
  font-size: .85rem;
}
.cart-totals__row--total {
  border-top: 1px solid var(--c-fog);
  margin-top: .35rem;
  padding-top: .85rem;
  font-weight: 700;
  font-size: 1.05rem;
}
.cart-totals__row--total > span:last-child {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--c-blue), var(--c-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cart-drawer__foot {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--c-fog);
  display: flex; flex-direction: column; gap: .85rem;
  background: var(--c-mist);
}
.cart-drawer__trust {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  margin: 0;
  font-size: .8rem;
  color: var(--c-muted);
  text-align: center;
}
.cart-drawer__trust svg { color: var(--c-teal); flex-shrink: 0; }

/* --------- Pay page --------- */
.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 920px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-help {
  font-size: 1rem;
}
.pay-help h3 { font-size: 1.15rem; }
.pay-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem;
  counter-reset: paystep;
}
.pay-steps li {
  display: flex; gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--c-mist);
  border-radius: 12px;
  counter-increment: paystep;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
/* hover lift/border/shadow: shared card hover rule near the end of the file */
.pay-steps li::before {
  content: counter(paystep);
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--grad-cta);
  color: #fff;
  font-weight: 800;
  font-size: .92rem;
  display: grid; place-items: center;
}
.pay-steps li strong { display: block; color: var(--c-ink); margin-bottom: .15rem; }
.pay-steps li span { color: var(--c-body); font-size: .94rem; line-height: 1.5; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center;
  margin-top: 1.5rem;
  font-size: .85rem;
  color: var(--c-muted);
}
.trust-row .tr {
  display: inline-flex; align-items: center; gap: .5rem;
}
.trust-row .tr svg { color: var(--c-teal); }

.pay-card {
  background: #fff;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--c-fog);
}
.amount-input {
  position: relative;
}
.amount-input::before {
  content: '$';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-muted);
  font-weight: 700;
  pointer-events: none;
}
.amount-input input { padding-left: 2rem; }

.alt-pay {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--c-mist);
  border-radius: var(--radius);
}
.alt-pay h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.alt-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.alt-pay-row > div { flex: 1; min-width: 200px; }
.alt-pay-row strong { display: block; color: var(--c-ink); margin-bottom: .35rem; font-size: .95rem; }
.alt-pay-row p { color: var(--c-body); font-size: .92rem; margin: 0; line-height: 1.55; }

/* --------- Site search modal --------- */
/* Search button - clean icon-only by default, expands to text on hover (desktop) */
.search-trigger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font: inherit;
  color: var(--c-muted);
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.search-trigger:hover { background: var(--c-mist); color: var(--c-blue); transform: scale(1.05); }
.search-trigger:active { transform: scale(0.96); }
.search-trigger svg { color: currentColor; width: 18px; height: 18px; }
.search-trigger span,
.search-trigger kbd { display: none; }

/* Over the dark hero, lift the icon for legibility */
.site-header:not(.is-scrolled):not(.is-light) .search-trigger {
  color: rgba(255,255,255,.92);
}
.site-header:not(.is-scrolled):not(.is-light) .search-trigger:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
}

.search-modal {
  position: fixed; inset: 0;
  background: rgba(0, 15, 30, .55);
  display: none;
  z-index: 200;
  backdrop-filter: blur(8px);
  align-items: flex-start; justify-content: center;
  padding: clamp(1rem, 8vh, 6rem) 1rem 2rem;
}
.search-modal.is-open { display: flex; animation: lbFadeIn .2s var(--ease-out); }
.search-panel {
  width: min(100%, 640px);
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px -16px rgba(0,15,30,.45);
  display: flex; flex-direction: column;
  /* fills the modal's padded box, which is the visible viewport on iOS too; 100vh ran under Safari's toolbar */
  max-height: 100%;
}
.search-input-wrap {
  position: relative; /* anchors .search-close */
  display: flex; align-items: center; gap: .85rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--c-fog);
}
/* Focused search field: teal underline (5.5:1). The input's own outline is 0, so the divider carries the focus cue. */
.search-input-wrap:has(> input:focus) { border-bottom-color: var(--c-teal-text); box-shadow: inset 0 -1px 0 var(--c-teal-text); }
.search-input-wrap svg { color: var(--c-muted); flex-shrink: 0; }
.search-input-wrap input {
  flex: 1;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 1.05rem;
  color: var(--c-ink);
  background: transparent;
  padding: .35rem 3.25rem .35rem 0; /* right padding clears .search-close */
  /* One close control: drop Safari's native search-field styling (the browser's own clear x goes below). */
  -webkit-appearance: none;
  appearance: none;
}
.search-input-wrap input::placeholder { color: var(--c-muted); }
/* Chrome, Edge and Safari drew their own clear (x) next to .search-close; the modal's close button is the one control. */
.search-input-wrap input::-webkit-search-cancel-button,
.search-input-wrap input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-input-wrap kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .68rem;
  padding: .15rem .45rem;
  background: var(--c-mist);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  color: var(--c-muted);
  flex-shrink: 0;
}
.search-results {
  list-style: none;
  margin: 0; padding: .5rem;
  overflow-y: auto;
  flex: 1;
}
.search-results .empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--c-muted);
  font-size: .94rem;
}
.search-results li a {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background .15s var(--ease-soft);
}
.search-results li a:hover,
.search-results li a.is-focused {
  background: linear-gradient(90deg, rgba(8,148,196,.08), transparent);
  /* Teal, not cyan: the arrow-key selection bar is the only focus cue here and cyan is 1.8:1 on white. */
  border-left: 3px solid var(--c-teal-text);
  padding-left: calc(1rem - 3px);
}
/* The no-results message carries one inline "contact us" link: keep it inside the sentence instead of styling it as a result row. */
.search-results li.empty a,
.search-results li.empty a:hover { display: inline; padding: 0; border: 0; border-radius: 0; background: none; }
.search-results .ic {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(8,148,196,.14), rgba(0,87,146,.20));
  color: var(--c-blue);
  display: grid; place-items: center;
}
.search-results .meta { flex: 1; min-width: 0; }
.search-results .meta strong {
  display: block;
  color: var(--c-ink);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: -.005em;
}
/* Summaries wrap instead of cutting to one line: the old ellipsis hid the matched word on phones. */
.search-results .meta span {
  display: block;
  font-size: .85rem;
  color: var(--c-muted);
  margin-top: .15rem;
}
.search-results mark {
  background: rgba(33,212,255,.25);
  color: var(--c-ink);   /* muted summary text is 4.4:1 on this highlight, ink keeps matched words above AA */
  padding: 0 1px;
  border-radius: 2px;
}
.search-foot {
  padding: .65rem 1.25rem;
  border-top: 1px solid var(--c-fog);
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  font-size: .75rem;
  color: var(--c-muted);
}
.search-foot kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .68rem;
  padding: .1rem .35rem;
  background: var(--c-mist);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  margin-right: .25rem;
}
/* Touch phones and tablets have no arrow keys, Enter or Ctrl+K, so the keyboard legend is hidden there. */
@media (hover: none) and (pointer: coarse) { .search-foot { display: none; } }

/* --------- Customer Portal --------- */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 920px) { .portal-grid { grid-template-columns: 1fr; } }
/* One column: the document request card leads because it is what clients can use today; desktop keeps features left, card right.
   DOM order (features, then card) is unchanged for screen readers, and the feature list has no focusable elements, so focus order is unchanged.
   Screen only, so a printout keeps DOM order. The feature list now ends the section, so its bottom margin goes
   and the section keeps its usual bottom padding (two classes, as the base .portal-features rule comes later). */
@media screen and (max-width: 920px) { .portal-grid > :last-child { order: -1; } .portal-grid .portal-features { margin-bottom: 0; } }
/* The portal intro h2 had no size and fell back to the browser default (1.5em); match the contact page's two-column intro heading */
.portal-grid h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
.portal-features {
  display: grid; gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.portal-feature {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: 12px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
/* hover lift/border/shadow: shared card hover rule near the end of the file */
.portal-feature .ic {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(8,148,196,.14), rgba(0,87,146,.20));
  color: var(--c-blue);
  display: grid; place-items: center;
}
.portal-feature strong { display: block; color: var(--c-ink); font-size: 1rem; margin-bottom: .15rem; }
/* Block caption with its own leading (was double-spaced inline); child combinator skips .fx-shine */
.portal-feature > div > span { display: block; color: var(--c-body); font-size: .9rem; line-height: 1.55; }
/* Portal holding page (launch): the request form is gone, so the feature list runs full width under the
   "Pardon our dust" notice instead of sharing a row with a form. Three across, then two, then one. */
.portal-preview { margin-top: 4.5rem; }
.portal-features--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
@media (max-width: 980px) { .portal-features--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .portal-features--grid { grid-template-columns: 1fr; } .portal-preview { margin-top: 3rem; } }
/* A notice card that ends on its paragraph (the portal one has no buttons) needs no gap under it */
.dust-card > p:last-child { margin-bottom: 0; }

/* --------- Industries Served --------- */
.industry-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2.25rem 2rem;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-clip: padding-box;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.industry-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-teal) 30%, var(--c-cyan) 50%, var(--c-teal) 70%, transparent);
  transform: translateX(-100%);
  transition: transform .6s var(--ease-out);
}
/* hover lift/border/shadow: shared card hover rule near the end of the file */
.industry-card:hover::after { transform: translateX(0); }
.industry-card .ind-ic {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(8,148,196,.14), rgba(0,87,146,.20));
  color: var(--c-blue);
  display: grid; place-items: center;
}
.industry-card h3 { font-size: 1.3rem; margin-bottom: .55rem; letter-spacing: -.01em; }
.industry-card .ind-lead { color: var(--c-body); margin-bottom: 1rem; font-size: 1rem; }
.industry-card .ind-points {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .55rem;
}
.industry-card .ind-points li {
  display: flex; gap: .65rem; align-items: flex-start;
  font-size: .94rem;
  color: var(--c-ink);
}
.industry-card .ind-points li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  background-color: var(--c-teal);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 70%;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 70%;
}
/* A link inside a bullet (e.g. Procurement-ready on the Government card) flows as running text
   and wears the site-wide inline-link underline, so it is not marked by colour alone (WCAG 1.4.1).
   display:inline overrides the inline-flex from the card-link rule further down. */
.industry-card .ind-points a {
  display: inline;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,87,146,.45);
  transition: color .25s var(--ease-out), text-decoration-color .25s var(--ease-out);
}
.industry-card .ind-points a:hover { color: var(--c-teal-text); text-decoration-color: currentColor; }
/* Wide screens: cap the intro measure (it ran to about 115 characters across the full-bleed card) and run the four
   bullets as 2x2 so the card stops leaving roughly 490px of itself empty. Every industry card carries exactly four points.
   The lead cap is a no-op on narrower cards, so it is gated low; the grid waits for the 1240px --container width, where
   the content box is a constant 1160px and the two tracks are as wide as they can get (about 475px each, roughly 60
   characters). Below that the single column reads better: measured at 1121px every bullet wrapped for no height saving.
   The roomier row-gap keeps the two rows reading as four separate items once a bullet wraps.
   Below these gates the stacked phone and tablet layout is untouched. */
@media (min-width: 880px) {
  .industry-card .ind-lead { max-width: 68ch; }
}
@media (min-width: 1240px) {
  .industry-card .ind-points { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; row-gap: .85rem; }
}
@media (max-width: 600px) {
  .industry-card { grid-template-columns: 1fr; gap: 1rem; padding: 1.75rem 1.5rem; }
}

/* --------- Procurement / Vendor docs --------- */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.vendor-doc {
  display: flex; align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
/* hover lift/border/shadow: shared card hover rule near the end of the file */
.vendor-doc__ic {
  position: relative;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(8,148,196,.14), rgba(33,212,255,.20));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 12px -4px rgba(8,148,196,.3);
  color: var(--c-blue);
  display: grid; place-items: center;
}
.vendor-doc:hover .vendor-doc__ic {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 18px -4px rgba(8,148,196,.5);
}
.vendor-doc strong {
  display: block;
  color: var(--c-ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.005em;
  margin-bottom: .15rem;
}
.vendor-doc span {
  display: block;
  color: var(--c-body);
  font-size: .88rem;
  line-height: 1.5;
}
/* The six document cards are email links: a visible "Request by email" cue (same idea as the service cards'
   "Learn more") tells touch and mouse visitors they can be clicked. 0,2,0 outranks .vendor-doc span above.
   The text column fills the card and the cue is pinned to its bottom, so the cues line up across a row even
   when one description wraps to an extra line (as .svc-card .more does). */
.vendor-doc > div:not(.vendor-doc__ic) { align-self: stretch; display: flex; flex-direction: column; }
.vendor-doc .vendor-doc__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .35rem;
  margin-top: auto;
  padding-top: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--c-blue);
}

.vendor-glance {
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.vendor-glance__list {
  margin: 0;
  display: grid;
  gap: .25rem;
}
.vendor-glance__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--c-fog);
}
.vendor-glance__row:last-child { border-bottom: 0; }
.vendor-glance__row dt {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-muted);
  text-transform: uppercase;
}
.vendor-glance__row dd {
  margin: 0;
  font-size: .96rem;
  color: var(--c-ink);
  line-height: 1.5;
}
.vendor-glance__row dd a { color: var(--c-blue); }
@media (max-width: 640px) {
  .vendor-glance__row { grid-template-columns: 1fr; gap: .25rem; padding: .65rem 0; }
}

/* --------- System advisories --------- */
.advisory-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.advisory {
  padding: 1.4rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid var(--c-teal);
  box-shadow: var(--shadow-sm);
  border-top: 1px solid var(--c-fog);
  border-right: 1px solid var(--c-fog);
  border-bottom: 1px solid var(--c-fog);
}
.advisory--active {
  border-left-color: #c1432e; /* warm red - active */
  background: linear-gradient(180deg, #fff7f4 0%, #fff 18%);
}
.advisory--active .advisory__status { color: #c1432e; }
.advisory--lifted { border-left-color: var(--c-teal); }
.advisory--scheduled { border-left-color: #b78a13; background: linear-gradient(180deg, #fff8e8 0%, #fff 18%); }
.advisory--scheduled .advisory__status { color: #b78a13; }

.advisory__head {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  align-items: center; justify-content: space-between;
  margin-bottom: .5rem;
}
.advisory__status {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c1432e;
}
.advisory__status--lifted { color: var(--c-teal-text); }
.advisory__date {
  font-size: .82rem;
  color: var(--c-muted);
}
.advisory__title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 0 0 .25rem;
  color: var(--c-ink);
  line-height: 1.35;
}
.advisory__loc {
  font-size: .88rem;
  color: var(--c-muted);
  margin: 0 0 .65rem;
  font-weight: 500;
}
.advisory > p {
  font-size: .94rem;
  color: var(--c-body);
  line-height: 1.6;
  margin: 0 0 .75rem;
}
.advisory__details {
  list-style: none;
  margin: .85rem 0 0;
  padding: .85rem 0 0;
  display: grid; gap: .35rem;
  border-top: 1px solid var(--c-fog);
  font-size: .88rem;
}
.advisory__details strong { color: var(--c-ink); margin-right: .35rem; }

.advisory-empty {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(8,148,196,.06), rgba(33,212,255,.04));
  border: 1px solid rgba(8,148,196,.15);
  border-radius: 12px;
  /* Grid, not flex: icon on the left, heading above the text in one column (flex made three squeezed columns) */
  /* .25rem left the heading and its sentence reading as one block, so the row gap is the space below the h3 */
  display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; row-gap: .45rem; align-items: center;
}
/* Soft breathing glow + expanding ring - both settle after 3 cycles (motion budget) */
.advisory-empty::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 50%, rgba(33,212,255,.08), transparent 60%);
  animation: advisoryBreath 5s ease-in-out 3;
  pointer-events: none;
  z-index: 0;
}
.advisory-empty > * { position: relative; z-index: 1; }
@keyframes advisoryBreath {
  0%, 100% { transform: scale(1); opacity: .6; }
  50%      { transform: scale(1.1); opacity: 1; }
}
.advisory-empty__ic {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  grid-row: 1 / span 2;
  /* Sit on the heading line once the text wraps taller than 56px (phones), the same way the
     body copy anchors itself with align-self: start further down this block */
  align-self: start;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-teal), var(--c-cyan));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px -6px rgba(8,148,196,.4);
}
.advisory-empty__ic::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 2px solid rgba(8,148,196,.35);
  animation: ringPulse 2.4s var(--ease-out) 3 forwards;
}
@keyframes ringPulse {
  0%   { transform: scale(.9); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .advisory-empty::after, .advisory-empty__ic::after { animation: none !important; }
}
.advisory-empty h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 0;   /* the grid row-gap supplies the space below */
  grid-column: 2; align-self: end;
  color: var(--c-ink);
}
/* The empty state is this page's standing message almost every day, so its sentence gets a reading measure
   (68ch, the same cap the industry card lead uses) instead of running the full width of the panel */
.advisory-empty p { margin: 0; color: var(--c-body); font-size: .92rem; max-width: 68ch; grid-column: 2; align-self: start; }

/* Alert bar - advisory variant (warm red instead of brand teal gradient) */
.alert-bar.alert-bar--advisory { background: linear-gradient(90deg, #8b0000, #a52a2a, #c1432e); }
.alert-bar.alert-bar--advisory .alert-bar__pulse { background: rgba(255,255,255,.85); }

/* --------- Press / In the news --------- */
.press-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.press-item {
  display: block;
  padding: 1.25rem 1.4rem;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.press-item:hover {
  transform: translateY(-2px);
  border-color: rgba(8,148,196,.4);
  box-shadow: var(--shadow-sm);
}
.press-item__date {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-teal-text);
  margin-bottom: .35rem;
}
.press-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -.005em;
  line-height: 1.4;
  margin-bottom: .35rem;
}
.press-item__source {
  font-size: .82rem;
  color: var(--c-muted);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.press-item__source svg { color: currentColor; }

/* --------- Awards & memberships row --------- */
.awards {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: linear-gradient(180deg, #fff 0%, var(--c-mist) 100%);
  border-top: 1px solid var(--c-fog);
  border-bottom: 1px solid var(--c-fog);
}
.awards__head {
  text-align: center;
  margin-bottom: 1.85rem;
}
.awards__head .eyebrow { display: inline-block; }
.awards__head h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -.005em;
  margin: .65rem 0 0;
}
.awards__head h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--c-blue);
}
.awards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}
.award-badge {
  display: flex; align-items: center;
  gap: .8rem;
  padding: .9rem 1.1rem;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: 12px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  text-decoration: none;
  color: inherit;
}
.award-badge:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(8,148,196,.4);
  box-shadow: 0 12px 28px -8px rgba(8,148,196,.4);
}
.award-badge__ic {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(8,148,196,.14), rgba(0,87,146,.20));
  color: var(--c-blue);
  display: grid; place-items: center;
}
.award-badge__txt {
  display: flex; flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.award-badge__name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -.005em;
  line-height: 1.2;
}
.award-badge__sub {
  font-size: .68rem;
  color: var(--c-muted);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.2;
}
@media (max-width: 600px) {
  .awards-row { grid-template-columns: repeat(2, 1fr); }
}

/* --------- Team page --------- */
/* .team-grid is defined once, under "Team" above (auto-fill, 320px min, 1.5rem gap).
   about.html uses a centred flex modifier, .team-grid--center, defined next to it. */
.team-card {
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
/* hover lift/border/shadow: shared card hover rule near the end of the file */
.team-card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 220px 1fr;
}
@media (max-width: 720px) {
  .team-card--featured { grid-column: span 1; grid-template-columns: 1fr; }
}
/* team.html lists the featured owner card plus three others. Give those three a row of their own when
   there is room, and centre the odd one out while the grid is two columns wide. */
@media (min-width: 900px) {
  .team-grid:has(> .team-card--featured) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-grid:has(> .team-card--featured) > .team-card--featured { grid-column: 1 / -1; }
}
@media (min-width: 721px) and (max-width: 899.98px) {
  .team-grid:has(> .team-card--featured) > .team-card:last-child:nth-child(even) { grid-column: 1 / -1; width: calc(50% - .75rem); justify-self: center; }
}

.team-portrait {
  position: relative;
  background: linear-gradient(135deg, #003B5C, #005792 60%, #0894C4);
  overflow: hidden;
}
.team-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease-out);
}
/* Subtle interior gradient + portrait zoom on card hover */
.team-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,31,53,.25) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}
.team-card:hover .team-portrait::after { opacity: 1; }
.team-card:hover .team-portrait img { transform: scale(1.06); }
.team-card:not(.team-card--featured) .team-portrait { aspect-ratio: 1; }
/* Owner card: the tall 619x1100 portrait used to set the card height (blank space under the bio on desktop, an
   862px card on phones). The photo now fills a box sized by the text, framed on the face; phones use 4:5 like about.html. */
.team-card--featured .team-portrait { min-height: 300px; }
.team-card--featured .team-portrait img { position: absolute; inset: 0; object-position: 50% 15%; }
.team-card--featured .team-body { justify-content: center; }
@media (max-width: 720px) { .team-card--featured .team-portrait { min-height: 0; aspect-ratio: 4 / 5; } .team-card--featured .team-body { justify-content: flex-start; } }

.team-avatar {
  height: 160px;
  display: grid;
  place-items: center;
  background: var(--avatar-bg, linear-gradient(135deg, #005792, #0894C4));
  color: rgba(255,255,255,.95);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 3.4rem;
  letter-spacing: .04em;
  position: relative;
  overflow: hidden;
}
.team-avatar::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(600px circle at 100% 0%, rgba(33,212,255,.25), transparent 55%),
    radial-gradient(500px circle at 0% 100%, rgba(8,148,196,.25), transparent 55%);
  pointer-events: none;
}

.team-body {
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex; flex-direction: column;
  gap: .55rem;
  flex: 1;
}
.team-role {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-teal-text);
}
.team-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--c-ink);
}
.team-tenure {
  font-size: .85rem;
  color: var(--c-muted);
  font-weight: 500;
  margin: 0 0 .25rem;
}
.team-body > p:not(.team-tenure) {
  margin: 0;
  font-size: .94rem;
  color: var(--c-body);
  line-height: 1.6;
}
.team-creds {
  list-style: none;
  margin: .85rem 0 0;
  padding: .85rem 0 0;
  display: grid;
  gap: .4rem;
  border-top: 1px solid var(--c-fog);
}
.team-creds li {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  font-size: .86rem;
  color: var(--c-ink);
  line-height: 1.4;
}
.team-creds li::before {
  content: '';
  flex-shrink: 0;
  width: 14px; height: 14px;
  margin-top: 2px;
  background-color: var(--c-teal);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/><polyline points='9 12 11 14 15 10'/></svg>") no-repeat center / 100%;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/><polyline points='9 12 11 14 15 10'/></svg>") no-repeat center / 100%;
}

/* --------- Projects portfolio --------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.project-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
  isolation: isolate;
}
/* hover lift/border/shadow: shared card hover rule near the end of the file */
.project-card.is-hidden { display: none; }

.project-media {
  position: relative;
  background: linear-gradient(135deg, #003B5C 0%, #005792 60%, #0894C4 100%);
  height: 130px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.85);
  overflow: hidden;
}
.project-media::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px circle at 100% 0%, rgba(33,212,255,.18), transparent 55%),
    radial-gradient(600px circle at 0% 100%, rgba(8,148,196,.20), transparent 55%);
}
.project-media svg {
  position: relative;
  width: 56px; height: 56px;
  color: rgba(255,255,255,.95);
  filter: drop-shadow(0 2px 4px rgba(0,15,30,.3));
}
.project-badge {
  position: absolute; top: .9rem; left: .9rem;
  padding: .25rem .65rem;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #fff;
  z-index: 1;
}

.project-body {
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex; flex-direction: column;
  gap: .75rem;
  flex: 1;
}
.project-tenure {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-teal-text);
}
.project-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--c-ink);
  line-height: 1.3;
}
.project-loc {
  margin: 0;
  font-size: .85rem;
  color: var(--c-muted);
  font-weight: 500;
}
.project-card > .project-body > p:not(.project-loc) {
  margin: 0;
  color: var(--c-body);
  font-size: .94rem;
  line-height: 1.6;
}
.project-outcomes {
  list-style: none;
  margin: 0;
  padding: .25rem 0 0;
  display: grid;
  gap: .45rem;
  border-top: 1px solid var(--c-fog);
  padding-top: .85rem;
}
.project-outcomes li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--c-ink);
  line-height: 1.45;
}
.project-outcomes li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 1px;
  background-color: var(--c-teal);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 75%;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 75%;
}
.project-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .35rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--c-blue);
  text-decoration: none;
}
.project-cta:hover { color: var(--c-teal-text); }

.project-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--c-muted);
  font-size: 1rem;
}
.project-empty a { color: var(--c-blue); text-decoration: underline; }

/* --------- Sampling packages --------- */
.audience-toggle {
  display: flex; justify-content: center;
  width: fit-content; max-width: 100%;   /* the pill hugs its two tabs instead of spanning the whole container */
  background: var(--c-mist);
  border: 1px solid var(--c-fog);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  margin: 0 auto;
}
.audience-toggle .aud-tab {
  display: inline-flex; align-items: center; gap: .55rem;
  white-space: nowrap;
  padding: .65rem 1.5rem;
  background: transparent; border: 0;
  border-radius: 999px;
  font: inherit; font-size: .95rem; font-weight: 600;
  color: var(--c-muted);
  cursor: pointer;
  transition: background .25s var(--ease-soft), color .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
}
.audience-toggle .aud-tab:hover { color: var(--c-blue); }
/* Selected tab: the same filled blue pill as .filter-chip.is-active, so the state reads by shape and fill (3:1), not by a faint hue shift */
.audience-toggle .aud-tab.is-active {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(8,148,196,.55), inset 0 1px 0 rgba(255,255,255,.2);
}
.audience-toggle .aud-tab svg { color: currentColor; flex-shrink: 0; }   /* keeps the 18px icon from collapsing to 0 */
/* Phones: both tabs share one full-width line; the icons step aside so neither label wraps */
@media (max-width: 480px) {
  .audience-toggle { width: 100%; }
  .audience-toggle .aud-tab { flex: 1 1 auto; justify-content: center; padding: .6rem .85rem; font-size: .9rem; }
  .audience-toggle .aud-tab svg { display: none; }
}
/* The narrowest phones (320px): a little less padding so the one-line labels stay inside the pill */
@media (max-width: 359px) {
  .audience-toggle .aud-tab { padding: .6rem .6rem; font-size: .875rem; }
}
/* High contrast drops the gradient fill, so an inset system-colour ring marks the selected tab; skipped while focused so the focus ring still shows */
@media (forced-colors: active) {
  .audience-toggle .aud-tab.is-active:not(:focus-visible) { outline: 2px solid SelectedItem; outline-offset: -4px; }
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 960px) { .pkg-grid { grid-template-columns: 1fr; max-width: 560px; } }

.pkg-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 2.25rem 1.85rem;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius);
  isolation: isolate;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
/* hover lift/border/shadow: shared card hover rule near the end of the file */

.pkg-card--featured {
  border-color: rgba(8,148,196,.45);
  box-shadow: 0 24px 60px -28px rgba(0,87,146,.35);
  transform: translateY(-2px);
}
.pkg-card--featured::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,148,196,.06), transparent 40%);
}
/* Featured tier keeps its stronger lift (specificity raised so the shared card hover rule doesn't flatten it) */
/* (the featured tier pops like every other card: shared card pop near the end of the file) */

.pkg-flag {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .25rem .65rem;
  background: linear-gradient(135deg, var(--c-teal), var(--c-cyan));
  color: #fff;
  border-radius: 999px;
}

.pkg-head { margin-bottom: 1.25rem; }
.pkg-tier {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-teal-text);
  margin-bottom: .65rem;
}
.pkg-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: .5rem;
  color: var(--c-ink);
}
.pkg-sub { font-size: .94rem; color: var(--c-body); line-height: 1.55; margin: 0; }

.pkg-price {
  padding: .85rem 0 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--c-fog);
}
.pkg-amt {
  display: block;
  font-size: 1.05rem; color: var(--c-muted); font-weight: 600;
}
.pkg-amt em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 2.2rem; color: var(--c-ink);
  margin-left: .25rem;
  background: linear-gradient(135deg, var(--c-blue), var(--c-teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pkg-meta { display: block; font-size: .8rem; color: var(--c-muted); margin-top: .15rem; }
/* When this line is all the price row holds, set it at .pkg-amt's own size and weight (the size this slot was
   authored for) so the row reads as the price row, not a caption. It stays muted so it cannot outshout the
   tier name, and :only-child releases it back to .8rem the day a figure joins it. */
.pkg-price .pkg-meta:only-child { font-size: 1.05rem; font-weight: 600; margin-top: 0; }

.pkg-checks {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  display: grid; gap: .65rem;
  flex: 1;
  align-content: start;              /* flex: 1 keeps the buttons level; the rows stay packed at the top instead of stretching apart */
}
/* Block list items with a hanging indent: as flex rows they split inline markup such as "Total coliform & E. coli" into side-by-side columns */
.pkg-checks li {
  display: block; position: relative; padding-left: calc(18px + .6rem);
  font-size: .94rem;
  color: var(--c-ink);
  line-height: 1.45;
}
.pkg-checks li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  position: absolute; left: 0; top: 2px; margin-top: 0;   /* pinned to the first line of text */
  background-color: var(--c-teal);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 70%;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 70%;
}
.pkg-cta { width: 100%; justify-content: center; }
/* Three-column tiers: each card borrows the grid's rows (head, price, list, button) so the prices, dividers,
   first bullets and buttons line up across the tiers. Every card must keep exactly these 4 in-flow children.
   Browsers without subgrid, and the one-column layout below 961px, keep the flex column above. */
@media (min-width: 961px) {
  @supports (grid-template-rows: subgrid) {
    .pkg-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  }
}
/* 961 to 1180px: three tiers still fit side by side; a slightly tighter gap and padding give the titles more room,
   and subgrid keeps the rows aligned if one wraps */
@media (min-width: 961px) and (max-width: 1180px) {
  .pkg-grid { gap: 1rem; }
  .pkg-card { padding: 2rem 1.4rem; }
}

/* --------- Newsletter signup --------- */
.newsletter {
  background: linear-gradient(135deg, var(--c-blue) 0%, #002940 100%);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden; isolation: isolate;
}
.newsletter::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px circle at 100% 0%, rgba(33,212,255,.14), transparent 50%),
    radial-gradient(700px circle at 0% 100%, rgba(8,148,196,.18), transparent 50%);
}
.newsletter__inner {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem; align-items: center;
}
@media (max-width: 760px) { .newsletter__inner { grid-template-columns: 1fr; } }
.newsletter h3 {
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem); font-weight: 800;
  letter-spacing: -.015em;
  margin: 0 0 .5rem;
}
.newsletter h3 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, var(--c-cyan), #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.newsletter p { color: rgba(255,255,255,.78); margin: 0 0 1rem; line-height: 1.55; }
.newsletter__form { display: flex; gap: .55rem; flex-wrap: wrap; }
.newsletter__form input[type="email"] {
  flex: 1; min-width: 0;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 10px;
  color: #fff;
  font: inherit; font-size: .95rem;
  transition: border-color .2s, background .2s;
}
.newsletter__form input[type="email"]::placeholder { color: rgba(255,255,255,.55); }
.newsletter__form input[type="email"]:focus { outline: 0; border-color: var(--c-cyan); background: rgba(255,255,255,.12); }
.newsletter__form button {
  padding: .85rem 1.4rem;
  background: var(--c-cyan);
  color: var(--c-blue);
  border: 0;
  border-radius: 10px;
  font: inherit; font-size: .95rem; font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.newsletter__form button:hover { background: #fff; transform: translateY(-1px); }
.newsletter__form button:active { transform: translateY(0); }
.newsletter__note { font-size: .8rem; color: rgba(255,255,255,.55); margin: .75rem 0 0; }
.newsletter__success {
  background: rgba(33,212,255,.14); border: 1px solid rgba(33,212,255,.4);
  padding: .85rem 1rem; border-radius: 10px;
  color: #fff; font-size: .92rem; display: none;
}
.newsletter__success.is-visible { display: block; }

/* Compact newsletter for footer */
.footer-newsletter h5 { color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .85rem; }
.footer-newsletter form { display: flex; gap: .4rem; }
.footer-newsletter input[type="email"] {
  flex: 1; min-width: 0;
  padding: .55rem .75rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  color: #fff;
  font: inherit; font-size: .88rem;
}
.footer-newsletter input[type="email"]::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter input[type="email"]:focus { outline: 0; border-color: var(--c-cyan); }
.footer-newsletter button {
  padding: .55rem .85rem;
  background: var(--c-teal); color: #fff;
  border: 0; border-radius: 8px;
  font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.footer-newsletter button:hover { background: var(--c-cyan); color: var(--c-blue); }


/* --------- Live chat launcher (placeholder + Tawk.to-ready) --------- */
.chat-launcher {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 100;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-blue), var(--c-teal));
  color: #fff;
  border: 0;
  cursor: pointer;
  box-shadow: 0 12px 30px -8px rgba(0,87,146,.5), 0 4px 12px rgba(0,87,146,.3);
  display: grid; place-items: center;
  /* Hidden until the visitor scrolls (see main.js), so on a phone it never covers the intro
     text on arrival. visibility, not just opacity, keeps it out of the tab order while hidden. */
  visibility: hidden; opacity: 0;
  transition: transform .2s, box-shadow .2s, opacity .3s, visibility 0s linear .3s;
}
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -8px rgba(0,87,146,.55), 0 6px 16px rgba(0,87,146,.35); }
.chat-launcher:active { transform: translateY(0); }
.chat-launcher.is-visible { visibility: visible; opacity: 1; transition: transform .2s, box-shadow .2s, opacity .3s, visibility 0s; animation: chatPop .5s var(--ease-out); }
.chat-launcher.is-hidden { display: none; }
/* Floating buttons: cyan ring on a navy band so keyboard focus reads over white sections and the navy footer */
.back-top:focus-visible, .chat-launcher:focus-visible {
  outline: 3px solid var(--c-cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--c-navy), 0 12px 30px -8px rgba(0,87,146,.5);
}
@keyframes chatPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.chat-launcher__pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--c-cyan);
  opacity: .6;
  animation: chatPulse 2s ease-out 3 forwards; /* 3 cycles, then rests invisible (motion budget) */
  z-index: -1;
}
@keyframes chatPulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.6); opacity: 0; }
}
/* Save the three pulses for when the button is actually on screen. */
.chat-launcher:not(.is-visible) .chat-launcher__pulse { animation-play-state: paused; }
/* Same while the open phone menu hides the launcher (body.nav-open, see the back-to-top section). */
body.nav-open .chat-launcher__pulse { animation-play-state: paused; }
.chat-popover {
  position: fixed; bottom: 96px; right: 24px;
  z-index: 100;
  width: min(360px, calc(100% - 48px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px -12px rgba(0,15,30,.35);
  border: 1px solid var(--c-fog);
  overflow: hidden;
  /* Short landscape phones: cap the height (bottom offset plus a 16px top gap) so the title and close
     button stay on screen, and let the actions scroll inside the panel. The vh line is the fallback for
     browsers without dvh. overflow-x stays hidden, so the rounded corners still clip. */
  max-height: calc(100vh - 112px);
  max-height: calc(100dvh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: none;
}
.chat-popover.is-open { display: block; animation: chatPop .25s var(--ease-out); }
@media (max-width: 600px) {
  .chat-launcher { right: 1rem; bottom: 1rem; width: 52px; height: 52px; }
  .chat-popover { bottom: 80px; right: 1rem; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); }
}
.chat-popover__head {
  background: var(--grad-cta);   /* ends on --c-teal-text so the white subtext passes 4.5:1 across the whole header */
  color: #fff;
  padding: 1.1rem 1.25rem 1.25rem;
  position: relative;
}
.chat-popover__head strong { display: block; font-size: 1.05rem; font-weight: 700; margin-bottom: .15rem; }
/* Block with its own line-height: as an inline span it inherited the header's 28px strut (double-spaced),
   and balance avoids a lone 'to you.' on the second line. */
.chat-popover__head span { display: block; font-size: .85rem; line-height: 1.45; color: rgba(255,255,255,.92); text-wrap: balance; }
.chat-popover__close {
  position: absolute; top: .85rem; right: .85rem;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15); color: #fff;
  border: 0; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center;
  transition: background .2s;
}
.chat-popover__close:hover { background: rgba(255,255,255,.28); }
.chat-popover__body { padding: 1.25rem; }
.chat-popover__body p { font-size: .92rem; color: var(--c-body); line-height: 1.55; margin: 0 0 1rem; }
.chat-popover__actions { display: grid; gap: .55rem; }
.chat-popover__action {
  display: flex; align-items: center; gap: .65rem;
  padding: .7rem .85rem;
  border: 1px solid var(--c-fog);
  border-radius: 10px;
  text-decoration: none;
  color: var(--c-ink);
  font-size: .92rem;
  transition: border-color .2s, background .2s;
}
.chat-popover__action:hover { border-color: var(--c-teal); background: var(--c-mist); }
.chat-popover__action svg { color: var(--c-teal); flex-shrink: 0; }

/* --------- Quote estimator --------- */
.quote-estimator {
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
}
.quote-estimator h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 0 0 .35rem;
  color: var(--c-ink);
}
.quote-estimator__sub { color: var(--c-body); font-size: .96rem; margin: 0 0 1.5rem; }
.qe-fields { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.qe-field { display: grid; gap: .35rem; }
.qe-field label { font-size: .85rem; font-weight: 600; color: var(--c-ink); }
.qe-field select,
.qe-field input[type="number"] {
  padding: .65rem .85rem;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  font: inherit; font-size: .95rem;
  background: #fff;
  color: var(--c-ink);
  transition: border-color .2s;
}
.qe-field select:focus,
.qe-field input[type="number"]:focus { outline: 0; border-color: var(--c-teal); }

.qe-result {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(8,148,196,.06), rgba(0,87,146,.10));
  border: 1px solid rgba(8,148,196,.2);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.qe-result__label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-teal-text); margin-bottom: .35rem; }
.qe-result__amt {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--c-blue), var(--c-teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.02em;
}
.qe-result__amt span { font-size: .4em; color: var(--c-muted); margin-left: .35rem; font-family: var(--font-sans); font-style: normal; font-weight: 500; -webkit-text-fill-color: var(--c-muted); letter-spacing: 0; }
.qe-result__note { font-size: .85rem; color: var(--c-body); margin: .5rem 0 0; line-height: 1.5; }
.qe-disclaimer { font-size: .8rem; color: var(--c-muted); line-height: 1.5; margin-top: 1rem; }

/* --------- Coverage map --------- */
.coverage-map {
  position: relative;
  width: 100%;
  height: clamp(380px, 50vh, 520px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-fog);
  background: var(--c-mist);
  isolation: isolate;
}
.leaflet-container { background: #e9eef3; font-family: var(--font-sans); }
/* Tone the stock OSM tiles toward the site palette so the cyan markers and service-area halo stand out (tile pane only: markers, popups, controls and attribution keep their colours) */
.coverage-map .leaflet-tile-pane { filter: saturate(.3) brightness(1.04); }
/* 2x+ screens only (phones, Retina): Leaflet's plus-lighter blend draws a white hairline at each tile edge there, and normal
   blend with a half-pixel overlap removes it (!important: Leaflet sizes tiles inline). Below 2x the overlap can leave a faint line. */
@media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2) {
  .coverage-map .leaflet-tile-pane img.leaflet-tile { mix-blend-mode: normal; width: 256.5px !important; height: 256.5px !important; }
}
/* map credit links: darker than Leaflet's #0078A8 so the 12px credit reads at AA over the tiles */
.coverage-map .leaflet-control-attribution a { color: var(--c-blue); }
/* the 22px --radius-lg with overflow:hidden was slicing the credit pill's own corner, so the control is inset from the curve and given a matching --radius-sm corner.
   The inset goes on the Leaflet corner container (not the control): leaflet.css is injected at runtime, so it lands after this file and would win a margin tie on the control itself. */
.coverage-map .leaflet-bottom.leaflet-right { margin: 0 .75rem .75rem 0; }
.coverage-map .leaflet-control-attribution { border-radius: var(--radius-sm); padding: 2px 8px; }
/* The stock zoom buttons were the one off-system control on the page, so they take the same near-white pill as
   the .coverage-legend in the opposite corner (same fill, border token, 10px radius and --shadow-sm). Every
   selector below carries Leaflet's own .leaflet-bar class because leaflet.css is injected at runtime and so
   lands after this file: the extra class is what beats its .leaflet-touch rules without needing !important. */
.coverage-map .leaflet-control-zoom.leaflet-bar {
  border: 1px solid var(--c-fog);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.coverage-map .leaflet-control-zoom.leaflet-bar a {
  width: 38px; height: 38px;
  /* longhands, not the font shorthand: a shorthand here would silently reset the line-height below. Leaflet's
     1px text-indent was tuned for its monospace glyphs, so it goes back to 0 for Manrope. */
  font-family: var(--font-sans); font-size: 20px; font-weight: 600; line-height: 38px; text-indent: 0;
  background: rgba(255,255,255,.96);
  color: var(--c-blue);
  border-bottom-color: var(--c-fog);   /* colour only: Leaflet drops the border on the last button, so this is just the divider */
}
.coverage-map .leaflet-control-zoom.leaflet-bar a:hover { background: #fff; color: var(--c-teal-text); }
/* overflow: hidden on the control would clip the global outside ring, so it is drawn inside instead, the same
   way .faq summary does it under its clipping <details> */
.coverage-map .leaflet-control-zoom.leaflet-bar a:focus-visible { outline-offset: -3px; box-shadow: none; }
/* Last in the block, and with the :hover form, so Leaflet's own .leaflet-disabled dimming survives the raised
   specificity above: without this a button that has hit the zoom limit would still look live. */
.coverage-map .leaflet-control-zoom.leaflet-bar a.leaflet-disabled,
.coverage-map .leaflet-control-zoom.leaflet-bar a.leaflet-disabled:hover {
  background: rgba(255,255,255,.72); color: var(--c-muted); cursor: default;
}
.coverage-popup .leaflet-popup-content-wrapper {
  border-radius: 10px; padding: 0;
}
.coverage-popup .leaflet-popup-content { margin: .85rem 1rem; font-size: .9rem; }
.coverage-popup strong { display: block; color: var(--c-ink); font-size: .98rem; margin-bottom: .15rem; }
.coverage-popup span { color: var(--c-muted); font-size: .82rem; }

.coverage-legend {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border: 1px solid var(--c-fog);
  border-radius: 10px;
  padding: .85rem 1rem;
  box-shadow: var(--shadow-sm);
  font-size: .85rem;
  z-index: 1000;
}
.coverage-legend strong { display: block; color: var(--c-ink); margin-bottom: .35rem; font-size: .9rem; }
.coverage-legend__item { display: flex; align-items: center; gap: .55rem; color: var(--c-body); }
.coverage-legend__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-teal); flex-shrink: 0; box-shadow: 0 0 0 3px rgba(8,148,196,.18); }

/* --------- Article post (detail) --------- */
.post-hero {
  background: linear-gradient(135deg, #001f33, #003B5C 60%, #005792);
  color: #fff;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative; overflow: hidden; isolation: isolate;
}
.post-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px circle at 90% 0%, rgba(33,212,255,.10), transparent 50%),
    radial-gradient(700px circle at 0% 100%, rgba(8,148,196,.12), transparent 50%);
}
.post-hero .crumbs { color: rgba(255,255,255,.6); margin-bottom: 1rem; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.post-hero .crumbs a { color: rgba(255,255,255,.85); }
.post-hero .post-cat {
  display: inline-block;
  padding: .25rem .75rem;
  background: rgba(33,212,255,.15);
  border: 1px solid rgba(33,212,255,.4);
  color: var(--c-cyan);
  border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.post-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  max-width: 820px;
}
.post-hero h1 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  background: linear-gradient(135deg, var(--c-cyan), #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.post-meta {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  margin-top: 1.25rem;
  color: rgba(255,255,255,.7); font-size: .9rem;
}
.post-meta span { display: inline-flex; align-items: center; gap: .35rem; }

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) 0;
  color: var(--c-body);
  font-size: 1.075rem;
  line-height: 1.75;
}
.post-body h2 {
  color: var(--c-ink);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 2.5rem 0 1rem;
  scroll-margin-top: 0; /* the html scroll-padding-top clears the fixed header; a margin here would add to it */
}
.post-body h3 {
  color: var(--c-ink);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  margin: 2rem 0 .85rem;
  scroll-margin-top: 0;
}
.post-body p { margin: 0 0 1.25rem; }
.post-body ul, .post-body ol { margin: 0 0 1.25rem 1.4rem; padding: 0; }
.post-body li { margin: 0 0 .5rem; }
.post-body strong { color: var(--c-ink); font-weight: 700; }
.post-body a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.post-body a:hover { color: var(--c-teal-text); }
.post-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--c-teal);
  background: var(--c-mist);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.15rem;
  color: var(--c-ink);
}
.post-body hr { border: 0; border-top: 1px solid var(--c-fog); margin: 2.5rem 0; }

/* --------- Legal pages (privacy / terms / accessibility) --------- */
.legal-body {
  max-width: 640px;         /* 75 to 80 characters a line on desktop (760px ran near 100) */
  margin: 0 auto;
  padding: 0;               /* .section already supplies the vertical padding */
  color: var(--c-body);
  font-size: 1.0625rem;     /* 17px, the same as body copy site-wide */
  line-height: 1.75;
}
.legal-body h2 {
  color: var(--c-ink);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 2.25rem 0 .85rem;
}
.legal-body h3 {
  color: var(--c-ink);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 .55rem;
}
.legal-body p, .legal-body li { margin: 0 0 .85rem; }
.legal-body ul { margin: 0 0 1rem 1.4rem; padding: 0; }
.legal-body strong { color: var(--c-ink); font-weight: 700; }
/* One link style on the legal pages: list links and paragraph links share the site-wide
   inline-link underline (1px, 3px offset, soft blue) and 600 weight. Paragraph links drop
   the gradient hover sweep here so each link keeps exactly one static underline. */
.legal-body a {
  color: var(--c-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,87,146,.45);
  transition: color .25s var(--ease-out), text-decoration-color .25s var(--ease-out);
}
.legal-body a:hover { color: var(--c-teal-text); text-decoration-color: currentColor; }
section .container .legal-body p > a:not(.btn):not(.read-more):not([class])::after { content: none; }
section .container .legal-body p > a:not(.btn):not(.read-more):not([class]):hover { text-decoration-color: currentColor; }
/* Inline code (accessibility statement): a quiet chip that never splits mid-token */
.legal-body code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em;
  font-weight: 500;
  /* Horizontal padding stays under a word space so the commas and parens that follow a chip
     read as attached to it rather than floating. */
  padding: .08em .25em;
  color: var(--c-ink);
  background: var(--c-mist);
  border: 1px solid var(--c-fog);
  border-radius: 6px;
  white-space: nowrap;
}
/* Avoid one-word last lines in the legal copy */
.legal-body p, .legal-body li { text-wrap: pretty; }
/* A quiet date stamp, not an input: the pill hugs its text (same width: fit-content pattern as
   the audience toggle) so a full-width mist slab stops reading as an empty form field. */
.legal-body__updated {
  font-size: .85rem; color: var(--c-muted);
  width: fit-content; max-width: 100%;
  padding: .4rem .9rem;
  background: var(--c-mist);
  border: 1px solid var(--c-fog);
  border-radius: 999px;
  margin-bottom: 2rem;
}

/* --------- Resources / Article cards --------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}
.article-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
  isolation: isolate;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.article-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-teal) 30%, var(--c-cyan) 50%, var(--c-teal) 70%, transparent);
  transform: translateX(-100%);
  transition: transform .6s var(--ease-out);
  z-index: 1;
}
/* hover lift/border/shadow: shared card hover rule near the end of the file */
.article-card:hover::after { transform: translateX(0); }
.article-card .art-media {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--c-mist) 0%, #E2EFF6 100%);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--c-fog);
}
.article-card .art-media svg {
  width: 60px; height: 60px;
  color: var(--c-blue);
  opacity: .8;
}
.article-card .art-media .art-cat {
  position: absolute;
  top: .85rem; left: .85rem;
  background: rgba(255,255,255,.94);
  color: var(--c-blue);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--c-fog);
}
.article-card .art-body {
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: .55rem;
  flex: 1;
}
.article-card .art-meta {
  font-size: .78rem;
  color: var(--c-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}
.article-card h3 {
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.article-card p {
  color: var(--c-body);
  margin: 0;
  font-size: .95rem;
  flex: 1;
}
.article-card .art-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--c-blue);
  margin-top: .4rem;
}
.article-card .art-cta svg { transition: transform .25s var(--ease-out); }
.article-card:hover .art-cta svg { transform: translateX(4px); }

/* Download / resource list (PDFs, white papers) */
.resource-list {
  display: grid; gap: 1rem;
}
.resource-row {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.resource-row:hover {
  border-color: rgba(8,148,196,.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.resource-row .ic {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(8,148,196,.14), rgba(0,87,146,.20));
  color: var(--c-blue);
  display: grid; place-items: center;
}
.resource-row .info { flex: 1; }
.resource-row .info strong {
  display: block;
  color: var(--c-ink);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: .15rem;
}
.resource-row .info span {
  color: var(--c-muted);
  font-size: .88rem;
}
.resource-row .meta {
  font-size: .78rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  flex-shrink: 0;
}

/* --------- Careers / Open roles --------- */
.role-list { display: grid; gap: 1rem; }
.role-card {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.6rem 1.75rem;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  text-decoration: none;
  color: inherit;
}
/* hover lift/border/shadow: shared card hover rule near the end of the file */
.role-card .role-info { flex: 1; }
.role-card h3 {
  font-size: 1.15rem;
  margin: 0 0 .35rem;
  letter-spacing: -.01em;
}
.role-card .role-meta {
  display: inline-flex; gap: 1.25rem; align-items: center;
  font-size: .85rem;
  color: var(--c-muted);
}
.role-card .role-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.role-card .role-arrow {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(8,148,196,.10), rgba(0,87,146,.14));
  color: var(--c-blue);
  display: grid; place-items: center;
  transition: transform .25s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out);
}
.role-card:hover .role-arrow {
  background: var(--grad-cta);
  color: #fff;
  transform: translateX(4px);
}

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
/* Same breakpoints as .process, so the two four-card grids on Careers go 4, then 2 x 2, then 1 together (auto-fit left 3 + a lone card on tablets). */
@media (max-width: 980px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(2px);
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out);
}
.value-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(33,212,255,.5) 50%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s var(--ease-out);
  pointer-events: none;
}
/* lift/border/shadow on hover: shared card hover rule near the end of the file */
.value-card:hover { background: rgba(255,255,255,.08); }
.value-card:hover::before { opacity: 1; }
.value-card h4 { color: #fff; font-size: 1.02rem; letter-spacing: -.01em; margin-bottom: .5rem; }
.value-card p { color: rgba(255,255,255,.75); font-size: .94rem; margin: 0; }
.value-card .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(33,212,255,.14), rgba(8,148,196,.22));
  color: var(--c-cyan);
  display: grid; place-items: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px -4px rgba(33,212,255,.4), inset 0 0 0 1px rgba(33,212,255,.18);
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.value-card:hover .ic {
  box-shadow: 0 6px 18px -4px rgba(33,212,255,.55), inset 0 0 0 1px rgba(33,212,255,.3);
  transform: scale(1.05) rotate(-2deg);
}

/* ---------- Polish: Section eyebrow gets a glow halo behind the dash ---------- */
.section-head .eyebrow::before,
.split-content > .eyebrow:first-child::before {
  box-shadow: 0 0 14px rgba(33,212,255,.6), 0 0 4px rgba(8,148,196,.5);
}

/* ---------- Polish: Trust strip on pay/portal pages ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem 2.25rem;
  padding: 1.25rem 1.5rem;
  margin: 2rem auto;
  background: linear-gradient(180deg, rgba(8,148,196,.04), rgba(8,148,196,.02));
  border: 1px solid rgba(8,148,196,.12);
  border-radius: var(--radius);
  max-width: none;   /* span the same .container content box as the eyebrow, the feature rows and the form card (the --container token minus its two gutters), rather than a second cap that drifts from them; still wide enough for the items on one row at desktop */
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.trust-strip:hover {
  border-color: rgba(0, 87, 146, .35);
  box-shadow: 0 12px 28px -10px rgba(0, 59, 92, .18);
}
.trust-strip__item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--c-body);
  font-size: .85rem;
  font-weight: 600;
  transition: color .25s var(--ease-out);
}
.trust-strip__item:hover { color: var(--c-blue); }
.trust-strip__item:hover svg { color: var(--c-cyan); }
.trust-strip__item svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--c-teal);
  filter: drop-shadow(0 2px 4px rgba(8,148,196,.35));
}
/* Each item has its own icon, so the aria-hidden dots are hidden: they dangled at row ends whenever the strip wrapped */
.trust-strip__sep { display: none; }
/* Phones: a left-aligned list with the icons in one column */
@media (max-width: 600px) {
  .trust-strip { flex-direction: column; align-items: flex-start; gap: .85rem; padding: 1.1rem 1.25rem; }
  /* Labels wrap to two lines here, so the icon sits on the first line of its label (the same
     way .portal-feature and .contact-info .ic read) instead of floating beside the gap */
  .trust-strip__item { align-items: flex-start; }
}

/* ---------- Shared component states used by the JS (forms, store, search, press) ---------- */
/* Inline form result / fallback panel */
.form-status {
  display: none;
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: 10px;
  background: rgba(8,148,196,.08);
  border: 1px solid rgba(8,148,196,.2);
  color: var(--c-ink);
  font-size: .92rem;
}
.form-status.is-visible { display: block; }
.form-status textarea {
  width: 100%;
  min-height: 120px;
  margin-top: .6rem;
  font: inherit;
  font-size: .85rem;
  padding: .6rem;
  border: 1px solid var(--c-field-line);
  border-radius: 8px;
  color: var(--c-ink);
}
/* Panel link and message box built by openMailto in main.js: underline for WCAG 1.4.1, field-line border for 1.4.11 */
.form-status a:not(.btn) {
  color: var(--c-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,87,146,.45);
  transition: color .25s var(--ease-out), text-decoration-color .25s var(--ease-out);
}
.form-status a:not(.btn):hover { color: var(--c-teal-text); text-decoration-color: currentColor; }
/* Copy details button under the mail-app fallback text: a smaller ghost pill than the form's Send button,
   and allowed to wrap so no label can overflow a narrow panel (.btn is nowrap by default). */
.form-status .form-status__copy { margin-top: .6rem; padding: .55rem 1.1rem; font-size: .88rem; white-space: normal; max-width: 100%; text-align: center; }
/* Store-wide notice (checkout status, etc.) */
.store-notice {
  display: none;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(8,148,196,.10), rgba(33,212,255,.06));
  border: 1px solid rgba(8,148,196,.25);
  color: var(--c-ink);
  font-weight: 600;
}
.store-notice.is-visible { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.store-notice--warn { background: rgba(193,67,46,.08); border-color: rgba(193,67,46,.3); }
/* Search modal close button (sits inside .search-input-wrap) */
.search-close {
  position: absolute;
  right: .6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--c-mist);
  color: var(--c-ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
}
.search-close:hover { background: var(--c-fog); }
.search-input-wrap:has(.search-close) kbd { display: none; } /* the Esc hint would sit under the button */
/* Empty state for the press list */
.press-empty {
  padding: 1.5rem;
  border: 1px dashed var(--c-line);
  border-radius: 12px;
  color: var(--c-muted);
  text-align: center;
}

/* (Footer brand glow is consolidated into the .footer-brand img rule in the Footer section.) */

/* ================================================================
   PASS 1 - SECTION FLAIR + PILL CRUMBS
================================================================== */
.section[data-flair]::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8,148,196,.08), transparent 65%);
  filter: blur(2px);
}
.section[data-flair="left"]::before { top: 5%; left: -120px; }
.section[data-flair="right"]::before { bottom: 5%; right: -120px; }
.section[data-flair] > * { position: relative; z-index: 1; }
@media (max-width: 720px) { .section[data-flair]::before { display: none; } }
/* (pill-style .page-banner .crumbs are consolidated into the Page banner section above) */

/* ================================================================
   PASS 2 - CARD DEPTH & MICRO-INTERACTIONS
================================================================== */

/* Service cards: icon tile with depth */
.svc-card > .icon {
  position: relative;
  background: linear-gradient(135deg, rgba(8,148,196,.16), rgba(0,87,146,.22));
  box-shadow:
    0 6px 18px -4px rgba(8,148,196,.25),
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 0 0 1px rgba(8,148,196,.18);
}
.svc-card > .icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 50%, rgba(33,212,255,.25) 100%);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.svc-card:hover > .icon::after { opacity: 1; }

/* Project cards: scope-tag floating chip */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(33,212,255,.04), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease-out);
  z-index: 0;
}
.project-card:hover::before { opacity: 1; }

/* Article cards: refined stack - subtle gradient overlay on read-more */
.article-card .read-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  color: var(--c-blue);
}
.article-card .read-more::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-cyan));
  transition: right .35s var(--ease-out);
}
.article-card:hover .read-more::after { right: 0; }

/* Product cards: hover image lift */
.product-card .product-media {
  transition: transform .45s var(--ease-out);
}
.product-card:hover .product-media {
  transform: scale(1.04);
}

/* Step cards: hover accent bar on ::after
   (.step base is defined once under "Process", where ::before carries the
   step numeral, so the bar must stay on ::after) */
.step::after {
  content: '';
  position: absolute;
  top: -1px; left: 24px;
  width: 40px; height: 4px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-cyan));
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-out);
}
.step:hover::after { opacity: 1; transform: scaleX(1); }

/* (vendor-doc icon depth and .stat .num glow are consolidated into their own sections above) */

/* (Team-card portrait gradient/zoom and award-badge hover lift are consolidated into the Team page
   and Awards sections above.) */

/* Press list: enhanced left border accent */
.press-list .press-item {
  position: relative;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.press-list .press-item:hover {
  transform: translateX(4px);
}

/* (CTA banner keeps its always-on ambient ::before glow from the CTA Banner section - no hover-only starburst,
   so touch devices get the glow too. Form-field focus ring is consolidated into the Contact section.) */

/* Pay form: amount input gets a subtle glow on focus */
.amount-input input:focus {
  box-shadow:
    0 0 0 4px rgba(8,148,196,.12),
    0 4px 12px -2px rgba(8,148,196,.25);
}

/* ================================================================
   PASS 3 - TYPOGRAPHY REFINEMENT, ANIMATED UNDERLINES, MICRO-INTERACTIONS
================================================================== */

/* Gradient headline text - ONE light rule and ONE dark rule.
   Light surfaces end at teal (cyan on white is only 1.76:1). */
h2 em, h1 em, h3 em {
  /* Every accent word is Fraunces italic, including headings with no component rule of their own
     (store, portal), which otherwise got a synthetic Manrope slant. Weight 400 because only
     Fraunces italic 300..400 is loaded. Component rules (.section-head, .split, .cta-banner, hero) still win. */
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-feature-settings: "ss01", "swsh";
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.005em;
}
/* Italic glyphs lean past the right edge of their inline box, and background-clip:text only paints
   inside the box, so the last character ("?", "f", "d" ...) lost its top-right corner. The padding
   gives the paint room; the equal negative margin keeps every word exactly where it was. "clone"
   repeats this on each line when the accent wraps. (The hero headline has its own layered build.) */
h1 em:not(.hero__line), h2 em, h3 em {
  padding: 0 .2em 0 .12em;
  margin: 0 -.2em 0 -.12em;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
/* Dark surfaces: cyan → pale-cyan ramp. (.hero h1 em, .page-banner h1 em and .cta-banner h2 em keep the
   component gradients defined in their own sections above.) */
.section--deep h2 em, .section--deep h1 em, .section--deep h3 em,
.site-footer h2 em, .site-footer h1 em, .site-footer h3 em,
.hero h2 em, .hero h3 em,
.page-banner h2 em, .page-banner h3 em,
.cta-banner h1 em, .cta-banner h3 em {
  background: linear-gradient(135deg, var(--c-cyan) 0%, #84e7ff 50%, #b8f1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Body text refined */
.lead {
  letter-spacing: -.005em;
  font-feature-settings: "kern", "liga";
}

/* Animated underline for body links inside paragraphs.
   A soft static underline marks the link without relying on colour or weight (WCAG 1.4.1);
   on hover it fades out while the gradient sweep draws in, so only one line shows. */
section .container p > a:not(.btn):not(.read-more):not([class]) {
  position: relative;
  color: var(--c-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,87,146,.45);
  font-weight: 600;
  transition: color .25s var(--ease-out), text-decoration-color .25s var(--ease-out);
}
section .container p > a:not(.btn):not(.read-more):not([class])::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -1px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-cyan));
  transition: right .35s var(--ease-out);
}
section .container p > a:not(.btn):not(.read-more):not([class]):hover {
  color: var(--c-teal-text);
  text-decoration-color: transparent;
}
section .container p > a:not(.btn):not(.read-more):not([class]):hover::after {
  right: 0;
}

/* (Nav-link center-out underline and footer-link ➜ arrow hover live in the Nav / Footer sections above.) */

/* Button: ripple effect background on hover */
.btn-primary, .btn-solid-light {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::after, .btn-solid-light::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  transform: translate(-50%, -50%);
  transition: width .5s var(--ease-out), height .5s var(--ease-out);
  pointer-events: none;
  z-index: -1;
}
.btn-primary:hover::after, .btn-solid-light:hover::after {
  width: 200%;
  height: 200%;
}

/* Section-head h2 - gradient enhancement on selected text */
.section-head h2::selection {
  background: var(--c-cyan);
  color: #fff;
}

/* Cleaner link styles for hover inside cards */
.svc-card .more,
.industry-card a,
.pkg-card a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
}

/* .form-field label polish is consolidated into the Contact form section. */

/* Form labels: subtle uppercase polish */
.field label {
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--c-ink);
}

/* Inputs: smoother typography */
.form-field input,
.form-field textarea,
.form-field select,
.field input,
.field textarea {
  font-feature-settings: "kern", "liga", "tnum";
  letter-spacing: -.005em;
}

/* Placeholder color refinement: --c-muted keeps form hints at about 4.9:1 on the
   mist fill (AA) yet lighter than typed text; opacity 1 stops Firefox dimming them.
   Scoped to .form-field so the dark newsletter placeholders keep their own rules. */
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--c-muted); font-weight: 400; opacity: 1; }

/* Alert bar: subtle text shimmer */
.alert-bar__text strong::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: .5rem;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(255,255,255,.6);
  animation: alertDotPulse 1.4s ease-in-out infinite;
}
@keyframes alertDotPulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .alert-bar__text strong::after { animation: none !important; }
}

/* (Filter-count hover and .post-body heading scroll-margin are consolidated into their own sections above.) */

/* ================================================================
   SHARED CARD POP - one hover language for every card on the site.
   The owner approved this effect on the stat cards ("33+ Years in
   operation") and asked for it everywhere: the card lifts clear of its
   row, grows, and gets a dark-blue edge, a deep shadow and a light-blue
   glow.
   - It uses the separate translate / scale properties, so it never
     fights the scroll-reveal (which animates transform) and starts with
     no delay while the reveal keeps its stagger (--rd comes from the
     .reveal-stagger nth-child rules).
   - Growth is sized to the card so every card gains about the same
     number of pixels: small tiles 10%, regular cards 6%, wide rows 4%,
     full-width cards 2.5%. The card rises by half of its growth, so taller cards rise further.
   - The water effects (cursor wavelets, shine, click splash) come from
     main.js; SPLASH_SELECTOR and SHINE_SELECTOR list these same cards.
   - .tl-item keeps its translateX "row" idiom. Large panels that hold a
     form or a document (.form-card, .vendor-glance, .dust-card) stay still.
   Tune it with the tokens below and the --pop-scale values.
================================================================== */
:root {
  --pop-time: .45s;
  --pop-glow: 0 0 0 2px var(--c-blue), 0 32px 56px -20px rgba(0, 59, 92, .55), 0 0 44px rgba(33, 212, 255, .38);
  --pop-glow-deep: 0 0 0 2px var(--c-cyan), 0 32px 56px -20px rgba(0, 8, 20, .7), 0 0 46px rgba(33, 212, 255, .45);
}
:is(.stats > .stat, .cred, .areas .city, .ct-card, .floating-card, .svc-card, .step, .value-card, .member,
    .team-card, .pkg-card, .vendor-doc, .role-card, .portal-feature, .info-row, .industry-card,
    .article-card, .product-card, .t-card, .ref-card, .project-card) {
  z-index: 0;                        /* an integer at rest, so z-index can animate and the card stays above its neighbours while it shrinks back */
  transition-property: opacity, transform, translate, scale, box-shadow, border-color, border-radius, background-color, color, z-index;
  transition-duration: .8s, .8s, var(--pop-time), var(--pop-time), var(--pop-time), .3s, .35s, .3s, .3s, var(--pop-time);
  transition-timing-function: var(--ease-out);
  transition-delay: 0s;
}
/* inside a staggered reveal only the fade/slide waits its turn; the pop never does */
.reveal-stagger.is-in > :is(.stat, .cred, .city, .ct-card, .svc-card, .step, .value-card, .member,
    .team-card, .pkg-card, .vendor-doc, .role-card, .portal-feature, .info-row, .industry-card,
    .article-card, .product-card, .t-card, .ref-card, .project-card) {
  transition-delay: var(--rd, 0s), var(--rd, 0s), 0s, 0s, 0s, 0s, 0s, 0s, 0s, 0s;
}
/* the cursor shine is an absolutely positioned child, so every card is a positioning context */
:is(.ct-card, .member, .team-card, .vendor-doc, .role-card, .info-row, .ref-card, .project-card) { position: relative; }

/* growth by card size (default 1.06 is set in the hover rule) */
.stats > .stat, .cred, .areas .city, .ct-card { --pop-scale: 1.1; }
@media (max-width: 900px) { .ct-card { --pop-scale: 1.06; } }   /* 2-column client tiles are wide, so they grow less */
.floating-card { --pop-scale: 1.08; }
.pkg-card { --pop-scale: 1.04; }                 /* tall cards: 4% already rises about 24px */
.portal-feature, .info-row { --pop-scale: 1.04; }
/* One-column layouts: this card hangs off the page gutter (left: -1.5rem), so it grows to the right
   instead of off the screen edge. The vertical origin stays centred, so the bottom edge still holds. */
@media (max-width: 920px) { .split-media .floating-card { transform-origin: left center; } }
.industry-card, .team-card--featured, .role-card { --pop-scale: 1.025; }   /* full-width cards and rows */
@media (max-width: 760px) {
  /* one-column layouts: cards are nearly as wide as the screen, so they grow less */
  .svc-card, .step, .value-card, .member, .team-card, .pkg-card, .vendor-doc, .role-card, .portal-feature,
  .info-row, .article-card, .product-card, .t-card, .ref-card, .project-card { --pop-scale: 1.035; }
  .industry-card, .team-card--featured, .role-card { --pop-scale: 1.02; }
  .stats > .stat, .cred, .areas .city, .ct-card, .floating-card { --pop-scale: 1.06; }
}

/* Mouse / trackpad only, so a tap never leaves a card stuck in the raised state */
@media (hover: hover) {
  :is(.stats > .stat, .cred, .areas .city, .ct-card, .floating-card, .svc-card, .step, .value-card, .member,
      .team-card, .pkg-card, .vendor-doc, .role-card, .portal-feature, .info-row, .industry-card,
      .article-card, .product-card, .t-card, .ref-card, .project-card):is(:hover, :focus-visible) {
    /* Rise by exactly half of the growth (a % in translate is a % of the card itself), so the card grows
       upward from its bottom edge. The bottom never moves away from a pointer resting on it, which would
       make the card drop, re-hover and jitter. The extra 1px keeps that edge safely under the pointer. */
    translate: 0 calc((var(--pop-scale, 1.06) - 1) * -50% + 1px);
    scale: var(--pop-scale, 1.06);
    z-index: 3;
    border-color: var(--c-blue);
    box-shadow: var(--pop-glow);
  }
  /* keyboard focus keeps each card's own corners: the global a:focus-visible rule would flatten them to 6px */
  a:is(.svc-card, .role-card, .article-card, .product-card, .project-card):focus-visible { border-radius: var(--radius); }
  a.vendor-doc:focus-visible { border-radius: 12px; }
  /* dark sections: a dark-blue edge would disappear, so the edge turns light blue */
  .section--deep :is(.areas .city, .ct-card, .svc-card, .step, .value-card, .member, .team-card, .pkg-card,
      .vendor-doc, .role-card, .portal-feature, .info-row, .industry-card):is(:hover, :focus-visible) {
    border-color: var(--c-cyan);
    box-shadow: var(--pop-glow-deep);
  }
  /* the stat cells have no border of their own: round the popped cell and hide its divider */
  .stats > .stat:hover { border-radius: 18px; border-color: transparent; }
}
/* visitors who ask for less motion keep the edge and glow, without the movement */
@media (prefers-reduced-motion: reduce) {
  :is(.stats > .stat, .cred, .areas .city, .ct-card, .floating-card, .svc-card, .step, .value-card, .member,
      .team-card, .pkg-card, .vendor-doc, .role-card, .portal-feature, .info-row, .industry-card,
      .article-card, .product-card, .t-card, .ref-card, .project-card):is(:hover, :focus-visible) {
    translate: none;
    scale: none;
  }
}

/* Contact info rows (contact.html) */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: .85rem;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: 12px;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.info-row .ic {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(8,148,196,.14), rgba(0,87,146,.20));
  color: var(--c-blue);
  display: grid; place-items: center;
  transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.info-row:hover .ic {
  background: linear-gradient(135deg, var(--c-teal), var(--c-blue));
  color: #fff;
}
.info-row strong { color: var(--c-ink); display: block; font-weight: 700; margin-bottom: .15rem; }
.info-row a { color: var(--c-blue); font-weight: 600; text-decoration: none; }
.info-row a:hover { text-decoration: underline; }
/* Block caption with its own leading (was double-spaced inline); child combinator skips .fx-shine */
.info-row > div > span { display: block; color: var(--c-body); font-size: .92rem; line-height: 1.55; }
/* Captions are spans, so the p/li pretty-wrap rule misses them (the Hours card left "dispatch" alone on phones). */
.info-row > div > span { text-wrap-style: pretty; }

/* Floating cards (about/team/services) share the lift above; .pay-steps li carries its own transition */
.floating-card {
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}

/* --------- Store: coming-soon holding page --------- */
.dust-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 2rem 2.25rem;
  background: #fff;
  border: 1px solid var(--c-fog);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 24px 60px -30px rgba(0,59,92,.25);
}
.dust-card__ic {
  width: 72px; height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 20px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-teal), var(--c-blue));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(8,148,196,.6);
}
.dust-card .eyebrow { justify-content: center; }
.dust-card .eyebrow::before { display: none; }
.dust-card h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: .85rem; text-wrap: balance; }
.dust-card > p { color: var(--c-body); max-width: 60ch; margin: 0 auto 1.5rem; }
.dust-actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
.dust-notify { font-size: .92rem; color: var(--c-muted); margin: 1.5rem auto 0 !important; }
.dust-notify a { color: var(--c-blue); font-weight: 700; }
/* Centered card copy: keep the last line from being a single word ("have.", "live.") */
.dust-card > p, .dust-notify { text-wrap: pretty; }
/* The short notify line balances instead ("...the day it / goes live."); it needs the child selector to outrank .dust-card > p above */
.dust-card > .dust-notify { text-wrap: balance; }
/* The list now sits inside .dust-card as its footer section, so it must not re-constrain the width: a hairline
   on the card's own border token divides it from the notify line above. Its label takes the .eyebrow metrics and
   teal so it reads as a kicker like the one at the top of the card, not as grey body text. */
.dust-cats { max-width: none; margin: 1.75rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--c-fog); text-align: center; }
.dust-cats h3 { font-size: .8rem; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; color: var(--c-teal-text); margin: 0 0 .85rem; }
.dust-cats ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.dust-cats li {
  padding: .45rem .95rem;
  border-radius: 999px;
  background: var(--c-mist);
  border: 1px solid var(--c-fog);
  color: var(--c-ink);
  font-size: .9rem; font-weight: 600;
}
@media (max-width: 600px) { .dust-card { padding: 2rem 1.25rem; } }

/* utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.spacer { height: 4rem; }

/* ===================== WATER SPLASH EFFECTS ===================== */
/* Click ripple - viewport-anchored so it works on any element.
   Cyan-tinted with no blend mode so it stays visible on white surfaces. */
.tei-splash-ripple {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(33, 212, 255, .35) 0%,
    rgba(8, 148, 196, .22) 30%,
    rgba(0, 87, 146, .10) 60%,
    transparent 78%);
  transform: translate(-50%, -50%) scale(0);
  width: 18px; height: 18px;
  animation: teiSplashRing 750ms cubic-bezier(.18,.85,.42,1) forwards;
  z-index: 9998;
  will-change: transform, opacity;   /* no blur filter: the radial gradient is already soft, and a filtered layer scaling 20x is costly */
  box-shadow: 0 0 30px rgba(33, 212, 255, .25);
}
@keyframes teiSplashRing {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 1; }
  60%  { opacity: .7; }
  100% { transform: translate(-50%,-50%) scale(20); opacity: 0; }
}

/* Click ring - outline pulse over the surface (saturated brand teal so it's
   visible on white) with a cyan glow shadow so it pops on dark too. */
.tei-splash-ring {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  border: 1.5px solid rgba(8, 148, 196, .85);
  transform: translate(-50%, -50%) scale(0);
  width: 14px; height: 14px;
  animation: teiSplashOutline 700ms cubic-bezier(.16,.9,.3,1) forwards;
  z-index: 9998;
  box-shadow:
    0 0 14px rgba(33, 212, 255, .55),
    inset 0 0 6px rgba(33, 212, 255, .35);
}
@keyframes teiSplashOutline {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(8); opacity: 0; }
}

/* Click droplets - fly outward from click point.
   Cyan-blue body with dark rim so droplets read on light surfaces. */
.tei-splash-droplet {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%,
    rgba(176, 236, 255, .95) 0%,
    rgba(33, 212, 255, .9) 35%,
    rgba(8, 148, 196, .85) 70%,
    rgba(0, 87, 146, .7) 100%);
  border: .5px solid rgba(0, 87, 146, .35);
  box-shadow:
    0 0 8px rgba(33, 212, 255, .55),
    0 1px 2px rgba(0, 87, 146, .3),
    inset 0 -1px 1px rgba(0, 87, 146, .25);
  transform: translate(-50%,-50%);
  animation: teiDroplet 720ms cubic-bezier(.22,.7,.34,1) forwards;
  z-index: 9999;
}
@keyframes teiDroplet {
  0%   { transform: translate(-50%,-50%) translate(0,0) scale(.2); opacity: 0; }
  15%  { opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translate(-50%,-50%) translate(var(--dx), var(--dy)) scale(.25); opacity: 0; }
}

/* Hover wet-shine - radial spotlight that follows the cursor inside the element */
.btn,
.svc-card,
.pkg-card,
.industry-card,
.article-card,
.product-card,
.t-card,
.value-card,
.ct-card,
.step,
.portal-feature,
.alert-bar,
.cta-banner,
.search-trigger,
.audience-toggle .aud-tab,
.filter-chip,
.nav-link {
  position: relative;
}
.btn::after,
.svc-card .fx-shine,
.pkg-card .fx-shine,
.industry-card .fx-shine,
.article-card .fx-shine,
.product-card .fx-shine,
.t-card .fx-shine,
.portal-feature .fx-shine {
  /* generic hover-glow holder; cards add via empty .fx-shine span */
}
.fx-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  /* Wet-finger spotlight that follows cursor. Uses brand cyan/teal at moderate
     opacity (no blend mode) so the effect is visible on white AND dark surfaces. */
  background:
    radial-gradient(70px circle at var(--mx, 50%) var(--my, 50%),
      rgba(33,212,255, .22) 0%,
      rgba(8,148,196, .14) 35%,
      transparent 70%),
    radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%),
      rgba(8,148,196, .08),
      transparent 65%);
  opacity: 0;
  transition: opacity .28s var(--ease-soft);
  z-index: 0;
}
/* On the dark hero, the shine uses screen blend to look more luminous */
.hero .fx-shine,
.section--deep .fx-shine {
  mix-blend-mode: screen;
  background:
    radial-gradient(70px circle at var(--mx, 50%) var(--my, 50%),
      rgba(255,255,255,.40) 0%,
      rgba(176,236,255,.25) 30%,
      rgba(33,212,255,.18) 55%,
      transparent 75%);
}
.has-shine:focus-visible > .fx-shine { opacity: 1; }
/* mouse / trackpad only, so a tap never leaves the glow stuck on a card (same gate as the card pop) */
@media (hover: hover) {
  .has-shine:hover > .fx-shine { opacity: 1; }
}

/* --------- Cursor-trail wavelets - small ripples follow your cursor over
   interactive surfaces, like dragging a finger through water.
   Uses a saturated teal rim + cyan glow so the effect is visible on BOTH
   white/light surfaces (rim stands out) AND the dark hero (glow stands out). */
.tei-wavelet {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  /* The ring is drawn once and only its transform and opacity animate, so the browser can run the
     whole trail on the GPU without repainting (the old version also animated border-width, which
     forced a repaint of every ripple on every frame). A 1px rim scaled up reads the same as before. */
  border: 1px solid rgba(8, 148, 196, .75);
  background: radial-gradient(circle,
    rgba(33, 212, 255, .18) 0%,
    rgba(8, 148, 196, .10) 40%,
    transparent 75%);
  transform: translate(-50%, -50%) scale(0);
  width: 14px; height: 14px;
  animation: teiWavelet 700ms cubic-bezier(.2,.8,.4,1) forwards;
  will-change: transform, opacity;
  z-index: 9997;
  /* One cyan glow (visible on the dark hero); the teal rim handles white surfaces. */
  box-shadow: 0 0 10px rgba(33, 212, 255, .65);
}
@keyframes teiWavelet {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 1; }
  60%  { opacity: .5; }
  100% { transform: translate(-50%,-50%) scale(var(--maxScale, 4.5)); opacity: 0; }
}

/* Tiny droplet flicks - kick out perpendicular to fast cursor motion.
   Cyan core + dark teal rim = visible on light AND dark surfaces. */
.tei-flick {
  position: fixed;
  pointer-events: none;
  width: var(--size, 4px);
  height: var(--size, 4px);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%,
    rgba(176, 236, 255, .95) 0%,
    rgba(33, 212, 255, .9) 35%,
    rgba(8, 148, 196, .85) 75%,
    rgba(0, 87, 146, .7) 100%);
  border: .5px solid rgba(0, 87, 146, .35);
  box-shadow:
    0 0 6px rgba(33, 212, 255, .55),
    0 1px 1.5px rgba(0, 87, 146, .25);
  transform: translate(-50%, -50%);
  animation: teiFlick 480ms cubic-bezier(.22,.7,.34,1) forwards;
  z-index: 9998;
}
@keyframes teiFlick {
  0%   { transform: translate(-50%,-50%) translate(0,0) scale(.5); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translate(-50%,-50%) translate(var(--dx,0), var(--dy,0)) scale(.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tei-wavelet, .tei-flick { display: none !important; }
}
/* The cards added later hold bare text nodes and positioned children, so lifting every child is not
   enough: give those cards their own stacking context and drop the shine behind the content. */
:is(.stats > .stat, .cred, .areas .city, .floating-card, .member, .team-card, .vendor-doc, .role-card,
    .info-row, .ref-card, .project-card) { isolation: isolate; }
:is(.stats > .stat, .cred, .areas .city, .floating-card, .member, .team-card, .vendor-doc, .role-card,
    .info-row, .ref-card, .project-card) > .fx-shine { z-index: -1; }
/* Make sure card content stays above the shine, but leave .fx-shine absolute */
.svc-card > *:not(.fx-shine),
.pkg-card > *:not(.fx-shine),
.industry-card > *:not(.fx-shine),
.article-card > *:not(.fx-shine),
.product-card > *:not(.fx-shine),
.t-card > *:not(.fx-shine),
.portal-feature > *:not(.fx-shine),
.value-card > *:not(.fx-shine),
.step > *:not(.fx-shine),
.cta-banner > *:not(.fx-shine),
.ct-card > *:not(.fx-shine) {
  position: relative;
  z-index: 1;
}
/* (.fx-shine already sits at z-index: 0 in its base rule above; nothing else sets its z-index) */

/* Reduced-motion: disable splash entirely */
@media (prefers-reduced-motion: reduce) {
  .tei-splash-ripple,
  .tei-splash-ring,
  .tei-splash-droplet { display: none !important; }
  .fx-shine { display: none !important; }
}

/* Touch devices: the card pop is mouse-only (SHARED CARD POP sits inside @media (hover: hover)), so
   cards need no reset here and keep their resting shadow when tapped. Only the few remaining sticky
   hover moves are cancelled. */
@media (hover: none) {
  .footer-col a:hover { transform: none; box-shadow: none; }
  .cred:hover::after, .footer-col a:hover::before { opacity: 0; }
  .split-media:hover .media-frame img, .team-card:hover .team-portrait img, .product-card:hover .product-media { transform: none; }
}

/* --------- Print styles --------- */
@media print {
  *, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; filter: none !important; }
  html, body { font-size: 11pt; line-height: 1.45; }
  /* Scroll-reveal content starts hidden and is shown by script/animation; Firefox prints a static copy, so force it visible */
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .site-header, .nav-toggle, .hero__bg, .hero__overlay, .hero__veil, .hero__droplets, .hero__waves, .floating-card, .cta-banner, .skip-link, .back-top, .cart-fab, .scroll-progress, .chat-launcher, iframe { display: none !important; }
  .hero { min-height: auto; padding: 1cm 0; }
  .hero h1, h1, h2, h3, h4 { color: #000 !important; page-break-after: avoid; }
  a { color: #000 !important; text-decoration: underline; }
  a[href^="http"]:after { content: " (" attr(href) ")"; font-size: 90%; color: #444 !important; }
  a[href^="tel:"]:after, a[href^="mailto:"]:after, a[href^="#"]:after { content: ""; }
  .container { max-width: 100% !important; padding: 0 !important; }
  /* Sections may break across pages: keeping a whole tall section together pushed it onto a fresh page and left
     blank or half-empty pages. The small units below stay whole instead. */
  .section { padding: 0.6cm 0 !important; }
  .page-banner { padding: .5cm 0 !important; }
  img { max-width: 50% !important; height: auto !important; page-break-inside: avoid; }
  /* The 4:5 photo frame kept its full on-screen height around the half-width print photo (a mostly empty page) */
  .split-media .media-frame { aspect-ratio: auto !important; }
  /* Same for the team.html owner portrait box (300px or 4:5 on screen): it follows the half-width print photo again */
  .team-card--featured .team-portrait { min-height: 0 !important; aspect-ratio: auto !important; }
  .team-card--featured .team-portrait img { position: static !important; }
  /* The glow and the big "01" watermark numerals print as solid black over the headings, so they are left out.
     The copy column reserves the numeral's height on screen, so that padding is released here too. */
  .split-media::before, .split-content[data-numeral]::before { display: none !important; }
  .split > .split-content[data-numeral] { padding-top: 0 !important; }
  /* The interactive map is an empty box on paper (the city list below it prints) and the video cannot play */
  .coverage-map, .hero__video { display: none !important; }
  .faq details, .tl-item, .pkg-card, .team-card, .value-card { break-inside: avoid; page-break-inside: avoid; }
  .tl-year { break-after: avoid; page-break-after: avoid; }
  /* keep a section heading (eyebrow, title, intro) in one piece, and a package label with its cards */
  .section-head { break-inside: avoid; page-break-inside: avoid; }
  .pkg-panel > .container { break-inside: avoid; page-break-inside: avoid; }
  /* the page is narrower than 961px, so the packages would print one tall card per page: keep the desktop row of three */
  .pkg-grid { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .svc-card, .ct-card, .ref-card, .t-card, .step, .member, .pkg-card { border: 1px solid #ccc !important; page-break-inside: avoid; padding: 0.4cm; margin-bottom: 0.3cm; }
  /* Paper resets .step padding to 0.4cm at 11pt while .ic stays 48px, so the numeral is re-centred on the
     chip with the same derivation the screen rule uses: padding-top, plus half the chip, less half its line box. */
  .step::before { top: calc(.4cm + 24px - .5em); }
  .site-footer { border-top: 2px solid #000; margin-top: 0.5cm; padding-top: 0.3cm; color: #000 !important; }
  .footer-bottom { display: flex; justify-content: space-between; }
  /* the on-screen footer spacing (about 9rem) alone could push the copyright line onto a page of its own */
  .site-footer { padding-bottom: 0 !important; break-inside: avoid; page-break-inside: avoid; }
  .site-footer .footer-bottom { margin-top: 0; padding-top: 0; }
  /* Keep the Get in touch column (phone, email, address) so every printout says how to reach us. The logo, blurb and link lists stay off paper. */
  .site-footer .footer-grid { display: block; margin: 0 0 .25cm; }
  .site-footer .footer-col:not(:last-child), .site-footer .footer-col h3 { display: none !important; }
  .site-footer .footer-col:last-child ul { display: flex; flex-wrap: wrap; gap: .1cm .8cm; }
}

/* --------- Click-to-load map embed (contact page) --------- */
.map-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, var(--c-mist), #fff);
  border: 1px solid var(--c-fog);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Before the visitor loads the embed there is no iframe, so the 16/7 box is mostly empty and reads as a failed
   embed rather than a map yet to come. A shorter box plus a faint street-grid wash reads as a placeholder; the
   grid starts 1px in so its first line does not double the panel's own 1px border, and the flat fill stays as
   the last layer because background-image replaces the shorthand's image.
   min-height is the floor that keeps the shorter ratio from dropping under the prompt between 601 and about
   960px, where overflow: visible would spill the address and button outside the rounded panel.
   width: 100% is load-bearing, not decoration: with an auto width that floor is transferred back through the
   ratio as a minimum WIDTH (18rem x 16/5 = 921px) and the panel burst out of its container below about 900px.
   A definite width stops the transfer, so the floor can only ever make the box taller.
   main.js sets data-map-loaded on "Show the map", so the whole rule then stops matching and the box goes back
   to 16/7 on the base flat gradient. */
.map-embed:not([data-map-loaded]) {
  overflow: visible;
  aspect-ratio: 16 / 5;
  width: 100%;
  min-height: 18rem;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 1px, rgba(0,87,146,.045) 1px 2px, transparent 2px 64px),
    repeating-linear-gradient(90deg, transparent 0 1px, rgba(0,87,146,.045) 1px 2px, transparent 2px 64px),
    linear-gradient(135deg, var(--c-mist), #fff);
}
.map-embed__prompt {
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .5rem;
  text-align: center;
  padding: 1.5rem;
  color: var(--c-blue);
}
.map-embed__address { margin: 0; font-weight: 700; color: var(--c-ink); line-height: 1.45; }
.map-embed__prompt .btn { margin-top: .35rem; }
.map-embed__note { margin: .35rem 0 0; font-size: .85rem; color: var(--c-muted); max-width: 42ch; }
.map-embed__note a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }   /* "open it in a new tab" stays on one line */
@media (max-width: 600px) {
  .map-embed { aspect-ratio: 4 / 3; }
  /* the unloaded rule above is :not([data-map-loaded]), which outranks a bare .map-embed at any width, so the
     phone ratio has to be re-stated at the same specificity (later in the file, so it wins the tie) */
  .map-embed:not([data-map-loaded]) { aspect-ratio: 4 / 3; min-height: 0; }
  .map-embed__note { font-size: .8rem; }
}

/* --------- No JavaScript: show everything the scroll-reveal would have faded in --------- */
/* It also hides what needs script to work: the coverage map (built by main.js with Leaflet), and the send buttons
   of the quote and portal forms (main.js does all the sending) together with the portal note about that button.
   The <noscript> note in each form gives the email address and phone number instead. */
@media (scripting: none) {
  .reveal, .reveal-stagger > *, .hero h1, .hero__eyebrow, .hero p.lead, .hero__actions {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .coverage-map { display: none; }
  /* separate rule: a browser without :has() then still hides the map itself */
  .reveal:has(> .coverage-map) { display: none; }
  [data-quote-form] button[type="submit"], #portal-form button[type="submit"], #portal-status { display: none; }
}
.form-noscript { margin: .75rem 0 0; font-size: .9rem; color: var(--c-body); }
.form-noscript a { color: var(--c-blue); text-decoration: underline; }

/* Sampling packages on paper and without JavaScript: the Residential / Business tabs cannot switch, so both
   package sets are shown one after the other, each under a plain label taken from the tab wording. */
@media print, (scripting: none) {
  .audience-toggle:not(.ts-domain-tabs) { display: none !important; }
  /* its section would be left as empty padding (own rule, so a browser without :has() skips only this line) */
  section:has(> .container > .audience-toggle:not(.ts-domain-tabs)) { display: none !important; }
  .pkg-panel[hidden] { display: block !important; }
  #pkg-residential > .container::before { content: 'Residential packages'; }
  #pkg-business > .container::before { content: 'Business / Commercial packages'; }
  .pkg-panel > .container::before { display: block; margin: 0 0 1rem; font-size: 1.25rem; font-weight: 700; color: var(--c-ink); }
}

/* ================================================================
   INTERACTIVE TROUBLESHOOTING GUIDE (troubleshooting.html)
================================================================== */
/* The tool gets its own ground so the white panels have something to sit on: scoped to the id, not a new
   .section--* modifier, because any new coloured modifier would also have to join the :not() list on
   .section (see "White section before the white CTA band"). The 100% stop is var(--c-mist), the exact
   fill of the #reference-guide band below, so the two read as one continuous surface: keep that stop on
   the token if the stops are ever retuned, and keep the 0% stop white for the white section above.
   position: relative already comes from .section. No overflow here, at any value: the sticky questions
   column depends on no ancestor clipping it. */
#troubleshooter {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFD 9%, #F1F6FA 52%, var(--c-mist) 100%);
}
/* Same two-radial water light as .section--mist::before, anchored in px from the top of the section
   rather than in percent: this section is roughly 6,000px tall and grows live as equipment and answers
   are added, so percentage anchors would drift down the page as the user works. */
#troubleshooter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(900px circle at 10% 300px, rgba(8, 148, 196, .05), transparent 52%),
    radial-gradient(780px circle at 92% 1500px, rgba(33, 212, 255, .045), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
#troubleshooter > * { position: relative; z-index: 1; }
/* troubleshooting.html only: #troubleshooter above ends on --c-mist, the same fill as this band, so the
   two meet with no colour change. That left the band's own water wash, .section--mist::before, starting
   at full strength on a hard edge: sampled at 1440, a step from #F4F8FB to #ECF5F9 on the left of the
   join with no change on the right, so half a rule appeared across the page. Fade the wash in over the
   first 240px and the join reads as one surface. Masks only, so the class rule keeps supplying the
   pseudo-element's geometry. */
#reference-guide::before {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 240px);
  mask-image: linear-gradient(180deg, transparent 0, #000 240px);
}

.ts-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(135deg, rgba(0, 59, 92, .05), rgba(8, 148, 196, .08));
  border: 1px solid rgba(0, 87, 146, .24);
  border-left: 4px solid var(--c-blue);
  border-radius: var(--radius);
  color: var(--c-ink);
  font-size: .92rem;
  line-height: 1.55;
}
.ts-disclaimer__ic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 87, 146, .12);
  color: var(--c-blue);
  display: grid;
  place-items: center;
}
/* This is the block that has to be read, so it gets a measure like every other body column on the page.
   Uncapped it ran about 141 characters a line at 1440, while .ts-panel__head p beside it is held to 72ch.
   The cap is on the text column only: the band, its 4px rail and the icon still span the container. */
.ts-disclaimer__body { max-width: 80ch; }
.ts-disclaimer__body strong {
  color: var(--c-ink);
  font-weight: 800;
}
.ts-disclaimer__body p {
  margin: .2rem 0 0;
  color: var(--c-body);
}
@media (max-width: 600px) {
  .ts-disclaimer { flex-direction: column; gap: .65rem; padding: 1.1rem; }
}

.ts-domain-bar {
  margin-bottom: 2.25rem;
  text-align: center;
}
.ts-domain-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 620px) {
  .ts-domain-tabs { grid-template-columns: 1fr; }
}
.ts-domain-tab {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: 14px;
  color: var(--c-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease-soft), background .2s var(--ease-soft), color .2s var(--ease-soft), box-shadow .2s var(--ease-soft), transform .2s var(--ease-soft);
}
/* This hover, .ts-preset-btn:hover and .ts-equip-chip:hover all listed box-shadow in their transitions
   but never changed one, so the 1px rise read as a jump. They now gain depth the way
   .ts-symptom-card:hover does, which is the pattern the rest of the tool already follows. The active
   domain tab keeps its own deeper glow: .ts-domain-tab.is-active ties on specificity and sits later. */
.ts-domain-tab:hover {
  border-color: var(--c-blue);
  background: var(--c-mist);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.ts-domain-tab:focus-visible {
  border-radius: 14px;
}
.ts-domain-tab__ic {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 87, 146, .10);
  color: var(--c-blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.ts-domain-tab__text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.ts-domain-tab__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.25;
}
.ts-domain-tab__sub {
  font-size: .8rem;
  font-weight: 500;
  color: var(--c-muted);
  line-height: 1.35;
}
.ts-domain-tab.is-active {
  background: var(--grad-cta);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(0, 87, 146, .55);
}
.ts-domain-tab.is-active .ts-domain-tab__ic {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.ts-domain-tab.is-active .ts-domain-tab__title {
  color: #fff;
}
.ts-domain-tab.is-active .ts-domain-tab__sub {
  color: rgba(255, 255, 255, .92);   /* .84 measured 4.46:1 on the light end of --grad-cta: .92 clears AA for this 12.8px label */
}

.ts-workspace {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* 4-Step Live Progress & Quick-Jump Bar */
.ts-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}
@media (max-width: 980px) {
  .ts-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .ts-stepper { grid-template-columns: 1fr; }
}
/* min-height holds the 4-up and 2-up rows at the same height in every state: Step 04's sub line is
   always a sentence ("Closest match: " plus a cause title) while Steps 01 to 03 carry short labels, so
   without a floor the row jumps as the top match changes. Cancelled at the 1-up width below. */
.ts-step-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .22rem;
  min-height: 108px;
  padding: .9rem 1.05rem;
  background: #fff;
  border: 1.5px solid var(--c-fog);
  border-top: 3px solid var(--c-line);
  border-radius: 12px;
  color: var(--c-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease-soft), transform .2s var(--ease-soft), box-shadow .2s var(--ease-soft), background .2s var(--ease-soft);
}
.ts-step-summary.is-ready {
  border-top-color: var(--c-blue);
}
.ts-step-summary:hover {
  border-color: var(--c-blue);
  border-top-color: var(--c-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ts-step-summary:focus-visible {
  border-radius: 12px;
}
.ts-step-summary__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: .4rem;
}
.ts-step-summary__num {
  font-size: .69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-teal-text);
}
.ts-step-summary__label {
  font-size: .71rem;
  font-weight: 700;
  color: var(--c-muted);
}
/* Two lines, not one: this value carries Step 03's symptom title, and those titles are long enough that
   a single line cut most of them mid-word at every width above the 1-up stack, not only on phones. The
   stepper is a grid, so all four cards stay level whichever one takes the second line. A handful of the
   longest titles can still clip in the narrow 4-up band around 1000px, which is strictly better than the
   one-line cut it replaces, never worse. */
.ts-step-summary__val {
  font-size: .9rem;
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Two lines, not one: Step 04's sub is always a full sentence, so a single line truncated it mid-word
   in every state. */
.ts-step-summary__sub {
  font-size: .76rem;
  font-weight: 600;
  color: var(--c-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 1-up stack: the cards no longer share a row, so the floor would only pad out Steps 01 to 03.
   A second query at the same breakpoint because the one above sits before .ts-step-summary. */
@media (max-width: 540px) {
  .ts-step-summary { min-height: 0; }
}

/* --shadow-lg, not md: the panels now sit on the tinted #troubleshooter ground, so they can carry a
   real lift instead of floating on flat white. */
.ts-panel {
  background: #fff;
  border: 1px solid var(--c-fog);
  border-top: 3px solid var(--c-blue);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.8vw, 2.15rem);
  box-shadow: var(--shadow-lg);
}
.ts-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--c-fog);
}
.ts-panel__head h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  margin: .3rem 0 .35rem;
  color: var(--c-ink);
}
.ts-panel__head p {
  margin: 0;
  color: var(--c-body);
  font-size: .95rem;
  max-width: 72ch;
}
.ts-panel__actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
/* Size and weight matched to the site-wide .eyebrow, and the rule to its 28px, so the "Step N" label
   inside a panel and the section eyebrow above it read as one system instead of two. */
.ts-step-badge {
  display: inline-flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--c-teal-text);
}
/* The rule marks the start of the label, the way the .eyebrow rule does, so it belongs beside the first
   line rather than the middle of the block. The Step 4B label wraps to two lines at phone widths and
   also in the narrow results column of the two-column .ts-diag-grid just above its 980px collapse
   (measured 42px tall at a 982px viewport, one line again by 1024px), and align-items: center parked
   the rule in the gap between those two lines. Hence flex-start above, and this offset back down to
   the first line: calc(.825em - 1px) is that line box's centre at the inherited line-height of 1.65
   (.825em is half of it, less half the rule's own 2px height). It is size relative, so it is exact at
   both .8rem and the .75rem phone size, and single-line badges render where they always did. Re-derive
   it if that inherited 1.65 ever changes.
   One measured side effect, left alone on purpose: an inline-flex box takes its baseline from its first
   flex item, which is this rule, so on a badge that wraps the baseline rises with it and about 10px of
   the badge's own descent is left in the line box below it. That reads as breathing room under a
   two-line label and shows nowhere else, since on a one-line badge this offset lands the rule exactly
   where centring did. vertical-align: top clears the slack but drops every badge about 9px inside its
   line box, which is the more visible of the two, so it is not the trade to make here. */
.ts-step-badge::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-cyan));
  flex-shrink: 0;
  margin-top: calc(.825em - 1px);
}
/* Phone only: the smaller size keeps the shorter badges on one line at 390px. Step 4B, the longest of
   the four, fits on one line at no size worth having and wraps by design, which the alignment note
   above accounts for. The 28px rule and weight 700 stay, since the short rule was the half of the
   mismatch with .eyebrow and the panels are too narrow here for both labels to share a screen. */
@media (max-width: 560px) {
  .ts-step-badge { font-size: .75rem; }
}
/* Size modifier only: the shape comes from .btn, so the troubleshooter toolbar carries the same pill
   as every other button on the site. Do not re-add a radius here. */
.ts-btn-sm {
  padding: .52rem .9rem;
  font-size: .83rem;
}
/* The tool's secondary pills all sit on a #fff .ts-panel, where the shared --c-line hairline measures
   about 1.3:1 and reads as switched off next to the filled primary, and the base transparent-to-white
   hover is a no-op on that surface. rgba(0, 87, 146, .62) is --c-blue at 62% (CSS cannot derive rgba
   from the hex tokens); it composites to about #6197BB at 3.2:1, the ratio --c-field-line records, and
   the mist fill finally makes hover a real change. Hover keeps the teal edge every other ghost button
   on the site moves to. No shadow here: the filled primary keeps --shadow-md so the action row still
   has one lead. btn-outline joins the list because main.js renders "Add matching equipment" with it and
   nothing defines that class, which left it with no fill and no visible edge at all. Specificity
   (0,2,0) and (0,3,0) beat the base .btn-ghost rules without !important, and no display is set here so
   .btn[hidden] still hides "Clear answers". Shape, radius and padding still come from .btn. */
.ts-btn-sm.btn-ghost,
.ts-btn-sm.btn-outline {
  background: #fff;
  border-color: rgba(0, 87, 146, .62);
  color: var(--c-blue);
}
.ts-btn-sm.btn-ghost:hover,
.ts-btn-sm.btn-outline:hover {
  background: var(--c-mist);
  border-color: var(--c-teal);
  color: var(--c-blue);
}
/* These three labels are instructions, not eyebrows: the longest runs 60 characters in Drinking Water
   mode and 67 in Wastewater, and all-caps at .09em made them the loudest lines in the panel, two full
   caps lines at phone width. Sentence case at a quieter weight lets the panel h3 lead again. The uppercase
   register stays where it belongs, on the short .ts-step-badge and .eyebrow labels above. Keep
   display: block and the margin: .ts-equip-bar .ts-subhead and .ts-flow-head .ts-subhead zero it.
   --c-ink, not --c-body: in the flow head the label sits directly above .ts-flow-legend, which is
   already --c-body at .78rem/600, so at body colour the two ran together as one block of sentence
   text once the label wrapped at phone width. Ink for the label, body for the key it explains. */
.ts-subhead {
  display: block;
  font-size: .84rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: .65rem;
}

/* Presets Bar (clean rectangular buttons with zero nested pills) */
.ts-presets-wrap {
  margin-bottom: 1.5rem;
}
.ts-presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: .65rem;
}
.ts-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* The grid row is set by the tallest preset and the active button is a solid fill, so top-aligned content
     left about a third of it as empty navy. justify-content is the vertical axis in this column flex
     container; align-items stays flex-start, so the title and meta are still left-aligned. */
  justify-content: center;
  gap: .18rem;
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 1.5px solid var(--c-line);
  background: var(--c-mist);
  color: var(--c-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .2s var(--ease-soft), border-color .2s var(--ease-soft), color .2s var(--ease-soft), box-shadow .2s var(--ease-soft), transform .18s var(--ease-soft);
}
.ts-preset-btn:hover {
  border-color: var(--c-blue);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.ts-preset-btn:focus-visible {
  border-radius: 10px;
}
.ts-preset-btn__title {
  font-size: .88rem;
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.25;
}
.ts-preset-btn__meta {
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-muted);
  line-height: 1.25;
}
.ts-preset-btn.is-active {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(0, 59, 92, .4);
}
/* The active state ties the hover on specificity and sits later in the file, so the lift is restated
   here, deepening the card's own navy shadow rather than dropping the grey token on a blue fill. */
.ts-preset-btn.is-active:hover {
  box-shadow: 0 10px 22px -8px rgba(0, 59, 92, .45);
}
.ts-preset-btn.is-active .ts-preset-btn__title {
  color: #fff;
}
.ts-preset-btn.is-active .ts-preset-btn__meta {
  color: rgba(255, 255, 255, .82);
}

/* Equipment Toggle Grid */
.ts-equip-section {
  margin-bottom: 1.5rem;
}
.ts-equip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .65rem;
}
.ts-equip-bar .ts-subhead { margin-bottom: 0; }
.ts-equip-count {
  font-size: .82rem;
  font-weight: 800;
  color: var(--c-blue);
}
/* min(), so a narrow phone column can never be wider than the panel's content box: at 320px a flat
   245px track overflowed the panel and the chips ate its right padding. Identical above that width. */
.ts-equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(245px, 100%), 1fr));
  gap: .65rem;
}
.ts-equip-chip {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .8rem .95rem;
  border-radius: 10px;
  border: 1.5px solid var(--c-line);
  background: #fff;
  color: var(--c-body);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s var(--ease-soft), background .2s var(--ease-soft), box-shadow .2s var(--ease-soft), transform .18s var(--ease-soft);
}
.ts-equip-chip:hover {
  border-color: var(--c-blue);
  background: var(--c-mist);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.ts-equip-chip:focus-visible {
  border-radius: 10px;
}
.ts-equip-chip.is-on {
  border-color: var(--c-blue);
  background: linear-gradient(180deg, rgba(0, 87, 146, .06), rgba(0, 87, 146, .02));
  color: var(--c-ink);
  box-shadow: inset 3px 0 0 var(--c-blue);
}
/* The selected rail ties the hover on specificity and sits later in the file, so a chosen chip keeps
   its rail while it lifts only if both layers are restated together (as .ts-q-opt.is-selected:hover). */
.ts-equip-chip.is-on:hover {
  box-shadow: inset 3px 0 0 var(--c-blue), var(--shadow-md);
}
.ts-equip-chip__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: .12rem;
  border-radius: 5px;
  border: 1.5px solid var(--c-field-line);
  background: #fff;
  display: grid;
  place-items: center;
  color: transparent;
  transition: background .18s, border-color .18s, color .18s;
}
.ts-equip-chip.is-on .ts-equip-chip__box {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}
.ts-equip-chip__text {
  min-width: 0;
  flex: 1;
}
.ts-equip-chip__stage {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-teal-text);
}
.ts-equip-chip__name {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.3;
  margin-top: .1rem;
}
.ts-equip-chip__hint {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  color: var(--c-muted);
  line-height: 1.35;
  margin-top: .18rem;
}

/* Visual System Flow Train */
/* The site's soft water wash, the same one .ts-symptom-card.is-active uses, rather than a graph-paper
   grid that appears nowhere else on the site. Held at .06 so a neutral container never out-weighs the
   selection states that share the tint. The mist base and the fog border still make this read as a
   canvas, and no background-size: a size would tile this gradient into bands. */
.ts-flow-wrap {
  background-color: var(--c-mist);
  background-image: linear-gradient(180deg, rgba(8, 148, 196, .06), rgba(255, 255, 255, 0) 72%);
  border: 1px solid var(--c-fog);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
}
.ts-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.ts-flow-head .ts-subhead { margin-bottom: 0; }
.ts-flow-legend {
  display: inline-flex;
  /* flex-start, not center: once the label wraps to two lines (it does below about 430px) a centred
     swatch floats at the midpoint of the block instead of sitting beside the first word. */
  align-items: flex-start;
  /* .6rem, not .4rem: the key now carries a halo and the label was crowding it. */
  gap: .6rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-body);
}
/* A key with nothing to key: a custom or cleared lineup can render a train where no node is flagged
   (and the empty lineup renders one bare node), so the legend would promise a highlight that is not
   on screen. Same reason the print block drops it, where the fill cannot survive either. Keep this in
   step with the .ts-flow-legend rule in that print block below. */
.ts-flow-wrap:not(:has(.ts-flow-node.is-flagged)) .ts-flow-legend { display: none; }
/* The key is the same mark as the thing it explains: the 7px round geometry of .ts-flow-node__pulse,
   the haloed dot inside each flagged node. Change the two together or the key stops matching. */
.ts-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
/* Scoped to the legend so the nudge only applies where the dot sits beside running text. */
.ts-flow-legend .ts-dot {
  margin-top: .4rem;
}
/* The legend swatch must stay the same token as the flagged node's fill below: they explain each other.
   The halo is cyan because that is what the node puts inside itself (.ts-flow-node__pulse); white, the
   halo the node uses, would vanish on this light panel. */
.ts-dot--check {
  background: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(33, 212, 255, .28);
}
.ts-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  /* Wrapped rows need breathing room of their own now that the row no longer carries a connector
     between it and the row above (see .ts-flow-arrow below). */
  row-gap: .7rem;
}
.ts-flow-node {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .82rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--c-line);
  font-size: .84rem;
  font-weight: 700;
  color: var(--c-ink);
  box-shadow: 0 1px 2px rgba(0, 27, 46, .04);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
/* The inlet and the outlet are the same kind of fixed context chip, so they take the same tint: the
   train then reads as three states (fixed context, equipment, check first) rather than four. The two
   hooks stay separate class names so either end can be told apart again later if it needs to be. */
.ts-flow-node--start,
.ts-flow-node--end {
  background: rgba(8, 148, 196, .08);
  border-color: rgba(8, 148, 196, .28);
  color: var(--c-blue);
}
.ts-flow-node__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-cyan);
  flex-shrink: 0;
}
/* Ring scoped to the flagged node, where the dot actually renders: on the solid blue fill it has to be
   a white halo, a cyan one would disappear. */
.ts-flow-node.is-flagged .ts-flow-node__pulse {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .3);
}
.ts-flow-node__num {
  font-size: .74rem;
  font-weight: 800;
  color: var(--c-teal-text);
  flex-shrink: 0;
}
.ts-flow-node__num::after {
  content: '.';
}
/* The flagged node is a filled brand node rather than a warm warning tint: the page is all ocean blues and
   the amber read as an alert. The flag label and the pulse dot still carry the meaning, so
   nothing depends on colour alone. */
/* The accent rides as an inset rail rather than a wider border-left: with border-box sizing the 1px to
   3.5px swap shrank the content area, so the train shuffled sideways whenever a node gained the flag. */
.ts-flow-node.is-flagged {
  border-color: var(--c-blue);
  background: var(--c-blue);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--c-teal), 0 6px 16px -6px rgba(0, 87, 146, .5);
}
.ts-flow-node.is-flagged .ts-flow-node__num {
  color: rgba(255, 255, 255, .78);
}
.ts-flow-node__flag {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
/* The dot separates the flag from the node name only while the two share a line, so it is generated
   here (like .ts-flow-node__num::after) and dropped in the phone block where the flag takes its own
   line. Written as the ASCII escape so no tool can mojibake it. */
.ts-flow-node__flag::before {
  content: '\00B7';
  /* .25em, not a rem: it replaces a word space at the flag's own .7rem, so it scales the way the space
     did. Measured at 1440 the flag is 85.8px against 85.9px before, so the wide row wraps as it did. */
  margin-right: .25em;
}
/* Scoped: the flag only ever renders inside a filled node, and white outside one would be invisible. */
.ts-flow-node.is-flagged .ts-flow-node__flag {
  color: #fff;
}
/* The connector rides INSIDE the node it leaves, as a trailing chevron in that node's own padding, so
   flex-wrap can never strand it. An arrow that sits between two nodes orphans at every wrap point,
   whichever node it is attached to: trailing it dangles at the end of a row, leading it floats in the
   white space before a row and pushes that row out of line with the one above. Kept inside the card,
   a node that ends a wrapped row simply reads "continues" and every row opens flush. The arrow list
   items stay in the DOM (aria-hidden, untouched by the engine) and only go display:none. Every node
   except the last is followed by an arrow item, so :not(:last-child) is exactly the set with somewhere
   to point, and the empty state is :only-child so it stays bare. Drawn with borders, not a glyph, so
   it survives printing where background fills do not. */
.ts-flow-arrow {
  display: none;
}
.ts-flow-node:not(:last-child)::after {
  content: '';
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  margin-left: .2rem;
  margin-right: -.1rem;
  border-top: 2px solid var(--c-teal-text);
  border-right: 2px solid var(--c-teal-text);
  transform: rotate(45deg);
}
/* Teal would sink into the filled node: there the chevron takes the same white as that node's text. */
.ts-flow-node.is-flagged:not(:last-child)::after {
  border-top-color: rgba(255, 255, 255, .72);
  border-right-color: rgba(255, 255, 255, .72);
}
/* The empty lineup renders as a single node holding a whole sentence: dress it as an empty state. */
.ts-flow-node:only-child {
  flex: 1 1 100%;
  justify-content: center;
  padding: .85rem 1rem;
  border: 1.5px dashed rgba(0, 87, 146, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .65);
  color: var(--c-muted);
  font-size: .84rem;
  font-weight: 600;
  text-align: center;
  box-shadow: none;
}

/* Primary Symptom Grid */
/* min(), same reason as .ts-equip-grid above: the symptom cards must stay inside the panel padding at
   320px. No change at any width where a 255px track already fits. */
.ts-symptom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(255px, 100%), 1fr));
  gap: 1rem;
}
.ts-symptom-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding: 1.2rem 1.25rem;
  border-radius: 12px;
  border: 1.5px solid var(--c-line);
  background: #fff;
  color: var(--c-body);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s var(--ease-soft), background .2s var(--ease-soft), box-shadow .2s var(--ease-soft), transform .2s var(--ease-soft);
}
.ts-symptom-card:hover {
  border-color: var(--c-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ts-symptom-card:focus-visible {
  border-radius: 12px;
}
.ts-symptom-card__top {
  display: flex;
  align-items: center;
  width: 100%;
  gap: .6rem;
}
.ts-symptom-card__ic {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(0, 87, 146, .10);
  color: var(--c-blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.ts-symptom-card__tag {
  font-size: .69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--c-muted);
  margin-right: auto;
}
.ts-symptom-card__radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--c-field-line);
  background: #fff;
  flex-shrink: 0;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
/* Un-nested from h4 and p: a <button> may only hold phrasing content, so the title and description are
   spans now. letter-spacing is carried over from the global h1-h5 rule and text-wrap-style from the
   global p/li rule (the same reason .compare > .cell restates it), so the grid wraps exactly as before.
   Do not drop them as noise: a span inherits neither. */
.ts-symptom-card__title {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--c-ink);
  margin: .15rem 0 0;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.ts-symptom-card__desc {
  display: block;
  font-size: .86rem;
  color: var(--c-body);
  margin: 0;
  line-height: 1.48;
  text-wrap-style: pretty;
}
/* A title that wraps to two lines pushed its own description a line below the ones beside it, so a
   13-card grid read as four ragged rows. The floor is exactly two lines at each card's own size and
   leading, so nothing grows where a row already held a two-line title. Each gate sits just above that
   grid's own measured two-column width (all three grids are auto-fill, so they drop to one column at
   different widths, and a classic scrollbar moves the drop a little wider still): below the gate a
   card has no neighbor to line up with and the floor would only add height to a single stack. The
   preset row is gated higher than the width it goes two-column at, because from 981px up every preset
   row already holds a two-line title, so the floor is free there, while from 600px to 980px it would
   add a dead line to rows that are already level. */
@media (min-width: 600px) {
  .ts-equip-chip__name { min-height: 2.6em; }    /* .9rem x 1.3 x 2 = 37.4px */
}
@media (min-width: 620px) {
  .ts-symptom-card__title { min-height: 2.5em; } /* 1.02rem x 1.25 x 2 = 40.8px */
}
@media (min-width: 981px) {
  .ts-preset-btn__title { min-height: 2.5em; }   /* .88rem x 1.25 x 2 = 35.2px */
}
.ts-symptom-card.is-active {
  border-color: var(--c-blue);
  background: linear-gradient(180deg, rgba(8, 148, 196, .06), #fff);
  box-shadow: inset 0 0 0 1px var(--c-blue), var(--shadow-sm);
}
.ts-symptom-card.is-active .ts-symptom-card__ic {
  background: var(--c-blue);
  color: #fff;
}
.ts-symptom-card.is-active .ts-symptom-card__tag {
  color: var(--c-blue);
}
.ts-symptom-card.is-active .ts-symptom-card__radio {
  border-color: var(--c-blue);
  background: var(--c-blue);
  box-shadow: inset 0 0 0 3.5px #fff;
}
/* Same collision as .ts-preset-btn.is-active:hover, .ts-equip-chip.is-on:hover and
   .ts-q-opt.is-selected:hover: .is-active ties .ts-symptom-card:hover on specificity and sits later,
   so without this the chosen card rises 2px on its resting --shadow-sm while every card beside it
   lifts on --shadow-md. Restate both layers. */
.ts-symptom-card.is-active:hover {
  box-shadow: inset 0 0 0 1px var(--c-blue), var(--shadow-md);
}

/* Diagnostics Two-Column Layout */
.ts-diag-grid {
  display: grid;
  grid-template-columns: 1fr 1.22fr;
  gap: 1.75rem;
  align-items: start;
}
/* Sticky belongs on the SHORT questions column, not the tall results one: under align-items:start the
   results panel exactly fills its own grid area, so a sticky there has zero travel and the left column
   was left about 1,600px blank. The panel is capped and scrolls inside itself (the .chat-popover idiom
   at "Contact launcher") because it runs taller than the viewport, and the offset matches
   html { scroll-padding-top } so a question jumped to from the stepper lands flush with the pinned top.
   The min-height guard keeps short laptops and landscape tablets on the plain scrolling layout.
   No overscroll-behavior here, unlike .chat-popover: that one is a transient fixed overlay, where
   containing the scroll is the point, while this panel sits in page flow pinned for the whole
   results column (about 3,000px of page scroll). Containing it stranded the page: once the panel's
   inner scroll bottomed out, a reader whose cursor rested over the left column could not scroll the
   page at all. Letting the scroll chain on default keeps the pinned panel and hands the wheel back
   to the page the moment the panel runs out.
   This panel is a deliberate scroll region, and it is the only one on the site that sits in page flow
   rather than inside a transient overlay, so it gets a scrollbar the tool drew rather than one Windows
   drew. The two standard properties cover Chrome and Firefox; the ::-webkit-scrollbar rules below are
   for Safari, and for Chrome before 121, which ignores scrollbar-color but does honour the pseudo
   elements. rgba(0, 87, 146, .42) is --c-blue at 42% and .5 is 50% (CSS cannot derive rgba from the
   hex tokens): 34% composited to about #A8C7DB on the white panel, which was too soft for an element
   carrying the "more below" cue. scrollbar-gutter: stable stays, so the reserved track does not shift
   the text on scroll. The scrollbar no longer carries that cue on its own: the veil below fades the
   clipped edge so the fold reads as a fold. Neither changes how much is hidden: the question clipped
   at the fold is still clipped. */
@media (min-width: 981px) and (min-height: 720px) {
  .ts-questions-panel {
    position: sticky;
    top: calc(var(--alert-h, 0px) + 7rem);
    overflow: hidden;
    max-height: calc(100vh - var(--alert-h, 0px) - 9rem);
    max-height: calc(100dvh - var(--alert-h, 0px) - 9rem);
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 87, 146, .42) transparent;
  }
  .ts-questions-panel::-webkit-scrollbar { width: 8px; }
  .ts-questions-panel::-webkit-scrollbar-track { background: transparent; }
  .ts-questions-panel::-webkit-scrollbar-thumb { background: rgba(0, 87, 146, .42); border-radius: 99px; }
  .ts-questions-panel:hover::-webkit-scrollbar-thumb { background: rgba(0, 87, 146, .5); }
  /* The cap cuts a hard line through whichever question lands on it, so this veil fades that edge and
     says the list runs on below. Sticky with a matching negative top margin: it paints at the bottom
     of the scrollport while taking no room in layout, so scrollHeight is unchanged and no question
     moves. The clamp() is .ts-panel's own padding, so the veil reaches the padding edge, and 21px is
     --radius-lg less the 1px side border, so it follows the painted corner. The negative bottom inset
     is not cosmetic: the sticky inset resolves against the scrollport's content box, so measured live
     at bottom: 0 the veil stopped one padding short of the painted edge and left a 34px strip of hard,
     unfaded text under it. One padding lower, the veil ends exactly on the padding edge and its last
     21px are solid. The list's matching 4.5rem tail keeps the veil over blank space both at rest and
     at the end of the scroll, where there is nothing left to signpost, so the last answer option
     always reads at full contrast. */
  .ts-questions-panel::after {
    content: "";
    display: block;
    position: sticky;
    bottom: calc(-1 * clamp(1.35rem, 2.8vw, 2.15rem));
    height: 4.5rem;
    margin: -4.5rem calc(-1 * clamp(1.35rem, 2.8vw, 2.15rem)) 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 70%);
    border-radius: 0 0 21px 21px;
  }
  .ts-questions-list { padding-bottom: 4.5rem; }
}
/* High contrast repaints the panel on system colours, where a white veil would wash over the text it
   sits on rather than fade it away. */
@media (forced-colors: active) {
  .ts-questions-panel::after { display: none; }
}
@media (max-width: 980px) {
  .ts-diag-grid { grid-template-columns: 1fr; }
}

.ts-q-progress {
  font-size: .82rem;
  font-weight: 800;
  color: var(--c-teal-text);
}
.ts-questions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ts-q-card {
  background: var(--c-mist);
  border: 1px solid var(--c-fog);
  border-radius: 12px;
  padding: 1.05rem 1.15rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
/* The accent rides as an inset rail rather than a wider border-left: with border-box sizing the 1px to
   3.5px swap shrank the content area, so the prompt slid 2.4px sideways the moment it was answered. */
.ts-q-card.is-answered {
  border-color: rgba(0, 87, 146, .38);
  background: #fff;
  box-shadow: inset 3px 0 0 var(--c-blue), var(--shadow-sm);
}
/* The counter stays on one line and the equipment badge drops to its own row when the column is narrow
   (phone, and the 981px to 1150px band where the questions column is tightest): both were wrapping
   mid-phrase. The tighter row gap keeps the badge reading as part of the same header. */
.ts-q-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .18rem .5rem;
  margin-bottom: .35rem;
}
.ts-q-card__num {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--c-teal-text);
  white-space: nowrap;
}
.ts-q-card__equip {
  font-size: .72rem;
  font-weight: 700;
  color: var(--c-muted);
}
/* Blue, not teal: .ts-q-card__num at the other end of this same meta row is already --c-teal-text. */
.ts-q-card__equip--followup {
  color: var(--c-blue);
  font-weight: 800;
}
.ts-q-card__prompt {
  font-size: .96rem;
  font-weight: 800;
  color: var(--c-ink);
  margin: 0 0 .3rem;
  line-height: 1.35;
}
.ts-q-card__why {
  font-size: .82rem;
  color: var(--c-muted);
  margin: 0 0 .75rem;
  line-height: 1.45;
}
.ts-q-opts {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
/* flex-start, not center: on the two and three line options the control floated at the middle of the
   paragraph instead of sitting on the first line of its own label. Radius, padding and the soft
   resting shadow match .ts-equip-chip so the answer rows belong to the same card system. */
.ts-q-opt {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  width: 100%;
  padding: .72rem .95rem;
  border-radius: 10px;
  border: 1.5px solid var(--c-line);
  background: #fff;
  color: var(--c-ink);
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  line-height: 1.35;
  box-shadow: 0 1px 1px rgba(10, 25, 41, .03);
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.ts-q-opt:hover {
  border-color: var(--c-blue);
  background: rgba(8, 148, 196, .04);
  box-shadow: var(--shadow-sm);
}
.ts-q-opt:focus-visible {
  border-radius: 10px;
}
/* Round, not square: only one option per question can be held, so this is the same pick-one control as
   .ts-symptom-card__radio and is built from the same recipe. Square stays for add or remove
   (.ts-equip-chip__box), and .12rem matches the nudge that box already uses. */
.ts-q-opt__dot {
  width: 18px;
  height: 18px;
  margin-top: .12rem;
  border-radius: 50%;
  border: 1.5px solid var(--c-field-line);
  flex-shrink: 0;
  background: #fff;
  display: grid;
  place-items: center;
  color: transparent;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.ts-q-opt__label {
  flex: 1;
  min-width: 0;
}
.ts-q-opt__state {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-blue);
  flex-shrink: 0;
  margin-top: .1rem;
  margin-left: .35rem;
}
.ts-q-opt.is-selected {
  border-color: var(--c-blue);
  background: rgba(0, 87, 146, .07);
  color: var(--c-navy);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--c-blue);
}
/* color: transparent, not #fff: the check SVG is a child and would paint on top of the white inset
   ring. The ring is the same fill the active symptom card uses. */
.ts-q-opt.is-selected .ts-q-opt__dot {
  border-color: var(--c-blue);
  background: var(--c-blue);
  color: transparent;
  box-shadow: inset 0 0 0 3.5px #fff;
}
/* The selected rail wins over the hover shadow on specificity, so restate both together. */
.ts-q-opt.is-selected:hover {
  box-shadow: inset 3px 0 0 var(--c-blue), var(--shadow-sm);
}
/* screen only: print drops the tint and the inset rail, so on paper the word and the tick inside the
   chosen dot carry the state together and the word must never be hidden there. On screen the rail, the
   tint, the navy weight and the filled dot already say it, while the tag cost the label it marked 77px
   and re-wrapped the row the moment it was chosen. */
@media screen {
  .ts-q-opt__state { display: none; }
}
/* Forced colours drop the tint, the inset rail and the filled dot, and the forced text colour reveals
   the tick on every dot, so the word comes back as the cue. Same guard the print block already uses. */
@media (forced-colors: active) {
  .ts-q-opt__state { display: inline; }
  .ts-q-opt:not(.is-selected) .ts-q-opt__dot svg { display: none; }
}

/* Results Column */
.ts-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1rem;
}
.ts-context-bar {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: .8rem 1.05rem;
  margin-bottom: 1.15rem;
  background: var(--c-mist);
  border: 1px solid var(--c-fog);
  border-left: 3px solid var(--c-teal);
  border-radius: 8px;
  font-size: .81rem;
  color: var(--c-body);
}
/* Three facts of very different lengths in a flex wrap reflowed every time the preset name changed length,
   so the strip is a fixed one fact per row instead. */
.ts-context-bar__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: .35rem;
}
.ts-context-item strong {
  color: var(--c-ink);
  font-weight: 800;
}
.ts-confidence-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  padding-top: .45rem;
  border-top: 1px solid var(--c-fog);
}
.ts-confidence-status {
  font-size: .74rem;
  font-weight: 700;
  color: var(--c-teal-text);
}
/* At 0 answers the fill is 0px wide, so the track is all anyone sees: a bare 5px fog sliver on the mist
   context box read as an image that failed to load. The inset ring gives it an edge so the empty state
   looks deliberate. Those rgba values are --c-blue at 16% and --c-ink at 6% (CSS cannot derive rgba from
   the hex tokens). Height stays at the .ts-meter family size so the per-cause match bars still lead, and
   the fill gets no outer glow: overflow:hidden would clip it to a smudge at the left of an empty track.
   The ring alone was not enough: the flat track still read as a progress bar that failed to load, so it
   now carries four unlabelled fifths that the fill paints over as it grows (at full confidence none is
   left showing). That rgba is --c-blue at 18%. The marks are written out one by one instead of with a
   repeating gradient, which would also paint a fifth mark at 100%, inside the rounded end cap on top of
   the ring. background-image stays AFTER the background shorthand, which would otherwise reset it. */
.ts-confidence-bar {
  flex: 1;
  min-width: 120px;
  max-width: 200px;
  height: 6px;
  border-radius: 99px;
  background: var(--c-fog);
  background-image: linear-gradient(90deg, transparent 0 calc(20% - 1px), rgba(0, 87, 146, .18) calc(20% - 1px) 20%, transparent 20% calc(40% - 1px), rgba(0, 87, 146, .18) calc(40% - 1px) 40%, transparent 40% calc(60% - 1px), rgba(0, 87, 146, .18) calc(60% - 1px) 60%, transparent 60% calc(80% - 1px), rgba(0, 87, 146, .18) calc(80% - 1px) 80%, transparent 80%);
  box-shadow: inset 0 0 0 1px rgba(0, 87, 146, .16), inset 0 1px 2px rgba(10, 25, 41, .06);
  overflow: hidden;
}
.ts-confidence-bar__fill {
  height: 100%;
  border-radius: 99px;
  /* Blue at the start, teal at the leading edge: the same direction as .ts-meter__bar and the top card's
     three-stop fill below, so the strip and the match meters brighten as they advance rather than one
     darkening while the other brightens. */
  background: linear-gradient(90deg, var(--c-blue), var(--c-teal));
  /* No transition on width here: the strip is rebuilt with innerHTML, so this node is born at its final
     width and a transition can never fire. The sweep comes from the ts-meter-fill keyframes in the
     .ts-meter block below. */
}

.ts-unmatched-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  flex-wrap: wrap;
  padding: .9rem 1.05rem;
  /* An informational note, not an error, so it reuses the .ts-disclaimer treatment. The teal edge (the
     disclaimer uses blue) keeps the two notices distinguishable where they can appear on one screen. */
  background: linear-gradient(135deg, rgba(0, 59, 92, .05), rgba(8, 148, 196, .08));
  border: 1px solid rgba(0, 87, 146, .24);
  border-left: 4px solid var(--c-teal);
  border-radius: 10px;
  font-size: .84rem;
  color: var(--c-ink);
  line-height: 1.45;
}
.ts-unmatched-banner__text {
  flex: 1;
  min-width: 220px;
}

.ts-causes-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.ts-cause-card {
  background: #fff;
  border: 1.5px solid var(--c-fog);
  border-radius: 12px;
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease-soft), box-shadow .2s var(--ease-soft), transform .2s var(--ease-soft);
}
.ts-cause-card:hover {
  border-color: rgba(0, 87, 146, .35);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
/* Top cause: structural hierarchy (elevation, type scale, chip fill) so rank reads without colour.
   The accent rides as an inset rail rather than a wider border-left: with border-box sizing the 1.5px
   to 4px swap shrank the content box, so the rank 1 title and match meter sat 2.5px right of every
   card below them (same reason as .ts-q-card.is-answered and .ts-flow-node.is-flagged). */
.ts-cause-card--top {
  border-color: rgba(0, 87, 146, .55);
  background: linear-gradient(180deg, rgba(8, 148, 196, .04), #fff 42%);
  box-shadow: inset 4px 0 0 var(--c-blue), var(--shadow-lg);
}
/* .ts-cause-card:hover outranks .ts-cause-card--top, so without this the top card would visibly
   deflate to --shadow-md the moment the pointer touched it. */
.ts-cause-card--top:hover {
  border-color: rgba(0, 87, 146, .55);
  box-shadow: inset 4px 0 0 var(--c-blue), var(--shadow-lg);
}
.ts-cause-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem .85rem;
  flex-wrap: wrap;
  margin-bottom: .45rem;
}
.ts-cause-card__badges {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
/* Ranks 2 and below read as a quiet numbered badge, so the filled chip is reserved for rank 1. */
.ts-rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .18rem .48rem;
  border-radius: 6px;
  background: var(--c-fog);
  border: 1px solid rgba(0, 87, 146, .16);
  color: var(--c-navy);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.ts-cause-card--top .ts-rank-num {
  background: var(--grad-cta);
  border-color: transparent;
  color: #fff;
  padding: .22rem .55rem;
  font-size: .76rem;
  box-shadow: 0 6px 14px -6px rgba(0, 87, 146, .55);
}
.ts-cause-rank {
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
/* The head is a wrapping flex row: when the longest rank label pushes the figure onto a second line,
   space-between would strand it at the left edge, so the auto margin keeps the match figure flush right
   in every card. It is a no-op while the badge row and the figure share one line. */
.ts-cause-card__pct {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.ts-cause-card--top .ts-cause-card__pct {
  font-size: .94rem;
}
/* One hue family, intensity ramp: likelihood reads navy, then teal, then grey. The badge text says the
   same thing in words, so nothing here depends on colour alone, and the #1 chip and the label beside it
   can no longer disagree the way a warm chip next to a blue label did. */
.ts-rank--high {
  color: var(--c-navy);
}
.ts-rank--mod {
  color: var(--c-teal-text);
}
.ts-rank--check {
  color: var(--c-muted);
}
.ts-cause-card__submeta {
  margin-bottom: .5rem;
}
.ts-cause-equip {
  /* a block with its own leading: as an inline span a wrapped "Applies to:" line took the card's looser line height */
  display: block;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--c-muted);
  font-weight: 600;
}
.ts-cause-equip strong {
  color: var(--c-ink);
}
.ts-cause-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--c-ink);
  margin: 0 0 .25rem;
  line-height: 1.3;
}
/* clamp, not a flat size: a four-line wrap of the longest cause title in the 310px phone card would
   undo the gain this step size is meant to buy. */
.ts-cause-card--top h4 {
  font-size: clamp(1.16rem, 1.05rem + .6vw, 1.24rem);
  line-height: 1.25;
}
.ts-meter {
  height: 6px;
  background: var(--c-fog);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: .8rem;
}
/* Cards 2 and below sit a shade back so the top meter leads; .8 keeps the fill clear of the fog track. */
.ts-meter__bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(0, 87, 146, .8), rgba(8, 148, 196, .8));
}
/* The top meter grows with the card. No glow: .ts-meter is overflow:hidden and would clip it. */
.ts-cause-card--top .ts-meter {
  height: 9px;
  border-radius: 5px;
}
/* One hue family, brightest in the middle: amber mixed into navy went olive at the midpoint, and the
   fill edge lands on teal so it stays as crisp against the fog track as the bars below it. */
.ts-cause-card--top .ts-meter__bar {
  border-radius: 5px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-cyan) 60%, var(--c-teal));
}
/* The causes list and the confidence strip are rebuilt with innerHTML on every answer, so each bar is a
   brand new node born at its final inline width: a transition can never run. An animation replays on every
   new node, so the fill sweeps out from zero each time the ranking changes. Width, not a scale: scaling
   would paint the top bar's three-stop gradient compressed and squash its 5px end cap. With no "to" block
   the implicit 100% keyframe resolves to the element's own inline width, so only the clip edge travels. */
@keyframes ts-meter-fill { from { width: 0; } }
.ts-meter__bar, .ts-confidence-bar__fill {
  animation: ts-meter-fill .45s var(--ease-out) backwards;
}
/* Stagger so a re-rank reads as one sweep down the list rather than four bars twitching at once.
   animation-delay longhand only, inside a no-preference query, so these more specific selectors can never
   outrank the reduce guard below. nth-of-type counts only the cause <article>s, so the fallback banner
   (a div) cannot shift the count, and any cause past the fourth lands at the end, never at the front.
   The confidence fill gets no delay: it sits above the cards and leads the sweep. */
@media (prefers-reduced-motion: no-preference) {
  .ts-causes-list article:nth-of-type(2) .ts-meter__bar { animation-delay: .05s; }
  .ts-causes-list article:nth-of-type(3) .ts-meter__bar { animation-delay: .1s; }
  .ts-causes-list article:nth-of-type(4) .ts-meter__bar { animation-delay: .15s; }
  .ts-causes-list article:nth-of-type(n+5) .ts-meter__bar { animation-delay: .18s; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-meter__bar, .ts-confidence-bar__fill { animation: none; }
  /* Same bargain the shared card pop strikes above: keep the edge and the shadow, drop the lift. The
     transform shorthand, not translate, because that is the property all six of these rules set. This
     block sits after every one of them, so the matching specificity resolves on source order. */
  .ts-domain-tab:hover, .ts-step-summary:hover, .ts-preset-btn:hover,
  .ts-equip-chip:hover, .ts-symptom-card:hover, .ts-cause-card:hover { transform: none; }
}
.ts-cause-card__why {
  font-size: .9rem;
  color: var(--c-body);
  margin: 0 0 .8rem;
  line-height: 1.55;
}
/* Structural parity with the two .ts-cause-box blocks below: the same 1px fog hairline, the same 3px
   teal rail, the same padding and text size, so the three captioned blocks in a cause card read as one
   family rather than two recipes. The tint and the ink text stay as they are: once the frame matches,
   they are the only cue left that this block reports the visitor's own answers while the two below
   carry TEI's guidance. Declaration order is load-bearing: border must come before border-left, or the
   shorthand wipes the rail. --c-teal-text (the token at the top of this file, for small text and white
   labels) stays on the caption and its glyph, where it is the accessible choice; a 3px graphic rail is
   not small text, so it takes --c-teal and matches .ts-cause-box--verify exactly. */
.ts-matched-reasons {
  margin: 0 0 .9rem;
  padding: .75rem .9rem;
  background: rgba(8, 148, 196, .06);
  border-radius: 8px;
  border: 1px solid var(--c-fog);
  border-left: 3px solid var(--c-teal);
  font-size: .84rem;
  color: var(--c-ink);
}
/* The renderer used to repeat this lead in bold on every row, so it is now one caption above the list.
   The caption is set exactly like the two .ts-cause-box h5 captions below it (same size, weight, case,
   tracking, line-height and colour) so all three blocks in the card are spoken the same way, and the
   list takes the same 1.1rem bullet indent as .ts-cause-box ul. The caption's tick is part of that
   match: the two captions below it carry a shield and a wrench, so this one was the odd caption out
   and its text started 18px to the left of theirs. flex is what puts the glyph on the caption's first
   line, since the global img, svg, video rule near the top of this file makes an inline SVG a block. */
.ts-matched-reasons__label {
  display: flex;
  align-items: flex-start;
  gap: .38rem;
  margin: 0 0 .38rem;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.35;
  color: var(--c-teal-text);
}
.ts-matched-reasons__label > svg {
  flex-shrink: 0;
  margin-top: .14em;
}
/* 1.5, matching .ts-cause-box ul: the two bullet lists in one card were set at different leading. */
.ts-matched-reasons__list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.5;
}
.ts-matched-reasons__list li + li {
  margin-top: .22rem;
}
/* Sized by the space actually available, not by the viewport: the card lives in the narrower results
   column of .ts-diag-grid, so a fixed 1fr 1fr squeezed both boxes to about 175px through the whole
   981 to 1190px band and broke the bullets every three words. Measured at 1440, two columns still left
   each box only 244px, about 30 characters a line, and the pair was row-locked so the shorter box kept
   about 100 to 140px of empty tint below its text. One full-width column fixes both: the card reads
   checks, then professional work, down the page at every width tested. */
.ts-cause-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  padding-top: .8rem;
  border-top: 1px solid var(--c-fog);
}
@media (max-width: 640px) {
  /* Phones cannot fit the flow train on one line, so it reads as a vertical rail instead of a zig-zag:
     stack the nodes and point the connector down the left edge, centred in the 1rem gap. Stacked,
     one node per row, nothing can wrap, so the connector is safe above the node it points into (the
     trailing in-card chevron of the wide layout would point across the card instead of down the rail).
     Same set of nodes as the wide layout's :not(:last-child), seen from the other end. */
  .ts-flow { flex-direction: column; align-items: stretch; gap: 1rem; }
  .ts-flow-node:not(:last-child)::after { display: none; }
  .ts-flow-node:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 1.15rem;
    top: -.72rem;
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--c-teal-text);
    border-right: 2px solid var(--c-teal-text);
    transform: rotate(135deg);
  }
  /* The flag label takes its own line so the equipment name stops breaking mid-phrase. */
  /* position: relative anchors the connector above, which is no longer carried by a sibling rule. */
  .ts-flow-node { position: relative; flex-wrap: wrap; justify-content: flex-start; padding: .6rem .8rem; }
  .ts-flow-node__flag { flex-basis: 100%; margin-left: 1.95rem; }
  /* A separator with nothing to separate once the flag owns its own line. This is the flag's own
     pseudo-element, not the down connector .ts-flow-node:not(:first-child)::before above. */
  .ts-flow-node__flag::before { content: none; }
  /* Phone tap targets: the small buttons and the answer rows both sat under 44px, the minimum the
     rest of the site already keeps. The answer row's own padding reaches 44px on its own, so the
     floor here is a guard rather than a lift and leaves no dead space under a one line label. */
  .ts-btn-sm { min-height: 44px; padding: .7rem .9rem; }
  .ts-q-opt { min-height: 44px; }
  /* Phone: the counter sits above the equipment badge so every question card opens the same way. */
  .ts-q-card__meta { flex-direction: column; align-items: flex-start; margin-bottom: .45rem; }
}
/* 520, not 640: between 521 and 640 all three result actions still sit on one row and the Step 2 trio
   still fits its head, so reflowing them there would break a working row. Below 520 the rows ran past
   the panel edge, where overflow-x: clip cut them off with no way to scroll across. */
@media (max-width: 520px) {
  /* The actions took their max-content width, so their own wrap never engaged. */
  .ts-panel__actions { flex-shrink: 1; min-width: 0; width: 100%; }
  /* auto-fit with a min() floor, not two fixed tracks: .btn is nowrap, so a fixed pair would overflow
     the narrowest phones. Letting the label wrap as well keeps the transient "Copied to clipboard!"
     state inside its own track. The primary keeps a full-width row of its own. */
  .ts-action-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr)); }
  .ts-action-bar .btn { justify-content: center; white-space: normal; text-align: center; line-height: 1.25; }
  .ts-action-bar .btn-primary { grid-column: 1 / -1; }
}
.ts-cause-box {
  background: var(--c-mist);
  border: 1px solid var(--c-fog);
  border-radius: 8px;
  padding: .75rem .9rem;
}
.ts-cause-box--verify {
  border-left: 3px solid var(--c-teal);
}
.ts-cause-box--fix {
  border-left: 3px solid var(--c-blue);
}
/* line-height 1.35 and flex-start, not the inherited 1.15 and center: the longer box heading wraps
   to two lines at phone width, and centring put the wrench in the gap between the two lines instead of
   beside the first word. The icon keeps its own size and rides the first line.
   flex, not inline-flex: the box used to be a grid container, which blockified this to flex anyway, and
   an inline-level heading opens about 7px of line-box leading above itself inside the tinted box. */
.ts-cause-box h5 {
  display: flex;
  align-items: flex-start;
  gap: .38rem;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.35;
  color: var(--c-teal-text);
  margin: 0 0 .38rem;
}
.ts-cause-box h5 > svg {
  flex-shrink: 0;
  margin-top: .14em;
}
.ts-cause-box--fix h5 {
  color: var(--c-blue);
}
.ts-cause-box p,
.ts-cause-box ul {
  margin: 0;
  font-size: .84rem;
  color: var(--c-body);
  line-height: 1.5;
}
.ts-cause-box ul {
  padding-left: 1.1rem;
}
.ts-cause-box li + li {
  margin-top: .22rem;
}
/* Block flow, not a flex row: as a flex row the icon, the label and the value became three flex items
   that shrank against each other, so the person icon rendered at 5.85px and "Typical responder:" broke
   into its own narrow column on long values. The line now reads as a label and then its value on every
   card, matching .ts-cause-equip ("Applies to:") two lines above. The divider matches the solid rule on
   .ts-cause-card__grid instead of being the only dashed border in the tool. */
.ts-pro-note {
  margin-top: .75rem;
  padding-top: .6rem;
  border-top: 1px solid var(--c-fog);
  font-size: .8rem;
  color: var(--c-muted);
  display: block;
}
.ts-pro-note > span {
  display: block;
  line-height: 1.5;
}
.ts-pro-note > span > svg {
  /* inline-block undoes the global img/svg/video display:block reset near the top of this file: in
     block flow the icon would otherwise take a line of its own above the label. */
  display: inline-block;
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  margin-right: .4rem;
}
.ts-pro-note strong {
  color: var(--c-ink);
  white-space: nowrap;
}

.ts-results-disclaimer {
  margin-top: 1.25rem;
  padding: .9rem 1rem;
  border-radius: 8px;
  background: var(--c-mist);
  border: 1px solid var(--c-fog);
  font-size: .82rem;
  color: var(--c-muted);
  line-height: 1.5;
}
.ts-results-disclaimer strong {
  color: var(--c-ink);
}

/* Phone only: the container gutter, the panel, the cause card and the cause box nest four deep, so
   their padding compounds and the deepest text (a verification step) starts near the middle of the
   screen. Trim each level here. Placed after every rule it overrides, and after the 640px block
   above, because media queries carry no specificity of their own. Desktop spacing is unchanged. */
@media (max-width: 640px) {
  .ts-panel { padding: 1.15rem 1rem; }
  .ts-cause-card { padding: 1.05rem 1rem; }
  .ts-cause-box, .ts-matched-reasons { padding: .7rem .8rem; }
  .ts-cause-box ul, .ts-matched-reasons__list { padding-left: 1.05rem; }
  /* Phone: the checks and the professional-work text are the part a visitor reads most closely, so they
     are lifted to the same .9rem as the .ts-cause-card__why paragraph above them rather than reading
     as the card's fine print. The uppercase captions keep their quieter .74rem. */
  .ts-cause-box p, .ts-cause-box ul, .ts-matched-reasons { font-size: .9rem; }
  .ts-flow-wrap { padding: 1rem .85rem; }
  /* Phone: the strip wraps so the bar owns its own line, where the 200px two-up cap only left dead track. */
  .ts-confidence-bar { max-width: none; }
  /* Phone: a two-track grid, so the match figure holds one spot in every card instead of sharing the
     head with the badges in some and dropping below them in others. The base rule's margin-left: auto
     is inert in an auto track, so the desktop flex row is untouched. The narrower column gap is what
     keeps the longest rank labels on one line, and nowrap stops the figure itself breaking in two. */
  .ts-cause-card__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .5rem; }
  .ts-cause-card__badges { min-width: 0; }
  .ts-cause-card__pct { white-space: nowrap; }
  .ts-rank-num { flex-shrink: 0; }
}

@media print {
  /* The chooser controls are dead on paper, so they are dropped with their own section heads, and the
     stepper is kept instead: it is the one element that states the four chosen values. */
  .ts-presets-wrap, .ts-equip-section, .ts-action-bar, .ts-panel__actions, .ts-domain-bar, .ts-domain-tabs, #ts-step-symptom { display: none !important; }
  /* Same reason: the Step 2 lead points at presets and equipment cards that are no longer on the sheet.
     Hidden in CSS only, so the data-ts-equip-sub hook and the text the script writes into it both stay. */
  #ts-step-equipment [data-ts-equip-sub] { display: none !important; }
  .ts-stepper { break-inside: avoid; page-break-inside: avoid; }
  .ts-step-summary { border: 1px solid #bbb !important; break-inside: avoid; page-break-inside: avoid; }
  /* On screen these two lines are clamped with an ellipsis, which would cut the closest-match line short on paper. */
  .ts-step-summary__val, .ts-step-summary__sub { display: block; -webkit-line-clamp: none; overflow: visible; }
  /* Drop the section ground so the worksheet prints clean for anyone with "print backgrounds" on. */
  #troubleshooter, #troubleshooter::before { background: none !important; }
  .ts-diag-grid { grid-template-columns: 1fr !important; }
  /* Print carries the whole worksheet: un-pin and un-cap both columns so no question is clipped. */
  .ts-questions-panel, .ts-results-panel { position: static !important; max-height: none !important; overflow: visible !important; }
  /* Print un-caps the panel, so there is no fold for the screen veil to mark and no reason to keep the
     blank tail the veil sits on. The screen rules are behind a 981px gate the page box never reaches,
     so both lines are belt and braces. */
  .ts-questions-panel::after { display: none !important; }
  .ts-questions-list { padding-bottom: 0 !important; }
  .ts-cause-card, .ts-q-card, .ts-disclaimer { border: 1px solid #bbb !important; break-inside: avoid; page-break-inside: avoid; margin-bottom: .35cm; }
  /* Shadows do not print, so the top cause keeps its rank through type size. */
  .ts-cause-card--top h4 { font-size: 1.24rem; }
  /* The global print reset forces color:#000, which would reveal the tick inside every unchosen option. */
  .ts-q-opt:not(.is-selected) .ts-q-opt__dot svg { display: none; }
  /* The global reset above drops every fill, so both bars print as empty bands: about 21px on each of
     up to eight cause cards, and a 200px blank run beside the confidence status line. The value each
     one encodes already prints in type ("N of M answered" on the strip). */
  .ts-meter, .ts-confidence-bar { display: none !important; }
  /* The legend swatch is a background fill and the node highlight it explains is one too, so neither
     survives printing. Each flagged node still prints its label in words. */
  .ts-flow-legend { display: none !important; }
  /* Firefox runs no CSS animations in a print document, so the sweep is switched off on paper rather than
     left to chance. The worksheet is unaffected either way: the print reset already clears both fills. */
  .ts-meter__bar, .ts-confidence-bar__fill { animation: none; }
}
@media (scripting: none) {
  /* No JavaScript: the Step 1 chooser cannot switch anything, so it is hidden along with the workspace
     and the noscript note in the agreement panel speaks for the section. Print has its own rules above. */
  .ts-workspace, .ts-domain-bar { display: none !important; }
}

/* ================================================================
   TROUBLESHOOTING GUIDE: AGREEMENT SCREEN, TERMS AND STAMP
   The guide (every element marked data-ts-guide) stays hidden until the visitor ticks the box and
   presses "I agree". main.js starts the tool only then. The terms box is the agreement itself: keep it
   readable, shown in full (no inner scroll box) and above the tick box.
================================================================== */
.ts-gate {
  background: #fff;
  border: 1px solid var(--c-fog);
  border-top: 3px solid var(--c-blue);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.8vw, 2.15rem);
  box-shadow: var(--shadow-lg);
}
.ts-gate h2 { margin: .35rem 0 .6rem; }
.ts-gate__intro { color: var(--c-body); max-width: 76ch; margin: 0 0 1.1rem; }
.ts-terms {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-mist);
  padding: 1.1rem 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-body);
}
.ts-terms h3 { margin: 0 0 .15rem; font-size: 1.1rem; color: var(--c-ink); }
.ts-terms__ver { margin: 0 0 .75rem; font-size: .8rem; color: var(--c-muted); }
.ts-terms p { margin: 0 0 .8rem; }
.ts-terms ol { margin: 0; padding-left: 1.3rem; }
.ts-terms li { margin: 0 0 .7rem; }
.ts-terms li:last-child { margin-bottom: 0; }
.ts-terms strong { color: var(--c-ink); }
.ts-terms a, .ts-gate__check a, .ts-gate__intro a, .ts-gate__noscript a, .ts-disclaimer__body a {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ts-gate__form { margin-top: 1.15rem; }
.ts-gate__check {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.5;
  cursor: pointer;
}
.ts-gate__check input {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin: .1rem 0 0;
  accent-color: var(--c-blue);
  cursor: pointer;
}
.ts-gate__error {
  margin: .7rem 0 0;
  padding: .6rem .8rem;
  border-radius: 8px;
  background: #FDECEC;
  border: 1px solid #E3A6A6;
  color: #8A1C1C;
  font-size: .9rem;
  font-weight: 600;
}
.ts-gate__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
/* .btn is nowrap site-wide: on a narrow phone the phone-number button would run past the panel. */
.ts-gate__actions .btn { white-space: normal; text-align: center; justify-content: center; max-width: 100%; }
@media (max-width: 480px) { .ts-gate__actions .btn { width: 100%; } }
.ts-gate__noscript { margin: 1rem 0 0; font-weight: 600; color: var(--c-ink); }
@media (scripting: none) { .ts-gate__form { display: none; } }

.ts-stamp-section { padding-bottom: 0; }
.ts-stamp {
  padding: .85rem 1.1rem;
  border: 1px solid rgba(0, 87, 146, .24);
  border-left: 4px solid var(--c-blue);
  border-radius: var(--radius);
  background: #fff;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--c-body);
}
.ts-stamp:focus { outline: none; }
.ts-stamp:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
/* direct children only: after acceptance the terms block sits inside the stamp and keeps its own paragraph spacing */
.ts-stamp > p { margin: 0; }
.ts-stamp strong { color: var(--c-ink); }
.ts-stamp [data-ts-accepted-at] { color: var(--c-muted); }
/* Printed sheets travel without the page around them: this line names where the terms are. */
.ts-print-only { display: none; }
/* The agreement rests on the hidden attribute. Nothing else in this file may un-hide these elements. */
[data-ts-guide][hidden], [data-ts-gate][hidden] { display: none !important; }
/* Shown above the list until the visitor has chosen something: the default list is an example, not a result. */
.ts-example-note {
  margin: 0 0 1rem;
  padding: .8rem 1rem;
  border-radius: 8px;
  background: var(--c-mist);
  border: 1px solid var(--c-line);
  font-size: .88rem;
  line-height: 1.5;
  color: var(--c-body);
}
.ts-example-note strong { color: var(--c-ink); }
.ts-terms-after { margin-top: .45rem; }
.ts-terms-after summary { cursor: pointer; font-weight: 700; color: var(--c-blue); }
.ts-terms-after .ts-terms { margin-top: .7rem; }
/* One line under every possible cause, so a card that is copied or screenshotted on its own still says what it is. */
.ts-cause-card__edu { margin: .6rem 0 0; font-size: .76rem; line-height: 1.45; color: var(--c-muted); }
@media print {
  .ts-gate__form, .ts-terms-after summary { display: none !important; }
  .ts-print-only { display: block !important; margin-top: .3rem !important; }
  .ts-stamp { border: 1px solid #bbb !important; }
}
