/* ==========================================================================
   APJ CAPITAL GROUP: design system
   Ink / signal blue / brass. Editorial serif + technical grotesque.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  /* ink */
  --ink-900: #0b131c;
  --ink-800: #101a24;
  --ink-700: #16232f;
  --ink-600: #1e2f3d;

  /* paper */
  --bone: #f4f1ea;
  --bone-2: #ece7dc;
  --white: #ffffff;

  /* brand */
  --laurel: #0b1f3f;
  --laurel-lit: #24406f;
  --laurel-pale: #8fb0e8;
  --brass: #b8862b;
  --brass-lit: #d8a94b;

  /* type colours */
  --t-hi: var(--ink-900);
  --t-body: #3d4a55;
  --t-mute: #6d7a85;
  --t-on-dark: #e8edf0;
  --t-on-dark-mute: #93a2ad;

  /* lines */
  --rule: rgba(16, 26, 36, .14);
  --rule-dark: rgba(255, 255, 255, .16);

  /* type scale */
  --ff-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ff-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-hero: clamp(2.9rem, 1.4rem + 6.2vw, 7.4rem);
  --fs-h1: clamp(2.4rem, 1.3rem + 4.4vw, 4.9rem);
  --fs-h2: clamp(1.9rem, 1.2rem + 2.6vw, 3.3rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  --fs-lede: clamp(1.06rem, .98rem + .45vw, 1.3rem);
  --fs-body: 1rem;
  --fs-sm: .875rem;
  --fs-xs: .75rem;

  /* space */
  --gutter: clamp(1.15rem, .6rem + 2.6vw, 4.5rem);
  --maxw: 1560px;
  --sect: clamp(4.5rem, 3rem + 6vw, 10rem);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--bone);
  color: var(--t-body);
  font: 400 var(--fs-body)/1.65 var(--ff-text);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

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

:focus-visible {
  outline: 2px solid var(--laurel);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  z-index: 200;
  background: var(--laurel);
  color: #fff;
  padding: .7rem 1.1rem;
  font-size: var(--fs-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* --- 3. Type ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--t-hi);
  line-height: 1.04;
  letter-spacing: -.022em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }

p { max-width: 68ch; }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--t-body);
}

em, .it { font-style: italic; }

.eyebrow {
  font: 500 var(--fs-xs)/1 var(--ff-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--laurel);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .55;
  flex: none;
}
.eyebrow--light { color: var(--brass-lit); }

.num {
  font: 400 var(--fs-xs)/1 var(--ff-mono);
  letter-spacing: .12em;
  color: var(--t-mute);
}

.hl { color: var(--laurel); font-style: italic; }
.on-dark .hl, .sec--dark .hl { color: var(--brass-lit); }

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

.sec { padding-block: var(--sect); position: relative; }
.sec--tight { padding-block: clamp(3rem, 2rem + 3vw, 5.5rem); }
.sec--dark { background: var(--ink-900); color: var(--t-on-dark); }
.sec--dark h1, .sec--dark h2, .sec--dark h3 { color: #fff; }
.sec--dark .lede, .sec--dark p { color: var(--t-on-dark-mute); }
.sec--bone { background: var(--bone-2); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
  margin-bottom: clamp(2.2rem, 1.4rem + 2.4vw, 4rem);
}
@media (min-width: 900px) {
  .sec-head--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: end;
  }
}
.sec-head p { color: var(--t-mute); }
.sec--dark .sec-head p { color: var(--t-on-dark-mute); }

.rule { height: 1px; background: var(--rule); border: 0; }
.sec--dark .rule { background: var(--rule-dark); }

/* --- 5. Buttons / links ------------------------------------------------- */
.btn {
  --btn-bg: var(--laurel);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 var(--fs-sm)/1 var(--ff-text);
  letter-spacing: .02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn span.arrow { transition: transform .3s var(--ease); }
.btn:hover span.arrow { transform: translateX(4px); }
.btn:hover { --btn-bg: var(--laurel-lit); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--t-hi);
  border-color: var(--rule);
}
.btn--ghost:hover { --btn-bg: var(--ink-900); --btn-fg: #fff; border-color: var(--ink-900); }

/* ghost buttons on photographic/ink surfaces must not fill with ink on hover:
   the fill swallows the white label and the button reads as an empty block */
.hero .btn--ghost,
.cta .btn--ghost {
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .34);
}
.hero .btn--ghost:hover,
.cta .btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, .12);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .6);
}

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink-900); }
.btn--light:hover { --btn-bg: var(--brass-lit); --btn-fg: var(--ink-900); }

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

/* --- Hero content -------------------------------------------------------- */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  text-align: center;
  color: #fff;
}
.hero-logo { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 700; letter-spacing: .06em; }
.hero-logo span { font-weight: 300; color: var(--brass-lit); }
.hero-tagline { margin-top: .75rem; font-size: .95rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.hero-rule { width: 84px; height: 2px; background: var(--brass-lit); margin: 1.75rem auto; }
.hero-intro { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.9); }
.hero-offices { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.5rem; }
.hero-office { min-width: 150px; }
.hero-office-city { font-size: 1.15rem; font-weight: 600; }
.hero-office-region { margin-top: .25rem; font-size: .85rem; color: rgba(255,255,255,.7); }

/* compact mailto pill used in the footer */
.btn--mail {
  --btn-bg: transparent;
  --btn-fg: var(--brass-lit);
  border-color: rgba(216, 169, 75, .5);
  padding: .7rem 1.15rem;
  font: 500 var(--fs-xs)/1 var(--ff-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.btn--mail:hover { --btn-bg: var(--brass); --btn-fg: var(--ink-900); border-color: var(--brass); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font: 500 var(--fs-sm)/1 var(--ff-text);
  color: var(--t-hi);
  border-bottom: 1px solid var(--laurel);
  padding-bottom: .3rem;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.link-arrow::after { content: "\2192"; color: var(--laurel); }
.link-arrow:hover { gap: .95rem; }
.sec--dark .link-arrow { color: #fff; }
.sec--dark .link-arrow::after { color: var(--brass-lit); }

/* --- 6. Header ---------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(11, 19, 28, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
}
.masthead__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .9rem; margin-left: clamp(1rem, 3vw, 2.5rem); }
.brand img { width: 200px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(.6rem, 1.4vw, 1.7rem); margin-left: auto; }
.nav a {
  position: relative;
  font-size: .875rem;
  color: rgba(255, 255, 255, .82);
  padding-block: .4rem;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--brass-lit);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: #fff; }
@media (max-width: 1080px) { .nav { display: none; } }

.masthead .btn { padding: .7rem 1.15rem; }
@media (max-width: 560px) { .masthead .btn { display: none; } }

/* primary buttons sitting on the ink/photographic surfaces read as navy-on-navy,
   so they invert to the light tint of the brand blue */
.masthead .btn:not(.btn--ghost):not(.btn--light),
.hero .btn:not(.btn--ghost):not(.btn--light) {
  --btn-bg: var(--laurel-pale);
  --btn-fg: var(--ink-900);
}
.masthead .btn:not(.btn--ghost):not(.btn--light):hover,
.hero .btn:not(.btn--ghost):not(.btn--light):hover { --btn-bg: #fff; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  background: none;
  border: 1px solid var(--rule-dark);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22.5px; }
.burger span:nth-child(3) { top: 28px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 1080px) { .burger { display: block; } }

/* drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: var(--ink-900);
  padding: 6.5rem var(--gutter) 2rem;
  display: grid;
  align-content: start;
  gap: .25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  overflow-y: auto;
}
body.menu-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer a {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem);
  color: #fff;
  padding-block: .5rem;
  border-bottom: 1px solid var(--rule-dark);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.drawer a .num { color: var(--brass-lit); }
.drawer__foot {
  margin-top: 2.5rem;
  color: var(--t-on-dark-mute);
  font-size: var(--fs-sm);
  display: grid;
  gap: .35rem;
}
.drawer__foot a { font-size: var(--fs-sm); color: #fff; border: 0; padding: 0; display: inline; }

/* --- 7. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--ink-900);
  color: #fff;
  overflow: hidden;
  min-height: min(92vh, 900px);
  display: grid;
  align-items: end;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
/* Hero slideshow: 3 images crossfading, ~3s each (9s cycle) */
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  animation: heroSlide 9s linear infinite;
}
.hero__slide--1 { animation-delay: -6s; }
.hero__slide--2 { animation-delay: -3s; }
.hero__slide--3 { animation-delay: 0s; }
@keyframes heroSlide {
  0%   { opacity: 1; transform: scale(1.04) translate3d(0, 0, 0); }
  30%  { opacity: 1; transform: scale(1.10) translate3d(-0.8%, -1%, 0); }
  36%  { opacity: 0; transform: scale(1.10) translate3d(-0.8%, -1%, 0); }
  97%  { opacity: 0; transform: scale(1.04) translate3d(0, 0, 0); }
  100% { opacity: 1; transform: scale(1.04) translate3d(0, 0, 0); }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 19, 28, .82) 0%, rgba(11, 19, 28, .34) 42%, rgba(11, 19, 28, .95) 100%),
    radial-gradient(120% 90% at 82% 12%, rgba(11, 31, 63, .3), transparent 62%);
}
.hero__in {
  position: relative;
  padding-block: clamp(6rem, 4rem + 10vw, 11rem) clamp(2.5rem, 1rem + 4vw, 4.5rem);
  display: grid;
  justify-items: center;
  gap: clamp(1.6rem, 1rem + 2vw, 3rem);
}
.hero__kicker {
  font: 500 var(--fs-xs)/1 var(--ff-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass-lit);
  text-align: center;
}
.hero h1 {
  font-size: var(--fs-hero);
  color: #fff;
  line-height: .94;
  letter-spacing: -.03em;
  max-width: 18ch;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
}
.hero h1 em { font-style: italic; color: var(--brass-lit); }
.hero__foot {
  display: grid;
  gap: 1.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule-dark);
  align-items: end;
}
@media (min-width: 860px) {
  .hero__foot { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; }
}
.hero__foot p { color: #fff; font-size: var(--fs-sm); max-width: 46ch; }
.hero__cta { display: flex; gap: .7rem; flex-wrap: wrap; }

.hero__strip {
  position: relative;
  background: var(--ink-900);
  border-top: 1px solid var(--rule-dark);
  color: #fff;
  padding-block: 1.1rem;
  overflow: hidden;
}
.hero__strip ul {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hero__strip li {
  font: 500 var(--fs-xs)/1 var(--ff-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  gap: 4rem;
}
.hero__strip li::after { content: "\2022"; color: var(--brass-lit); }
@media (prefers-reduced-motion: reduce) {
  .hero__strip ul { animation: none; }
  .hero__slide { animation: none; }
  .hero__slide--1 { opacity: 1; }
}

/* --- 8. Stats ----------------------------------------------------------- */
.stats {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, 1fr); } }
/* single-stat band: one figure carrying a point, not a row of four */
.stats--solo { grid-template-columns: minmax(0, 1fr); max-width: 44rem; }
.stat { background: var(--bone); padding: clamp(1.4rem, 1rem + 1.4vw, 2.4rem); }
.stat__v {
  font-family: var(--ff-display);
  font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.9rem);
  color: var(--t-hi);
  line-height: 1;
  letter-spacing: -.03em;
  display: flex;
  align-items: baseline;
  gap: .25rem;
}
.stat__v sup { font-size: .42em; color: var(--laurel); top: -.9em; }
.stat__k {
  margin-top: .9rem;
  font: 500 var(--fs-xs)/1.4 var(--ff-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--t-mute);
}

/* --- 9. Figure --------------------------------------------------------- */
.figure { position: relative; overflow: hidden; background: var(--ink-800); }
.split {
  display: grid;
  gap: clamp(1.8rem, 1rem + 3vw, 4.5rem);
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .split--wide-right { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}
.split__body > * + * { margin-top: 1.1rem; }
.split__sticky { position: sticky; top: 7rem; }
/* once the split collapses to a single column the sticky panel has nothing to
   sit beside, so it would pin itself and let the rest of the copy scroll over
   it. Release it below the two-column breakpoint. */
@media (max-width: 899px) {
  .split__sticky { position: static; top: auto; }
}

.figure { position: relative; overflow: hidden; background: var(--ink-800); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: .8rem 1rem;
  background: rgba(11, 19, 28, .82);
  color: #fff;
  font: 500 var(--fs-xs)/1.4 var(--ff-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.figure--tall img { aspect-ratio: 4 / 5; }
.figure--wide img { aspect-ratio: 16 / 10; }
/* sized to sit beside a column of body copy rather than tower over it */
.figure--fit img { aspect-ratio: 5 / 4; }
@media (max-width: 900px) { .figure--fit img { aspect-ratio: 16 / 11; } }

/* --- 10. Numbered capability list --------------------------------------- */
.caps { border-top: 1px solid var(--rule); }
.cap {
  display: grid;
  gap: .6rem 1.5rem;
  padding-block: clamp(1.5rem, 1rem + 1.6vw, 2.6rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background .3s var(--ease);
}
@media (min-width: 860px) {
  .cap { grid-template-columns: 3.5rem minmax(0, .9fr) minmax(0, 1.4fr) auto; align-items: start; }
}
.cap:hover { background: rgba(11, 31, 63, .035); }
.cap h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.95rem); }
.cap p { color: var(--t-mute); font-size: var(--fs-sm); }
.cap .num { padding-top: .45rem; }
.cap__go {
  align-self: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  color: var(--laurel);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.cap:hover .cap__go { background: var(--laurel); color: #fff; transform: translateX(3px); }
.sec--dark .cap { border-color: var(--rule-dark); }
.sec--dark .cap .num { color: var(--laurel-pale); }
.sec--dark .cap p { color: var(--t-on-dark-mute); }
.sec--dark .cap__go { border-color: var(--rule-dark); color: var(--brass-lit); }
.sec--dark .cap:hover .cap__go { background: var(--brass); color: #fff; }
.sec--dark .caps { border-color: var(--rule-dark); }

/* --- 11. Cards (sectors / principles) ----------------------------------- */
.grid { display: grid; gap: clamp(1rem, .6rem + 1.2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

/* three-up grid where a short final row stays centred rather than orphaned left */
.grid--3c { display: flex; flex-wrap: wrap; justify-content: center; }
.grid--3c > * { flex: 0 1 calc((100% - 2 * clamp(1rem, .6rem + 1.2vw, 1.75rem)) / 3); }
@media (max-width: 1000px) { .grid--3c > * { flex-basis: calc((100% - clamp(1rem, .6rem + 1.2vw, 1.75rem)) / 2); } }
@media (max-width: 640px) { .grid--3c > * { flex-basis: 100%; } }

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  position: relative;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(11, 31, 63, .45); box-shadow: 0 24px 50px -34px rgba(11, 19, 28, .5); }
.card p { font-size: var(--fs-sm); color: var(--t-mute); }
.card__i {
  font: 500 var(--fs-xs)/1 var(--ff-mono);
  letter-spacing: .16em;
  color: var(--laurel);
}
.card--dark { background: var(--ink-800); border-color: var(--rule-dark); }
.card--dark p { color: var(--t-on-dark-mute); }
.card--dark:hover { border-color: rgba(216, 169, 75, .5); }
.card--dark .card__i { color: var(--brass-lit); }
.card--dark h3 { color: #fff; }
.sec--dark .card:not(.card--dark) h3 { color: var(--t-hi); }
.sec--dark .card:not(.card--dark) p { color: var(--t-mute); }
.sec--dark .card:not(.card--dark) .card__i { color: var(--laurel); }

.card--sector { min-height: 15rem; justify-content: space-between; }
.card--sector ul { display: grid; gap: .3rem; margin-top: .4rem; }
.card--sector li {
  font: 500 var(--fs-xs)/1.5 var(--ff-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--t-mute);
  padding-left: 1rem;
  position: relative;
}
.card--sector li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 1px; background: var(--laurel); }

/* --- 12. Offices -------------------------------------------------------- */
.offices { display: grid; gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); }
@media (min-width: 800px) { .offices { grid-template-columns: repeat(3, 1fr); } }
.office { background: var(--ink-900); padding: clamp(1.5rem, 1rem + 1.6vw, 2.6rem); display: grid; gap: .7rem; align-content: start; }
.office h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); }
.office__cc { font: 500 var(--fs-xs)/1 var(--ff-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-lit); }
.office p { font-size: var(--fs-sm); color: var(--t-on-dark-mute); }
.office address { font-style: normal; font-size: var(--fs-sm); color: var(--t-on-dark-mute); }
.office .role {
  margin-top: .4rem;
  padding-top: .9rem;
  border-top: 1px solid var(--rule-dark);
  font-size: var(--fs-sm);
  color: #fff;
}

/* offices as photo cards */
.office--card { background: var(--ink-800); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.office--card .office__media { aspect-ratio: 16 / 11; overflow: hidden; background: var(--ink-700); }
.office--card .office__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.03); transition: transform .8s var(--ease); }
.office--card:hover .office__media img { transform: scale(1.04); }
.office--card .office__body { padding: clamp(1.3rem, 1rem + 1.2vw, 2rem); display: grid; gap: .55rem; align-content: start; }
.office--card h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); color: #fff; }
.office--card .role { margin-top: .3rem; }

/* --- 12b. Practices dossier (sector expertise) --------------------------- */
:root { --apj-green: #027252; }

.practices {
  display: grid;
  border: 1px solid var(--rule);
  background: var(--white);
}
@media (min-width: 960px) {
  .practices { grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); }
}

/* left index rail */
.practices__rail {
  border-bottom: 1px solid var(--rule);
  background: var(--bone);
  display: flex;
  flex-direction: column;
}
@media (min-width: 960px) {
  .practices__rail { border-bottom: 0; border-right: 1px solid var(--rule); }
}
.practices__rail-label {
  font: 500 var(--fs-xs)/1 var(--ff-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--t-mute);
  padding: 1.4rem 1.5rem 1rem;
}
.practice-tab {
  appearance: none;
  background: none;
  border: 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
  text-align: left;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  padding: clamp(1rem, .7rem + .9vw, 1.5rem) 1.5rem;
  color: var(--t-hi);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.practice-tab + .practice-tab { border-top: 1px solid var(--rule); }
.practice-tab__num {
  font: 500 var(--fs-xs)/1 var(--ff-mono);
  letter-spacing: .14em;
  color: var(--t-mute);
  transition: color .3s var(--ease);
}
.practice-tab__name {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 1rem + .9vw, 1.7rem);
  line-height: 1.15;
  transition: transform .3s var(--ease);
}
.practice-tab__go {
  font: 500 var(--fs-xs)/1 var(--ff-mono);
  color: var(--t-mute);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.practice-tab:hover { background: rgba(2, 114, 82, .06); }
.practice-tab:hover .practice-tab__go { opacity: 1; transform: translateX(0); }
.practice-tab[aria-selected="true"] {
  background: var(--ink-900);
  color: #fff;
}
.practice-tab[aria-selected="true"] .practice-tab__num,
.practice-tab[aria-selected="true"] .practice-tab__go {
  color: var(--apj-green);
  opacity: 1;
  transform: none;
}
.practice-tab[aria-selected="true"] .practice-tab__name { transform: translateX(4px); }

/* right detail panel */
.practices__panel {
  position: relative;
  padding: clamp(1.8rem, 1.2rem + 2.4vw, 3.5rem);
  display: grid;
  gap: 1.4rem;
  align-content: start;
  overflow: hidden;
}
.practice-panel { display: none; }
.practice-panel.is-active {
  display: grid;
  gap: 1.4rem;
  align-content: start;
  animation: practice-in .5s var(--ease) .12s backwards;
}
/* outgoing panel overlays while the new one fades in — a true crossfade */
.practice-panel.is-leaving {
  display: grid;
  gap: 1.4rem;
  align-content: start;
  position: absolute;
  inset: clamp(1.8rem, 1.2rem + 2.4vw, 3.5rem) clamp(1.8rem, 1.2rem + 2.4vw, 3.5rem) auto;
  pointer-events: none;
  animation: practice-out .3s var(--ease) forwards;
}
@keyframes practice-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes practice-out {
  to { opacity: 0; transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .practice-panel.is-active,
  .practice-panel.is-leaving { animation: none; }
}
.practice-panel__ghost {
  position: absolute;
  top: -.18em;
  right: -.04em;
  font: 600 clamp(9rem, 5rem + 16vw, 20rem)/1 var(--ff-display);
  color: rgba(2, 114, 82, .08);
  pointer-events: none;
  user-select: none;
}
.practice-panel__num {
  font: 500 var(--fs-xs)/1 var(--ff-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--apj-green);
}
.practice-panel h3 {
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.9rem);
  max-width: 16ch;
}
/* small, quiet tag list — sits below the description */
.practice-panel__tags { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: 0; list-style: none; }
.practice-panel__tags li {
  font: 500 .68rem/1.6 var(--ff-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--t-mute);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.practice-panel__tags li::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--apj-green);
  opacity: .55;
}

/* one shared CTA for the whole section instead of one per panel */
.practices__cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  width: fit-content;
  margin-top: 1.6rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--apj-green);
  font: 500 var(--fs-xs)/1 var(--ff-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t-hi);
  text-decoration: none;
}
.practices__cta .arr { color: var(--apj-green); transition: transform .3s var(--ease); }
.practices__cta:hover .arr { transform: translateX(5px); }
@media (max-width: 959px) {
  .practices__cta { margin-top: 1.4rem; }
}

/* accordion toggle — mobile only */
.practice-panel__toggle { display: none; }
.practice-panel__inner { display: contents; }
.practice-panel p {
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: var(--t-body);
  max-width: 58ch;
}
.practice-panel__link {
  font: 500 var(--fs-xs)/1 var(--ff-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t-hi);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  width: fit-content;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--apj-green);
}
.practice-panel__link .arr { transition: transform .3s var(--ease); color: var(--apj-green); }
.practice-panel__link:hover .arr { transform: translateX(5px); }

/* --- mobile: accordion ---------------------------------------------------- */
@media (max-width: 959px) {
  .practices { border: 0; background: none; }

  /* hide the tab rail entirely — the accordion lives in the panels */
  .practices__rail,
  .practices__rail-label { display: none; }

  .practices__panel {
    display: block;
    padding: 0;
    border-top: 1px solid var(--rule);
  }
  .practice-panel { display: block; border-bottom: 1px solid var(--rule); }
  .practice-panel.is-active { display: block; }

  .practice-panel__toggle {
    display: grid;
    width: 100%;
    appearance: none;
    background: none;
    border: 0;
    border-top: 0;
    cursor: pointer;
    grid-template-columns: 2.2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    padding: 1.15rem .2rem;
    text-align: left;
    color: var(--t-hi);
    font: inherit;
  }
  .practice-panel__toggle-num {
    font: 500 var(--fs-xs)/1 var(--ff-mono);
    letter-spacing: .14em;
    color: var(--t-mute);
    transition: color .3s var(--ease);
  }
  .practice-panel__toggle-name {
    font-family: var(--ff-display);
    font-size: 1.2rem;
    line-height: 1.2;
    transition: color .3s var(--ease);
  }
  .practice-panel__toggle-chev {
    font: 300 1.5rem/1 var(--ff-text);
    color: var(--t-mute);
    transition: transform .35s var(--ease), color .3s var(--ease);
  }
  .practice-panel.is-active .practice-panel__toggle-num,
  .practice-panel.is-active .practice-panel__toggle-name { color: var(--apj-green); }
  .practice-panel.is-active .practice-panel__toggle-chev {
    transform: rotate(45deg);
    color: var(--apj-green);
  }

  /* smooth accordion: animate grid-template-rows 0fr -> 1fr (no JS height math) */
  .practice-panel:not(.is-active) .practice-panel__inner { display: none; }
  .practice-panel__inner {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
      grid-template-rows .45s var(--ease),
      opacity .35s var(--ease);
    will-change: grid-template-rows;
  }
  .practice-panel.is-active.is-open .practice-panel__inner {
    grid-template-rows: 1fr;
    opacity: 1;
  }
  .practice-panel__content {
    min-height: 0;
    overflow: hidden;
    display: grid;
    gap: 1rem;
    align-content: start;
    padding: .1rem .2rem 1.6rem;
  }

  .practice-panel__ghost { display: none; }
  .practice-panel h3 { font-size: 1.45rem; max-width: none; }
  .practice-panel p { font-size: 1rem; }
  .practice-panel__link { padding: .45rem 0; }
}

/* --- 13. Engagement table ----------------------------------------------- */
.eng { border-top: 1px solid var(--rule); }
.eng__row { border-bottom: 1px solid var(--rule); }
.eng__btn {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  display: grid;
  gap: .35rem 1.5rem;
  padding-block: clamp(1.1rem, .8rem + 1vw, 1.7rem);
  text-align: left;
  align-items: center;
}
@media (min-width: 860px) {
  .eng__btn { grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.35fr) 2.5rem; }
}
.eng__btn h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.5rem); }
.eng__btn .hint { font-size: var(--fs-sm); color: var(--t-mute); }
.eng__btn .num { color: var(--laurel); }
.eng__sign {
  justify-self: end;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  flex: none;
}
.eng__btn[aria-expanded="true"] .eng__sign { background: var(--laurel); color: #fff; transform: rotate(45deg); border-color: var(--laurel); }
.eng__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.eng__panel[data-open="true"] { grid-template-rows: 1fr; }
.eng__panel > div { overflow: hidden; }
.eng__panel p {
  padding: 0 0 clamp(1.2rem, 1rem + .8vw, 1.9rem) calc(3.5rem + 1.5rem);
  color: var(--t-body);
  max-width: 76ch;
}
@media (max-width: 859px) { .eng__panel p { padding-left: 0; } }
.eng__tag {
  display: block;
  width: fit-content;
  margin: 0 0 .6rem;
  font: 500 var(--fs-xs)/1 var(--ff-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
}

/* --- 14. At-a-glance table ---------------------------------------------- */
.glance { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.glance th, .glance td { text-align: left; padding: 1.05rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.glance th {
  font: 500 var(--fs-xs)/1.3 var(--ff-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--laurel);
  width: 34%;
}
@media (max-width: 640px) {
  .glance th, .glance td { display: block; width: auto; }
  .glance th { padding-bottom: .35rem; border-bottom: 0; }
  .glance td { padding-top: 0; }
  .glance tr { display: block; border-bottom: 1px solid var(--rule); padding-block: .8rem; }
  .glance tr:last-child { border-bottom: 0; }
}
.sec--dark .glance th, .sec--dark .glance td { border-color: var(--rule-dark); }
.sec--dark .glance th { color: var(--brass-lit); }
.sec--dark .glance td { color: var(--t-on-dark-mute); }

/* --- 15. Process steps -------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--bone); padding: clamp(1.4rem, 1.1rem + 1vw, 2.2rem); display: grid; gap: .8rem; align-content: start; }
.step h3 { font-size: 1.25rem; }
.sec--dark .step h3 { color: var(--ink-700); }
.step p { font-size: var(--fs-sm); color: var(--t-mute); }
.step__n { font: 500 var(--fs-xs)/1 var(--ff-mono); letter-spacing: .16em; color: var(--laurel); }

/* --- 16. Quote ---------------------------------------------------------- */
.quote { text-align: center; max-width: min(100%, 46rem); margin-inline: auto; }
.quote p {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3.2rem);
  line-height: 1.14;
  letter-spacing: -.022em;
  color: var(--t-hi);
  max-width: none;
}
.quote cite {
  display: block;
  margin-top: 1.6rem;
  font: 500 var(--fs-xs)/1.5 var(--ff-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t-mute);
  font-style: normal;
}
.sec--dark .quote p { color: #fff; }

/* --- 17. CTA band ------------------------------------------------------- */
.cta { background: var(--ink-900); color: #fff; position: relative; overflow: hidden; padding-block: clamp(2.75rem, 1.5rem + 4vw, 6rem) clamp(1.5rem, 1rem + 1.4vw, 2.5rem); }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 120% at 88% 0%, rgba(11, 31, 63, .5), transparent 60%);
}
.cta .shell { position: relative; display: grid; gap: 1.6rem; }
@media (min-width: 900px) {
  .cta .shell { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 3rem; }
}
.cta h2 { color: #fff; }
.cta p { color: var(--t-on-dark-mute); }
.cta__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* --- 18. Page head (interior) ------------------------------------------ */
.pagehead {
  background: var(--ink-900);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 7vw, 7.5rem);
}
.pagehead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 100% at 90% 0%, rgba(11, 31, 63, .34), transparent 62%);
  pointer-events: none;
}
/* pagehead with a media (hero image/SVG) layer behind the text */
.pagehead--media::after {
  background:
    radial-gradient(80% 100% at 90% 0%, rgba(11, 31, 63, .34), transparent 62%),
    linear-gradient(180deg, rgba(11, 19, 28, .55) 0%, rgba(11, 19, 28, .35) 50%, rgba(11, 19, 28, .8) 100%);
}
.pagehead__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .85;
  pointer-events: none;
}
/* Keep all three office markers (SF / Amman / Joburg) visible: on narrow
   screens "cover" would crop the sides of the wide map, so switch to contain. */
@media (max-width: 760px) {
  .pagehead__bg { object-fit: contain; object-position: center; }
}
/* decorative animated-SVG strip below a page head */
.deco-strip {
  display: flex;
  justify-content: center;
  padding-block: 2.5rem;
}
.deco-strip img, .deco-strip svg { width: min(340px, 78vw); height: auto; opacity: .95; }
/* inline placement: SVG sits within an existing column/row, not as its own band */
.deco-strip--inline {
  padding: 0;
  margin: 0;
}
.deco-strip--inline img, .deco-strip--inline svg { width: min(220px, 48vw); height: auto; display: block; }
/* top-of-section placement: larger, centered, breathing room below */
.deco-strip--top {
  padding: 0 0 2.25rem;
}
.deco-strip--top img, .deco-strip--top svg {
  width: min(520px, 86vw);
  height: auto;
  display: block;
}
.split .deco-strip--inline { justify-content: flex-end; }
/* experience: stat + chart side by side */
/* experience: stat + chart side by side */
.stat-flex { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.stat-flex .stat { flex: 1 1 22rem; }
.stat-flex .deco-strip--inline { flex: 1 1 16rem; }
.stat-flex .deco-strip--inline img {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 680 / 300;
  object-fit: contain;
  display: block;
}
@media (max-width: 760px) {
  .deco-strip--inline { justify-content: center; padding-top: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .deco-strip svg * { animation: none !important; }
  .deco-strip svg .line, .deco-strip svg .arc, .deco-strip svg .glint,
  .deco-strip svg .bar { stroke-dashoffset: 0 !important; transform: none !important; }
  .deco-strip svg .dot, .deco-strip svg .val,
  .deco-strip svg .core, .deco-strip svg .lbl { opacity: 1 !important; }
  .deco-strip svg .curve { stroke-dashoffset: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .pagehead__bg { opacity: .6; }
}
.pagehead .shell { position: relative; z-index: 1; display: grid; gap: 1.4rem; }
.pagehead h1 { color: #fff; max-width: 16ch; }
.pagehead p { color: var(--t-on-dark-mute); max-width: 60ch; }
.crumbs { display: flex; gap: .6rem; font: 500 var(--fs-xs)/1 var(--ff-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t-on-dark-mute); }
.crumbs a:hover { color: #fff; }
.crumbs span { color: var(--brass-lit); }

/* --- 19. Breadcrumb band / subnav ------------------------------------- */
.subnav { background: var(--bone-2); border-bottom: 1px solid var(--rule); position: sticky; top: 74px; z-index: 60; }
.subnav ul {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.4rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav li { flex: none; }
.subnav a {
  display: block;
  padding: 1rem 0;
  font: 500 var(--fs-sm)/1 var(--ff-text);
  color: var(--t-mute);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.subnav a:hover { color: var(--t-hi); }
.subnav a[aria-current="page"] { color: var(--ink-900); border-color: var(--laurel); }
.subnav::-webkit-scrollbar { display: none; }

/* swipe arrows: injected by JS, shown only when the chip row overflows */
.subnav .shell { display: flex; align-items: stretch; gap: .25rem; }
.subnav ul { min-width: 0; flex: 1; }
.subnav__arrow {
  display: none;
  flex: none;
  align-self: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--bone);
  color: var(--t-body);
  font: 500 1rem/1 var(--ff-text);
  cursor: pointer;
  transition: opacity .2s, color .15s, border-color .15s;
}
.subnav__arrow:hover { color: var(--t-hi); border-color: var(--laurel); }
@media (max-width: 1080px) {
  .subnav.has-arrows .subnav__arrow { display: block; }
}
.subnav__arrow.is-off { opacity: .25; pointer-events: none; }

/* --- 20. Prose ---------------------------------------------------------- */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; }
.prose a { color: var(--laurel); border-bottom: 1px solid currentColor; }
.prose ul { display: grid; gap: .65rem; }
.prose ul li { padding-left: 1.4rem; position: relative; }
.prose ul li::before,
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 1px;
  background: var(--laurel);
}

.keylist { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.keylist li { background: var(--bone); padding: 1.1rem 1.2rem; display: grid; gap: .3rem; }
.keylist b { font-family: var(--ff-display); font-weight: 500; font-size: 1.05rem; color: var(--t-hi); }
.keylist span { font-size: var(--fs-sm); color: var(--t-mute); }

/* --- 20b. Compact engagement preview ------------------------------------ */
.mini { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.mini li {
  background: var(--bone);
  padding: 1.15rem 1.25rem;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1fr);
  gap: .4rem 1rem;
  align-items: baseline;
}
.mini li p { font-size: var(--fs-sm); color: var(--t-mute); }
.mini li .num { color: var(--laurel); }
@media (max-width: 620px) {
  .mini li { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .mini li p { grid-column: 2; }
}

/* --- 21. Form ----------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label {
  font: 500 var(--fs-xs)/1 var(--ff-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t-mute);
}
.field .req { color: var(--brass); }
.field input, .field select, .field textarea {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: .9rem 1rem;
  font-size: var(--fs-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--laurel);
  box-shadow: 0 0 0 3px rgba(11, 31, 63, .12);
}
.field textarea { min-height: 150px; resize: vertical; }
.field--err input, .field--err select, .field--err textarea { border-color: #b3392f; }
.field__msg { font-size: var(--fs-xs); color: #b3392f; min-height: 1em; }
.form__note { font-size: var(--fs-xs); color: var(--t-mute); }
.form__status {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--laurel);
  background: rgba(11, 31, 63, .07);
  font-size: var(--fs-sm);
  color: var(--ink-800);
}
.form__status[hidden] { display: none; }

/* --- 22. Footer --------------------------------------------------------- */
.footer { background: var(--ink-900); color: var(--t-on-dark-mute); padding-block: clamp(1.5rem, 1.1rem + 1.2vw, 2.5rem) 1.1rem; font-size: var(--fs-sm); }
/* the last section before the footer carries a reduced bottom pad so the two
   dark surfaces read as one block instead of two slabs with dead space between */
main > .sec:last-child { padding-bottom: clamp(1.5rem, 1rem + 1.4vw, 2.75rem); }
.footer__grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 3rem); }
@media (min-width: 800px) { .footer__grid { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); } }
.footer img { width: 172px; }
.footer h4 {
  font: 500 var(--fs-xs)/1 var(--ff-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer ul { display: grid; gap: .55rem; }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; display: grid; gap: .2rem; }
.footer__bar {
  margin-top: clamp(1.25rem, .8rem + 1.4vw, 2.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-dark);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .7rem 1.5rem;
  font-size: var(--fs-xs);
}
.footer__bar p { font-size: var(--fs-xs); max-width: none; }
.footer__copy { grid-area: 1 / 1; justify-self: start; }
.footer__tagline { grid-area: 1 / 3; justify-self: end; text-align: right; }
.footer__powered {
  grid-area: 1 / 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.footer__powered-label {
  font: 500 var(--fs-xs)/1 var(--ff-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(232, 237, 240, .45);
}
.footer__credit {
  display: block;
  color: rgba(232, 237, 240, .62);
  transition: color .3s var(--ease), filter .3s var(--ease);
}
.footer__credit svg { width: clamp(132px, 12.5vw, 200px); height: auto; display: block; }
/* the generic `.footer a:hover { color: #fff }` rule outranks a plain class
   selector, so the credit is targeted with the anchor to keep its emerald state */
.footer a.footer__credit:hover,
.footer a.footer__credit:focus-visible {
  color: #34d399;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, .95))
          drop-shadow(0 0 16px rgba(16, 185, 129, .5));
}

/* stacked order on phones: copyright, then the tagline, then the credit */
@media (max-width: 720px) {
  .footer__bar { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__copy { grid-area: auto; justify-self: center; }
  .footer__tagline { grid-area: auto; justify-self: center; text-align: center; }
  .footer__powered { grid-area: auto; justify-self: center; order: 3; }
  .footer__credit svg { width: 152px; }
}

/* --- 23. Reveal animation ---------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s cubic-bezier(.16, .84, .34, 1),
              transform .5s cubic-bezier(.16, .84, .34, 1);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- 24. Footer signature ----------------------------------------------- */
/* the closing brand plate: full-width hairline, one optically centred line of
   grotesk, and a quiet mono strapline. Tonal only, no effects. */
.footer__mark {
  max-width: none;
  margin: clamp(2rem, 1.2rem + 2.6vw, 3.5rem) 0 clamp(.75rem, .5rem + 1.2vw, 1.75rem);
  padding-top: clamp(1.5rem, 1rem + 2vw, 3rem);
  border-top: 1px solid var(--rule-dark);
  text-align: center;
}
.footer__mark-line {
  max-width: none;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .26em;
  margin: 0;
  font-family: "Neue Haas Grotesk Display Pro", "Neue Haas Grotesk Text Pro",
               "Neue Haas Grotesk", "Inter", system-ui, -apple-system,
               "Segoe UI", sans-serif;
  font-size: clamp(3.4rem, 0.2rem + 12.6vw, 13.5rem);
  line-height: .88;
  letter-spacing: -.05em;
  white-space: nowrap;
  color: var(--brass-lit);
  background: linear-gradient(172deg, #e8c274 0%, #cfa13b 46%, #ab7c24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer__mark-line b { font-weight: 600; }
.footer__mark-line span { font-weight: 400; }
.footer__mark-sub {
  max-width: none;
  margin: clamp(.9rem, .6rem + 1vw, 1.6rem) 0 0;
  font: 500 clamp(.6rem, .52rem + .2vw, .7rem)/1.5 var(--ff-mono);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(232, 237, 240, .45);
  text-wrap: balance;
}
/* keep the strapline on a single line on narrow phones */
@media (max-width: 520px) {
  .footer__mark-sub { font-size: .555rem; letter-spacing: .14em; }
}

/* --- 25. Mobile ergonomics --------------------------------------------- */
/* form controls at 16px so iOS Safari does not zoom the viewport on focus */
@media (max-width: 720px) {
  .field input, .field select, .field textarea { font-size: 1rem; min-height: 48px; }
  .field textarea { min-height: 130px; }

  /* comfortable tap targets in the footer and for inline text links */
  .footer ul { gap: .15rem; }
  .footer ul a { display: inline-block; padding-block: .5rem; }
  .link-arrow { padding-block: .35rem; }
  .prose a { padding-block: .15rem; }

  /* masthead and sub-nav hit areas */
  .masthead__in { min-height: 84px; }
  .burger { width: 44px; height: 44px; }
  .burger span:nth-child(1) { top: 15px; }
  .burger span:nth-child(2) { top: 20.5px; }
  .burger span:nth-child(3) { top: 26px; }
  .subnav a { padding: 1.05rem 0; }
  .subnav { top: 64px; }
  html { scroll-padding-top: 5.5rem; }

  /* the hero should not eat a whole scroll on short phones */
  .hero { min-height: auto; }
  .eng__btn { padding-block: 1.35rem; }
  .eng__sign { width: 40px; height: 40px; }
  .card { padding: 1.25rem; }
  .office--card .office__body { padding: 1.25rem; }
  .glance th, .glance td { padding: .8rem .25rem; }
  .form__row { gap: .9rem; }

  /* engagement rows: number, title, hint and the toggle on one tidy grid */
  .eng__btn {
    grid-template-columns: 2.4rem minmax(0, 1fr) 40px;
    column-gap: .9rem;
    row-gap: .2rem;
    align-items: center;
  }
  .eng__btn .num { grid-area: 1 / 1; padding-top: 0; }
  .eng__btn h3 { grid-area: 1 / 2; }
  .eng__btn .hint { grid-area: 2 / 2; }
  .eng__sign { grid-area: 1 / 3 / span 2; justify-self: end; align-self: center; }

  /* sub-nav becomes swipeable pill chips: one tidy row, no ragged wrapping */
  .subnav { top: 63px; padding-block: .55rem; }
  .subnav ul {
    flex-wrap: nowrap;
    gap: .5rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, transparent 0, #000 .9rem, #000 calc(100% - .9rem), transparent 100%);
  }
  .subnav li { scroll-snap-align: start; }
  .subnav a {
    padding: .5rem .85rem;
    font-size: .8125rem;
    white-space: nowrap;
    border: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--bone);
    color: var(--t-body);
  }
  .subnav a[aria-current="page"] {
    border-color: var(--laurel);
    background: var(--laurel);
    color: #fff;
  }
}

/* tablets: same chip row, slightly larger touch targets */
@media (min-width: 721px) and (max-width: 1080px) {
  .subnav ul {
    flex-wrap: nowrap;
    gap: .5rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, transparent 0, #000 .9rem, #000 calc(100% - .9rem), transparent 100%);
  }
  .subnav li { scroll-snap-align: start; }
  .subnav a {
    padding: .55rem 1rem;
    font-size: .875rem;
    white-space: nowrap;
    border: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--bone);
    color: var(--t-body);
  }
  .subnav a[aria-current="page"] {
    border-color: var(--laurel);
    background: var(--laurel);
    color: #fff;
  }
}

/* --- 26. Utilities ------------------------------------------------------ */
.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;
}
.center { text-align: center; }
.mt-l { margin-top: clamp(2rem, 1.2rem + 2vw, 3.5rem); }
.mt-m { margin-top: 1.5rem; }
.stack-sm > * + * { margin-top: .6rem; }
.stack > * + * { margin-top: 1.2rem; }

/* --- 27. Pillar cards ----------------------------------------------------- */
/* Three-up home cards with a full-width action bar. Cards sit on real gaps
   rather than the 1px hairline technique used elsewhere on the site. */
.pcards {
  display: grid;
  gap: clamp(1rem, .6rem + 1.2vw, 1.75rem);
  /* keep the cards from ballooning on very wide displays */
  max-width: 74rem;
  margin-inline: auto;
}
@media (min-width: 800px) { .pcards { grid-template-columns: repeat(3, 1fr); } }

.pcard {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(11, 31, 58, .08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}
.pcard:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 31, 63, .45);
  box-shadow: 0 24px 50px -34px rgba(11, 19, 28, .5);
}

/* The three source images are square, so a square frame lets them fill the
   area edge-to-edge and sit dead-centre with no visible bars. */
.pcard__media {
  /* no fixed ratio: the frame adapts to the image's own proportions */
  line-height: 0;
  background: #0b1f3a; /* matches the navy backdrop baked into the images */
}
.pcard__media img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  filter: grayscale(.2) contrast(1.02);
  transition: transform .8s var(--ease);
}
.pcard:hover .pcard__media img { transform: scale(1.04); }

/* Pillar number: a gold badge overlapping the image's bottom edge. */
.pcard__body .card__i {
  width: 2.7rem;
  height: 2.7rem;
  margin: -1.35rem auto 0; /* pulls it up over the image edge */
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(184, 134, 43, .45);
  color: var(--brass);
  font: 600 1rem/1 var(--ff-mono);
  box-shadow: 0 4px 12px rgba(11, 31, 58, .14);
}

.pcard__body {
  padding: clamp(1.4rem, 1.1rem + 1vw, 2.1rem);
  padding-top: 1.1rem;
  display: grid;
  gap: .9rem;
}
.pcard__body h3 {
  font-size: clamp(1.25rem, 1.05rem + .75vw, 1.65rem);
}
.pcard__body p:not(.card__i) {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5568;
  /* clamp body copy to a maximum of two lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA: the original full-width action bar. */
.pcard__more {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  width: 100%;
  padding: 1.05rem clamp(1.4rem, 1.1rem + 1vw, 2.1rem);
  background: var(--laurel);
  color: #fff;
  font: 500 var(--fs-xs)/1 var(--ff-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: left;
  border: 0;
  cursor: pointer;
  transition: background .25s var(--ease);
}
.pcard__more .arrow { transition: transform .3s var(--ease); }
.pcard__more:hover { background: var(--laurel-lit); }
.pcard__more:hover .arrow { transform: translateX(4px); }

/* --- 28. Pillar modal ----------------------------------------------------- */
/* `showModal()` centres a dialog horizontally but not vertically once a
   max-height is in play, so centre it explicitly in the viewport. */
.pmodal {
  padding: 0;
  border: 0;
  background: transparent;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(100% - 2rem, 62rem);
  max-width: none;
  height: fit-content;
  max-height: 88vh;
  overflow: visible;
  color: var(--t-body);
}
.pmodal::backdrop { background: rgba(11, 19, 28, .78); }

.pmodal__panel {
  position: relative;
  background: var(--white);
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .pmodal__panel { grid-template-columns: minmax(0, 1fr); }
}

/* the image column is the panel background on wide layouts, so it must not
   collapse behind the scrolling text column. Images are letterboxed rather
   than cropped, matching the cards. */
.pmodal__media {
  background: var(--bone-2);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(1rem, .6rem + 1.4vw, 2rem);
}
.pmodal__media img { width: 100%; height: 100%; object-fit: contain; }

.pmodal__body { padding: clamp(1.6rem, 1.1rem + 2vw, 3.2rem); }
.pmodal__body h2 { font-size: var(--fs-h2); }
.pmodal__body .prose { max-width: none; }
.pmodal__body .prose li { margin-bottom: .7rem; }

.pmodal__close {
  /* anchored to the dialog, not the panel: the panel is the scroll container,
     so a button inside it would scroll out of reach on long content */
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 3;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  background: var(--ink-900);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background .25s var(--ease);
}
.pmodal__close:hover { background: var(--laurel); }

@media (prefers-reduced-motion: no-preference) {
  /* animate the panel, never the dialog itself: the dialog's layout box has
     to stay exactly centred in the viewport at every frame, and a transform
     on it would offset the modal while the animation runs */
  .pmodal__panel { animation: pmodal-in .32s var(--ease); }
  .pmodal[open]::backdrop { animation: pmodal-fade .32s var(--ease); }
  @keyframes pmodal-in {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: none; }
  }
  @keyframes pmodal-fade { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 759px) {
  .pmodal__media { aspect-ratio: 16 / 9; }
}