/* Landing design system (.template/landing-1) - the shared public
 * stylesheet for DH-LLP. Loaded by BOTH public layouts:
 *   layouts.landing (homepage) and layouts.site (every other page).
 * site.css layers inner-page components (forms, cards, prose,
 * pagination) on top of these tokens - keep the palettes in sync.
 *
 * Extracted verbatim from layouts/landing.php - edit here, not in
 * the layout, so all public pages share one design source.
 */

:root {
  /* DADIMOS & PARTNERS LLP brand tokens (guidelines v1.1) - corporate
     navy + white dominate; neutrals and the 4-8px radius scale follow
     the guideline's proposed design tokens. */
  --navy: #12235b;
  --navy-2: #0d1a45;
  --navy-3: #1b3070;
  --ink: #1f2937;
  --muted: #667085;
  --line: #dde3ef;
  --bg: #f6f8fc;
  --surface-blue: #eaf0fa;
  --pinstripe: rgba(18, 35, 91, 0.035);
  --white: #ffffff;
  --radius-sm: 4px;
  --radius-md: 8px;
}

* {
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Manrope", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Sora", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

img {
  object-fit: cover;
}

a {
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 2000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- small helpers ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0;
}

.tag.on-dark {
  color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.tag .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.sec-title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.15;
}

.sec-sub {
  font-size: 0.9rem;
  /* color: var(--muted); */
  line-height: 1.65;
}

.arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.arrow-btn:hover {
  background: var(--ink);
  color: #fff;
}

.arrow-btn.on-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.arrow-btn.on-dark:hover {
  background: #fff;
  color: var(--ink);
}

.arrow-btn.solid {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--navy);
  display: flex;
  flex-direction: column;
}

/* FR-HOME-001: no stock photography - the managed hero's imagery
           lives on the floating card (media_id); the backdrop is a
           brand-navy gradient. */
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 130% at 50% -10%,
    #1e346f 0%,
    var(--navy) 62%
  );
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Left-bottom scrim concentrates behind the text block; the even
     wash keeps the masthead readable. The photo's right side stays
     bright. */
  background:
    linear-gradient(
      105deg,
      rgba(9, 16, 42, 0.55) 0%,
      rgba(9, 16, 42, 0.28) 42%,
      rgba(9, 16, 42, 0) 68%
    ),
    linear-gradient(
      180deg,
      rgba(9, 16, 42, 0.3) 0%,
      rgba(9, 16, 42, 0.12) 45%,
      rgba(9, 16, 42, 0.6) 100%
    );
}

.hero .navbar {
  position: relative;
  z-index: 5;
}

.brand {
  font-weight: 600;
  color: #fff !important;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand sup {
  font-size: 0.55em;
  font-weight: 500;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 0.3rem;
}

.nav-pill a {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-md);
  transition: 0.2s;
  text-shadow: 0 1px 8px rgba(9, 16, 42, 0.5);
}

.nav-pill a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-pill .nav-search {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-left: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
}

/* ---------- shared nav component (partials.nav), landing skin ----------
           Same [data-nav] markup as layouts.site: toggle + menu list +
           trailing CTA. Below 768px the pill collapses to a fixed
           slide-in panel driven by js/nav.js. */
.site-nav--landing {
  margin: 0 auto;
}

.site-nav--landing .site-nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 0.3rem;
  margin: 0;
  list-style: none;
}

.site-nav--landing .site-nav-menu a {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-md);
  transition: 0.2s;
  display: inline-block;
  text-shadow: 0 1px 8px rgba(9, 16, 42, 0.5);
}

.site-nav--landing .site-nav-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.site-nav--landing a.site-nav-cta {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.42rem 1rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

.site-nav--landing a.site-nav-cta:hover {
  background: var(--surface-blue);
  color: var(--ink);
}

.site-nav--landing .site-nav-search a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-left: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  padding: 0;
}

.site-nav--landing .site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.2rem;
}

@media (max-width: 767.98px) {
  .site-nav--landing {
    margin: 0 0 0 auto;
  }

  .site-nav--landing .site-nav-toggle {
    display: inline-flex;
  }

  .site-nav--landing .site-nav-menu {
    display: none;
  }

  .site-nav--landing .site-nav-menu.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.25rem;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(20rem, 85vw);
    background: var(--navy-2);
    padding: 4.5rem 2rem 2rem;
    border: 0;
    border-radius: 0;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    overflow-y: auto;
    z-index: 1045;
  }

  .site-nav--landing .site-nav-menu.is-open a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    padding: 0.6rem 0;
    border-radius: 0;
  }

  .site-nav--landing .site-nav-menu.is-open .site-nav-search a {
    border: 0;
    background: transparent;
    width: auto;
    height: auto;
    font-size: 1rem;
    justify-content: flex-start;
  }

  /* Keep the toggle reachable above the open panel. */
  .site-nav--landing.is-open .site-nav-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
  }
}

.hero-cta {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.6rem 1.35rem;
}

.hero-content {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4vh clamp(1.5rem, 6vw, 5rem) clamp(2.5rem, 7vh, 5rem);
}

.hero-title {
  color: #fff;
  text-align: left;
  font-weight: 600;
  font-size: clamp(1.7rem, 2.9vw, 2.7rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
  max-width: 20ch;
  margin: 0;
  text-shadow: 0 1px 18px rgba(9, 16, 42, 0.45);
}

.hero-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(0.5rem, 1.5vw, 1.25rem);
  padding: 0 0.75rem;
  gap: 1rem;
}

.hero-word {
  color: #fff;
  font-family: "Sora", Arial, sans-serif;
  font-weight: 500;
  white-space: nowrap;
  font-size: clamp(2.6rem, 6.4vw, 5.8rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.hero-card {
  position: relative;
  flex: 0 0 auto;
  width: min(30vw, 380px);
  aspect-ratio: 1.15;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.hero-card img {
  width: 100%;
  height: 100%;
}

/* CTA row under the hero copy - primary light pill + optional ghost
   secondary, aligned to the same left rail as the headline. */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.hero-btn-ghost {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.6rem 1.35rem;
  transition: 0.2s;
}

.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.65;
  max-width: 47ch;
  margin: 1.25rem 0 0;
  text-shadow: 0 1px 10px rgba(9, 16, 42, 0.4);
}

.hero-arrows {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.6rem;
}

.hero-arrows .arrow-btn {
  width: 38px;
  height: 38px;
  font-size: 0.8rem;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.hero-arrows .arrow-btn:hover {
  background: #fff;
  color: var(--ink);
}

/* Hero slider: stacked card images + backdrop layers crossfade. */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-bg-layer.active {
  opacity: 1;
}

.hero-slide-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.hero-slide-img.active {
  opacity: 1;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0 0.35rem;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
  background: #fff;
}

/* ---------- hero latest-updates rail ----------
   Frosted glass card pinned to the hero's bottom-right, rotating
   through the curated latest-publications set. Stacks in-flow below
   the copy on smaller viewports. */
.hero-updates {
  position: absolute;
  right: clamp(1.5rem, 6vw, 5rem);
  bottom: clamp(2.5rem, 7vh, 5rem);
  z-index: 6;
  width: min(370px, 34vw);
  padding: 1rem 1.15rem 1.05rem;
  color: #fff;
  background: rgba(13, 22, 52, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.65);
}

.hu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.hu-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.hu-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: hu-pulse 2.4s ease-out infinite;
}

@keyframes hu-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.hu-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hu-count {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
  margin-right: 0.15rem;
  white-space: nowrap;
}

.hu-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: 0.2s;
}

.hu-arrow:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

/* When the hero-line (floating card + flanking words) is populated it
   already owns the bottom row - the rail drops out of the absolute
   corner and stacks in-flow after the hero copy/buttons instead. */
.hero-updates--inline {
  position: static;
  width: min(460px, 100%);
  margin: 1.5rem 0 0 auto;
}

/* Slides stack in one grid cell so the card self-heights to the
   tallest item - no absolute positioning needed for the crossfade. */
.hu-viewport {
  display: grid;
}

.hu-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    visibility 0.5s;
}

.hu-slide.active {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* The departing slide stays visible until its fade-out ends (the
   visibility transition flips last) - cut pointer interactivity the
   moment it loses .active so a fading link can't be clicked. */
.hu-slide:not(.active) .hu-item {
  pointer-events: none;
}

.hu-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #fff;
}

.hu-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.hu-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hu-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.hu-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hu-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.hu-title {
  font-family: "Sora", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #fff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color 0.2s;
}

.hu-item:hover .hu-title {
  color: var(--surface-blue);
}

.hu-go {
  margin-left: auto;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  transition:
    color 0.2s,
    transform 0.2s;
}

.hu-item:hover .hu-go {
  color: #fff;
  transform: translate(2px, -2px);
}

.hu-progress {
  margin-top: 0.95rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.hu-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), #fff);
  transition: width 0.5s ease;
}

/* ---------- ABOUT ---------- */
.about {
  padding: 6rem 0 4.5rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-2);
}

.review-card .rc-img {
  width: 100%;
  aspect-ratio: 1.9;
  object-fit: cover;
}

.review-card .rc-body {
  flex: 1;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.rc-avatars {
  display: flex;
  margin: -2.1rem 0 0.3rem;
}

.rc-avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--navy-2);
  object-fit: cover;
  margin-left: -9px;
}

.rc-avatars img:first-child {
  margin-left: 0;
}

.rc-stars {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
}

.rc-title {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.rc-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
}

.rc-btn,
.rc-btn:hover,
.rc-btn:focus,
.rc-btn:active,
.rc-btn:focus-visible {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.7rem 1rem;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: #fff;
  color: var(--navy);
  border-radius: var(--radius-md);
  text-align: center;
}

.about-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 1.8rem;
  opacity: 1;
}

.stat {
  padding: 0 0.75rem;
}

.stat .num {
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.stat .cap {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.5;
  max-width: 150px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2.5rem;
  padding: 0;
  opacity: 0.5;
  filter: grayscale(1);
}

.logo-row span {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* ---------- SERVICES ---------- */
.services {
  padding: 4.5rem 0 5.5rem;
}

.svc-accordion .accordion-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.svc-accordion .accordion-item:first-of-type {
  border-top: 1px solid var(--line);
}

.svc-accordion .accordion-button {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  background: transparent;
  box-shadow: none;
  padding: 1.5rem 0;
  color: var(--ink);
}

.svc-accordion .accordion-button::after {
  display: none;
}

.svc-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.svc-icon::before {
  content: "+";
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}

.svc-accordion .accordion-button:not(.collapsed) .svc-icon::before {
  content: "\2212";
}

.svc-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  text-align: left;
}

.svc-name {
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.svc-desc {
  display: none;
  max-width: 56ch;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  white-space: normal;
}

.svc-accordion .accordion-button:not(.collapsed) .svc-desc {
  display: block;
}

.svc-accordion .accordion-body {
  padding: 0 0 1.6rem;
}

.svc-accordion .accordion-body img {
  width: 100%;
  height: clamp(180px, 20vw, 250px);
  border-radius: var(--radius-md);
}

.btn-dark-pill {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
}

.btn-dark-pill:hover {
  background: var(--navy-3);
  color: #fff;
}

/* ---------- PROCESS (dark) ---------- */
.process {
  background: var(--navy);
  color: #fff;
  padding: 5.5rem 0;
  overflow: hidden;
}

.process .sec-title {
  color: #fff;
}

.process-track {
  display: flex;
  margin-top: 3.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.process-track::-webkit-scrollbar {
  display: none;
}

/* Track arrow navs (process, testimonials) hide while their track has
   no overflow to scroll - site.js toggles this on load/resize.
   !important overrides Bootstrap's d-flex display utility on the
   wrapper. */
[data-track-nav].track-nav--hidden {
  display: none !important;
}

.step {
  flex: 0 0 25%;
  min-width: 260px;
  padding: 0 2.2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.step:first-child {
  border-left: 0;
  padding-left: 0;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  margin-bottom: 1.6rem;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.step-title.sm {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.step-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  max-width: 230px;
}

.step img {
  width: 200px;
  height: 150px;
  border-radius: var(--radius-md);
  margin-top: 1.2rem;
}

/* ---------- CASE STUDIES ---------- */
.cases {
  padding: 5.5rem 0;
}

.case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -26px rgba(18, 35, 91, 0.22);
}

.case-card .c-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  flex: 0 0 auto;
}

.case-card .c-img img {
  width: 100%;
  height: 100%;
  transition: transform 0.55s ease;
}

.case-card:hover .c-img img {
  transform: scale(1.06);
}

.case-card .c-tag {
  position: absolute;
  left: 0.95rem;
  top: 0.95rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius-sm);
  padding: 0.32rem 0.8rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.case-card .c-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.5rem 1.5rem;
}

.case-card .c-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.case-card .c-result {
  flex: 1;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 0.45rem;
}

.case-card .c-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.case-card .c-stat .num {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.case-card .c-stat .lbl {
  display: block;
  font-size: 0.64rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

.case-card .c-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.case-card .c-link i {
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.case-card:hover .c-link i {
  transform: translate(3px, -3px);
}

/* Featured case: full-width horizontal card */
@media (min-width: 992px) {
  .case-card.featured {
    flex-direction: row;
  }

  .case-card.featured .c-img {
    flex: 0 0 52%;
    aspect-ratio: auto;
    min-height: 320px;
  }

  .case-card.featured .c-body {
    justify-content: center;
    padding: 2.4rem 2.6rem;
  }

  .case-card.featured .c-name {
    font-size: 1.7rem;
  }

  .case-card.featured .c-result {
    font-size: 0.85rem;
    max-width: 420px;
    margin-top: 0.7rem;
  }

  .case-card.featured .c-foot {
    margin-top: 1.8rem;
  }
}

@media (max-width: 575.98px) {
  .case-card .c-body {
    padding: 1.15rem 1.2rem 1.25rem;
  }
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: 5.5rem 0;
}

.t-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.t-track::-webkit-scrollbar {
  display: none;
}

.t-card {
  flex: 0 0 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.t-card.dark {
  background: var(--navy-2);
  color: #fff;
  padding: 1.6rem;
  min-height: 300px;
}

.t-card.light {
  background: var(--surface-blue);
  padding: 1.6rem;
  min-height: 300px;
}

.t-card .t-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.t-card .t-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.t-card .t-role {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 0.2rem;
}

.t-card .t-photo {
  width: 92px;
  height: 76px;
  border-radius: var(--radius-md);
}

.t-card .t-quote {
  font-size: 0.75rem;
  line-height: 1.7;
  opacity: 0.75;
  margin-top: 2.2rem;
}

.t-card a.t-link {
  font-size: 0.72rem;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  margin-top: 1rem;
}

.t-card.video {
  flex-basis: 300px;
  height: 420px;
}

.t-card.video img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.t-card.video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 16, 42, 0.15),
    rgba(9, 16, 42, 0.65) 85%
  );
}

.t-card.video .v-top {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
}

.v-dur {
  font-size: 0.72rem;
  font-weight: 600;
}

.t-card.video .v-bottom {
  position: absolute;
  bottom: 1.4rem;
  left: 1.4rem;
  z-index: 2;
  color: #fff;
}

.t-card.video .v-name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.t-card.video .v-role {
  font-size: 0.7rem;
  opacity: 0.75;
}

/* ---------- BLOG ---------- */
.blog {
  padding: 4.5rem 0 6rem;
}

.blog-card .b-img {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blog-card .b-img img {
  width: 100%;
  height: 210px;
  transition: transform 0.5s;
}

.blog-card:hover .b-img img {
  transform: scale(1.05);
}

.b-date {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
}

.b-date small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.62rem;
}

.blog-card h5 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.4rem;
}

.blog-card h5 a {
  color: inherit;
}

.blog-card p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}

.b-cat {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- FOOTER ---------- */
.footer-wrap {
  padding: 0 0 2.5rem;
}

.footer {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 4rem 4rem 2rem;
  overflow: hidden;
}

.footer .f-brand {
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.footer .f-brand sup {
  font-size: 0.35em;
}

/* The managed CTA reuses a.site-nav-cta (navy pill for the light
   header) - on the navy footer card it needs the light treatment. */
.footer a.site-nav-cta {
  background: #fff;
  color: var(--navy);
}

.footer a.site-nav-cta:hover {
  background: var(--surface-blue);
  color: var(--navy);
}

.f-blurb {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.7;
  max-width: 38ch;
  margin: 1.25rem 0 0;
}

.footer h6 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1.1rem;
}

/* partials.footer-nav renders the managed footer menu as a list. */
.footer .footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer a.f-link {
  display: block;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.28rem 0;
  transition: 0.15s;
}

.footer a.f-link:hover {
  color: #fff;
}

.footer a.f-link--more {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-top: 0.5rem;
}

.footer a.f-link--more:hover {
  color: #fff;
}

.footer .f-contact {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.9;
}

/* Icon-prefixed contact rows. */
.f-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.f-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.34rem 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.6;
}

.f-contact-list li > i {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  line-height: 1.7;
  flex-shrink: 0;
}

.f-contact-list a {
  color: inherit;
}

.f-contact-list a:hover {
  color: #fff;
}

.f-contact-list .f-map,
.f-contact .f-map {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.f-contact-list .f-map:hover,
.f-contact .f-map:hover {
  color: #fff;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  transition: 0.2s;
}

.socials a:hover {
  background: #fff;
  color: var(--navy);
}

.f-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  margin: 3rem 0 1.5rem;
}

.f-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.f-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.f-bottom-left .f-legal {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
}

.f-bottom-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.f-bottom a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-left: 1.4rem;
}

.f-bottom a:hover {
  color: #fff;
}

/* ---------- MANAGED BLOCKS (site.blocks partials on the landing page) ---------- */
/* Static chrome: brand/nav strip above the managed hero. With a
           published hero first (the home template guarantees it), the
           strip overlays the hero like the design; without a hero it
           stays a solid navy bar so light text never lands on white. */
.masthead {
  background: var(--navy);
}

.masthead--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
}

.brand-logo {
  display: block;
  height: 30px;
  width: auto;
}

.brand-logo--footer {
  height: 34px;
}

.logo-row img.logo-img {
  height: 22px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(1);
}

.masthead .navbar {
  position: relative;
  z-index: 5;
}

/* Header-edge actions cluster (managed CTA) in the landing
           masthead. Below 992px it pushes to the right edge; on desktop
           the centered pill nav absorbs the free space instead. */
.masthead .site-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-inline-start: auto;
}

@media (min-width: 992px) {
  .masthead .site-nav-actions {
    margin-inline-start: 0;
  }
}

/* Language switcher - compact translation menu inside the dark
   masthead; matches the muted header phone link's chrome. */
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(9, 16, 42, 0.5);
}

.lang-switch-btn:hover,
.lang-switch-btn:focus-visible,
.lang-switch-btn.show {
  color: #fff;
}

.lang-switch-caret {
  font-size: 0.6rem;
}

.lang-switch .dropdown-menu {
  font-size: 0.85rem;
}

/* Convenience-only caveat under the language list - smaller, muted,
   wraps instead of truncating like a menu item would. */
.lang-switch-note {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: normal;
  max-width: 15rem;
  line-height: 1.45;
}

/* Google translate.goog chrome: on proxied pages the translator
   injects its own toolbar/balloon elements and shifts <body> down to
   make room. Hide the known hooks; site.js strips any other injected
   chrome node at runtime. On the origin nothing matches these. */
html {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body {
  top: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-tooltip,
.skiptranslate,
iframe[src*="translate.goog"],
iframe[src*="translate.google"] {
  display: none !important;
}

/* Hero block - reuses the landing hero chrome; the background is
           a brand-navy gradient (no stock imagery). The optional managed
           image sits on the floating card. */
.block-hero .hero-bg {
  background: radial-gradient(
    120% 130% at 50% -10%,
    #1e346f 0%,
    var(--navy) 62%
  );
}

/* Design: the tag pill sits at the hero's top-left, under the
           overlay masthead, not centered with the headline. */
.block-hero .hero-label {
  position: absolute;
  top: clamp(5rem, 11vh, 7rem);
  left: clamp(1.5rem, 6vw, 5rem);
  margin: 0;
  z-index: 5;
}

.block-hero .hero-line > :only-child {
  margin: 0 auto;
}

/* Rich text / prose blocks map onto the section rhythm. */
.block-rich-text {
  padding: 3rem 1.25rem;
}

.block-rich-text > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.block-rich-text h2,
.block-rich-text h3,
.block-rich-text h4 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  margin: 1.6rem auto 0.9rem;
}

.block-rich-text p,
.block-rich-text li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.block-rich-text a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.block-rich-text img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* Stats block -> the landing .stat/.num/.cap treatment. */
.block-stats {
  padding: 3.5rem 0;
  text-align: center;
}

.block-stats h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin: 0 auto 2.2rem;
  max-width: 720px;
}

.block-stats .stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem 3.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.block-stats .stat-value {
  display: block;
  font-family: "Sora", Arial, sans-serif;
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.block-stats .stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.5;
  max-width: 180px;
}

/* Image block: contained, rounded, captioned. */
.block-image {
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  max-width: 1140px;
}

.block-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.block-image figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

.block-image figcaption small {
  display: block;
  font-size: 0.66rem;
  margin-top: 0.15rem;
}

/* CTA block -> dark pill on a subtle band. */
.block-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  width: min(1140px, calc(100% - 2.5rem));
  margin: 1rem auto;
  padding: 2rem 2.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.block-cta img {
  max-width: 220px;
  height: auto;
  border-radius: var(--radius-md);
}

.block-cta .cta-link {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  transition: 0.2s;
}

.block-cta .cta-link:hover {
  background: var(--navy-3);
  color: #fff;
}

/* Accordion block -> svc-accordion rhythm. */
.block-accordion {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.block-accordion details {
  border: 0;
  border-bottom: 1px solid var(--line);
}

.block-accordion details:first-of-type {
  border-top: 1px solid var(--line);
}

.block-accordion summary {
  padding: 1.35rem 0;
  cursor: pointer;
  font-family: "Sora", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
}

.block-accordion summary::-webkit-details-marker {
  display: none;
}

.block-accordion summary::after {
  content: "+";
  float: right;
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1;
}

.block-accordion details[open] summary::after {
  content: "\2212";
}

.block-accordion .accordion-body {
  padding: 0 0 1.4rem;
}

.block-accordion .accordion-body p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
  max-width: 640px;
}

/* Featured sections driven by curated sets. */
.svc-accordion .svc-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

/* "Services within this practice" pill links under the accordion
   image - jump straight to the anchored checklist on the practice
   page. */
.svc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.svc-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.svc-pill:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.people {
  padding: 4.5rem 0 5.5rem;
}

.person-card {
  height: 100%;
}

.person-card .person-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding-bottom: 1.15rem;
  color: inherit;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.person-card .person-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -26px rgba(18, 35, 91, 0.22);
  color: inherit;
}

.person-card .p-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.person-card .p-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-2);
  color: rgba(255, 255, 255, 0.8);
  font-family: "Sora", Arial, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
}

.person-card .p-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 1rem 1.1rem 0;
}

.person-card .p-role {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.25rem 1.1rem 0;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .hero-line {
    padding: 0 0.5rem;
  }

  /* The updates rail drops out of the absolute corner and stacks
     in-flow after the hero copy/buttons, still right-aligned. */
  .hero-updates {
    position: static;
    width: min(460px, 100%);
    margin: 1.5rem 0 0 auto;
  }

  .step {
    flex-basis: 45%;
  }

  .footer {
    padding: 3rem 2rem 1.6rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: clamp(1.35rem, 6.2vw, 1.7rem);
    letter-spacing: -0.035em;
  }

  .hero-copy {
    font-size: 0.76rem;
    line-height: 1.55;
    margin-top: 1rem;
  }

  .hu-item {
    gap: 0.75rem;
  }

  .hu-thumb {
    width: 54px;
    height: 48px;
  }

  .hero-word {
    font-size: clamp(1.5rem, 7vw, 2.1rem);
  }

  .hero-card {
    width: 40vw;
  }

  .svc-accordion .accordion-button {
    gap: 1rem;
    padding: 1.2rem 0;
  }

  .svc-icon {
    width: 42px;
    height: 42px;
  }

  .svc-name {
    font-size: 1.25rem;
    white-space: normal;
  }

  .step {
    flex-basis: 80%;
  }

  .t-card {
    flex-basis: 82vw;
  }
}

/* ==================================================================
   PREMIUM POLISH - motion + chrome refinements.
   JS hooks live in site.home's scripts section (IntersectionObserver
   reveals/counters, masthead scroll state, marquee sizing); every
   feature degrades gracefully when JS is off.
   ================================================================== */

html {
  scroll-behavior: smooth;
  scrollbar-color: #a8b4ce var(--bg);
  scrollbar-width: thin;
}

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

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #a8b4ce;
  border: 2px solid var(--bg);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8a97b8;
}

/* ---------- scroll reveals ----------
   JS tags block children with [data-reveal] + an inline
   transition-delay stagger, adds .is-inview on intersection, then
   removes the attribute so cards' own hover transitions return. */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

/* ---------- hero entrance (pure CSS staggered load-in) ---------- */
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.block-hero .hero-label {
  animation: hero-in 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both;
}

.block-hero .hero-title {
  animation: hero-in 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) 0.24s both;
}

.block-hero .hero-line > * {
  animation: hero-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.block-hero .hero-line > :nth-child(1) {
  animation-delay: 0.5s;
}

.block-hero .hero-line > :nth-child(2) {
  animation-delay: 0.62s;
}

.block-hero .hero-line > :nth-child(3) {
  animation-delay: 0.74s;
}

.block-hero .hero-copy {
  animation: hero-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.92s both;
}

.block-hero .hero-arrows {
  animation: hero-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 1.05s both;
}

.block-hero .hero-updates {
  animation: hero-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 1.15s both;
}

/* Ken Burns drift on the active hero backdrop layer. */
.hero-bg-layer.active {
  animation: hero-zoom 9s ease-out forwards;
}

@keyframes hero-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}

/* ---------- masthead scroll state (homepage overlay only) ---------- */
.masthead .navbar {
  transition: padding 0.3s ease;
}

.masthead--overlay {
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.masthead--overlay.is-scrolled {
  position: fixed;
}

/* ::before carries the frosted layer - backdrop-filter on the header
   itself would break the fixed-position mobile nav panel inside it. */
.masthead--overlay.is-scrolled::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(18, 35, 91, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.masthead--overlay.is-scrolled .navbar {
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem;
}

.masthead--overlay.is-hidden {
  transform: translateY(-110%);
}

/* ---------- client logo marquee (about block) ----------
   PHP renders two identical .logo-row groups; JS clones more if the
   group can't cover the container, then translates by exactly one
   group width (--marquee-shift) so the loop is seamless. */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}

.logo-marquee-track {
  display: flex;
  width: max-content;
}

.logo-marquee .logo-row {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 3rem;
  padding-right: 3rem;
}

/* Without JS the duplicate group stays hidden - static single row. */
.logo-marquee:not(.is-live) .logo-row[aria-hidden="true"] {
  display: none;
}

.logo-marquee.is-live .logo-marquee-track {
  animation: logo-marquee var(--marquee-speed, 28s) linear infinite;
  will-change: transform;
}

.logo-marquee.is-live:hover .logo-marquee-track {
  animation-play-state: paused;
}

@keyframes logo-marquee {
  to {
    transform: translateX(calc(var(--marquee-shift, 50%) * -1));
  }
}

/* ---------- micro-interactions ---------- */
.t-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.t-card:hover {
  transform: translateY(-4px);
}

.t-card.dark:hover {
  box-shadow: 0 30px 55px -24px rgba(18, 35, 91, 0.6);
}

.t-card.light:hover {
  box-shadow: 0 24px 48px -24px rgba(18, 35, 91, 0.28);
}

.step {
  transition: border-color 0.3s ease;
}

.step:hover {
  border-left-color: rgba(255, 255, 255, 0.45);
}

.step:hover .step-num {
  border-color: #fff;
  color: #fff;
}

.person-card .p-img {
  transition: transform 0.55s ease;
}

.person-card .person-link:hover .p-img {
  transform: scale(1.045);
}

.blog-card {
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
}

.svc-accordion .svc-name {
  transition: transform 0.25s ease;
}

.svc-accordion .accordion-button:hover .svc-name {
  transform: translateX(6px);
}

.svc-accordion .accordion-button:hover .svc-icon {
  border-color: #93a1c4;
}

#main-content .link-dark {
  transition: text-decoration-color 0.25s ease;
}

#main-content .link-dark:hover {
  text-decoration-color: var(--navy);
}

.footer a.f-link {
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.footer a.f-link:hover {
  transform: translateX(3px);
}

/* ---------- background stripes (landing only) ----------
   Quiet brand texture so the long light run between hero and footer
   doesn't read flat: a faint vertical "pinstripe" underlay in navy
   hairlines across the page, plus a few diagonal stripe accents parked
   at section edges. Scoped to layouts.landing's .landing-page body
   class - inner pages (layouts.site) stay flat. Sections that paint
   their own background (.hero, .process, .footer) cover the underlay. */
.landing-page {
  background-image: repeating-linear-gradient(
    90deg,
    var(--pinstripe) 0,
    var(--pinstripe) 1px,
    transparent 1px,
    transparent 120px
  );
}

/* Diagonal accents. Each section is position:relative so its ::before
   anchors inside it; the .container gets position:relative too - both
   are positioned siblings and ::before is generated as the first
   child, so the container paints on top and text/cards stay clean. */
.landing-page .about,
.landing-page .process,
.landing-page .testimonials {
  position: relative;
}

.landing-page .about > .container,
.landing-page .process > .container-fluid,
.landing-page .testimonials > .container {
  position: relative;
}

.landing-page .about::before,
.landing-page .process::before,
.landing-page .testimonials::before {
  content: "";
  position: absolute;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(18, 35, 91, 0.05) 0,
    rgba(18, 35, 91, 0.05) 2px,
    transparent 2px,
    transparent 11px
  );
}

.landing-page .about::before {
  top: 0;
  right: 0;
  width: min(38vw, 440px);
  height: 290px;
  -webkit-mask-image: linear-gradient(225deg, #000 30%, transparent 78%);
  mask-image: linear-gradient(225deg, #000 30%, transparent 78%);
}

.landing-page .testimonials::before {
  bottom: 0;
  left: 0;
  width: min(42vw, 480px);
  height: 320px;
  -webkit-mask-image: linear-gradient(45deg, #000 30%, transparent 78%);
  mask-image: linear-gradient(45deg, #000 30%, transparent 78%);
}

/* Same motif in white on the navy process band. */
.landing-page .process::before {
  inset: 0 0 0 auto;
  width: min(45vw, 560px);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.055) 0,
    rgba(255, 255, 255, 0.055) 2px,
    transparent 2px,
    transparent 12px
  );
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-bg-layer.active {
    animation: none;
  }

  .logo-marquee .logo-marquee-track {
    animation: none;
  }
}
