/* =====================================================================
   Agema website · shared stylesheet
   Built on the Agema Design System tokens (navy + brass, Jost + Source Sans 3).
   Layout: navy hero bands and navy closing bands frame white content
   sections on a 1200px measure; brass is used once per view for emphasis.
   The site deliberately commits to one (light + navy) look, so there is
   no dark-mode variant: every colour below is set explicitly.
   ===================================================================== */

/* ---------- Fonts (self-hosted, from the design system) ---------- */
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Colour (Agema Design System) */
  --navy-950: #0e1b2c;
  --navy-900: #16283f;
  --navy-800: #1d3251;
  --navy-700: #28456b;
  --navy-300: #aebfd5;
  --navy-200: #d4deea;
  --navy-100: #e8eef5;
  --navy-50:  #f3f6fa;
  --gold-700: #8a6b34;   /* brass text on white (4.9:1) */
  --gold-500: #b68e4e;   /* brass fills, rules, CTA */
  --gold-600: #a07e41;   /* brass hover */
  --gold-400: #c8a673;   /* brass text on navy */
  --gray-800: #2b3340;
  --gray-600: #586173;
  --gray-400: #9aa2b0;
  --gray-200: #dee2e8;
  --gray-100: #f0f2f5;
  --gray-50:  #f7f8fa;
  --white:    #ffffff;

  --text-strong: var(--navy-900);
  --text-body:   var(--gray-800);
  --text-muted:  var(--gray-600);
  --on-navy:       rgba(255,255,255,0.94);
  --on-navy-muted: rgba(255,255,255,0.68);
  --line:          var(--gray-200);
  --line-on-navy:  rgba(255,255,255,0.14);

  /* Type */
  --font-brand: "Jost", "Century Gothic", "Futura", system-ui, sans-serif;
  --font-text:  "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-display: clamp(2.6rem, 1.4rem + 4.6vw, 4.75rem);
  --fs-h2:      clamp(2rem, 1.3rem + 2.4vw, 3.1rem);
  --fs-h3:      1.375rem;
  --fs-lead:    clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-label:   0.75rem;

  /* Space & shape */
  --container: 1200px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --section-y: clamp(48px, 2rem + 3vw, 84px);
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(22,40,63,0.06), 0 2px 6px -2px rgba(22,40,63,0.10);
  --shadow-md: 0 2px 4px rgba(22,40,63,0.05), 0 14px 32px -16px rgba(22,40,63,0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--text-strong); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(98,134,163,0.7); outline-offset: 3px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: calc(var(--container) + 40px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* Kicker: Jost uppercase with a brass rule, the design system's section opener */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-brand); font-weight: 500;
  font-size: var(--fs-label); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-700);
}
.kicker::before { content: ""; width: 32px; height: 2px; background: var(--gold-500); flex: none; }
.on-navy .kicker { color: var(--gold-400); }

.accent { color: var(--gold-700); }
.on-navy .accent { color: var(--gold-400); }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--gray-50); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { font-size: var(--fs-lead); color: var(--text-muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-family: var(--font-brand); font-weight: 500; font-size: 0.8125rem;
  letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .12s;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--brass { background: var(--gold-500); color: var(--navy-950); }
.btn--brass:hover { background: var(--gold-400); }
.btn--navy { background: var(--navy-900); color: var(--white); }
.btn--navy:hover { background: var(--navy-800); }
.btn--ghost-light { border-color: rgba(255,255,255,0.32); color: var(--white); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn--outline { border-color: var(--navy-300); color: var(--navy-900); }
.btn--outline:hover { border-color: var(--navy-900); background: var(--navy-50); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.75rem; }

/* ---------- Navigation ---------- */
body::before { /* paints the phone status-bar band in the nav colour */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--navy-950); z-index: 60;
}
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(14,27,44,0);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-solid, .nav.is-open { background: rgba(14,27,44,0.96); border-bottom-color: var(--line-on-navy); backdrop-filter: blur(8px); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__logo img { height: 22px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav__links a {
  position: relative; padding-block: 8px;
  font-family: var(--font-brand); font-weight: 500; font-size: 0.8125rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-navy-muted);
  transition: color .2s;
}
.nav__links a:hover { color: var(--white); }
.nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-500);
}
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28); background: transparent; color: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h)); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter-r) 24px var(--gutter-l);
    background: rgba(14,27,44,0.98); border-bottom: 1px solid var(--line-on-navy);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding-block: 16px; border-bottom: 1px solid var(--line-on-navy); font-size: 0.875rem; }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__links a[aria-current="page"] { color: var(--gold-400); }
  .nav__cta { margin: 20px 0 0; }
}

/* ---------- Hero (shared by every page) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-950);
  color: var(--on-navy);
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--nav-h) + clamp(56px, 8vw, 112px));
  padding-bottom: clamp(56px, 7vw, 104px);
  isolation: isolate;
}
/* Atmosphere: a soft navy light plus the Agema line motif */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(53,86,136,0.55), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(182,142,78,0.12), transparent 70%);
}
.hero__motif {
  position: absolute; z-index: -1; right: -8%; top: 4%;
  width: min(62vw, 900px); opacity: 0.16; pointer-events: none;
  filter: invert(1) brightness(1.4);
  mix-blend-mode: screen;
}
.hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; max-width: 880px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.22);
  font-family: var(--font-brand); font-weight: 500; font-size: var(--fs-label);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-navy);
}
.hero__badge::before {
  content: ""; width: 7px; height: 7px; background: var(--gold-500); transform: rotate(45deg); border-radius: 1px;
}
.hero h1 { color: var(--white); font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.03em; }
.hero h1 .accent { display: block; font-weight: 400; color: var(--gold-400); }
.hero__place {
  font-family: var(--font-brand); font-weight: 500; font-size: var(--fs-label);
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-400);
}
.hero__lead { font-size: var(--fs-lead); color: var(--on-navy-muted); max-width: 58ch; line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }

/* Ticker (home hero) */
.ticker {
  margin-top: clamp(56px, 7vw, 96px);
  border-block: 1px solid var(--line-on-navy);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker__group { display: flex; align-items: center; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 28px; padding: 18px 0 18px 28px;
  font-family: var(--font-brand); font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-navy-muted); white-space: nowrap;
}
.ticker__item::after { content: ""; width: 6px; height: 6px; background: var(--gold-500); transform: rotate(45deg); }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats (home) ---------- */
.stats { margin-top: 48px; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.stat { padding: 32px 24px 28px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat__value { margin: 0; font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem); font-weight: 600; color: var(--navy-900); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.stat__value sup, .stat__value small { font-size: 0.5em; color: var(--gold-700); font-weight: 600; margin-left: 2px; }
.stat__label { order: 2; font-family: var(--font-brand); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); line-height: 1.5; }
.footnote { margin-top: 16px; font-size: var(--fs-small); color: var(--text-muted); }
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3n+1) { border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 18px; }
  .stat:nth-child(3n+1) { border-left: 1px solid var(--line); }
  .stat:nth-child(2n+1) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Approach (home) ---------- */
.approach__top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.approach__top h2 { font-size: var(--fs-h2); margin-top: 18px; }
.approach__top p { font-size: var(--fs-lead); color: var(--text-muted); line-height: 1.7; }
.practices { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.practice {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 32px 30px 34px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.practice:hover { border-color: var(--navy-300); box-shadow: var(--shadow-md); }
.practice__label { font-family: var(--font-brand); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-700); }
.practice h3 { font-size: var(--fs-h3); }
.practice p { color: var(--text-muted); }
.practice ul { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 6px; }
.diamond-list li { position: relative; padding-left: 20px; font-size: 0.9375rem; color: var(--text-body); }
.diamond-list li::before { content: ""; position: absolute; left: 1px; top: 0.6em; width: 7px; height: 7px; background: var(--gold-500); transform: rotate(45deg); border-radius: 1px; }
@media (max-width: 900px) {
  .approach__top { grid-template-columns: 1fr; align-items: start; }
  .practices { grid-template-columns: 1fr; }
}

/* ---------- Deal cards (home + deals) ---------- */
.deals-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-brand); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-900); padding-bottom: 4px; border-bottom: 1px solid var(--gold-500);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

.deal-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.deal {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px 26px 24px; min-width: 0;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.deal:hover { border-color: var(--navy-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.deal__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: var(--r-pill); background: var(--navy-50); border: 1px solid var(--navy-100);
  font-family: var(--font-brand); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-800);
}
.tag::before { content: ""; width: 5px; height: 5px; background: var(--gold-500); transform: rotate(45deg); }
.deal__year { font-family: var(--font-brand); font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.deal__logo { height: 64px; display: flex; align-items: center; }
.deal__logo img { max-height: 48px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
.deal__logo--icon { gap: 14px; }
.deal__logo--icon img { height: 40px; width: 40px; padding: 8px; background: var(--navy-50); border-radius: var(--r-sm); }
.deal__logo--icon span { font-family: var(--font-brand); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.deal__logo--icon span svg { width: 13px; height: 13px; }
.deal__amount { font-size: 2.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--navy-900); font-variant-numeric: tabular-nums lining-nums; }
.deal__name { font-size: 1.125rem; font-weight: 700; color: var(--navy-900); margin-top: 6px; }
.deal__desc { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55; }
.deal__with { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.deal__with-label { font-family: var(--font-brand); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.8125rem; padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text-body); background: var(--gray-50); }
.deal__sector { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-brand); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-700); }
.placeholder { color: var(--gold-700); background: rgba(182,142,78,0.1); border-radius: 3px; padding: 0 4px; }
.deals-more { margin-top: 48px; display: flex; justify-content: center; }
@media (max-width: 1020px) { .deal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .deal-grid { grid-template-columns: 1fr; } }

/* ---------- Logo marquee (home) ---------- */
.marquee { margin-top: 56px; display: flex; flex-direction: column; gap: 18px; }
.marquee__row {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee__row--reverse .marquee__track { animation-direction: reverse; animation-duration: 70s; }
.marquee__row:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 18px; padding-right: 18px; }
.logo-tile {
  width: 200px; height: 96px; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 26px;
}
.logo-tile img { max-height: 46px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.72; transition: filter .3s, opacity .3s; }
.logo-tile:hover img { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; background: var(--navy-900); color: var(--on-navy); isolation: isolate; }
.cta .hero__motif { left: -12%; right: auto; top: auto; bottom: -30%; width: min(70vw, 980px); opacity: 0.12; }
.cta__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.cta h2 { color: var(--white); font-size: var(--fs-h2); margin-top: 18px; }
.cta h2 .accent { display: block; font-weight: 400; }
.cta__lead { margin-top: 20px; font-size: var(--fs-lead); color: var(--on-navy-muted); max-width: 52ch; }
.cta__side { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid var(--line-on-navy); }
.cta__contact { display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; color: var(--on-navy-muted); }
.cta__contact strong { color: var(--white); font-weight: 600; font-size: 1.0625rem; user-select: all; }
@media (max-width: 860px) {
  .cta__grid { grid-template-columns: 1fr; align-items: start; }
  .cta__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-on-navy); padding-top: 28px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--on-navy-muted); font-size: 0.9375rem; }
.footer__news { border-bottom: 1px solid var(--line-on-navy); }
.footer__news-inner { padding-block: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__news h2 { color: var(--white); font-size: 1.5rem; margin-top: 10px; }
.footer__news p { margin-top: 6px; }
.footer__main { padding-block: 64px 48px; display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr; gap: 40px; }
.footer__brand img { height: 24px; width: auto; }
.footer__brand p { margin-top: 22px; max-width: 40ch; line-height: 1.65; }
.footer h3 { font-family: var(--font-brand); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a:hover { color: var(--white); }
.footer address { font-style: normal; line-height: 1.7; }
.footer address strong { color: var(--white); font-weight: 600; }
.footer__bottom { border-top: 1px solid var(--line-on-navy); }
.footer__bottom-inner { padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8125rem; color: rgba(255,255,255,0.5); }
.footer__bottom a:hover { color: var(--white); }
@media (max-width: 900px) { .footer__main { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__main { grid-template-columns: 1fr; } }

/* ---------- Deals page ---------- */
.filters {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h)); z-index: 40;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.filters__inner { padding-block: 14px; display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.filter-group__label { font-family: var(--font-brand); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-right: 4px; }
.pill {
  min-height: 34px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--white); color: var(--text-body);
  font-family: var(--font-text); font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.pill:hover { border-color: var(--navy-300); }
.pill[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.search { margin-left: auto; position: relative; flex: 0 1 280px; min-width: 200px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--text-muted); }
.search input {
  width: 100%; height: 40px; padding: 0 14px 0 40px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--gray-50); font: inherit; font-size: 0.9375rem; color: var(--text-body);
}
.search input:focus { outline: none; border-color: var(--navy-700); background: var(--white); box-shadow: 0 0 0 3px rgba(98,134,163,0.35); }
.results-meta { margin-top: 40px; font-family: var(--font-brand); font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.results-meta + .deal-grid { margin-top: 20px; }
.empty { margin-top: 24px; padding: 48px 24px; border: 1px dashed var(--line); border-radius: var(--r-md); text-align: center; color: var(--text-muted); }
@media (max-width: 860px) {
  .filters { position: static; }
  .search { margin-left: 0; flex-basis: 100%; }
}

/* ---------- Team page ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member {
  position: relative; aspect-ratio: 1 / 1; max-width: 100%;
  border-radius: var(--r-md); overflow: hidden; background: var(--navy-900);
  color: var(--on-navy); isolation: isolate;
}
.member__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.member:hover .member__photo, .member:focus-within .member__photo { transform: scale(1.04); }
.member__initials {
  position: absolute; inset: 0; z-index: -2; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-brand); font-weight: 300; font-size: 5rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.22);
  background: radial-gradient(80% 80% at 70% 20%, var(--navy-700), var(--navy-900));
}
.member::after { /* scrim for the caption */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,27,44,0) 45%, rgba(14,27,44,0.92) 100%);
  transition: background-color .35s var(--ease);
}
.member__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 24px 22px; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.member__role { font-family: var(--font-brand); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-400); }
.member h2, .member h3 { color: var(--white); font-size: 1.375rem; margin-top: 6px; letter-spacing: -0.01em; }
.member__bio {
  position: absolute; inset: 0; padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 12px;
  background: rgba(14,27,44,0.95); opacity: 0; transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  overflow-y: auto;
}
.member__bio p { font-size: 0.9375rem; line-height: 1.6; color: var(--on-navy-muted); }
.member__bio .placeholder { color: var(--gold-400); background: rgba(182,142,78,0.16); }
.member__focus { display: flex; flex-wrap: wrap; gap: 6px; }
.member__focus li { font-size: 0.75rem; padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid var(--line-on-navy); color: var(--on-navy); }
.member__links { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.28);
  display: inline-flex; align-items: center; justify-content: center; color: var(--white);
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.icon-btn svg { width: 16px; height: 16px; }
.member__email { font-size: 0.8125rem; color: var(--on-navy-muted); user-select: all; }
.member:hover .member__bio, .member:focus-within .member__bio { opacity: 1; transform: none; }
.member:hover .member__caption, .member:focus-within .member__caption { opacity: 0; transform: translateY(8px); }
.member__hint { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; color: var(--white); background: rgba(14,27,44,0.35); }
.member__hint svg { width: 14px; height: 14px; }

.member--join { background: var(--gray-50); border: 1px dashed var(--navy-300); color: var(--text-body); display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 28px 26px; }
.member--join::after { display: none; }
.member--join h2 { color: var(--navy-900); font-size: 1.5rem; }
.member--join p { color: var(--text-muted); }

@media (max-width: 1020px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
/* On touch-sized screens the bio is shown under the photo, no hover needed */
@media (max-width: 640px), (hover: none) {
  .team-grid { grid-template-columns: 1fr; }
  .member { aspect-ratio: auto; display: flex; flex-direction: column; }
  .member::after { display: none; }
  .member__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
  .member__photo, .member__initials { z-index: 0; }
  .member__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,27,44,0) 50%, rgba(14,27,44,0.9) 100%); }
  .member__caption { z-index: 1; }
  .member__bio { position: static; opacity: 1; transform: none; background: var(--navy-900); }
  .member:hover .member__caption, .member:focus-within .member__caption { opacity: 1; transform: none; }
  .member__hint { display: none; }
  .member--join { aspect-ratio: auto; }
}
@media (hover: none) and (min-width: 641px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Career page ---------- */
.jobs { margin-top: 40px; border-top: 1px solid var(--line); }
.job {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px 40px;
  padding: 28px 4px; border-bottom: 1px solid var(--line);
  transition: background-color .2s;
}
.job:hover { background: var(--gray-50); }
.job h3 { font-size: 1.25rem; }
.job p { color: var(--text-muted); margin-top: 6px; font-size: 0.9375rem; }
.job__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.spontaneous { margin-top: 32px; color: var(--text-muted); }
.spontaneous strong { color: var(--navy-900); user-select: all; }
@media (max-width: 760px) { .job { grid-template-columns: 1fr; } }

/* ---------- Beta badge (remove at launch) ---------- */
.beta-badge {
  position: fixed; z-index: 70;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--gold-500); color: var(--navy-950); box-shadow: var(--shadow-md);
  font-family: var(--font-brand); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track, .marquee__track { animation: none; }
  .marquee__row, .ticker { overflow-x: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Navy content sections (home: What we do, Our background) ---------- */
.section--navy {
  position: relative;
  background: var(--navy-900);
  color: var(--on-navy);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .section-head p,
.section--navy .approach__top p { color: var(--on-navy-muted); }

/* Practice cards become dark glass panels so the pill labels match the hero */
.section--navy .practice {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}
.section--navy .practice:hover { border-color: rgba(200,166,115,0.55); box-shadow: none; background: rgba(255,255,255,0.14); }
.section--navy .practice p { color: var(--on-navy-muted); }
.section--navy .practice ul { border-top-color: var(--line-on-navy); }
.section--navy .diamond-list li { color: var(--on-navy); }
.practice__badge { align-self: flex-start; font-size: 0.6875rem; padding: 6px 14px 6px 11px; }

/* Logo tiles sit on navy as white chips */
.section--navy .logo-tile { border-color: transparent; }
.section--navy .logo-tile img { opacity: 0.8; }

/* Contact band follows a navy section: lift it one step and add a hairline */
.cta { background: var(--navy-800); border-top: 1px solid var(--line-on-navy); }

/* ---------- What we do: practice names in brass ---------- */
.section--navy .practice h3 {
  color: var(--gold-400);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  display: flex; flex-direction: column; gap: 14px;
}
.section--navy .practice h3::after { /* short brass rule that extends on hover */
  content: ""; width: 40px; height: 2px; background: var(--gold-500);
  transition: width .45s var(--ease);
}
.section--navy .practice:hover h3::after { width: 100%; }

/* ---------- Deal tiles: tombstone style ----------
   A navy header band (deal type + year) over a light-blue body,
   logos on white plaques, a firmer outline. Used on Home and Deals. */
.deal {
  padding: 0 0 22px;
  gap: 18px;
  background: var(--navy-50);
  border: 1.5px solid var(--navy-200);
  border-radius: var(--r-md);
  overflow: hidden;
}
.deal > * { padding-inline: 24px; }
.deal:hover { border-color: var(--navy-700); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.deal__top { background: var(--navy-900); padding-block: 14px; }
.deal__top .tag { background: transparent; border-color: rgba(255,255,255,0.28); color: var(--white); }
.deal__top .deal__year { color: var(--gold-400); font-weight: 500; }
.deal__top .placeholder { color: var(--gold-400); background: rgba(182,142,78,0.18); }
.deal__logo { height: 72px; }
.deal__logo img {
  max-height: 64px; max-width: 200px; box-sizing: border-box;
  background: var(--white); padding: 10px 16px; border-radius: 6px;
  box-shadow: 0 1px 2px rgba(22,40,63,0.08);
}
.deal__logo--icon img { height: 52px; width: 52px; max-width: none; padding: 10px; background: var(--white); }
.deal__amount { font-size: 2.5rem; }
.deal__amount .placeholder { font-size: 0.8em; }
.deal__with { border-top: 1.5px solid var(--navy-100); }
.deal .chip { background: var(--white); border-color: var(--navy-100); }
.deal:hover .deal__amount { color: var(--navy-700); }
.deal__logo--icon span {
  height: 52px; padding: 0 16px; border-radius: 6px;
  background: var(--white); box-shadow: 0 1px 2px rgba(22,40,63,0.08);
  color: var(--navy-800);
}



/* ---------- Track record: 2 x 3 figures beside the team photo ---------- */
.record {
  margin-top: 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px; align-items: stretch;
}
.stats--square { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
.stats--square .stat { border-left: 0; border-top: 0; padding: 30px 28px 26px; justify-content: flex-end; }
.stats--square .stat:nth-child(even) { border-left: 1px solid var(--line); }
.stats--square .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.stats--square .stat__value { font-size: clamp(2.25rem, 1.6rem + 1.6vw, 3.25rem); }
.record__photo {
  position: relative; margin: 0; min-height: 380px;
  border-radius: var(--r-lg); overflow: hidden; background: var(--navy-900);
}
.record__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.record__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 18px;
  background: linear-gradient(180deg, rgba(14,27,44,0) 0%, rgba(14,27,44,0.85) 100%);
  font-family: var(--font-brand); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--white);
}
@media (max-width: 900px) {
  .record { grid-template-columns: 1fr; }
  .record__photo { min-height: 0; aspect-ratio: 7 / 5; }
}
@media (max-width: 560px) {
  .stats--square .stat { padding: 22px 18px; }
}

/* ---------- Tighter rhythm, one-line section titles ---------- */
.section-head { max-width: none; }
.section-head p { max-width: 62ch; }
.approach__top { grid-template-columns: 1fr; }
.record, .deal-grid, .practices, .marquee { margin-top: 36px; }
.deals-more { margin-top: 36px; }
