/* =============================================================
   J&M Financial Services
   Design system: deep navy and brass gold
   Type: Fraunces (display) and Geist (body)
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Navy family */
  --navy-950: #081628;
  --navy-900: #0b1f3a;
  --navy-800: #102a4c;
  --navy-700: #16365e;
  --navy-600: #1d4570;
  --ink: #0a1626;

  /* Brass / gold accents */
  --gold: #c9a24b;
  --gold-soft: #ddc183;
  --gold-bright: #e8d49a;
  --gold-deep: #a6822f;
  /* Deep brass for SMALL TEXT on light surfaces (passes WCAG AA 4.5:1).
     Use --gold-deep only for icons/borders/large text; use --gold-ink for small text. */
  --gold-ink: #846420;

  /* Light surfaces */
  --ivory: #f6f2e9;
  --paper: #fbf9f3;
  --paper-2: #f1ece0;
  --line: #e4dcca;

  /* Text */
  --text: #14202f;
  --text-soft: #45525f;
  --text-mute: #6c7682;
  --on-navy: #eaf0f7;
  --on-navy-soft: #aebccd;

  /* Feedback */
  --error: #b14a32;
  --error-line: #c0563e;

  /* System */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 10px rgba(8, 22, 40, 0.06);
  --shadow-md: 0 18px 40px -18px rgba(8, 22, 40, 0.30);
  --shadow-gold: 0 18px 50px -22px rgba(166, 130, 47, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 5.5rem;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:focus:not(:focus-visible) { outline: none; }

/* Visible gold focus ring (WCAG 2.2) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}
.on-navy :where(a, button):focus-visible,
.bg-navy :where(a, button):focus-visible,
.site-header :where(a, button):focus-visible { outline-color: var(--gold-bright); }

/* ---------- Reveal engine (driven by ScrollTrigger which adds .in) ----------
   Hidden state is scoped to html.js and disabled under reduced motion, so the
   site is fully visible with JS off or reduced motion on. Uses :not(.in) so the
   revealed state is the element's NATURAL state (keeps hover transforms intact). */
[data-reveal] { transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
html.js:not(.reduced-motion) [data-reveal]:not(.in) { opacity: 0; transform: translateY(26px); }
html.js:not(.reduced-motion) [data-reveal="left"]:not(.in) { transform: translateX(-30px); }
html.js:not(.reduced-motion) [data-reveal="right"]:not(.in) { transform: translateX(30px); }
html.js:not(.reduced-motion) [data-reveal="zoom"]:not(.in) { transform: scale(0.95); }

/* Hero orchestrated load (GSAP timeline adds .is-ready, then animates inline) */
html.js:not(.reduced-motion) .hero:not(.is-ready) [data-hero-anim] { opacity: 0; }

/* ---------- Cross-document View Transitions (premium MPA touch) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 0.28s; }
::view-transition-new(root) { animation-duration: 0.36s; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
.display { font-size: clamp(2.6rem, 6.4vw, 4.7rem); font-weight: 400; }
.h2 { font-size: clamp(2rem, 4.3vw, 3.05rem); }
.h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
p { color: var(--text-soft); text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.28rem); color: var(--text-soft); line-height: 1.6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.eyebrow.center::before { display: none; }
/* Bright gold for eyebrows on any dark/navy context. */
.on-navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow, .bg-navy .eyebrow { color: var(--gold-soft); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }
section { position: relative; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.section-pad { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-pad-sm { padding-block: clamp(3rem, 6vw, 5rem); }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem; min-height: 44px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  position: relative;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep)); color: var(--navy-950); box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 24px 60px -20px rgba(166, 130, 47, 0.7); }
.btn-outline { border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); color: var(--gold-ink); }
.on-navy .btn-outline { color: var(--gold-soft); border-color: color-mix(in srgb, var(--gold-soft) 42%, transparent); }
.btn-outline:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); transform: translateY(-3px); }
.btn-ghost-light { color: var(--on-navy); border: 1px solid color-mix(in srgb, var(--on-navy-soft) 35%, transparent); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-3px); }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 0.98rem; }
.btn-sm { padding: 0.7rem 1.25rem; font-size: 0.86rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; color: var(--gold-ink); font-size: 0.9rem; }
.text-link svg { width: 1em; height: 1em; transition: transform 0.4s var(--ease); }
.text-link:hover svg, a:hover .text-link svg { transform: translateX(5px); }
.on-navy .text-link, .page-hero .text-link, .hero .text-link { color: var(--gold-soft); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; padding-block: 1.15rem;
  transition: padding 0.4s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(8, 22, 40, 0); backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.scrolled { padding-block: 0.7rem; }
.site-header.scrolled::before {
  background: rgba(9, 25, 46, 0.92); backdrop-filter: blur(14px);
  border-bottom-color: color-mix(in srgb, var(--gold) 22%, transparent);
}
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--on-navy); }
.brand .logo-img { height: 46px; width: auto; flex: none; transition: transform 0.5s var(--ease); }
.brand:hover .logo-img { transform: scale(1.03); }
.brand .logo-img-full { height: auto; width: min(220px, 100%); }
.brand-full:hover .logo-img { transform: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-sub { font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-soft); margin-top: 0.4rem; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav > a { position: relative; padding: 0.5rem 0.95rem; font-size: 0.86rem; font-weight: 600; color: var(--on-navy-soft); border-radius: var(--radius); transition: color 0.3s; }
.nav > a::after { content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.28rem; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav > a:hover, .nav > a.active { color: #fff; }
.nav > a:hover::after, .nav > a.active::after { transform: scaleX(1); }
.header-cta { display: inline-flex; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--gold-soft); transition: transform 0.35s var(--ease), opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta-mobile { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px);
    background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.5rem;
    padding: 2rem 2.2rem; transform: translateX(105%); transition: transform 0.5s var(--ease);
    box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.6);
    border-left: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
  }
  .nav.open { transform: translateX(0); }
  .nav > a { font-size: 1.15rem; padding: 0.7rem 0; color: var(--on-navy); width: 100%; }
  .nav > a::after { left: 0; right: auto; width: 0; bottom: 0.3rem; }
  .nav .nav-cta-mobile { margin-top: 1rem; width: 100%; }
}
/* Lock scroll when the mobile menu is open (modern :has, JS also enforces) */
body:has(.nav.open) { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding-top: clamp(8rem, 16vh, 12rem); padding-bottom: clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(29, 69, 112, 0.85), transparent 60%),
    radial-gradient(80% 70% at 0% 100%, rgba(166, 130, 47, 0.16), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 70%);
  color: var(--on-navy); overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(201, 162, 75, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 162, 75, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000, transparent 70%);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000, transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-art { position: relative; }
.hero-art > svg { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.4)); }
/* The canvas is a REPLACED element, so inset alone cannot stretch it: with width/height
   auto it falls back to its intrinsic (attribute) size, the box becomes over-constrained,
   right/bottom are dropped, and it anchors to the top-left inset. That pushed the 3D
   wireframe up and left of the seal. Explicit width/height makes the box deterministic
   and keeps it concentric with the seal. */
.hero-canvas { position: absolute; top: -8%; left: -8%; width: 116%; height: 116%; z-index: 0; pointer-events: none; }
.hero h1 { color: #fff; margin-block: 1.3rem 1.5rem; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero .lead { color: var(--on-navy-soft); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 2.8rem; padding-top: 1.8rem; border-top: 1px solid rgba(174, 188, 205, 0.16); }
.hero-trust .since { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-soft); line-height: 1; }
.hero-trust .since small { display: block; font-family: var(--font-body); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-navy-soft); margin-top: 0.45rem; font-weight: 600; }
.hero-badges { display: flex; gap: 0.65rem; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin-inline: auto; }
}

/* credential pills */
.cred-pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; padding: 0.45rem 0.8rem; border-radius: 50px; border: 1px solid color-mix(in srgb, var(--gold-soft) 40%, transparent); color: var(--gold-soft); background: color-mix(in srgb, var(--gold) 6%, transparent); }
.cred-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.cred-pill.on-light { color: var(--gold-ink); border-color: color-mix(in srgb, var(--gold-deep) 40%, transparent); }

/* ---------- Marquee strip ---------- */
.strip { background: var(--navy-950); color: var(--on-navy-soft); border-block: 1px solid color-mix(in srgb, var(--gold) 18%, transparent); overflow: hidden; }
.strip-track { display: flex; gap: 3.5rem; padding-block: 1.1rem; white-space: nowrap; width: max-content; animation: scrollx 38s linear infinite; }
.strip:hover .strip-track, .strip:focus-within .strip-track { animation-play-state: paused; }
.strip-item { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.strip-item svg { width: 16px; height: 16px; color: var(--gold); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Section heading block ---------- */
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: 0.9rem; }
.section-head p { margin-top: 1.1rem; }

/* ---------- About / intro split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 840px) { .split { grid-template-columns: 1fr; } }
.figure-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(155deg, var(--navy-800), var(--navy-950)); aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-md); border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent); }
.figure-card > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.figure-card .figure-tag { position: absolute; left: 1.4rem; bottom: 1.4rem; right: 1.4rem; display: flex; align-items: center; gap: 0.9rem; background: rgba(8, 22, 40, 0.72); backdrop-filter: blur(8px); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); border-radius: var(--radius); padding: 0.9rem 1.1rem; color: var(--on-navy); }
.figure-tag .n { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-soft); line-height: 1.05; }
.figure-tag small { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--on-navy-soft); }

.tick-list { margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.tick-list li { display: flex; gap: 0.85rem; align-items: flex-start; color: var(--text-soft); }
.tick-list li svg { width: 22px; height: 22px; flex: none; color: var(--gold-deep); margin-top: 2px; }
.tick-list li strong { color: var(--text); font-weight: 700; }
.on-navy .tick-list li { color: var(--on-navy-soft); }
.on-navy .tick-list li strong { color: #fff; }
.on-navy .tick-list li svg { color: var(--gold-soft); }

/* ---------- Stat band ---------- */
.stats { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: var(--on-navy); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(174, 188, 205, 0.14); border: 1px solid rgba(174, 188, 205, 0.14); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: linear-gradient(160deg, rgba(16, 42, 76, 0.6), rgba(8, 22, 40, 0.6)); padding: clamp(1.6rem, 3vw, 2.4rem); text-align: center; }
.stat .num, .stat .label { display: block; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--gold-soft); line-height: 1; }
.stat .num .suffix { color: var(--gold); }
.stat .label { margin-top: 0.7rem; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-soft); font-weight: 600; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat { padding-inline: 0.9rem; } .stat .label { letter-spacing: 0.08em; overflow-wrap: anywhere; } }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }
.svc-card {
  position: relative; display: flex; flex-direction: column; container-type: inline-size;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem; overflow: hidden; height: 100%;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
}
.svc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft)); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.svc-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(155deg, var(--ivory), var(--paper-2)); border: 1px solid var(--line); color: var(--gold-deep); margin-bottom: 1.2rem; transition: background 0.5s var(--ease), color 0.5s, transform 0.5s var(--ease); }
.svc-icon svg { width: 28px; height: 28px; }
.svc-card:hover .svc-icon { background: linear-gradient(155deg, var(--navy-800), var(--navy-950)); color: var(--gold-soft); transform: rotate(-5deg); }
.svc-card h3 { font-size: 1.24rem; margin-bottom: 0.55rem; }
.svc-card p { font-size: 0.94rem; flex: 1; }
.svc-card .svc-more { margin-top: 1.2rem; }
.svc-index { position: absolute; top: 1.3rem; right: 1.5rem; font-family: var(--font-display); font-size: 0.95rem; color: var(--line); }
@container (max-width: 240px) { .svc-card { padding: 1.5rem 1.3rem; } }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 820px) { .values-grid { grid-template-columns: 1fr; } }
.value { padding: 2rem 1.8rem; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); border: 1px solid rgba(174, 188, 205, 0.16); }
.value .v-num { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-soft); display: inline-flex; width: 42px; height: 42px; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: 50%; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.value h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.5rem; }
.value p { color: var(--on-navy-soft); font-size: 0.95rem; }

/* ---------- Process / timeline ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
@media (max-width: 820px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .process { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 3.5rem; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 1.05rem; color: var(--navy-950); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)); display: grid; place-items: center; box-shadow: var(--shadow-gold); }
.step h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.on-navy .step h3 { color: #fff; }
.step p { font-size: 0.93rem; }
.on-navy .step p { color: var(--on-navy-soft); }
.step p strong { color: var(--text); }
.on-navy .step p strong { color: var(--gold-soft); }

/* ---------- Deadlines / SARS widget ----------
   One instrument: a single panel with a sticky navy rail carrying the countdown, and a tabbed
   body holding the SARS timeline and the CIPC calculator. */

.dl-panel {
  display: grid; grid-template-columns: 20.5rem 1fr;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold-deep) 30%, transparent);
  background: linear-gradient(170deg, #fff 0%, var(--paper) 100%);
  box-shadow: var(--shadow-md);
}
@media (max-width: 900px) { .dl-panel { grid-template-columns: 1fr; } }

/* --- Rail --- */
.dl-rail {
  position: relative;
  background:
    radial-gradient(90% 60% at 20% 0%, rgba(29, 69, 112, 0.85), transparent 60%),
    linear-gradient(170deg, var(--navy-800), var(--navy-950));
  color: var(--on-navy);
  border-right: 1px solid color-mix(in srgb, var(--gold) 26%, transparent);
}
@media (max-width: 900px) { .dl-rail { border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--gold) 26%, transparent); } }
.dl-rail::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--tex-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--tex-grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(100% 60% at 30% 0%, #000, transparent 75%);
  mask-image: radial-gradient(100% 60% at 30% 0%, #000, transparent 75%);
}
/* Sticky: the countdown travels with the reader while they scan a nine-item list, instead
   of scrolling away or floating in the middle of its own column. */
.dl-rail-inner {
  position: sticky; top: calc(var(--header-h) + 1rem); z-index: 1;
  padding: clamp(1.8rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem;
}
@media (max-width: 900px) { .dl-rail-inner { position: static; } }

.cd-label { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }

/* --- Countdown ring ---
   A conic sweep reading the same figure as the digits: empty at 30 days out, a full brass
   ring on the day. @property lets the sweep animate; without it the ring still renders,
   it simply jumps rather than eases. */
@property --p { syntax: "<number>"; initial-value: 0; inherits: false; }
.cd-ring {
  --ring: 9.5rem;
  width: var(--ring); height: var(--ring); margin: 1rem 0 0.9rem;
  border-radius: 50%; display: grid; place-items: center; position: relative;
  background:
    conic-gradient(from -90deg, var(--gold-bright) 0turn, var(--gold) calc(var(--p) * 0.6turn), var(--gold-deep) calc(var(--p) * 1turn), rgba(174, 188, 205, 0.16) 0);
  transition: --p 0.9s var(--ease);
}
.cd-ring::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background: linear-gradient(170deg, var(--navy-800), var(--navy-950));
  border: 1px solid rgba(174, 188, 205, 0.14);
}
.cd-ring-core { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.cd-ring-core b { font-family: var(--font-display); font-weight: 500; font-size: 3.1rem; color: var(--gold-soft); font-variant-numeric: tabular-nums; line-height: 1; }
.cd-ring-core span { margin-top: 0.4rem; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-navy-soft); font-weight: 700; }

.dl-rail .cd-event { font-family: var(--font-display); font-size: 1.3rem; color: #fff; line-height: 1.2; }
.dl-rail .cd-date { color: var(--on-navy-soft); font-size: 0.88rem; margin-top: 0.25rem; }
.dl-rail .cd-timer { display: flex; gap: 0.6rem; margin-top: 1.3rem; width: 100%; }
.dl-rail .cd-unit { flex: 1; text-align: center; background: rgba(8, 22, 40, 0.45); border: 1px solid rgba(174, 188, 205, 0.14); border-radius: var(--radius); padding: 0.7rem 0.4rem; }
.dl-rail .cd-unit b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-soft); line-height: 1; font-variant-numeric: tabular-nums; }
.dl-rail .cd-unit span { font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-navy-soft); margin-top: 0.4rem; display: block; }
.cd-cta { margin-top: 1.4rem; width: 100%; }

/* --- Body + tabs --- */
.dl-body { padding: clamp(1.5rem, 2.6vw, 2.1rem); min-width: 0; }
.dl-tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.dl-tab {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.1rem; font-size: 0.86rem; font-weight: 700; color: var(--text-mute);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.3s, border-color 0.3s;
}
.dl-tab svg { width: 16px; height: 16px; }
.dl-tab:hover { color: var(--gold-ink); }
.dl-tab.is-on { color: var(--text); border-bottom-color: var(--gold); }
/* With JS off the tab strip is hidden and BOTH panels render, so nothing is unreachable. */
.dl-tabpanel + .dl-tabpanel { margin-top: 2.4rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
html.js .dl-tabpanel { display: none; }
html.js .dl-tabpanel.is-on { display: block; }
html.js .dl-tabpanel + .dl-tabpanel { margin-top: 0; padding-top: 0; border-top: 0; }

/* --- Filter as pills --- */
.deadline-filter { margin-bottom: 1.4rem; }
.df-title { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--text-mute); margin-bottom: 0.7rem; }
.df-toggles { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.df-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  padding: 0.5rem 0.95rem; border-radius: 50px; font-size: 0.84rem; font-weight: 600;
  color: var(--text-soft); background: #fff; border: 1px solid var(--line);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.df-pill:hover { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.df-pill input { width: 16px; height: 16px; accent-color: var(--gold-deep); flex: none; }
/* Where :has() is supported the checkbox is replaced by the pill's own selected state.
   Where it is not, the checkbox stays visible and the control still works. */
@supports selector(:has(*)) {
  .df-pill input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .df-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background 0.3s, box-shadow 0.3s; }
  .df-pill:has(input:checked) { background: color-mix(in srgb, var(--gold) 12%, #fff); border-color: color-mix(in srgb, var(--gold) 60%, transparent); color: var(--gold-ink); }
  .df-pill:has(input:checked)::before { background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
  .df-pill:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
}
.df-status { margin-top: 0.8rem; font-size: 0.82rem; color: var(--text-mute); min-height: 1.2em; }

/* --- The list, as a timeline ---
   A brass rule with graded nodes, so the list conveys how close each date is. */
.deadline-list { position: relative; list-style: none; margin: 0; padding: 0 0 0 1.9rem; display: grid; gap: 0.15rem; }
.deadline-list::before {
  content: ""; position: absolute; left: 5px; top: 1.15rem; bottom: 1.15rem; width: 1px;
  background: linear-gradient(var(--gold), color-mix(in srgb, var(--gold-deep) 25%, transparent));
}
.deadline-row {
  position: relative; display: flex; align-items: center; gap: 0.9rem;
  padding: 0.85rem 0.9rem 0.85rem 0.2rem; background: transparent; border: 0;
  border-radius: var(--radius);
  transition: background 0.35s, transform 0.35s var(--ease);
}
.deadline-row + .deadline-row::after {
  content: ""; position: absolute; left: 0.2rem; right: 0.9rem; top: 0;
  height: 1px; background: var(--line);
}
.deadline-row:hover { background: color-mix(in srgb, var(--gold) 7%, transparent); transform: translateX(3px); }

.dl-node {
  position: absolute; left: calc(-1.9rem + 5px); top: 50%; translate: -50% -50%;
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--paper); border: 1px solid color-mix(in srgb, var(--gold-deep) 45%, transparent);
}
.deadline-row[data-urgency="soon"] .dl-node { background: color-mix(in srgb, var(--gold) 55%, var(--paper)); border-color: var(--gold-deep); }
.deadline-row[data-urgency="now"] .dl-node {
  width: 13px; height: 13px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  border-color: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent);
}

.deadline-row .dl-date { flex: none; min-width: 3.1rem; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.deadline-row .dl-date b { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.deadline-row .dl-date small { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); font-weight: 700; margin-top: 0.25rem; }
.deadline-row[data-urgency="later"] .dl-date b { color: var(--text-mute); }
.deadline-row .dl-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.deadline-row .dl-name { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.deadline-row .dl-sub { color: var(--text-soft); font-size: 0.82rem; }
.deadline-row .dl-ics {
  flex: none; margin-left: auto; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold-deep);
  background: #fff; opacity: 0.65;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease), opacity 0.3s;
}
.deadline-row:hover .dl-ics, .dl-ics:focus-visible { opacity: 1; }
.deadline-row .dl-ics:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, #fff); transform: scale(1.06); }
.deadline-row .dl-ics svg { width: 16px; height: 16px; }
/* There is no hover on a touch screen, so a control that only reveals itself on hover is
   invisible on the devices most likely to want it. Full opacity and a 44px target there. */
@media (hover: none) {
  .deadline-row .dl-ics { opacity: 1; width: 44px; height: 44px; }
  .deadline-row .dl-ics svg { width: 18px; height: 18px; }
}
.deadline-row.is-hidden { display: none; }

.dl-badge { display: inline-block; margin-left: 0.35rem; font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--gold-ink); background: color-mix(in srgb, var(--gold) 14%, transparent); border: 1px solid color-mix(in srgb, var(--gold-deep) 35%, transparent); padding: 0.12rem 0.45rem; border-radius: 50px; vertical-align: middle; }
.dl-badge-alt { color: var(--navy-700); background: color-mix(in srgb, var(--navy-600) 12%, transparent); border-color: color-mix(in srgb, var(--navy-600) 30%, transparent); }

.dates-reviewed { margin-top: 1.1rem; font-size: 0.85rem; color: var(--text-mute); }
.dates-reviewed strong { color: var(--gold-ink); }

/* --- Year-end exception, as a disclosure --- */
.dl-note { margin-top: 1.4rem; border: 1px solid color-mix(in srgb, var(--gold-deep) 26%, transparent); border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 6%, transparent); overflow: hidden; }
.dl-note summary { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.1rem; cursor: pointer; list-style: none; font-size: 0.9rem; font-weight: 700; color: var(--gold-ink); }
.dl-note summary::-webkit-details-marker { display: none; }
.dl-note summary::marker { content: ""; }
.dl-note summary > svg { width: 18px; height: 18px; flex: none; color: var(--gold-deep); }
.dl-note .dl-note-ico { margin-left: auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--gold-deep) 35%, transparent); transition: transform 0.4s var(--ease), background 0.4s; }
.dl-note .dl-note-ico svg { width: 13px; height: 13px; }
.dl-note[open] .dl-note-ico { transform: rotate(135deg); background: color-mix(in srgb, var(--gold) 18%, transparent); }
.dl-note p { padding: 0 1.1rem 1.1rem; font-size: 0.87rem; margin: 0; }

/* --- CIPC calculator, now the second tab rather than a detached slab --- */
.cipc-head h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.cipc-head p { font-size: 0.92rem; margin-bottom: 1.2rem; }
.cipc-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; }
@media (max-width: 620px) { .cipc-form { grid-template-columns: 1fr 1fr; } .cipc-form .btn { grid-column: 1 / -1; } }
.cipc-form .field { margin-bottom: 0; }
.cipc-form .btn { min-height: 46px; }
.cipc-result { margin-top: 1.3rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 7%, transparent); border: 1px solid color-mix(in srgb, var(--gold-deep) 26%, transparent); }
.cipc-result .cr-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; font-size: 0.95rem; }
.cipc-result .cr-line strong { color: var(--gold-ink); font-family: var(--font-display); text-align: right; }
.dl-tabpanel .disclaimer { margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .cd-ring { transition: none; }
}

/* ---------- Service selector ("find the right service") ---------- */
.selector { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); border: 1px solid color-mix(in srgb, var(--gold) 26%, transparent); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem); color: var(--on-navy); box-shadow: var(--shadow-md); max-width: 880px; margin-inline: auto; }
.selector-progress { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.6rem; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-navy-soft); font-weight: 700; }
.selector-progress .dot { width: 22px; height: 3px; border-radius: 2px; background: rgba(174, 188, 205, 0.25); transition: background 0.4s; }
.selector-progress .dot.on { background: var(--gold); }
.selector-step { display: none; }
.selector-step.active { display: block; }
.selector-step h3 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin-bottom: 1.3rem; }
.selector-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem; }
.selector-opt { display: flex; align-items: center; gap: 0.85rem; text-align: left; padding: 1.1rem 1.2rem; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(174, 188, 205, 0.18); border-radius: var(--radius); color: var(--on-navy); font-weight: 600; font-size: 0.95rem; transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease); }
.selector-opt:hover { border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: color-mix(in srgb, var(--gold) 8%, transparent); transform: translateX(4px); }
.selector-opt .so-ico { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(8, 22, 40, 0.5); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); color: var(--gold-soft); }
.selector-opt .so-ico svg { width: 22px; height: 22px; }
.selector-back { margin-top: 1.4rem; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--on-navy-soft); font-size: 0.85rem; font-weight: 600; }
.selector-back:hover { color: var(--gold-soft); }
.selector-result { display: flex; gap: 1.3rem; align-items: center; flex-wrap: wrap; background: rgba(8, 22, 40, 0.4); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); border-radius: var(--radius); padding: 1.6rem; }
.selector-result .sr-ico { width: 60px; height: 60px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(155deg, color-mix(in srgb, var(--gold) 18%, transparent), rgba(8, 22, 40, 0.4)); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); color: var(--gold-soft); }
.selector-result .sr-ico svg { width: 32px; height: 32px; }
.selector-result .sr-body { flex: 1; min-width: 200px; }
.selector-result h4 { color: #fff; font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.25rem; }
.selector-result p { color: var(--on-navy-soft); font-size: 0.9rem; }
.selector-result .sr-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; width: 100%; }
.selector-fallback { margin-top: 1.4rem; font-size: 0.85rem; color: var(--on-navy-soft); }
.selector-fallback a { color: var(--gold-soft); font-weight: 600; }
.selector-noscript { display: grid; gap: 0.5rem; margin-top: 1rem; }
.selector-noscript a { color: var(--gold-soft); }
/* Hide the interactive widget when JavaScript is unavailable; the <noscript>
   grouped service links provide the same routing as plain links. */
html:not(.js) [data-selector] { display: none; }

/* ---------- Credentials strip (home, replaces testimonials) ---------- */
.cred-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 760px) { .cred-strip { grid-template-columns: 1fr; } }
.cred-mark { text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)); border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent); }
.cred-logo-slot { display: grid; place-items: center; min-height: 56px; margin-bottom: 0.9rem; }
.cred-logo-slot img { height: 48px; width: auto; }
.cred-textmark { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: 0.04em; background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Uses a brighter tone than --on-navy-soft so the text stays legible on navy. */
.cred-body { display: block; font-size: 0.92rem; line-height: 1.5; font-weight: 500; color: var(--on-navy); max-width: 24ch; margin-inline: auto; }
.cred-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(174, 188, 205, 0.16); }
@media (max-width: 620px) { .cred-figures { grid-template-columns: 1fr; gap: 1.6rem; } }
.cred-fig { text-align: center; }
.cred-fig .cf-n { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--gold-soft); line-height: 1.05; }
.cred-fig .cf-l { display: block; margin-top: 0.4rem; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-navy); font-weight: 600; }

/* ---------- Team & partners (text only, no photographs) ---------- */
.team-lead-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 640px) { .team-lead-grid { grid-template-columns: 1fr; } }
/* Sub-heading above the three non-director shareholders; matches the section-head scale. */
.team-subhead { margin: 2.6rem 0 1.4rem; text-align: center; font-size: 1.1rem; letter-spacing: 0.02em; }
/* Cards stretch to a common height so the differing bio lengths do not stagger the row. */
.team-lead-grid, .team-grid { align-items: stretch; }
.team-card { display: flex; flex-direction: column; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 820px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.45s; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
/* Directors get visual precedence: larger padding, a gold top rule and a rank chip. */
.team-card-lead { padding: 2.2rem 2rem; border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.team-card-lead::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft)); }
.team-rank { display: inline-block; margin-bottom: 0.9rem; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--gold-ink); background: color-mix(in srgb, var(--gold) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gold-deep) 35%, transparent); padding: 0.25rem 0.7rem; border-radius: 50px; }
.team-card h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.team-card-lead h3 { font-size: 1.5rem; }
.team-card .role { color: var(--gold-ink); font-weight: 700; font-size: 0.86rem; }
.team-card .reg { color: var(--text-mute); font-size: 0.82rem; margin-bottom: 0.7rem; margin-top: 0.15rem; }
.team-card .bio { font-size: 0.92rem; }

/* ---------- Heritage timeline (About) ---------- */
.timeline { position: relative; max-width: 760px; margin-inline: auto; padding-left: 2.4rem; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), color-mix(in srgb, var(--gold-deep) 40%, transparent)); }
.tl-item { position: relative; padding-bottom: 2.2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-node { position: absolute; left: -2.4rem; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)); border: 3px solid var(--paper); box-shadow: var(--shadow-gold); }
.bg-ivory .tl-node { border-color: var(--ivory); }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; transition: border-color 0.4s, transform 0.4s var(--ease); }
.tl-item:hover .tl-card { border-color: color-mix(in srgb, var(--gold) 45%, transparent); transform: translateX(3px); }
.tl-year { display: inline-flex; align-items: baseline; gap: 0.5rem; font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-ink); }
.tl-card h3 { font-size: 1.15rem; margin: 0.25rem 0 0.4rem; }
.tl-card p { font-size: 0.93rem; }

/* ---------- FAQ (native <details>/<summary>) ---------- */
.faq { display: grid; gap: 0.8rem; max-width: 800px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; transition: border-color 0.4s, box-shadow 0.4s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--gold) 50%, transparent); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.5rem; text-align: left; font-family: var(--font-display); font-size: 1.1rem; color: var(--text); cursor: pointer; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ""; }
.faq-q .faq-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform 0.4s var(--ease), background 0.4s, color 0.4s, border-color 0.4s; color: var(--gold-deep); }
.faq-q .faq-ico svg { width: 16px; height: 16px; }
.faq-item[open] .faq-q .faq-ico { background: var(--gold); color: var(--navy-950); border-color: var(--gold); transform: rotate(135deg); }
/* Answers are always in the DOM. With JS off, <details> shows them natively when open.
   With JS on, main.js animates this collapsible height (scoped to html.js). */
.faq-a { overflow: hidden; }
html.js .faq-a { max-height: 0; transition: max-height 0.45s var(--ease); }
.faq-a-inner { padding: 0 1.5rem 1.4rem; color: var(--text-soft); font-size: 0.96rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: radial-gradient(90% 120% at 100% 0%, rgba(166, 130, 47, 0.22), transparent 55%), linear-gradient(150deg, var(--navy-800), var(--navy-950)); color: var(--on-navy); border-radius: var(--radius-lg); padding: clamp(2.6rem, 5vw, 4.5rem); border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent); }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border: 1px solid rgba(201, 162, 75, 0.18); border-radius: 50%; }
.cta-band::before { content: ""; position: absolute; right: 10px; top: 10px; width: 200px; height: 200px; border: 1px solid rgba(201, 162, 75, 0.12); border-radius: 50%; }
.cta-band .eyebrow { color: var(--gold-soft); }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band .lead { color: var(--on-navy-soft); margin-top: 1rem; max-width: 40ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.contact-card .ci { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(155deg, var(--navy-800), var(--navy-950)); color: var(--gold-soft); }
.contact-card .ci svg { width: 22px; height: 22px; }
.contact-card h4 { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); font-weight: 700; margin-bottom: 0.3rem; }
.contact-card a, .contact-card p { color: var(--text); font-weight: 600; font-size: 1.02rem; }
.contact-card a:hover { color: var(--gold-deep); }
.contact-card .sub { font-weight: 400; color: var(--text-soft); font-size: 0.9rem; }

/* form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--text-mute); margin-bottom: 0.5rem; }
.field .req { color: var(--gold-ink); }
.field input, .field select, .field textarea { width: 100%; padding: 0.9rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 12%, transparent); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error-line); box-shadow: 0 0 0 4px color-mix(in srgb, var(--error-line) 10%, transparent); }
.field .err { color: var(--error); font-size: 0.8rem; margin-top: 0.4rem; display: none; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--text-mute); margin-top: 0.4rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: none; margin-bottom: 1.1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius); font-size: 0.9rem; border: 1px solid var(--error-line); background: color-mix(in srgb, var(--error-line) 8%, #fff); color: var(--error); }
.form-alert.show { display: block; }
.form-success { display: none; text-align: center; padding: 1rem 0; }
.form-success.show { display: block; animation: pop 0.5s var(--ease); }
.form-success svg { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--gold-deep); }
.form-success h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); box-shadow: var(--shadow-sm); line-height: 0; }
.map-frame iframe { width: 100%; height: 380px; border: 0; filter: grayscale(0.2) contrast(1.05); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; padding-top: clamp(8rem, 15vh, 11rem); padding-bottom: clamp(3rem, 6vw, 5rem); background: radial-gradient(100% 100% at 90% 0%, rgba(29, 69, 112, 0.7), transparent 55%), linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: var(--on-navy); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none; background-image: linear-gradient(rgba(201, 162, 75, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 162, 75, 0.05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(110% 90% at 80% 0%, #000, transparent 72%); mask-image: radial-gradient(110% 90% at 80% 0%, #000, transparent 72%); }
.page-hero .wrap { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap; font-size: 0.82rem; color: var(--on-navy-soft); margin-bottom: 1.3rem; }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb svg { width: 14px; height: 14px; color: var(--gold); }
.breadcrumb [aria-current] { color: var(--on-navy); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: var(--on-navy-soft); margin-top: 1.1rem; max-width: 48ch; }
.svc-hero-icon { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(155deg, color-mix(in srgb, var(--gold) 18%, transparent), rgba(8, 22, 40, 0.4)); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); color: var(--gold-soft); margin-bottom: 1.5rem; }
.svc-hero-icon svg { width: 38px; height: 38px; }

/* ---------- Service detail page ---------- */
.detail-grid { display: grid; grid-template-columns: 1.55fr 0.95fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 880px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-body h2 { font-size: 1.7rem; margin: 0 0 1.2rem; }
.detail-body h2:not(:first-of-type) { margin-top: 2.4rem; }
.scope-list { display: grid; gap: 0.85rem; }
.scope-list li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.4s, transform 0.4s var(--ease); }
.scope-list li:hover { border-color: color-mix(in srgb, var(--gold) 50%, transparent); transform: translateX(4px); }
.scope-list li svg { width: 22px; height: 22px; flex: none; color: var(--gold-deep); margin-top: 1px; }
.aside-card { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: var(--on-navy); border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent); border-radius: var(--radius-lg); padding: 1.8rem; position: sticky; top: calc(var(--header-h) + 0.5rem); }
.aside-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.6rem; }
.aside-card p { color: var(--on-navy-soft); font-size: 0.92rem; margin-bottom: 1.3rem; }
.aside-card .btn { width: 100%; margin-bottom: 0.7rem; }
.aside-mini { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(174, 188, 205, 0.16); }
.aside-mini h4 { color: var(--gold-soft); font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.8rem; }
.aside-mini a { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; color: var(--on-navy-soft); font-size: 0.9rem; border-bottom: 1px solid rgba(174, 188, 205, 0.1); transition: color 0.3s, padding 0.3s; }
.aside-mini a:hover { color: var(--gold-soft); padding-left: 0.3rem; }
.aside-mini a svg { width: 13px; height: 13px; opacity: 0; transition: opacity 0.3s; }
.aside-mini a:hover svg { opacity: 1; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- Simple content (thank-you / 404) ---------- */
.simple-main { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.simple-main .wrap-narrow { padding-block: clamp(3rem, 8vw, 6rem); }
.simple-main .big-mark { width: 84px; height: 84px; margin: 0 auto 1.5rem; color: var(--gold-deep); }
.simple-main h1 { margin-bottom: 1rem; }
.simple-main p { margin-bottom: 1.8rem; }
.simple-main .cta-actions { justify-content: center; }
.error-code { font-family: var(--font-display); font-size: clamp(4rem, 16vw, 9rem); color: var(--gold-deep); line-height: 1; }

/* ---------- Legal document (privacy notice) ---------- */
.legal-doc { max-width: 760px; }
.legal-updated { color: var(--text-mute); font-size: 0.85rem; margin-bottom: 2rem; }
.legal-doc h2 { font-size: 1.5rem; margin: 2.4rem 0 0.8rem; }
.legal-doc p { margin-bottom: 1rem; }
.legal-doc a { color: var(--gold-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-doc ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.2rem; display: grid; gap: 0.55rem; }
.legal-doc li { color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-navy-soft); padding-top: clamp(3.5rem, 6vw, 5rem); position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.92rem; max-width: 30ch; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.2rem; font-weight: 700; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; transition: color 0.3s, padding 0.3s; }
.footer-col a:hover { color: var(--gold-soft); padding-left: 0.25rem; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; margin-bottom: 0.8rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(174, 188, 205, 0.12); padding-block: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.footer-bottom .credit a { color: var(--gold-soft); font-weight: 600; }
.footer-bottom .legal { display: flex; gap: 1.4rem; }

/* ---------- Floating actions ---------- */
.float-stack { position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem); z-index: 90; display: flex; flex-direction: column; gap: 0.7rem; align-items: center; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-md); transition: transform 0.4s var(--ease); }
.fab:hover { transform: translateY(-4px) scale(1.05); }
.fab svg { width: 26px; height: 26px; }
.fab-top { width: 46px; height: 46px; background: var(--navy-900); color: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-top svg { width: 20px; height: 20px; }

/* ---------- Utility / surfaces ---------- */
.bg-navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); }
.bg-ivory { background: var(--ivory); }
.bg-paper2 { background: var(--paper-2); }
.on-navy { color: var(--on-navy); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; align-items: center; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-950); padding: 0.7rem 1.2rem; z-index: 200; border-radius: 0 0 var(--radius) 0; font-weight: 700; }
.skip-link:focus { left: 0; }
.disclaimer { font-size: 0.82rem; color: var(--text-mute); margin-top: 1.5rem; }
/* The non-February year-end rule: heavier than .disclaimer because it carries information,
   not a caveat. */
/* Each selector step has a visible route to a person. */
.selector-escape { margin-top: 1.1rem; text-align: center; font-size: 0.86rem; color: var(--text-mute); }
.selector-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.selector-escape-link { font-size: 0.86rem; }
@media (max-width: 460px) { .sr-actions { flex-direction: column; align-items: stretch; } .sr-actions > * { width: 100%; } }

/* The audit disclosure on the navy credentials strip sets its own colour: without it the
   text inherits --text-mute, a dark ink, and is invisible on navy. */
.on-navy .disclaimer { color: var(--on-navy-soft); }
/* .careers-lineage: the global p colour is dark grey and overrides the inherited on-navy
   colour, so paragraphs in this band set their own. */
.careers-lineage p { color: var(--on-navy); }
/* The longer shareholders label wraps, so balance the lines. */
.stat .label { text-wrap: balance; }

/* ---------- Splitting headline reveal (GSAP animates .char/.word) ---------- */
html.js:not(.reduced-motion) [data-splitting] .char,
html.js:not(.reduced-motion) [data-splitting] .whitespace { will-change: transform, opacity; }

/* =============================================================
   Texture, layout rhythm and photographic slots
   Adds no new colour: every value below is derived from the existing tokens.
   ============================================================= */

/* ---------- Paper grain ----------
   The ivory and paper surfaces were flat fills. A single fractal-noise tile at very low
   opacity, multiplied over them, gives the light sections the tooth of letterhead stock.
   It is a data URI, so it costs one paint and zero requests. */
:root {
  --tex-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-grid-line: rgba(201, 162, 75, 0.05);
}

.bg-ivory, .bg-paper2, .tex-paper { position: relative; isolation: isolate; }
.bg-ivory::before, .bg-paper2::before, .tex-paper::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: var(--tex-noise); background-size: 220px 220px;
  opacity: 0.055; mix-blend-mode: multiply;
}
.bg-ivory > *, .bg-paper2 > *, .tex-paper > * { position: relative; z-index: 1; }

/* Grain on dark surfaces needs the opposite blend or it just muddies the navy. */
.bg-navy, .stats { position: relative; isolation: isolate; }
.bg-navy::before, .stats::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: var(--tex-noise); background-size: 220px 220px;
  opacity: 0.04; mix-blend-mode: overlay;
}
.bg-navy > *, .stats > * { position: relative; z-index: 1; }

/* ---------- Engraved grid overlay ----------
   Promoted out of .page-hero::after, which was the only place this appeared. --grid-at
   moves the mask origin so no two sections light up in the same corner. */
.tex-grid { position: relative; overflow: hidden; }
.tex-grid::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.55;
  background-image:
    linear-gradient(var(--tex-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tex-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(110% 90% at var(--grid-at, 80% 0%), #000, transparent 72%);
  mask-image: radial-gradient(110% 90% at var(--grid-at, 80% 0%), #000, transparent 72%);
}
.tex-grid > * { position: relative; z-index: 1; }

/* ---------- Section divider ----------
   Every section boundary was a hard colour switch. This is the footer's fading brass rule
   promoted to a reusable element, sitting on the seam between two bands. */
.rule-fade { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 55%, transparent), transparent); }
.rule-fade-soft { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold-deep) 28%, transparent), transparent); }

/* ---------- Ghost numeral ----------
   An oversized outlined figure set behind a section heading. Editorial, restrained, and
   entirely typographic: no new asset, no new colour. Reads as an engraved watermark.
   Uses attr() on data-ghost so the number is authored in the markup where it belongs. */
.ghost { position: relative; }
.ghost > * { position: relative; z-index: 1; }
.ghost::before {
  content: attr(data-ghost);
  position: absolute; left: -0.05em; top: 0; transform: translateY(-44%);
  font-family: var(--font-display); font-weight: 500; line-height: 0.8;
  font-size: clamp(5rem, 13vw, 10.5rem); letter-spacing: -0.045em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--gold-deep) 24%, transparent);
  white-space: nowrap; pointer-events: none; user-select: none; z-index: 0;
}
/* Not offered on centred headings: a centred ghost lands on the eyebrow and the H2. It is a
   left-column device only. */
.on-navy .ghost::before, .bg-navy .ghost::before, .hero .ghost::before { -webkit-text-stroke-color: color-mix(in srgb, var(--gold-soft) 20%, transparent); }
@supports not (-webkit-text-stroke: 1px red) { .ghost::before { display: none; } }
@media (max-width: 640px) { .ghost::before { opacity: 0.6; } }

/* ---------- Full-bleed helper ----------
   Breaks a block out of --maxw to the full viewport width without leaving the flow. */

/* =============================================================
   Layout rhythm: varied card sizes instead of a uniform grid
   ============================================================= */

/* Feature service card. Spans two columns, runs its icon beside the copy rather than above
   it, and carries a warmer surface, so the first thing the eye lands on in the services
   grid is not another identical tile. */
.svc-card.svc-feature {
  grid-column: span 2;
  /* stretch, not flex-start: the body column has to fill the cell height or the link
     cannot sit on the bottom edge and the card ends in dead space. */
  flex-direction: row; align-items: stretch; gap: clamp(1.2rem, 2.5vw, 1.9rem);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  background: linear-gradient(150deg, #fff 0%, var(--paper) 55%, var(--ivory) 100%);
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
}
.svc-card.svc-feature::before { transform: scaleX(1); opacity: 0.55; transition: opacity 0.5s var(--ease); }
.svc-card.svc-feature:hover::before { opacity: 1; }
.svc-feature .svc-icon { width: 74px; height: 74px; margin-bottom: 0; flex: none; align-self: flex-start; }
.svc-feature .svc-icon svg { width: 36px; height: 36px; }
.svc-feature .svc-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.svc-feature h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: 0.6rem; }
.svc-feature p { font-size: 1rem; max-width: 48ch; flex: 0 0 auto; }
.svc-feature .svc-more { margin-top: auto; padding-top: 1.2rem; }
.svc-feature .svc-index { font-size: 1.15rem; }

/* Wide tail card. Closes the grid on a full row instead of leaving a ragged gap, and gives
   the "more services" link the weight of a destination rather than an afterthought. */
.svc-card.svc-wide { grid-column: span 2; }

@media (max-width: 900px) {
  .svc-card.svc-feature, .svc-card.svc-wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .svc-card.svc-feature, .svc-card.svc-wide { grid-column: span 1; }
  .svc-card.svc-feature { flex-direction: column; }
  .svc-feature .svc-icon { margin-bottom: 1.2rem; }
}

/* Mirrored split. Lets the same .split component read differently from one page to the
   next, so About does not repeat the Home composition beat for beat. */
.split-reverse > *:first-child { order: 2; }
.split-reverse > *:last-child { order: 1; }
@media (max-width: 840px) { .split-reverse > * { order: 0; } }

/* Process as a navy band. The steps now sit on a connecting rule rather than floating,
   which is what makes four numbered circles read as one sequence. */
.process-band .process { position: relative; }
.process-band .process::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 55%, transparent), color-mix(in srgb, var(--gold-deep) 30%, transparent));
  z-index: 0;
}
.process-band .step::before { z-index: 1; }
@media (max-width: 820px) { .process-band .process::before { display: none; } }

/* =============================================================
   Credentials strip on a light surface
   The three bodies' logos cannot share a background: SAICA and SAIPA are dark marks built
   for light, SAIT ships a reversed mark. Moving the strip to ivory lets SAICA and SAIPA
   render in their own colour, which is the only way an accreditation logo carries weight.
   ============================================================= */
.cred-strip .cred-mark {
  background: linear-gradient(160deg, #fff, var(--paper));
  border-color: color-mix(in srgb, var(--gold-deep) 30%, transparent);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: center;
}
.cred-strip .cred-body { color: var(--text-soft); }
.cred-logo-slot { min-height: 74px; }
/* Optical sizing: the three marks have wildly different aspect ratios, so a single height
   makes SAIPA three times the width of SAIT. Each is capped on both axes instead. */
.cred-logo-slot img { height: auto; width: auto; max-height: var(--logo-h, 46px); max-width: 78%; }
.cred-mark[data-key="saipa"] { --logo-h: 40px; }
.cred-mark[data-key="saipa"] .cred-logo-slot img { max-width: 92%; }
.cred-mark[data-key="saica"] { --logo-h: 46px; }
.cred-mark[data-key="sait"]  { --logo-h: 54px; }
.cred-figures { border-top-color: color-mix(in srgb, var(--gold-deep) 22%, transparent); }
.bg-ivory .cred-fig .cf-n, .bg-paper2 .cred-fig .cf-n { color: var(--gold-ink); }
.bg-ivory .cred-fig .cf-l, .bg-paper2 .cred-fig .cf-l { color: var(--text-mute); }

/* =============================================================
   Photographic slots
   Each renders the current design until a real file exists at
   assets/img/photo/{key}.{webp|jpg}, then upgrades with no template change.
   ============================================================= */

/* Hero: the photograph sits under the existing navy gradients, not over them, so the
   headline contrast is unchanged whether or not a file is present. */
.hero.has-photo { background-image: none; }
.hero .hero-photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--hero-photo); background-size: cover; background-position: center 38%;
  filter: grayscale(0.1) contrast(1.05) saturate(0.95);
}
.hero .hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 22, 40, 0.80) 6%, rgba(11, 31, 58, 0.54) 40%, rgba(11, 31, 58, 0.12) 100%),
    radial-gradient(80% 70% at 0% 100%, rgba(166, 130, 47, 0.16), transparent 55%);
}
@media (max-width: 860px) {
  .hero .hero-photo::after { background: linear-gradient(180deg, rgba(11, 31, 58, 0.82), rgba(8, 22, 40, 0.94)); }
}

/* Page hero (inner pages, careers): same treatment, lighter scrim. */
.page-hero .hero-photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--hero-photo); background-size: cover; background-position: center;
  filter: grayscale(0.3) contrast(1.05) saturate(0.85);
}
.page-hero .hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, var(--navy-950) 12%, rgba(11, 31, 58, 0.88) 55%, rgba(16, 42, 76, 0.62) 100%);
}

/* Figure card: a photograph replaces the emblem when one exists, keeping the gold frame,
   the aspect ratio and the floating tag exactly as they are. */
.figure-card .figure-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25) contrast(1.04) saturate(0.9); }
.figure-card.has-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 22, 40, 0.1) 40%, rgba(8, 22, 40, 0.78) 100%);
}
.figure-card .figure-tag { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .svc-card.svc-feature::before { transition: none; }
}

/* =============================================================
   Reduced motion: disable inertia, parallax, 3D, splitting,
   view transitions and decorative animation. Content stays.
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .strip-track { animation: none; }
  .hero-canvas { display: none !important; }
  [data-reveal], [data-hero-anim] { opacity: 1 !important; transform: none !important; }
  @view-transition { navigation: none; }
}

/* =============================================================
   Visual pass: more page character, clearer grouping, and resilient mobile layouts
   ============================================================= */

/* The inner-page heroes keep the shared navy palette, with a slightly different light
   source on each page so the openings do not read as repeated copies of one banner. */
.page-hero-about { background-image: radial-gradient(ellipse at 82% 12%, rgba(201, 162, 75, 0.16), transparent 34%), radial-gradient(100% 100% at 90% 0%, rgba(29, 69, 112, 0.7), transparent 55%), linear-gradient(160deg, var(--navy-900), var(--navy-950)); }
.page-hero-services { background-image: radial-gradient(ellipse at 12% 100%, rgba(29, 69, 112, 0.7), transparent 48%), radial-gradient(100% 100% at 90% 0%, rgba(29, 69, 112, 0.7), transparent 55%), linear-gradient(160deg, var(--navy-900), var(--navy-950)); }
.page-hero-contact { background-image: radial-gradient(ellipse at 88% 100%, rgba(201, 162, 75, 0.12), transparent 38%), radial-gradient(100% 100% at 90% 0%, rgba(29, 69, 112, 0.7), transparent 55%), linear-gradient(160deg, var(--navy-900), var(--navy-950)); }
.page-hero-careers { background-image: radial-gradient(ellipse at 70% 0%, rgba(29, 69, 112, 0.72), transparent 48%), radial-gradient(100% 100% at 90% 0%, rgba(29, 69, 112, 0.7), transparent 55%), linear-gradient(160deg, var(--navy-900), var(--navy-950)); }
.page-hero-service { background-image: radial-gradient(ellipse at 88% 20%, rgba(201, 162, 75, 0.12), transparent 34%), radial-gradient(100% 100% at 90% 0%, rgba(29, 69, 112, 0.7), transparent 55%), linear-gradient(160deg, var(--navy-900), var(--navy-950)); }
.page-hero.has-photo { background-image: none; }

/* Improve text measure and hierarchy in long-form service pages. */
.detail-grid { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr); }
.detail-body { min-width: 0; }
.detail-body > .lead { max-width: 66ch; }
.detail-body h2:not(:first-of-type) { padding-top: 0.35rem; }
.scope-list li { align-items: center; min-width: 0; box-shadow: 0 1px 0 rgba(8, 22, 40, 0.02); }
.scope-list li span { min-width: 0; overflow-wrap: anywhere; }
.aside-card { box-shadow: 0 24px 55px -34px rgba(8, 22, 40, 0.75); }
.aside-mini a { min-width: 0; }

/* Give the About timeline and people section more editorial structure without adding copy. */
.timeline { max-width: 820px; }
.tl-card { box-shadow: 0 8px 24px -22px rgba(8, 22, 40, 0.35); }
.tl-year { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.team-card { box-shadow: 0 12px 30px -27px rgba(8, 22, 40, 0.5); }
.team-card-lead { background: linear-gradient(145deg, #fff 0%, var(--paper) 100%); }
.team-subhead { position: relative; width: fit-content; margin-inline: auto; padding-inline: 1.25rem; }
.team-subhead::before, .team-subhead::after { content: ""; position: absolute; top: 50%; width: clamp(2rem, 8vw, 5.5rem); height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold-deep) 42%, transparent)); }
.team-subhead::before { right: 100%; }
.team-subhead::after { left: 100%; transform: scaleX(-1); }

/* The contact layout gets a slightly stronger split between information and form. */
.contact-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-card { box-shadow: 0 8px 24px -24px rgba(8, 22, 40, 0.45); }
.contact-card > div { min-width: 0; }
.contact-card a { overflow-wrap: anywhere; }
.form-card { box-shadow: 0 24px 55px -38px rgba(8, 22, 40, 0.46); border-color: color-mix(in srgb, var(--gold-deep) 22%, var(--line)); }
.field input, .field select, .field textarea { min-width: 0; }

/* Small depth cues and a restrained light sweep keep cards tactile but professional. */
.svc-card, .team-card, .contact-card, .tl-card, .scope-list li { min-width: 0; }
.svc-card { box-shadow: 0 12px 30px -28px rgba(8, 22, 40, 0.55); }
.svc-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(112deg, transparent 20%, rgba(255, 255, 255, 0.55) 48%, transparent 74%);
  transform: translateX(-30%); transition: opacity 0.35s ease, transform 0.65s var(--ease);
}
.svc-card:hover::after { opacity: 0.55; transform: translateX(25%); }
.svc-card > * { position: relative; z-index: 1; }
.svc-card::before { z-index: 2; }
.figure-card { box-shadow: 0 28px 60px -38px rgba(8, 22, 40, 0.68); }
.figure-card:not(.has-photo) { background: radial-gradient(ellipse at 50% 36%, rgba(29, 69, 112, 0.64), transparent 59%), linear-gradient(145deg, var(--navy-800), var(--navy-950)); }

/* Avoid long email addresses, labels and grid children forcing horizontal page overflow. */
.wrap, .split > *, .contact-grid > *, .services-grid > *, .team-grid > *, .team-lead-grid > *, .detail-grid > * { min-width: 0; }
.hero h1, .page-hero h1 { text-wrap: balance; }
.page-hero .lead { max-width: 56ch; }
.hero-cta, .cta-actions { flex-wrap: wrap; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .aside-card { position: relative; top: auto; }
}

@media (max-width: 600px) {
  .page-hero { padding-bottom: clamp(3.5rem, 12vw, 5rem); }
  .contact-card { padding: 1.15rem; gap: 0.85rem; }
  .contact-card .ci { width: 42px; height: 42px; border-radius: 10px; }
  .form-card { padding: 1.25rem; }
  .team-subhead::before, .team-subhead::after { width: 1.5rem; }
  .hero-cta .btn, .cta-actions .btn { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card::after { display: none; }
}

/* Services hub: twelve cards plus a two-column feature leaves the final card alone on its
   row. Let it close the grid on a full row instead of sitting in a corner. */
@media (min-width: 601px) { .services-grid--hub > .svc-card:last-child { grid-column: 1 / -1; } }

/* Mobile hero photo. On a phone the hero is a tall stack (seal, headline, copy, buttons), so a
   landscape photo set to cover the whole box showed only a ~16% sliver, under a near-opaque scrim.
   Below 860px the photo becomes a band across the top that fades into the navy, the seal steps
   aside (the logo is already in the header) and the headline starts below the picture. */
@media (max-width: 860px) {
  .hero.has-photo { padding-top: 15.5rem; background-color: var(--navy-950); background-image: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 70%); }
  .hero.has-photo .hero-art { display: none; }
  .hero.has-photo .hero-photo {
    bottom: auto; height: 27rem; background-position: 8% 45%; filter: grayscale(0.1) contrast(1.05) saturate(0.95);
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .hero.has-photo .hero-photo::after { background: linear-gradient(180deg, rgba(8, 22, 40, 0.55) 0%, rgba(8, 22, 40, 0.12) 30%, rgba(8, 22, 40, 0.25) 100%); }
}
