/* Shah Dalal & Associates — site styles */
@font-face { font-family: "Noto Serif"; src: url("fonts/noto-serif.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
:root {
  --indigo: #185888;       /* logo blue */
  --indigo-deep: #0E3A5E;
  --indigo-soft: #E3EEF6;
  --tick: #167A56;
  --tick-soft: #E3F1EA;
  --paper: #FFFFFF;
  --stone: #EFF3F6;
  --ink: #1A1F2B;
  --ink-2: #4A5163;
  --line: #D7DFE7;
  --error: #B42318;

  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--indigo); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--tick); }
:focus-visible { outline: 3px solid var(--tick); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--indigo-deep); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--indigo); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--indigo-deep); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 500; color: var(--ink-2); letter-spacing: .01em; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .97rem; padding: 8px 12px; border-radius: var(--radius); }
.nav a:hover { color: var(--tick); }
.nav a[aria-current="page"] { color: var(--indigo); box-shadow: inset 0 -2px 0 var(--tick); border-radius: 0; }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font: 600 .95rem var(--sans); color: var(--indigo); cursor: pointer; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--stone); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--tick); }
  .nav .btn { margin: 12px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; font: 600 1rem/1 var(--sans); text-decoration: none; padding: 14px 22px; border-radius: var(--radius); border: 2px solid var(--indigo); background: var(--indigo); color: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); color: #fff; }
.btn-tick { background: var(--tick); border-color: var(--tick); }
.btn-tick:hover { background: #0F5F42; border-color: #0F5F42; }
.btn-ghost { background: transparent; color: var(--indigo); }
.btn-ghost:hover { background: var(--indigo-soft); color: var(--indigo-deep); }
.nav .btn { padding: 11px 18px; font-size: .95rem; color: #fff; }
.nav .btn:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero-lede { font-size: 1.2rem; color: var(--ink-2); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.ledger { background: var(--stone); border-radius: var(--radius); padding: 30px 30px 26px; position: relative; }
.ledger-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--indigo); padding-bottom: 10px; margin-bottom: 6px; }
.ledger-head strong { font-family: var(--serif); font-size: 1.15rem; color: var(--indigo-deep); }
.ledger-head span { font-size: .85rem; color: var(--ink-2); }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.ledger li:last-child { border-bottom: 0; }
.ledger li svg { width: 26px; height: 20px; flex: none; }
.ledger li svg path { fill: none; stroke: var(--tick); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: tick .45s ease-out forwards; }
.ledger li:nth-child(1) svg path { animation-delay: .35s; }
.ledger li:nth-child(2) svg path { animation-delay: .55s; }
.ledger li:nth-child(3) svg path { animation-delay: .75s; }
.ledger li:nth-child(4) svg path { animation-delay: .95s; }
.ledger li:nth-child(5) svg path { animation-delay: 1.15s; }
.ledger li:nth-child(6) svg path { animation-delay: 1.35s; }
@keyframes tick { to { stroke-dashoffset: 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-stone { background: var(--stone); }
.section-indigo { background: var(--indigo); color: #E9ECF5; }
.section-indigo h2, .section-indigo h3 { color: #fff; }
.section-intro { max-width: 62ch; margin-bottom: 40px; }
.section-intro p { color: var(--ink-2); font-size: 1.1rem; }

.page-head { padding: clamp(44px, 7vw, 80px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-head p { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); }
.split-wide { grid-template-columns: 1fr 1.6fr; }

/* tick list — the green audit tick as bullet */
.ticks { list-style: none; margin: 0 0 1em; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20'%3E%3Cpath d='M3 11 L10 17 L23 3' fill='none' stroke='%23167A56' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.ticks-cols { columns: 2; column-gap: 40px; }
.ticks-cols li { break-inside: avoid; }

/* Home: service areas */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--indigo); }
.area { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--line); }
.area:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.area p { color: var(--ink-2); margin-bottom: .6em; }
.area a { font-weight: 600; text-decoration: none; }
.area a:hover { text-decoration: underline; }

/* Quote strip */
.quote { max-width: 860px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; font-weight: 500; color: #fff; min-height: 3.9em; transition: opacity .3s; }
.quote cite { display: block; margin-top: 14px; font-style: normal; color: #B9C2DC; font-size: 1rem; }
.quote-controls { display: flex; gap: 10px; margin-top: 26px; }
.quote-controls button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); padding: 8px 14px; font: 500 .9rem var(--sans); cursor: pointer; }
.quote-controls button:hover { border-color: #fff; }

/* Beliefs */
.beliefs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.belief { padding: 20px 0; border-top: 1px solid var(--line); }
.belief strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--indigo-deep); margin-bottom: 4px; }
.belief p { color: var(--ink-2); margin: 0; }

/* CTA band */
.cta-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cta { padding: clamp(36px, 5vw, 56px) clamp(0px, 3vw, 40px) clamp(36px, 5vw, 56px) 0; }
.cta + .cta { border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 48px); }
.cta p { color: var(--ink-2); }

/* Services page */
.service-group { padding: clamp(44px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.service-group:last-of-type { border-bottom: 0; }
.domestic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.domestic h3 { padding-bottom: 10px; border-bottom: 2px solid var(--indigo); }
.global-list { border-top: 2px solid var(--indigo); }
.global-list details { border-bottom: 1px solid var(--line); }
.global-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--indigo-deep); }
.global-list summary::-webkit-details-marker { display: none; }
.global-list summary::after { content: "+"; font-family: var(--sans); font-weight: 400; font-size: 1.6rem; color: var(--tick); line-height: 1; transition: transform .2s; }
.global-list details[open] summary::after { transform: rotate(45deg); }
.global-list summary:hover { color: var(--tick); }
.global-list .body { padding: 0 0 22px; color: var(--ink-2); }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.toc a { text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; font-size: .95rem; }
.toc a:hover { border-color: var(--tick); }

/* Team */
.person { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 36px 0; border-top: 1px solid var(--line); }
.person:first-child { border-top: 2px solid var(--indigo); }
.person-id h3 { margin-bottom: 6px; }
.person-quals { color: var(--ink-2); font-size: .95rem; margin: 0 0 10px; }
.initials { width: 72px; height: 72px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo); font: 600 1.5rem/72px var(--serif); text-align: center; margin-bottom: 16px; }
.associates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 2px solid var(--indigo); }
.associate { padding: 22px 0; border-bottom: 1px solid var(--line); }
.associate h3 { font-size: 1.15rem; margin-bottom: 2px; }
.associate .person-quals { margin-bottom: 8px; }
.associate p { color: var(--ink-2); margin: 0; font-size: 1rem; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea { font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #B8C0CE; border-radius: var(--radius); padding: 12px 14px; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--tick); box-shadow: 0 0 0 3px var(--tick-soft); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .88rem; min-height: 0; }
.field-hint { color: var(--ink-2); font-size: .88rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { grid-column: 1 / -1; font-size: .9rem; color: var(--ink-2); margin: 0; }
.form-actions { grid-column: 1 / -1; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 22px; font-weight: 500; }
.alert-ok { background: var(--tick-soft); color: #0E5A3F; }
.alert-err { background: #FDECEA; color: var(--error); }
.form-panel { background: var(--stone); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 2px solid var(--indigo); }
.contact-list .k { display: block; font-size: .88rem; color: var(--ink-2); }
.contact-list a { font-weight: 500; }
.map { border: 0; width: 100%; height: 300px; border-radius: var(--radius); filter: grayscale(.3); }

/* Careers */
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; padding: 7px 14px; border-radius: 999px; font-size: .92rem; margin-bottom: 18px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-open { background: var(--tick-soft); color: #0E5A3F; }
.status-closed { background: var(--stone); color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--indigo-deep); color: #C5CCE0; padding: 56px 0 28px; font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #9FD8BF; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h3 { color: #fff; font-size: 1.1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: #9AA4C2; }
.footer-bottom button { background: none; border: 0; color: #C5CCE0; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* Disclaimer */
.disclaimer[hidden] { display: none; }
.disclaimer { position: fixed; inset: 0; z-index: 200; background: rgba(16,22,40,.6); display: grid; place-items: center; padding: 16px; }
.disclaimer-box { background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%; padding: clamp(24px, 5vw, 40px); max-height: 90vh; overflow: auto; }
.disclaimer-box h2 { font-size: 1.6rem; }
.disclaimer-box p { color: var(--ink-2); font-size: 1rem; }
.disclaimer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero .wrap, .split, .split-wide, .cta-band .wrap { grid-template-columns: 1fr; }
  .cta + .cta { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .areas { grid-template-columns: 1fr 1fr; }
  .area, .area:not(:nth-child(3n+1)) { padding: 24px 20px 24px 0; border-left: 0; }
  .area:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .areas, .beliefs, .domestic, .associates, .form { grid-template-columns: 1fr; }
  .area:nth-child(2n) { padding-left: 0; border-left: 0; }
  .ticks-cols { columns: 1; }
  .person { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ledger li svg path { animation: none; stroke-dashoffset: 0; }
  .quote blockquote { transition: none; }
}

/* =================================================================
   MOTION LAYER — smooth, Apple-style
   ================================================================= */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);      /* long, soft settle */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* Smooth page-to-page transitions (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* Scroll reveal: fade, lift and un-blur */
.js .reveal {
  opacity: 0;
  transform: translateY(36px) scale(.985);
  filter: blur(6px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* Hero headline: words rise in one by one */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .w > span { display: inline-block; transform: translateY(105%); opacity: 0; animation: word-up 1.1s var(--ease-out) forwards; animation-delay: var(--d); }
@keyframes word-up { to { transform: none; opacity: 1; } }
.js .hero-lede, .js .hero-actions { opacity: 0; transform: translateY(20px); animation: fade-up 1s var(--ease-out) forwards; }
.js .hero-lede { animation-delay: .7s; }
.js .hero-actions { animation-delay: .85s; }
.js .ledger { opacity: 0; transform: translateY(40px) scale(.96); animation: card-in 1.3s var(--ease-out) .35s forwards; }
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes card-in { to { opacity: 1; transform: none; } }
.ledger li svg path { animation-duration: .6s; }
.ledger li:nth-child(1) svg path { animation-delay: 1.0s; }
.ledger li:nth-child(2) svg path { animation-delay: 1.15s; }
.ledger li:nth-child(3) svg path { animation-delay: 1.3s; }
.ledger li:nth-child(4) svg path { animation-delay: 1.45s; }
.ledger li:nth-child(5) svg path { animation-delay: 1.6s; }
.ledger li:nth-child(6) svg path { animation-delay: 1.75s; }
.ledger-float { will-change: transform; }

/* Big statement that lights up word by word as you scroll */
.statement { padding: clamp(80px, 14vw, 180px) 0; background: var(--paper); }
.statement-text {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(2rem, 5.4vw, 4.4rem); line-height: 1.12; max-width: 20ch; margin: 0;
  color: var(--indigo-deep);
}
.statement-text .sw { opacity: .14; transition: opacity .25s linear; }
.statement-text .sw.lit { opacity: 1; }

/* Header: glass, shrinks on scroll, hides when scrolling down */
.site-header { transition: transform .5s var(--ease-out), box-shadow .4s, background .4s; background: rgba(255,255,255,.72); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); }
.site-header .wrap { transition: min-height .4s var(--ease-out); }
.site-header.scrolled { box-shadow: 0 1px 0 rgba(26,31,43,.06), 0 8px 30px rgba(26,31,43,.06); }
.site-header.scrolled .wrap { min-height: 62px; }
.site-header.away { transform: translateY(-100%); }

/* Buttons: soft lift and press */
.btn { transition: background .25s, border-color .25s, transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(24,88,136,.45); }
.btn-tick:hover { box-shadow: 0 10px 24px -10px rgba(22,122,86,.55); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .1s; }

/* Links with an underline that draws in */
.area a, .nav a:not(.btn) { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .45s var(--ease-out), color .2s; }
.area a:hover, .nav a:not(.btn):hover { background-size: 100% 1px; text-decoration: none; }
.nav a[aria-current="page"] { background-size: 0 0; }

/* Service area tiles: gentle lift */
.area { transition: background .4s var(--ease-out); }
.area:hover { background: rgba(255,255,255,.6); }

/* Smooth accordion */
.global-list details .body { overflow: hidden; }
.global-list summary::after { transition: transform .45s var(--ease-out); }

/* Form fields */
.field input, .field select, .field textarea { transition: border-color .25s, box-shadow .35s var(--ease-out); }
.alert:not([hidden]) { animation: fade-up .6s var(--ease-out); }

/* Disclaimer: scale in */
.disclaimer:not([hidden]) { animation: fade .4s ease both; }
.disclaimer:not([hidden]) .disclaimer-box { animation: pop .6s var(--ease-out) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } }

/* ---------- Mobile menu: full-screen, staggered ---------- */
@media (max-width: 920px) {
  .nav { display: flex; position: fixed; top: var(--hdr, 76px); left: 0; right: 0; bottom: 0; height: calc(100dvh - var(--hdr, 76px));
    padding: 24px var(--gutter) 40px; background: #fff;
    border: 0; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-out), visibility 0s .4s; overflow-y: auto; }
  .nav.open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease-out), visibility 0s; }
  .nav a { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--indigo-deep); padding: 14px 0; border-bottom: 1px solid var(--stone);
    opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); background-size: 0 0 !important; }
  .nav.open a { opacity: 1; transform: none; }
  .nav.open a:nth-child(1) { transition-delay: .05s; } .nav.open a:nth-child(2) { transition-delay: .1s; }
  .nav.open a:nth-child(3) { transition-delay: .15s; } .nav.open a:nth-child(4) { transition-delay: .2s; }
  .nav.open a:nth-child(5) { transition-delay: .25s; } .nav.open a:nth-child(6) { transition-delay: .3s; }
  .nav .btn { font-family: var(--sans); font-size: 1.05rem; padding: 16px; margin-top: 24px; border-bottom: 0; color: #fff; }
  .nav-toggle { position: relative; width: 44px; height: 44px; padding: 0; border: 0; font-size: 0; }
  .nav-toggle::before, .nav-toggle::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--indigo-deep); border-radius: 2px; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
  .nav-toggle::before { top: 17px; } .nav-toggle::after { top: 25px; }
  .nav-toggle[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { transform: none; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Extra mobile polish ---------- */
@media (max-width: 640px) {
  .hero { padding-top: 36px; }
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.7rem); }
  .hero-lede { font-size: 1.08rem; }
  .ledger { padding: 22px 20px 18px; }
  .ledger-head span { display: none; }
  .section-intro { margin-bottom: 28px; }
  .statement-text { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .quote blockquote { min-height: 5.2em; }
  .quote-controls button { flex: 1; padding: 12px; }
  .person { padding: 28px 0; }
  .form-panel { margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .map { height: 240px; }
  .global-list summary { font-size: 1.08rem; padding: 16px 0; }
  .toc a { flex: 1 1 auto; text-align: center; }
  .field input, .field select, .field textarea { font-size: 16px; } /* stops iOS zoom */
  .disclaimer { align-items: end; padding: 0; }
  .disclaimer-box { border-radius: 16px 16px 0 0; max-height: 85vh; }
  .disclaimer:not([hidden]) .disclaimer-box { animation-name: sheet; }
  @keyframes sheet { from { transform: translateY(100%); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .statement-text .sw { opacity: 1; }
  @view-transition { navigation: none; }
}

/* ================= ADDITIONS ================= */
/* Quotes section */
.quotes-section { overflow: hidden; padding-bottom: clamp(48px, 7vw, 80px); }
.quotes-title { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; color: #9FD8BF !important; letter-spacing: .01em; margin-bottom: 22px; }
.marquee { margin-top: clamp(48px, 7vw, 80px); display: grid; gap: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 80s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 90s; }
.marquee-dup { display: contents; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }
.qcard { margin: 0; width: 340px; flex: none; padding: 22px 24px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: background .4s var(--ease-out), transform .5s var(--ease-out); }
.qcard:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.qcard blockquote { margin: 0 0 12px; font-family: var(--serif); font-size: 1.12rem; line-height: 1.4; color: #fff; }
.qcard figcaption { color: #9FD8BF; font-size: .9rem; font-weight: 500; }

/* Inner page quote */
.quote-mini { padding: clamp(56px, 8vw, 96px) 0; background: var(--stone); }
.quote-mini blockquote { margin: 0; max-width: 30ch; font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.25; color: var(--indigo-deep); }
.quote-mini cite { display: block; font: 500 1rem var(--sans); font-style: normal; color: var(--tick); margin-top: 14px; }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 12%; height: 2px; background: linear-gradient(90deg, var(--tick), var(--line)); }
.steps li { position: relative; }
.step-n { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--tick); color: var(--tick); font: 600 1.15rem var(--serif); margin-bottom: 18px; }
.steps p { color: var(--ink-2); margin: 0; }

/* Due dates */
.fine { font-size: .92rem; color: var(--ink-2); }
.due-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--indigo); }
.due-list li { display: grid; grid-template-columns: 72px 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.due-date { text-align: center; background: #fff; border-radius: 10px; padding: 8px 0; line-height: 1.1; }
.due-date b { display: block; font: 600 1.5rem var(--serif); color: var(--indigo-deep); }
.due-date span { font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.due-title { font-weight: 600; }
.due-title small { display: block; font-weight: 400; color: var(--ink-2); font-size: .9rem; }
.due-left { font-size: .85rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo); white-space: nowrap; }
.due-left.soon { background: #FDF0E1; color: #8A4B08; }
.due-left.today { background: #FDECEA; color: var(--error); }

/* Portals */
.portals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.portal { display: block; text-decoration: none; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); transition: border-color .3s, transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.portal:hover { border-color: var(--tick); transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(24,88,136,.4); color: var(--ink); }
.portal strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--indigo-deep); margin-bottom: 4px; }
.portal span { color: var(--ink-2); font-size: .95rem; }

/* FAQ uses the accordion styles */
.faq summary { font-size: 1.1rem; }

/* Floating quick-contact buttons */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.fab-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; color: #fff; box-shadow: 0 10px 30px -8px rgba(16,22,40,.45); transition: transform .4s var(--ease-out), opacity .4s var(--ease-out); }
.fab-btn:hover { transform: scale(1.08); color: #fff; }
.fab-wa { background: #1FA855; }
.fab-call { background: var(--indigo); }
.fab-top { background: #fff; color: var(--indigo); opacity: 0; transform: translateY(12px) scale(.8); pointer-events: none; }
.fab-top:hover { color: var(--indigo); }
.fab-top.show { opacity: 1; transform: none; pointer-events: auto; }
body.menu-open .fab { display: none; }

@media (max-width: 920px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .portals { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .steps, .portals { grid-template-columns: 1fr; }
  .steps { gap: 24px; }
  .steps li { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; }
  .steps li .step-n { grid-row: span 2; margin: 0; }
  .steps h3 { margin-bottom: 4px; }
  .qcard { width: 270px; padding: 18px; }
  .qcard blockquote { font-size: 1.02rem; }
  .due-list li { grid-template-columns: 60px 1fr; }
  .due-left { grid-column: 2; justify-self: start; }
  .fab { right: 14px; bottom: 14px; }
  .fab-btn { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .marquee-track { animation: none; }
  .marquee-dup { display: none; }
}

/* ================= CHATBOT ================= */
:root {
  /* Spring easing with a soft overshoot (falls back to ease-out) */
  --spring: cubic-bezier(.34, 1.36, .64, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.067, 1.099 24.3%, 1.108 26%, 1.1, 1.077 30.8%, 1.002 38.2%, .981 41.6%, .972 45.5%, .974 49.8%, .997 64.5%, 1.003 72.3%, 1); }
}

/* Lenis smooth scroll helpers */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.chat-log, .chat-opts { overscroll-behavior: contain; }

/* Chat button */
.fab-chat { position: relative; order: 9; width: 60px; height: 60px; background: var(--tick); transition: transform .6s var(--spring), background .3s; }
.fab-chat:hover { transform: scale(1.06); }
.fab-chat:active { transform: scale(.92); transition-duration: .15s; }
.fab-chat .ic { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .55s var(--spring), opacity .3s; }
.fab-chat .ic-close { opacity: 0; transform: rotate(-90deg) scale(.4); }
.fab.chat-on .fab-chat { background: var(--indigo); }
.fab.chat-on .fab-chat .ic-open { opacity: 0; transform: rotate(90deg) scale(.4); }
.fab.chat-on .fab-chat .ic-close { opacity: 1; transform: none; }
.fab-chat .d1, .fab-chat .d2, .fab-chat .d3 { animation: btn-dot 1.6s ease-in-out 3; transform-box: fill-box; transform-origin: center; }
.fab-chat .d2 { animation-delay: .15s; } .fab-chat .d3 { animation-delay: .3s; }
@keyframes btn-dot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-1.6px); } }
.fab-chat::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: ping 2.8s var(--ease-out) 1.5s 2; pointer-events: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22,122,86,.5); } 80%, 100% { box-shadow: 0 0 0 18px rgba(22,122,86,0); } }
.fab.chat-on .fab-wa, .fab.chat-on .fab-call, .fab.chat-on .fab-top { opacity: 0; transform: translateY(20px) scale(.5); pointer-events: none; }
.fab-wa, .fab-call { transition: transform .5s var(--spring), opacity .3s; }

/* Teaser bubble */
.chat-teaser { position: absolute; right: 72px; bottom: 6px; order: 10; display: flex; align-items: flex-start; gap: 4px; width: 240px; padding: 12px 10px 12px 14px; background: #fff; border-radius: 16px 16px 4px 16px; box-shadow: 0 18px 50px -14px rgba(16,22,40,.4), 0 0 0 1px rgba(16,22,40,.05);
  opacity: 0; transform: translateX(16px) scale(.85); transform-origin: bottom right; pointer-events: none; transition: opacity .35s var(--ease-out), transform .6s var(--spring); }
.chat-teaser.show { opacity: 1; transform: none; pointer-events: auto; }
.teaser-body { all: unset; cursor: pointer; font: 400 .92rem/1.45 var(--sans); color: var(--ink); }
.teaser-body b { color: var(--tick); font-weight: 600; }
.teaser-body:focus-visible { outline: 3px solid var(--tick); outline-offset: 2px; border-radius: 4px; }
.teaser-x { flex: none; border: 0; background: none; color: var(--ink-2); font-size: 1.2rem; line-height: 1; padding: 0 4px; cursor: pointer; border-radius: 50%; }
.teaser-x:hover { color: var(--ink); }

/* Panel: grows out of the button */
.chat { position: fixed; right: 18px; bottom: 96px; z-index: 70; width: 390px; max-width: calc(100vw - 36px); height: min(620px, calc(100dvh - 130px));
  display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px -24px rgba(16,22,40,.5), 0 0 0 1px rgba(16,22,40,.06);
  clip-path: circle(0px at var(--ox, 90%) var(--oy, 105%)); opacity: .6;
  transition: clip-path .55s cubic-bezier(.65,0,.35,1), opacity .4s ease; }
.chat.open { clip-path: circle(150% at var(--ox, 90%) var(--oy, 105%)); opacity: 1; transition: clip-path .75s var(--ease-out), opacity .3s ease; }
.chat > * { transition: transform .7s var(--ease-out), opacity .5s var(--ease-out); }
.chat:not(.open) > * { opacity: 0; transform: translateY(14px); }
.chat.open .chat-head { transition-delay: .08s; }
.chat.open .chat-log { transition-delay: .14s; }
.chat.open .chat-contact { transition-delay: .2s; }

.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; background: linear-gradient(135deg, var(--indigo) 0%, #1F6EA6 100%); color: #fff; position: relative; overflow: hidden; }
.chat-head::before { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(63,191,140,.18), transparent 70%); animation: glow 10s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow { to { transform: translate(-60px, 40px) scale(1.2); } }
.chat-head-text { position: relative; }
.chat-head strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.chat-head span { font-size: .82rem; color: #B9C2DC; }
.chat-av { position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%; background: #fff; color: var(--indigo); display: grid; place-items: center; font: 600 .95rem var(--serif); }
.chat-av .online { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #3FBF8C; border: 2px solid var(--indigo); }
.chat-av .online::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #3FBF8C; animation: online 2s ease-out infinite; }
@keyframes online { to { transform: scale(2.2); opacity: 0; } }
.chat-x { position: relative; margin-left: auto; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .5s var(--spring); }
.chat-x:hover { background: rgba(255,255,255,.22); }

.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px 10px; display: flex; flex-direction: column; gap: 10px; background: var(--stone); scrollbar-width: thin; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: .95rem; line-height: 1.5; overflow: hidden; }
.msg-bot { background: #fff; color: var(--ink); border-bottom-left-radius: 5px; align-self: flex-start; transform-origin: bottom left; animation: in-left .55s var(--spring) both; box-shadow: 0 2px 6px -3px rgba(16,22,40,.12); }
.msg-me { background: var(--indigo); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; transform-origin: bottom right; animation: in-right .55s var(--spring) both; }
@keyframes in-left { from { opacity: 0; transform: translate(-14px, 10px) scale(.85); } }
@keyframes in-right { from { opacity: 0; transform: translate(14px, 10px) scale(.85); } }
.msg a { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--tick); }
.wd { display: inline-block; animation: wd-in .45s var(--ease-out) both; }
@keyframes wd-in { from { opacity: 0; transform: translateY(4px); } }

.typing { display: flex; gap: 5px; padding: 15px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8E98AD; animation: dot 1.1s infinite cubic-bezier(.45,0,.55,1); }
.typing i:nth-child(2) { animation-delay: .14s; } .typing i:nth-child(3) { animation-delay: .28s; }
@keyframes dot { 0%, 70%, 100% { transform: translateY(0) scale(1); opacity: .45; } 35% { transform: translateY(-5px) scale(1.15); opacity: 1; } }

.chat-opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; max-height: 42%; overflow-y: auto; background: var(--stone); border-top: 1px solid var(--line); }
.chip { position: relative; overflow: hidden; font: 500 .88rem/1.3 var(--sans); text-align: left; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--tick); background: #fff; color: #0E5A3F; cursor: pointer;
  animation: chip-in .5s var(--spring) both; transition: background .25s, color .25s, transform .4s var(--spring), opacity .25s, box-shadow .3s; }
@keyframes chip-in { from { opacity: 0; transform: translateY(12px) scale(.9); } }
.chip:hover { background: var(--tick); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(22,122,86,.7); }
.chip:active { transform: scale(.95); }
.chip-back { border-color: var(--line); color: var(--ink-2); }
.chip-back:hover { background: var(--indigo); border-color: var(--indigo); box-shadow: 0 8px 18px -10px rgba(24,88,136,.7); }
.chip.leave { opacity: 0; transform: scale(.9); pointer-events: none; }
.chip.picked { background: var(--tick); color: #fff; transform: scale(1.03); }
.chip-back.picked { background: var(--indigo); border-color: var(--indigo); }
.ripple { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(255,255,255,.6); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(30); opacity: 0; } }

.chat-contact { display: flex; border-top: 1px solid var(--line); background: #fff; }
.chat-contact a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 4px; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--indigo); transition: background .2s, color .2s; }
.chat-contact a svg { transition: transform .45s var(--spring); }
.chat-contact a:hover svg { transform: scale(1.2) rotate(-8deg); }
.chat-contact a + a { border-left: 1px solid var(--line); }
.chat-contact a:hover { background: var(--stone); color: var(--tick); }

/* Backdrop behind the chat (mobile and tablet) */
.chat-shade { display: none; }
html.chat-lock, html.chat-lock body { overflow: hidden; }

@media (max-width: 640px) {
  .fab-chat { width: 56px; height: 56px; }
  .chat-teaser { width: min(230px, calc(100vw - 110px)); right: 66px; bottom: 4px; font-size: .88rem; }

  .chat-shade { display: block; position: fixed; inset: 0; z-index: 69; background: rgba(16,22,40,.45); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
  body.chat-open .chat-shade { opacity: 1; pointer-events: auto; }

  .chat { left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-width: none;
    height: 86vh; height: 86dvh; max-height: calc(100dvh - 40px);
    border-radius: 20px 20px 0 0; clip-path: none; opacity: 1;
    transform: translateY(105%); transition: transform .45s cubic-bezier(.65,0,.35,1);
    box-shadow: 0 -10px 40px -10px rgba(16,22,40,.35); }
  .chat.open { clip-path: none; transform: none; transition: transform .6s var(--ease-out); }
  .chat:not(.open) > * { opacity: 1; transform: none; }

  .chat-head { padding: 22px 14px 14px 16px; touch-action: none; }
  .chat-head::after { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgba(255,255,255,.45); }
  .chat-av { width: 38px; height: 38px; font-size: .88rem; }
  .chat-head strong { font-size: 1rem; }
  .chat-head span { font-size: .78rem; }
  .chat-x { width: 40px; height: 40px; }

  .chat-log { padding: 16px 14px 10px; gap: 9px; -webkit-overflow-scrolling: touch; }
  .msg { max-width: 88%; font-size: .94rem; padding: 10px 13px; }

  .chat-opts { flex-wrap: nowrap; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px; max-height: 45%; }
  .chip { width: 100%; padding: 12px 16px; border-radius: 12px; font-size: .93rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .chip::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); opacity: .55; }
  .chip-back::after { transform: rotate(-135deg); }
  .chip-back { flex-direction: row-reverse; justify-content: flex-end; }

  .chat-contact { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .chat-contact a { padding: 14px 4px; font-size: .86rem; }

  body.chat-open .fab { opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .chat, .chat.open { clip-path: none; }
  .fab-chat::after, .chat-head::before, .chat-av .online::after { animation: none; }
}

/* ---- Fixes: stop bubbles/buttons from being squashed in long chats ---- */
.msg, .chip { flex: none; }
.msg { overflow: visible; word-wrap: break-word; overflow-wrap: anywhere; }
.chat-opts { align-content: flex-start; }

/* Tidier floating buttons: chat is primary, others secondary */
.fab { align-items: center; }
.fab-wa, .fab-call, .fab-top { width: 46px; height: 46px; }
.fab-wa svg { width: 22px; height: 22px; }
.fab-call svg { width: 19px; height: 19px; }
@media (max-width: 640px) {
  .fab { gap: 8px; }
  .fab-wa, .fab-call, .fab-top { width: 42px; height: 42px; }
  .chat-teaser { right: 64px; bottom: 7px; padding: 10px 8px 10px 12px; }
  .teaser-body { font-size: .86rem; }
}

/* =====================================================================
   ROUND 2: brand, navigation, new pages
   ===================================================================== */
h1, h2, h3 { font-stretch: 87.5%; font-weight: 700; letter-spacing: -0.005em; }
h1 { font-weight: 750; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Brand ---------- */
.brand { gap: 12px; }
.brand-mark { width: 58px; height: auto; flex: none; }
.brand-name { font-family: var(--serif); font-stretch: 62.5%; font-weight: 850; font-size: 1.42rem; letter-spacing: .015em; text-transform: uppercase; color: var(--indigo); line-height: 1; }
.brand-sub { font-family: var(--sans); font-stretch: 100%; text-transform: none; letter-spacing: .02em; font-weight: 500; font-size: .76rem; color: var(--ink-2); margin-top: 5px; }
.site-header.scrolled .brand-mark { width: 50px; }
.brand-mark { transition: width .4s var(--ease-out); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 14px; }
.footer-brand span { font-family: var(--serif); font-stretch: 62.5%; font-weight: 850; font-size: 1.35rem; letter-spacing: .015em; text-transform: uppercase; color: #fff; line-height: 1.05; }
.footer-links { columns: 2; column-gap: 24px; }
@media (max-width: 640px) {
  .brand-mark { width: 46px; }
  .site-header.scrolled .brand-mark { width: 42px; }
  .brand-name { font-size: 1.12rem; }
}
@media (max-width: 360px) { .brand-name { font-size: 1rem; } }

/* ---------- Nav dropdown ---------- */
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font: 500 .97rem var(--sans); color: var(--ink); padding: 8px 12px; border-radius: var(--radius); }
.nav-dd-btn svg { transition: transform .35s var(--ease-out); }
.nav-dd-btn:hover { color: var(--tick); }
.nav-dd.is-current > .nav-dd-btn { color: var(--indigo); box-shadow: inset 0 -2px 0 var(--tick); border-radius: 0; }
.nav-dd.open .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-menu { position: absolute; top: calc(100% + 10px); left: -8px; min-width: 210px; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 24px 60px -20px rgba(14,58,94,.35), 0 0 0 1px rgba(14,58,94,.07);
  display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left; transition: opacity .25s var(--ease-out), transform .4s var(--ease-out), visibility 0s .25s; }
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease-out), transform .4s var(--ease-out), visibility 0s; }
.nav-dd-menu a { padding: 10px 12px !important; border-radius: 8px; background-image: none !important; }
.nav-dd-menu a:hover { background: var(--stone) !important; color: var(--indigo); }
.nav-dd-menu a[aria-current="page"] { box-shadow: none; color: var(--tick); background: var(--tick-soft) !important; }
@media (max-width: 920px) {
  .nav-dd { border-bottom: 1px solid var(--stone); }
  .nav-dd-btn { width: 100%; justify-content: space-between; font-family: var(--serif); font-stretch: 87.5%; font-size: 1.9rem; font-weight: 700; color: var(--indigo-deep); padding: 14px 0; }
  .nav-dd.is-current > .nav-dd-btn { box-shadow: none; color: var(--tick); }
  .nav-dd-btn svg { width: 20px; height: 20px; }
  .nav-dd-menu { position: static; min-width: 0; padding: 0 0 0 16px; box-shadow: none; border-radius: 0; opacity: 1; visibility: visible; transform: none;
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
  .nav-dd-menu > * { min-height: 0; overflow: hidden; }
  .nav-dd.open .nav-dd-menu { grid-template-rows: 1fr; }
  .nav-dd-menu::before { display: none; }
  .nav-dd-menu a { font-size: 1.3rem !important; padding: 10px 0 !important; border-bottom: 0 !important; }
  .nav.open .nav-dd { opacity: 1; transform: none; }
  .nav .nav-dd { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
  .nav.open .nav-dd { transition-delay: .1s; }
  .nav-dd-wrap { display: flex; flex-direction: column; }
}

/* ---------- Services grid (domestic and global look the same) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px; }
.svc h3 { padding-bottom: 10px; border-bottom: 2px solid var(--indigo); margin-bottom: 14px; }
.svc-cta { margin-top: 40px; }
.domestic, .global-list { display: none; }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Accordion (FAQ) ---------- */
.acc { border-top: 2px solid var(--indigo); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-h { margin: 0; font-size: inherit; }
.acc-btn { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 0;
  font-family: var(--serif); font-stretch: 87.5%; font-weight: 700; font-size: 1.12rem; line-height: 1.35; color: var(--indigo-deep); }
.acc-btn:hover { color: var(--tick); }
.acc-btn:focus-visible { outline: 3px solid var(--tick); outline-offset: 2px; border-radius: 4px; }
.acc-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tick-soft); transition: background .3s, transform .5s var(--ease-out); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: var(--tick); transition: transform .45s var(--ease-out); }
.acc-icon::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-icon { background: var(--tick); transform: rotate(180deg); }
.acc-btn[aria-expanded="true"] .acc-icon::before, .acc-btn[aria-expanded="true"] .acc-icon::after { background: #fff; }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.acc-panel.open { grid-template-rows: 1fr; }
.acc-inner { min-height: 0; overflow: hidden; }
.acc-inner p { color: var(--ink-2); padding-bottom: 20px; margin: 0; opacity: 0; transform: translateY(-6px); transition: opacity .4s ease, transform .5s var(--ease-out); }
.acc-panel.open .acc-inner p { opacity: 1; transform: none; transition-delay: .08s; }

/* ---------- Tabs (Join our team) ---------- */
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; margin-top: 28px; background: var(--stone); border-radius: 999px; }
.tab { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; font: 600 1rem var(--sans); color: var(--ink-2); padding: 11px 28px; border-radius: 999px; transition: color .3s; }
.tab[aria-selected="true"] { color: #fff; }
.tab:hover:not([aria-selected="true"]) { color: var(--indigo); }
.tab-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--indigo); box-shadow: 0 8px 20px -10px rgba(24,88,136,.8); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
.tab-panel:not([hidden]) { animation: panel-in .6s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
.closed-box { max-width: 680px; }

/* ---------- Insights ---------- */
.section-tight { padding-top: 36px; }
.section-intro-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; max-width: none; }
.section-intro-row p { margin-bottom: 0; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 .92rem var(--sans); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .4s var(--ease-out); }
.fchip:hover { border-color: var(--indigo); transform: translateY(-1px); }
.fchip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid #B8C2CE; border-radius: 999px; padding: 0 16px; background: #fff; color: var(--ink-2); min-width: 260px; transition: border-color .25s, box-shadow .3s; }
.search:focus-within { border-color: var(--tick); box-shadow: 0 0 0 3px var(--tick-soft); }
.search input { border: 0; outline: 0; font: 400 1rem var(--sans); padding: 11px 0; width: 100%; background: none; color: var(--ink); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-grid-2 { grid-template-columns: repeat(2, 1fr); }
.post-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 26px 50px -28px rgba(14,58,94,.45); }
.post-card.is-hidden { display: none; }
.post-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.post-link:hover { color: inherit; }
.post-cover { position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--indigo) 0%, #2A7DB8 100%); }
.post-cover img { width: 30%; opacity: .22; transition: transform .8s var(--ease-out), opacity .5s; }
.post-card:hover .post-cover img { transform: scale(1.1) rotate(-4deg); opacity: .32; }
.post-cover.cat-gst { background: linear-gradient(135deg, #167A56 0%, #2FA77A 100%); }
.post-cover.cat-cl { background: linear-gradient(135deg, #0E3A5E 0%, #185888 100%); }
.post-cover.cat-int { background: linear-gradient(135deg, #3B4B8F 0%, #5A6DC0 100%); }
.post-cover.cat-art { background: linear-gradient(135deg, #8A5A12 0%, #B9842E 100%); }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .84rem; color: var(--ink-2); margin-bottom: 10px; }
.chip-cat { background: var(--indigo-soft); color: var(--indigo); font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.post-title { font-size: 1.22rem; line-height: 1.3; margin-bottom: 8px; color: var(--indigo-deep); transition: color .25s; }
.post-card:hover .post-title { color: var(--tick); }
.post-body p { color: var(--ink-2); font-size: .97rem; margin-bottom: 14px; }
.post-more { margin-top: auto; font-weight: 600; color: var(--indigo); font-size: .95rem; }
.empty { text-align: center; padding: 56px 0; }
.empty p { margin: 0 auto; color: var(--ink-2); }
@media (max-width: 920px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .post-grid, .post-grid-2 { grid-template-columns: 1fr; }
  .search { min-width: 0; width: 100%; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
  .filter-chips::-webkit-scrollbar { display: none; }
  .fchip { flex: none; }
}

/* Article page */
.wrap-narrow { max-width: 780px; }
.article-head { padding: clamp(40px, 7vw, 76px) 0 28px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 8px; font-size: .9rem; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { font-weight: 600; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.article-sum { font-size: 1.18rem; color: var(--ink-2); }
.article-meta { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.article-meta strong { color: var(--ink); }
.author-av { width: 46px; height: 46px; border-radius: 50%; background: var(--indigo-soft); display: grid; place-items: center; flex: none; }
.author-av img { width: 30px; }
.prose { padding: 34px 0 10px; font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: 1.55rem; margin: 1.6em 0 .5em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--tick); }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; line-height: 1.5; min-width: 560px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--indigo); color: #fff; font-weight: 600; }
.prose tbody th { font-weight: 600; color: var(--indigo-deep); background: var(--stone); width: 26%; }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.note { background: var(--stone); border-left: 4px solid var(--tick); padding: 16px 20px; border-radius: 0 10px 10px 0; font-size: .97rem; color: var(--ink-2); margin: 20px 0 28px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 0 clamp(48px, 7vw, 80px); }
.share > span { font-weight: 600; margin-right: 6px; }
.share-btn { border: 1px solid var(--line); background: #fff; font: 600 .9rem var(--sans); color: var(--indigo); padding: 9px 16px; border-radius: 999px; text-decoration: none; cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
.share-btn:hover { border-color: var(--indigo); background: var(--indigo); color: #fff; }

/* ---------- Philanthropy ---------- */
.kicker { font-weight: 600; color: var(--tick) !important; font-size: 1rem !important; margin-bottom: 10px !important; }
.page-head-trust { background: linear-gradient(180deg, var(--indigo-soft), #fff); }
.focus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.focus { padding: clamp(26px, 4vw, 40px); border-radius: 18px; background: var(--stone); position: relative; overflow: hidden; }
.focus::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(22,122,86,.12), transparent 70%); }
.focus-ic { width: 64px; height: 64px; border-radius: 16px; background: #fff; color: var(--tick); display: grid; place-items: center; margin-bottom: 20px; box-shadow: 0 10px 24px -14px rgba(14,58,94,.35); }
.focus p { color: var(--ink-2); margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { margin: 0; }
.gallery-ph { aspect-ratio: 4 / 3; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--indigo) 0%, #2A7DB8 100%); overflow: hidden; }
.gallery-ph img { width: 26%; opacity: .2; }
.gallery-item figcaption { font-size: .9rem; color: var(--ink-2); margin-top: 8px; }
.trust-band { background: linear-gradient(120deg, var(--indigo-deep), var(--indigo)); color: #DCE8F2; padding: clamp(40px, 6vw, 64px) 0; }
.trust-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.trust-band h2 { color: #fff; margin-bottom: 6px; }
.trust-band p { margin: 0; }
.btn-light { background: #fff; border-color: #fff; color: var(--indigo); }
.btn-light:hover { background: var(--tick-soft); border-color: var(--tick-soft); color: var(--indigo-deep); }
.cta-inline { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-inline p { color: var(--ink-2); margin: 0; }
.link-row { display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 640px) { .focus-grid, .gallery { grid-template-columns: 1fr; } .gallery { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* Associates with initials */
.associate { display: flex; gap: 16px; align-items: flex-start; }
.initials-sm { width: 46px; height: 46px; line-height: 46px; font-size: 1rem; flex: none; margin: 2px 0 0; }
.initials { font-family: var(--serif); font-stretch: 87.5%; }

/* Quote block min-height fix (removes the large gap) */
.quote blockquote { min-height: 0; }
.quote cite { margin-top: 16px; }

/* Closed chat panel must be fully removed (not just moved off-screen) */
.chat[hidden] { display: none !important; }

/* Hero headline: slightly smaller so it sits on 4 lines with the new serif */
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 17ch; }

/* ---------- Philanthropy: four causes + donation card ---------- */
.focus-grid-4 { grid-template-columns: repeat(2, 1fr); }
.focus h3 { font-size: 1.3rem; margin-bottom: 8px; }
.donate { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.donate p { color: var(--ink-2); }
.bank-card { background: linear-gradient(145deg, var(--indigo-deep), var(--indigo) 75%, #2A7DB8); color: #DCE8F2; border-radius: 20px; padding: clamp(22px, 4vw, 32px); box-shadow: 0 30px 60px -30px rgba(14,58,94,.6); position: relative; overflow: hidden; }
.bank-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(63,191,140,.25), transparent 70%); pointer-events: none; }
.bank-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; position: relative; }
.bank-head strong { display: block; color: #fff; font-family: var(--serif); font-stretch: 87.5%; font-size: 1.2rem; }
.bank-head span { font-size: .9rem; color: #B9CEE0; }
.bank-list { margin: 0 0 20px; position: relative; }
.bank-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.14); flex-wrap: wrap; }
.bank-row dt { font-size: .88rem; color: #B9CEE0; }
.bank-row dd { margin: 0; display: flex; align-items: center; gap: 10px; }
.bank-val { color: #fff; font-weight: 600; font-size: 1.08rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.copy-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font: 600 .8rem var(--sans); padding: 5px 10px; border-radius: 999px; cursor: pointer; transition: background .2s, border-color .2s; }
.copy-btn:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.copy-btn.done { background: #3FBF8C; border-color: #3FBF8C; color: #06301F; }
.bank-copy-all { position: relative; width: 100%; text-align: center; }
.bank-copy-all.done { background: #3FBF8C; border-color: #3FBF8C; color: #06301F; }
@media (max-width: 920px) { .donate { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .focus-grid-4 { grid-template-columns: 1fr; } .bank-val { font-size: 1rem; } }
@media (max-width: 640px) {
  .bank-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .bank-row dd { justify-content: space-between; }
}
.notes h3 { font-size: 1.25rem; margin: 26px 0 6px; }
.notes p { color: var(--ink-2); }
.notes-cta { margin-top: 26px; font-weight: 600; color: var(--ink) !important; }

/* ---------- Blue header with white logo ---------- */
.site-header { background: rgba(24,88,136,.97); border-bottom-color: rgba(255,255,255,.1); }
.site-header.scrolled { background: rgba(24,88,136,.9); box-shadow: 0 8px 30px -10px rgba(14,58,94,.5); }
.brand-name, .brand { color: #fff; }
.brand-sub { color: #C3D6E6; }
@media (min-width: 921px) {
  .nav > a:not(.btn), .nav-dd-btn { color: #E6EEF5; }
  .nav > a:not(.btn):hover, .nav-dd-btn:hover { color: #fff; }
  .nav > a[aria-current="page"], .nav-dd.is-current > .nav-dd-btn { color: #fff; box-shadow: inset 0 -2px 0 #5FD3A5; }
  .nav .btn { background: #fff; border-color: #fff; color: var(--indigo); }
  .nav .btn:hover { background: var(--tick-soft); border-color: var(--tick-soft); color: var(--indigo-deep); }
}
.nav-toggle::before, .nav-toggle::after { background: #fff; }
body.menu-open .site-header { background: var(--indigo); }

/* ---------- Article assistant contributions ---------- */
.chip-contrib { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: #FFF4D6; color: #7A5200; font-weight: 600; font-size: .82rem; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.post-card.is-contrib { box-shadow: 0 0 0 2px #F2C94C; }
.post-card.is-contrib:hover { box-shadow: 0 0 0 2px #F2C94C, 0 26px 50px -28px rgba(14,58,94,.45); }
.contrib-box { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 18px; background: #FFF8E5; border: 1px solid #F2C94C; border-radius: 14px; }
.contrib-av { width: 48px; height: 48px; border-radius: 50%; background: #F2C94C; color: #4A3200; display: grid; place-items: center; font-weight: 700; flex: none; }
.contrib-label { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; color: #7A5200; }
.contrib-box strong { display: block; font-family: var(--serif); font-stretch: 87.5%; font-size: 1.2rem; color: var(--indigo-deep); }
.contrib-meta { font-size: .88rem; color: var(--ink-2); }
.nav a, .nav-dd-btn, .brand-name { white-space: nowrap; }
@media (min-width: 921px) and (max-width: 1240px) {
  .site-header .wrap { gap: 14px; }
  .brand-name { font-size: 1.15rem; }
  .brand-mark { width: 46px; }
  .nav a:not(.btn), .nav-dd-btn { padding: 8px 8px; font-size: .9rem; }
  .nav .btn { padding: 10px 14px; font-size: .88rem; margin-left: 6px; }
}
@media (min-width: 921px) and (max-width: 1060px) { .brand-sub { display: none; } }
@media (min-width: 921px) and (max-width: 1020px) { .brand-name { display: none; } .brand-mark { width: 52px; } }

/* ---------- Compact phone header ---------- */
@media (max-width: 920px) {
  .site-header .wrap, .site-header.scrolled .wrap { min-height: 58px; gap: 10px; }
  .brand { gap: 9px; min-width: 0; }
  .brand-mark, .site-header.scrolled .brand-mark { width: 38px; }
  .brand-name { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; }
  .brand-sub { display: none; }
  .nav-toggle { width: 40px; height: 40px; flex: none; margin-right: -8px; }
  .nav-toggle::before, .nav-toggle::after { left: 10px; right: 10px; }
  .nav-toggle::before { top: 15px; } .nav-toggle::after { top: 23px; }
  .nav-toggle[aria-expanded="true"]::before, .nav-toggle[aria-expanded="true"]::after { top: 19px; }
  .site-header.away { transform: translateY(-100%); }
  /* menu panel */
  .nav { padding: 12px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); }
  .nav a, .nav-dd-btn { font-size: 1.35rem !important; padding: 13px 0 !important; color: var(--indigo-deep); }
  .nav-dd-menu a { font-size: 1.08rem !important; padding: 9px 0 !important; }
  .nav-dd-btn svg { width: 16px; height: 16px; }
  .nav a[aria-current="page"] { color: var(--tick); }
  .nav .btn { font-size: 1rem !important; padding: 14px !important; margin-top: 18px; color: #fff !important; background: var(--indigo); border-color: var(--indigo); }
}
@media (max-width: 360px) { .brand-name { font-size: .92rem; } .brand-mark { width: 34px; } }
@media (max-width: 920px) { .nav-dd:not(.is-current) > .nav-dd-btn:hover { color: var(--indigo-deep); } }

/* =====================================================================
   NAV v3: no dropdown, clean pills (desktop) and simple rows (phone)
   ===================================================================== */
.nav-quick { display: none; }
@media (min-width: 921px) {
  .nav { gap: 2px; }
  .nav .nav-home { display: none; }
  .nav .nav-link { color: #E6EEF5 !important; font: 500 .95rem var(--sans); padding: 8px 13px !important; border-radius: 999px !important; background-image: none !important; box-shadow: none !important; transition: background .2s, color .2s; }
  .nav .nav-link:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; }
  .nav .nav-link[aria-current="page"] { background: rgba(255,255,255,.16) !important; color: #fff !important; }
  .nav .nav-cta { margin-left: 10px; background: #fff; border-color: #fff; color: var(--indigo) !important; border-radius: 999px; padding: 10px 18px; }
  .nav .nav-cta:hover { background: var(--tick-soft); border-color: var(--tick-soft); }
}
@media (min-width: 921px) and (max-width: 1240px) {
  .nav .nav-link { padding: 7px 9px !important; font-size: .9rem; }
  .nav .nav-cta { padding: 9px 14px; font-size: .88rem; }
}
@media (min-width: 921px) and (max-width: 1060px) { .brand-name { display: none; } }

@media (max-width: 920px) {
  .nav { gap: 0; padding: 10px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); background: #fff; }
  .nav .nav-link { display: flex !important; justify-content: space-between; align-items: center; font: 500 1.08rem/1.3 var(--sans) !important; color: var(--ink) !important; padding: 15px 4px !important; border-bottom: 1px solid var(--stone) !important; background-image: none !important; box-shadow: none !important; }
  .nav .nav-link::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #9AA7B6; border-top: 2px solid #9AA7B6; transform: rotate(45deg); flex: none; }
  .nav .nav-link[aria-current="page"] { color: var(--indigo) !important; font-weight: 700 !important; }
  .nav .nav-link[aria-current="page"]::after { border-color: var(--tick); }
  .nav .nav-cta { display: block; text-align: center; margin-top: 20px !important; padding: 14px !important; font: 600 1rem var(--sans) !important; border-radius: 12px; background: var(--indigo); border-color: var(--indigo); color: #fff !important; }
  .nav-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out) .3s, transform .6s var(--ease-out) .3s; }
  .nav.open .nav-quick { opacity: 1; transform: none; }
  .nav-quick a { text-align: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); font: 600 .95rem var(--sans) !important; color: var(--indigo) !important; text-decoration: none; opacity: 1 !important; transform: none !important; }
}
@media (max-width: 920px) { .nav .nav-link { border-radius: 0 !important; } }

/* ---------- Numbers strip ---------- */
.stats { background: linear-gradient(120deg, var(--indigo-deep), var(--indigo) 60%, #22709F); color: #fff; padding: clamp(36px, 6vw, 60px) 0; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: url("img/logo-mark-white.svg") no-repeat right -60px center / 340px; opacity: .06; pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 6px 16px; }
.stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,.18); }
.stat-num { font-family: var(--serif); font-stretch: 87.5%; font-weight: 750; font-size: clamp(2.4rem, 5.2vw, 3.8rem); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: clamp(.92rem, 1.5vw, 1.05rem); color: #C8DAE9; font-weight: 500; }
.stat-item::after { content: ""; width: 34px; height: 3px; border-radius: 3px; background: #5FD3A5; margin-top: 8px; order: 3; }
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat-item { padding: 18px 0; }
  .stat-item + .stat-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .stat-item::after { display: none; }
}

/* Uploaded cover images */
.post-cover.has-img { background: var(--stone); }
.post-cover .cover-img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.post-card:hover .post-cover .cover-img { transform: scale(1.04); opacity: 1; }
.article-cover { width: 100%; border-radius: 16px; margin-top: 28px; aspect-ratio: 2 / 1; object-fit: cover; }

/* ---------- Loading screen ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: linear-gradient(140deg, var(--indigo-deep), var(--indigo)); transition: opacity .6s var(--ease-out), visibility 0s .6s; animation: loader-failsafe 0s 3s forwards; }
.loader.done { opacity: 0; visibility: hidden; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loader img { width: 96px; height: auto; animation: loader-pop 1s var(--ease-out) both, loader-breathe 2s ease-in-out 1s infinite; }
.loader-name { font-family: var(--serif); font-stretch: 62.5%; font-weight: 850; font-size: 1.5rem; letter-spacing: .03em; text-transform: uppercase; color: #fff; animation: loader-fade .8s var(--ease-out) .25s both; }
.loader-bar { width: 140px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; animation: loader-fade .6s ease .4s both; }
.loader-bar i { display: block; height: 100%; width: 40%; border-radius: 3px; background: #5FD3A5; animation: loader-slide 1.1s ease-in-out infinite; }
@keyframes loader-pop { from { opacity: 0; transform: scale(.8); } }
@keyframes loader-breathe { 50% { transform: scale(1.05); } }
@keyframes loader-fade { from { opacity: 0; transform: translateY(8px); } }
@keyframes loader-slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .loader img, .loader-bar i { animation: none; } }

/* ---------- Master admin edit mode ---------- */
.sd-editable { outline: 1px dashed rgba(22,122,86,.45); outline-offset: 3px; border-radius: 3px; cursor: text; transition: outline-color .2s, background .2s; }
.sd-editable:hover { outline: 2px dashed var(--tick); background: rgba(22,122,86,.06); }
.sd-editable:focus { outline: 2px solid var(--tick); background: #fff; color: var(--ink); }
.sd-editbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 900; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 24px); background: #0E3A5E; color: #fff; padding: 10px 12px 10px 18px; border-radius: 14px; box-shadow: 0 20px 50px -15px rgba(0,0,0,.5); font: 500 .92rem var(--sans); }
.sd-editbar b { color: #5FD3A5; margin-right: 6px; }
.sd-count { color: #FFD976; font-weight: 600; }
.sd-save { border: 0; background: #3FBF8C; color: #06301F; font: 700 .92rem var(--sans); padding: 9px 16px; border-radius: 10px; cursor: pointer; }
.sd-editbar a { color: #fff; font-weight: 600; }
body:has(.sd-editbar) .fab, body:has(.sd-editbar) .loader { display: none; }
.sd-tools { position: absolute; z-index: 901; display: flex; gap: 4px; background: #0E3A5E; padding: 4px; border-radius: 10px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.sd-tools button { border: 0; background: rgba(255,255,255,.12); color: #fff; font: 600 .8rem var(--sans); padding: 6px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.sd-tools button:hover { background: #3FBF8C; color: #06301F; }
.sd-tools button[data-a="del"]:hover, .sd-tools button[data-a="delcard"]:hover { background: #E5484D; color: #fff; }
.sd-undo { border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font: 600 .88rem var(--sans); padding: 8px 12px; border-radius: 10px; cursor: pointer; }

/* Founder photos */
.person-photo{display:block;width:100%;max-width:220px;height:auto;aspect-ratio:1;object-fit:cover;border-radius:18px;margin-bottom:18px;background:var(--indigo-soft);box-shadow:0 10px 30px -12px rgba(24,88,136,.35)}
.person-lede{font-size:1.06rem;line-height:1.65;color:var(--ink);margin:0 0 14px}
@media (max-width:760px){.person-photo{max-width:180px;border-radius:16px}}
/* Editing bar on phones: one compact row at the bottom */
@media (max-width: 700px) {
  .sd-editbar { left: 8px; right: 8px; bottom: 8px; transform: none; max-width: none; padding: 8px 10px; gap: 8px; font-size: .82rem; border-radius: 12px; flex-wrap: nowrap; justify-content: flex-start; }
  .sd-editbar > span:first-child { display: none; }
  .sd-editbar::before { content: "Editing"; color: #5FD3A5; font-weight: 700; }
  .sd-editbar .sd-count { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sd-editbar button { padding: 8px 10px; font-size: .8rem; white-space: nowrap; }
}
