/* ==========================================================================
   PLC Peiris Associates — Chartered Accountants
   Home page styles
   Aesthetic: editorial-financial. Deep navy ink on warm ivory paper,
   brass accent, Fraunces (display serif) + Hanken Grotesk (body).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* ---- Colour — "Starry Night": midnight navy & steel blue on white ---- */
  --paper:      #ffffff;   /* primary background — white           */
  --paper-2:    #f4f8fc;   /* soft cool panel (alternating bands)  */
  --paper-3:    #e8f1f8;   /* powder-blue tint                     */
  --ink:        #0c1446;   /* midnight navy — headings / dark UI   */
  --ink-2:      #0a1038;   /* deeper navy — footer / dark sections */
  --ink-soft:   #3b4668;   /* body copy — soft navy                */
  --muted:      #6c7896;   /* secondary text — muted blue-grey     */

  /* Accent (steel blue). Older rules reference --brass*, kept as aliases. */
  --accent:      #2b5c92;
  --accent-deep: #1d4a7d;
  --accent-soft: #b3cde0;
  --brass:       var(--accent);
  --brass-deep:  var(--accent-deep);
  --brass-soft:  var(--accent-soft);

  --line:       rgba(12, 20, 70, 0.10);
  --line-soft:  rgba(12, 20, 70, 0.055);
  --line-dark:  rgba(255, 255, 255, 0.14);

  /* Status */
  --ok:    #2f7d57;
  --warn:  #c08a3e;

  /* Type */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body:    "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  /* Shape & depth */
  --radius:   16px;
  --radius-s: 11px;
  --shadow-sm: 0 1px 2px rgba(12, 20, 70, 0.05),
               0 2px 10px rgba(12, 20, 70, 0.05);
  --shadow-md: 0 8px 24px rgba(12, 20, 70, 0.07),
               0 20px 48px rgba(12, 20, 70, 0.08);
  --shadow-lg: 0 30px 80px rgba(12, 20, 70, 0.16);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  /* unhurried curve for scroll reveals: fast start, long settle */
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
}

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

* { margin: 0; }

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

body {
  font-family: var(--body);
  background-color: var(--paper);
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 1.04rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* whisper-soft cool wash — keeps the page reading as mostly white */
  background-image:
    radial-gradient(1100px 620px at 90% -12%, rgba(43, 92, 146, 0.05), transparent 62%),
    radial-gradient(820px 560px at -8% -6%, rgba(43, 92, 146, 0.035), transparent 58%);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; padding: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.75rem, 8vw, 6.75rem); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

.section-head { max-width: 54ch; }
.section-head .title {
  font-size: clamp(2rem, 3.7vw, 2.95rem);
  margin-top: 0.9rem;
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.section-head .lede {
  margin-top: 1.05rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 50ch;
}

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--ink);
  --b-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--b-bg);
  color: var(--b-fg);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.005em;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease),
              box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(-1px); }
/* premium sheen sweep on hover */
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.42) 50%, transparent 72%);
  transform: translateX(-135%) skewX(-12deg);
  transition: transform 0.8s var(--ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(135%) skewX(-12deg); }

.btn--brass { --b-bg: var(--brass); --b-fg: #fff; }
.btn--brass:hover { background: var(--brass-deep); }

.btn--ghost {
  --b-bg: transparent;
  --b-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: rgba(12, 20, 70, 0.04); box-shadow: none; }

.btn--ondark {
  --b-bg: var(--paper);
  --b-fg: var(--ink);
}
.btn--ondark.btn--ghost {
  --b-bg: transparent;
  --b-fg: var(--paper);
  border-color: var(--line-dark);
}
.btn--ondark.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); }

.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.04rem; }
.btn--wide { min-width: min(21rem, 100%); padding-inline: 2.4rem; }
.btn--block { width: 100%; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.textlink svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.textlink:hover { color: var(--brass-deep); }
.textlink:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(12, 20, 70, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
  padding-block: 0.55rem;
}

/* Brand / logo */
.brand { display: flex; align-items: center; gap: 0.72rem; flex-shrink: 0; }
.brand__mark { width: 42px; height: 42px; flex-shrink: 0; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.24rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.brand__kicker {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
  font-weight: 600;
}

/* Primary nav */
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 0.35rem; }
.primary-nav a {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-radius: 8px;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.32rem;
  height: 1.5px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { transform: scaleX(1); }

/* Longer nav labels (client copy deck): make room by dropping the header phone */
.site-header--longnav .header-phone { display: none; }
.site-header--longnav .primary-nav a { padding-inline: 0.55rem; }
.site-header--longnav .primary-nav a::after { left: 0.7rem; right: 0.7rem; }
@media (max-width: 1300px) {
  .site-header--longnav .primary-nav ul { gap: 0.15rem; }
  .site-header--longnav .primary-nav a { font-size: 0.9rem; padding-inline: 0.45rem; }
  .site-header--longnav .primary-nav a::after { left: 0.6rem; right: 0.6rem; }
}

.header-actions { display: flex; align-items: center; gap: 0.85rem; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.4rem 0.3rem;
}
.header-phone svg { width: 17px; height: 17px; color: var(--brass-deep); }
.header-phone span { line-height: 1.1; white-space: nowrap; }
.header-phone small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 19px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  background:
    radial-gradient(820px 620px at 94% 4%, rgba(43, 92, 146, 0.13), transparent 60%),
    radial-gradient(620px 520px at 0% 96%, rgba(179, 205, 224, 0.26), transparent 62%);
}
.hero::before { /* blueprint grid, fading toward the edges */
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(12, 20, 70, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 20, 70, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(125% 115% at 60% 0%, #000 35%, transparent 80%);
          mask-image: radial-gradient(125% 115% at 60% 0%, #000 35%, transparent 80%);
}
.hero::after { /* soft drifting aura for depth */
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 520px; height: 520px; right: 4%; top: 14%;
  background: radial-gradient(circle, rgba(43, 92, 146, 0.16), transparent 65%);
}
.hero > .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: heroAura 15s ease-in-out infinite alternate; }
}
@keyframes heroAura { from { transform: translate(0, 0); } to { transform: translate(-46px, 34px); } }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
}
.hero-copy { max-width: 36ch; }
.hero h1 {
  font-size: clamp(3rem, 6.6vw, 5.4rem);
  margin-top: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass-deep);
  font-size: 1.16em;
}
.hero h1 .word { white-space: nowrap; }   /* keep each word unbreakable */
.hero h1 .brick { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  /* "build on." assembles itself — each letter rises into place like a stacked block */
  .hero h1 .brick {
    animation: brickUp 0.6s cubic-bezier(0.34, 1.45, 0.5, 1) backwards;
    animation-delay: calc(0.55s + var(--i) * 0.07s);
  }
}
@keyframes brickUp {
  0%   { opacity: 0; transform: translateY(0.85em); }
  70%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); }
}
.hero .sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 42ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Hero visual — secure-portal mock */
.hero-visual { position: relative; }
.portal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.portal-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
}
.portal-head .win-dots { display: inline-flex; gap: 6px; }
.portal-head .win-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(179, 205, 224, 0.45);
}
.portal-head .win-dots i:first-child {
  background: var(--brass-soft);
  box-shadow: 0 0 0 3px rgba(179, 205, 224, 0.18);
}
.portal-head .portal-secured {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.42rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass-soft);
}
.portal-head .portal-secured svg { width: 14px; height: 14px; }

.portal-body { padding: 1.25rem 1.25rem 1.4rem; }
.portal-figure { display: flex; flex-direction: column; gap: 0.1rem; }
.portal-figure .lbl {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.portal-figure .val {
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  margin-top: 0.15rem;
}
.portal-figure .trend {
  font-size: 0.82rem; font-weight: 600; color: var(--ok);
  display: inline-flex; align-items: center; gap: 0.3rem;
}

.chart-wrap {
  margin: 0.95rem 0 1rem;
  padding: 0.6rem 0.75rem 0.5rem;
  background: linear-gradient(180deg, #f4f8fc, #ffffff);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}
.portal-chart { width: 100%; height: auto; display: block; overflow: visible; }
/* animated ascending bars (grow up, staggered) — echoes the firm's logo */
.bar { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .bar {
    transform: scaleY(0);
    animation: barGrow 0.75s cubic-bezier(0.22, 0.7, 0.3, 1) both;
    animation-delay: calc(0.45s + var(--d) * 0.1s);
  }
}
@keyframes barGrow { to { transform: scaleY(1); } }
.chart-legend { display: flex; justify-content: center; gap: 1.3rem; margin-top: 0.5rem; }
.chart-legend span {
  display: inline-flex; align-items: center; gap: 0.42rem;
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
}
.chart-legend .lg { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid var(--brass); }
.chart-legend .lg--forecast { border-top: 2px dashed rgba(12, 20, 70, 0.5); }

.portal-tasks { display: grid; gap: 0.5rem; }
.portal-tasks li {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.86rem; color: var(--ink-soft);
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--paper);
}
.portal-tasks .status {
  margin-left: auto;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 999px;
}
.status--ok   { color: var(--ok);   background: rgba(47, 125, 87, 0.12); }
.status--warn { color: var(--warn); background: rgba(192, 138, 62, 0.14); }
.task-ic { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }

/* floating credential chips around the card */
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 0.7rem 0.95rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.float-card .fc-mark {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--brass-deep);
  flex-shrink: 0;
}
.float-card .fc-mark svg { width: 17px; height: 17px; }
.float-card .fc-text { line-height: 1.2; }
.float-card .fc-text b { display: block; font-size: 0.84rem; color: var(--ink); font-weight: 700; }
.float-card .fc-text span { font-size: 0.7rem; color: var(--muted); }
.float-card--tl { top: -1.1rem; left: -1.4rem; }
.float-card--br { bottom: -1.2rem; right: -1.2rem; }

/* Hero line chart + tiles — animation defaults (static, motion-safe) */
.chart-actual { filter: drop-shadow(0 2px 7px rgba(43, 92, 146, 0.4)); }
.chart-dot {
  fill: var(--brass);
  transform-box: fill-box; transform-origin: center;
  filter: drop-shadow(0 0 5px rgba(43, 92, 146, 0.9));
}
.chart-pulse { stroke: var(--brass); opacity: 0; }
.chart-reveal-rect { width: 460px; }   /* full by default; wipes in when motion is allowed */

/* periodic light-sweep across the dashboard card */
.portal-card::after {
  content: "";
  position: absolute; top: 0; left: -65%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 4;
}

@media (prefers-reduced-motion: no-preference) {
  /* both series wipe-reveal left→right; end-point pops then pulses; forecast dashes drift */
  .chart-reveal-rect { width: 0; animation: chartReveal 1.7s var(--ease) 0.5s forwards; }
  .chart-dot   { opacity: 0; animation: dotPop 0.5s var(--ease) 2s both; }
  .chart-pulse { transform-box: fill-box; transform-origin: center; animation: chartPulse 2.2s ease-out 2.3s infinite; }
  .chart-forecast { animation: ants 14s linear 2.4s infinite; }
  /* status rows fade up in sequence */
  .portal-tasks li { opacity: 0; animation: taskIn 0.5s var(--ease) forwards; }
  .portal-tasks li:nth-child(1) { animation-delay: 2.45s; }
  .portal-tasks li:nth-child(2) { animation-delay: 2.60s; }
  .portal-tasks li:nth-child(3) { animation-delay: 2.75s; }
  /* card light-sweep loops slowly */
  .portal-card::after { animation: sheen 5.5s ease-in-out 1.6s infinite; }
  /* the two credential tiles pop in, then drift gently */
  .float-card { opacity: 0; }
  .float-card--tl { animation: tilePop 0.6s var(--ease) 0.9s both,  tileFloat 6s ease-in-out 1.7s infinite; }
  .float-card--br { animation: tilePop 0.6s var(--ease) 1.15s both, tileFloat 7s ease-in-out 2s   infinite; }
}

@keyframes chartReveal { to { width: 460px; } }
@keyframes ants { to { stroke-dashoffset: -140; } }
@keyframes dotPop {
  0%   { opacity: 0; transform: scale(0); }
  60%  { opacity: 1; transform: scale(1.6); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes chartPulse {
  0%   { transform: scale(0.5); opacity: 0.75; }
  75%  { opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}
@keyframes taskIn {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}
@keyframes sheen {
  0%   { left: -65%; }
  16%  { left: 135%; }
  100% { left: 135%; }
}
@keyframes tilePop {
  from { opacity: 0; transform: translateY(14px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes tileFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ==========================================================================
   Home hero — full-bleed cinematic feature: centered copy over a photo
   ========================================================================== */
.hero-trust {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

/* soft drifting glows + faint grid (quiet, professional motion) */
.ht2-glow { position: absolute; border-radius: 50%; filter: blur(46px); }
.ht2-glow--a { width: 560px; height: 560px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(43, 92, 146, 0.20), transparent 70%); }
.ht2-glow--b { width: 480px; height: 480px; bottom: -200px; left: -140px; background: radial-gradient(circle, rgba(179, 205, 224, 0.22), transparent 70%); }
.ht2-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(12, 20, 70, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 20, 70, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 28%, transparent 76%);
          mask-image: radial-gradient(120% 100% at 50% 0%, #000 28%, transparent 76%);
}
@media (prefers-reduced-motion: no-preference) {
  .ht2-glow--a { animation: glowDriftA 16s ease-in-out infinite alternate; }
  .ht2-glow--b { animation: glowDriftB 19s ease-in-out infinite alternate; }
}
@keyframes glowDriftA { to { transform: translate(-42px, 38px); } }
@keyframes glowDriftB { to { transform: translate(40px, -30px); } }

/* ---- Centered feature variant: dark, image-backed, full-height ---- */
.hero-feature {
  background: var(--ink-2);
  color: #fff;
  padding-block: 0;
  min-height: clamp(620px, 94svh, 940px);
  display: flex;
  align-items: center;
  isolation: isolate;
}

/* background photo + cinematic overlays */
.hero-feature__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-feature__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  transform: scale(1.06);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-feature__img { animation: heroZoom 24s ease-in-out infinite alternate; }
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.16); }
}

/* navy gradient veil — keeps text legible & on-brand */
.hero-feature__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 56, 0.82) 0%, rgba(10, 16, 56, 0.58) 40%, rgba(8, 12, 40, 0.80) 100%),
    radial-gradient(120% 90% at 50% 16%, rgba(12, 20, 70, 0.05), rgba(8, 12, 40, 0.88) 94%);
}

/* slow sweeping light beam */
.hero-feature__beam {
  position: absolute; top: -40%; left: 0;
  width: 45%; height: 180%;
  background: linear-gradient(105deg, transparent 35%, rgba(179, 205, 224, 0.14) 50%, transparent 65%);
  transform: translateX(-40%) rotate(8deg);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-feature__beam { animation: heroBeam 11s ease-in-out infinite; }
}
@keyframes heroBeam {
  0%, 100% { transform: translateX(-40%) rotate(8deg); opacity: 0; }
  45%      { opacity: 1; }
  92%      { transform: translateX(320%) rotate(8deg); opacity: 0; }
}

/* dark-mode variants of the glow + grid overlays */
.hero-feature .ht2-glow { z-index: 0; }
.ht2-grid--ondark {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(179, 205, 224, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 205, 224, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(120% 95% at 50% 42%, #000 28%, transparent 82%);
          mask-image: radial-gradient(120% 95% at 50% 42%, #000 28%, transparent 82%);
}

/* centered content column */
.hero-feature__inner {
  position: relative; z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(5.5rem, 11vw, 7.5rem);
}
.hero-feature h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin-top: 1.2rem;
  max-width: 16ch;
  text-shadow: 0 2px 30px rgba(8, 12, 40, 0.45);
}
.hero-feature h1 em {
  font-style: italic;
  color: var(--accent-soft); /* fallback for no background-clip */
  /* visibly different "brushed" texture: fine diagonal pinstripe over a blue sheen */
  background-color: #a9cfec;
  background-image:
    repeating-linear-gradient(122deg,
      rgba(255, 255, 255, 0) 0px,
      rgba(255, 255, 255, 0) 4px,
      rgba(255, 255, 255, 0.55) 4px,
      rgba(255, 255, 255, 0.55) 5px),
    linear-gradient(100deg, #7fb2dd 0%, #ffffff 42%, #5e9bce 74%);
  background-size: 14px 14px, 220% auto;
  background-position: 0 0, 0% center;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-feature h1 em { animation: heroShimmer 6s linear infinite; }
}
@keyframes heroShimmer { to { background-position: 0 0, 220% center; } }

/* floating glass icon chips — "pop up" then gently drift, keeps hero alive */
.hero-icons { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.chip {
  position: absolute;
  width: clamp(46px, 4.4vw, 66px);
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(6, 10, 35, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 1;
}
.chip__inner { width: 100%; height: 100%; display: grid; place-items: center; }
.chip svg { width: 46%; height: 46%; color: var(--accent-soft); }
.chip--1 { top: 15%;    left: 7%;   --d: 0.35s; --f: 6.5s; }
.chip--2 { top: 22%;    right: 8%;  --d: 0.55s; --f: 7.4s; }
.chip--3 { top: 50%;    left: 4%;   --d: 0.75s; --f: 6.0s; }
.chip--4 { top: 58%;    right: 5%;  --d: 0.95s; --f: 7.8s; }
.chip--5 { bottom: 19%; left: 14%;  --d: 1.15s; --f: 6.9s; }
.chip--6 { bottom: 23%; right: 15%; --d: 1.35s; --f: 7.6s; }
@media (prefers-reduced-motion: no-preference) {
  .chip { animation: chipPop 0.85s var(--ease) both; animation-delay: var(--d, 0.3s); }
  .chip__inner { animation: chipFloat var(--f, 6.5s) ease-in-out infinite; animation-delay: var(--d, 0.3s); }
}
@keyframes chipPop {
  0%   { opacity: 0; transform: translateY(24px) scale(0.5) rotate(-8deg); }
  60%  { opacity: 1; transform: translateY(-5px) scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@media (max-width: 980px) { .chip--3, .chip--4 { display: none; } }
@media (max-width: 760px) { .hero-icons { display: none; } }

.hero-feature .sub {
  margin-top: 1.3rem;
  max-width: 50ch;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}
.hero-feature .hero-cta {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  justify-content: center;
  margin-top: 2.2rem;
}

/* eyebrow — centered, line on both sides, light on dark */
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: ""; width: 26px; height: 1px;
  background: currentColor; opacity: 0.65;
  display: inline-block;
}
.eyebrow--ondark { color: var(--accent-soft); }
.eyebrow--ondark::before { background: var(--accent-soft); }

/* glassy centered stats strip */
.hero-stats {
  margin-top: 2.8rem;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.9rem;
  padding: 1.4rem 1.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px rgba(6, 10, 35, 0.45);
}
.hstat { display: flex; flex-direction: column; align-items: center; padding-inline: 0.4rem; }
.hero-stats .pv {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1;
  color: #fff; letter-spacing: -0.02em;
  display: inline-flex; align-items: baseline;
}
.hero-stats .pv .unit { color: var(--accent-soft); }
.hero-stats .pv--text { color: var(--accent-soft); font-size: clamp(1.5rem, 2.5vw, 2rem); }
.hero-stats .pl {
  margin-top: 0.55rem; max-width: 16ch;
  font-size: 0.78rem; line-height: 1.4; color: rgba(255, 255, 255, 0.66);
}
.hstat-div { width: 1px; align-self: center; height: 46px; background: rgba(255, 255, 255, 0.16); }

/* professional-body badges */
.trust-badges { margin-top: 2.4rem; }
.trust-badges .tbg-label {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.trust-badges ul { margin-top: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.trust-badges li {
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
  padding: 0.5rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.trust-badges li:hover { transform: translateY(-2px); border-color: var(--accent-soft); box-shadow: var(--shadow-sm); }
/* centered + dark variants */
.trust-badges--center { text-align: center; }
.trust-badges--center ul { justify-content: center; }
.trust-badges--ondark .tbg-label { color: rgba(255, 255, 255, 0.6); }
.trust-badges--ondark li {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
}
.trust-badges--ondark li:hover {
  border-color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

/* animated scroll cue */
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.6rem; z-index: 2;
  transform: translateX(-50%);
  display: grid; place-items: center;
}
.hero-scroll__mouse {
  width: 26px; height: 42px; border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  display: grid; justify-items: center; padding-top: 7px;
  transition: border-color 0.25s var(--ease);
}
.hero-scroll:hover .hero-scroll__mouse { border-color: rgba(255, 255, 255, 0.85); }
.hero-scroll__mouse > span {
  width: 4px; height: 8px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll__mouse > span { animation: scrollDot 1.8s ease-in-out infinite; }
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { opacity: 1; }
  60%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(10px); opacity: 0; }
}

@media (max-width: 720px) {
  .hero-stats { gap: 1.2rem 1.4rem; padding: 1.2rem 1.1rem; }
  .hstat-div { display: none; }
  .hstat { flex: 1 1 40%; }
}
@media (max-width: 480px) {
  .hero-feature .hero-cta .btn { flex: 1 1 100%; }
  .hero-scroll { display: none; }
}

/* ==========================================================================
   Trust strip — quiet, premium credential band
   ========================================================================== */
.trustbar {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
/* full-bleed strip; items distributed evenly across the page width, single row */
.trustbar-inner {
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 0.9rem clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.4rem, 2.6vw, 1.95rem);
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}
.tb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(0.82rem, 1.05vw, 0.98rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.004em;
  white-space: nowrap;
}
.tb-item svg {
  width: 19px; height: 19px;
  color: var(--accent);
  flex-shrink: 0;
}
.tb-divider {
  width: 1px; height: 22px;
  background: var(--line);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .tb-divider { display: none; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: start;
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
/* big ghosted index number */
.service-num {
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 0.9;
  font-weight: 500;
  color: var(--paper-3);
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}
.service-ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--paper-2);
  color: var(--accent);
  margin-bottom: 1rem;
}
.service-ic svg { width: 23px; height: 23px; }
.service-card h3 { font-size: 1.3rem; }
.service-card p { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.service-card .textlink { margin-top: 1.35rem; }

/* featured (centre) card — elevated, floating, with a gradient graphic header */
.service-card--featured {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  padding-top: 0;
}
.svc-graphic {
  height: 130px;
  margin: 0 -1.8rem 1.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(130% 130% at 25% 0%, rgba(179, 205, 224, 0.55), transparent 55%),
    linear-gradient(120deg, #15406f, #2b5c92 50%, #6f9fc7);
}
.svc-graphic::before { /* flowing diagonal strands echoing the ascending logo */
  content: ""; position: absolute; inset: -20% -10%;
  background: repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0 1.5px, transparent 1.5px 13px);
  -webkit-mask-image: radial-gradient(140% 120% at 15% 120%, #000, transparent 72%);
          mask-image: radial-gradient(140% 120% at 15% 120%, #000, transparent 72%);
}
.svc-graphic .svc-num {
  position: absolute; left: 1.8rem; bottom: 0.7rem;
  font-family: var(--display); font-size: 2.6rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.85); line-height: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .service-card--featured { animation: svcFloat 6.5s ease-in-out infinite; }
  .svc-graphic::before { animation: svcDrift 16s linear infinite; }
}
.service-card--featured:hover { animation-play-state: paused; }
@keyframes svcFloat { 0%, 100% { transform: translateY(-12px); } 50% { transform: translateY(-22px); } }
@keyframes svcDrift { to { transform: translateX(13px); } }

/* ==========================================================================
   Differentiators
   ========================================================================== */
.diff {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.diff-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.diff-list { display: grid; gap: 0; counter-reset: diff; }
.diff-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.diff-item:last-child { border-bottom: 1px solid var(--line); }
.diff-item .num {
  counter-increment: diff;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brass-deep);
  width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--brass);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.diff-item .num::before { content: counter(diff, decimal-leading-zero); }
.diff-item h3 { font-size: 1.25rem; }
.diff-item p { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.97rem; }
.diff-sticky { position: sticky; top: 110px; }
.diff-sticky .title { font-size: clamp(1.9rem, 3.6vw, 2.85rem); margin-top: 0.9rem; }
.diff-sticky .lede { margin-top: 1rem; color: var(--muted); }
.diff-pledge {
  margin-top: 1.6rem;
  padding: 1.1rem 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.diff-pledge b { font-family: var(--display); }

/* ==========================================================================
   Social proof
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.stat {
  padding: 2rem 1rem;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat .val {
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.5vw, 3.2rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .val .unit { color: var(--brass-deep); }
.stat .lbl {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 500;
}

/* client logos */
.clients { margin-top: clamp(3rem, 6vw, 4.5rem); text-align: center; }
.clients .cl-label {
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.client-row {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem 1.4rem;
  align-items: center;
}
.client-logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  filter: grayscale(1);
  opacity: 0.62;
  padding: 0.6rem 0.4rem;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.client-logo span { display: block; font-family: var(--body); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.client-logo:hover { opacity: 1; color: var(--ink); }

/* testimonials */
.testimonials {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.quote .mark {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--brass);
  height: 1.2rem;
}
.quote blockquote {
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.55;
  flex-grow: 1;
}
.quote .who {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 0.8rem;
}
.quote .who .av {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  flex-shrink: 0;
}
.quote .who b { display: block; color: var(--ink); font-size: 0.92rem; font-weight: 700; }
.quote .who span { font-size: 0.8rem; color: var(--muted); }

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.closing {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(43, 92, 146, 0.16), transparent 60%),
    var(--ink-2);
  color: var(--paper);
}
.closing h2, .closing h3 { color: var(--paper); }
.closing-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.closing .eyebrow { color: var(--brass-soft); }
.closing .eyebrow::before { background: var(--brass-soft); }
.closing h2 { font-size: clamp(2.25rem, 4.9vw, 3.6rem); margin-top: 0.9rem; }
.closing .lede { margin-top: 1.1rem; color: rgba(238, 243, 249, 0.78); max-width: 46ch; }

.contact-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }

.contact-lines { margin-top: 2.1rem; display: grid; gap: 0.85rem; }
.contact-line {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.95rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-line:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.22); }
.contact-line .ci {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-dark);
  color: var(--brass-soft); flex-shrink: 0;
}
.contact-line .ci svg { width: 20px; height: 20px; }
.contact-line .cl-k { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-soft); font-weight: 600; }
.contact-line .cl-v { display: block; margin-top: 0.18rem; font-size: 1.12rem; color: var(--paper); font-weight: 600; }
.contact-line a.cl-v:hover { color: var(--brass-soft); }

/* map */
.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
  background: var(--ink);
  display: flex; flex-direction: column;
  min-height: 340px;
}
.map-card iframe { width: 100%; height: 100%; min-height: 300px; border: 0; flex-grow: 1; filter: grayscale(0.3) contrast(1.05); }
.map-card .map-foot {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.2rem;
  font-size: 0.88rem; color: rgba(250,246,239,0.85);
  border-top: 1px solid var(--line-dark);
}
.map-card .map-foot svg { width: 18px; height: 18px; color: var(--brass-soft); flex-shrink: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink-2);
  color: rgba(238, 243, 249, 0.72);
  border-top: 1px solid var(--line-dark);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem 2rem;
}
.footer-brand .brand__name { color: var(--paper); }
.footer-brand .brand__kicker { color: var(--brass-soft); }
.footer-about {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: rgba(238, 243, 249, 0.6);
  max-width: 34ch;
}
.footer-reg {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(238, 243, 249, 0.5);
  border-left: 2px solid var(--brass);
  padding-left: 0.9rem;
}
.footer-disclaimer { margin-top: 1.6rem; max-width: none; }
.footer-col h4 {
  color: var(--brass-soft);
  font-family: var(--body);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a,
.footer-col .footer-cta { font-size: 0.92rem; color: rgba(238, 243, 249, 0.72); transition: color 0.2s var(--ease); }
.footer-col a:hover,
.footer-col .footer-cta:hover { color: var(--paper); }
.footer-col .footer-cta {
  background: none; border: 0; padding: 0;
  font-family: inherit; font-weight: inherit; line-height: inherit;
  text-align: left; cursor: pointer;
}
.footer-col address {
  font-style: normal; font-size: 0.88rem; line-height: 1.6;
  color: rgba(238, 243, 249, 0.62);
}
.footer-col address b { color: var(--paper); font-weight: 600; }
.footer-col address + address { margin-top: 0.9rem; }

.footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(238, 243, 249, 0.5); }
.footer-bottom .legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom .legal a { font-size: 0.82rem; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  color: var(--paper);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-social a:hover { background: var(--brass); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

/* ==========================================================================
   Modal (contact / booking form)
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: 1.25rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.modal.open { opacity: 1; visibility: visible; }
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(8, 12, 35, 0.55);
  backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 2.5rem);
  overflow-y: auto;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.32s var(--ease);
}
.modal.open .modal__dialog { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  cursor: pointer; display: grid; place-items: center;
  color: var(--ink); transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.modal__close:hover { background: var(--paper-2); transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; }
.modal__eyebrow { color: var(--brass-deep); }
.modal h2 { font-size: 1.7rem; margin-top: 0.6rem; }
.modal__intro { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; }

.form { margin-top: 1.5rem; display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--brass-deep); }
.field input, .field select, .field textarea {
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.96rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(43, 92, 146, 0.16);
}
.form .form-foot { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.3rem; }
.form .form-note { font-size: 0.78rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.4rem; }
.form .form-note svg { width: 14px; height: 14px; color: var(--ok); }

.form-success { text-align: center; padding: 1.5rem 0.5rem; display: none; }
.form-success.show { display: block; }
.form-success .tick {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.2rem;
  display: grid; place-items: center;
  background: rgba(47, 125, 87, 0.14); color: var(--ok);
}
.form-success .tick svg { width: 32px; height: 32px; }
.form-success h2 { font-size: 1.5rem; }
.form-success p { margin-top: 0.6rem; color: var(--muted); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
/* Reveal is gated behind the `.js` class (added by an inline head script),
   so if JavaScript is disabled or fails to load, all content stays visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.05s var(--ease-lux), transform 1.05s var(--ease-lux);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
[data-delay="1"]  { transition-delay: 0.10s; }
[data-delay="2"]  { transition-delay: 0.20s; }
[data-delay="3"]  { transition-delay: 0.30s; }
[data-delay="4"]  { transition-delay: 0.40s; }
[data-delay="5"]  { transition-delay: 0.50s; }
[data-delay="6"]  { transition-delay: 0.60s; }
[data-delay="7"]  { transition-delay: 0.70s; }
[data-delay="8"]  { transition-delay: 0.80s; }
[data-delay="9"]  { transition-delay: 0.90s; }
[data-delay="10"] { transition-delay: 1.00s; }

/* --------------------------------------------------------------------------
   Headline line reveal
   script.js wraps eligible headings line by line (`.lux-split`) so each line
   rises from behind its own mask. Only headings that carry `.reveal`
   themselves are split, so there is always something to trigger them, and the
   class is added only after a successful split — if the script never runs the
   heading is just ordinary text.
   -------------------------------------------------------------------------- */
.js .lux-split { opacity: 1; transform: none; transition: none; }
.js .lux-split .ln {
  display: block;
  overflow: hidden;
  /* descenders and italics would otherwise be clipped by the mask */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.js .lux-split .ln-i {
  display: block;
  transform: translateY(110%);
  transition: transform 1.15s var(--ease-lux);
  transition-delay: calc(var(--lb, 0ms) + var(--l, 0) * 105ms);
  will-change: transform;
}
.js .lux-split.is-visible .ln-i { transform: translateY(0); }

/* the short rule beside an eyebrow draws itself in */
.js .reveal .eyebrow::before,
.js .reveal.eyebrow::before,
.js .reveal .eyebrow--center::after {
  transform: scaleX(0);
  transition: transform 0.95s var(--ease-lux) 0.18s;
}
.js .reveal .eyebrow::before,
.js .reveal.eyebrow::before { transform-origin: left center; }
.js .reveal .eyebrow--center::after { transform-origin: right center; }
.js .reveal.is-visible .eyebrow::before,
.js .reveal.is-visible.eyebrow::before,
.js .reveal.is-visible .eyebrow--center::after { transform: scaleX(1); }

/* portrait photographs settle out of a soft wipe */
.js .reveal .pf-photo { overflow: hidden; }
.js .reveal .pf-photo .partner-photo {
  transform: scale(1.06);
  transition: transform 1.6s var(--ease-lux) 0.1s, clip-path 1.6s var(--ease-lux) 0.1s;
  clip-path: inset(0 0 12% 0);
}
.js .reveal.is-visible .pf-photo .partner-photo {
  transform: none;
  clip-path: inset(0 0 0 0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 46ch; }
  .hero-visual { max-width: 460px; margin-inline: auto; margin-top: 1rem; }
  .diff-grid { grid-template-columns: 1fr; }
  .diff-sticky { position: static; }
  .closing-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--featured { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1180px) {
  .primary-nav,
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }

  /* mobile menu panel */
  .mobile-menu {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 1.25rem var(--gutter) 1.75rem;
    display: grid;
    gap: 0.25rem;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    z-index: 90;
  }
  .mobile-menu.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .mobile-menu a.m-link {
    padding: 0.85rem 0.5rem;
    font-size: 1.05rem; font-weight: 500; color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }
  .mobile-menu .m-actions { margin-top: 1rem; display: grid; gap: 0.7rem; }
  .mobile-menu .m-phone {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-weight: 600; color: var(--ink); padding: 0.5rem;
  }
  .mobile-menu .m-phone svg { width: 18px; height: 18px; color: var(--brass-deep); }
}
@media (min-width: 1181px) { .mobile-menu { display: none; } }

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .testimonials { grid-template-columns: 1fr; }
  .client-row { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card--featured { animation: none; }
  .form-row { grid-template-columns: 1fr; }
  .trustbar-inner { flex-wrap: wrap; justify-content: center; gap: 0.7rem 1.4rem; }
  .tb-divider { display: none; }
  /* Compact footer on phones: two link columns, tighter rhythm, no blurb */
  .site-footer { padding-block: 2.4rem 1rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .brand__mark { width: 34px; height: 34px; }
  .footer-about { display: none; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col h4 { font-size: 0.68rem; margin-bottom: 0.55rem; }
  .footer-col ul { gap: 0.42rem; }
  .footer-col a,
  .footer-col .footer-cta { font-size: 0.86rem; }
  .footer-col address { font-size: 0.83rem; line-height: 1.55; }
  .footer-col address br { line-height: 1.4; }
  .footer-disclaimer { margin-top: 1.1rem; font-size: 0.72rem; line-height: 1.5; padding-left: 0.7rem; }
  .footer-bottom {
    flex-direction: column; align-items: flex-start;
    margin-top: 1.4rem; padding-top: 1rem; gap: 0.65rem;
  }
  .footer-bottom p, .footer-bottom .legal a { font-size: 0.78rem; }
  .footer-social a { width: 34px; height: 34px; }
  .float-card--tl { left: -0.5rem; top: -0.6rem; }
  .float-card--br { right: -0.4rem; bottom: -0.7rem; }
}

@media (max-width: 420px) {
  .float-card { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Page hero (subpages)
   ========================================================================== */
.page-hero {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem);
  position: relative;
}
.page-hero .container { max-width: var(--maxw); }
.page-hero h1 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  margin-top: 1rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 26ch;
}
.page-hero .sub {
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  color: var(--ink-soft);
  max-width: 58ch;
}
.page-hero .trust-line {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brass-deep);
}
.page-hero .hero-cta { margin-top: 1.7rem; }

/* ==========================================================================
   Audience grid ("Who we serve")
   ========================================================================== */
/* Who we serve — orbit hub + numbered list (ref 03) */
.serve-layout {
  margin-top: clamp(2.5rem, 4vw, 3.75rem);
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.serve-hub { display: grid; place-items: center; }
.orbit { position: relative; width: min(330px, 90%); aspect-ratio: 1; margin-inline: auto; }
.orbit .ring { position: absolute; border-radius: 50%; }
.orbit .ring--1 { inset: 0; border: 1px solid var(--line); }
.orbit .ring--2 { inset: 13%; border: 1px dashed rgba(43, 92, 146, 0.28); }
.orbit .spin { position: absolute; inset: 0; }
.orbit .dot { position: absolute; width: 13px; height: 13px; border-radius: 50%; left: calc(50% - 6.5px); }
.orbit .dot--a { top: -6.5px; background: var(--accent); box-shadow: 0 0 0 5px rgba(43, 92, 146, 0.12); }
.orbit .dot--b { bottom: -6.5px; background: var(--accent-soft); box-shadow: 0 0 0 5px rgba(179, 205, 224, 0.2); }
.orbit .core {
  position: absolute; inset: 25%; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #2b5c92, #0c1446 72%);
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg), inset 0 0 30px rgba(0, 0, 0, 0.25);
}
.orbit .core img { width: 58%; height: 58%; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35)); }
@media (prefers-reduced-motion: no-preference) { .orbit .spin { animation: spin 28s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }

.serve-list { display: grid; gap: 0; }
.serve-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.serve-item:last-child { border-bottom: 1px solid var(--line); }
.serve-num {
  font-family: var(--display); font-weight: 600;
  font-size: 1.05rem; color: var(--muted); align-self: start; padding-top: 0.6rem;
}
.serve-ic {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.serve-ic svg { width: 22px; height: 22px; }
.serve-item:hover .serve-ic { transform: scale(1.08); background: var(--accent); }
.serve-item h3 { font-size: 1.18rem; }
.serve-item p { margin-top: 0.25rem; color: var(--muted); font-size: 0.95rem; }

/* Why PLC Peiris — dark ascending glowing steps (ref 04) */
.why-steps {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(900px 520px at 82% 125%, rgba(43, 92, 146, 0.38), transparent 60%),
    radial-gradient(680px 420px at 8% -12%, rgba(43, 92, 146, 0.2), transparent 60%),
    var(--ink-2);
}
.why-steps::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 100%, #000, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 100%, #000, transparent 78%);
}
.why-steps .container { position: relative; z-index: 1; }
.why-steps .eyebrow { color: var(--accent-soft); }
.why-steps .eyebrow::before { background: var(--accent-soft); }
.why-steps h2 { color: #fff; }
.why-steps .lede { color: rgba(238, 243, 249, 0.74); }

.steps {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: end;
}
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step:nth-child(2) { transform: translateY(-40px); }
.step:nth-child(3) { transform: translateY(-80px); }
.step:nth-child(4) { transform: translateY(-120px); }
.step-num { font-family: var(--display); font-size: 0.92rem; letter-spacing: 0.16em; color: var(--accent-soft); }
.step h3 { color: #fff; font-size: 1.24rem; margin-top: 0.45rem; }
.step p { color: rgba(238, 243, 249, 0.7); font-size: 0.93rem; margin-top: 0.55rem; max-width: 30ch; }
.step-pillar {
  margin-top: 1.5rem;
  width: 8px; height: 90px; border-radius: 6px;
  background: linear-gradient(to top, rgba(43, 92, 146, 0), var(--accent));
  position: relative;
  box-shadow: 0 0 22px rgba(43, 92, 146, 0.5);
}
.step-node {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, var(--accent));
  box-shadow: 0 0 26px 5px rgba(43, 92, 146, 0.8);
}
@media (prefers-reduced-motion: no-preference) {
  .step-node { animation: nodePulse 3s ease-in-out infinite; }
  .step:nth-child(2) .step-node { animation-delay: 0.6s; }
  .step:nth-child(3) .step-node { animation-delay: 1.2s; }
  .step:nth-child(4) .step-node { animation-delay: 1.8s; }
}
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 22px 4px rgba(43, 92, 146, 0.55); }
  50%      { box-shadow: 0 0 34px 9px rgba(43, 92, 146, 0.95); }
}

@media (max-width: 880px) {
  .serve-layout { grid-template-columns: 1fr; }
  .serve-hub { display: none; }
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 2.5rem; }
  .step:nth-child(n) { transform: none; }
  .step { align-items: flex-start; text-align: left; padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .step:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .step p { max-width: none; }
  .step-pillar { display: none; }
}

/* ==========================================================================
   Partners teaser (home) & full profiles (about)
   ========================================================================== */
.partners-teaser {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.partner-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.partner-card .pc-ph {
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(160deg, #e8f1f8, #cfe0ee);
}
.partner-card .pc-ph .partner-photo {
  width: 100%; height: 100%;
  border: 0; border-radius: 0; background: transparent;
  object-fit: cover;
  object-position: center top;
  /* zoom in so the source image's white corner panel is cropped out of the circle */
  transform: scale(1.34);
  transform-origin: center 32%;
}
.partner-photo {
  width: 76px; height: 76px; border-radius: 12px;
  background: var(--paper-2);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.partner-card h3 { font-size: 1.12rem; }
.partner-card .role { font-size: 0.82rem; color: var(--brass-deep); font-weight: 600; margin-top: 0.2rem; }
.partner-card .textlink { margin-top: 0.7rem; }

.partner-profile {
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
}
/* partner photo — the supplied images are self-styled cards, shown as-is */
.pf-photo { position: relative; }
.partner-profile .pf-photo .partner-photo {
  width: 100%; height: auto; display: block;
  object-fit: contain;
  border: 0; border-radius: 0; background: transparent;
}

/* About — creative "Our story" layout */
.story-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: clamp(0.5rem, 2vw, 1rem);
}
.story-copy .title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 0.7rem; }
.story-copy p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.02rem; max-width: 60ch; }
.story-panel {
  position: relative; overflow: hidden;
  background: radial-gradient(130% 130% at 0% 0%, #2b5c92, #0c1446 70%);
  color: var(--paper);
  border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-lg);
}
.story-panel .sp-quote {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3; color: #fff;
}
.sp-facts { margin-top: 1.6rem; display: grid; gap: 0.95rem; }
.sp-facts li { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 0.8rem; }
.sp-facts b { display: block; font-size: 1.05rem; color: #fff; font-weight: 600; }
.sp-facts span { font-size: 0.85rem; color: rgba(238, 243, 249, 0.72); }
.sp-facts a { color: #fff; text-decoration: none; }
.sp-facts a:hover, .sp-facts a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 880px) { .story-grid { grid-template-columns: 1fr; } }
.partner-profile h3 { font-size: 1.55rem; }
.partner-profile .credentials { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }
.partner-profile .role { font-size: 0.88rem; color: var(--brass-deep); font-weight: 600; margin-top: 0.4rem; }
.partner-profile p { margin-top: 1rem; color: var(--ink-soft); font-size: 0.97rem; }
.partner-profile .specialty-list { margin-top: 1.2rem; display: grid; gap: 0.5rem; }
.partner-profile .specialty-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.93rem; color: var(--ink-soft);
}
.partner-profile .specialty-list svg { width: 16px; height: 16px; color: var(--brass-deep); flex-shrink: 0; margin-top: 0.18rem; }
.partner-profile .linkedin-link { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.partner-profile .linkedin-link svg { width: 16px; height: 16px; color: var(--brass-deep); }

/* ==========================================================================
   Mission & Vision
   ========================================================================== */
.mission-vision {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.mv-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.7rem 1.8rem;
}
.mv-card h3 { font-size: 1.2rem; }
.mv-card p { margin-top: 0.7rem; color: var(--ink-soft); font-size: 0.97rem; }

/* ==========================================================================
   Firm story / prose blocks
   ========================================================================== */
.prose { max-width: 70ch; margin-top: clamp(1.5rem, 3vw, 2rem); }
.prose p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.02rem; }
.prose p:first-child { margin-top: 0; }

/* ==========================================================================
   Service cluster lists (tax / accounting / advisory pages)
   ========================================================================== */
.cluster-grid {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.cluster-grid--two { grid-template-columns: repeat(2, 1fr); }
.cluster-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.7rem 1.5rem;
}
.cluster-card h3 { font-size: 1.18rem; }
.cluster-list { margin-top: 1.1rem; display: grid; gap: 0.65rem; }
.cluster-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.93rem; color: var(--ink-soft); line-height: 1.5;
}
.cluster-list svg { width: 16px; height: 16px; color: var(--brass-deep); flex-shrink: 0; margin-top: 0.2rem; }

.cluster-callout {
  margin-top: 1.1rem;
  grid-column: 1 / -1;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.7rem 1.8rem;
}
.cluster-callout h3 { font-size: 1.15rem; }
.cluster-callout p { margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.96rem; }

.specialist-strip {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.specialist-strip svg { width: 22px; height: 22px; color: var(--brass-soft); flex-shrink: 0; }
.specialist-strip b { color: var(--brass-soft); }

/* ==========================================================================
   Contact page — multi-channel cards
   ========================================================================== */
.channel-grid {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.channel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.channel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.channel-ic {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--paper-2); color: var(--brass-deep);
}
.channel-ic svg { width: 21px; height: 21px; }
.channel-card h3 { font-size: 1.02rem; }
.channel-card .textlink { margin-top: auto; font-size: 0.88rem; }
.channel-card a.cv { font-size: 0.93rem; color: var(--ink-soft); display: block; }

/* ==========================================================================
   Office hours / location
   ========================================================================== */
.office-block {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.office-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  min-height: 320px;
}
.office-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.office-details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.office-details address { font-style: normal; font-size: 0.97rem; color: var(--ink-soft); line-height: 1.6; }
.office-details .copy-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.84rem; font-weight: 600; color: var(--brass-deep);
  background: none; border: none; cursor: pointer; padding: 0; margin-top: 0.6rem;
}
.office-details .copy-btn svg { width: 15px; height: 15px; }
.office-hours-list { display: grid; gap: 0.5rem; font-size: 0.93rem; color: var(--ink-soft); }
.office-hours-list .row { display: flex; justify-content: space-between; gap: 1rem; }
.office-hours-list .row b { color: var(--ink); font-weight: 600; }
.office-note { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }
.location-strap {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

/* ==========================================================================
   FAQ accordion (native details/summary)
   ========================================================================== */
.faq-list {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: grid;
  gap: 0.7rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.2rem 1.3rem;
}
.faq-item summary {
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--brass-deep);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 0 1.2rem; color: var(--muted); font-size: 0.95rem; }

/* ==========================================================================
   Meet the partners (contact page)
   ========================================================================== */
.partners-mini {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.partner-mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.partner-mini-card h3 { font-size: 1.08rem; }
.partner-mini-card .role { font-size: 0.82rem; color: var(--brass-deep); font-weight: 600; margin-top: 0.2rem; }
.partner-mini-card p { margin-top: 0.7rem; color: var(--ink-soft); font-size: 0.93rem; }
.partner-mini-card a.cv { margin-top: 0.7rem; display: inline-block; font-size: 0.88rem; font-weight: 600; color: var(--ink); }

/* placeholder note for partners whose full profile is still to be added */
.profile-pending {
  margin-top: 0.7rem;
  color: var(--muted);
  font-style: italic;
  font-size: 0.94rem;
}

/* ==========================================================================
   Trust reinforcement strip
   ========================================================================== */
.trust-reinforce {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 1.5rem;
  text-align: center;
}
.trust-reinforce p { font-size: 0.93rem; color: var(--ink-soft); max-width: 64ch; margin-inline: auto; }
.trust-reinforce b { color: var(--ink); }

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 250;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-lg); }
@media (max-width: 720px) {
  .whatsapp-float { bottom: 1.1rem; right: 1.1rem; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 25px; height: 25px; }
}

/* ==========================================================================
   404 page
   ========================================================================== */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}
.error-page .code {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--brass);
  line-height: 1;
}
.error-page h1 { margin-top: 0.5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.error-page p { margin-top: 0.8rem; color: var(--muted); }
.error-page .hero-cta { margin-top: 1.8rem; justify-content: center; }

/* ==========================================================================
   Responsive — new components
   ========================================================================== */
@media (max-width: 1000px) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-profile { grid-template-columns: 1fr; }
  .pf-photo { max-width: 280px; }
  .mission-vision { grid-template-columns: 1fr; }
  .cluster-grid { grid-template-columns: 1fr 1fr; }
  .channel-grid { grid-template-columns: 1fr 1fr; }
  .office-block { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .cluster-grid, .cluster-grid--two { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: 1fr; }
  .partners-teaser, .partners-mini { grid-template-columns: 1fr; }
  /* section labels (e.g. "What we do", "Who we serve") read too small on phones */
  .eyebrow { font-size: 0.9rem; letter-spacing: 0.14em; gap: 0.5rem; }
  .eyebrow::before, .eyebrow--center::after { width: 20px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .lux-split .ln-i { transform: none; }
  .js .reveal .eyebrow::before,
  .js .reveal.eyebrow::before,
  .js .reveal .eyebrow--center::after { transform: none; }
  .js .reveal .pf-photo .partner-photo { transform: none; clip-path: none; }
}
