/* CMS Web Solutions — Direction B "The Monogram"
   v0.3 — hero slider, transparent header over slider, fullscreen overlay menu,
   four-pillar service grid.
   Lean, consultancy-grade, trusted-advisor.
   Single CSS file — no preprocessor, no build step. */

/* ─── Tokens ─────────────────────────────────────────────────── */

:root {
  --c-navy: #0A1F3D;
  --c-red: #C8102E;
  --c-paper: #FAF7F2;
  --c-paper-deep: #F0EEE9;
  --c-ink: #14181F;
  --c-line: rgba(10, 31, 61, 0.12);
  --c-line-strong: rgba(10, 31, 61, 0.24);
  --c-muted: rgba(10, 31, 61, 0.62);

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --container: 1240px;
  --gutter: 32px;
  --header-h: 84px;
}

/* ─── Base ───────────────────────────────────────────────────── */

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

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-navy);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Logo — V6.4a (lowercase cms + oversized red period) ──── */

.cms-logo { display: inline-flex; }

/* The cms. wordmark.
   Per V6.4a spec: Newsreader 500 lowercase, with the period rendered
   at ~1.355× of the cms letters' font-size (period dominates as the
   eye-catching element). */
.cms-mono {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-mono-serif);
  font-weight: 500;
  line-height: 1;
  color: var(--c-navy);
  letter-spacing: -0.034em;
}
.cms-mono__cms { /* inherits everything from .cms-mono */ }
.cms-mono__dot {
  color: var(--c-red);
  font-size: 1.355em;
  line-height: 0.95;
  letter-spacing: 0;
  margin-left: -0.01em;
}

/* Stacked primary lockup. cms. at ~140px, descriptor sized to anchor
   the mark (19px, tracked 6, just 10px gap beneath). */
.cms-logo--stacked { flex-direction: column; align-items: center; }
.cms-logo--stacked .cms-mono { font-size: 140px; }
.cms-logo--stacked .cms-desc {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--c-navy);
  line-height: 1;
  white-space: nowrap;
}

/* Horizontal lockup. cms. at 38px on desktop (mobile collapses to the
   monogram only via the 720px media query). Period renders ~52px tall. */
.cms-logo--horizontal { align-items: baseline; gap: 18px; }
.cms-logo--horizontal .cms-mono { font-size: 38px; }
.cms-logo--horizontal .cms-rule {
  display: block;
  width: 1px;
  height: 30px;
  background: var(--c-navy);
  opacity: 0.28;
  align-self: center;
  margin: 0 4px;
}
.cms-logo--horizontal .cms-desc {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--c-navy);
  line-height: 1;
  white-space: nowrap;
}

.cms-logo--reversed .cms-mono__cms,
.cms-logo--reversed .cms-desc { color: #fff; }
.cms-logo--reversed .cms-mono__dot { color: var(--c-red); }
.cms-logo--reversed .cms-rule { background: #fff; opacity: 0.36; }

/* ─── Brand full-stop ────────────────────────────────────────
   The logo's oversized red period, reused as a punctuation
   signature on headlines across the site. line-height:0 keeps the
   enlarged glyph from stretching the heading's line box. */
.cms-brand-dot,
.promise__dot,
.pillars__dot,
.approach__dot,
.service-cta__dot,
.overlay-menu__heading-dot,
.site-footer__mission-dot {
  color: var(--c-red);
  font-size: 1.4em;
  line-height: 0;
}
.pillars__dot { margin-left: -0.03em; }

/* Brand full-stop appended to label-style page-title headings (no
   trailing period in the title text). Blog-post and card titles are
   deliberately excluded — they can end in their own punctuation. */
.service-hero__title::after,
.about-hero__title::after,
.insights-hero__title::after,
.enquiry__title::after,
.booking__title::after {
  content: ".";
  color: var(--c-red);
  font-size: 1.5em;
  line-height: 0;
}

/* ─── Site header ───────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 31, 61, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.25s ease;
  color: #fff;
}
/* Over the hero slider on the front page, header is transparent until scroll */
body.has-hero-slider .site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.has-hero-slider .site-header--scrolled {
  background: rgba(10, 31, 61, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: 24px;
}
.site-header__brand { text-decoration: none; flex: 0 0 auto; }

/* Hamburger toggle — deliberately oversized so it anchors the right edge of the header */
.menu-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 14px;
  margin: 0;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.18s ease;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle:hover { background: rgba(255, 255, 255, 0.14); }
.menu-toggle svg { display: block; }

/* Animated hamburger: three bars that morph into an X when the menu opens. */
.menu-toggle__box {
  position: relative;
  display: block;
  width: 30px;
  height: 18px;
}
.menu-toggle__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.34s cubic-bezier(0.65, 0.05, 0.36, 1), opacity 0.18s ease;
}
.menu-toggle__bar:nth-child(1) { top: 0; }
.menu-toggle__bar:nth-child(2) { top: 50%; margin-top: -1.5px; }
.menu-toggle__bar:nth-child(3) { top: 100%; margin-top: -3px; }
/* Open state — top & bottom bars slide to the centre line and cross; middle fades. */
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}
@media (prefers-reduced-motion: reduce) {
  .menu-toggle__bar { transition: opacity 0.18s ease; }
}

/* While the menu is open, lift the header (so the morphing X shows over the
   overlay) and quiet everything else in it — the X becomes the close control. */
body.menu-open .site-header,
body.menu-open .site-header--scrolled {
  z-index: 120;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.menu-open .site-header__brand,
body.menu-open .site-header__actions > :not(.menu-toggle) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
body.menu-open .site-header__actions .site-header__icon + .menu-toggle::before { display: none; }
/* The hamburger now closes the menu, so the overlay's own close button is redundant. */
body.menu-open .overlay-menu__close { display: none; }

/* Quick-contact icons (phone · email · LinkedIn) + hamburger, grouped right */
.site-header__actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.site-header__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: rgba(255, 255, 255, 0.74);
  transition: background 0.18s ease, color 0.18s ease;
}
.site-header__icon:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.site-header__icon svg { display: block; }
/* Hairline divider between the contact icons and the menu button */
.site-header__actions .menu-toggle { position: relative; margin-left: 8px; }
.site-header__actions .site-header__icon + .menu-toggle::before {
  content: ''; position: absolute; left: -4px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 22px; background: rgba(255, 255, 255, 0.2);
}
@media (max-width: 420px) {
  .site-header__icon--linkedin { display: none; }
  .site-header__icon { width: 36px; height: 36px; }
}

/* ─── Overlay menu (fullscreen, all viewport sizes) ─────────── */

.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--c-navy);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0s linear 0.32s;
  overflow-y: auto;
}
.overlay-menu[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.32s ease, visibility 0s linear 0s;
}
.overlay-menu__close {
  position: fixed;
  top: 18px;
  right: var(--gutter);
  appearance: none;
  background: rgba(10, 31, 61, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 0;
  padding: 10px;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.18s ease;
  z-index: 2;
}
.overlay-menu__close:hover { background: rgba(255, 255, 255, 0.12); }
.overlay-menu__close svg { display: block; }

.overlay-menu__inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 3.4vh, 44px);
  padding: clamp(74px, 10vh, 104px) 24px 60px;
}
/* Menu logo — V6.4a horizontal lockup, scaled up for prominence. */
.overlay-menu__brand .cms-logo--horizontal { gap: 14px; }
.overlay-menu__brand .cms-logo--horizontal .cms-mono { font-size: clamp(46px, 8vw, 64px); }
.overlay-menu__brand .cms-logo--horizontal .cms-rule { height: 24px; }

.overlay-menu__heading {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #fff;
  text-align: center;
  margin: 0;
}
.overlay-menu__heading-dot { color: var(--c-red); }

/* ── Service gallery (Wemyss-style) ── */
.menu-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(12px, 1.4vw, 22px);
  width: 100%;
  max-width: 1120px;
}
.menu-gallery__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: #fff;
}
.menu-gallery__media {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}
.menu-gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) brightness(0.96);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
}
.menu-gallery__item:hover .menu-gallery__media img,
.menu-gallery__item:focus-visible .menu-gallery__media img {
  transform: scale(1.07);
  filter: saturate(1.04) brightness(1.02);
}
.menu-gallery__num {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 5px;
}
.menu-gallery__title {
  font-family: var(--font-serif);
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  transition: color 0.16s ease;
}
.menu-gallery__item:hover .menu-gallery__title,
.menu-gallery__item:focus-visible .menu-gallery__title { color: var(--c-red); }

/* ── Booking block (CTA + free / no-obligation reassurance) ── */
.menu-book {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.menu-book__eyebrow {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}
.menu-book__note {
  margin: 0;
  max-width: 34ch;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Primary CTA (Book a Meeting) ── */
.menu-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--c-red);
  color: #fff;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(200, 16, 46, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.menu-cta:hover,
.menu-cta:focus-visible {
  background: #d81832;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(200, 16, 46, 0.42);
}
.menu-cta__icon { flex: 0 0 auto; display: block; }
.menu-cta__main {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.menu-cta__arrow { font-size: 18px; line-height: 1; transition: transform 0.2s ease; }
.menu-cta:hover .menu-cta__arrow,
.menu-cta:focus-visible .menu-cta__arrow { transform: translateX(4px); }

/* ── Secondary links row ── */
.overlay-menu__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 34px;
}
.overlay-menu__links a {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.overlay-menu__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.overlay-menu__links a:hover,
.overlay-menu__links a:focus-visible { color: var(--c-red); border-color: transparent; }
.overlay-menu__links a:hover::after,
.overlay-menu__links a:focus-visible::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .overlay-menu__links a::after { transition: none; }
}

.overlay-menu__contact { text-align: center; }
.overlay-menu__contact-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.overlay-menu__contact-link {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-bottom-color 0.18s ease;
}
.overlay-menu__contact-link:hover { border-bottom-color: var(--c-red); }
.overlay-menu__contact-link--phone {
  font-size: 17px;
  opacity: 0.92;
  font-variant-numeric: tabular-nums;
}

/* ── Staggered entrance: items fade-up when the menu opens ── */
.overlay-menu__inner > *:not(.menu-gallery),
.menu-gallery__item {
  opacity: 0;
  transform: translateY(18px);
}
.overlay-menu[aria-hidden="false"] .overlay-menu__inner > *:not(.menu-gallery),
.overlay-menu[aria-hidden="false"] .menu-gallery__item {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 60ms + 90ms);
}
@media (prefers-reduced-motion: reduce) {
  .overlay-menu__inner > *:not(.menu-gallery),
  .menu-gallery__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Service gallery: stacked image-left rows on phones/tablets ── */
@media (max-width: 760px) {
  .menu-gallery {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 440px;
  }
  .menu-gallery__item {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .menu-gallery__item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .menu-gallery__media {
    flex: 0 0 72px;
    width: 72px;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }
  .menu-gallery__num { margin-bottom: 3px; }
  .menu-gallery__title { font-size: 19px; }
}

body.overlay-menu-open { overflow: hidden; }

/* ─── Header search toggle (button styled as a contact icon) ── */
.site-header__search-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ─── Search overlay (fullscreen, all viewport sizes) ───────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--c-navy);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
  overflow-y: auto;
}
.search-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0s linear 0s;
}
.search-overlay__close {
  position: fixed;
  top: 18px;
  right: var(--gutter);
  appearance: none;
  background: rgba(10, 31, 61, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 0;
  padding: 10px;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.18s ease;
  z-index: 2;
}
.search-overlay__close:hover { background: rgba(255, 255, 255, 0.12); }
.search-overlay__close svg { display: block; }

.search-overlay__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(86px, 14vh, 150px) 24px 60px;
}

/* ── Search field ── */
.search-overlay__form {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 14px;
  transition: border-color 0.18s ease;
}
.search-overlay__form:focus-within { border-bottom-color: var(--c-red); }
.search-overlay__icon { flex: 0 0 auto; color: rgba(255, 255, 255, 0.6); }
.search-overlay__input {
  flex: 1 1 auto;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.search-overlay__input::placeholder { color: rgba(255, 255, 255, 0.42); }
.search-overlay__input:focus { outline: none; }
/* Hide the WebKit/Edge native clear button — the design is its own. */
.search-overlay__input::-webkit-search-decoration,
.search-overlay__input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ── Results ── */
.search-overlay__results { margin-top: 18px; }
.search-overlay__msg {
  margin: 24px 2px;
  font-family: var(--font-serif);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}
.search-overlay__results--loading .search-overlay__msg { font-style: italic; }

.search-results { list-style: none; margin: 0; padding: 0; }
.search-result + .search-result { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.search-result__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 2px;
  text-decoration: none;
  color: #fff;
}
.search-result__media {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.search-result__media img { width: 100%; height: 100%; object-fit: cover; }
.search-result__media--empty { box-shadow: none; }
.search-result__text { flex: 1 1 auto; min-width: 0; }
.search-result__type {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 3px;
}
.search-result__title {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: color 0.16s ease;
}
.search-result__excerpt {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.search-result mark {
  background: transparent;
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid var(--c-red);
}
.search-result__excerpt mark { color: rgba(255, 255, 255, 0.85); }
.search-result__arrow {
  flex: 0 0 auto;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, color 0.18s ease;
}
.search-result__link:hover .search-result__title,
.search-result__link:focus-visible .search-result__title { color: var(--c-red); }
.search-result__link:hover .search-result__arrow,
.search-result__link:focus-visible .search-result__arrow {
  color: #fff;
  transform: translateX(4px);
}
@media (prefers-reduced-motion: reduce) {
  .search-result__arrow { transition: color 0.18s ease; }
}
@media (max-width: 420px) {
  .search-result__media { flex-basis: 46px; width: 46px; height: 46px; }
  .search-result__excerpt { -webkit-line-clamp: 1; }
}

/* ─── Hero slider container ────────────────────────────────── */

.hero-slider {
  width: 100%;
  position: relative;
  /* The findrack-hero-slider plugin manages its own sizing.
     We just ensure no width constraints from this theme. */
}

/* Force true viewport fill on every device — plugin's CSS cascade
   ends up at 100vh which is buggy on iOS Safari with URL bar bouncing.
   Setting 100dvh at higher specificity. */
.hero-slider .findrack-slider {
  height: 100dvh;
}

/* Top gradient: 200px dark fade from the very top so header CTAs / hamburger
   stay readable over any slide image (bright or dark). */
.hero-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 5;
  pointer-events: none;
}

/* Subtle overall image tint so white text overlay is legible on bright slides. */
.hero-slider .findrack-slide picture {
  filter: brightness(0.85);
}

/* Strengthen the bottom-of-slide gradient where title + subtitle sit
   (plugin's default 55% opacity is too weak on the white-desk slide). */
.hero-slider .findrack-slide__content {
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.80) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0) 100%) !important;
  padding: 4.5rem 4rem 3.5rem !important;
}

/* Text shadow gives crispness against any background. */
.hero-slider .findrack-slide__title,
.hero-slider .findrack-slide__subtitle {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

/* Slide headings: off-white text for a softer feel over photography,
   with two red accents that draw the eye — a short rule above and the
   brand full-stop after. Appended via pseudo-elements, so no per-slide
   text editing is needed. */
.hero-slider .findrack-slide__title {
  color: var(--c-paper);
}
/* Red rule accent above every page/slide hero heading. */
.hero-slider .findrack-slide__title::before,
.service-hero__title::before,
.about-hero__title::before,
.insights-hero__title::before,
.enquiry__title::before,
.booking__title::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--c-red);
  margin-bottom: 22px;
}
/* Lift the rule off photographic / image-backed backgrounds only. */
.hero-slider .findrack-slide__title::before,
.service-hero__title::before {
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.hero-slider .findrack-slide__title::after {
  content: ".";
  color: var(--c-red);
  font-size: 1.6em;
  line-height: 0;
}

/* Slide CTA — fill-wipe rollover: white sweeps in from the left, text flips to navy, button lifts. */
.hero-slider .findrack-slide__link {
  position: relative;
  overflow: hidden;
  z-index: 0;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-color: rgba(255, 255, 255, 0.85);
  transition: color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.hero-slider .findrack-slide__link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slider .findrack-slide__link:hover,
.hero-slider .findrack-slide__link:focus-visible {
  color: var(--c-navy);
  border-color: #fff;
  background: rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
.hero-slider .findrack-slide__link:hover::before,
.hero-slider .findrack-slide__link:focus-visible::before {
  transform: scaleX(1);
}

/* Pagination dots — drop them to sit on the same line as the Explore button's centre. */
.hero-slider .findrack-slider__dots {
  bottom: 3.9rem;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider .findrack-slide__link,
  .hero-slider .findrack-slide__link::before { transition: none; }
  .hero-slider .findrack-slide__link:hover { transform: none; }
}

/* ── Mobile fitting (phones in portrait) ─────────────────────
   On narrow viewports the full logo + 2 CTAs + hamburger overflow.
   Tier 1 (<=720px): stack logo descriptor under "cms." (V6.4a), compact CTAs, hide scroll-hint
                     (it overlaps the slide CTA), lift slide content up.
   Tier 2 (<=400px): hide CTAs entirely — they remain in the overlay menu. */

@media (max-width: 720px) {
  .site-header__inner {
    padding: 0 18px;
    gap: 10px;
  }
  /* V6.4a "Big Tracked Caps" lockup, stacked for the narrow header:
     "cms." with WEB SOLUTIONS tracked beneath it. The inline rule +
     baseline descriptor don't fit horizontally alongside the hamburger,
     so the descriptor anchors the wordmark from below instead. */
  .site-header .cms-logo--horizontal {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .site-header .cms-logo--horizontal .cms-mono { font-size: 30px; }
  .site-header .cms-logo--horizontal .cms-rule { display: none; }
  .site-header .cms-logo--horizontal .cms-desc {
    font-size: 9px;
    letter-spacing: 3px;
  }

  .findrack-slider__scroll-hint { display: none !important; }

  .hero-slider .findrack-slide__content {
    padding: 3rem 1.5rem 3.5rem !important;
  }
}

/* ─── Cookie consent banner ─────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  max-width: 440px;
  background: #fff;
  border-radius: 26px;
  padding: 22px 26px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06), 0 24px 48px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.32s ease, transform 0.32s ease, visibility 0s linear 0.32s;
  font-family: var(--font-sans);
}
.cookie-banner--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.32s ease, transform 0.32s ease, visibility 0s linear 0s;
}
.cookie-banner__text {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--c-navy);
}
.cookie-banner__link {
  color: var(--c-red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.15s ease;
}
.cookie-banner__link:hover {
  border-bottom-color: var(--c-red);
}
.cookie-banner__actions {
  display: flex;
  gap: 8px;
}
.cookie-banner__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.cookie-banner__btn--reject {
  background: #f1efeb;
  color: var(--c-navy);
}
.cookie-banner__btn--reject:hover { background: #e7e3db; }
.cookie-banner__btn--accept {
  background: var(--c-navy);
  color: #fff;
}
.cookie-banner__btn--accept:hover { background: var(--c-ink); }

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: none;
    padding: 18px 20px 16px;
    border-radius: 20px;
  }
}

/* ─── Enquiry page + form ──────────────────────────────────── */

.enquiry {
  padding: calc(var(--header-h) + 80px) 0 120px;
  background: var(--c-paper);
}
.enquiry__inner { max-width: 720px; }
.enquiry__head { margin-bottom: 56px; }
.enquiry__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--c-navy);
  opacity: 0.55;
  margin: 0 0 24px;
}
.enquiry__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.024em;
  line-height: 1.05;
  color: var(--c-navy);
  margin: 0 0 24px;
  max-width: 16ch;
}
.enquiry__intro {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-navy);
  opacity: 0.85;
  max-width: 56ch;
}
.enquiry__intro p { margin: 0 0 16px; }

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.enquiry-form--sent { display: none; }
.enquiry-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 600px) {
  .enquiry-form__row { grid-template-columns: 1fr; }
}
.enquiry-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.enquiry-form__field--full { grid-column: 1 / -1; }
.enquiry-form__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c-navy);
}
.enquiry-form__optional {
  font-weight: 400;
  letter-spacing: 0.4px;
  text-transform: none;
  font-size: 12px;
  opacity: 0.55;
  margin-left: 6px;
}
.enquiry-form input[type="text"],
.enquiry-form input[type="email"],
.enquiry-form textarea {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--c-navy);
  background: #fff;
  border: 1px solid var(--c-line-strong);
  border-radius: 4px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.enquiry-form input:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--c-navy);
  box-shadow: 0 0 0 3px rgba(10, 31, 61, 0.08);
}
.enquiry-form textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.55;
}

/* Honeypot — visually + AT hidden but still submitted */
/* Honeypot — display:none (not just off-screen) so browser autofill
   never populates it and silently flags a genuine visitor as a bot. */
.enquiry-form__honeypot {
  display: none !important;
}

.enquiry-form__submit {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.enquiry-form__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
  background: var(--c-navy);
  padding: 18px 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  flex: 0 0 auto;
}
.enquiry-form__btn:hover:not(:disabled) {
  background: var(--c-ink);
  transform: translateY(-1px);
}
.enquiry-form__btn:disabled { opacity: 0.55; cursor: not-allowed; }
.enquiry-form__btn-arrow { color: var(--c-red); font-size: 16px; line-height: 1; }

.enquiry-form__status {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  flex: 1 1 280px;
  min-height: 1.5em;
}
.enquiry-form__status--pending { color: var(--c-muted); }
.enquiry-form__status--success { color: var(--c-navy); }
.enquiry-form__status--error   { color: var(--c-red); }
.enquiry-form__status--error a {
  color: var(--c-red);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.enquiry-success {
  padding: 56px 0;
  border-top: 1px solid var(--c-navy);
  border-bottom: 1px solid var(--c-navy);
  max-width: 56ch;
}

/* ─── Booking page (/book/) — MS Bookings embed ─────────────── */

.booking {
  padding: calc(var(--header-h) + 80px) 0 120px;
  background: var(--c-paper);
}
.booking__inner { max-width: 960px; }
.booking__head { margin-bottom: 48px; }
.booking__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--c-navy);
  opacity: 0.55;
  margin: 0 0 24px;
}
.booking__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.024em;
  line-height: 1.05;
  color: var(--c-navy);
  margin: 0 0 24px;
  max-width: 18ch;
}
.booking__intro {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-navy);
  opacity: 0.85;
  max-width: 56ch;
}
.booking__intro p { margin: 0 0 16px; }
.booking__intro p:last-child { margin-bottom: 0; }

.booking__embed {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(10, 31, 61, 0.06), 0 16px 48px rgba(10, 31, 61, 0.1);
}
.booking__embed iframe {
  display: block;
  width: 100%;
  border: 0;
  min-height: 980px;
  height: 85vh;
}

.booking__fallback {
  margin: 24px 0 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-muted);
  text-align: center;
}
.booking__fallback-link {
  color: var(--c-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--c-line-strong);
  margin-left: 6px;
  transition: border-bottom-color 0.15s ease;
}
.booking__fallback-link:hover { border-bottom-color: var(--c-red); }
.enquiry-success h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--c-navy);
  margin: 0 0 16px;
}
.enquiry-success p {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--c-navy);
  opacity: 0.85;
  margin: 0;
}

/* ─── Promise (Adrian's tagline + mission) ──────────────────── */

.promise {
  padding: 140px 0 140px;
  background: var(--c-paper);
  position: relative;
}
.promise__inner { max-width: 880px; text-align: center; }
.promise__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--c-navy);
  opacity: 0.55;
  margin: 0 0 40px;
}
.promise__tagline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6.4vw, 88px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--c-navy);
  margin: 0;
  /* Balance the lines so a short final word ("it.") never falls alone
     as an orphan on its own line — holds at every viewport width. */
  text-wrap: balance;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.promise__dot {
  display: inline-block;
  color: var(--c-red);
  margin-left: -0.02em;
}
.promise__strapline {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--c-navy);
  opacity: 0.72;
  margin: 28px 0 0;
}
.promise__strapline em { font-style: italic; }
.promise__body {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--c-navy);
  opacity: 0.82;
  margin: 40px auto 0;
  max-width: 56ch;
}

/* Scroll-triggered entrance — tagline, strapline, body cascade in;
   the red period scales in last with a small bounce. */
.promise__tagline,
.promise__strapline,
.promise__body {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.promise__dot {
  transform: scale(0);
  transform-origin: center 75%;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.promise.is-in-view .promise__tagline { opacity: 1; transform: none; transition-delay: 0s; }
.promise.is-in-view .promise__strapline { opacity: 1; transform: none; transition-delay: 0.18s; }
.promise.is-in-view .promise__body { opacity: 1; transform: none; transition-delay: 0.36s; }
.promise.is-in-view .promise__dot { transform: scale(1); transition-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  .promise__tagline,
  .promise__strapline,
  .promise__body,
  .promise__dot {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 720px) {
  .promise { padding: 96px 0 96px; }
  .promise__eyebrow { margin-bottom: 28px; }
}

/* ─── Pillars (4 services) ──────────────────────────────────── */

.pillars {
  padding: 130px 0;
  background: #fff;
  border-top: 1px solid var(--c-line);
}
.pillars__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--c-navy);
  opacity: 0.55;
  margin: 0 0 24px;
}
.pillars__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--c-navy);
  margin: 0 0 32px;
  max-width: 24ch;
}
/* Narrative lead beneath the section title — larger than the pillar
   body copy to carry the "we start with a conversation" message. */
.pillars__intro {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -0.011em;
  color: var(--c-navy);
  opacity: 0.82;
  margin: 0 0 88px;
  max-width: 60ch;
  text-wrap: pretty;
}
@media (max-width: 600px) { .pillars__intro { margin-bottom: 64px; } }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}
@media (max-width: 1100px) { .pillars__grid { grid-template-columns: repeat(2, 1fr); gap: 56px 40px; } }
@media (max-width: 600px)  { .pillars__grid { grid-template-columns: 1fr; gap: 40px; } }

.pillar {
  display: flex;
  flex-direction: column;
}
.pillar__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--c-red);
  color: var(--c-paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 28px;
  flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.18);
}
.pillar__icon svg { display: block; }
.pillar__num {
  font-family: var(--font-mono-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-navy);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1;
}
.pillar__num-dot { color: var(--c-red); font-size: 1.5em; line-height: 0; margin-left: -0.02em; }
.pillar__tool {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--c-red);
  margin: 0 0 14px;
}
.pillar__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.18;
  color: var(--c-navy);
  margin: 0 0 16px;
}
.pillar__body {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-navy);
  opacity: 0.78;
  margin: 0;
}

/* ─── Approach (mirror-split) ───────────────────────────────── */

.approach {
  padding: 140px 0 150px;
  background: var(--c-paper);
  border-top: 1px solid var(--c-line);
}
.approach__inner {
  display: flex;
  align-items: center;
  gap: 88px;
}
.approach__figure {
  flex: 0 0 42%;
  margin: 0;
  align-self: stretch;
  min-height: 460px;
  position: relative;
}
/* Offset on-brand accent block sitting behind the image for layered depth */
.approach__figure::before {
  content: '';
  position: absolute;
  inset: 26px -22px -22px 26px;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.12), rgba(10, 31, 61, 0.12));
  border-radius: 10px;
  z-index: 0;
}
.approach__figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  box-shadow:
    0 1px 2px rgba(10, 31, 61, 0.08),
    0 12px 28px rgba(10, 31, 61, 0.16),
    0 32px 64px rgba(10, 31, 61, 0.14);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.5s ease;
}
.approach__figure:hover img {
  transform: translateY(-6px);
  box-shadow:
    0 2px 4px rgba(10, 31, 61, 0.10),
    0 18px 38px rgba(10, 31, 61, 0.20),
    0 46px 84px rgba(10, 31, 61, 0.16);
}
@media (prefers-reduced-motion: reduce) {
  .approach__figure img { transition: none; }
  .approach__figure:hover img { transform: none; }
}
.approach__text { flex: 1 1 58%; }
.approach__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--c-navy);
  opacity: 0.55;
  margin: 0 0 36px;
}
.approach__statement {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--c-navy);
  margin: 0 0 32px;
  max-width: 28ch;
}
.approach__statement em { font-style: italic; }
.approach__dot { color: var(--c-red); font-style: normal; margin-left: -0.04em; }
.approach__attribution {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: var(--c-navy);
  opacity: 0.55;
  margin: 0;
}
@media (max-width: 900px) {
  .approach { padding: 96px 0 100px; }
  .approach__inner { flex-direction: column; gap: 48px; }
  .approach__figure, .approach__text { flex-basis: auto; width: 100%; }
  .approach__figure { min-height: 320px; }
}

/* ─── Footer ────────────────────────────────────────────────── */

.site-footer {
  background: var(--c-navy);
  color: #fff;
  padding: 80px 0 36px;
}
.site-footer__top {
  display: flex;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 32px;
}
@media (max-width: 720px) { .site-footer__top { flex-direction: column; gap: 40px; } }
.site-footer__brand { max-width: 480px; }
.site-footer__mission {
  margin: 28px 0 0;
  max-width: 44ch;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.64);
}
.site-footer__mission-dot { color: var(--c-red); }
@media (max-width: 720px) { .site-footer__mission { font-size: 16px; } }
.site-footer__contact { text-align: right; max-width: 360px; }
@media (max-width: 720px) { .site-footer__contact { text-align: left; } }
.site-footer__contact-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 16px;
}
.site-footer__contact-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.site-footer__contact-link {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-bottom-color 0.18s ease;
}
.site-footer__contact-link:hover { border-bottom-color: var(--c-red); }
.site-footer__contact-link--phone {
  font-size: 18px;
  opacity: 0.92;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .site-footer__contact-lines { align-items: flex-start; }
}
.site-footer__contact-note {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}
.site-footer__social {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.site-footer__social-link:hover {
  color: #fff;
  border-color: transparent;
  background: var(--c-red);
}
.site-footer__social-link svg { display: block; }
@media (max-width: 720px) {
  .site-footer__social { justify-content: flex-start; }
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer__legal {
  flex: 1 1 auto;
  min-width: 0;
}
.site-footer__legal p {
  margin: 0 0 4px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.4px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer__legal p:last-child { margin-bottom: 0; }
.site-footer__nav {
  display: flex;
  gap: 24px;
  flex: 0 0 auto;
}
.site-footer__nav-link {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}
.site-footer__nav-link:hover { color: #fff; border-bottom-color: var(--c-red); }
@media (max-width: 720px) {
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ─── Service pages (dedicated pillar pages) ─────────────────── */

.service-hero {
  margin-top: var(--header-h);
  height: 54vh;
  min-height: 380px;
  max-height: 620px;
  background-size: cover;
  background-position: center;
  background-color: var(--c-navy);
  position: relative;
  display: flex;
  align-items: flex-end;
}
.service-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 31, 61, 0.9) 0%, rgba(10, 31, 61, 0.4) 50%, rgba(10, 31, 61, 0.15) 100%);
}
.service-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 52px;
  color: #fff;
}
.service-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 18px;
}
.service-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: #fff;
  margin: 0;
  max-width: 18ch;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.32);
}
.service-hero__sub {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  margin: 20px 0 0;
  max-width: 52ch;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.32);
}

/* Statement band — bold navy manifesto directly under the hero, the
   first thing a visitor reads. Red rule accent + red highlight tie it
   to the brand. Shown only when the page has a statement set. */
.service-statement {
  background: var(--c-navy);
  color: #fff;
  padding: clamp(60px, 9vw, 120px) 0;
}
.service-statement__text {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 46px);
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 26ch;
  text-wrap: balance;
}
.service-statement__text::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--c-red);
  margin-bottom: clamp(26px, 4vw, 44px);
}
.service-statement__text strong {
  color: var(--c-red);
  font-weight: inherit;
  white-space: nowrap;
}

.service-body { padding: 96px 0 120px; background: var(--c-paper); }
.service-body__inner { max-width: 720px; }
.service-narrative {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--c-navy);
}
.service-narrative .lead {
  font-size: clamp(20px, 2.2vw, 23px);
  line-height: 1.5;
  font-weight: 500;
  margin: 0 0 36px;
}
.service-narrative h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 46px 0 16px;
}
.service-narrative p { margin: 0 0 20px; opacity: 0.86; }
.service-narrative ul { margin: 0 0 24px; padding-left: 22px; }
.service-narrative li { margin-bottom: 10px; opacity: 0.86; }
.service-narrative a {
  color: var(--c-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--c-line-strong);
  transition: border-bottom-color 0.15s ease;
}
.service-narrative a:hover { border-bottom-color: var(--c-red); }
.service-narrative strong { font-weight: 600; }

.service-cta {
  margin-top: 64px;
  padding: 48px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(10, 31, 61, 0.05), 0 16px 48px rgba(10, 31, 61, 0.08);
}
.service-cta__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--c-navy);
  opacity: 0.55;
  margin: 0 0 14px;
}
.service-cta__title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--c-navy);
  margin: 0 0 14px;
}
.service-cta__dot { color: var(--c-red); }
.service-cta__body {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-navy);
  opacity: 0.82;
  margin: 0 0 28px;
  max-width: 52ch;
}
.service-cta__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.service-cta__link {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--c-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--c-line-strong);
  transition: border-bottom-color 0.15s ease;
}
.service-cta__link:hover { border-bottom-color: var(--c-red); }

@media (max-width: 720px) {
  .service-hero { height: 42vh; min-height: 300px; }
  .service-body { padding: 64px 0 80px; }
  .service-cta { padding: 32px 24px; }
}

/* ─── Insights (blog index) ─────────────────────────────────── */
/* Shared navy lede hero — used by both Insights and About so their
   blue sections match exactly (content-driven height, not a fixed vh). */
.insights-hero,
.about-hero {
  margin-top: var(--header-h);
  background: var(--c-navy);
  color: #fff;
  padding: clamp(64px, 9vw, 112px) 0 clamp(44px, 7vw, 80px);
}
.insights-hero__eyebrow,
.about-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500; letter-spacing: 2.4px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7); margin: 0 0 18px;
}
.insights-hero__title,
.about-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 72px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.04;
  color: #fff; margin: 0;
}
.insights-hero__sub,
.about-hero__sub {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 23px); font-weight: 400; line-height: 1.45;
  color: rgba(255, 255, 255, 0.88); margin: 20px 0 0; max-width: 54ch;
}
.insights-list { padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); background: var(--c-paper); }

/* Shared empty-image fallback (faint cms. watermark on navy) */
.insight-media--empty { position: relative; background: linear-gradient(135deg, var(--c-navy) 0%, #0d2a52 100%); }
.insight-media--empty::after {
  content: 'cms.'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono-serif); font-weight: 500; letter-spacing: -0.03em;
  font-size: clamp(30px, 4vw, 56px); color: rgba(255, 255, 255, 0.14);
}
.insight-arrow { display: inline-block; color: var(--c-red); transition: transform 0.2s ease; }

/* ── Featured lead article ── */
.insight-feature {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  text-decoration: none;
  color: var(--c-navy);
  padding-bottom: clamp(40px, 5vw, 60px);
  margin-bottom: clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--c-line);
}
.insight-feature__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  background: var(--c-paper-deep);
  box-shadow: 0 14px 38px rgba(10, 31, 61, 0.18);
}
.insight-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.insight-feature:hover .insight-feature__media img,
.insight-feature:focus-visible .insight-feature__media img { transform: scale(1.05); }
.insight-feature__meta {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--c-navy);
}
.insight-feature__meta { color: rgba(10, 31, 61, 0.55); }
.insight-feature__tag {
  background: var(--c-red); color: #fff; padding: 4px 10px; border-radius: 5px;
  font-size: 10.5px; letter-spacing: 1.6px;
}
.insight-feature__title {
  font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 40px); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.12; margin: 18px 0 14px; transition: color 0.18s ease;
}
.insight-feature:hover .insight-feature__title { color: var(--c-red); }
.insight-feature__excerpt { font-family: var(--font-serif); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: rgba(10, 31, 61, 0.82); margin: 0 0 22px; max-width: 48ch; }
.insight-feature__more { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--c-navy); }
.insight-feature:hover .insight-arrow { transform: translateX(5px); }

/* ── Grid of cards ── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 3.4vw, 52px) clamp(24px, 2.4vw, 40px);
}
.insight-card__link { display: block; text-decoration: none; color: var(--c-navy); }
.insight-card__media {
  display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px;
  background: var(--c-paper-deep); margin-bottom: 18px;
}
.insight-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.insight-card__link:hover .insight-card__media img,
.insight-card__link:focus-visible .insight-card__media img { transform: scale(1.05); }
.insight-card__meta {
  font-family: var(--font-sans); font-size: 11px; font-weight: 500; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--c-navy); opacity: 0.5;
}
.insight-card__title {
  font-family: var(--font-serif); font-size: clamp(19px, 1.5vw, 23px); font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.22; margin: 9px 0 10px; transition: color 0.18s ease;
}
.insight-card__link:hover .insight-card__title,
.insight-card__link:focus-visible .insight-card__title { color: var(--c-red); }
.insight-card__excerpt { font-family: var(--font-serif); font-size: 15.5px; line-height: 1.5; opacity: 0.8; margin: 0 0 14px; }
.insight-card__more { font-family: var(--font-sans); font-size: 11.5px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--c-navy); }
.insight-card__link:hover .insight-arrow { transform: translateX(4px); }

.insights-empty { font-family: var(--font-serif); font-size: 19px; color: var(--c-navy); max-width: 760px; }
.insights-empty a { color: var(--c-navy); border-bottom: 1px solid var(--c-line-strong); text-decoration: none; }
.insights-empty a:hover { border-bottom-color: var(--c-red); }
.insights-list .nav-links { display: flex; gap: 10px; justify-content: center; margin-top: clamp(56px, 6vw, 80px); flex-wrap: wrap; }
.insights-list .page-numbers {
  font-family: var(--font-sans); font-size: 14px; color: var(--c-navy); text-decoration: none;
  padding: 9px 15px; border: 1px solid var(--c-line-strong); border-radius: 8px; transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.insights-list .page-numbers.current { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.insights-list .page-numbers:hover { border-color: var(--c-navy); }

/* ─── Single article ────────────────────────────────────────── */
.article-hero {
  margin-top: var(--header-h);
  background: var(--c-navy);
  color: #fff;
  padding: clamp(60px, 9vw, 108px) 0 clamp(40px, 6vw, 64px);
  position: relative;
  background-size: cover;
  background-position: center;
}
.article-hero--image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 31, 61, 0.92) 0%, rgba(10, 31, 61, 0.55) 60%, rgba(10, 31, 61, 0.3) 100%);
}
.article-hero__inner { position: relative; z-index: 2; }
.article-hero__eyebrow { font-family: var(--font-sans); font-size: 11px; font-weight: 500; letter-spacing: 2.4px; text-transform: uppercase; margin: 0 0 18px; }
.article-hero__eyebrow a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.15s ease; }
.article-hero__eyebrow a:hover { color: #fff; }
.article-hero__title { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 60px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; color: #fff; margin: 0; max-width: 22ch; }
.article-hero__meta { font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); margin: 22px 0 0; }
.article-body { padding: clamp(56px, 8vw, 90px) 0 110px; background: var(--c-paper); }
.article-body__inner { max-width: 720px; }
.article-back { margin: 56px 0 0; }
.article-back a { font-family: var(--font-sans); font-size: 14px; color: var(--c-navy); text-decoration: none; border-bottom: 1px solid var(--c-line-strong); transition: border-bottom-color 0.15s ease; }
.article-back a:hover { border-bottom-color: var(--c-red); }
@media (max-width: 900px) {
  .insight-feature { grid-template-columns: 1fr; gap: 24px; }
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .insights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .insights-list { padding: 44px 0 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .insight-feature__media img,
  .insight-card__media img,
  .insight-arrow { transition: none; }
}

/* Pillar cards become clickable (stretched-link pattern). */
.pillar { position: relative; }
.pillar__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.pillar__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.pillar:hover .pillar__title a { color: var(--c-red); }

/* ─── Generic page (fallback) ───────────────────────────────── */
/* Scoped to the section wrapper in index.php — NOT `.page` alone, because
   WordPress adds the `page` class to <body> on every static Page, which
   would otherwise apply this top padding to the whole document (and push
   the full-bleed homepage hero down). */
section.page { padding: calc(var(--header-h) + 80px) 0 120px; }
.page__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: var(--c-navy);
  margin: 0 0 32px;
}
.page__entry { margin-bottom: 64px; }
.page__body {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--c-navy);
  opacity: 0.85;
  max-width: 64ch;
}
.page__body h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 48px 0 18px;
}
.page__body p { margin: 0 0 16px; }
.page__body ul { margin: 0 0 24px; padding-left: 20px; }
.page__body li { margin-bottom: 12px; }
.page__body a {
  color: var(--c-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--c-line-strong);
  transition: border-bottom-color 0.15s ease;
}
.page__body a:hover { border-bottom-color: var(--c-red); }
.page__body em { font-style: italic; }

/* ─── Back to top ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 80;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-navy);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(10, 31, 61, 0.30), 0 2px 6px rgba(10, 31, 61, 0.20);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.2s ease, visibility 0s linear 0.32s;
}
.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.2s ease, visibility 0s linear 0s;
}
.back-to-top:hover {
  background: var(--c-red);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 26px rgba(200, 16, 46, 0.34), 0 2px 6px rgba(10, 31, 61, 0.20);
}
.back-to-top svg { display: block; transition: transform 0.2s ease; }
.back-to-top:hover svg { transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 2px solid var(--c-red); outline-offset: 3px; }
@media (max-width: 600px) {
  .back-to-top { bottom: 18px; right: 18px; width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.25s ease, visibility 0s linear 0.25s; transform: none; }
  .back-to-top--visible { transform: none; transition: opacity 0.25s ease, visibility 0s; }
  .back-to-top:hover { transform: none; }
  .back-to-top svg, .back-to-top:hover svg { transition: none; transform: none; }
}
