/* ==========================================================================
   TrueNorth Dental — single stylesheet
   1. Tokens          2. Reset        3. Base type      4. Buttons
   5. Layout          6. Topbar       7. Header + nav   8. Hero
   9. Page hero      10. Blocks      11. Dynamic blocks 12. Forms
  13. Footer        14. Utilities    15. Animation      16. Responsive
   ========================================================================== */

/* ------------------------------------------------------------------ 1. Tokens */
:root {
  /* Brand */
  --navy: #063B8C;
  --navy-700: #05306F;
  --navy-900: #03204D;
  /* `#0878D9` put white button labels at 4.47:1 — a hair under AA. `#0770CC`
     is the same brand blue shifted two steps darker, clearing 5.0:1 for
     white-on-blue while remaining visually indistinguishable at button size. */
  --blue: #0770CC;
  --blue-700: #0666B8;
  --teal: #08A8B8;
  --teal-700: #078E9C;
  /* Small-text-safe teal. `--teal-700` is 3.9:1 on white, below the 4.5:1 floor
     for the 11–13px uppercase labels that consume it most (`.eyebrow`,
     `.member__eyebrow`, `.author-box__label`, `.timeline__year`, …). Text rules
     use this; gradients and scrollbars keep `--teal-700` for its richer hue. */
  --teal-800: #056F7B;
  --cyan: #DDF6F8;
  --soft: #EAF4FC;
  --white: #FFFFFF;
  --slate: #172B4D;
  --slate-600: #46587A;
  --slate-400: #6B7C99;
  /* Metadata-safe grey. `--slate-400` is 4.23:1 on white — acceptable for large
     or decorative text, too low for the 11–14px captions that use it most.
     Text rules use this; borders/scrollbars keep `--slate-400`. */
  --slate-500: #5A6B87;
  --gray: #F5F8FA;
  --line: #E1EAF3;
  --line-strong: #CBD9E8;

  /* Semantic */
  --bg: var(--white);
  --fg: var(--slate);
  --fg-muted: var(--slate-600);
  --heading: var(--navy);

  /* Shape */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadow */
  --sh-xs: 0 1px 2px rgba(6, 59, 140, .06);
  --sh-sm: 0 2px 8px rgba(6, 59, 140, .07);
  --sh: 0 10px 30px -12px rgba(6, 59, 140, .18);
  --sh-lg: 0 26px 60px -22px rgba(6, 59, 140, .28);
  --sh-xl: 0 40px 90px -30px rgba(3, 32, 77, .35);

  /* Layout */
  --container: 1220px;
  --gutter: 22px;
  --header-h: 86px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ------------------------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; color: var(--heading); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding: 0; list-style: none; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--navy); }
strong { font-weight: 700; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Scrollbar (progressive polish) */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid var(--white); }
*::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* -------------------------------------------------------------- 3. Base type */
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

/* Small uppercase eyebrow text: `--teal-700` only reached 3.9:1 on white,
   below the 4.5:1 floor for text this size. `--teal-800` clears it. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-800);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.eyebrow--light { color: var(--cyan); }
.eyebrow--light::before { background: var(--teal); }

/* Dark surfaces: the default `--teal-800` eyebrow is far too dark to read on
   navy (2.7:1). Auto-switch to the light treatment so editors never have to
   remember the `--light` modifier. `--teal-300` is a tinted cyan that keeps
   the brand feel while clearing AA on navy. */
.page-hero .eyebrow,
.hero .eyebrow,
.section--navy .eyebrow,
.cta-band .eyebrow,
.offer__left .eyebrow { color: #7FDDEC; }
.page-hero .eyebrow::before,
.hero .eyebrow::before,
.section--navy .eyebrow::before,
.cta-band .eyebrow::before,
.offer__left .eyebrow::before { background: var(--teal); }

.section__title { margin-bottom: .35em; }
.section__intro { max-width: 68ch; color: var(--fg-muted); font-size: 1.05rem; margin-bottom: 0; }

.section__head { max-width: 780px; margin-bottom: 52px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--light .section__title { color: #fff; }
.section__head--light .section__intro { color: rgba(255, 255, 255, .78); }

.section__foot { margin: 46px 0 0; text-align: center; }

/* ----------------------------------------------------------------- 4. Buttons */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
  will-change: transform;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--blue); box-shadow: 0 10px 24px -10px rgba(8, 120, 217, .75); }
.btn--primary:hover { --btn-bg: var(--navy); box-shadow: 0 16px 32px -12px rgba(6, 59, 140, .65); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--soft); --btn-fg: var(--navy); border-color: var(--blue); }

.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); border-color: var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: #fff; }

/* An outline button inherits the page's text colour for its fill, so the same
   class silently becomes navy-on-navy inside a dark band. Every dark surface
   must therefore switch it to light. */
.cta-band .btn--outline,
.section--navy .btn--outline,
.offer__left .btn--outline { --btn-fg: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-band .btn--outline:hover,
.section--navy .btn--outline:hover,
.offer__left .btn--outline:hover { --btn-bg: #fff; --btn-fg: var(--navy); border-color: #fff; }

.btn--outline-light { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { --btn-bg: #fff; --btn-fg: var(--navy); border-color: #fff; }

/* Defensive: `--outline-light` is white-on-transparent by design, so it is
   invisible anywhere the backdrop is not dark. Every current call site sits on
   a dark surface (hero, page-hero, footer, 404) — but if one is ever dropped
   into a light section it must fall back to the standard outline treatment
   rather than disappearing. Scoped to light backgrounds only; never override
   the hero/page-hero, which are dark on purpose. */
.section--soft .btn--outline-light,
.section--cyan .btn--outline-light,
.section--gray .btn--outline-light,
.cards .btn--outline-light,
.faq .btn--outline-light {
  --btn-fg: var(--navy);
  --btn-bg: transparent;
  border-color: var(--navy);
}
.section--soft .btn--outline-light:hover,
.section--cyan .btn--outline-light:hover,
.section--gray .btn--outline-light:hover,
.cards .btn--outline-light:hover,
.faq .btn--outline-light:hover { --btn-bg: var(--navy); --btn-fg: #fff; }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, .16); --btn-fg: #fff; }

.btn--lg { padding: 17px 32px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* ------------------------------------------------------------------ 5. Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 830px; }
.container--wide { max-width: 1040px; }

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 44px 0; }
.section--soft { background: var(--soft); }
.section--cyan { background: var(--cyan); }
.section--gray { background: var(--gray); }
.section--navy {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 55%, #0757A8 100%);
  color: rgba(255, 255, 255, .88);
}
.section--navy .section__title, .section--navy h2, .section--navy h3 { color: #fff; }

/* ------------------------------------------------------------------- 6. Topbar */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .84);
  font-size: .82rem;
  position: relative;
  /* Must sit BELOW .site-header (100) and the nav overlay (99). The mobile drawer
     is a descendant of the header, so the header's stacking context caps it —
     a higher topbar z-index would paint straight over the open drawer. */
  z-index: 90;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  height: 42px;
}
.topbar__list { display: flex; align-items: center; gap: 22px; margin: 0; }
.topbar__list--right { gap: 16px; }
.topbar__list li { display: inline-flex; align-items: center; white-space: nowrap; }
.topbar__list a, .topbar__list > li > span { display: inline-flex; align-items: center; gap: 7px; color: inherit; white-space: nowrap; }
.topbar__list a:hover { color: #fff; }
.topbar__ico { color: var(--teal); flex: none; }
.topbar__emergency { color: #fff !important; font-weight: 600; }
.topbar__socials { display: flex; align-items: center; gap: 4px; margin: 0; }
.topbar__socials a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: rgba(255, 255, 255, .78); transition: background-color .2s var(--ease), color .2s var(--ease); }
.topbar__socials a:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ------------------------------------------------------------ 7. Header + nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  /* NOTE: no transform / filter / backdrop-filter here — it would break the
     fixed mobile drawer by creating a containing block. */
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(6, 59, 140, .35); }

.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: transparent;
  overflow: hidden;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transition: width .1s linear;
}

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

.brand { display: flex; align-items: center; flex: none; }
.brand__logo { width: 176px; height: auto; }

.header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header__phone { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.header__phone-ico {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--teal-800);
  flex: none;
}
.header__phone-text { display: flex; flex-direction: column; line-height: 1.25; }
.header__phone-text small { font-size: .7rem; color: var(--slate-500); letter-spacing: .04em; text-transform: uppercase; }
.header__phone-text strong { font-size: .96rem; font-weight: 700; white-space: nowrap; }
.header__phone:hover { color: var(--blue-700); }
.header__cta { padding: 13px 22px; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger__box { display: block; width: 20px; height: 14px; position: relative; }
.burger__bar {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.burger__bar:nth-child(1) { top: 0; }
.burger__bar:nth-child(2) { top: 6px; }
.burger__bar:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* --- nav (desktop = horizontal bar, mobile = fixed drawer) --- */
.nav { position: relative; display: flex; align-items: center; margin-left: 8px; }
.nav__head, .nav__info, .nav__actions, .nav__label { display: none; }
.nav__list { display: flex; align-items: center; gap: 2px; margin: 0; }
.nav__item { position: relative; }
/* The mega panel anchors to .nav rather than the list item, so a 620px wide
   panel can never be pushed past the left edge of the viewport. */
.nav__item--mega { position: static; }
.nav__row { display: flex; align-items: center; }
.nav__link {
  display: block;
  padding: 12px 11px;
  border-radius: var(--r-sm);
  color: var(--slate);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--blue-700); background: var(--soft); }
.nav__link.is-active { position: relative; }

.nav__sub-toggle {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--slate-500);
  border-radius: 6px;
  cursor: pointer;
  pointer-events: none; /* desktop is driven by hover / focus-within */
  transition: transform .25s var(--ease);
}
.nav__item--has-menu:hover .nav__sub-toggle,
.nav__item--has-menu:focus-within .nav__sub-toggle { transform: rotate(180deg); color: var(--blue-700); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 340px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .18s;
  z-index: 5;
}
/* invisible hover bridge so the pointer can cross the gap without closing */
.dropdown::after { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }

.nav__item--has-menu:hover > .dropdown,
.nav__item--has-menu:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.dropdown--mega { min-width: 620px; }
.nav__item--mega .dropdown { left: auto; right: 0; }

.dropdown__inner { display: block; }
.dropdown__label {
  margin: 4px 8px 10px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-800);
}
.dropdown__list { display: grid; gap: 2px; margin: 0; }
.dropdown__list--mega { grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.dropdown__link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r);
  color: var(--slate);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.dropdown__link:hover { background: var(--soft); color: var(--navy); }
.dropdown__ico {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--cyan);
  color: var(--teal-800);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.dropdown__link:hover .dropdown__ico { background: var(--blue); color: #fff; }
.dropdown__text { display: flex; flex-direction: column; gap: 2px; }
.dropdown__text strong { font-size: .92rem; font-weight: 700; color: var(--navy); }
.dropdown__text small { font-size: .8rem; color: var(--slate-500); line-height: 1.45; }
.dropdown__all {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 8px 8px 4px;
  font-size: .88rem; font-weight: 700; color: var(--blue-700);
}
.dropdown__all:hover { gap: 12px; }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 32, 77, .55);
  opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: 99; /* below the header so the drawer inside it stays clickable */
}
.nav-overlay.is-open { opacity: 1; }

/* --------------------------------------------------------------------- 8. Hero */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 28%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(3, 32, 77, .95) 0%, rgba(4, 43, 100, .82) 38%, rgba(6, 59, 140, .38) 66%, rgba(8, 168, 184, .22) 100%);
}
/* No max-width here: it must inherit .container's width so the hero copy lines
   up with every other section on the page. The measure is constrained on the
   title/intro instead. */
.hero__inner {
  position: relative;
  padding-block: 104px 168px;
}
.hero__title {
  color: #fff;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  max-width: 17ch;
  margin-bottom: .5em;
}
.hero__intro {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: rgba(255, 255, 255, .87);
  max-width: 58ch;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; }
.hero__points li { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; color: rgba(255, 255, 255, .82); }
.hero__points svg { color: var(--teal); flex: none; }

.hero__quick { position: relative; margin-top: -96px; z-index: 3; }
.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  overflow: hidden;
}
.quick__item + .quick__item { border-left: 1px solid var(--line); }
.quick__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px 28px;
  color: var(--slate);
  height: 100%;
  transition: background-color .25s var(--ease);
}
.quick__link:hover { background: var(--soft); color: var(--slate); }
.quick__ico {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  flex: none;
  border-radius: 16px;
  background: var(--cyan);
  color: var(--teal-800);
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.quick__link:hover .quick__ico { transform: translateY(-3px) rotate(-4deg); background: var(--teal); color: #fff; }
.quick__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.quick__title { font-size: 1.02rem; font-weight: 700; color: var(--navy); }
.quick__text { font-size: .84rem; color: var(--slate-500); line-height: 1.5; }
.quick__meta { font-size: .82rem; font-weight: 700; color: var(--blue-700); margin-top: 3px; }
.quick__arrow { margin-left: auto; color: var(--line-strong); transition: transform .25s var(--ease), color .25s var(--ease); flex: none; }
.quick__link:hover .quick__arrow { transform: translateX(4px); color: var(--blue-700); }

/* --------------------------------------------------------------- 9. Page hero */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900), var(--navy) 60%, #0760B4);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.page-hero--plain { background: linear-gradient(135deg, var(--navy-900), var(--navy) 70%, var(--teal-700)); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(3, 32, 77, .95) 0%, rgba(4, 43, 100, .86) 42%, rgba(6, 59, 140, .62) 74%, rgba(8, 168, 184, .38) 100%);
}
/* padding-block, NOT the `padding` shorthand — a shorthand here would zero the
   container's horizontal padding and push hero copy flush to the screen edge.
   No max-width, so the hero aligns with the rest of the page grid. */
.page-hero__inner { position: relative; padding-block: 54px 76px; }
.page-hero__title { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 20ch; margin-bottom: .4em; }
.page-hero__intro { font-size: clamp(1rem, 1.4vw, 1.12rem); color: rgba(255, 255, 255, .85); max-width: 66ch; margin-bottom: 28px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 13px; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 26px; }
.page-hero__meta li { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: rgba(255, 255, 255, .85); }
.page-hero__meta svg { color: var(--teal); flex: none; }
.page-hero__stats {
  display: flex; flex-wrap: wrap; gap: 14px 46px;
  margin: 40px 0 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.page-hero__stats li { display: flex; flex-direction: column; }
.page-hero__stats strong { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.2; }
.page-hero__stats span { font-size: .82rem; color: rgba(255, 255, 255, .72); }

.breadcrumbs { margin-bottom: 22px; font-size: .82rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .62); }
.breadcrumbs li + li::before { content: '/'; color: rgba(255, 255, 255, .34); }
.breadcrumbs a { color: rgba(255, 255, 255, .78); }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* ----------------------------------------------------------------- 10. Blocks */
/* prose */
.prose p { font-size: 1.04rem; color: var(--fg-muted); }
.prose > p:first-of-type { font-size: 1.12rem; color: var(--fg); }
.prose h3 { margin-top: 1.6em; }
.prose--center { text-align: center; }
.prose--center .eyebrow { justify-content: center; }
.prose__list-title { margin-top: 1.4em; }
.section--navy .prose p { color: rgba(255, 255, 255, .82); }

.tick-list { display: grid; gap: 12px; margin: 1.4em 0 0; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--fg-muted); }
.tick-list svg { flex: none; margin-top: 3px; color: var(--teal); }
.tick-list--tight { gap: 9px; margin-top: 1.1em; }
/* The `--light` variant means "light text for a dark backdrop". It must only
   apply where the backdrop really is dark. `.offer__right` is a cyan (light)
   panel, so an unscoped `.tick-list--light` there rendered white-on-cyan at
   1.1:1 — invisible. Scope the light variant to dark surfaces, and neutralise
   it inside light panels. */
.tick-list--light li { color: rgba(255, 255, 255, .88); }
.tick-list--light svg { color: var(--cyan); }
.offer__right .tick-list--light li { color: var(--slate); }
.offer__right .tick-list--light svg { color: var(--teal-800); }

/* cards */
.cards { display: grid; gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative;
  padding: 34px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::before {
  content: '';
  position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__ico {
  display: grid; place-items: center;
  width: 58px; height: 58px;
  margin-bottom: 20px;
  border-radius: 17px;
  background: var(--soft);
  color: var(--navy);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.card:hover .card__ico { background: var(--navy); color: #fff; transform: translateY(-2px); }
.card__title { font-size: 1.12rem; margin-bottom: .5em; }
.card__text { font-size: .95rem; color: var(--fg-muted); margin-bottom: 0; }
.card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: .88rem; font-weight: 700; color: var(--blue-700); }
.card__link:hover { gap: 11px; }
.section--soft .card { background: #fff; }

/* steps */
.steps { display: grid; gap: 0; margin: 0; counter-reset: step; }
.step {
  display: flex;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step__num {
  flex: none;
  width: 62px;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  /* Ghost numeral: an outlined glyph, not a filled one. Any light fill reads
     as "white text on white" (1.13:1) and any dark fill fights the look on
     navy. So make the fill transparent and let a 2px stroke draw the numeral
     — legible on white *and* navy, and it keeps the outline aesthetic the
     design called for. The stroke colour is strong enough to clear 3:1 at
     this weight and size. */
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px var(--teal-700);
  transition: -webkit-text-stroke-color .3s var(--ease);
}
.step:hover .step__num { -webkit-text-stroke-color: var(--navy); }
.step__title { margin-bottom: .35em; }
.step__text { color: var(--fg-muted); margin-bottom: 0; max-width: 78ch; }
.section--navy .step { border-color: rgba(255, 255, 255, .14); }
.section--navy .step__text { color: rgba(255, 255, 255, .8); }
.section--navy .step__num { -webkit-text-stroke: 2px var(--teal); }
.section--navy .step:hover .step__num { -webkit-text-stroke-color: #fff; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; }
.stat { text-align: center; padding: 22px 14px; }
.stat__value {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.section:not(.section--navy) .stat__value { color: var(--navy); }
.stat__label { display: block; margin-top: 8px; font-size: .88rem; color: rgba(255, 255, 255, .72); }
.section:not(.section--navy) .stat__label { color: var(--slate-500); }

/* timeline */
.timeline { position: relative; display: grid; gap: 0; margin: 0; padding-left: 34px; }
.timeline::before {
  content: '';
  position: absolute; left: 7px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--cyan));
}
.timeline__item { position: relative; padding: 0 0 34px 0; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute; left: -34px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--teal);
}
.timeline__year { display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .1em; color: var(--teal-800); margin-bottom: 5px; }
.timeline__title { margin-bottom: .3em; }
.timeline__text { color: var(--fg-muted); margin-bottom: 0; max-width: 76ch; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 62px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media::after {
  content: '';
  position: absolute; inset: 22px -22px -22px 22px;
  border-radius: var(--r-xl);
  background: var(--cyan);
  z-index: -1;
}
.split--reverse .split__media::after { inset: 22px 22px -22px -22px; }
.split__img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-lg); aspect-ratio: 3 / 2; object-fit: cover; }
.split__content p { color: var(--fg-muted); font-size: 1.03rem; }
.split__content .btn { margin-top: 12px; }
.section--navy .split__content p { color: rgba(255, 255, 255, .82); }
.section--navy .split__media::after { background: rgba(8, 168, 184, .22); }

/* table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
  -webkit-overflow-scrolling: touch;
}
.table { min-width: 620px; font-size: .94rem; }
.table thead th {
  background: var(--navy);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: left;
  padding: 17px 22px;
  white-space: nowrap;
}
.table tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  padding: 17px 22px;
  background: var(--gray);
  width: 32%;
  vertical-align: top;
}
.table tbody td { padding: 17px 22px; color: var(--fg-muted); border-top: 1px solid var(--line); vertical-align: top; }
.table tbody tr:nth-child(even) td { background: rgba(245, 248, 250, .6); }
.table tbody tr:hover td { background: var(--soft); }
.table__note { display: flex; gap: 10px; margin-top: 16px; font-size: .86rem; color: var(--slate-500); }
.table__note svg { flex: none; margin-top: 3px; color: var(--teal); }

/* checklist */
.checklist { display: grid; gap: 12px 34px; }
.checklist--2 { grid-template-columns: 1fr 1fr; }
.checklist--3 { grid-template-columns: repeat(3, 1fr); }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; color: var(--fg-muted); }
.checklist__ico {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--teal-800);
}
.checklist__ico svg { width: 14px; height: 14px; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq__item[open] { border-color: var(--teal); box-shadow: var(--sh-sm); }
.faq__item:hover { border-color: var(--line-strong); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--blue-700); }
.faq__icon {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--soft);
  color: var(--navy);
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.faq__item[open] .faq__icon { transform: rotate(135deg); background: var(--teal); color: #fff; }
.faq__a { padding: 0 24px 22px; }
.faq__a p { margin: 0; color: var(--fg-muted); font-size: .98rem; }
.faq__item[open] .faq__a { animation: faqIn .35s var(--ease) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* quote */
.pullquote {
  position: relative;
  margin: 0;
  padding: 48px 44px;
  background: #fff;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  text-align: center;
}
.section--cyan .pullquote { background: #fff; }
.pullquote__mark { display: block; color: var(--cyan); margin-bottom: 10px; }
.pullquote__mark svg { margin-inline: auto; }
.pullquote__text { margin: 0 0 22px; }
.pullquote__text p { margin: 0; font-size: clamp(1.1rem, 2.1vw, 1.42rem); line-height: 1.55; color: var(--navy); font-weight: 600; }
.pullquote__by { display: flex; flex-direction: column; gap: 3px; }
.pullquote__by strong { color: var(--navy); }
.pullquote__by span { font-size: .85rem; color: var(--slate-500); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__item { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.gallery__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover .gallery__img { transform: scale(1.05); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 18px 14px;
  font-size: .84rem; color: #fff;
  background: linear-gradient(transparent, rgba(3, 32, 77, .82));
}

/* marquee */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__heading { text-align: center; margin-bottom: 22px; }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; gap: 16px; margin: 0; padding-right: 16px; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: .95rem; font-weight: 600; color: var(--navy);
  white-space: nowrap;
}
.marquee__item svg { color: var(--teal); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* inline cta */
.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 46px 48px;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--navy-900), var(--navy) 55%, var(--teal-700));
  color: #fff;
  box-shadow: var(--sh-lg);
}
.inline-cta__text h2 { color: #fff; margin-bottom: .35em; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.inline-cta__text p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 62ch; }
.inline-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.chips--tight { margin-top: 6px; }
.chips__item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: .86rem; font-weight: 600; color: var(--navy);
}
.chips__item svg { color: var(--teal-800); flex: none; }
.chips__item a { display: inline-flex; align-items: center; gap: 8px; color: inherit; }

/* -------------------------------------------------------- 11. Dynamic blocks */
/* services grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.svc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.svc-card {
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--sh-xs);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.svc-card:hover { transform: translateY(-7px); box-shadow: var(--sh-lg); border-color: transparent; }
.svc-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.svc-card__media { display: block; position: relative; overflow: hidden; }
.svc-card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .7s var(--ease); }
.svc-card:hover .svc-card__img { transform: scale(1.06); }
.svc-card__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 30px 28px 28px; }
.svc-card__ico {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin: -56px 0 16px;
  border-radius: 15px;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--sh-sm);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.svc-card:hover .svc-card__ico { background: var(--navy); color: #fff; }
.svc-card__title { display: block; font-size: 1.16rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; letter-spacing: -.01em; }
.svc-card__text { display: block; font-size: .93rem; color: var(--fg-muted); flex: 1; }
.svc-card__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: .87rem; font-weight: 700; color: var(--blue-700); transition: gap .25s var(--ease); }
.svc-card:hover .svc-card__more { gap: 12px; }

/* trust bar */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; }
.trust__item {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.trust__item:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.trust__ico {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 13px;
  background: var(--cyan);
  color: var(--teal-800);
}
.trust__body { display: flex; flex-direction: column; gap: 4px; }
.trust__body strong { font-size: .98rem; color: var(--navy); }
.trust__body small { font-size: .84rem; color: var(--slate-500); line-height: 1.5; }

/* offer */
.offer {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.offer__left {
  padding: 52px 50px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy) 60%, #0760B4);
  color: rgba(255, 255, 255, .86);
}
.offer__title { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.15rem); margin-bottom: .3em; }
.offer__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 20px; }
.offer__price strong { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
.offer__price s { color: rgba(255, 255, 255, .55); font-size: 1.15rem; }
.offer__price span { color: rgba(255, 255, 255, .72); font-size: .92rem; }
.offer__copy { color: rgba(255, 255, 255, .82); }
.offer__right { padding: 52px 46px; background: var(--cyan); }
.offer__includes { font-size: 1.05rem; margin-bottom: 18px; }
.offer__fine { margin: 22px 0 0; font-size: .82rem; color: var(--slate-600); }

/* testimonials carousel */
.carousel { position: relative; }
.carousel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 6px 22px 22px; }
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel--js .carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; gap: 22px; margin: 0; }
.carousel--js .carousel__track { transition: transform .55s var(--ease); }
.carousel__slide { flex: 0 0 min(400px, 84vw); scroll-snap-align: start; }
.review {
  display: flex; flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.review__stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--line-strong); font-size: 1.05rem; letter-spacing: .05em; }
/* Amber on white is only 2:1 — too low even for a large glyph. #8F5A0B is a
   deep bronze that clears AA (5.8:1) while still reading as "gold". */
.review__stars .is-on { color: #8F5A0B; }
.review__text { flex: 1; margin: 0 0 22px; }
.review__text p { margin: 0; font-size: .97rem; color: var(--fg-muted); line-height: 1.65; }
.review__by { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.review__avatar {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: #fff; font-weight: 700;
}
.review__who { display: flex; flex-direction: column; min-width: 0; }
.review__who strong { font-size: .93rem; color: var(--navy); }
.review__who small { font-size: .78rem; color: var(--slate-500); }
.review__src { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: .78rem; color: var(--slate-500); flex: none; }
.carousel__bar { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 10px; }
.carousel__btn {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.carousel__btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }
.carousel__dots { display: flex; gap: 7px; }
.carousel__dots button {
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--line-strong);
  cursor: pointer;
  transition: width .3s var(--ease), background-color .3s var(--ease);
}
.carousel__dots button.is-active { width: 24px; border-radius: 99px; background: var(--teal); }

/* team */
.team-grid { display: grid; gap: 26px; }
.team-grid--3 { grid-template-columns: repeat(3, 1fr); }
.person { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.person:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.person__link { display: block; color: inherit; }
.person__media { display: block; overflow: hidden; background: var(--soft); }
.person__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 22%; transition: transform .7s var(--ease); }
.person:hover .person__img { transform: scale(1.05); }
.person__body { display: flex; flex-direction: column; padding: 24px 24px 26px; }
.person__name { font-size: 1.08rem; color: var(--navy); }
.person__name span { font-weight: 600; color: var(--slate-500); }
.person__role { display: block; font-size: .85rem; font-weight: 700; color: var(--teal-800); margin-bottom: 10px; }
.person__short { font-size: .9rem; color: var(--fg-muted); }

.team-full { display: grid; gap: 34px; }
.member {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  padding: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xs);
  scroll-margin-top: calc(var(--header-h) + 30px);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.member:hover { box-shadow: var(--sh); border-color: var(--line-strong); }
.member__media { border-radius: var(--r-lg); overflow: hidden; background: var(--soft); }
.member__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 22%; }
.member__initials {
  display: grid; place-items: center;
  width: 100%; aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--navy), var(--teal-700));
  color: #fff; font-size: 3.6rem; font-weight: 800; letter-spacing: -.03em;
}
.member__eyebrow { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-800); }
.member__name { margin-bottom: .5em; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.member__bio { color: var(--fg-muted); font-size: .98rem; }
.member__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 22px 0 20px; }
.member__sub { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 12px; }
.member__facts { display: grid; gap: 12px; margin: 0; }
.member__facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 2px; }
.member__facts dd { margin: 0; font-size: .92rem; color: var(--navy); font-weight: 600; }
.member__fun {
  display: flex; gap: 10px;
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: var(--r);
  background: var(--cyan);
  font-size: .88rem; color: var(--navy);
}
.member__fun svg { flex: none; margin-top: 3px; color: var(--teal-800); }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-grid--wide { grid-template-columns: repeat(3, 1fr); }
.post-card { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .3s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.post-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.post-card__media { display: block; position: relative; overflow: hidden; }
.post-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-card__img { transform: scale(1.06); }
.post-card__cat {
  position: absolute; top: 14px; left: 14px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .95);
  color: var(--navy);
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.post-card__meta { font-size: .78rem; color: var(--slate-500); margin-bottom: 10px; }
.post-card__title { font-size: 1.1rem; font-weight: 800; color: var(--navy); line-height: 1.32; margin-bottom: 10px; }
.post-card__excerpt { font-size: .91rem; color: var(--fg-muted); flex: 1; }
.post-card__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: .86rem; font-weight: 700; color: var(--blue-700); transition: gap .25s var(--ease); }
.post-card:hover .post-card__more { gap: 12px; }
.post-card.is-hidden { display: none; }

.filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.filter__label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); }
.filter__list { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; }
.filter__btn {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--navy);
  font-size: .86rem; font-weight: 600;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.filter__btn:hover { border-color: var(--blue-700); color: var(--blue-700); }
.filter__btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter__count { margin-left: auto; font-size: .84rem; color: var(--slate-500); }

/* byline / author / toc / share */
.byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.byline__avatar, .author-box__avatar {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.byline__who { display: flex; flex-direction: column; }
.byline__who strong { color: var(--navy); }
.byline__who small { font-size: .82rem; color: var(--slate-500); }
.byline__meta { margin-left: auto; font-size: .84rem; color: var(--slate-500); }

.toc { margin-top: 26px; padding: 26px 28px; border-radius: var(--r-lg); background: var(--soft); border: 1px solid var(--line); }
.toc__label { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.toc__label svg { color: var(--teal-800); }
.toc__list { display: grid; gap: 9px; margin: 0; counter-reset: toc; }
.toc__list li { counter-increment: toc; }
.toc__list a { display: flex; gap: 12px; font-size: .94rem; color: var(--slate-600); }
.toc__list a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--teal); flex: none; }
.toc__list a:hover { color: var(--blue-700); }

.author-box {
  display: flex; gap: 22px;
  padding: 32px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.author-box__avatar { width: 64px; height: 64px; font-size: 1.5rem; background: linear-gradient(135deg, var(--navy), var(--teal-700)); }
.author-box__label { margin: 0 0 2px; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-800); }
.author-box__name { margin-bottom: 2px; font-size: 1.3rem; }
.author-box__role { margin: 0 0 12px; font-size: .88rem; color: var(--slate-500); }
.author-box__text { font-size: .94rem; color: var(--fg-muted); }
.author-box .btn { margin-top: 6px; }

.share { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.share__label { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); }
.share__list { display: flex; gap: 9px; margin: 0; }
.share__btn {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: #fff; color: var(--navy);
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.share__btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }

/* cta band */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 90px 0;
  background: var(--navy-900);
  color: #fff;
}
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(3, 32, 77, .95) 0%, rgba(6, 59, 140, .85) 46%, rgba(8, 168, 184, .55) 100%); }
.cta-band__inner { display: grid; grid-template-columns: 1.35fr .65fr; gap: 56px; align-items: center; }
.cta-band__title { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .4em; }
.cta-band__copy { color: rgba(255, 255, 255, .84); max-width: 58ch; }
.cta-band__points { display: grid; gap: 10px; margin: 22px 0 0; }
.cta-band__points li { display: flex; gap: 11px; align-items: center; font-size: .93rem; color: rgba(255, 255, 255, .86); }
.cta-band__points svg { color: var(--teal); flex: none; }
.cta-band__card {
  padding: 32px 30px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  display: grid; gap: 12px;
}
.cta-band__card-eyebrow { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.cta-band__card-note { display: flex; gap: 9px; align-items: flex-start; margin: 0; font-size: .84rem; color: rgba(255, 255, 255, .78); }
.cta-band__card-note svg { flex: none; margin-top: 2px; color: var(--teal); }
.cta-band__card-note a { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------- 12. Forms */
.book { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.book__intro p { color: var(--fg-muted); }
.book__alt { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.book__alt p { margin: 0 8px 0 0; }
.book__form-wrap { padding: 38px 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .86rem; font-weight: 700; color: var(--navy); }
.field label span[aria-hidden] { color: var(--teal-800); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r);
  background: #fff;
  font: inherit;
  font-size: .96rem;
  color: var(--slate);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172B4D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(8, 120, 217, .14);
}
.field--error input, .field--error select, .field--error textarea { border-color: #D14343; background: #FFF7F7; }
.field__err { margin: 0; font-size: .82rem; font-weight: 600; color: #C0392B; }
.field--check { margin-top: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .89rem; font-weight: 500; color: var(--slate-600); line-height: 1.55; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue-700); }
.form__note { display: flex; gap: 9px; margin: 4px 0 0; font-size: .8rem; color: var(--slate-500); }
.form__note svg { flex: none; margin-top: 3px; color: var(--teal-800); }

.alert { display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--r); margin-bottom: 20px; }
.alert__ico { flex: none; }
.alert strong { display: block; margin-bottom: 4px; }
.alert p { margin: 0; font-size: .9rem; }
.alert--success { background: #EDFBF4; border: 1px solid #A9E3C6; color: #14603C; }
.alert--success .alert__ico { color: #1B9C63; }
.alert--error { background: #FFF3F3; border: 1px solid #F3BFBF; color: #8C2A2A; }
.alert--error .alert__ico { color: #C0392B; }

.search-form {
  position: relative;
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: 26px;
}
.search-form__ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--slate-500); pointer-events: none; }
.search-form input {
  flex: 1;
  padding: 16px 18px 16px 50px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: inherit;
  font-size: .97rem;
}
.search-form input::placeholder { color: rgba(255, 255, 255, .55); }
.search-form input:focus { outline: none; border-color: var(--teal); background: rgba(255, 255, 255, .18); }

/* results / empty / lost */
.results { display: grid; gap: 18px; margin: 0; }
.result { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.result:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: transparent; }
.result__link { display: block; padding: 26px 28px; color: inherit; }
.result__type { display: inline-block; margin-bottom: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-800); }
.result__title { font-size: 1.16rem; margin-bottom: .35em; }
.result__text { font-size: .93rem; color: var(--fg-muted); margin-bottom: 12px; }
.result__more { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 700; color: var(--blue-700); }

.empty { text-align: center; padding: 60px 30px; border-radius: var(--r-xl); background: var(--soft); border: 1px dashed var(--line-strong); }
.empty--tight { padding: 26px 24px; margin-top: 44px; }
.empty__ico { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%; background: #fff; color: var(--teal-800); }
.empty h2 { font-size: 1.4rem; }
.empty p { color: var(--fg-muted); max-width: 56ch; margin-inline: auto; }
.empty__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.popular .chips { margin-top: 20px; }

.lost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lost { display: block; padding: 30px 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.lost:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: transparent; color: inherit; }
.lost__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 15px; background: var(--cyan); color: var(--teal-800); }
.lost h2 { font-size: 1.1rem; margin-bottom: .35em; }
.lost p { margin: 0; font-size: .9rem; color: var(--fg-muted); }

/* sitemap */
.sitemap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; }
.sitemap__col { padding: 28px 26px; border-radius: var(--r-lg); background: var(--gray); border: 1px solid var(--line); }
.sitemap__title { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: 18px; }
.sitemap__title svg { color: var(--teal-800); }
.sitemap__list { display: grid; gap: 9px; margin: 0; }
.sitemap__list a { font-size: .93rem; color: var(--slate-600); }
.sitemap__list a:hover { color: var(--blue-700); }
.sitemap__list--plain li { font-size: .93rem; color: var(--slate-600); }
.sitemap__xml { margin: 18px 0 0; }
.sitemap__xml a { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; }

/* ----------------------------------------------------------------- 13. Footer */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--navy-900) 0%, #041B41 100%);
  color: rgba(255, 255, 255, .72);
  padding-top: 76px;
  overflow: hidden;
}
.footer__glow {
  position: absolute; top: -180px; right: -140px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 168, 184, .28), transparent 68%);
  pointer-events: none;
}
.footer__main {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 2.4fr;
  gap: 62px;
  padding-bottom: 54px;
}
.footer__logo { display: inline-block; padding: 14px 20px; background: #fff; border-radius: var(--r); margin-bottom: 22px; }
.footer__logo img { width: 190px; height: auto; }
.footer__about { font-size: .92rem; line-height: 1.7; color: rgba(255, 255, 255, .74); }
.footer__ratings { display: grid; gap: 12px; margin: 24px 0; }
.footer__rating { display: flex; gap: 12px; align-items: center; }
.footer__rating-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: rgba(255, 255, 255, .1); color: #fff; }
.footer__rating strong { display: block; font-size: .95rem; color: #fff; }
.footer__stars { color: #F2A93B; letter-spacing: .06em; }
.footer__rating small { font-size: .78rem; color: rgba(255, 255, 255, .6); }
.footer__socials { display: flex; gap: 9px; margin: 0; }
.footer__socials a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background-color .22s var(--ease), transform .22s var(--ease);
}
.footer__socials a:hover { background: var(--teal); transform: translateY(-3px); }

.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.footer__title { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__subtitle { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin: 22px 0 12px; }
.footer__links { display: grid; gap: 10px; margin: 0; }
.footer__links a { font-size: .92rem; color: rgba(255, 255, 255, .72); }
.footer__links a:hover { color: #fff; padding-left: 4px; transition: padding-left .2s var(--ease); }
.footer__address { display: grid; gap: 13px; margin: 0; }
.footer__address a { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; color: rgba(255, 255, 255, .74); }
.footer__address a:hover { color: #fff; }
.footer__address svg { flex: none; margin-top: 4px; color: var(--teal); }
.footer__hours { display: grid; gap: 8px; margin: 0; }
.footer__hours li { display: flex; justify-content: space-between; gap: 14px; font-size: .88rem; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__hours span { color: rgba(255, 255, 255, .62); }
.footer__hours strong { color: #fff; font-weight: 600; }

.footer__cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 40px 44px;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, rgba(8, 168, 184, .22), rgba(8, 120, 217, .16));
  border: 1px solid rgba(255, 255, 255, .16);
}
.footer__cta-text h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.85rem); margin-bottom: .3em; }
.footer__cta-text p { margin: 0; font-size: .94rem; color: rgba(255, 255, 255, .74); max-width: 62ch; }
.footer__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.footer__areas { margin-top: 44px; }
.footer__areas-list { font-size: .86rem; line-height: 1.9; color: rgba(255, 255, 255, .68); margin: 0; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px;
  margin-top: 40px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer__copy { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .62); }
.footer__licence { display: block; font-size: .78rem; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.footer__legal a { font-size: .85rem; color: rgba(255, 255, 255, .68); }
.footer__legal a:hover { color: #fff; }
.footer__credit { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .62); }
.footer__credit a { color: var(--cyan); font-weight: 700; }
.footer__credit a:hover { color: #fff; text-decoration: underline; }
/* The heart sits between the prefix and the studio name. It is a filled glyph
   that inherits `currentColor`, so it is tinted here rather than in the markup.
   `vertical-align` + a negative nudge keeps it optically centred on the text
   baseline — `inline` alone would sit it on the baseline and ride high. */
.footer__credit-love {
  display: inline-block;
  margin: 0 4px 0 1px;
  color: #FF6B81;
  vertical-align: -0.16em;
  line-height: 0;
}
.footer__credit-love svg { display: block; }
.footer__disclaimer {
  margin: 0 0 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .78rem;
  line-height: 1.75;
  /* Was .38 — 3.4:1 on the footer navy. .6 clears AA for this small size
     while staying visibly secondary to the body copy. */
  color: rgba(255, 255, 255, .6);
}

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s, background-color .22s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--blue); }

/* --------------------------------------------------------------- 14. Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 200;
  padding: 14px 22px;
  background: var(--navy); color: #fff;
  border-radius: 0 0 var(--r) var(--r);
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------- 15. Animation */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Hidden state is gated behind html.js — without JS everything stays visible. */
.js .reveal { opacity: 0; }
.js .reveal.is-visible {
  opacity: 1;
  animation: revealUp .7s var(--ease) var(--d, 0ms) both;
}
/* Once the animation ends we drop it, otherwise `both` keeps overriding hover transforms. */
.js .reveal.is-done { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; animation: none !important; }
  .marquee__track { animation: none !important; }
  .btn:hover, .card:hover, .svc-card:hover, .post-card:hover, .person:hover,
  .quick__link:hover .quick__ico, .lost:hover, .result:hover, .trust__item:hover { transform: none !important; }
}

/* --------------------------------------------------------------- 16. Responsive */
@media (max-width: 1240px) {
  .header__phone-text { display: none; }
}

@media (max-width: 1200px) {
  :root { --container: 1060px; }
  .nav__link { padding: 12px 9px; font-size: .87rem; }
  .footer__main { grid-template-columns: 1fr; gap: 44px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 1080px) {
  .header__phone-ico { width: 44px; height: 44px; }
  .split { gap: 44px; }
  .split__media::after { inset: 16px -16px -16px 16px; }
  .cta-band__inner { grid-template-columns: 1fr; gap: 40px; }
  .book { grid-template-columns: 1fr; gap: 40px; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .member { grid-template-columns: 240px 1fr; gap: 32px; padding: 30px; }
  .sitemap { grid-template-columns: repeat(2, 1fr); }
}

/* ---- mobile navigation takes over ---- */
@media (max-width: 1060px) {
  .burger { display: grid; }
  .header__cta { display: none; }

  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: auto;
    display: flex;
    flex-direction: column;
    width: min(376px, 90vw);
    margin: 0;
    background: #fff;
    box-shadow: -20px 0 60px -20px rgba(3, 32, 77, .4);
    transform: translateX(102%);
    transition: transform .34s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
    z-index: 1;
  }
  .nav.is-open { transform: translateX(0); }

  .nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    flex: none;
  }
  .nav__logo { width: 150px; height: auto; }
  .nav__close {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 1.5px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
  }

  .nav__body { flex: 1; overflow-y: auto; padding: 12px 16px 24px; }
  .nav__list { display: block; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__item:last-child { border-bottom: 0; }
  .nav__row { display: flex; align-items: center; justify-content: space-between; }
  .nav__link { flex: 1; padding: 16px 6px; font-size: 1rem; border-radius: 0; background: none !important; }
  .nav__link.is-active { color: var(--blue-700); }
  .nav__sub-toggle {
    pointer-events: auto;
    width: 44px; height: 44px;
    color: var(--navy);
  }
  .nav__item--has-menu:hover .nav__sub-toggle { transform: none; }
  .nav__item--has-menu.is-open .nav__sub-toggle { transform: rotate(180deg); }

  /* dropdown becomes an in-flow accordion */
  .dropdown,
  .dropdown--mega {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 14px 14px;
    margin: 0 0 4px;
    border: 0;
    border-left: 2px solid var(--cyan);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    transition: none;
  }
  .dropdown.is-open { display: block; }
  .dropdown::after { display: none; }
  .dropdown__label { display: none; }
  .dropdown__list, .dropdown__list--mega { grid-template-columns: 1fr; gap: 0; }
  .dropdown__link { padding: 12px 8px; }
  .dropdown__ico { width: 34px; height: 34px; }
  .dropdown__text small { display: none; }
  .dropdown__all { margin: 6px 8px 0; }

  .nav__label {
    display: block;
    margin: 26px 0 12px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal-800);
  }
  .nav__info { display: block; }
  .nav__info-list { display: grid; gap: 12px; margin: 0; }
  .nav__info-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; color: var(--slate-600); }
  .nav__info-list svg { flex: none; margin-top: 3px; color: var(--teal-800); }
  .nav__info-list a { color: var(--slate-600); }
  .nav__info-list a:hover { color: var(--blue-700); }
  .nav__socials { display: flex; gap: 9px; margin: 22px 0 0; }
  .nav__socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--navy); }
  .nav__socials a:hover { background: var(--navy); color: #fff; }

  .nav__actions {
    display: grid;
    gap: 10px;
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--gray);
    flex: none;
  }

  /* hero + layout shifts */
  .hero__inner { padding-block: 72px 150px; }
  .hero__img { object-position: 66% 26%; }
  .quick { grid-template-columns: 1fr; }
  .quick__item + .quick__item { border-left: 0; border-top: 1px solid var(--line); }
  .quick__link { padding: 22px 24px; }

  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .svc-grid--2, .svc-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .post-grid, .post-grid--wide { grid-template-columns: repeat(2, 1fr); }
  .team-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .offer { grid-template-columns: 1fr; }
  .member { grid-template-columns: 1fr; gap: 26px; }
  .member__media { max-width: 300px; }
  .lost-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 76px 0; }
}

@media (max-width: 1400px) {
  .topbar__list li.topbar__hide-lg { display: none; }
}

@media (max-width: 1150px) {
  .topbar__list li.topbar__hide-md { display: none; }
}

@media (max-width: 900px) {
  .topbar__list li.topbar__hide-sm { display: none; }
}

@media (max-width: 700px) {
  .topbar__list li.topbar__hide-xs { display: none; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 38px; }
  .split--reverse .split__media { order: 0; }
  .split__media::after { inset: 14px -14px -14px 14px; }
  .split--reverse .split__media::after { inset: 14px 14px -14px -14px; }
  .checklist--2, .checklist--3 { grid-template-columns: 1fr; }
  .cards--2, .cards--3 { grid-template-columns: 1fr; }
  .member__cols { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cta { padding: 32px 28px; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; --gutter: 18px; }
  body { font-size: 16px; }

  .topbar__inner { justify-content: space-between; }
  .topbar__list--right { margin-left: auto; }

  .brand__logo { width: 148px; }
  .hero__inner { padding-block: 56px 140px; }
  .hero__title { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .page-hero__inner { padding-block: 40px 56px; }
  .page-hero__actions { flex-direction: column; align-items: stretch; }
  .page-hero__actions .btn { width: 100%; }
  .page-hero__stats { gap: 16px 30px; }
  .page-hero__stats strong { font-size: 1.45rem; }

  .section { padding: 60px 0; }
  .section--tight { padding: 32px 0; }
  .section__head { margin-bottom: 36px; }

  .svc-grid, .svc-grid--2, .svc-grid--3 { grid-template-columns: 1fr; }
  .post-grid, .post-grid--wide { grid-template-columns: 1fr; }
  .team-grid--3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .lost-grid { grid-template-columns: 1fr; }
  .sitemap { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }

  .form__row { grid-template-columns: 1fr; }
  .book__form-wrap { padding: 26px 22px; }
  .inline-cta { padding: 34px 26px; }
  .offer__left, .offer__right { padding: 36px 26px; }
  .pullquote { padding: 34px 24px; }
  .author-box { flex-direction: column; gap: 16px; padding: 26px 22px; }
  .byline__meta { margin-left: 0; width: 100%; }
  .carousel__viewport { padding: 6px 18px 18px; }
  .carousel__slide { flex-basis: min(340px, 86vw); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px 8px; }
  .step { gap: 18px; }
  .step__num { width: 48px; font-size: 1.5rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer__cta-actions { width: 100%; }
  .footer__cta-actions .btn { width: 100%; }
  .search-form { flex-direction: column; }
  .search-form .btn { width: 100%; }
  .table thead th, .table tbody th, .table tbody td { padding: 14px 16px; }
}

@media (max-width: 480px) {
  .header__phone { display: none; }
  .quick__ico { width: 46px; height: 46px; }
  .hero__points { gap: 8px 16px; }
  .stats { grid-template-columns: 1fr; }
  .to-top { right: 16px; bottom: 16px; }
  .member { padding: 24px 20px; }
  .nav { width: 100%; }
}

/* ==========================================================================
   17. Mobile refinement
   Addresses the issues found by scripts/audit-mobile.js:
     • pages were 20–34 screens tall (content is now 700–900 words, this layer
       removes the remaining vertical fat)
     • tables forced horizontal scrolling
     • the hero consumed 93% of the viewport
     • 20–27 interactive elements per page were under the 44px target size
   ========================================================================== */

/* ---- 17a. Hero: get content above the fold ------------------------------ */
@media (max-width: 760px) {
  .hero__inner { padding-block: 42px 108px; }
  .hero__title { font-size: clamp(1.9rem, 7.4vw, 2.3rem); line-height: 1.1; }
  .hero__intro { font-size: 1rem; line-height: 1.6; margin-bottom: 22px; }
  .hero__actions { margin-bottom: 24px; gap: 10px; }
  .hero__points { gap: 6px 18px; }
  .hero__points li { font-size: .82rem; }
  .hero__quick { margin-top: -74px; }
  .quick__link { padding: 20px 22px; gap: 14px; }
  .quick__ico { width: 44px; height: 44px; border-radius: 13px; }

  .page-hero__inner { padding-block: 32px 44px; }
  .page-hero__meta { gap: 8px 20px; margin-bottom: 20px; }
  .page-hero__meta li { font-size: .84rem; }
  .page-hero__stats { margin-top: 28px; padding-top: 22px; gap: 14px 26px; }
  .page-hero__stats strong { font-size: 1.35rem; }
  .breadcrumbs { margin-bottom: 16px; }
  .breadcrumbs a { min-height: 34px; display: inline-flex; align-items: center; }
}

@media (max-width: 560px) {
  /* Three hero bullets wrap to three lines on a small phone — the trust bar
     directly below carries the same message. */
  .hero__points { display: none; }
  .hero__inner { padding-bottom: 100px; }
}

/* ---- 17b. Tables become stacked cards ----------------------------------- */
@media (max-width: 720px) {
  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .table { min-width: 0; display: block; font-size: .95rem; }
  .table thead { display: none; }
  .table tbody { display: block; }

  .table tbody tr {
    display: block;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--sh-xs);
    overflow: hidden;
  }
  .table tbody tr:last-child { margin-bottom: 0; }

  .table tbody th {
    display: block;
    width: auto;
    padding: 14px 18px;
    background: var(--navy);
    color: #fff;
    font-size: .98rem;
    border: 0;
  }

  .table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    text-align: right;
    background: transparent !important;
  }
  /* Column header carried through as a label on each stacked cell. */
  .table tbody td::before {
    content: attr(data-label);
    flex: 0 0 40%;
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--slate-500);
    padding-top: 3px;
  }
  .table tbody td:empty { display: none; }
  .table tbody tr:hover td { background: transparent; }
  .table__note { margin-top: 14px; }
}

/* ---- 17c. Touch targets (WCAG 2.2 target size) --------------------------- */
@media (max-width: 900px) {
  /* Navigation-style lists: full 44px rows */
  .footer__links a,
  .sitemap__list a,
  .nav__info-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  /* Footer link lists go two-up so the footer gets SHORTER while every row
     becomes a comfortable tap target. */
  .footer__links {
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }
  .footer__links a { border-bottom: 1px solid rgba(255, 255, 255, .07); }

  /* Contact / legal links */
  .footer__address a,
  .footer__legal a,
  .footer__credit a,
  .footer__hours li { min-height: 40px; }
  .footer__legal { gap: 0 22px; }
  .footer__legal a { display: inline-flex; align-items: center; }

  /* In-content links */
  .card__link,
  .post-card__more,
  .svc-card__more,
  .result__more,
  .toc__list a,
  .chips__item a,
  .dropdown__all {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
  .dropdown__link { min-height: 48px; align-items: center; }
  .filter__btn { min-height: 44px; }
  .share__btn { width: 44px; height: 44px; }
  .faq__q { min-height: 56px; }
  .btn { min-height: 48px; }
  .btn--lg { min-height: 54px; }
}

/* Carousel dots: 8px visual, ~28px hit area */
.carousel__dots button { position: relative; }
.carousel__dots button::after {
  content: '';
  position: absolute;
  inset: -10px -6px;
}

/* ---- 17d. Vertical rhythm: remove the mobile fat ------------------------ */
@media (max-width: 760px) {
  body { font-size: 17px; line-height: 1.62; }
  .prose p { font-size: 1rem; }
  .prose > p:first-of-type { font-size: 1.06rem; }
  .section__intro { font-size: 1rem; }
  h2 { font-size: clamp(1.45rem, 6.2vw, 1.9rem); }
  h3 { font-size: 1.12rem; }

  .section { padding: 48px 0; }
  .section--tight { padding: 26px 0; }
  .section__head { margin-bottom: 28px; }
  .section__foot { margin-top: 30px; }

  .cards { gap: 16px; }
  .card { padding: 26px 22px; }
  .card__ico { width: 50px; height: 50px; margin-bottom: 16px; border-radius: 14px; }
  .svc-grid, .post-grid { gap: 18px; }
  .svc-card__body { padding: 24px 22px 22px; }
  .trust { gap: 14px; }
  .trust__item { padding: 20px 18px; }
  .stats { gap: 10px; }
  .stat { padding: 14px 8px; }
  .step { padding: 22px 0; gap: 16px; }
  .timeline__item { padding-bottom: 26px; }
  .split { gap: 30px; }
  .gallery { gap: 14px; }
  .faq__q { padding: 16px 20px; font-size: 1rem; }
  .faq__a { padding: 0 20px 18px; }
  .pullquote { padding: 28px 22px; }
  .pullquote__text p { font-size: 1.12rem; }
  .inline-cta { padding: 30px 24px; gap: 22px; }
  .offer__left, .offer__right { padding: 30px 24px; }
  .offer__includes { margin-bottom: 14px; }
  .member { padding: 22px 18px; gap: 20px; }
  .team-full { gap: 20px; }
  .book__form-wrap { padding: 24px 20px; }
  .book__intro { margin-bottom: 4px; }
  .author-box { padding: 24px 20px; }
  .cta-band { padding: 56px 0; }
  .cta-band__card { padding: 26px 22px; }
  .footer__cta { padding: 28px 24px; }
  .footer__glow { width: 320px; height: 320px; top: -120px; right: -120px; }
  .site-footer { padding-top: 56px; }
  .footer__main { gap: 34px; padding-bottom: 40px; }
  .footer__areas { margin-top: 34px; }
  .footer__areas-list { font-size: .82rem; line-height: 1.7; }
  .sitemap { gap: 18px; }
  .sitemap__col { padding: 22px 20px; }
  .lost-grid { gap: 14px; }
  .lost { padding: 24px 20px; }
  .marquee__item { padding: 12px 20px; font-size: .88rem; }
}

@media (max-width: 480px) {
  .section { padding: 42px 0; }
  .quick__link { padding: 18px 18px; }
  .footer__links { grid-template-columns: 1fr; }
  .cta-band__points li { font-size: .88rem; }
}

/* ---- 17e. Card grids become compact list rows --------------------------- */
/* A 6-card service grid rendered as stacked cards costs ~2.9 phone screens on
   its own. Turning each card into a row (thumbnail + copy) cuts that to ~0.9
   while keeping every link and label. */
@media (max-width: 700px) {
  .svc-grid, .svc-grid--2, .svc-grid--3 { gap: 12px; }

  .svc-card__link { flex-direction: row; align-items: stretch; }
  .svc-card__media { flex: 0 0 104px; }
  .svc-card__img { aspect-ratio: 1 / 1; height: 100%; }
  .svc-card__body { padding: 15px 16px 15px 16px; }
  .svc-card__ico {
    width: 34px; height: 34px;
    margin: 0 0 7px;
    border-radius: 10px;
    background: var(--soft);
    box-shadow: none;
  }
  .svc-card__ico svg { width: 18px; height: 18px; }
  .svc-card:hover .svc-card__ico { background: var(--navy); color: #fff; }
  .svc-card__title { font-size: 1rem; margin-bottom: 3px; }
  .svc-card__text { font-size: .85rem; line-height: 1.5; }
  .svc-card__more { margin-top: 7px; font-size: .8rem; }

  .post-grid, .post-grid--wide { gap: 12px; }
  .post-card__link { flex-direction: row; align-items: stretch; }
  .post-card__media { flex: 0 0 112px; }
  .post-card__img { aspect-ratio: 1 / 1; height: 100%; }
  .post-card__cat { top: 7px; left: 7px; padding: 4px 9px; font-size: .58rem; letter-spacing: .04em; }
  .post-card__body { padding: 14px 15px; }
  .post-card__meta { font-size: .72rem; margin-bottom: 5px; }
  .post-card__title { font-size: .98rem; line-height: 1.3; margin-bottom: 6px; }
  .post-card__excerpt {
    font-size: .84rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .post-card__more { margin-top: 8px; font-size: .8rem; }

  .filter { margin-bottom: 22px; padding-bottom: 18px; }
  .filter__count { margin-left: 0; flex-basis: 100%; }
}

/* ---- 17f. Team profiles: compact round avatar --------------------------- */
@media (max-width: 760px) {
  .member { grid-template-columns: 1fr; gap: 14px; padding: 22px 18px; }
  .member__media { max-width: 108px; border-radius: 50%; }
  .member__img { border-radius: 50%; }
  .member__initials { font-size: 1.9rem; }
  .member__name { font-size: 1.25rem; margin-bottom: .35em; }
  .member__bio { font-size: .94rem; }
  .member__cols { gap: 18px; margin: 16px 0 14px; }
  .member__fun { padding: 12px 15px; font-size: .85rem; margin-bottom: 16px; }
  .person__img { object-position: 50% 18%; }
}

/* ---- 17g. Stats stay two-up on small phones ----------------------------- */
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 12px 6px; }
  .stat__value { font-size: 1.7rem; }
  .stat__label { font-size: .8rem; margin-top: 4px; }
}

/* ---- 17h. Small-screen legibility + topbar tap area --------------------- */
@media (max-width: 760px) {
  .eyebrow { font-size: .82rem; margin-bottom: 10px; }
  .eyebrow::before { width: 20px; }
  .topbar__list a,
  .topbar__list > li > span { min-height: 42px; }
  .topbar__socials a { width: 34px; height: 34px; }
  .to-top { width: 46px; height: 46px; }
}

/* ---- 17i. Sticky mobile action bar ------------------------------------- */
.mobile-bar { display: none; }

@media (max-width: 760px) {
  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 26px -14px rgba(6, 59, 140, .38);
    transform: translateY(110%);
    transition: transform .32s var(--ease);
  }
  .mobile-bar[hidden] { display: grid; }        /* keep layout, animate instead */
  .mobile-bar.is-visible { transform: translateY(0); }

  .mobile-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 14px;
    border-radius: var(--r-pill);
    font-size: .92rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .mobile-bar__btn svg { flex: none; }
  .mobile-bar__btn--call {
    background: var(--soft);
    color: var(--navy);
    border: 1.5px solid var(--line-strong);
  }
  .mobile-bar__btn--book {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(8, 120, 217, .8);
  }
  .mobile-bar__btn--book:hover { color: #fff; }

  /* Keep the last of the footer clear of the fixed bar */
  .site-footer { padding-bottom: 82px; }
  /* Lift back-to-top above the bar */
  .to-top { bottom: 84px; }
}

@media (max-width: 380px) {
  .mobile-bar { grid-template-columns: 1fr 1fr; }
  .mobile-bar__btn { font-size: .84rem; padding: 0 10px; }
}



