/* ==========================================================================
   BHC Law Firm
   ========================================================================== */

:root {
  --paper: #F3EEE5;
  --paper-2: #EAE3D6;
  --ink: #131933;
  --navy: #1E2648;
  --navy-deep: #0F1430;
  --gold: #BB9555;
  --gold-ink: #8E6B38;   /* gold for text on light backgrounds (AA) */

  --fg: var(--ink);
  --accent: var(--gold-ink);
  --muted: rgba(19, 25, 51, 0.64);
  --line: rgba(19, 25, 51, 0.14);

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --h: 76px;
  --section: clamp(96px, 13vw, 200px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --float: clamp(16px, 2.4vw, 32px); /* WhatsApp button inset */

  /* logo parts */
  --lg-b: var(--navy);
  --lg-c: var(--gold);
  --lg-ink: var(--paper);
}

.is-dark {
  --fg: var(--paper);
  --accent: var(--gold);
  --muted: rgba(243, 238, 229, 0.62);
  --line: rgba(243, 238, 229, 0.16);
  background: var(--navy-deep);
  color: var(--paper);
}

/* Base ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(15px, 0.35vw + 13.6px, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* subtle paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--navy-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: 1520px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.i { width: 1.1em; height: 1.1em; flex: none; }
.i--flip { transform: scaleX(-1); }

.sq {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  background: var(--gold);
  flex: none;
}

/* Typography ---------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  background: var(--gold);
  flex: none;
}
.eyebrow .idx { color: var(--fg); font-variant-numeric: tabular-nums; }
.eyebrow .idx::after { content: " —"; color: var(--muted); }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.8vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h2 em, .hero__title em, .statement em, .footer__title em,
.founder__quote em, .quote em, .modal__title em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  line-height: 1.45;
  color: var(--fg);
}

.u {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.u:hover, .u:focus-visible { background-size: 100% 1px; }

/* split text line masks need room for descenders */
.split-mask { padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* Buttons ------------------------------------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-fill: var(--gold);
  --btn-fill-fg: var(--navy-deep);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--btn-fill-fg); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }

.is-dark .btn { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy-deep); --btn-fill: var(--paper); --btn-fill-fg: var(--navy-deep); }
.is-dark .btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy-deep); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 0.875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.link-arrow .i { transition: transform 0.5s var(--ease); }
.link-arrow:hover .i { transform: translateX(5px); }

.round {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}
.round:hover { background: var(--gold); color: var(--navy-deep); box-shadow: inset 0 0 0 1px var(--gold); }

/* Loader -------------------------------------------------------------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  --lg-b: var(--navy);
  --lg-c: var(--gold);
  --lg-ink: var(--paper);
}
html:not(.motion) .loader { display: none; }
.loader__logo { width: min(64vw, 420px); overflow: visible; }
.loader__meta {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(20px, 3vw, 40px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.loader__count {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Cursor -------------------------------------------------------------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: width 0.5s var(--ease), height 0.5s var(--ease), margin 0.5s var(--ease), background-color 0.3s, opacity 0.3s;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(187, 149, 85, 0.28); }
.cursor.has-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gold); }
.cursor__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-deep);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor.has-label .cursor__label { opacity: 1; }

/* Header -------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--pad);
  color: var(--ink);
  transition: transform 0.7s var(--ease), color 0.4s;
  --lg-b: var(--navy);
  --lg-c: var(--gold);
  --lg-ink: var(--paper);
  --glass: rgba(243, 238, 229, 0.62);
  --line: rgba(19, 25, 51, 0.12);
}
.site-header[data-theme="dark"] {
  color: var(--paper);
  --lg-b: var(--paper);
  --lg-ink: var(--navy-deep);
  --glass: rgba(15, 20, 48, 0.55);
  --line: rgba(243, 238, 229, 0.16);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
}
.logo { display: block; width: 94px; height: 38px; }
.brand__wordmark {
  display: block;
  margin-top: 5px;
  margin-right: -0.478em;
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.478em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.68;
  white-space: nowrap;
}

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background 0.4s;
}
.nav a {
  position: relative;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.35s, color 0.35s;
}
.nav a:hover { background: var(--gold); color: var(--navy-deep); }

.header__actions { display: flex; align-items: center; gap: 10px; }

/* Scrolling down tucks the brand and the CTA away; the nav pill stays. */
.brand, .header__cta {
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}
.site-header.is-tucked .brand,
.site-header.is-tucked .header__cta {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.site-header .btn { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.site-header[data-theme="dark"] .btn { --btn-bg: var(--paper); --btn-fg: var(--ink); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 0.875rem;
  font-weight: 500;
}
.menu-toggle i {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}
.menu-toggle i + i { margin-left: -26px; transform: translateY(5px); }
.menu-toggle i:first-of-type { transform: translateY(-2px); }
.menu-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(1px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i + i { transform: translateY(1px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--h) + 32px) var(--pad) 32px;
  background: var(--navy-deep);
  color: var(--paper);
  overflow-y: auto;
}
.menu__links { display: grid; }
.menu__links a {
  display: block;
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 11vw, 5rem);
  line-height: 1.08;
  border-bottom: 1px solid rgba(243, 238, 229, 0.12);
}
.menu__links a span { display: block; padding-block: 0.08em; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; color: rgba(243, 238, 229, 0.7); }
.menu__foot .btn { width: 100%; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .header__cta { display: none; }
}

/* Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--h) + clamp(16px, 4vh, 48px));
  overflow: hidden;
}

.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vh, 40px);
}

.hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: end;
  gap: 28px clamp(32px, 5vw, 88px);
}
.hero__copy { container-type: inline-size; }
.hero__eyebrow { margin-bottom: clamp(18px, 3vh, 32px); }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  /* sized to its column so the longest line never wraps */
  font-size: clamp(2.6rem, 13.4cqi, 6rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.mask {
  display: block;
  overflow: hidden;
  padding: 0 0.06em 0.16em 0;
  margin-bottom: -0.16em;
}
.line { display: block; }

.hero__side { display: grid; gap: 24px; justify-items: start; padding-bottom: 0.4em; }
.hero__lead { max-width: 34ch; font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px 22px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Skyline line art */

.skyline {
  position: relative;
  flex: 1;
  min-height: clamp(200px, 36vh, 520px);
  margin: 0;
}
.skyline__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  --sw: 0.62;
}
.skyline__svg path { stroke-linejoin: round; stroke-linecap: round; }

.skyline__sun { fill: none; stroke: var(--gold); stroke-width: calc(var(--sw) * 1.1); }

/* Each layer's fill carries a paper-coloured halo that hides the lines of the
   layers behind it, so every edge is drawn exactly once. */
.sky-fill { fill: var(--paper); fill-rule: evenodd; stroke: var(--paper); stroke-width: calc(var(--sw) * 4); stroke-linejoin: round; }
.sky-line { fill: none; stroke: var(--navy); }
.skyline__back .sky-line { stroke-width: var(--sw); stroke-opacity: 0.42; }
.skyline__mid .sky-line { stroke-width: calc(var(--sw) * 1.25); stroke-opacity: 0.78; }
.skyline__front .sky-fill { fill: var(--navy); paint-order: stroke fill; }
.skyline__front .sky-line { stroke-width: calc(var(--sw) * 1.4); }
.skyline__bird { fill: var(--navy); }

/* The flag stirs in the wind: a slow lift from the hoist, a quicker ripple
   running out across the cloth, so the two never quite repeat together. */
.skyline__flag, .skyline__flag > * { transform-box: fill-box; transform-origin: 0% 50%; }
.skyline__flag { animation: flag-lift 5.2s ease-in-out infinite; }
.skyline__flag > * { animation: flag-ripple 3.1s ease-in-out infinite; }
@keyframes flag-lift {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-5deg); }
}
@keyframes flag-ripple {
  0%, 100% { transform: skewY(0deg) scaleX(1); }
  28% { transform: skewY(5deg) scaleX(0.96); }
  62% { transform: skewY(-4deg) scaleX(0.99); }
}

.skyline__ground { stroke: var(--gold); stroke-width: calc(var(--sw) * 1.6); }

.skyline__hits rect { fill: transparent; cursor: default; }
@media (hover: none) { .skyline__hits { display: none; } }

.skyline__tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--navy-deep);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 10px));
  transition: opacity 0.3s;
}
.skyline__tip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.skyline__tip.is-visible { opacity: 1; }

@media (max-width: 960px) {
  .hero__top { grid-template-columns: 1fr; }
  .hero__side { padding-bottom: 0; }
}
@media (max-width: 700px) {
  .skyline { min-height: 230px; }
  /* let the skyline bleed past the edges so the landmarks stay legible */
  .skyline__svg { left: -45%; width: 190%; --sw: 1; }
  .hero__base span:last-child { display: none; }
}

/* Split scene --------------------------------------------------------- */

.split { position: relative; }
.split__stage {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--h) + 24px) 64px;
}
.statement {
  max-width: 21em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.9vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.statement .word { will-change: opacity; }

.split__curtain { display: none; }
.motion .split__curtain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(20px, 3vw, 40px);
  pointer-events: none;
  --lg-b: var(--navy);
  --lg-c: var(--gold);
  --lg-ink: var(--paper);
}
.split__logo {
  /* 491.5:268.4 lockup — cap the height so the taller mark still clears the caption */
  width: min(80vw, 1060px);
  max-height: 58svh;
  overflow: visible;
  will-change: transform;
}
.split__caption {
  display: flex;
  gap: 1.5em;
  align-items: baseline;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Services ------------------------------------------------------------ */

.services { position: relative; }
.hscroll {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--h) + 24px) 56px;
  overflow: hidden;
}
.hscroll__track {
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 1.6vw, 24px);
  width: max-content;
  padding-inline: var(--pad);
  will-change: transform;
}
.hpanel {
  width: min(86vw, 860px);
  padding-right: clamp(24px, 6vw, 110px);
  display: flex;
  flex-direction: column;
}
.hpanel .h2 { font-size: clamp(2.4rem, 4.8vw, 5.2rem); }
.pillars {
  list-style: none;
  margin: auto 0 0;
  padding: clamp(32px, 5vh, 64px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.pillars li { padding-top: 16px; border-top: 1px solid var(--line); }
.pillars h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.pillars p { font-size: 0.9rem; color: var(--muted); }

.svc {
  position: relative;
  width: clamp(300px, 28vw, 430px);
  min-height: min(70svh, 640px);
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.2vw, 34px);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.6s var(--ease);
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.8s var(--ease);
}
.svc:hover { color: var(--navy-deep); --muted: rgba(15, 20, 48, 0.72); --line: rgba(15, 20, 48, 0.3); }
.svc:hover::before { transform: scaleY(1); }
.svc__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.svc__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(4rem, 6vw, 6.5rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: var(--gold);
  transition: color 0.6s var(--ease);
}
.svc:hover .svc__num { color: var(--navy-deep); }
.svc__title {
  margin: auto 0 18px;
  padding-top: 40px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 3vw, 3.3rem);
  line-height: 0.98;
}
.svc__text { margin-bottom: 26px; font-size: 0.95rem; color: var(--muted); }
.svc .link-arrow { align-self: flex-start; }

.hscroll__progress {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 28px;
  height: 1px;
  background: var(--line);
}
.hscroll__progress span {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .hscroll { padding-block: var(--section); }
  .hscroll__track { flex-direction: column; width: auto; }
  .hpanel { width: auto; padding-right: 0; margin-bottom: 32px; }
  .pillars { grid-template-columns: 1fr; }
  .svc { width: auto; min-height: 0; }
  .svc__title { padding-top: 56px; }
  .hscroll__progress { display: none; }
}

/* Marquee ------------------------------------------------------------- */

.marquee {
  background: var(--gold);
  color: var(--navy-deep);
  padding-block: clamp(18px, 2.4vw, 32px);
  overflow: hidden;
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__list {
  list-style: none;
  margin: 0;
  padding: 0 clamp(20px, 3vw, 44px) 0 0;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 1.1;
  white-space: nowrap;
}
.marquee__list .sq { width: 0.22em; height: 0.22em; background: var(--navy-deep); }
html:not(.motion) .marquee__track { width: auto; padding-inline: var(--pad); }
html:not(.motion) .marquee__list { flex-wrap: wrap; white-space: normal; gap: 8px 24px; font-size: clamp(1.6rem, 3vw, 2.6rem); }
html:not(.motion) .marquee__list[aria-hidden] { display: none; }

/* Finder -------------------------------------------------------------- */

.finder { background: var(--paper-2); padding-block: var(--section); }
.finder__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "intro form" "result form";
  grid-template-rows: auto 1fr;
  gap: 48px clamp(32px, 7vw, 120px);
}
.finder__intro { grid-area: intro; }
.finder__lead { margin-top: 24px; max-width: 38ch; color: var(--muted); }
.finder__form { grid-area: form; }
.finder fieldset { border: 0; margin: 0 0 44px; padding: 0; min-width: 0; }
.finder legend {
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin-bottom: 18px;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.finder legend b {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.95rem;
  transition: background 0.35s, color 0.35s, box-shadow 0.35s;
}
.chip:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.result {
  grid-area: result;
  align-self: start;
  position: sticky;
  top: calc(var(--h) + 24px);
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: clamp(24px, 3vw, 44px);
  background: var(--navy-deep);
  color: var(--paper);
  --muted: rgba(243, 238, 229, 0.62);
}
.result__kicker { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.result__kicker span { color: var(--gold); }
.result__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3.4vw, 3.4rem); line-height: 1; }
.result__text { color: var(--muted); }
.result__stat { display: flex; align-items: center; gap: 12px; padding-block: 14px 8px; border-top: 1px solid rgba(243, 238, 229, 0.16); width: 100%; font-size: 0.9rem; }
.result__stat::before { content: ""; width: 8px; height: 8px; background: var(--gold); flex: none; }

@media (max-width: 900px) {
  .finder__grid { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "result"; grid-template-rows: auto; }
  .result { position: relative; top: 0; }
}

/* Founder ------------------------------------------------------------- */

.founder { padding-block: var(--section); }
.founder--tint { background: var(--paper-2); }
.founder__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px clamp(32px, 8vw, 140px);
  align-items: center;
}
.founder--flip .founder__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.founder--flip .founder__media { order: 2; }
.founder__media, .about__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d8d6d2;
}
.parallax-img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  max-width: none;
  object-fit: cover;
}
.founder__media img { object-position: 50% 30%; }
.founder__quote {
  margin-bottom: clamp(28px, 4vw, 48px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.founder__copy { display: grid; gap: 1em; max-width: 52ch; color: var(--muted); }
.founder__sign { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-top: 36px; color: var(--muted); font-size: 0.9rem; }
.founder__sign .sig { font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--fg); }
.founder__count { display: inline-flex; align-items: center; gap: 0.9em; font-variant-numeric: tabular-nums; }
.founder__count::before { content: ""; width: 28px; height: 1px; background: var(--line); }

@media (max-width: 900px) {
  .founder__grid, .founder--flip .founder__grid { grid-template-columns: 1fr; }
  .founder__media { max-width: 520px; }
  .founder--flip .founder__media { order: 0; }
}

/* About --------------------------------------------------------------- */

.about { padding-block: var(--section); }
.about__head { margin-bottom: clamp(56px, 8vw, 120px); }
.about__head .h2 { max-width: 15em; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px clamp(32px, 7vw, 120px);
  align-items: start;
}
.about__media { aspect-ratio: 1024 / 924; }
.about__media img { object-position: 50% 20%; }
.mv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(40px, 5vw, 64px);
}
.mv > div { padding-top: 20px; border-top: 1px solid var(--line); }
.mv__n { font-family: var(--serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--gold); }
.mv h3 { margin: 14px 0 10px; font-size: 1.05rem; font-weight: 600; }
.mv p { color: var(--muted); font-size: 0.95rem; }

.values { margin-top: clamp(80px, 11vw, 170px); }
.values__list { list-style: none; margin: 0; padding: 0; counter-reset: v; border-bottom: 1px solid var(--line); }
.values__list li {
  counter-increment: v;
  display: grid;
  grid-template-columns: clamp(48px, 8vw, 120px) minmax(0, 1fr);
  align-items: baseline;
  padding-block: clamp(20px, 2.4vw, 32px);
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.8rem);
  line-height: 1.1;
  transition: color 0.4s, padding-left 0.6s var(--ease);
}
.values__list li::before {
  content: counter(v, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}
@media (hover: hover) {
  .values__list li:hover { color: var(--gold); padding-left: 16px; }
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mv { grid-template-columns: 1fr; }
}

/* Team ---------------------------------------------------------------- */

.team { padding-block: var(--section); }
.team__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 32px clamp(32px, 7vw, 120px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 100px);
}
.team__note { display: grid; gap: 1em; color: var(--muted); }
.team__note strong { color: var(--ink); font-weight: 600; }

.team__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px) clamp(12px, 1.4vw, 22px);
}
.member__btn { display: block; width: 100%; text-align: left; cursor: pointer; }
.member__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #cfcfcd;
}
.member__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  transition: filter 0.9s var(--ease), transform 1.2s var(--ease);
}
@media (hover: hover) {
  .member__media img { filter: grayscale(1); }
  .member__btn:hover img, .member__btn:focus-visible img { filter: grayscale(0); transform: scale(1.06); }
}
.member__plus {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
  transform: scale(0);
  transition: transform 0.6s var(--ease);
}
.member__plus::before, .member__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: var(--ink);
}
.member__plus::after { transform: rotate(90deg); }
.member__btn:hover .member__plus, .member__btn:focus-visible .member__plus { transform: scale(1); }
@media (hover: none) { .member__plus { transform: scale(1); } }

.member__meta { display: grid; gap: 2px; padding-top: 14px; }
.member__name { font-family: var(--serif); font-size: clamp(1.35rem, 1.8vw, 1.9rem); line-height: 1.1; }
.member__role { font-size: 0.82rem; color: var(--muted); }

.team__cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  padding: clamp(24px, 3vw, 48px);
  background: var(--navy-deep);
  color: var(--paper);
}
.team__cta p { max-width: 24ch; font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.8rem); line-height: 1.05; }

@media (max-width: 1000px) {
  .team__head { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Testimonials -------------------------------------------------------- */

.quotes { padding-block: var(--section); overflow: hidden; }
.quotes__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 24px; margin-bottom: clamp(40px, 6vw, 88px); }
.quotes__head .eyebrow { margin: 0; }
.quotes__nav { display: flex; align-items: center; gap: 16px; }
.quotes__index { font-size: 0.8rem; letter-spacing: 0.14em; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
html:not(.js) .quotes__nav { display: none; }
.js .quotes__stage { display: grid; }
.js .quote { grid-area: 1 / 1; }
.quote { display: grid; grid-template-columns: clamp(48px, 9vw, 150px) minmax(0, 1fr); gap: 0 clamp(8px, 2vw, 32px); }
html:not(.js) .quote + .quote { margin-top: 80px; }
.quote__mark { font-family: var(--serif); font-size: clamp(6rem, 13vw, 14rem); line-height: 0.7; color: var(--gold); }
.quote blockquote p {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5.6vw, 6rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.quote--long blockquote p { font-size: clamp(1.6rem, 3vw, 3.2rem); line-height: 1.1; max-width: 32em; }
.quote figcaption { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-top: clamp(28px, 4vw, 48px); color: var(--muted); }
.quote figcaption strong { color: var(--paper); font-weight: 600; }

/* News ---------------------------------------------------------------- */

.news { padding-block: var(--section); }
.news__head { margin-bottom: clamp(48px, 7vw, 100px); }
.news__head .h2 { max-width: 13em; }
.news__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(32px, 5vw, 80px); align-items: start; }
.news__media { display: block; overflow: hidden; background: var(--paper-2); }
.news__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news a:hover .news__media img { transform: scale(1.06); }
.news__date { display: block; margin-bottom: 8px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.news__title {
  display: inline;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.1vw, 2.2rem);
  line-height: 1.12;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.7s var(--ease);
}
.news a:hover .news__title { background-size: 100% 1px; }

.news__feature .news__media { aspect-ratio: 4 / 5; margin-bottom: 20px; }
.news__feature .news__title { font-size: clamp(1.9rem, 3vw, 3rem); }
.news__excerpt { margin-top: 14px; color: var(--muted); max-width: 48ch; }

.news__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.news__item a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(110px, 14vw, 200px);
  gap: 24px;
  align-items: center;
  padding-block: clamp(18px, 2.2vw, 28px);
  border-top: 1px solid var(--line);
}
.news__item .news__media { aspect-ratio: 4 / 3; }

.affil { margin-top: clamp(80px, 10vw, 150px); }
.affil__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.affil__list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px) 12px;
  height: 100%;
  padding: clamp(28px, 3vw, 40px) 16px 20px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, padding-left 0.5s var(--ease);
}
/* Logos sit in a fixed-height well; --lh balances each mark's optical weight. */
.affil__logo {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  height: 76px;
}
.affil__logo img {
  height: var(--lh, 40px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  transition: transform 0.6s var(--ease);
}
.affil__logo--crest { --lh: 76px; }
.affil__logo--dcbar { --lh: 42px; }
.affil__logo--vba   { --lh: 37px; }
.affil__logo--uscc  { --lh: 44px; }
.affil__logo--seal  { --lh: 50px; }
.affil__logo--isoa  { --lh: 48px; }
.affil__logo--md    { --lh: 25px; }
.affil__name { font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.3s; }
.affil__list .i { color: var(--gold-ink); transition: transform 0.5s var(--ease); }
.affil__list a:hover { padding-left: 10px; }
.affil__list a:hover .affil__name { color: var(--fg); }
.affil__list a:hover .i { transform: translate(3px, -3px); }

@media (max-width: 900px) {
  .news__grid { grid-template-columns: 1fr; }
  .affil__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .affil__list li:nth-child(2n) a { padding-left: 16px; }
}
@media (max-width: 480px) {
  .affil__list { grid-template-columns: 1fr; }
  .affil__list li:nth-child(2n) a { padding-left: 0; }
}

/* FAQ ----------------------------------------------------------------- */

.faq { padding-block: var(--section); background: var(--paper-2); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(32px, 7vw, 120px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--h) + 24px); }
.faq__lead { margin-top: 24px; max-width: 36ch; color: var(--muted); }
.faq__list { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item h3 { font: inherit; }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: clamp(20px, 2.4vw, 30px);
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.15;
}
.faq__icon {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.4s, box-shadow 0.4s;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  margin: -0.75px 0 0 -7px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--ink); color: var(--paper); box-shadow: none; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__q:hover .faq__icon { box-shadow: inset 0 0 0 1px var(--ink); }
.js .faq__a { height: 0; overflow: hidden; }
.faq__a p { padding-bottom: clamp(20px, 2.4vw, 30px); max-width: 60ch; color: var(--muted); }

@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

/* Contact ------------------------------------------------------------- */

.contact { padding-block: var(--section); }
.contact__head { margin-bottom: clamp(48px, 7vw, 100px); }
.contact__head .h2 { max-width: 13em; }

.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); }
.office {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: clamp(280px, 26vw, 360px);
  padding: clamp(22px, 2.2vw, 34px);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.5s;
}
.office:hover { background: rgba(243, 238, 229, 0.04); }
.office__top { display: flex; justify-content: space-between; gap: 12px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.office__time { color: var(--gold); font-variant-numeric: tabular-nums; }
.office__city { margin-top: auto; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3.2vw, 3.4rem); line-height: 1; }
.office address { font-style: normal; color: var(--muted); }
.office__links { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.92rem; }

.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(32px, 7vw, 120px); margin-top: clamp(80px, 10vw, 150px); }
.contact__mail {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 1;
  color: var(--gold);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.7s var(--ease);
}
.contact__mail:hover { background-size: 100% 2px; }
.contact__direct > p:last-child { color: var(--muted); max-width: 36ch; }

@media (max-width: 900px) {
  .offices { grid-template-columns: 1fr; }
  .office { min-height: 0; }
  .office__city { margin-top: 24px; }
  .contact__grid { grid-template-columns: 1fr; }
}

/* Forms --------------------------------------------------------------- */

.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input::placeholder { color: var(--muted); opacity: 0.6; }
.is-dark .field input, .is-dark .field textarea { color-scheme: dark; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form__status { font-size: 0.9rem; color: var(--muted); }
.form__status.is-error { color: #A3312A; }
.is-dark .form__status.is-error { color: #F2A59C; }
.form button:disabled { opacity: 0.6; cursor: wait; }
/* A field only bots fill in; kept out of sight and out of reach of the keyboard */
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
}

/* Footer -------------------------------------------------------------- */

.footer {
  padding-top: var(--section);
  overflow: hidden;
  --lg-b: var(--paper);
  --lg-c: var(--gold);
  --lg-ink: var(--navy-deep);
}
.footer__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding-bottom: clamp(64px, 8vw, 120px);
}
.footer__title {
  max-width: 11em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 9.4rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.round-btn {
  display: grid;
  place-items: center;
  width: clamp(140px, 13vw, 196px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  transition: background 0.4s;
}
.round-btn:hover { background: var(--paper); }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-block: 48px;
  border-top: 1px solid var(--line);
}
.footer__h { margin-bottom: 16px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.footer__logo { padding-inline: var(--pad); padding-top: clamp(24px, 4vw, 64px); }
.footer__logo svg { display: block; width: 100%; height: auto; overflow: visible; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px 36px;
  padding-right: max(var(--pad), calc(var(--float) + 72px)); /* clear of the WhatsApp button */
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 800px) {
  .footer__cta { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.footer__cols a[aria-current] { color: var(--gold); }

/* Legal pages --------------------------------------------------------- */

.page-hero {
  padding-top: calc(var(--h) + clamp(72px, 11vw, 180px));
  padding-bottom: clamp(48px, 6vw, 88px);
}
.page-hero .h2 { max-width: 9em; }
.page-hero__lead { max-width: 40ch; margin-top: clamp(24px, 3vw, 40px); }
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.page-hero__meta b { font-weight: 500; color: var(--fg); }

.legal { padding-bottom: var(--section); }
.legal__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: 48px clamp(32px, 7vw, 120px);
  align-items: start;
}
.legal__toc { position: sticky; top: calc(var(--h) + 24px); }
.legal__toc .eyebrow { margin-bottom: 16px; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.legal__toc li { counter-increment: toc; border-top: 1px solid var(--line); }
.legal__toc a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-block: 11px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s, padding-left 0.5s var(--ease);
}
.legal__toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.legal__toc a:hover { color: var(--fg); }
.legal__toc a[aria-current] { color: var(--fg); padding-left: 10px; }

.legal__body { max-width: 72ch; counter-reset: sec; }
.legal__section {
  counter-increment: sec;
  padding-block: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--h) + 24px);
}
.legal__section:first-child { padding-top: 0; border-top: 0; }
.legal__section h2 {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  line-height: 1.05;
}
.legal__section h2::before {
  content: counter(sec, decimal-leading-zero);
  flex: none;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.legal__section p, .legal__section li { color: var(--muted); }
.legal__section p + p, .legal__section p + ul, .legal__section ul + p { margin-top: 1em; }
.legal__section ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal__section li::marker { color: var(--gold); }
.legal__section a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

.legal__contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 40px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(28px, 3.4vw, 48px);
}
.legal__contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3vw, 3rem); line-height: 1; text-wrap: balance; }
.legal__contact h2 em { font-style: italic; color: var(--accent); }
.legal__contact p { margin-top: 12px; color: var(--muted); }
.legal__contact p a { color: var(--fg); }

@media (max-width: 900px) {
  .legal__grid { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
  .legal__contact { grid-template-columns: 1fr; justify-items: start; }
}

/* News pages: /news, articles, and the home page's link to them ------- */

.news__side { display: grid; gap: clamp(28px, 3vw, 40px); justify-items: start; align-content: start; }
.news__side .news__list { width: 100%; }

.news--page { padding-top: 0; }
.news--more { border-top: 1px solid var(--line); }
.news__head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; }
.page-hero .news-hero__title { max-width: 13em; }

.news-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 88px) clamp(24px, 3vw, 48px);
}
.news-card a { display: block; }
.news-card .news__media { aspect-ratio: 4 / 3; margin-bottom: 20px; }
.news-card .news__title { font-size: clamp(1.45rem, 1.9vw, 2rem); }
.news-card .news__excerpt {
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1000px) { .news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-cards { grid-template-columns: 1fr; } }

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: clamp(56px, 7vw, 100px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.pager span:last-child { justify-self: end; }
.pager .link-arrow { color: var(--fg); }

/* An article */

.page-hero .article-hero__title { max-width: 20em; font-size: clamp(2.3rem, 4.6vw, 4.6rem); line-height: 1.02; }
.page-hero .eyebrow a { color: var(--fg); }

.article { padding-bottom: var(--section); }
.article__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: 48px clamp(32px, 7vw, 120px);
  align-items: start;
}
.article__aside { position: sticky; top: calc(var(--h) + 24px); display: grid; gap: 32px; justify-items: start; }
.article__aside > div { width: 100%; }
.article__aside .eyebrow { margin-bottom: 14px; }
.share { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.share a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 11px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s, padding-left 0.5s var(--ease);
}
.share a:hover { color: var(--fg); padding-left: 10px; }
.share .i { color: var(--gold-ink); }

.article__main { max-width: 760px; min-width: 0; }
.article__cover { margin-bottom: clamp(36px, 4vw, 56px); }
.article__cover img { width: auto; max-width: 100%; height: auto; max-height: 82vh; background: var(--paper-2); }

/* The post text, as written in the admin */
.prose { font-size: clamp(1.02rem, 0.3vw + 0.95rem, 1.15rem); line-height: 1.75; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 1.8em; font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 2.8vw, 2.7rem); line-height: 1.08; }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; transition: color 0.3s; }
.prose a:hover { color: var(--gold-ink); }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--gold-ink); }
.prose blockquote {
  margin: 1.8em 0;
  padding-left: clamp(18px, 2vw, 28px);
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.25;
}
.post-media { margin-block: 2em; }
.post-media img, .post-media video { display: block; width: 100%; height: auto; background: var(--paper-2); }
.post-media--embed { aspect-ratio: 16 / 9; background: var(--navy-deep); }
.post-media--embed iframe { display: block; width: 100%; height: 100%; border: 0; }

.article__gallery { margin-top: clamp(48px, 6vw, 80px); }
.article__h { margin-bottom: 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.4vw, 2.4rem); line-height: 1.1; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.05); }

@media (max-width: 900px) {
  .article__grid { grid-template-columns: 1fr; }
  .article__aside { position: static; order: 2; }
}
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Gallery photos, full size */
.lightbox {
  width: 100vw;
  height: 100svh;
  margin: 0;
  background: rgba(10, 13, 32, 0.96);
  color: var(--paper);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100svh - 140px); width: auto; height: auto; }
.lightbox .modal__close { position: fixed; top: 20px; right: 20px; }
.lightbox__nav {
  position: fixed;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(243, 238, 229, 0.3);
  color: var(--paper);
  transition: background 0.3s, color 0.3s;
}
.lightbox__nav:hover { background: var(--gold); color: var(--navy-deep); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__count { position: fixed; bottom: 24px; left: 0; right: 0; text-align: center; font-size: 0.78rem; letter-spacing: 0.14em; color: rgba(243, 238, 229, 0.7); }
@media (max-width: 600px) { .lightbox__nav { top: auto; bottom: 16px; margin-top: 0; } }

/* Shown on a post while an admin previews it */
.preview-bar {
  position: fixed;
  left: var(--float);
  bottom: var(--float);
  z-index: 95;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(15, 20, 48, 0.25);
}

/* Dialogs ------------------------------------------------------------- */

dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  max-width: none;
  max-height: none;
}
dialog::backdrop { background: rgba(15, 20, 48, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.modal {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  overflow: hidden;
}
.modal[open] { animation: modal-in 0.7s var(--ease); }
.modal__inner { position: relative; max-height: calc(100svh - 32px); overflow-y: auto; padding: clamp(28px, 4vw, 52px); }
.modal__title { margin-bottom: 32px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; }
.modal__title em { color: var(--gold-ink); }

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.4s, transform 0.6s var(--ease);
}
.modal__close i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  margin: -0.75px 0 0 -8px;
  background: var(--ink);
  transform: rotate(45deg);
}
.modal__close i + i { transform: rotate(-45deg); }
.modal__close:hover { background: var(--gold); transform: rotate(90deg); }

.drawer {
  width: min(580px, 100%);
  height: 100svh;
  max-height: 100svh;
  margin: 0 0 0 auto;
  overflow: hidden;
}
.drawer[open] { animation: drawer-in 0.8s var(--ease); }
.drawer__inner { position: relative; height: 100%; overflow-y: auto; padding: clamp(20px, 3vw, 40px); padding-bottom: 48px; }
.drawer__media { aspect-ratio: 5 / 4; overflow: hidden; margin-bottom: 28px; background: #cfcfcd; }
.drawer__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.drawer__role { margin-bottom: 10px; }
.drawer__name { margin-bottom: 24px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.drawer__bio { display: grid; gap: 1em; margin-bottom: 32px; color: var(--muted); }

@keyframes modal-in { from { opacity: 0; transform: translateY(28px) scale(0.98); } }
@keyframes drawer-in { from { transform: translateX(100%); } }

/* WhatsApp ------------------------------------------------------------ */

/* A round button that opens into a labelled pill on hover. main.js flips
   data-theme to match the section behind it. */
.whatsapp {
  --wa-bg: var(--navy);
  --wa-fg: var(--paper);
  --wa-ring: rgba(243, 238, 229, 0.14);
  position: fixed;
  right: var(--float);
  bottom: calc(var(--float) + env(safe-area-inset-bottom, 0px));
  z-index: 50; /* under the menu */
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--wa-bg);
  color: var(--wa-fg);
  box-shadow: inset 0 0 0 1px var(--wa-ring), 0 14px 32px -14px rgba(15, 20, 48, 0.6);
  overflow: hidden;
  isolation: isolate;
  transition: background 0.4s, color 0.5s var(--ease);
}
.whatsapp[data-theme="dark"] {
  --wa-bg: var(--paper);
  --wa-fg: var(--navy-deep);
  --wa-ring: transparent;
}
.whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.whatsapp:hover, .whatsapp:focus-visible { color: var(--navy-deep); }
.whatsapp:hover::before, .whatsapp:focus-visible::before { transform: translateY(0); }
.whatsapp:hover .whatsapp__dot, .whatsapp:focus-visible .whatsapp__dot { box-shadow: 0 0 0 2px var(--gold); }

.whatsapp__icon { width: 22px; height: 22px; flex: none; }

.whatsapp__label {
  max-width: 0;
  opacity: 0;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: max-width 0.6s var(--ease), margin 0.6s var(--ease), opacity 0.3s;
}
.whatsapp:focus-visible .whatsapp__label { max-width: 10em; margin: 0 12px 0 4px; opacity: 1; }
@media (hover: hover) {
  .whatsapp:hover .whatsapp__label { max-width: 10em; margin: 0 12px 0 4px; opacity: 1; }
}

/* "Online" dot, cut out of the icon's corner */
.whatsapp__dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 2px var(--wa-bg);
  transition: box-shadow 0.4s;
}
.whatsapp__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: wa-ping 2.8s var(--ease) infinite;
}
@keyframes wa-ping {
  0% { opacity: 0.7; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(2.6); }
}

/* Reduced motion ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
