/* =====================================================================
   TBA Foundation design system
   Brand: Glancyr (the logo typeface), TBA blue #115f85, gold #F4B400.
   Used by every foundation page. The AHM pledge and enquiry forms post
   to pledge.php / enquiry.php; behaviour lives in assets/js/tba-design.js.
   ===================================================================== */

@font-face {
    font-family: "Glancyr";
    src: url("../fonts/glancyr-variable.woff2") format("woff2-variations"),
         url("../fonts/glancyr-variable.woff2") format("woff2");
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue: #115f85;
    --blue-600: #0d5073;
    --blue-900: #0a2f45;
    --blue-950: #07202f;
    --ink: #0d2230;
    --body: #3b4d5a;
    --muted: #677884;
    --line: #d8e1e7;
    --line-soft: #e8eef2;
    --tint: #f2f6f8;
    --tint-blue: #e4eef4;
    --gold: #f4b400;
    --gold-600: #dba200;

    --font: "Glancyr", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --wrap: 1240px;
    --pad: 32px;
    --radius: 6px;
    --header-h: 78px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 72px); overflow-x: clip; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
    margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.7; font-weight: 400;
    color: var(--body); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.005em; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 12px; top: 12px; }
.sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; vertical-align: middle; margin: 0 10px 2px; }

/* ---------- Type ---------- */
.label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.dark .label, .on-dark .label { color: var(--gold); }
.h1 { font-size: clamp(40px, 5.2vw, 70px); line-height: 1.06; letter-spacing: -0.012em; font-weight: 600; }
.title { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.12; letter-spacing: -0.01em; max-width: 20ch; }
.lede { font-size: 19px; line-height: 1.6; color: var(--body); max-width: 52ch; margin-top: 22px; }
.small { font-size: 14px; color: var(--muted); }
.caption { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 12px; }
.dark .title, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .lede, .dark p { color: rgba(255,255,255,.78); }
.meta { display: flex; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--muted); }
.meta .sep { margin: 0 9px; }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px;
    border-radius: var(--radius); background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .005em;
    white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--blue-600); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn-gold { background: var(--gold); color: var(--blue-950); }
.btn-gold:hover { background: var(--gold-600); color: var(--blue-950); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn-light:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link {
    display: inline-block; font-weight: 600; font-size: 15px; color: var(--blue);
    text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-color: rgba(17,95,133,.3);
    transition: text-decoration-color .2s;
}
.link:hover { text-decoration-color: var(--blue); }
.dark .link { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
.dark .link:hover { text-decoration-color: #fff; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--blue-950); color: rgba(255,255,255,.78); font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: center; gap: 4px 18px; flex-wrap: wrap; min-height: 40px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.topbar a { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(244,180,0,.4); }
.topbar a:hover { text-decoration-color: var(--gold); }
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line-soft); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.5) blur(12px); } }
.site-header .wrap { display: flex; align-items: center; gap: 40px; height: var(--header-h); }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ink); }
.nav > a, .has-sub > a { position: relative; padding: 10px 0; transition: color .2s; }
.nav > a::after, .has-sub > a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav > a:hover, .has-sub > a:hover, .nav a[aria-current] { color: var(--blue); }
.nav > a:hover::after, .nav > a[aria-current]::after, .has-sub > a[aria-current]::before { transform: scaleX(1); }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.sub {
    position: absolute; top: calc(100% + 12px); left: -22px; min-width: 310px; padding: 10px; background: #fff;
    border: 1px solid var(--line-soft); border-radius: 10px; box-shadow: 0 24px 48px rgba(13,34,48,.12);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 11px 14px; border-radius: 6px; color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.sub a span { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
.sub a:hover, .sub a[aria-current] { background: var(--tint); color: var(--blue); }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; margin: 0 -10px 0 auto; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, top .25s; }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mnav { position: fixed; left: 0; right: 0; bottom: 0; top: var(--header-h); z-index: 59; display: none; overflow-y: auto; padding: 8px var(--pad) 40px; background: #fff; }
.mnav.open { display: block; }
.mnav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 20px; font-weight: 600; color: var(--ink); }
.mnav a[aria-current] { color: var(--blue); }
.mnav .mnav-sub a { padding: 12px 0 12px 16px; font-size: 16px; font-weight: 500; color: var(--body); }
.mnav .btn { display: flex; margin-top: 28px; border: 0; color: #fff; font-size: 16px; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section.tight { padding: 80px 0; }
.section + .section:not(.tint):not(.dark):not(.flush) { border-top: 1px solid var(--line-soft); }
.tint { background: var(--tint); }
.dark { background: var(--blue-900); color: rgba(255,255,255,.78); }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.head .lede { margin-top: 0; }
.head .link { justify-self: end; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 64px; }
.split > .side .label { margin-top: 8px; }
.stack > * + * { margin-top: 18px; }

/* ---------- Home hero ---------- */
.hero { background: var(--blue-900); color: rgba(255,255,255,.8); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255,255,255,.8); font-size: 19.5px; }
.hero .label { color: var(--gold); }
.hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 45%; border-radius: 10px; background: var(--blue-950); }
.hero-media figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 13.5px; color: rgba(255,255,255,.62); }
.hero-media figcaption a { color: #fff; font-weight: 600; white-space: nowrap; }
.hero-media figcaption a:hover { color: var(--gold); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.facts > div { border-top: 2px solid var(--blue); padding-top: 18px; }
.facts b { display: block; font-size: clamp(38px, 3.6vw, 50px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--blue); }
.facts span { display: block; margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--muted); max-width: 26ch; }
.facts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dark .facts > div { border-top-color: var(--gold); }
.dark .facts b { color: #fff; }
.dark .facts span { color: rgba(255,255,255,.66); }
.facts-band { padding: 56px 0; border-bottom: 1px solid var(--line-soft); }

/* ---------- Intro (image + text) ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.intro img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--tint); }
.intro p { font-size: 17px; }
.intro .lede { font-size: 19px; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-tile { display: flex; flex-direction: column; padding: 32px 30px 30px; background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.svc-tile:hover { border-color: var(--line); box-shadow: 0 18px 40px rgba(13,34,48,.07); }
.svc-tile h3 { font-size: 20px; line-height: 1.3; }
.svc-tile p { margin: 12px 0 0; font-size: 15.5px; }
.svc-tile .ref { margin-top: auto; padding-top: 22px; font-size: 13px; font-weight: 600; color: var(--blue); }
.svc-list { border-top: 1px solid var(--ink); }
.svc-item { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr); gap: 16px 40px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.svc-item h2 { font-size: 24px; line-height: 1.25; }
.svc-item p { margin: 0; font-size: 16.5px; }
.svc-item .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.svc-item .tags span { font-size: 12.5px; font-weight: 500; color: var(--blue); background: var(--tint-blue); padding: 4px 10px; border-radius: 4px; }
.svc-item .go { justify-self: end; align-self: start; padding-top: 4px; }

/* ---------- Work ---------- */
.work-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.work-lead img, .card img { width: 100%; object-fit: cover; border-radius: 10px; background: var(--tint); transition: opacity .3s; }
.work-lead img { aspect-ratio: 3 / 2; }
.work-lead h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 14px 0 14px; transition: color .2s; }
.work-lead p { font-size: 16.5px; }
.work-lead .link { margin-top: 18px; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; margin-top: 64px; }
.card { display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; }
.card .meta { margin-top: 18px; }
.card h3 { font-size: 20px; line-height: 1.3; margin: 10px 0 10px; transition: color .2s; }
.card p { margin: 0; font-size: 15.5px; }
.card .link { margin-top: auto; padding-top: 18px; align-self: flex-start; }
.work-lead:hover h3, .card:hover h3 { color: var(--blue); }
.work-lead:hover img, .card:hover img { opacity: .9; }
.type-panel { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 3; padding: 26px; border-radius: 10px; background: var(--blue); color: rgba(255,255,255,.78); font-size: 13.5px; font-weight: 500; }
.type-panel b { font-size: clamp(44px, 4.4vw, 60px); line-height: .95; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.type-panel.tall { aspect-ratio: auto; min-height: 100%; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 48px; }
.filters button { height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); transition: background .2s, color .2s, box-shadow .2s; }
.filters button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.filter-status { margin-left: auto; font-size: 13.5px; color: var(--muted); }
.portfolio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
.portfolio .card img, .portfolio .type-panel { aspect-ratio: 3 / 2; }
.portfolio .card h3 { font-size: 24px; }
.portfolio .card[hidden] { display: none; }

/* ---------- Approach ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { border-top: 2px solid var(--blue); padding-top: 22px; }
.dark .step { border-top-color: var(--gold); }
.step .when { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.dark .step .when { color: var(--gold); }
.step h3 { font-size: 19px; line-height: 1.3; margin: 12px 0 10px; }
.step p { margin: 0; font-size: 15.5px; }
.dark .step p { color: rgba(255,255,255,.7); }
.step .where { display: block; margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* ---------- People ---------- */
.leader { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.leader img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 10px; background: var(--tint); }
.leader h2 { font-size: clamp(30px, 3vw, 40px); }
.leader .role { margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--blue); }
.leader .bio { margin-top: 22px; font-size: 17px; }
.creds { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 1px solid var(--line); }
.creds li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; color: var(--ink); }
blockquote.quote { margin: 0; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; border-radius: 10px; background: var(--tint); }
.person h3 { margin-top: 16px; font-size: 16.5px; line-height: 1.3; }
.person p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.person .where { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* ---------- Values / reasons ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.value { padding: 34px 30px; background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; }
.value h3 { font-size: 20px; line-height: 1.3; }
.value p { margin: 12px 0 0; font-size: 15.5px; }
.value::before { content: ""; display: block; width: 28px; height: 3px; background: var(--gold); margin-bottom: 22px; }

/* ---------- Partners ---------- */
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; }
.logos > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 150px; padding: 24px 16px; background: #fff; text-align: center; }
.logos img { max-height: 52px; max-width: 136px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.logos > div:hover img { filter: none; opacity: 1; }
.logos .on-dark img { background: #2b3138; padding: 6px 10px; border-radius: 3px; }
.logos span { font-size: 12px; line-height: 1.35; color: var(--muted); }

/* ---------- Notice / CTA ---------- */
.notice { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: center; padding: 40px 44px; border-radius: 12px; background: var(--tint-blue); }
.notice h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }
.notice p { margin: 8px 0 0; font-size: 15.5px; }
.notice .actions { margin: 0; justify-content: flex-end; }
.cta-band { background: var(--blue); color: rgba(255,255,255,.82); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; max-width: 22ch; }
.cta-band p { margin: 12px 0 0; max-width: 54ch; }
.cta-band .actions { margin: 0; justify-content: flex-end; }

/* ---------- Inner page head ---------- */
.page-head { background: var(--tint); padding: 56px 0 72px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 44px; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-hidden] { color: var(--line); }
.page-head .h1 { max-width: 18ch; }
.page-head .lede { font-size: 20px; }
.page-head.has-media { padding-bottom: 0; background: linear-gradient(var(--tint) 0, var(--tint) calc(100% - 160px), #fff calc(100% - 160px)); }
.page-media { margin-top: 56px; }
.page-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 12px; background: var(--line-soft); }

/* ---------- Case studies ---------- */
.case-head { padding: 56px 0 0; }
.case-identity { height: 56px; width: auto; margin-bottom: 28px; }
.case-head .h1 { max-width: 17ch; font-size: clamp(36px, 4.4vw, 60px); }
.case-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; }
.case-intro .lede { margin-top: 0; }
.case-intro .actions { margin-top: 26px; }
.case-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }
.case-facts dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case-facts dd { margin-top: 6px; font-size: 16px; font-weight: 500; line-height: 1.45; color: var(--ink); }
.case-media { margin-top: 48px; }
.case-media img { width: 100%; aspect-ratio: 2.15 / 1; object-fit: cover; border-radius: 12px; background: var(--tint); }
.case-nav { position: sticky; top: var(--header-h); z-index: 40; margin-top: 64px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
@supports (backdrop-filter: blur(8px)) { .case-nav { background: rgba(255,255,255,.88); backdrop-filter: blur(12px); } }
.case-nav .wrap { display: flex; align-items: center; gap: 28px; overflow-x: auto; scrollbar-width: none; height: 56px; }
.case-nav .wrap::-webkit-scrollbar { display: none; }
.case-nav a { position: relative; flex: none; padding: 17px 0; font-size: 14px; font-weight: 500; color: var(--body); white-space: nowrap; }
.case-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
.case-nav a:hover, .case-nav a.active { color: var(--blue); }
.case-nav a.active::after { transform: scaleX(1); }
.prose p { font-size: 17.5px; line-height: 1.75; max-width: 66ch; }
.prose p.first { font-size: 22px; line-height: 1.5; font-weight: 500; color: var(--ink); max-width: 44ch; letter-spacing: -0.01em; }
.prose strong { color: var(--ink); }
.glance { margin-top: 48px; border-top: 1px solid var(--ink); }
.glance div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.glance dt { color: var(--muted); }
.glance dd { color: var(--ink); }
.rows { border-top: 1px solid var(--line); }
.dark .rows { border-top-color: rgba(255,255,255,.2); }
.rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.dark .rows li { border-bottom-color: rgba(255,255,255,.14); }
.rows h3 { font-size: 18.5px; line-height: 1.35; }
.rows p { margin: 0; font-size: 15.5px; }
.ctry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ctry > div { padding: 26px 26px 28px; background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; }
.ctry h3 { font-size: 19px; }
.ctry .f { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.ctry p { margin: 12px 0 0; font-size: 15px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: var(--tint); }
.pair.portrait img { aspect-ratio: 4 / 5; }
.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery::after { content: ""; flex-grow: 999999; }
.gallery a { display: block; flex-grow: var(--r); flex-basis: calc(var(--h, 220px) * var(--r)); overflow: hidden; border-radius: 6px; background: var(--tint); }
.gallery img { width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; transition: transform .5s, opacity .25s; }
.gallery a:hover img { transform: scale(1.03); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pager a { display: block; padding: 26px 28px; border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s; }
.pager a:hover { border-color: var(--blue); }
.pager small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pager strong { display: block; margin-top: 8px; font-size: 20px; color: var(--ink); }
.pager a + a { text-align: right; }

/* ---------- Giving (AHM) ---------- */
.packages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.package { position: relative; display: flex; flex-direction: column; padding: 32px 28px 30px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.package.featured { background: var(--blue-900); border-color: var(--blue-900); color: rgba(255,255,255,.8); }
.package .badge { position: absolute; top: -12px; left: 28px; height: 24px; padding: 0 10px; border-radius: 4px; background: var(--gold); color: var(--blue-950); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 24px; }
.package h3 { font-size: 18px; line-height: 1.3; }
.package.featured h3 { color: #fff; }
.package .price { margin-top: 18px; font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.package .price span { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.package.featured .price { color: #fff; }
.package.featured .price span, .package.featured .monthly { color: rgba(255,255,255,.66); }
.package .monthly { margin-top: 8px; font-size: 14px; color: var(--muted); }
.package ul { margin: 22px 0 26px; border-top: 1px solid var(--line-soft); }
.package.featured ul { border-top-color: rgba(255,255,255,.16); }
.package li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; line-height: 1.45; }
.package.featured li { border-bottom-color: rgba(255,255,255,.16); }
.package .btn { margin-top: auto; }
.package-note { margin-top: 28px; font-size: 14.5px; color: var(--muted); max-width: 80ch; }
.recognition { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.recognition article { padding: 28px 26px; border-top: 2px solid var(--blue); background: var(--tint); border-radius: 0 0 10px 10px; }
.recognition span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.recognition h3 { margin-top: 12px; font-size: 18px; line-height: 1.3; }
.recognition p { margin: 10px 0 0; font-size: 15px; }

/* ---------- School page (AHM Academy) ---------- */
.mosaic { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 12px; margin-top: 48px; height: min(560px, 60vw); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: var(--tint); }
.mosaic img:first-child { grid-row: 1 / 3; }
.scene { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); max-width: 30ch; margin: 0; }
.scene + .prose { margin-top: 32px; }
.covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.covers > div { padding: 30px 26px; background: #fff; }
.covers b { display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.covers h3 { margin-top: 12px; font-size: 20px; }
.covers p { margin: 10px 0 0; font-size: 15px; }
.covers-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: 20px; padding: 22px 26px; border-radius: 12px; background: var(--blue-900); color: rgba(255,255,255,.8); }
.covers-total strong { color: #fff; font-size: 22px; font-weight: 600; }
.covers-total span { font-size: 15px; }
.letter p { font-size: 17px; line-height: 1.75; max-width: 62ch; }
.letter .sign { margin-top: 26px; font-size: 15px; color: var(--muted); }
.letter .sign strong { display: block; font-size: 18px; color: var(--ink); }
.share-links { display: flex; flex-wrap: wrap; gap: 10px; }
.closing { text-align: center; }
.closing .wrap { max-width: 900px; }
.closing p.big { font-size: clamp(26px, 3vw, 40px); line-height: 1.25; font-weight: 500; letter-spacing: -0.012em; color: #fff; margin: 0 auto; }
.closing .closing-note { margin: 22px auto 0; max-width: 56ch; }
.closing .actions { justify-content: center; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.contact-lines { margin-top: 36px; border-top: 1px solid var(--line); }
.contact-lines div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.contact-lines dt { color: var(--muted); }
.contact-lines dd { color: var(--ink); font-weight: 500; }
.contact-lines a:hover { color: var(--blue); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; padding: 40px; background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: 0 24px 56px rgba(13,34,48,.06); }
.form .full { grid-column: 1 / -1; }
.form h3 { font-size: 22px; }
.form .form-intro p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form label .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
    width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.form input, .form select { height: 50px; }
.form textarea { min-height: 140px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #9aa7b0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,95,133,.15); }
.form select {
    appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230d2230' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.form .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form .btn { border: 0; }
.form-status { margin: 0; font-size: 15px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { color: #1d6b42; }
.form-status.is-error { color: #a3392a; }
.form-note { margin: 0; font-size: 14px; color: var(--muted); }
.form-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-right: 4px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--blue); }
.faq p { margin: 0; padding: 0 0 26px; max-width: 72ch; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-950); color: rgba(255,255,255,.66); padding: 80px 0 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 2fr); gap: 40px 28px; }
.foot-brand img { height: 36px; width: auto; }
.foot-brand p { margin-top: 20px; max-width: 34ch; }
.site-footer h4 { margin-bottom: 16px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.site-footer li + li { margin-top: 10px; }
.site-footer a { color: rgba(255,255,255,.82); transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 72px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: rgba(255,255,255,.5); }
.back-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 46px; height: 46px; border-radius: 50%;
    background: var(--ink); color: #fff; font-family: system-ui, sans-serif; font-size: 18px; box-shadow: 0 10px 24px rgba(13,34,48,.2);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.back-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--blue); }

/* ---------- Lightbox (built by tba-design.js) ---------- */
.lb { position: fixed; inset: 0; z-index: 300; display: none; flex-direction: column; background: rgba(5,16,24,.96); font-family: system-ui, sans-serif; }
.lb.open { display: flex; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 28px 84px 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px 22px; font-size: 14px; color: rgba(255,255,255,.7); }
.lb-close { color: #fff; font-weight: 600; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; color: #fff; font-size: 22px; background: rgba(255,255,255,.08); }
.lb-nav:hover { background: rgba(255,255,255,.16); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1140px) {
    .nav { gap: 24px; }
    .packages, .recognition, .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    :root { --header-h: 68px; }
    .nav, .header-cta { display: none; }
    .menu-btn { display: block; }
    .section { padding: 88px 0; }
    .section.tight { padding: 64px 0; }
    .hero .wrap, .intro, .work-lead, .leader, .contact-grid, .case-intro, .split, .head, .notice, .cta-band .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hero .wrap { padding-top: 56px; padding-bottom: 72px; }
    .head { margin-bottom: 40px; }
    .head .link { justify-self: start; }
    .notice .actions, .cta-band .actions { justify-content: flex-start; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
    .svc-grid, .values, .ctry, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .svc-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
    .svc-item .go { grid-column: 2; justify-self: start; }
    .steps.three { grid-template-columns: minmax(0, 1fr); }
    .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
    .leader img { max-width: 440px; }
    .page-media img { aspect-ratio: 16 / 9; }
    .mosaic { height: 420px; }
}
@media (max-width: 640px) {
    :root { --pad: 20px; }
    body { font-size: 16px; }
    .section { padding: 72px 0; }
    .brand img { height: 31px; }
    .topbar { font-size: 12.5px; }
    .hide-sm { display: none; }
    .lede, .hero .lede, .page-head .lede { font-size: 17.5px; }
    .prose p.first { font-size: 19px; }
    .prose p { font-size: 16.5px; }
    .facts, .svc-grid, .values, .ctry, .work-grid, .portfolio, .packages, .recognition, .steps, .pair, .creds, .pager, .form, .rows li, .svc-item { grid-template-columns: minmax(0, 1fr); }
    .facts { gap: 28px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts.three { grid-template-columns: minmax(0, 1fr); }
    .facts span { font-size: 13.5px; }
    .svc-item .go { grid-column: 1; }
    .form { padding: 26px 20px; }
    .form .full { grid-column: 1; }
    .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .logos > div { min-height: 120px; }
    .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
    .person h3 { font-size: 15px; }
    .notice { padding: 30px 24px; }
    .case-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .case-media img, .page-media img { aspect-ratio: 4 / 3; }
    .hero-media figcaption { flex-direction: column; gap: 6px; }
    .glance div { grid-template-columns: 1fr; gap: 2px; }
    .gallery { --h: 130px; gap: 5px; }
    .pager a + a { text-align: left; }
    .filter-status { width: 100%; margin: 6px 0 0; }
    .foot-grid { grid-template-columns: 1fr; }
    .covers { grid-template-columns: minmax(0, 1fr); }
    .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 140px; height: auto; gap: 8px; margin-top: 32px; }
    .mosaic img:first-child { grid-row: auto; grid-column: 1 / -1; }
    .lb-stage { padding: 12px 0 0; }
    .lb-nav { top: auto; bottom: 64px; transform: none; }
}
