/* ==========================================================================
   Supreme Wealth Management — design system
   Two brand inks, sampled from the supplied logo:
     navy #050656   gold #965908
   The brand gradient blends them through jewel tones (indigo → aubergine →
   oxblood → bronze) rather than straight sRGB, which desaturates to a grey
   brown (#4E302F, 40% sat) at the midpoint. Every stop below holds >=82%
   saturation and >=9:1 contrast against white text.
   ========================================================================== */

:root {
  /* --- navy scale ------------------------------------------------------ */
  --navy-950: #02021d;
  --navy-900: #030430;
  --navy-800: #040543;
  --navy-700: #050656; /* brand */
  --navy-600: #07097d;

  /* --- gold scale ------------------------------------------------------ */
  --gold-700: #613905;
  --gold-600: #7e4a07;
  --gold-500: #965908; /* brand */
  --gold-400: #b86d0a;
  --gold-300: #df830c; /* 6.33:1 on navy — the gold for dark surfaces */
  --gold-200: #f49c2a;
  --gold-100: #f7b764;

  /* --- surfaces & ink -------------------------------------------------- */
  --paper: #ffffff;
  --paper-warm: #fdfbf7;
  --canvas: #f7f7f7; /* the logo's native canvas */
  --hairline: #e4e2dd;
  --ink: #16172b;
  --ink-muted: #55566b;
  --ink-on-dark: #f4f4f7;
  --ink-on-dark-muted: #b9bacd;

  /* --- brand gradient (route C) ---------------------------------------- */
  --grad-brand: linear-gradient(
    135deg,
    #050656 0%, #290953 22%, #4a0d40 42%,
    #5c0f1e 60%, #7b300a 80%, #965908 100%
  );
  /* Navy-weighted for large surfaces: the transition band stays a slim
     diagonal instead of dominating the field. */
  --grad-hero: linear-gradient(
    158deg,
    #02021d 0%, #050656 30%, #290953 52%, #4a0d40 68%,
    #5c0f1e 80%, #7b300a 91%, #965908 100%
  );
  --grad-navy: linear-gradient(180deg, #02021d 0%, #050656 100%);
  /* Gold "sheen" — reads as foil rather than flat fill. */
  --grad-gold: linear-gradient(
    135deg, #7e4a07 0%, #965908 30%, #df830c 52%, #965908 74%, #7e4a07 100%
  );
  --grad-rule: linear-gradient(90deg, transparent, var(--gold-500), transparent);

  /* --- type ------------------------------------------------------------ */
  --font-display: Georgia, "Times New Roman", "Nimbus Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.89rem);
  --step-0: clamp(1rem, 0.96rem + 0.19vw, 1.11rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.42rem);
  --step-2: clamp(1.44rem, 1.32rem + 0.58vw, 1.8rem);
  --step-3: clamp(1.73rem, 1.54rem + 0.93vw, 2.3rem);
  --step-4: clamp(2.07rem, 1.78rem + 1.44vw, 2.94rem);
  --step-5: clamp(2.49rem, 2.05rem + 2.18vw, 3.75rem);

  /* --- space, shape, depth --------------------------------------------- */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 68ch;
  --wrap: 1180px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgb(2 2 29 / 8%);
  --shadow: 0 6px 24px -8px rgb(2 2 29 / 18%);
  --shadow-lg: 0 24px 60px -20px rgb(2 2 29 / 34%);

  /* --- motion (§ restrained: <=200ms, ease-out) ------------------------- */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 180ms;
  --dur-slow: 320ms;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* The `hidden` attribute must win over any `display` a component sets, or
   hidden panels quietly render anyway. */
[hidden] { display: none !important; }
input, button, textarea, select { font: inherit; color: inherit; }

/* iOS Safari zooms any input below 16px on focus. */
input, select, textarea { font-size: max(16px, 1rem); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { text-wrap: pretty; }

a { color: var(--navy-600); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-500); }

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Keep the sticky header from landing on top of whatever the browser just
   scrolled to — a jumped-to field, a validation error, an anchor target. */
:target,
.field input, .field select, .field textarea,
.btn { scroll-margin-top: 96px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-700); color: #fff; padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - var(--gutter) * 2, 780px); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--canvas { background: var(--canvas); }
.section--warm { background: var(--paper-warm); }
.section--navy { background: var(--grad-navy); color: var(--ink-on-dark); }
.section--brand { background: var(--grad-brand); color: var(--ink-on-dark); }

.section--navy h1, .section--navy h2, .section--navy h3,
.section--brand h1, .section--brand h2, .section--brand h3 { color: #fff; }
.section--navy a, .section--brand a { color: var(--gold-200); }

/* --- a photograph behind a band ----------------------------------------- */
/* The photograph replaces the brand gradient rather than sitting under a wash
   of it: this band is the picture. Only the words need help, so the shade is
   neutral — never navy, which would read as the old blue band tinting the
   image — and it is gone by the middle of the picture, leaving the right-hand
   side as the photograph actually is. */
.section--photo { position: relative; isolation: isolate; overflow: hidden; }
/* Negative z-index paints these over the section's own gradient but under its
   text, so no child needs stacking of its own — and the gradient still shows
   through wherever the photograph does not reach. */
.section--photo > .section__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
/* The words reach at most ~62% across, so the shade holds to there and is gone
   by ~92%: white text over an unknown photograph needs roughly 60% black
   under it, and everything past the last letter is the picture untouched. */
.section--photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(95deg,
    rgb(0 0 0 / 74%) 0%, rgb(0 0 0 / 70%) 45%, rgb(0 0 0 / 60%) 64%,
    rgb(0 0 0 / 16%) 82%, rgb(0 0 0 / 0%) 92%);
}
/* Carries the last of the legibility so the shade above can stay light enough
   to leave the photograph looking like one. */
.section--photo h1,
.section--photo .lede,
.section--photo .eyebrow { text-shadow: 0 1px 14px rgb(0 0 0 / 55%); }
/* Where the band's content runs its full width — the track record's figures,
   a centred card — there is no left to weight towards, so the shade is even. */
.section--photo--even::after {
  background: linear-gradient(180deg, rgb(0 0 0 / 62%) 0%, rgb(0 0 0 / 70%) 100%);
}
/* Narrow screens put the text across the middle of the picture rather than its
   left edge, so the shade runs down it instead of across. */
@media (max-width: 720px) {
  .section--photo::after {
    background: linear-gradient(180deg, rgb(0 0 0 / 64%) 0%, rgb(0 0 0 / 72%) 100%);
  }
}
/* Enough room for the photograph to read as one, not a stripe. */
.section--photo.section--tight { padding-block: clamp(3.5rem, 9vw, 6rem); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
/* auto-FILL, not auto-fit: with fewer cards than columns, auto-fit collapses the
   empty tracks and stretches one card across the whole row — which turned a
   single board member's portrait into a 1180px image. */
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.stack > * + * { margin-top: 1.15rem; }
.stack-lg > * + * { margin-top: 2rem; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: 0.5rem; }

/* --- eyebrow + gold rule ---------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-500);
  display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::after {
  content: ""; flex: 1 1 auto; height: 1px; max-width: 4rem;
  background: linear-gradient(90deg, var(--gold-500), transparent);
}
.section--navy .eyebrow, .section--brand .eyebrow { color: var(--gold-200); }
.section--navy .eyebrow::after, .section--brand .eyebrow::after {
  background: linear-gradient(90deg, var(--gold-300), transparent);
}

.rule-gold { height: 2px; border: 0; background: var(--grad-gold); width: 4.5rem; }
.rule-fade { height: 1px; border: 0; background: var(--grad-rule); }

.lede { font-size: var(--step-1); color: var(--ink-muted); }
.section--navy .lede, .section--brand .lede { color: var(--ink-on-dark-muted); }

/* ==========================================================================
   Buttons — restrained motion: a gold sheen sweep, a 1px lift, <=200ms.
   ========================================================================== */
.btn {
  --btn-bg: var(--grad-gold);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

/* The sheen: a narrow highlight that sweeps once across the fill on hover. */
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    115deg, transparent 20%, rgb(255 255 255 / 26%) 48%, transparent 76%
  );
  transform: translateX(-120%);
  transition: transform var(--dur-slow) var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(120%); }

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn--ghost {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-700);
}
.btn--ghost:hover { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

.btn--on-dark {
  background: transparent;
  border-color: rgb(244 244 247 / 45%);
  color: #fff;
}
.btn--on-dark:hover { border-color: var(--gold-300); color: var(--gold-100); }

.btn--sm { padding: 0.55rem 1.15rem; font-size: 0.78rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* Link with an underline that grows from the left. */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  color: var(--gold-500);
}
.link-arrow svg { transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--navy .link-arrow, .section--brand .link-arrow { color: var(--gold-200); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header[data-scrolled="true"] { box-shadow: var(--shadow-sm); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }

/* Icon + typeset wordmark. Mirrors the logo's own hierarchy: SUPREME in gold,
   WEALTH MANAGEMENT in navy. */
.nav__logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.nav__logo img { height: 46px; width: auto; }
.nav__wordmark-name {
  display: block; font-family: var(--font-display); font-size: 1.22rem; line-height: 1;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-500);
}
.nav__wordmark-sub {
  display: block; margin-top: 0.28rem; font-size: 0.6rem; line-height: 1;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--navy-700);
}
@media (max-width: 420px) {
  .nav__wordmark-name { font-size: 1.02rem; }
  .nav__wordmark-sub { font-size: 0.52rem; letter-spacing: 0.14em; }
  .nav__logo img { height: 38px; }
}

/* Reversed variant for dark surfaces (footer, admin sidebar). */
.logo-stack { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.logo-stack img { height: 52px; width: auto; }
.logo-stack .nav__wordmark-name { color: var(--gold-300); }
.logo-stack .nav__wordmark-sub { color: var(--ink-on-dark); }
.nav__list { display: flex; align-items: center; gap: 1.75rem; list-style: none; padding: 0; margin: 0; }
.nav__link {
  position: relative;
  font-size: var(--step--1); font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink); text-decoration: none; padding-block: 0.35rem;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--grad-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--navy-700); }

/* Sign-in header: mark only, centred, no menu to collapse at any width. */
.site-header--minimal { position: static; }
.nav--minimal { justify-content: center; min-height: 68px; }

.nav__toggle { display: none; background: none; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 0.5rem 0.7rem; cursor: pointer; }
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--navy-700); }
.nav__toggle span + span { margin-top: 4px; }

@media (max-width: 900px) {
  .js .nav__toggle { display: block; }
  .nav__list {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--hairline);
    padding: 0.5rem var(--gutter) 1.5rem; box-shadow: var(--shadow);
  }
  /* Without JS the toggle is hidden and the menu simply stays open. */
  .js .nav__list { display: none; }
  .js .nav__list[data-open="true"] { display: flex; }
  .nav__list li { border-bottom: 1px solid var(--hairline); }
  .nav__link { display: block; padding: 0.95rem 0; }
  .nav__list .btn { margin-top: 1rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: var(--ink-on-dark);
  padding-block: clamp(4.5rem, 12vw, 9rem);
  overflow: hidden;
}
/* Optional photograph behind the gradient. Kept low-contrast and desaturated
   so it adds depth without competing with the brand colours or the headline. */
/* `.hero > .hero__bg` beats the `.hero > *` rule below, which would otherwise
   force this back into normal flow and push the headline off the screen. */
.hero > .hero__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.2;
  filter: saturate(0.5);
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.hero::after {
  /* Vignette. Keeps the gold corner reading as light rather than a colour
     block, and stops the photograph washing out the brand gradient. */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(115% 85% at 12% 25%, rgb(2 2 29 / 82%), transparent 70%),
    linear-gradient(180deg, rgb(2 2 29 / 62%) 0%, rgb(2 2 29 / 18%) 38%, transparent 60%);
  pointer-events: none;
}

/* --- full-bleed video behind the headline ------------------------------- */
/* Child selector for the same reason as `.hero__bg` above: the `.hero > *`
   rule below has equal specificity and comes later, so a bare `.hero__video`
   would be dragged back into normal flow and stretch the hero to the height of
   the video. */
.hero > .hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;      /* fills the band at any aspect ratio, never letterboxed */
  pointer-events: none;   /* the hero is a backdrop, not a media player */
  opacity: 0;             /* every clip is stacked; only the active one shows */
  transition: opacity var(--dur-slow) var(--ease);
}
.hero > .hero__video.is-active { opacity: 1; }

.hero--video { min-height: min(78vh, 720px); display: grid; align-items: center; }

/* The shade over a clip is the same flat one a still gets — see
   `.hero--media::after`. It used to be a pair of gradients multiplied up to
   115% of the figure, which is why a band set to 100 went solid black and a
   band set low still had a dark corner the figure never reached. */

/* --- a band with a photograph or a clip behind it ------------------------ */
/* The picture used to sit at 20%, desaturated and blended as luminosity, under
   a vignette: a texture over the brand gradient rather than a photograph. It
   is now shown as taken. This covers the poster as well as a plain still —
   while a clip loads the poster is what a visitor is looking at, and leaving
   it at 20% meant the first thing they saw was the gradient.
   The shade above it is one flat colour, not a gradient, so the overlay figure
   from Admin > Site content is the whole of it. A gradient could not be
   dialled down: its dark end stayed dark however low the number went, which is
   why the band looked blocked whichever way the figure was moved.
   The gradient also goes from underneath, so a clip that has not arrived yet
   shows the poster over a quiet dark ground rather than brand colours. */
.hero--media { background: var(--navy-950); }
.hero--media > .hero__bg {
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}
.hero--media::after {
  background: rgb(2 2 29 / calc(var(--hero-scrim, 0.65) * 100%));
}
/* Carries the legibility the flat shade no longer forces, so the figure can be
   set low enough to leave the photograph looking like one. */
.hero--media h1,
.hero--media .hero__lede,
.hero--media .eyebrow { text-shadow: 0 1px 14px rgb(0 0 0 / 55%); }

@media (prefers-reduced-motion: reduce) {
  /* Someone who asked for less motion gets the still frame instead. */
  .hero > .hero__video { display: none; }
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero__lede { max-width: 52ch; color: var(--ink-on-dark-muted); font-size: var(--step-1); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 1.5rem; margin-top: 3.5rem; padding-top: 2.5rem;
  border-top: 1px solid rgb(244 244 247 / 20%);
}
/* A figure may be a phrase rather than a number, so a cell can run to several
   lines. The labels are pinned to the bottom of the row instead of following
   their own figure, which keeps them on one line whatever the tallest cell. */
.hero__stats > * { display: flex; flex-direction: column; }
.stat__value {
  font-family: var(--font-display); font-size: var(--step-3); color: var(--gold-200);
  line-height: 1.05; overflow-wrap: break-word; text-wrap: balance;
}
/* Supporting words under a figure. Quieter than the gold and far smaller, so
   the figure still carries the cell and the sentence does not compete. */
.stat__note {
  font-size: var(--step-0); color: var(--ink-on-dark-muted);
  line-height: 1.35; margin-top: 0.4rem; max-width: 24ch;
}
.stat__label {
  font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-on-dark-muted); margin-top: auto; padding-top: 0.5rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
/* A card is a light surface wherever it is placed. Without this, dropping one
   inside .section--navy inherits that section's light-on-dark colours and the
   heading paints white on white. */
.card { color: var(--ink); }
.card h1, .card h2, .card h3, .card h4 { color: var(--ink); }
.card .lede, .card .hint { color: var(--ink-muted); }
.card a:not(.btn) { color: var(--navy-600); }
.card a:not(.btn):hover { color: var(--gold-500); }

.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--grad-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__meta { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-500); font-weight: 600; }
.card h3 { margin-top: 0.6rem; }
.card p { margin-top: 0.75rem; color: var(--ink-muted); }
.card--flat:hover { transform: none; }

/* Card with a photograph across the top. */
.card--media { padding-top: 0; overflow: hidden; }
.card__media {
  width: calc(100% + 2 * clamp(1.5rem, 3vw, 2.1rem));
  /* The global `img { max-width: 100% }` would otherwise clamp the width above
     back to the content box, leaving the image offset left with a gap right. */
  max-width: none;
  margin-left: calc(-1 * clamp(1.5rem, 3vw, 2.1rem));
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--canvas);
}

.card--person { padding: 0; overflow: hidden; }
.card--person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--canvas); }
.card--person .card__body { padding: 1.5rem; }
.card--person .card__role { color: var(--gold-500); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

/* portrait placeholder when no image has been uploaded yet */
.portrait-placeholder {
  width: 100%; aspect-ratio: 4 / 5;
  background: var(--grad-navy);
  display: grid; place-items: center;
  color: var(--gold-300);
  font-family: var(--font-display); font-size: var(--step-4);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Navigation tiles — one per primary destination, on the homepage
   ========================================================================== */
.tile-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.tile {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.tile__media { position: relative; overflow: hidden; background: var(--navy-900); }
.tile__media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease);
  filter: saturate(0.9);
}
.tile:hover .tile__media img { transform: scale(1.05); filter: saturate(1.05); }
/* Navy wash so every photograph sits in the brand rather than beside it. */
.tile__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(2 2 29 / 10%), rgb(5 6 86 / 55%));
  transition: opacity var(--dur) var(--ease);
}
.tile:hover .tile__media::after { opacity: 0.75; }

.tile__placeholder {
  aspect-ratio: 3 / 2; display: grid; place-items: center;
  background: var(--grad-navy); color: var(--gold-300);
  font-family: var(--font-display); font-size: var(--step-4);
}

.tile__body {
  display: flex; flex-direction: column; flex: 1 1 auto;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.tile__title { font-size: var(--step-2); }
.tile__story { margin-top: 0.75rem; color: var(--ink-muted); flex: 1 1 auto; }
.tile__cta {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1.5rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-500);
}
.tile__cta svg { transition: transform var(--dur) var(--ease); }
.tile:hover .tile__cta svg { transform: translateX(4px); }

/* A gold rule that draws in from the left on hover. */
.tile__body::before {
  content: ""; position: absolute; left: 0; right: 0; height: 3px;
  background: var(--grad-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.tile:hover .tile__body::before { transform: scaleX(1); }

/* ==========================================================================
   Cross-navigation ("keep looking") at the foot of every inner page
   ========================================================================== */
.jump-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.jump {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 0.35rem 1rem; height: 100%;
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.jump:hover { border-color: var(--gold-400); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.jump__label {
  font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-700);
}
.jump__story {
  grid-column: 1 / -1;
  font-size: 0.86rem; line-height: 1.5; color: var(--ink-muted);
}
.jump__arrow { color: var(--gold-500); transition: transform var(--dur) var(--ease); }
.jump:hover .jump__arrow { transform: translateX(3px); }
.jump--accent { background: var(--grad-navy); border-color: transparent; }
.jump--accent .jump__label { color: #fff; }
.jump--accent .jump__story { color: var(--ink-on-dark-muted); }
.jump--accent .jump__arrow { color: var(--gold-300); }

/* ==========================================================================
   Picture carousel
   Scroll-snap does the work, so it degrades to a scrollable strip with no JS.
   ========================================================================== */
.carousel { position: relative; margin-top: clamp(2rem, 4vw, 3rem); }

.carousel__viewport {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  border-radius: var(--radius-lg);
  /* Room for the focus ring, which would otherwise be clipped by overflow. */
  padding: 4px;
}
.carousel__viewport::-webkit-scrollbar { height: 6px; }
.carousel__viewport::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 3px; }

.carousel__slide {
  position: relative;
  flex: 0 0 min(100%, 720px);
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-900);
  text-decoration: none;
  color: var(--ink-on-dark);
}
.carousel__slide img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
a.carousel__slide:hover img { transform: scale(1.03); }

.carousel__caption {
  position: absolute; inset: auto 0 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(180deg, transparent, rgb(2 2 29 / 88%));
}
.carousel__caption h3 { color: #fff; font-size: var(--step-2); }
.carousel__caption p {
  margin-top: 0.4rem; color: var(--ink-on-dark-muted); font-size: var(--step--1);
  max-width: 60ch;
}

/* ==========================================================================
   Video leading the homepage, directly beneath the navigation
   ========================================================================== */
.video-hero {
  background: var(--grad-navy);
  color: var(--ink-on-dark);
  padding-block: clamp(1.5rem, 3.5vw, 2.75rem);
}
.video-hero .eyebrow { color: var(--gold-200); }
.video-hero .eyebrow::after { background: linear-gradient(90deg, var(--gold-300), transparent); }
.video-hero__title {
  color: #fff;
  font-size: var(--step-2);
  margin-top: 0.75rem;
  max-width: 28ch;
}
.video-hero .carousel { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
/* Bigger than the mid-page treatment: this is the first thing on the page. */
.video-hero .carousel__slide { flex: 0 0 min(100%, 980px); }
.video-hero .carousel__btn {
  background: transparent; color: var(--ink-on-dark);
  border-color: rgb(244 244 247 / 35%);
}
.video-hero .carousel__btn:hover { background: var(--gold-500); border-color: var(--gold-500); color: #fff; }
.video-hero .carousel__dot { background: rgb(244 244 247 / 30%); }

/* A single video fills the width and has nothing to scroll to. */
.carousel--single .carousel__viewport { overflow: visible; scroll-snap-type: none; }
.carousel--single .carousel__slide { flex-basis: 100%; }

.carousel__slide--video { background: var(--navy-950); }
.carousel__slide--video video {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  background: #000; object-fit: contain;
}
.video-caption { padding: clamp(1rem, 2.5vw, 1.5rem); background: var(--navy-950); }
.video-caption h3 { color: #fff; font-size: var(--step-1); }
.video-caption p { margin-top: 0.35rem; color: var(--ink-on-dark-muted); font-size: var(--step--1); }

.carousel__controls {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  margin-top: 1.5rem;
}
.carousel__btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;               /* comfortable touch target */
  border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--paper); color: var(--navy-700); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.carousel__btn:hover { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.carousel__btn:active { transform: scale(0.94); }
.carousel__btn[disabled] { opacity: 0.35; pointer-events: none; }

.carousel__dots { display: flex; align-items: center; gap: 0.5rem; }
.carousel__dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px;
  background: var(--hairline); cursor: pointer;
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.carousel__dot[aria-selected="true"] { background: var(--grad-gold); width: 26px; }

.section--navy .carousel__btn, .section--brand .carousel__btn {
  background: transparent; color: var(--ink-on-dark); border-color: rgb(244 244 247 / 35%);
}

@media (max-width: 640px) {
  .carousel__slide { flex-basis: 88%; }
}

/* ==========================================================================
   Source-of-funds list
   ========================================================================== */
.funding-list { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 1.25rem; }
.funding {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start;
  padding: 1.35rem 1.5rem;
  background: var(--paper-warm);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.funding__num {
  font-family: var(--font-display); font-size: var(--step-2); line-height: 1;
  color: var(--gold-500);
}
/* How long a stage takes, above its title. Set small and gold so the
   sequence reads as a timeline rather than a list of headings. */
.funding__meta {
  font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-500); margin-bottom: 0.3rem;
}
.funding__title { font-size: var(--step-1); }
.funding__body { margin-top: 0.5rem; color: var(--ink-muted); font-size: var(--step--1); }
.prose .funding-list li + li { margin-top: 0; }
@media (max-width: 520px) {
  .funding { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* --- partner logos ------------------------------------------------------ */
/* Four to a row, two rows at most. The column count is set inline from the
   number of logos, so a part-row spreads across the card rather than
   huddling on the left, and the card grows a row at a time. */
.partner-grid {
  list-style: none; padding: 0; margin-top: 1.25rem;
  display: grid; gap: 1.25rem 1rem; align-items: center;
  justify-content: center;   /* a part-row sits centred, not hard left */
}
.partner-grid li {
  display: flex; align-items: center; justify-content: center;
  min-height: 3rem;
}
/* Bounded on both axes: logos arrive at wildly different proportions, and a
   tall narrow one would otherwise set the height of the whole row. */
.partner-grid img {
  max-width: 100%; max-height: 2.75rem;
  width: auto; height: auto; object-fit: contain;
}
@media (max-width: 560px) {
  /* Four across a phone leaves each logo too small to recognise. */
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ==========================================================================
   Tables, badges, notices
   ========================================================================== */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
th, td { text-align: left; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }

.badge {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--canvas); color: var(--ink-muted); border: 1px solid var(--hairline);
}
.badge--gold { background: color-mix(in srgb, var(--gold-500) 12%, white); color: var(--gold-700); border-color: color-mix(in srgb, var(--gold-500) 30%, white); }
.badge--navy { background: color-mix(in srgb, var(--navy-700) 10%, white); color: var(--navy-700); border-color: color-mix(in srgb, var(--navy-700) 25%, white); }

/* ==========================================================================
   Frequently asked questions
   ========================================================================== */
/* A native <details>, so it opens with a keyboard and without script. The
   marker is drawn here rather than left to the browser default, which differs
   between them and sits at a different size on each. */
.faq {
  border-bottom: 1px solid var(--hairline);
}
.faq > summary {
  cursor: pointer;
  list-style: none;              /* Firefox */
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.35rem 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: .62em; height: .62em;
  border-right: 2px solid var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}
.faq[open] > summary::after { transform: rotate(-135deg); }
.faq > summary:hover { color: var(--navy-700); }
.faq > summary:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}
/* Indented past the number, so the answer lines up with its question. */
.faq__answer { padding: 0 0 1.5rem 1.6em; max-width: 62ch; }
/* The number is a position, not part of the question: fixed width so the
   questions align whether the count has reached double figures or not. */
.faq__number {
  flex: none;
  min-width: 1.6em;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  color: var(--gold-600);
}
.faq__section {
  font-size: var(--step-1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 2.75rem 0 0.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gold-500);
}
.faq__section:first-child { margin-top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  .faq > summary::after { transition: none; }
}

.notice {
  border-left: 3px solid var(--gold-500);
  background: var(--paper-warm);
  padding: 1.1rem 1.35rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.notice strong { color: var(--ink); }
.notice--draft { border-left-color: #a8541c; background: #fdf4ec; }

.flash { padding: 0.9rem 1.2rem; border-radius: var(--radius); font-size: var(--step--1); }
.flash--ok { background: #edf6ef; border: 1px solid #cfe4d4; color: #1f5130; }
.flash--err { background: #fdf0ee; border: 1px solid #f0d2cc; color: #7d2418; }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { display: block; }
.field + .field { margin-top: 1.15rem; }
.field label { display: block; font-size: var(--step--1); font-weight: 600; margin-bottom: 0.4rem; }
/* Standalone so a hint that sits outside a .field wrapper still renders small. */
.hint { font-size: 0.82rem; line-height: 1.5; color: var(--ink-muted); margin-top: 0.35rem; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-400) 22%, transparent);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field--error input { border-color: #b3402c; }
.field .error { color: #b3402c; font-size: 0.82rem; margin-top: 0.35rem; }

.otp-input { letter-spacing: 0.6em; font-size: 1.5rem; text-align: center; font-family: var(--font-display); }

/* ==========================================================================
   Floating WhatsApp button
   The consent banner shares the bottom of the viewport, so the float lifts
   while the banner is open (see app.js) instead of being covered by it.
   ========================================================================== */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: var(--wa-bottom, clamp(1rem, 3vw, 1.75rem));
  z-index: 70;
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.85rem; border-radius: 999px;
  background: #25d366;
  color: #05340f;
  text-decoration: none;
  box-shadow: 0 10px 30px -8px rgb(2 2 29 / 45%);
  transition: bottom var(--dur-slow) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float__label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-size: var(--step--1); font-weight: 600;
  transition: max-width var(--dur-slow) var(--ease), padding-right var(--dur-slow) var(--ease);
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgb(2 2 29 / 55%); }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label {
  max-width: 12rem; padding-right: 0.45rem;
}
/* A single, slow attention pulse — not a loop. Loops read as an ad. */
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid #25d366;
  animation: wa-pulse 2.4s var(--ease) 3s 2;
  pointer-events: none;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

/* ==========================================================================
   Consent banner
   ========================================================================== */
.consent {
  position: fixed; inset: auto 0 0; z-index: 90;
  background: var(--navy-950); color: var(--ink-on-dark);
  border-top: 2px solid transparent;
  border-image: var(--grad-gold) 1;
  padding: clamp(1.1rem, 3vw, 1.6rem) 0;
  box-shadow: 0 -12px 40px -12px rgb(2 2 29 / 60%);
  transition: transform var(--dur-slow) var(--ease);
  /* Never let the banner own more than a third of a small screen. */
  max-height: 60vh;
  overflow-y: auto;
}
/* Visible by default; only the enhanced version slides in. */
.js .consent { transform: translateY(100%); }
.js .consent[data-open="true"] { transform: translateY(0); }
.consent__inner { display: grid; gap: 1.25rem; grid-template-columns: 1fr auto; align-items: center; }
.consent p { font-size: var(--step--1); color: var(--ink-on-dark-muted); max-width: 70ch; }
.consent a { color: var(--gold-200); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.consent__prefs { margin-top: 1rem; display: grid; gap: 0.85rem; }
.consent__row { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--step--1); }
.consent__row input { margin-top: 0.3rem; accent-color: var(--gold-400); }
.consent__row span { color: var(--ink-on-dark-muted); }
.consent__row strong { color: #fff; display: block; }
@media (max-width: 760px) {
  .consent__inner { grid-template-columns: 1fr; }
  .consent__actions .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   Map
   ========================================================================== */
.map-shell { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--canvas); border: 1px solid var(--hairline); }
.map-shell > iframe, .map-shell > .map-canvas { width: 100%; height: 100%; border: 0; }
.map-consent {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 1rem;
  text-align: center; padding: 2rem; background: var(--grad-navy); color: var(--ink-on-dark);
}
.map-consent p { color: var(--ink-on-dark-muted); font-size: var(--step--1); max-width: 42ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: var(--ink-on-dark-muted); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: var(--ink-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-200); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: 0.6rem; }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr 1.1fr 1.1fr; }
@media (max-width: 1100px) { .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__legal { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgb(244 244 247 / 12%); font-size: 0.82rem; line-height: 1.7; }

/* ==========================================================================
   Client area — its own shell, distinct from both the public site and admin
   ========================================================================== */
.portal-bar { background: var(--grad-navy); color: var(--ink-on-dark); }
.portal-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; min-height: 84px; padding-block: 1rem;
}
.portal-bar__actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.portal-bar__who {
  font-size: var(--step--1); color: var(--ink-on-dark-muted);
  margin-right: 0.35rem;
}
.portal-main { background: var(--canvas); min-height: 70vh; padding-block: clamp(2rem, 5vw, 3.5rem); }
.portal-footer {
  background: var(--navy-950); color: var(--ink-on-dark-muted);
  padding-block: 2rem; font-size: 0.82rem;
}
.portal-footer a { color: var(--ink-on-dark-muted); text-decoration: none; }
.portal-footer a:hover { color: var(--gold-200); }

/* Section index on the Site content page. Sticky, because the form is long
   enough that the top scrolls away long before you find what you wanted. */
.content-index {
  position: sticky; top: 0; z-index: 5;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem;
}
.content-index ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.content-index a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.75rem; border: 1px solid var(--hairline);
  border-radius: 999px; text-decoration: none; color: var(--ink);
  font-size: var(--step--1); text-transform: capitalize;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.content-index a:hover { border-color: var(--gold-500); color: var(--gold-600); }
.content-index__count {
  font-variant-numeric: tabular-nums; color: var(--ink-muted);
  font-size: 0.78em;
}
/* Anchored panels sit clear of the sticky index. */
.admin__panel[id] { scroll-margin-top: 5.5rem; }

/* The team on About us. Fixed counts rather than auto-fit: with four people
   an auto-fitting grid drops to three and leaves one stranded on its own
   row, which reads as a mistake. Four across, then two, then one — so the
   last row is never a single card. */
.grid-team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .grid-team { grid-template-columns: 1fr; } }

/* Four to a row means a full-bleed portrait dominates the card and pushes the
   words out of sight. Here the picture identifies the person and the text is
   the content, so the portrait becomes a small round mark above the name.
   Scoped to this grid: the homepage still uses the full portrait card. */
.grid-team .card--person { padding: 1.5rem; overflow: visible; }
.grid-team .card--person img,
.grid-team .card--person .portrait-placeholder {
  width: 5.5rem; height: 5.5rem;
  aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; margin-bottom: 1.1rem;
}
.grid-team .card--person .portrait-placeholder {
  display: grid; place-items: center;
  font-size: var(--step-1); letter-spacing: 0.02em;
}
.grid-team .card--person .card__body { padding: 0; }

/* The five engagement stages on About us. Numbered because the sequence is
   the content: each stage depends on the one before it. */
.approach { list-style: none; padding: 0; display: grid; gap: 1.75rem; counter-reset: stage; }
.approach > li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0 1.25rem; align-items: start; }
.approach__step {
  font-family: var(--font-display); font-size: var(--step-2); line-height: 1;
  color: var(--gold-600); font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .approach > li { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ==========================================================================
   Admin
   ========================================================================== */
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin__side { background: var(--grad-navy); color: var(--ink-on-dark); padding: 1.75rem 1.25rem; }
.admin__side img { height: 40px; width: auto; }
/* Flex so a count can sit right-aligned without disturbing the label. */
.admin__side a { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.65rem 0.85rem; border-radius: var(--radius); color: var(--ink-on-dark-muted); text-decoration: none; font-size: var(--step--1); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.admin__count {
  flex: none; min-width: 1.4rem; padding: 0.05rem 0.4rem;
  border-radius: 999px; background: var(--grad-gold); color: #fff;
  font-size: 0.7rem; font-weight: 700; text-align: center; line-height: 1.5;
}
.admin__side a[aria-current="page"] .admin__count { background: var(--navy-950); }

/* Outstanding client requests, shown on every admin page. Keeps a quiet state
   at zero rather than vanishing, so an empty inbox is distinguishable from a
   counter that has broken. */
.inbox {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--paper); color: var(--ink-muted);
  text-decoration: none; font-size: var(--step--1);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.inbox:hover { border-color: var(--gold-400); color: var(--ink); }
.inbox__count { font-weight: 700; color: var(--ink); }
.inbox--waiting {
  background: color-mix(in srgb, var(--gold-500) 12%, white);
  border-color: color-mix(in srgb, var(--gold-500) 35%, white);
  color: var(--gold-700);
}
.inbox--waiting .inbox__count { color: var(--gold-700); }
@media (max-width: 560px) { .inbox__label { display: none; } }
.admin__side a:hover { background: rgb(244 244 247 / 8%); color: #fff; }
.admin__side a[aria-current="page"] { background: var(--grad-gold); color: #fff; font-weight: 600; }
.admin__main { padding: clamp(1.5rem, 4vw, 3rem); background: var(--canvas); }
.admin__head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.admin__panel { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }

/* Sticky save bar. Opaque and full width, with matching padding on the form,
   so it never floats over the field underneath it. */
.save-bar {
  position: sticky; bottom: 0; z-index: 5;
  margin-top: 1.5rem;
  padding: 1rem 0;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
}
.save-bar__note { font-size: var(--step--1); color: var(--ink-muted); margin-left: 1rem; }
form:has(> .save-bar) { padding-bottom: 1rem; }
.admin__panel + .admin__panel { margin-top: 1.5rem; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .admin__side { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; padding: 1rem; }
  .admin__side img { margin: 0 1rem 0 0; height: 32px; }
}

.image-picker__row { display: flex; gap: 0.85rem; align-items: center; }
.image-picker__row select { flex: 1 1 auto; }
.image-picker__preview {
  flex: none; width: 84px; height: 60px; border-radius: var(--radius);
  border: 1px solid var(--hairline); background: var(--canvas);
  display: grid; place-items: center; overflow: hidden;
  font-size: 0.7rem; color: var(--ink-muted);
}
.image-picker__preview img { width: 100%; height: 100%; object-fit: cover; }

/* One row per image slot on the consolidated Photos page. */
.photo-rows { margin-top: 1.25rem; }
.photo-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(240px, 2fr) auto;
  gap: 1rem; align-items: center;
  padding: 0.9rem 0; border-top: 1px solid var(--hairline);
}
.photo-row:first-child { border-top: 0; }
.photo-row__id strong { display: block; font-size: var(--step--1); }
.photo-row__picker .field { margin: 0; }
.photo-row__picker label { display: none; }
@media (max-width: 780px) {
  .photo-row { grid-template-columns: 1fr; align-items: stretch; }
  .photo-row button { justify-self: start; }
}

.thumb-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.thumb { border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.thumb img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.thumb figcaption { padding: 0.6rem 0.7rem; font-size: 0.78rem; color: var(--ink-muted); word-break: break-all; }

.metric { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 1.35rem; }
.metric__value { font-family: var(--font-display); font-size: var(--step-3); color: var(--navy-700); line-height: 1; }
.metric__label { font-size: var(--step--1); color: var(--ink-muted); margin-top: 0.4rem; }

/* ==========================================================================
   Reveal-on-scroll (opt-in, and a no-op without JS or with reduced motion)
   ========================================================================== */
/* Gated on `reveal-ready`, which app.js adds only once the observer is about to
   run. If app.js fails to load, or IntersectionObserver is unavailable, nothing
   is ever hidden — an empty-looking page is a far worse failure than a missing
   animation. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal-ready [data-reveal][data-shown="true"] { opacity: 1; transform: none; }

/* ==========================================================================
   Motion preferences — animation is never the only affordance, so removing
   it costs nothing.
   ========================================================================== */
@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;
    scroll-behavior: auto !important;
  }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .btn::before { display: none; }
}

@media print {
  .site-header, .wa-float, .consent, .site-footer { display: none !important; }
  body { color: #000; background: #fff; }
  /* Never print a blank section because it had not scrolled into view. */
  .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}
