/*
  Footprint Capital — built section-by-section from Figma (fileKey 9YKNkdxjpaHa2UrzqNrCbs, Home 6:1309).
  Fluid responsive: clamp() for type/spacing, intrinsic sizing for cards, text-wrap balance/pretty.
  Mobile @media rules live at the END of this file (layout transformations only).
*/

:root {
  /* Figma color variables */
  --azure-10: #002032;   /* hero scrim base */
  --azure-13: #001941;   /* deal card text (Midnight) */
  --azure-14: #003048;   /* Prussian Blue — primary navy */
  --azure-22: #004970;   /* Regal Blue — testimonial cards, advisor bar */
  --azure-30: #006397;   /* Bahama Blue — team roles */
  --azure-37: #007dbe;   /* Lochmara — accents, deal back */
  --azure-61: #61a1d8;   /* Danube — deal card border */
  --cyan: #32ade6;       /* hero eyebrow */
  --grey-37: #5f5f5f;    /* Scorpion — body text, eyebrows */
  --grey-90: #e5e5e5;    /* Mercury — dividers */
  --white: #ffffff;

  /* Figma type families (licensed system fonts first, webfont fallbacks after) */
  --font-demi: "franklin-gothic-urw", 'Franklin Gothic Demi', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; /* Typekit; Demi = weight 700 */
  --font-serif: "palatino-linotype", 'Palatino Linotype', Palatino, 'Book Antiqua', 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-raleway: 'Raleway', 'Inter', system-ui, sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, 'SF Pro', 'Segoe UI', sans-serif;

  /* Layout */
  --wrap-max: 1180px;              /* Figma div.wrap: 1180 incl 32px side padding → 1116 content */
  --section-gap: clamp(64px, 4rem + 3.5vw, 120px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--grey-37);
  background: var(--white);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

main { display: block; }

h1, h2, h3, h4, h5, h6 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }

/* Content wrap — Figma div.wrap: 1180 w/ 32px padding at 1440 */
.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 32px);
}

/* === Shared components === */

/* Eyebrow — Franklin Gothic Demi 16/29.6, ls 2.56, uppercase (Figma 6:1335) */
.eyebrow {
  font-family: var(--font-demi);
  font-weight: 700;
  font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem);
  line-height: 1.85;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-37);
}
.eyebrow--cyan { color: var(--cyan); font-size: 0.75rem; letter-spacing: 1.92px; line-height: 1.5; }
.eyebrow--blue { color: var(--azure-37); }

/* Section title — Palatino 38/48.64, -0.38 (Figma h2) */
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.375rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--azure-14);
  text-align: center;
  text-wrap: balance;
}
.section-title--left { text-align: left; }
.section-title--light { color: var(--white); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1vw, 17px);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 2rem + 2vw, 60px);
  text-align: center;
}
.section-sub {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.85;
  color: var(--grey-37);
  max-width: 40em; /* Figma section-head p width: 640px */
}

/* Outlined button — Figma Component 2: Inter SemiBold 13/19.5, ls 1.04, 31x17 padding */
.btn {
  display: inline-block;
  border: 1px solid var(--azure-14);
  padding: 16px 30px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azure-14);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--azure-14); color: var(--white); }
.btn--light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--azure-14); }

/* === Header / nav — Figma 6:1499 === */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--azure-14);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.12));
  padding-block: 16px;
}
.site-header__inner {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 48px);
}
.site-header__logo img { width: 168px; height: auto; }
.site-header__nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 35px);
}
.site-header__nav a {
  display: inline-block;
  padding-bottom: 3.5px;
  font-weight: 500;
  font-size: 0.78125rem; /* 12.5px */
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] { color: var(--white); border-color: var(--azure-37); }
.site-header__nav a[aria-current="page"] { font-weight: 800; }
.site-header__cta { padding: 10px 24px; font-size: 0.75rem; }
/* Contact lives in the header CTA on desktop, in the drawer on mobile */
.site-header__nav-item--mobile { display: none; }
.site-header__toggle { display: none; }

/* === Hero — Figma 6:1310 === */
.hero {
  position: relative;
  /* stats card splits the hero's bottom edge 50/50; card bottom ends ~10px above the fold
     (89px half-card overlap + 10px gap = 99px) */
  min-height: max(480px, 100svh - 99px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--azure-14);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__photo { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(0, 32, 50, 0.92) 0%, rgba(0, 32, 50, 0.72) 32%, rgba(0, 32, 50, 0.38) 60%, rgba(0, 32, 50, 0.22) 100%),
    linear-gradient(0deg, rgba(0, 32, 50, 0.85) 0%, rgba(0, 32, 50, 0) 28%);
}
.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 1.5vw, 22px);
  text-align: center;
  padding-inline: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(24px, 4vw, 60px); /* optical center vs scroll cue */
  max-width: 660px;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.6rem + 3.1vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 13ch; /* wraps "Your Legacy," / "Our Priority" like Figma */
}
.hero__sub {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--white);
  max-width: 24ch;
}
.hero__scroll {
  position: absolute;
  bottom: clamp(120px, 16svh, 160px); /* clears the straddling stats card */
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.32);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0 0 60% 0;
  background: var(--azure-37);
  animation: scroll-cue 2.2s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(250%); }
}

/* === Stats card — Figma 327:2483 (overlaps hero bottom) === */
.stats-card {
  position: relative;
  z-index: 2;
  /* pull up by half the card height so it sits centered on the hero's bottom edge (178px card → 89px) */
  margin-top: clamp(-89px, -6.2vw, -48px);
  background: var(--white);
  box-shadow: 0 30px 70px -20px rgba(0, 32, 50, 0.28);
  display: flex;
  flex-wrap: wrap;
  padding: clamp(28px, 3.2vw, 46px) clamp(16px, 2.2vw, 32px);
}
.stat {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-inline: clamp(8px, 1.7vw, 24px);
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--grey-90); }
.stat__value {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  line-height: 1.5;
  color: var(--azure-14);
  white-space: nowrap;
}
.stat__label {
  font-family: var(--font-demi);
  font-weight: 700;
  font-size: 0.71875rem; /* 11.5px */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-37);
  line-height: 1.5;
}

/* === Who We Are — Figma 6:1330 === */
.who {
  display: flex;
  align-items: flex-start;
  gap: clamp(40px, 5.5vw, 80px);
  margin-top: var(--section-gap);
}
.who__media {
  position: relative;
  flex: 1 1 480px;
  max-width: 572px;
}
.who__frame { position: relative; display: block; overflow: hidden; }
.who__media img { display: block; width: 100%; aspect-ratio: 572 / 528; object-fit: cover; transition: transform 0.5s ease; }
.who__frame:hover img { transform: scale(1.04); }
.who__accent {
  position: absolute;
  background: var(--azure-14);
  left: 44.5%;
  right: -4.6%;
  top: 58.9%;
  bottom: -4.9%;
}
.who__text {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 1.2vw, 17px);
}
.who__body {
  font-weight: 500;
  line-height: 1.85;
  max-width: 500px;
  padding-block: 8px;
}
.who__text .btn { margin-top: clamp(8px, 1vw, 16px); }

/* === What We Do — Figma 6:1341 === */
.services { margin-top: var(--section-gap); }
.services .section-head { max-width: 860px; } /* Figma sub is a single wide line (835px) */
.services .section-title { max-width: 13.5em; text-wrap: initial; } /* Figma wraps greedily at 511px: "…purpose-built / for founders." */
.services .section-sub { max-width: 53em; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 2px;
  background: var(--azure-14);
}
.service-card {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 33px 30px;
}
.service-card__bg { position: absolute; inset: 0; }
.service-card__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-card__bg img { transform: scale(1.04); }
.service-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(206deg, rgba(0, 48, 72, 0.28) 0%, rgba(0, 48, 72, 0.86) 100%);
  transition: opacity 0.35s ease;
}
.service-card::after { /* hover scrim cross-fades in */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(0, 73, 112, 0.55) 0%, rgba(0, 48, 72, 0.94) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.service-card:hover::after { opacity: 1; }
.service-card__num,
.service-card__title,
.service-card__desc { position: relative; z-index: 1; }
.service-card__num {
  font-family: var(--font-raleway);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--azure-37);
  margin-bottom: 14px;
}
.service-card__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.4375rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--white);
}
.service-card__desc {
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 220px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}
.service-card:hover .service-card__desc,
.service-card:focus-visible .service-card__desc {
  max-height: 8em;
  opacity: 1;
  margin-top: 6px;
}

/* === Our People — Figma 6:1354 === */
.team {
  margin-top: var(--section-gap);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team .section-head { margin-bottom: clamp(28px, 2.5vw, 44px); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 36px;
  width: 100%;
  margin-bottom: clamp(32px, 3.5vw, 56px);
}
.team-card { display: block; }
.team-card__photo {
  position: relative;
  background: var(--grey-90);
  overflow: hidden;
}
.team-card__photo img {
  width: 100%;
  aspect-ratio: 348 / 370;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.4s ease;
}
.team-card:hover .team-card__photo img { filter: grayscale(0); }
.team-card__plus {
  position: absolute;
  right: 14px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--font-demi);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.team-card:hover .team-card__plus { opacity: 1; }
.team-card__info { padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.team-card__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--azure-14);
}
.team-card__role {
  font-weight: 500;
  font-size: 0.625rem;
  line-height: 1.7;
  letter-spacing: 0.092em;
  text-transform: uppercase;
  color: var(--azure-30);
}

/* === Testimonials — Figma 75:800 === */
.testimonials {
  margin-top: var(--section-gap);
  background: var(--azure-14);
  padding-block: clamp(64px, 7.6vw, 110px);
  overflow: hidden;
}
.testimonials .section-head { margin-bottom: clamp(28px, 3vw, 48px); }
.carousel { position: relative; }
.carousel__track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.carousel__slide {
  position: absolute;
  left: 50%;
  margin: 0;
  width: min(685px, 100%);
  transform: translateX(-50%) scale(0.584);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.carousel__slide.is-active {
  position: relative;
  left: auto;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.carousel__slide.is-prev,
.carousel__slide.is-next {
  opacity: 1;
  z-index: 1;
  cursor: pointer;
  pointer-events: auto;
}
.carousel__slide.is-prev { transform: translateX(-124%) scale(0.584); }
.carousel__slide.is-next { transform: translateX(24%) scale(0.584); }
.carousel__card {
  background: var(--azure-22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: clamp(24px, 2.8vw, 40px);
  display: flex;
  align-items: center;
  gap: 20px;
}
.carousel__photo {
  flex: 0 0 clamp(150px, 16vw, 231px);
  border: 3px solid var(--white);
}
.carousel__photo img { width: 100%; aspect-ratio: 231 / 249; object-fit: cover; }
.carousel__quote { margin: 0; flex: 1; text-align: center; }
.carousel__quote p {
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 24px;
}
.carousel__quote figcaption { display: flex; flex-direction: column; }
.carousel__name {
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--azure-37);
}
.carousel__role { font-size: 0.75rem; line-height: 1.5; color: rgba(255, 255, 255, 0.55); }
.carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: clamp(28px, 3.5vw, 64px);
}
.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
}
.carousel__dot.is-active { width: 14px; height: 14px; background: var(--azure-37); }

/* === Industry Experience — Figma 6:1369 === */
.industries { margin-top: var(--section-gap); }
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 2px;
  background: var(--azure-14);
}
.industry-tile {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(10px, 1.4vw, 20px);
}
.industry-tile__bg { position: absolute; inset: 0; }
.industry-tile__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.industry-tile:hover .industry-tile__bg img { transform: scale(1.05); }
.industry-tile__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(209deg, rgba(0, 48, 72, 0.28) 0%, rgba(0, 48, 72, 0.86) 100%);
}
.industry-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(209deg, rgba(0, 73, 112, 0.55) 0%, rgba(0, 48, 72, 0.94) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.industry-tile:hover::after { opacity: 1; }
.industry-tile__content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.industry-tile__name {
  font-family: var(--font-serif);
  font-size: clamp(0.6875rem, 0.5rem + 0.65vw, 1rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--white);
  overflow-wrap: break-word;
}
.industry-tile__list {
  font-weight: 500;
  font-size: clamp(0.5625rem, 0.42rem + 0.45vw, 0.71875rem);
  line-height: 1.55;
  color: var(--white);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}
.industry-tile:hover .industry-tile__list,
.industry-tile:focus-visible .industry-tile__list { max-height: 20em; opacity: 1; }

/* === Track Record — Figma 6:1411 === */
.deals {
  margin-top: var(--section-gap);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1017px;
  margin-bottom: clamp(32px, 3.5vw, 56px);
}
.deal-card { display: flex; flex-direction: column; }
.deal-card__body {
  position: relative;
  border: 3px solid var(--azure-61);
  border-bottom: 0;
  background: var(--white);
  min-height: 280px;
  flex: 1;
}
.deal-card__front,
.deal-card__back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 20px 16px;
  transition: opacity 0.35s ease;
}
.deal-card__front { gap: 16px; overflow: hidden; }
/* Crowded tombstones (3-4 logos) tighten up and let logo rows shrink to fit */
.deal-card__front:has(> :nth-child(5)) { gap: 8px; }
.deal-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 192px;
  max-width: 100%;
  height: 54px;
  flex: 0 1 54px;
  min-height: 20px;
}
.deal-card__logo:has(img[src*="sprostybag"]),
.deal-card__logo:has(img[src*="empirefreightlogo"]),
.deal-card__logo:has(img[src*="IFC"]),
.deal-card__logo:has(img[src*="Elvisridge-2"]),
.deal-card__logo:has(img[src*="weCare"]),
.deal-card__logo:has(img[src*="hollys"]),
.deal-card__logo:has(img[src*="nacc"]),
.deal-card__logo:has(img[src*="mock"]),
.deal-card__logo:has(img[src*="WhiteCastle"]),
.deal-card__logo:has(img[src*="ECMO"]) {
  height: 64px;
  flex: 0 1 64px;
}
.deal-card__phrase,
.deal-card__sector,
.deal-card__desc,
.deal-card__advisor {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
}
.deal-card__phrase { flex: none; }
.deal-card__logo img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.deal-card__phrase {
  letter-spacing: -0.006em;
  text-align: center;
  line-height: 1.4;
  color: var(--azure-13);
}
.deal-card__back {
  background: var(--azure-37);
  gap: 8px;
  padding-inline: 13px;
  text-align: center;
  opacity: 0;
}
.deal-card:hover .deal-card__back,
.deal-card:focus-within .deal-card__back { opacity: 1; }
.deal-card:hover .deal-card__front { opacity: 0; }
.deal-card__sector { font-weight: 700; line-height: 1.5; color: var(--white); }
.deal-card__desc { line-height: 1.5; color: var(--white); }
.deal-card__brand { width: 144px; margin-top: 12px; }
.deal-card__advisor {
  background: var(--azure-22);
  padding: 13px 14px 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: var(--white);
}

/* === Footer — Figma 327:2745 === */
.site-footer {
  margin-top: var(--section-gap);
  background: var(--azure-14);
  padding: clamp(36px, 4vw, 56px) 0 22px;
}
.site-footer__top {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer__brand { max-width: 300px; }
.site-footer__brand img { width: 168px; height: auto; margin-bottom: 17px; }
.site-footer__brand p {
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer__col h5 {
  font-family: var(--font-demi);
  font-weight: 700;
  font-size: 0.71875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 10px; min-width: 171px; }
.site-footer__col a {
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}
.site-footer__col a:hover { color: var(--white); }
.site-footer__col h5 a { font: inherit; color: inherit; }
.site-footer__col h5 a:hover,
.site-footer__col h5 a:focus-visible { color: var(--cyan); }
.site-footer__bottom {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding: 19px clamp(20px, 3vw, 32px) 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 500;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}
.site-footer__legal { display: flex; align-items: center; gap: 13px; }
.site-footer__legal a { padding-right: 13px; border-right: 1px solid rgba(255, 255, 255, 0.15); transition: color 0.2s ease; }
.site-footer__legal a:last-child { border-right: 0; padding-right: 0; }
.site-footer__legal a:hover { color: var(--white); }

/* === Page hero (interior pages) — Figma 187:2360 === */
.page-hero {
  position: relative;
  margin-top: 74px; /* fixed nav height */
  min-height: clamp(220px, 23.6vw, 340px);
  display: flex;
  align-items: center;
  background: var(--azure-14);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-hero__photo--about { object-position: center bottom; }
.page-hero__media--rotating .page-hero__photo { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.page-hero__media--rotating .page-hero__photo.is-active { opacity: 1; }
.page-hero__media--rotating .page-hero__photo:not(:first-child) { object-position: center; }
.page-hero__photo--team { object-position: center 62%; }
.page-hero__scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero__copy {
  position: relative;
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.5vw, 22px);
}
.page-hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.25rem + 2.4vw, 3.375rem); /* 54px @ 1440 */
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* === About page === */
.who--about { margin-top: clamp(64px, 7.8vw, 112px); }
.who__text--center { justify-content: center; }

/* Our Process — Figma 187:2425, tabs component 187:2972 */
.process {
  margin-top: var(--section-gap);
  background: #f4f6f7;
  padding-block: clamp(64px, 7.6vw, 110px);
}
.process__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 2.5vw, 40px);
  margin-bottom: clamp(36px, 4.4vw, 64px);
}
.process__head-left {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 17px);
  max-width: 496px;
}
.process__sub {
  font-weight: 500;
  line-height: 1.85;
  color: var(--grey-37);
  flex: 1 1 380px;
  max-width: 588px;
  padding-block: 8px;
}
.process__card {
  display: flex;
  background: var(--white);
  filter: drop-shadow(0 24px 30px rgba(0, 48, 72, 0.08));
  min-height: 423px;
}
.process__nav {
  flex: 0 0 clamp(240px, 23.6vw, 340px);
  background: var(--azure-14);
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  padding-bottom: clamp(28px, 8.1vw, 117px);
}
.process__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.25s ease;
}
.process__step:hover { background: rgba(0, 73, 112, 0.5); }
.process__step.is-active { background: var(--azure-22); }
.process__step.is-active::after { /* right-pointing notch into the panel */
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 12px solid var(--azure-22);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}
.process__star {
  flex: 0 0 20px;
  height: 20px;
  background: url("/images/step-num.svg") left center / 44px 20px no-repeat;
}
.process__step.is-active .process__star { background-image: url("/images/step-num-active.svg"); }
.process__step-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.3;
  color: var(--white);
}
.process__content {
  flex: 1;
  padding: clamp(28px, 5vw, 72px) clamp(20px, 5.4vw, 78px);
}
.process__panel { display: none; }
.process__panel.is-active { display: block; }
.process__panel h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.375rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--azure-14);
}
.process__panel p {
  margin-top: clamp(14px, 1.7vw, 25px);
  font-weight: 500;
  line-height: 1.85;
  color: var(--grey-37);
  max-width: 690px;
}

/* CSS-gradient page-hero scrim (homepage-style, 115deg) — Figma interior pages */
.page-hero__scrim-css {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(0, 32, 50, 0.92) 0%, rgba(0, 32, 50, 0.72) 32%, rgba(0, 32, 50, 0.38) 60%, rgba(0, 32, 50, 0.22) 100%),
    linear-gradient(0deg, rgba(0, 32, 50, 0.85) 0%, rgba(0, 32, 50, 0) 28%);
}

/* Split section head — eyebrow + h2 left, paragraph bottom-right (Figma 194:3322 et al) */
.split-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(24px, 3.8vw, 56px);
  margin-bottom: clamp(36px, 3.8vw, 56px);
}
.split-head__left {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 17px);
  max-width: 554px;
}
.split-head__body {
  flex: 1 1 340px;
  font-weight: 500;
  line-height: 1.85;
  color: var(--grey-37);
  padding-block: 8px;
}

/* === Industries page — sector rows (Figma 194:3514) === */
.sectors { margin-top: clamp(64px, 7.8vw, 112px); }
.sector-list { display: flex; flex-direction: column; gap: 24px; }
.sector-row {
  display: flex;
  background: var(--white);
  filter: drop-shadow(0 18px 24px rgba(0, 48, 72, 0.07));
  min-height: 358px;
}
.sector-row--flip { flex-direction: row-reverse; }
.sector-row__media { position: relative; flex: 1 1 50%; overflow: hidden; }
.sector-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.sector-row:hover .sector-row__media img { transform: scale(1.05); }
.sector-row__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(149deg, rgba(0, 48, 72, 0.08) 0%, rgba(0, 48, 72, 0.46) 100%);
}
.sector-row__copy {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: clamp(28px, 3.5vw, 50px) clamp(24px, 4.4vw, 64px);
}
.sector-row__copy h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.375rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--azure-14);
}
.subsector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  column-gap: 24px;
  border-top: 1px solid var(--grey-90);
}
.subsector-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 13px 14px;
  border-bottom: 1px solid var(--grey-90);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--azure-14);
}
.subsector-grid .dash { flex: 0 0 15px; height: 1px; background: var(--azure-37); }

/* === Team page === */
.team-page { margin-top: clamp(64px, 7.8vw, 112px); }
.team-grid--page { margin-bottom: 0; }

/* === Bio modal — Figma 301:1619 === */
.modal { border: none; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; inset: 0; }
.modal::backdrop { background: rgba(0, 32, 50, 0.6); }
.modal__panel {
  position: fixed;
  inset: 0;
  background: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
body.modal-open { overflow: hidden; }

.bio-modal__accent { position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--azure-37); z-index: 2; }
.bio-modal__aside {
  background: linear-gradient(180deg, #f8fafb 0%, #eef3f6 100%);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 0 0 auto;
}
.bio-modal__photo { width: 100%; max-width: 302px; aspect-ratio: 302 / 263; object-fit: cover; object-position: top; }
.bio-modal__role {
  font-weight: 700;
  font-size: 0.6125rem;
  letter-spacing: 0.155em;
  text-transform: uppercase;
  color: var(--azure-37);
  margin-bottom: 10px;
}
.bio-modal__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--azure-14);
}
.bio-modal__social { display: flex; gap: 10px; margin-top: 18px; }
.bio-modal__social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbdbdb;
  font-weight: 700;
  font-size: 1rem;
  color: var(--azure-14);
  transition: border-color 0.2s ease;
}
.bio-modal__social a:hover { background: var(--azure-14); border-color: var(--azure-14); color: var(--white); }
.bio-modal__social svg { display: block; width: 15px; height: auto; fill: currentColor; }
.bio-modal__content { position: relative; flex: 1; padding: 28px clamp(24px, 4vw, 52px) 40px; }
.bio-modal__close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--white);
  border: 1px solid var(--grey-90);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--azure-14);
  cursor: pointer;
}
.bio-modal__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  color: var(--azure-14);
  margin-bottom: 10px;
  padding-right: 70px;
}
.bio-modal__text { font-weight: 500; font-size: 0.875rem; line-height: 1.6; color: var(--azure-14); margin-bottom: 20px; }
.bio-modal__cols { display: flex; flex-wrap: wrap; gap: clamp(24px, 3.6vw, 52px); }
.bio-modal__col { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bio-modal__section { border-top: 1px solid var(--grey-90); padding-top: 11px; }
.bio-modal__section h4,
.bio-modal__acc-toggle {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--azure-14);
  margin-bottom: 12px;
}
.bio-modal__acc-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.bio-modal__accordion:not(.is-open) ul { display: none; }
.bio-modal__section ul { list-style: disc; padding-left: 19px; display: flex; flex-direction: column; gap: 8px; }
.bio-modal__section li { font-weight: 500; font-size: 0.75rem; line-height: 1.68; color: var(--grey-37); }

@media (min-width: 768px) {
  .modal__panel {
    position: relative;
    inset: auto;
    margin: auto;
    width: min(1180px, 92vw);
    max-height: 90vh;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  }
  .modal[open] { display: flex; align-items: center; justify-content: center; }
  .bio-modal__panel { flex-direction: row; }
  .bio-modal__aside { flex: 0 0 clamp(280px, 25.7vw, 370px); }
  .bio-modal__content { overflow-y: auto; }
}

/* === Filter bar — Figma 211:8332 === */
.filter-bar {
  background: var(--white);
  border-top: 1px solid #d4d4d4;
  border-bottom: 1px solid #d4d4d4;
  margin-top: clamp(36px, 3.8vw, 56px);
  overflow-x: auto;
}
.filter-bar__inner {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding: 0 clamp(20px, 3vw, 32px);
  display: flex;
  gap: clamp(22px, 2.6vw, 38px);
}
.filter-bar__tab {
  padding: 30px 0 28px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--grey-37);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.filter-bar__tab:hover { color: var(--azure-14); }
.filter-bar__tab.is-active { color: var(--azure-14); border-bottom-color: var(--azure-14); }

/* === Transactions / Insights grey sections === */
.tx-intro { margin-top: clamp(64px, 7.8vw, 112px); }
.tx-intro .split-head { margin-bottom: 0; }
.tx-section { background: #f4f6f7; padding-block: clamp(56px, 6.25vw, 90px) clamp(72px, 8.3vw, 120px); }
.deal-grid--page {
  max-width: none;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  margin-bottom: 0;
}
.tx-empty { text-align: center; font-weight: 500; color: var(--grey-37); padding-block: 40px; }

/* === News grid — Figma 221:10216 === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 24px;
  align-items: stretch;
  grid-auto-rows: 1fr; /* every card the same size regardless of title/preview length */
}
.news-card {
  display: flex;
  background: var(--white);
  border: 1px solid var(--grey-90);
  min-height: 310px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover {
  border-color: var(--azure-37);
  box-shadow: 0 18px 24px rgba(0, 48, 72, 0.12);
}
.news-card__media {
  position: relative;
  flex: 0 0 clamp(120px, 12.5vw, 180px);
  background: var(--white);
  border-right: 1px solid var(--grey-90);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 22px;
}
.news-card__media img { width: 137px; max-width: 100%; height: auto; }
.news-card__rule {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  height: 1px;
  background: var(--grey-90);
}
.news-card__rule::after { content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 1px; background: var(--azure-37); }
.news-card__copy { flex: 1; padding: 30px 30px 28px; display: flex; flex-direction: column; }
.news-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  font-family: var(--font-demi);
  font-weight: 700;
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azure-37);
}
.news-card__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.21;
  letter-spacing: -0.01em;
  color: var(--azure-14);
}
.news-card__excerpt {
  padding-top: 17px;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--grey-37);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.news-card__link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--font-demi);
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azure-14);
}
.news-card__link img { transition: transform 0.25s ease; }
.news-card:hover .news-card__link img { transform: translateX(4px); }

/* === Contact page === */
.contact-intro { margin-top: clamp(64px, 7.8vw, 112px); }
.contact-intro .split-head { margin-bottom: clamp(40px, 5vw, 72px); }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 24px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  background: var(--white);
  border: 1px solid var(--grey-90);
  min-height: 210px;
  padding: 35px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover { border-color: var(--azure-61); box-shadow: 0 18px 24px rgba(0, 48, 72, 0.07); }
.contact-card__icon { position: relative; width: 42px; height: 42px; display: block; }
.contact-card__icon img { position: absolute; max-width: 60%; max-height: 60%; }
.contact-card__icon .icon-a { left: 15%; bottom: 12%; }
.contact-card__icon .icon-b { left: 25%; top: 12%; }
.contact-card__icon svg {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 66%;
  height: auto;
  color: var(--azure-37);
}
.contact-card h3 {
  padding-top: 21px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.3rem + 0.7vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--azure-14);
}
.contact-card p { font-weight: 500; font-size: 0.8125rem; line-height: 1.85; color: var(--grey-37); max-width: 430px; }
.contact-card__cta {
  padding-top: 11px;
  font-weight: 700;
  font-size: 0.5625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--azure-14);
}

/* Offices — Figma 228:11948 */
.offices { margin-top: var(--section-gap); background: #f4f6f7; padding-block: clamp(64px, 7.3vw, 105px); }
.offices .split-head { margin-bottom: clamp(36px, 3.75vw, 54px); }
.offices__panel { display: flex; gap: 28px; min-height: 560px; }
.offices__nav {
  flex: 0 0 clamp(260px, 25vw, 360px);
  background: var(--azure-14);
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  padding-bottom: clamp(24px, 6.5vw, 94px);
}
.offices__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 24px 28px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.25s ease;
}
.offices__btn:hover { background: rgba(0, 73, 112, 0.5); }
.offices__btn.is-active { background: var(--azure-22); }
.offices__btn.is-active::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 11px solid var(--azure-22);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.offices__name { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.3; color: var(--white); }
.offices__addr { font-weight: 500; font-size: 0.6875rem; line-height: 1.73; color: rgba(255, 255, 255, 0.65); }
.offices__map { position: relative; flex: 1; background: #dfe7ea; overflow: hidden; min-height: 400px; }
.offices__map > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.offices__mapimg { opacity: 0; transition: opacity 0.35s ease; }
.offices__mapimg.is-active { opacity: 1; }
.offices__pin {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 26px;
  height: 26px;
  transform: rotate(-45deg);
  background: var(--azure-37);
  border-radius: 13px 13px 13px 0;
  filter: drop-shadow(0 8px 9px rgba(0, 48, 72, 0.3));
  display: none;
  align-items: center;
  justify-content: center;
}
.offices__pin.is-active { display: flex; }
.offices__pin span { width: 8px; height: 8px; background: var(--white); border-radius: 4px; transform: rotate(45deg); }
.offices__card {
  position: absolute;
  left: 28px;
  top: 28px;
  max-width: 265px;
  background: var(--white);
  filter: drop-shadow(0 18px 20px rgba(0, 48, 72, 0.18));
  padding: 19px 22px 22px;
  display: none;
  flex-direction: column;
  gap: 7px;
}
.offices__card.is-active { display: flex; }
.offices__card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.25rem; line-height: 1.3; color: var(--azure-14); }
.offices__card p { font-weight: 500; font-size: 0.77rem; line-height: 1.8; color: var(--grey-37); padding-bottom: 7px; }
.offices__card a { font-weight: 700; font-size: 0.5875rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--azure-37); }

/* === News article page — Insights design language (no dedicated Figma frame) === */
.article-hero {
  margin-top: 74px; /* fixed nav height */
  background: var(--azure-14);
  color: var(--white);
  padding-block: clamp(40px, 3rem + 2vw, 72px);
}
.article-hero__inner { display: flex; flex-direction: column; gap: 18px; }
.article-hero__back {
  font-family: var(--font-demi);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}
.article-hero__back:hover { color: var(--white); }
.article-hero__meta { display: flex; align-items: baseline; gap: 18px; }
.article-hero__meta .eyebrow { margin: 0; }
.article-hero__date { font-size: 0.875rem; color: rgba(255, 255, 255, 0.65); }
.article-hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem);
  line-height: 1.3;
  max-width: 900px;
}
.article {
  display: flex;
  gap: clamp(32px, 4vw, 64px);
  align-items: flex-start;
  padding-block: var(--section-gap);
}
.article__aside {
  flex: 0 0 clamp(180px, 20vw, 240px);
  position: sticky;
  top: 98px;
  border: 1px solid var(--grey-90);
  padding: 20px;
  background: var(--white);
}
.article__aside img { width: 100%; height: auto; object-fit: contain; }
.article__body { flex: 1 1 auto; max-width: 760px; }
.article__body p { margin-bottom: 1.2em; }
.article__body p:last-child { margin-bottom: 0; }
.article__body strong { color: var(--azure-14); }
.article__body a { color: var(--azure-37); text-decoration: underline; text-underline-offset: 2px; }
.article__body a:hover { color: var(--azure-22); }
.article__body ul, .article__body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li > p { margin: 0 !important; }

/* === Legal page (Privacy & Terms) === */
.legal { padding-block: var(--section-gap); max-width: 900px; }
.legal__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  color: var(--azure-14);
  margin-bottom: 28px;
}
.legal__body p { margin-bottom: 1.2em; }
.legal__body strong { color: var(--azure-14); }
.legal__body a { color: var(--azure-37); text-decoration: underline; text-underline-offset: 2px; }
.legal__body h2 { margin-block: 1.4em 0.6em; }
.legal__body ul, .legal__body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.legal__body ul { list-style: disc; }
.legal__body ol { list-style: decimal; }
.legal__body li > p { margin: 0 !important; }

/* === Mobile @media — layout transformations ONLY, keep at end === */

@media (max-width: 900px) {
  /* Article page: stack the logo card above the body */
  .article { flex-direction: column; }
  .article__aside { position: static; flex-basis: auto; max-width: 260px; }

  /* Team three-up, tombstones two-up */
  .team-grid,
  .deal-grid { gap: clamp(8px, 2vw, 16px); }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* three-up columns are narrow — scale the name down and reserve a uniform two-line box
     so role lines up across cards */
  .team-card__info { padding-top: 12px; gap: 4px; }
  .team-card__name { font-size: clamp(0.8125rem, 0.5rem + 1.4vw, 1.125rem); min-height: 3em; }
  .team-card__role { font-size: clamp(0.5625rem, 0.4rem + 0.6vw, 0.625rem); }

  /* Services and industries two-up */
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* two-up tiles are far wider than the six-up desktop columns the fluid size is
     tuned for — match the What We Do card titles */
  .industry-tile__name { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.4375rem); }

  /* Nav → hamburger drawer */
  .site-header__nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--azure-14);
    padding: 24px clamp(20px, 3vw, 32px) 32px;
    display: none;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.2);
  }
  body.nav-open .site-header__nav { display: block; }
  .site-header__nav ul { flex-direction: column; align-items: flex-start; gap: 18px; }
  .site-header__cta { display: none; }
  .site-header__nav-item--mobile { display: block; }
  .site-header__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .site-header__toggle span { display: block; height: 2px; width: 100%; background: var(--white); transition: transform 0.25s ease, opacity 0.25s ease; }
  body.nav-open .site-header__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .site-header__toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .site-header__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Who We Are → single column; keep accent block inside the viewport */
  .who { flex-direction: column; }
  .who__media { max-width: 100%; flex-basis: auto; width: 100%; }
  .who__accent { right: 0; }

  /* Carousel side previews removed — single card */
  .carousel__slide.is-prev, .carousel__slide.is-next { display: none; }

  /* Process tabs → stacked: step list above the panel */
  .process__card { flex-direction: column; }
  .process__nav { flex-basis: auto; padding-block: 8px; }
  .process__step.is-active::after { display: none; }

  /* Sector rows → stacked media above copy */
  .sector-row, .sector-row--flip { flex-direction: column; }
  .sector-row__media { min-height: 220px; }

  /* Offices → stacked */
  .offices__panel { flex-direction: column; }
  .offices__nav { flex-basis: auto; }
  .offices__btn.is-active::after { display: none; }

  /* News card → media above copy */
  .news-card { flex-direction: column; }
  .news-card__media { flex-basis: auto; border-right: 0; border-bottom: 1px solid var(--grey-90); }
}

@media (max-width: 560px) {
  /* Testimonial card stacks photo above quote */
  .carousel__card { flex-direction: column; }
  .carousel__photo { flex-basis: auto; width: min(231px, 70%); }

  /* Stats → 2-up grid */
  .stats-card { display: grid; grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--grey-90); }
}

/* No hover (touch) or mobile layout — sector tiles rest in their hover state */
@media (hover: none), (pointer: coarse), (max-width: 900px) {
  .industry-tile::after { opacity: 1; }
  .industry-tile__list { max-height: none; opacity: 1; }
  /* Uniform name/list boxes so titles line up across tiles */
  .industry-tile__name {
    min-height: 2.6em; /* two lines at 1.3 line-height */
    display: flex;
    align-items: flex-end;
  }
  .industry-tile__list { min-height: 14em; }
}

/* Phones: no room for the subsector lists — show the tile name only */
@media (max-width: 559px) {
  .industry-tile::after { opacity: 0; }
  .industry-tile__list { display: none; }
}
