/* =====================================================================
   Astira Capital Partners — main site stylesheet
   Built from the "Astira Website Design" Figma file (1440 desktop / 390 mobile)
   Type: Playfair Display (display) + Lato (text)
   ===================================================================== */

:root {
  /* Brand (from Astira Graphic Standards) */
  --brand-teal: #007178;
  --brand-gray: #444547;

  /* Palette sampled from the design */
  --teal-950: #0f2426;
  --teal-900: #1b383c;   /* dark sections, footer, nav */
  --teal-850: #203f43;
  --teal-800: #27494d;
  --teal-700: #2d6164;   /* mid teal cards */
  --teal-600: #2f7a7c;
  --teal-300: #8fb5b6;

  --mist-50:  #f8f8f6;
  --mist-100: #f0f2f0;
  --mist-200: #dde3e2;
  --mist-300: #d0d8d7;
  --mist-400: #c2cbc9;
  --mist-500: #aebbb9;
  --card-radius: 6px;
  /* Card ramp (dark → light), sampled from the revised design */
  --r1a: #314d51; --r1b: #405a5f;
  --r2a: #577175; --r2b: #647c7f;
  --r3a: #7f9495; --r3b: #899d9e;
  --r4a: #a9bab8; --r4b: #b0bfbd;
  --r5a: #ced9d3; --r5b: #d2dcd7;
  --r6a: #e9efeb; --r6b: #ebf0ed;

  --ink: #10272b;
  --ink-soft: #2f4549;
  --ink-muted: #5a6e71;
  --line-light: rgba(16, 39, 43, .14);
  --line-dark: rgba(255, 255, 255, .16);

  --white: #ffffff;
  --on-dark: #ffffff;
  --on-dark-soft: rgba(255, 255, 255, .82);
  --on-dark-muted: rgba(255, 255, 255, .62);

  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;

  /* Type scale — the only sizes used on the site (desktop values; headings scale with the viewport) */
  --fs-xs: 12px;                        /* eyebrows, uppercase labels, captions */
  --fs-sm: 14px;                        /* meta, dates, notes, navigation */
  --fs-md: 16px;                        /* body copy, lists, buttons */
  --fs-lg: 18px;                        /* lead / intro copy */
  --fs-h4: clamp(20px, 1.5vw, 22px);    /* card and list titles */
  --fs-h3: clamp(22px, 1.8vw, 26px);    /* sub-headings */
  --fs-h2s: clamp(28px, 2.6vw, 36px);   /* section headings (compact) */
  --fs-h2: clamp(32px, 3.2vw, 46px);    /* section headings */
  --fs-h1: clamp(36px, 3.7vw, 52px);    /* page titles */
  --fs-stat: clamp(56px, 5.6vw, 80px);  /* big numbers */

  --container: 1246px;
  --gutter: clamp(20px, 6.7vw, 97px);
  --nav-h: 92px;
  --radius: 3px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--white); color: var(--ink); border-radius: var(--radius); }
.skip-link:focus { top: 16px; }

/* ---------- Typography ---------- */
.serif, h1, h2, h3, .display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); line-height: 1.12; }
.h2-sm { font-size: var(--fs-h2s); line-height: 1.18; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
.lead { font-size: var(--fs-lg); line-height: 1.55; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-muted);
}
.on-dark .eyebrow, .eyebrow.light { color: var(--on-dark-muted); }
.on-dark { color: var(--on-dark); }
.on-dark p { color: var(--on-dark-soft); }
.muted { color: var(--ink-muted); }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(56px, 5vw, 72px); position: relative; }
.section--tight { padding-block: clamp(40px, 4vw, 56px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 3vw, 40px); }
.section-head .eyebrow { margin-bottom: 4px; }
.section-head p { max-width: 62ch; font-size: var(--fs-lg); }
.section-head--rule { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.18); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* Backgrounds */
.bg-dark { background: var(--teal-900); color: var(--on-dark); }
.bg-dark-deep { background: radial-gradient(120% 90% at 0% 0%, #2a474c 0%, var(--teal-900) 55%, #16303a 100%); color: var(--on-dark); }
.bg-mist { background: var(--mist-200); }
.bg-mist-deep, .bg-mist-sweep { background: linear-gradient(180deg, #e2e4e5 0%, #c2cbc9 100%); }
.bg-mist-light { background: var(--mist-50); }

.bg-white { background: var(--mist-50); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 22px;
  font-size: var(--fs-md); font-weight: 700; letter-spacing: .01em; line-height: 1;
  border-radius: var(--radius); transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-light { background: var(--mist-200); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.btn-white { background: var(--white); color: var(--brand-teal); }
.btn-white:hover { background: var(--mist-100); }
.btn-teal { background: var(--brand-teal); color: var(--white); }
.btn-teal:hover { background: #005d63; }
.btn-dark { background: var(--teal-900); color: var(--white); }
.btn-dark:hover { background: var(--teal-950); }
.btn-ghost-dark { background: rgba(255,255,255,.08); color: var(--white); border: 1px solid rgba(255,255,255,.14); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.16); }
.btn-outline-light { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }

/* Text link with arrow and underline rule (design pattern) */
.link-arrow {
  display: inline-flex; align-items: center; gap: 28px;
  padding-bottom: 10px; font-size: var(--fs-md); font-weight: 700;
  border-bottom: 1px solid currentColor; color: inherit; position: relative;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }
.link-arrow--small { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; gap: 18px; padding-bottom: 8px; }
.link-arrow--plain { border-bottom: 0; padding-bottom: 0; gap: 10px; }
.on-dark .link-arrow--light { color: var(--white); border-color: rgba(255,255,255,.6); }
.link-arrow { border-color: rgba(255,255,255,.35); }
.inline-arrow { display: inline-block; width: .7em; height: .7em; margin-left: .25em; vertical-align: baseline; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(23, 48, 55, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--white);
}
.site-header--solid { position: sticky; top: 0; background: var(--teal-900); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 30px); }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 30px); }
.nav__links a {
  position: relative; font-size: var(--fs-sm); color: rgba(255,255,255,.88); padding: 6px 0; letter-spacing: .005em;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a[aria-current="page"]::after, .nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 16px; margin-left: 10px; }
.nav__actions .btn { min-height: 44px; padding: 0 18px; font-size: var(--fs-sm); font-weight: 400; }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); font-size: var(--fs-sm); }
.nav-toggle .icon { width: 18px; height: 18px; }

/* Mobile menu panel */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; display: none; flex-direction: column;
  background: var(--teal-900); color: var(--white); padding: 24px var(--gutter) 40px; overflow: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 44px; margin-bottom: 40px; }
.mobile-menu__links { display: grid; gap: 4px; font-family: var(--serif); font-size: var(--fs-h2s); }
.mobile-menu__links a { padding: 10px 0; border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu__links a .icon { width: 20px; height: 20px; opacity: .6; }
.mobile-menu__actions { display: grid; gap: 12px; margin-top: 32px; }
.mobile-menu__actions .btn { width: 100%; }
body.menu-open { overflow: hidden; }

@media (max-width: 1280px) {
  .nav__links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav__actions .btn-ghost-dark { display: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 76px; }
  .brand img { height: 44px; }
  .nav__actions { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(420px, 34vw, 490px); padding: calc(var(--nav-h) + 40px) 0 clamp(44px, 4.5vw, 64px);
  color: var(--white); overflow: hidden; isolation: isolate;
}
.hero--tall { min-height: clamp(580px, 53vw, 760px); }
.hero--tall h1 { font-size: var(--fs-h1); max-width: 21em; line-height: 1.16; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media--soft img { filter: saturate(.92); transform: scale(1.03); }
/* Motion: slow cinematic drift on the still; the video takes over once it can play */
.hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero--motion .hero__media img { animation: hero-drift 36s ease-in-out infinite alternate; will-change: transform; transform-origin: 55% 45%; }
.hero--video-ready .hero__media video { opacity: 1; }
.hero--video-ready .hero__media img { animation: none; opacity: 0; transition: opacity 1.2s var(--ease); }
@keyframes hero-drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to   { transform: scale(1.18) translate3d(-2.5%, -2.5%, 0); }
}
@media (prefers-reduced-motion: reduce) { .hero--motion .hero__media img { animation: none; } }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,48,54,.62) 0%, rgba(20,48,54,.55) 55%, rgba(20,48,54,.86) 100%);
}
.hero__overlay--heavy { background: linear-gradient(180deg, rgba(20,48,54,.74), rgba(20,48,54,.8)); }
/* Wood-wall hero (Contact): same height as the other sub-page heroes, photo under a teal film */
.hero--wood .hero__media img { object-position: 50% 42%; filter: saturate(.4) brightness(.88); }
.hero__overlay--film { background: linear-gradient(180deg, rgba(24,62,66,.66) 0%, rgba(24,62,66,.64) 55%, rgba(18,46,52,.84) 100%); }
.hero--wood .lead { color: rgba(255,255,255,.92); }
@media (max-width: 760px) { .hero--wood .hero__media img { object-position: 38% 45%; } }
.hero__content { max-width: 1000px; }
.hero h1 { font-size: var(--fs-h1); max-width: 20em; line-height: 1.14; }
.hero .lead { margin-top: 20px; max-width: 64ch; color: rgba(255,255,255,.9); }
.hero--tall .lead { margin-top: 22px; max-width: none; }
.hero__links { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.hero__links a { font-size: var(--fs-md); padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.7); }
.chip { display: inline-block; padding: .1em .65em .16em; margin-left: .2em; background: var(--white); color: var(--teal-900); font-weight: 700; font-size: 1em; border-radius: var(--radius); line-height: 1.35; }
/* Rotating word in the home hero (judgment → expertise → outcomes → relationships → talent) */
.chip--rotate { min-width: 15ch; text-align: center; white-space: nowrap; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.chip--rotate.is-out { opacity: 0; transform: translateY(.3em); }
.hero__control {
  position: absolute; right: var(--gutter); bottom: clamp(24px, 2.4vw, 36px); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6);
  display: inline-flex; align-items: center; justify-content: center; color: var(--white);
  background: rgba(20,48,54,.3); transition: background .2s var(--ease);
}
.hero__control:hover { background: rgba(20,48,54,.7); }
.hero__control .icon { width: 16px; height: 16px; stroke-width: 2; }
.hero__control .icon-play { display: none; }
.hero__control.is-paused .icon-pause { display: none; }
.hero__control.is-paused .icon-play { display: block; }

/* ---------- Cards ---------- */
.card {
  position: relative; padding: clamp(22px, 2.2vw, 30px); border-radius: var(--card-radius);
  background: var(--mist-100); color: var(--ink); overflow: hidden; border: 1px solid rgba(16,39,43,.07);
}
.card--light { background: var(--mist-100); }
.card--white { background: var(--mist-50); }
.card--dark { background: linear-gradient(160deg, #2b474c, #1d383c 70%); color: var(--on-dark); border-color: transparent; }
.card--dark p, .card--teal p { color: var(--on-dark-soft); }
.card--teal { background: linear-gradient(160deg, #4b858b, #3c7278); color: var(--on-dark); border-color: transparent; }
.card--light-gradient { background: linear-gradient(160deg, #eaf0f0, #d7dfdf); }
/* Gradient ramps used across card groups (dark → light), from the revised design */
.ramp-1, .q1, .p1 { background: linear-gradient(90deg, var(--r1a), var(--r1b)); color: var(--on-dark); border-color: transparent; }
.ramp-2, .p2 { background: linear-gradient(90deg, var(--r2a), var(--r2b)); color: var(--on-dark); border-color: transparent; }
.ramp-3, .q2, .p3 { background: linear-gradient(90deg, var(--r3a), var(--r3b)); color: var(--on-dark); border-color: transparent; }
.ramp-4, .p4 { background: linear-gradient(90deg, var(--r4a), var(--r4b)); color: var(--ink); border-color: transparent; }
.ramp-5, .q3, .p5 { background: linear-gradient(90deg, var(--r5a), var(--r5b)); color: var(--ink); border-color: transparent; }
.ramp-6, .q4, .p6 { background: linear-gradient(90deg, var(--r6a), var(--r6b)); color: var(--ink); border-color: rgba(16,39,43,.08); }
.p1 { background: linear-gradient(90deg, #5c7579, #6a8386); }
.p2 { background: linear-gradient(90deg, #6f8689, #7c9194); }
.ramp-1 p, .ramp-2 p, .ramp-3 p, .q1 p, .q2 p, .p1 p, .p2 p, .p3 p { color: var(--on-dark-soft); }
.ramp-1 .card__icon, .ramp-2 .card__icon, .ramp-3 .card__icon, .q1 .card__icon, .q2 .card__icon { color: rgba(255,255,255,.9); }
.q1 .card__label, .q2 .card__label { color: rgba(255,255,255,.72); }
.card--underline::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 14px; height: 1px; background: currentColor; opacity: .25; }
.card__num { font-size: var(--fs-xs); letter-spacing: .14em; font-weight: 700; color: var(--ink-muted); }
.card--dark .card__num, .card--teal .card__num { color: rgba(255,255,255,.55); }
.card__icon { width: 28px; height: 28px; color: var(--brand-teal); }
.card--dark .card__icon, .card--teal .card__icon { color: rgba(255,255,255,.85); }
.card h3 { margin-top: 16px; font-size: var(--fs-h4); }
.card p { margin-top: 10px; font-size: var(--fs-md); line-height: 1.6; }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__top .eyebrow { color: inherit; opacity: .75; }

/* ---------- Numbered list (criteria lists) ---------- */
.num-list { display: grid; gap: 12px; margin-top: 20px; }
.num-list li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; font-size: var(--fs-md); line-height: 1.5; }
.num-list li span:first-child { font-size: var(--fs-xs); letter-spacing: .14em; font-weight: 700; padding-top: 4px; opacity: .6; }

/* ---------- Divider list with icons (What we look for) ---------- */
.icon-list li { display: grid; grid-template-columns: 28px 1fr; gap: 20px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line-dark); font-size: var(--fs-md); line-height: 1.55; }
.icon-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.icon-list .icon { width: 22px; height: 22px; opacity: .9; margin-top: 1px; }

/* ---------- Tabs ---------- */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tab {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; background: var(--white); color: var(--ink); border-right: 1px solid var(--line-light);
  font-size: var(--fs-md); text-align: left; transition: background .25s var(--ease), color .25s var(--ease);
}
.tab:last-child { border-right: 0; }
.tab .icon { width: 16px; height: 16px; opacity: .7; }
.tab:hover { background: var(--mist-100); }
.tab[aria-selected="true"] { background: var(--teal-900); color: var(--white); }
.tab-panel[hidden] { display: none; }
@media (max-width: 760px) { .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tab { border-bottom: 1px solid var(--line-light); } }

/* Text-style tabs (Portfolio impact) */
.tabs-text { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 36px 0 28px; }
.tabs-text .tab-text { position: relative; padding: 6px 0 6px 18px; text-align: left; font-size: var(--fs-md); line-height: 1.4; color: var(--ink-muted); border-left: 2px solid transparent; transition: color .25s var(--ease), border-color .25s var(--ease); }
.tabs-text .tab-text:hover { color: var(--ink); }
.tabs-text .tab-text[aria-selected="true"] { color: var(--ink); border-left-color: var(--brand-teal); }
@media (max-width: 760px) { .tabs-text { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: var(--white); padding: clamp(56px, 6vw, 80px) 0 32px; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1fr max-content max-content; column-gap: clamp(48px, 9vw, 140px); row-gap: 32px; align-items: start; }
.site-footer .brand img { height: 50px; }
.footer-col { display: grid; gap: 14px; font-size: var(--fs-md); color: rgba(255,255,255,.72); align-content: start; }
.footer-col a:hover { color: var(--white); }
.footer-col strong { color: var(--white); font-weight: 400; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: var(--fs-sm); color: rgba(255,255,255,.6); }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 900px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; column-gap: 32px; } .site-footer .footer-grid .brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- CTA band ---------- */
.cta {
  position: relative; color: var(--white); padding: clamp(56px, 5.5vw, 80px) 0; overflow: hidden; isolation: isolate;
  min-height: clamp(380px, 31vw, 450px); display: flex; align-items: center;
}
.cta > .container { width: min(var(--container), 100% - 2 * var(--gutter)); }
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; filter: saturate(.85); transform: scale(1.02); }
.cta__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(27,56,60,.86), rgba(27,56,60,.58)); }
.cta .eyebrow { margin-bottom: 22px; color: rgba(255,255,255,.75); }
.cta h2 { max-width: 20em; }
.cta .lead { margin-top: 20px; max-width: 70ch; color: rgba(255,255,255,.9); }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 32px; }
.cta__actions .email { font-weight: 700; font-size: var(--fs-md); }
.cta--split .container { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.cta__arrow { width: 92px; height: 92px; display: inline-flex; align-items: center; justify-content: center; background: var(--teal-900); color: var(--white); border-radius: var(--radius); transition: background .2s var(--ease); }
.cta__arrow:hover { background: #244247; }
.cta__arrow .icon { width: 40px; height: 40px; stroke-width: 1.4; }
@media (max-width: 760px) { .cta--split .container { grid-template-columns: 1fr; } .cta__arrow { width: 64px; height: 64px; } .cta__arrow .icon { width: 28px; height: 28px; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =====================================================================
   Page-specific components
   ===================================================================== */

/* --- Home: what we look for --- */
.lookfor { position: relative; overflow: hidden; }
.lookfor .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.lookfor__mark { position: absolute; left: 0; bottom: 32px; width: min(360px, 28vw); opacity: .07; pointer-events: none; }
@media (max-width: 900px) { .lookfor__mark { display: none; } }
@media (max-width: 900px) { .lookfor .container { grid-template-columns: 1fr; } }

/* --- Home: criteria cards --- */
.criteria .card { display: flex; flex-direction: column; padding-bottom: 36px; }
.criteria .card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.criteria .card__value { font-family: var(--serif); font-size: var(--fs-h2s); margin-top: 56px; line-height: 1.1; white-space: nowrap; }
.criteria .card__label { font-size: var(--fs-md); margin-top: 8px; min-height: calc(2 * 1.5em); line-height: 1.5; color: var(--ink-muted); }
.criteria .card::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 14px; height: 1px; background: currentColor; opacity: .3; }
.criteria .q1 .card__label, .criteria .q2 .card__label { color: rgba(255,255,255,.72); }

/* --- Partnership feature (tabs + panel) --- */
.feature-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--teal-900); color: var(--white); }
.feature-panel__text { position: relative; padding: clamp(28px, 3.4vw, 48px); overflow: hidden; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-start; }
.feature-panel__text .eyebrow { color: rgba(255,255,255,.55); }
.feature-panel__text h3 { font-size: var(--fs-h2); margin-top: 34px; }
.feature-panel__text p { margin-top: 14px; max-width: 32ch; color: var(--on-dark-soft); }
.feature-panel__text .link-arrow { margin-top: 32px; align-self: flex-start; font-size: var(--fs-sm); }
.feature-panel__watermark { position: absolute; left: 20px; top: 40px; font-family: var(--serif); font-size: clamp(90px, 10vw, 150px); line-height: 1; color: rgba(255,255,255,.05); pointer-events: none; }
.feature-panel__media { position: relative; min-height: 320px; }
.feature-panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-panel__media--contain { background: #eef2f1; }
.feature-panel__media--contain img { object-fit: contain; padding: 22px 22px 40px; }
.feature-panel__media--contain .feature-panel__caption { color: var(--ink-soft); text-shadow: none; }
.feature-panel__caption { position: absolute; left: 20px; bottom: 18px; padding: 8px 12px; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--white); background: rgba(16, 39, 43, .72); border-radius: var(--radius); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.feature-impact { display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 32px; padding: clamp(28px, 3vw, 40px) clamp(28px, 3.4vw, 48px); background: #183234; color: var(--white); }
.feature-impact .eyebrow { color: rgba(255,255,255,.6); }
.feature-impact h4 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h4); }
.feature-impact p { margin-top: 10px; font-size: var(--fs-md); color: var(--on-dark-soft); }
.feature-impact .link-arrow { margin-top: 18px; }
.feature-impact .impact-tag { display: block; margin-bottom: 8px; color: var(--teal-300); }   /* category above each impact title */
@media (max-width: 900px) {
  .feature-panel { grid-template-columns: 1fr; }
  .feature-panel__media { min-height: 240px; }
  .feature-impact { grid-template-columns: 1fr; gap: 24px; }
}

/* --- Sector tiles --- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tiles--short .tile { aspect-ratio: 282 / 210; }
.tile { position: relative; aspect-ratio: 282 / 220; overflow: hidden; border-radius: var(--card-radius); color: var(--white); background: var(--teal-950); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,45,50,.35) 0%, rgba(20,45,50,.55) 50%, rgba(20,45,50,.92) 100%); }
.tile:hover img { transform: scale(1.04); }
.tile__icon { position: absolute; left: 18px; top: 18px; z-index: 1; width: 28px; height: 28px; }
.tile__label { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; font-size: var(--fs-lg); line-height: 1.3; }
@media (max-width: 1024px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 8px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); } .tile { flex: 0 0 76vw; scroll-snap-align: start; } }

/* --- Portfolio impact panel --- */
.impact-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, 1.5fr); background: var(--white); }
.impact-panel__stat { background: var(--teal-900); color: var(--white); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.impact-panel__stat .eyebrow { color: rgba(255,255,255,.55); }
.impact-panel__stat .stat { font-family: var(--serif); font-size: var(--fs-stat); line-height: 1; margin-top: 56px; }
.impact-panel__stat .stat__qualifier { display: block; font-family: var(--sans); font-size: var(--fs-lg); line-height: 1.3; margin-bottom: 8px; }
.impact-panel__stat .stat-label { font-size: var(--fs-lg); margin-top: 14px; max-width: none; line-height: 1.3; }
.impact-panel__stat small { display: block; margin-top: 12px; font-size: var(--fs-sm); color: rgba(255,255,255,.6); }
.impact-panel__body { padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.impact-panel__body h3 { margin-top: 18px; }
.impact-panel__body p { margin-top: 14px; font-size: var(--fs-md); color: var(--ink-soft); }
.impact-panel__body .btn { margin-top: 28px; align-self: flex-start; }
.impact-panel__media { position: relative; min-height: 300px; }
.impact-panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.impact-panel__media .caption { position: absolute; left: 24px; bottom: 18px; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--white); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
@media (max-width: 1024px) { .impact-panel { grid-template-columns: 1fr 1fr; } .impact-panel__media { grid-column: 1 / -1; min-height: 260px; } }
@media (max-width: 640px) { .impact-panel { grid-template-columns: 1fr; } }

/* --- Split text/media sections --- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split__media { position: relative; width: 100%; }
.split__media > img:not(.split__mark) { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.split__caption { position: absolute; left: 20px; bottom: 20px; background: rgba(27,56,60,.9); color: var(--white); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; }
.split__mark { position: absolute; right: 28px; bottom: 28px; width: 56px; opacity: .85; }
.split p + p { margin-top: 16px; }
.split .link-arrow { margin-top: 32px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--media-first .split__media { order: -1; } }

/* --- People grid --- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.people--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.people--4 .person__photo { aspect-ratio: 1; }
.people--4 .person__name { font-size: var(--fs-h4); margin-top: 14px; }
.people--4 .person__title { font-size: var(--fs-sm); }
.person { position: relative; }
.person__photo { position: relative; aspect-ratio: 10 / 9; overflow: hidden; background: var(--mist-300); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person__photo .initials { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--serif); font-size: 72px; color: var(--teal-900); background: var(--mist-300); }
.person__name { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--serif); font-size: var(--fs-h3); }
.person__name .icon { width: 16px; height: 16px; color: var(--ink-muted); }
.person__title { margin-top: 6px; font-size: var(--fs-sm); color: var(--ink-muted); }
@media (max-width: 1024px) { .people--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .people, .people--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } .person__name { font-size: var(--fs-h4); } }
@media (max-width: 420px) { .people:not(.people--4) { grid-template-columns: 1fr; } }
/* Home: team photo collage — five tiles of different sizes; a tile grows when hovered */
.collage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(84px, 8.4vw, 120px); gap: 12px; }
.collage__tile { position: relative; display: block; overflow: hidden; border-radius: var(--card-radius); background: var(--teal-950); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.collage__tile img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 0; transition: transform .7s var(--ease); }   /* zoom grows from the top: heads stay in frame */
.collage__tile:hover, .collage__tile:focus-visible { transform: scale(1.07); z-index: 2; box-shadow: 0 26px 50px rgba(0, 0, 0, .4); }
.collage__tile:hover img { transform: scale(1.05); }
/* Asymmetric arrangement on a 12 × 4 grid: a tall tile through the middle, no two neighbours the same shape */
.collage__tile--a { grid-column: 1 / 6; grid-row: 1 / 3; }   /* photo 6 — wide, top-left */
.collage__tile--c { grid-column: 6 / 9; grid-row: 1 / 4; }   /* photo 4 — tall, through the middle */
.collage__tile--d { grid-column: 9 / 13; grid-row: 1 / 3; }  /* photo 2 — wide, top-right */
.collage__tile--b { grid-column: 1 / 4; grid-row: 3 / 5; }   /* photo 0 — near-square, bottom-left */
.collage__tile--e { grid-column: 4 / 6; grid-row: 3 / 5; }   /* photo 0b — narrow upright */
.collage__tile--g { grid-column: 6 / 9; grid-row: 4; }       /* photo 5 — thin strip under the tall tile */
.collage__tile--f { grid-column: 9 / 13; grid-row: 3 / 5; }  /* photo 3 — wide, bottom-right */
/* Focal points travel with each photo (inline object-position in the HTML), so any photo can take any slot. */
@media (max-width: 760px) {
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 8px; }
  .collage__tile--a { grid-column: 1 / 3; grid-row: 1; }
  .collage__tile--c { grid-column: 1; grid-row: 2 / 4; }
  .collage__tile--d { grid-column: 2; grid-row: 2; }
  .collage__tile--e { grid-column: 2; grid-row: 3; }
  .collage__tile--b { grid-column: 1; grid-row: 4 / 6; }
  .collage__tile--f { grid-column: 2; grid-row: 4; }
  .collage__tile--g { grid-column: 2; grid-row: 5; }
}
@media (prefers-reduced-motion: reduce) { .collage__tile, .collage__tile img { transition: none; } .collage__tile:hover { transform: none; } .collage__tile:hover img { transform: none; } }

/* --- Insights block --- */
.insights { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); }
.insights__col-head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 16px; }
.insights__col-head h3 { font-size: var(--fs-h3); }
.insights__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); margin-top: 8px; }
.post { display: block; position: relative; border-bottom: 1px solid var(--line-dark); padding-bottom: 20px; }
.post + .post { margin-top: 28px; }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post--tall img { aspect-ratio: 4 / 3; }
.post--wide img { aspect-ratio: 3 / 1; }
.post--banner img { aspect-ratio: 24 / 5; }
.post--banner h4 { font-size: var(--fs-h4); }
.post--banner .eyebrow { margin-top: 14px; }
.post--banner .read { margin-top: 12px; }
.insights__grid--page { grid-template-columns: minmax(0, 1.33fr) minmax(0, 1fr); }
.insights__grid--page .post--lg h4 { font-size: var(--fs-h3); }
.insights__grid--page .post p { font-size: var(--fs-md); }
.insights__grid--page .follow { padding: 20px 0; margin-top: 20px; }
.insights__grid--page .follow img { width: 110px; aspect-ratio: 110 / 86; }
.insights__grid--page .follow { grid-template-columns: 110px 1fr; gap: 20px; }
.insights__grid--page .follow h4 { font-size: var(--fs-h4); margin-top: 6px; }
.post .eyebrow { margin-top: 20px; color: rgba(255,255,255,.6); }
.post h4 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h4); line-height: 1.3; margin-top: 10px; }
.post--lg h4 { font-size: var(--fs-h2s); }
.post p { margin-top: 12px; font-size: var(--fs-md); color: var(--on-dark-soft); }
.post .meta { margin-top: 14px; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.post .read { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.post .read .icon { width: 16px; height: 16px; }
.news-list li { border-bottom: 1px solid var(--line-dark); padding: 18px 0; }
.news-list .meta { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); display: flex; gap: 14px; }
.news-list .meta span:first-child { opacity: .5; }
.news-list a { display: block; margin-top: 8px; font-family: var(--serif); font-size: var(--fs-h4); line-height: 1.35; }
@media (max-width: 1024px) { .insights { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .insights__grid { grid-template-columns: 1fr; } }

/* Follow card (Insights page) */
.follow { display: grid; grid-template-columns: 154px 1fr; gap: 28px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line-dark); margin-top: 28px; }
.follow img { width: 154px; aspect-ratio: 154 / 120; object-fit: cover; }
.follow h4 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); margin-top: 10px; }
.follow .link-arrow { margin-top: 12px; }
@media (max-width: 560px) { .follow { grid-template-columns: 1fr; } }

/* News rows (Insights page) */
.news-rows li { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 20px 0 20px 36px; border-top: 1px solid var(--line-light); font-size: var(--fs-md); }
.news-rows li { position: relative; }
.news-rows li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--brand-teal); }
.news-rows li:last-child { border-bottom: 1px solid var(--line-light); }
.news-rows .date { font-size: var(--fs-xs); letter-spacing: .14em; font-weight: 700; color: var(--ink-muted); }
.news-rows a:hover { color: var(--brand-teal); }
@media (max-width: 640px) { .news-rows li { grid-template-columns: 1fr; gap: 8px; padding-left: 0; font-size: var(--fs-md); } }

/* --- Cortex banner (home) --- */
.cortex-banner .container { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.cortex-banner p { margin-top: 18px; max-width: 52ch; font-size: var(--fs-md); color: var(--ink-soft); }
.cortex-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; background: var(--teal-900); color: var(--white); font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.2; max-width: 360px; margin-left: auto; transition: background .25s var(--ease); }
.cortex-card:hover { background: var(--teal-950); }
.cortex-card .mark { width: 30px; flex: none; opacity: .9; filter: sepia(1) saturate(2) hue-rotate(-30deg); }
.cortex-card .icon { width: 18px; height: 18px; flex: none; }
.cortex-card span { flex: 1; }
@media (max-width: 900px) { .cortex-banner .container { grid-template-columns: 1fr; } .cortex-card { margin-left: 0; max-width: none; } }

/* --- Accordion (How we partner) --- */
.accordion { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.acc { border-radius: var(--card-radius); min-height: 116px; }
.acc__btn { width: 100%; display: grid; grid-template-columns: 24px 1fr auto; gap: 18px; align-items: start; padding: 30px 28px 32px; text-align: left; font-family: var(--serif); font-size: var(--fs-h4); line-height: 1.25; }
.acc__btn .icon { width: 22px; height: 22px; opacity: .9; }
.acc__btn .plus { width: 16px; height: 16px; opacity: .8; transition: transform .3s var(--ease); align-self: start; margin-top: 4px; }
.acc[open] .acc__btn .plus { transform: rotate(45deg); }
.acc__body { padding: 0 28px 26px 70px; font-size: var(--fs-md); line-height: 1.6; opacity: .9; }
.acc__link { display: flex; width: max-content; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.acc__link .icon { width: 16px; height: 16px; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
@media (max-width: 760px) { .accordion { grid-template-columns: 1fr; } .acc__body { padding-left: 28px; } }

/* --- Three pillar cards (How we partner) --- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pillars .card { padding: clamp(24px, 2.4vw, 30px); }
.pillars .card h3 { margin-top: 12px; font-size: var(--fs-h4); }
.dot-list { display: grid; gap: 12px; margin-top: 18px; }
.dot-list li { position: relative; padding-left: 26px; font-size: var(--fs-md); line-height: 1.5; }
.dot-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--teal-300); }
.card--light .dot-list li::before { background: var(--brand-teal); }
.card--dark .dot-list li, .card--teal .dot-list li { color: var(--on-dark-soft); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* --- Work cards 2x2 (How we partner) --- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.work-grid .card { padding: clamp(24px, 2.4vw, 30px); min-height: 186px; }
.work-grid .card h3 { margin-top: 18px; font-size: var(--fs-h4); }
.work-grid .card p { font-size: var(--fs-md); }
.work-grid .card .btn { margin-top: 20px; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

/* --- Case study (How we partner) --- */
.case-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.case-tab { display: grid; grid-template-columns: 1fr; gap: 6px; align-items: start; text-align: left; padding: 16px 20px 18px; min-height: 80px; background: var(--mist-50); color: var(--ink-soft); font-size: var(--fs-md); line-height: 1.35; border-radius: var(--card-radius); border-bottom: 2px solid transparent; transition: background .25s var(--ease), color .25s var(--ease); }
.case-tab[aria-selected="true"] { background: #d4ddda; color: var(--ink); border-bottom-color: var(--brand-teal); }
.case { background: linear-gradient(160deg, #244247, #1b383c 70%); color: var(--white); padding: clamp(28px, 3.4vw, 44px); border-radius: var(--card-radius); }
.case__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.case__company { font-family: var(--serif); font-size: var(--fs-h4); }
.case__tag { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.6); }
.case h3 { font-size: var(--fs-h3); margin-top: 14px; }
.case__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; margin-top: 30px; }
.case__cols h4 { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.7); }
.case__cols p { margin-top: 14px; font-size: var(--fs-md); line-height: 1.65; color: var(--on-dark-soft); }
.case__note { margin-top: 28px; font-size: var(--fs-sm); color: rgba(255,255,255,.55); }
@media (max-width: 1024px) { .case-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case__cols { grid-template-columns: 1fr; gap: 28px; } }

/* --- Principles (How we apply AI) --- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.principle { position: relative; padding: 26px 28px 28px; border-radius: var(--card-radius); min-height: 112px; }
.principle.p1::before, .principle.p2::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.35); }
.principle h3 { font-size: var(--fs-h4); padding-right: 12px; }
.principle p { margin-top: 8px; font-size: var(--fs-md); color: inherit; opacity: .85; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* --- Partnerships page: company tabs & detail --- */
.company-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.company-tab { text-align: left; padding: 22px 24px; min-height: 136px; background: var(--mist-100); color: var(--ink); border-radius: var(--radius); display: flex; flex-direction: column; transition: background .25s var(--ease), color .25s var(--ease); }
.company-tab:hover { background: var(--mist-200); }
.company-tab h3 { font-size: var(--fs-h4); }
.company-tab .meta { margin-top: 8px; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .7; }
.company-tab p { margin-top: 10px; font-size: var(--fs-md); line-height: 1.5; opacity: .85; }
.company-tab[aria-selected="true"], .company-tab[aria-selected="true"]:hover { background: linear-gradient(160deg, #2d6467, var(--teal-900)); color: var(--white); }
.company-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; margin-top: 28px; }
.company-detail__media { position: relative; min-height: 400px; border-radius: var(--radius); overflow: hidden; }
.company-detail__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.company-detail__media--contain { background: #eef2f1; }
.company-detail__media--contain img { object-fit: contain; padding: 28px; }
.company-detail__body { padding: 0; }
.company-detail__logo-box { background: var(--mist-50); border: 1px solid var(--line-light); padding: 22px 28px; display: flex; align-items: center; min-height: 86px; }
.company-detail__logo { height: 40px; width: auto; max-width: min(260px, 100%); object-fit: contain; }
.company-detail__logo-text { font-family: var(--serif); font-size: var(--fs-h2s); line-height: 1; color: var(--teal-900); }
.company-detail__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 26px 28px; font-size: var(--fs-md); }
.company-detail__text { background: var(--mist-50); border: 1px solid var(--line-light); padding: 26px 28px 28px; }
.company-detail__facts .eyebrow { display: block; margin-bottom: 10px; }
.company-detail__facts a:hover { color: var(--brand-teal); }
.company-detail h4 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h4); }
.company-detail h4 + p { margin-top: 12px; color: var(--ink-soft); line-height: 1.65; font-size: var(--fs-md); }
.company-detail h4 + p + h4 { margin-top: 28px; }
.company-detail__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 26px; font-weight: 700; font-size: var(--fs-sm); color: var(--brand-teal); }
.company-detail__links a { display: inline-flex; align-items: center; gap: 8px; }
.company-detail__links .icon { width: 16px; height: 16px; }
@media (max-width: 900px) { .company-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .company-detail { grid-template-columns: 1fr; } .company-detail__media { min-height: 260px; } .company-detail__facts { grid-template-columns: 1fr; gap: 18px; } }

/* --- Values cards (People) --- */
.split--values { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 24px; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.values .card { min-height: 176px; padding: 22px 24px; }
.values .card__num { display: block; }
.values .card h3 { margin-top: 20px; font-size: var(--fs-h4); }
.values .card p { font-size: var(--fs-md); margin-top: 10px; }
.values-figure { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 280px; background: var(--mist-300); }
.split__media.values-figure > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; }
.split__media.values-figure > img.values-figure__bg { object-fit: cover; filter: blur(14px) brightness(.9); transform: scale(1.12); }
.split__media.values-figure > img.values-figure__fg { object-fit: contain; }
.split__media.values-figure > img.values-figure__cover { object-fit: cover; }
@media (max-width: 900px) { .split--values { grid-template-columns: 1fr; } .values-figure { aspect-ratio: 3 / 2; min-height: 0; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* --- Community carousel (People) --- */
.carousel { position: relative; }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 24px; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 calc(50% - 12px); scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--teal-900); color: var(--white); border-radius: var(--radius); overflow: hidden; }
.slide__media { position: relative; min-height: 250px; }
.slide__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide__media--placeholder { background: linear-gradient(160deg, #2a4b4f, #1b383c); display: grid; place-items: center; }
.slide__placeholder { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); border: 1px dashed rgba(255,255,255,.35); padding: 10px 14px; }
.slide__tag { position: absolute; left: 16px; bottom: 16px; background: var(--white); color: var(--ink); font-size: var(--fs-xs); letter-spacing: .14em; font-weight: 700; padding: 8px 12px; }
.slide__body { padding: clamp(22px, 2.2vw, 30px); }
.slide__body h3 { font-size: var(--fs-h4); }
.slide__body p { margin-top: 14px; font-size: var(--fs-md); line-height: 1.6; color: var(--on-dark-soft); }
@media (max-width: 900px) { .slide { flex-basis: min(100%, 560px); } }
.carousel__footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.carousel__count { font-size: var(--fs-sm); letter-spacing: .14em; }
.carousel__nav { display: flex; gap: 12px; }
.carousel__btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: var(--mist-200); color: var(--ink); transition: background .2s var(--ease); }
.carousel__btn:hover { background: var(--mist-300); }
.carousel__btn .icon { width: 22px; height: 22px; }
.carousel__note { margin-top: 22px; font-size: var(--fs-sm); color: var(--ink-muted); }
@media (max-width: 760px) { .slide { grid-template-columns: 1fr; flex-basis: 100%; } .slide__media { min-height: 220px; } }

/* --- Our People banner: taller, so the wall logo sits well above the headline --- */
@media (max-width: 760px) { .hero--people .hero__media img { object-position: 50% 0% !important; } }

/* --- Contact page: banner with info panel, form in a modal --- */
.hero--contact { align-items: center; min-height: clamp(520px, 44vw, 620px); }
.contact-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 360px); gap: clamp(32px, 5vw, 80px); align-items: center; }
.contact-panel { display: grid; gap: 14px; justify-items: start; padding: 28px 28px 30px; background: rgba(20,48,54,.55); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); border-radius: var(--radius); color: var(--white); }
.contact-panel .eyebrow { color: rgba(255,255,255,.7); }
.contact-panel address { font-style: normal; font-size: var(--fs-md); line-height: 1.6; }
.contact-panel__link { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-md); padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.5); transition: border-color .2s var(--ease); }
.contact-panel__link:hover { border-color: var(--white); }
.contact-panel__link .icon { width: 14px; height: 14px; }
.contact-panel .btn { margin-top: 10px; }
@media (max-width: 900px) { .contact-hero { grid-template-columns: 1fr; } .contact-panel { width: 100%; justify-items: start; } }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,26,30,.6); backdrop-filter: blur(3px); }
.modal__panel { position: relative; width: min(100%, 760px); max-height: calc(100vh - 40px); overflow: auto; background: var(--mist-50); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); background: var(--mist-200); }
.modal__close:hover { background: var(--mist-300); }
.modal__close .icon { width: 18px; height: 18px; }
.modal__panel form { margin-top: 24px; }
body.modal-open { overflow: hidden; }
.who-set { border: 0; padding: 0; margin: 0; }
.who-set legend { display: inline-block; background: var(--mist-200); padding: 8px 12px; }
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.who-btn { position: relative; text-align: left; padding: 16px 14px; min-height: 108px; background: var(--mist-200); color: var(--ink); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; transition: background .25s var(--ease), color .25s var(--ease); }
.who-btn .icon { width: 22px; height: 22px; }
.who-btn .check { position: absolute; right: 12px; top: 14px; width: 16px; height: 16px; opacity: 0; }
.who-btn[aria-pressed="true"] { background: linear-gradient(160deg, #2d6467, var(--teal-900)); color: var(--white); }
.who-btn[aria-pressed="true"] .check { opacity: 1; }
.modal__panel .hint { margin-top: 22px; font-size: var(--fs-md); color: var(--ink-soft); max-width: 60ch; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 22px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.field input, .field textarea { width: 100%; padding: 13px 14px; font: inherit; font-size: var(--fs-md); color: var(--ink); background: var(--white); border: 1px solid var(--line-light); border-radius: 6px; outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--brand-teal); box-shadow: 0 0 0 3px rgba(0,113,120,.15); }
.field textarea { min-height: 140px; resize: vertical; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 22px; }
.form-actions .note { font-size: var(--fs-sm); color: var(--ink-muted); }
.form-status { margin-top: 14px; font-size: var(--fs-sm); color: var(--brand-teal); }
@media (max-width: 760px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* --- Insights page hero media tint --- */
.hero--insights .hero__overlay { background: linear-gradient(180deg, rgba(14,36,44,.7), rgba(14,36,44,.86)); }

/* --- Pagination dots / misc --- */
.center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.flow > * + * { margin-top: 16px; }

/* Keep portfolio tabs readable on narrow phones. */
@media (max-width: 380px) { .company-tabs { grid-template-columns: 1fr; } }

/* Partnership principles: three equal cards on desktop. */
@media (min-width: 901px) { .accordion--partnership { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .accordion--partnership { grid-template-columns: 1fr; } }

/* Nine investment sectors, balanced across three desktop rows. */
@media (min-width: 1025px) { .tiles--sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#professional-services { scroll-margin-top: 110px; }

/* Reusable community card variant for entries without photography. */
.slide--text { grid-template-columns: minmax(0, 1fr); }
.slide--text .slide__body { align-self: center; padding: clamp(24px, 3vw, 44px); }
.slide--text .slide__body p { max-width: 52ch; }

/* Contact form validation and submission state. */
.field-error { display: block; color: #a32626; font-size: .875rem; margin-top: 6px; }
.field-error:empty { display: none; }
.field [aria-invalid="true"] { border-color: #a32626; }
.form-actions button:disabled { opacity: .65; cursor: wait; }

/* Fixed asymmetric six-photo homepage collage. */
.collage--six { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(95px, 9vw, 130px); }
.collage--six .collage__tile--a { grid-column: 1 / 6; grid-row: 1 / 3; }
.collage--six .collage__tile--b { grid-column: 6 / 9; grid-row: 1 / 5; }
.collage--six .collage__tile--c { grid-column: 1 / 4; grid-row: 3 / 5; }
.collage--six .collage__tile--e { grid-column: 4 / 6; grid-row: 3 / 5; }
.collage--six .collage__tile--f { grid-column: 9 / 13; grid-row: 1 / 3; }
.collage--six .collage__tile--g { grid-column: 9 / 13; grid-row: 3 / 5; }
@media (max-width: 760px) {
  .collage--six { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 34vw, 230px); }
  .collage--six .collage__tile--a { grid-column: 1 / 3; grid-row: 1; }
  .collage--six .collage__tile--b { grid-column: 1; grid-row: 2 / 4; }
  .collage--six .collage__tile--c { grid-column: 2; grid-row: 2; }
  .collage--six .collage__tile--e { grid-column: 2; grid-row: 3; }
  .collage--six .collage__tile--f { grid-column: 1 / 3; grid-row: 4; }
  .collage--six .collage__tile--g { grid-column: 1 / 3; grid-row: 5; }
}

/* Case-study outcomes remain distinct on desktop and mobile. */
.case__cols .case__outcomes { list-style: disc; margin: 12px 0 0; padding-left: 1.25em; font-size: var(--fs-md); line-height: 1.65; color: var(--on-dark-soft); }
.case__outcomes li + li { margin-top: 10px; }

/* Keep the Numera capability and status above its outcome metric. */
.impact-panel__stat .impact-stat-heading { margin-top:24px; font-family:var(--serif); font-size:clamp(24px,2.2vw,30px); line-height:1.15; }
.impact-panel__stat .impact-stat-status { margin-top:8px; font-size:var(--fs-md); line-height:1.4; }
.impact-panel__stat .stat--with-heading { margin-top:24px; }
