/* ==========================================================================
   Aphinko Communications Group
   Design system aligned to the ACG corporate identity sheet:
   Fonts  : Lemon Milk Light (display) + Poppins Medium (text)
   Colours: #1F1B4E  #0E72BB  #939297
   ========================================================================== */

/* --- Poppins, self-hosted ------------------------------------------------
   Served from this domain rather than Google Fonts: one less third-party
   connection, no render-blocking round trip, and nothing about the visitor
   leaves the site. Poppins is licensed under the SIL Open Font License,
   see assets/fonts/POPPINS-LICENSE.txt.
   ------------------------------------------------------------------------ */

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-latin-300-normal.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* --------------------------------------------------------------------------
   Optional: the CI display face.
   The CI sheet specifies Lemon Milk. It is not a free webfont, so it has to be
   licensed and self-hosted. Drop the woff2 files into /assets/fonts and
   uncomment this block and every display heading picks it up automatically.
   Until then the stack falls back to Poppins, the CI's companion face.
   --------------------------------------------------------------------------
@font-face {
  font-family: "LEMONMILK";
  src: url("../assets/fonts/LEMONMILK-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "LEMONMILK";
  src: url("../assets/fonts/LEMONMILK-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
-------------------------------------------------------------------------- */

:root {
  /* Brand, straight from the CI sheet */
  --navy: #1f1b4e;
  --blue: #0e72bb;
  --grey: #939297;

  /* Derived */
  --navy-deep: #14113a;
  --navy-soft: #2a2563;
  --blue-dark: #0b5c96;
  --blue-tint: #e7f1f9;
  --ink: #1a1830;
  --muted: #5e5c6e;
  --paper: #f6f6f8;
  --paper-2: #eeeef2;
  --white: #ffffff;
  --line: rgba(31, 27, 78, 0.12);
  --line-strong: rgba(31, 27, 78, 0.22);
  --on-dark: rgba(255, 255, 255, 0.76);
  --on-dark-dim: rgba(255, 255, 255, 0.58);
  --line-dark: rgba(255, 255, 255, 0.16);

  --shadow-sm: 0 2px 8px rgba(31, 27, 78, 0.06);
  --shadow: 0 16px 44px rgba(31, 27, 78, 0.1);
  --shadow-lg: 0 28px 70px rgba(31, 27, 78, 0.16);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --display: "LEMONMILK", "Poppins", "Segoe UI", system-ui, sans-serif;
  --sans: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 80px;
  --section: clamp(54px, 6vw, 88px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===== Reset ============================================================= */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: var(--blue); color: #fff; }

.skip-link {
  position: fixed;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===== Layout ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--flush-top { padding-top: 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: #fff; }

.section--navy .lede,
.section--navy p { color: var(--on-dark); }
.section--navy .eyebrow { color: #7fc0ec; }

/* ===== Typography ======================================================== */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  flex: none;
}

.display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.section--navy .display,
.hero .display,
.page-hero .display { color: #fff; }
/* The banner eyebrow sits on a photograph, so it needs the same light
   blue the other dark sections use rather than the ink-on-white blue. */
.page-hero .eyebrow { color: #8ec8f0; }

.h-xl { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -0.03em; }
.h-lg { font-size: clamp(1.95rem, 3.6vw, 3rem); }
.h-md { font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.2; }
.h-sm { font-size: clamp(1.12rem, 1.5vw, 1.28rem); line-height: 1.3; }

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  max-width: 58ch;
}

.prose p + p { margin-top: 1.05em; }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }

.section-head { margin-bottom: clamp(28px, 3.2vw, 44px); }
.section-head .display { max-width: 20ch; }

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}
.section-head--split .lede { padding-bottom: 6px; }

/* ===== Buttons =========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  /* Vertical padding rather than height alone, so a label that wraps to two
     lines still sits centred with room to breathe. */
  padding: 13px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-wrap: balance;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex: none; }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); }

.btn--line { border-color: var(--line-strong); color: var(--navy); }
.btn--line:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--blue);
}
.link-more::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}
.link-more:hover::after { transform: translateX(4px); }

/* ===== Header ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 40px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
}
.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--navy);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { font-weight: 600; }

/* Dropdown menu. The parent link still works on its own, so the menu is
   usable with JavaScript off; the panel opens on hover and on keyboard focus. */
.nav-item { position: relative; display: flex; align-items: center; gap: 6px; }
.nav-item.is-here > a { font-weight: 600; }
.nav-item.is-here > a::after { transform: scaleX(1); }

.nav-sub-toggle {
  width: 20px; height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.nav-sub-toggle::before {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.nav-sub-toggle[aria-expanded="true"]::before { transform: translateY(1px) rotate(225deg); }

.nav-sub {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  min-width: 232px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 60;
}
/* A hover bridge, so the pointer can cross the gap without the panel closing */
.nav-item.has-sub::after {
  content: "";
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 16px;
}
.nav-item.has-sub:hover .nav-sub,
.nav-item.has-sub:focus-within .nav-sub,
.nav-sub[data-open] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-sub a {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-sub a::after { display: none; }
.nav-sub a:hover { background: var(--paper, #f5f3ee); color: var(--blue); }
.nav-sub a[aria-current="page"] { color: var(--blue); font-weight: 600; }

.card--flagship { grid-column: 1 / -1; }
.card--flagship h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }

.header-end { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.header-cta { min-height: 44px; padding-block: 10px; padding-inline: 22px; }

/* The in-menu call to action only exists for the mobile drawer */
.nav > .btn { display: none; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }

.site-header.is-open .menu-toggle-bars { background: transparent; }
.site-header.is-open .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ===== Hero ============================================================== */

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - var(--header-h)));
  display: grid;
  align-items: stretch;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

/* Hero slider. Every slide is real markup; without JavaScript the first one
   simply stays on screen and the rest are hidden. */
.hero-slides { display: grid; min-height: 100%; }
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide .hero-bg { z-index: -2; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vw, 30px);
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 34px; height: 4px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.6); }
.hero-dot.is-active { background: #fff; width: 52px; }
.hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(20, 17, 58, 0.94) 0%, rgba(20, 17, 58, 0.82) 38%,
                    rgba(20, 17, 58, 0.42) 66%, rgba(20, 17, 58, 0.18) 100%),
    linear-gradient(180deg, rgba(20, 17, 58, 0.45) 0%, transparent 28%);
}

.hero-inner { padding-block: clamp(72px, 10vw, 128px); }

.hero-copy { max-width: 46rem; }
.hero .eyebrow { color: #8ec8f0; }
.hero h1 { max-width: 15ch; }
.hero .lede {
  margin-top: 22px;
  max-width: 48ch;
  color: var(--on-dark);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}


.hero-scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}
.hero-scroll span {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
}

/* ===== Credential strip ================================================== */

.creds {
  background: var(--navy);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.creds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.creds-grid > div {
  padding: 26px clamp(14px, 2vw, 28px) 26px 0;
  border-right: 1px solid var(--line-dark);
}
.creds-grid > div:first-child { padding-left: 0; }
.creds-grid > div:not(:first-child) { padding-left: clamp(14px, 2vw, 28px); }
.creds-grid > div:last-child { border-right: 0; padding-right: 0; }
.creds-grid dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7fc0ec;
  margin-bottom: 8px;
}
.creds-grid dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
}

/* ===== Media boxes: every image sits in a fixed ratio ==================== */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.media > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--16x10 { aspect-ratio: 16 / 10; }
.media--16x9  { aspect-ratio: 16 / 9; }
.media--4x3   { aspect-ratio: 4 / 3; }
.media--3x4   { aspect-ratio: 3 / 4; }
.media--1x1   { aspect-ratio: 1 / 1; }
.media--wide  { aspect-ratio: 3 / 1; }
.media--21x9  { aspect-ratio: 21 / 9; }

.media--face > img { object-position: center 22%; }
.media--top > img  { object-position: center 18%; }

/* ===== Intro / split ===================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.split--centre { align-items: center; }

/* ===== Service list ====================================================== */

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 4vw, 64px);
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 8px;
  padding-block: clamp(26px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}
.service .num {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--blue);
  padding-top: 3px;
  letter-spacing: 0.02em;
}
.service h3 { font-size: 1.16rem; color: var(--navy); font-weight: 600; }
.service p { grid-column: 2; color: var(--muted); font-size: 0.97rem; }

.services--single { grid-template-columns: minmax(0, 1fr); }
.services--single .service { grid-template-columns: 64px minmax(0, 1fr); }

/* ===== Cards ============================================================= */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card .media { border-radius: 0; }
.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: clamp(20px, 2.4vw, 26px);
}
.card-body h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); line-height: 1.32; }
.card-body p { color: var(--muted); font-size: 0.95rem; }
.card-body .link-more { margin-top: auto; padding-top: 8px; }

.tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Division cards: logo lockups need a white plate and equal optical size */
.division-card { background: var(--paper); }
.division-logo {
  display: grid;
  place-items: center;
  height: 104px;
  padding: 20px 26px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.division-logo img {
  max-height: 50px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
/* The Money Capital lockup is stacked rather than linear, so it needs a little
   more height to carry the same optical weight as the two ACG lockups. */
.division-logo img[src*="mark-money"] { max-height: 64px; }
.feature-logo img[src*="mark-money"] { max-height: 48px; }
.division-card .card-body { background: var(--paper); }

/* ===== Client logo wall ================================================== */


.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.client-list li {
  list-style: none;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ===== Quotes ============================================================ */

.quote {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(26px, 3vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.quote::before {
  content: "“";
  display: block;
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: 0.7;
  color: var(--blue);
  opacity: 0.35;
  margin-bottom: 14px;
}
.quote blockquote {
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--ink);
  flex: 1;
}
.quote figcaption {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.quote figcaption strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== Tables ============================================================ */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 560px;
}
table.table caption {
  caption-side: top;
  padding: 18px 22px 0;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
table.table th,
table.table td {
  padding: 14px 22px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
table.table thead th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--paper);
  white-space: nowrap;
}
table.table tbody th {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
table.table td { color: var(--muted); }
table.table tbody tr:last-child th,
table.table tbody tr:last-child td { border-bottom: 0; }
table.table tbody tr:hover { background: rgba(14, 114, 187, 0.035); }
table.table .num-col { text-align: right; font-variant-numeric: tabular-nums; }

/* ===== Feature panel ===================================================== */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature + .feature { margin-top: clamp(18px, 2.4vw, 28px); }
.feature .feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4.4vw, 60px);
}
.feature .feature-copy p { color: var(--on-dark); }
.feature .feature-copy p + p { margin-top: 14px; }
.feature .display { color: #fff; }
.feature .eyebrow { color: #7fc0ec; }
.feature .media { border-radius: 0; height: 100%; min-height: 340px; }
.feature--reverse .feature-copy { order: 2; }

.feature-logo {
  display: inline-grid;
  place-items: center;
  height: 64px;
  padding: 12px 20px;
  margin-bottom: 24px;
  background: #fff;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}
.feature-logo img { max-height: 38px; width: auto; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.pill-row li {
  list-style: none;
  padding: 7px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--on-dark);
}

.pill-row--light li {
  border-color: var(--line-strong);
  color: var(--navy);
  font-weight: 500;
}

/* ===== Approach ========================================================== */

.approach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 26px); }
.approach article {
  padding: clamp(26px, 3vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.approach .idx {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  font-family: var(--display);
  font-weight: 500;
}
.approach h3 { font-size: 1.16rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.approach p { color: var(--muted); font-size: 0.96rem; }

/* ===== People ============================================================ */

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 4vw, 64px);
  border-top: 1px solid var(--line);
}
.person {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  column-gap: 24px;
  padding-block: clamp(28px, 3.2vw, 38px);
  border-bottom: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.person--lead .avatar { background: var(--blue); }

/* Team photographs. The box is a fixed 4:5 so every portrait lines up, whatever
   shape the original file is. */
.portrait {
  display: block;
  width: 104px;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 14px;
  background: var(--sand, #f1efe9);
}
.person--lead .portrait { width: 132px; }
.person--lead { grid-template-columns: 132px minmax(0, 1fr); }
.portrait--lg {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 20px;
}
.person h3 { font-size: 1.14rem; font-weight: 600; color: var(--navy); }
.person .role {
  margin: 3px 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.person p { color: var(--muted); font-size: 0.95rem; }
.person .bullets { margin-top: 14px; display: grid; gap: 7px; }
.person .bullets li {
  list-style: none;
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--muted);
}
.person .bullets li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.person--lead { grid-column: 1 / -1; }

/* ===== CTA band ========================================================== */

.cta-band {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(20, 17, 58, 0.93), rgba(20, 17, 58, 0.72)),
    url("../assets/photos/skyline.jpg") center 30% / cover no-repeat;
}
.cta-band .display { color: #fff; }
.cta-band .eyebrow { color: #8ec8f0; }
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(28px, 5vw, 60px);
  flex-wrap: wrap;
}
.cta-inner .display { max-width: 16ch; }

/* ===== Page hero ========================================================= */

.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(300px, 38vw, 430px);
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  /* These banners crop a wide strip out of a normal photograph. Pulling the
     crop towards the top keeps people's heads inside the frame. */
  object-position: center 28%;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(175deg, rgba(20, 17, 58, 0.55) 0%, rgba(20, 17, 58, 0.86) 72%);
}
.page-hero .wrap { padding-block: clamp(48px, 6vw, 72px); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 16px; color: var(--on-dark); max-width: 52ch; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  color: var(--on-dark-dim);
}
.breadcrumb li { list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.breadcrumb a:hover { color: #fff; }

/* ===== Contact =========================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-list { display: grid; gap: 0; margin-top: 30px; }
.contact-list > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  padding-top: 3px;
}
.contact-list dd { margin: 0; color: var(--muted); font-size: 0.96rem; }
.contact-list dd a:hover { color: var(--blue); }

.form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3.2vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.field .req { color: var(--blue); }
input, select, textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14, 114, 187, 0.16);
}
textarea { min-height: 148px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #e9f5ee;
  color: #12653a;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid #bfe3ce;
}
.form-status.is-visible { display: block; }

/* ===== Footer ============================================================ */

.site-footer {
  background: var(--navy-deep);
  color: var(--on-dark);
  padding-block: clamp(46px, 5.5vw, 68px) 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(36px, 4vw, 52px);
  border-bottom: 1px solid var(--line-dark);
}
.site-footer .display { color: #fff; max-width: 30ch; margin: 14px 0 20px; letter-spacing: 0; }
.footer-logo img { height: 38px; width: auto; }
.site-footer h2 { font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.4; }
.site-footer h3 {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links, .footer-contact { display: grid; gap: 11px; font-size: 0.94rem; }
.footer-links li, .footer-contact li { list-style: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--on-dark-dim);
}
.footer-base ul { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-base li { list-style: none; }

/* ===== Legal ============================================================= */

.legal { max-width: 70ch; }
.legal h2 { font-size: 1.25rem; font-weight: 600; color: var(--navy); margin: 34px 0 10px; }
.legal p { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0 20px; }
.legal li { color: var(--muted); margin-bottom: 7px; }

/* ===== Reveal on scroll ================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ===== Responsive ======================================================== */

@media (max-width: 1024px) {
  .feature, .split, .section-head--split, .contact-grid,
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .feature--reverse .feature-copy { order: 0; }
  .feature .media { min-height: 260px; aspect-ratio: 16 / 9; }
  .grid-3, .approach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creds-grid { grid-template-columns: repeat(2, 1fr); }
  .creds-grid > div:nth-child(2) { border-right: 0; padding-right: 0; }
  .creds-grid > div:nth-child(3) { padding-left: 0; }
  .section-head--split .lede { padding-bottom: 0; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 28px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
  .site-header.is-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a {
    padding: 15px 0;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--line);
  }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--blue); }
  .nav > .btn { display: inline-flex; margin-top: 18px; }
  .nav-item { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 0; }
  .nav-item > a { grid-column: 1; }
  .nav-sub-toggle {
    grid-column: 2; grid-row: 1;
    width: 44px; height: 100%;
    border-bottom: 1px solid var(--line);
  }
  .nav-item.has-sub::after { display: none; }
  .nav-sub {
    grid-column: 1 / -1;
    position: static;
    min-width: 0;
    padding: 0 0 0 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    transition: none;
    display: none;
  }
  .nav-item.has-sub:hover .nav-sub,
  .nav-item.has-sub:focus-within .nav-sub { display: none; }
  .nav-item.has-sub .nav-sub[data-open],
  .nav-item.has-sub:focus-within .nav-sub[data-open] {
    display: grid;
    opacity: 1;
    visibility: visible;
  }
  .nav-sub a { padding: 13px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-toggle { display: grid; }
  .header-cta { display: none; }
  .services, .people { grid-template-columns: minmax(0, 1fr); }
  .person--lead { grid-column: auto; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-3, .grid-2, .approach { grid-template-columns: minmax(0, 1fr); }
  .creds-grid { grid-template-columns: 1fr; }
  .creds-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
    padding-inline: 0 !important;
  }
  .creds-grid > div:last-child { border-bottom: 0; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero-scroll { display: none; }
  .cta-inner { align-items: flex-start; }
  .footer-base { justify-content: flex-start; }
  .person, .person--lead { grid-template-columns: 82px minmax(0, 1fr); column-gap: 16px; }
  .avatar { width: 58px; height: 58px; font-size: 1rem; }
  .portrait, .person--lead .portrait { width: 82px; border-radius: 11px; }
  .feature-logo { height: 56px; }
  .feature-logo img { max-height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-bg, .btn, .menu-toggle { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .section { padding-block: 18pt; }
}

/* ==========================================================================
   Portfolio, galleries and density components
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
}

/* ===== Stat band ========================================================= */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.stat-band > div {
  padding: clamp(20px, 2.4vw, 30px);
  border-right: 1px solid var(--line);
}
.stat-band > div:last-child { border-right: 0; }
.stat-band dt {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.stat-band dd {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ===== Full-bleed image band ============================================ */

.band {
  position: relative;
  min-height: clamp(260px, 32vw, 400px);
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.band > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(92deg, rgba(20, 17, 58, 0.93) 0%, rgba(20, 17, 58, 0.78) 45%, rgba(20, 17, 58, 0.42) 100%);
}
.band .display { color: #fff; }
.band .eyebrow { color: #8ec8f0; }
.band p { color: var(--on-dark); max-width: 54ch; }

/* ===== Mosaic (portfolio index) ========================================= */

.mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
.mosaic > * { grid-column: span 2; }
.mosaic > .is-wide { grid-column: span 3; }
.mosaic > .is-full { grid-column: span 6; }

.tile {
  position: relative;
  display: block;
  min-height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  color: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.tile:hover > img { transform: scale(1.05); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 17, 58, 0.1) 0%, rgba(20, 17, 58, 0.5) 46%, rgba(20, 17, 58, 0.92) 100%);
}
.tile-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: inherit;
  padding: clamp(20px, 2.2vw, 28px);
  gap: 8px;
}
.tile-body h3 {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.6vw, 1.42rem);
  font-weight: 500;
  line-height: 1.22;
  color: #fff;
}
.tile-body p { color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; }
.tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8ec8f0;
}
.tile--tall { min-height: 420px; }
.tile--lg { min-height: 340px; }

/* ===== Gallery =========================================================== */

.gallery {
  columns: 4;
  column-gap: clamp(10px, 1.2vw, 16px);
}
.gallery button {
  display: block;
  width: 100%;
  margin: 0 0 clamp(10px, 1.2vw, 16px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-2);
  cursor: zoom-in;
  break-inside: avoid;
  position: relative;
  line-height: 0;
}
.gallery img {
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease), filter 0.3s var(--ease);
}
.gallery button:hover img { transform: scale(1.04); filter: brightness(1.05); }
.gallery button::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(31, 27, 78, 0.1);
  border-radius: inherit;
  pointer-events: none;
}

/* ===== Lightbox ========================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(12, 10, 32, 0.94);
  backdrop-filter: blur(6px);
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(1200px, 100%);
  max-height: 84vh;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}
.lightbox-bar {
  position: absolute;
  left: 0; right: 0; bottom: clamp(12px, 2.4vw, 26px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}
.lightbox button {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.lightbox .lb-close {
  position: absolute;
  top: clamp(12px, 2.4vw, 26px);
  right: clamp(12px, 2.4vw, 26px);
}

/* ===== Article =========================================================== */

.article { max-width: 74ch; }
.article > * + * { margin-top: 1.15em; }
.article p { color: var(--muted); font-size: 1.02rem; }
.article h2 {
  font-family: var(--display);
  font-size: clamp(1.32rem, 2vw, 1.66rem);
  font-weight: 500;
  color: var(--navy);
  margin-top: 1.7em;
  letter-spacing: -0.01em;
}
.article .standfirst {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  padding-left: 20px;
  border-left: 3px solid var(--blue);
}
.article a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--blue-dark); }
.article figure { margin-block: 1.6em; }
.article figure img { width: 100%; border-radius: var(--radius); }
.article .credit { font-size: 0.86rem; color: var(--grey); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--grey); }
.article-meta time { color: var(--grey); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.aside-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.aside-card h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.aside-card ul { display: grid; gap: 12px; }
.aside-card li { list-style: none; }
.aside-card a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
  display: block;
}
.aside-card a:hover { color: var(--blue); }

/* ===== News list ========================================================= */

.news-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: clamp(18px, 2.4vw, 34px);
  align-items: center;
  padding-block: clamp(18px, 2vw, 26px);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}
.news-item:hover { background: var(--paper); }
.news-item .media { border-radius: var(--radius-sm); }
.news-item h3 {
  font-family: var(--display);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.28;
}
.news-item p { margin-top: 7px; color: var(--muted); font-size: 0.94rem; }
.news-item .when {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}

/* ===== Responsive ======================================================== */

@media (max-width: 1024px) {
  .gallery { columns: 3; }
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mosaic > .is-wide, .mosaic > .is-full { grid-column: span 4; }
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band > div:nth-child(2) { border-right: 0; }
  .stat-band > div:nth-child(1), .stat-band > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .aside-card { position: static; }
}

@media (max-width: 720px) {
  .gallery { columns: 2; }
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .mosaic > *, .mosaic > .is-wide, .mosaic > .is-full { grid-column: span 1; }
  .tile, .tile--lg, .tile--tall { min-height: 260px; }
  .stat-band { grid-template-columns: minmax(0, 1fr); }
  .stat-band > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-band > div:last-child { border-bottom: 0; }
  .news-item { grid-template-columns: 110px minmax(0, 1fr); }
  .news-item .when { grid-column: 2; }
}

/* ===== Contact form extras =============================================== */

.captcha-slot { display: grid; gap: 10px; }
.captcha-slot[hidden] { display: none; }
.field-error[hidden] { display: none; }
.captcha-slot .g-recaptcha { min-height: 78px; }

.field-error {
  font-size: 0.88rem;
  font-weight: 500;
  color: #96231f;
}

.form .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ------------------------------------------------------------------
   Banner without a photograph.
   Used where repeating a picture from another page would be the only
   way to fill the band: the team biographies and the news articles.
   ------------------------------------------------------------------ */
.page-hero--plain::after {
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(14, 114, 187, 0.42) 0%, rgba(14, 114, 187, 0) 58%),
    linear-gradient(168deg, #262062 0%, #1b1746 58%, #14113a 100%);
}

/* The honeypot: a field only an automated submission ever fills in.
   Taken out of the page for people and for screen readers alike. */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Social pages in the footer */
.footer-social-head { margin-top: 26px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.footer-social a {
  color: var(--on-dark);
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-social a:hover { color: #fff; border-color: #fff; }

/* A line under the buttons on the Money Capital page pointing at the channel */
.channel-note { margin-top: 16px; color: var(--muted); font-size: 0.94rem; }
.channel-note a { color: var(--blue); }
