/* ============================================================
   Action Group Holdings Co.
   Dark institutional: charcoal-navy, warm ivory, blue accents.
   Fraunces (display serif) + Instrument Sans (body). GSAP-driven.
   ============================================================ */

/* ---------- Local fonts ----------
   font-display: swap (not optional) — optional gives the browser only ~100ms to
   fetch the font before permanently committing to the fallback for that page
   view, with no later swap even once the font arrives. On a cold cache (first
   visit, incognito) the font reliably loses that race — confirmed live on
   agh-website-kappa.vercel.app in incognito: Instrument Sans (body/buttons)
   fell back to a system sans every time while Fraunces (headings) happened to
   win the race. swap always finishes correct once the font loads, trading a
   brief FOUT flash (imperceptible here — files are 30-80KB, self-hosted, and
   preloaded below) for the fallback never sticking permanently. */
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-normal-var.woff2') format('woff2-variations');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-italic-var.woff2') format('woff2-variations');
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../assets/fonts/instrument-sans-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-stretch: 100% 120%;
  font-display: swap;
}

:root {
  /* navy — locked default per client sign-off (2026-07-08) */
  --bg: color-mix(in srgb, #17479E 18%, #05070c);
  --bg-2: color-mix(in srgb, #17479E 20%, #090c14);
  --panel: color-mix(in srgb, #17479E 22%, #0d111c);
  --ivory: #c8cacd;
  --muted: #b4b6ba;
  --faint: #9a9ca1;

  /* Blue color system (replacing gold references) */
  --navy-blue: #17479E;  /* Main navy blue */
  --sky-blue: #6f9ce0;   /* Light blue (was --gold) */
  --powder-blue: #a8c4ee; /* Very light blue (was --gold-2) */
  --deep-blue: #0d4a8e;  /* Darker blue for contrast */

  --hair: rgba(147, 149, 152, .14);

  /* Light theme variables for stats section */
  --bg-4: #f5f5f0;  /* Light warm white for proper accessibility contrast */
  --text-dark: #2c2c2c;
  --text-muted: #6a6a6a;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---------- page loader ---------- */
#agh-loader {
  position: fixed; inset: 0; z-index: 9998; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s var(--ease); opacity: 1;
}
#agh-loader img { width: 220px; height: auto; animation: agh-loader-pulse 1.4s ease-in-out infinite; }
#agh-loader.is-hidden { opacity: 0; pointer-events: none; }
@keyframes agh-loader-pulse {
  0%, 100% { opacity: .4; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #agh-loader img { animation: none; opacity: 1; }
  /* Note: homepage hero animations excluded to allow sequential loading */
}
body {
  font-family: var(--sans); background: var(--bg); color: var(--muted);
  font-size: 17.5px; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sky-blue); color: #05070c; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1440px; margin: 0 auto; padding-inline: var(--pad); }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; color: var(--ivory); }

/* ---------- eyebrow / rules ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  color: var(--sky-blue); font-size: clamp(14px, 1.2vw, 16px); font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 48px; height: 1px; background: var(--sky-blue); }
.rule { border: 0; border-top: 1px solid var(--hair); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ivory);
  padding: 13px 26px; border: 1px solid rgba(147,149,152,.28); border-radius: 999px;
  background: transparent; cursor: pointer; position: relative; overflow: hidden;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--sky-blue);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
  z-index: -1; border-radius: 999px;
}
.btn:hover { color: #05070c; border-color: var(--sky-blue); }
.btn:hover::before { transform: scaleX(1); }
.btn--gold { background: var(--sky-blue); color: #05070c; border-color: var(--sky-blue); }
.btn--gold::before { background: var(--powder-blue); }
.btn--gold:hover { border-color: var(--powder-blue); }

.link-line { color: var(--sky-blue); font-size: 13.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid rgba(111,156,224,.35); padding-bottom: 5px; transition: border-color .3s; }
.link-line:hover { border-color: var(--sky-blue); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
/* Literal rgba, not color-mix() — combined with the background transition above,
   color-mix() here computed to ~2% alpha live (vs. ~90% expected/static), leaving
   the scrolled header nearly transparent over light sections. Value is the
   color-mix(in srgb, #17479E 20%, rgba(5,7,12,.88)) result, precomputed. */
.site-header.scrolled { background: rgba(9, 21, 44, 0.9); backdrop-filter: blur(16px); border-bottom-color: var(--hair); }
/* When the mobile menu is open, drop the header's backdrop-filter. backdrop-filter
   establishes a containing block for position:fixed descendants — with it active the
   fixed .main-nav overlay is trapped inside the 80px header and scrolls with it
   instead of covering the viewport. Neutralising it restores viewport-fixed behaviour. */
body.nav-open .site-header,
body.nav-open .site-header.scrolled,
body.nav-closing .site-header,
body.nav-closing .site-header.scrolled {
  backdrop-filter: none; -webkit-backdrop-filter: none;
  background: transparent; border-bottom-color: transparent;
}
/* Lock background scroll while the overlay menu is open or closing. */
body.nav-open, body.nav-closing { overflow: hidden; }
.site-header .bar {
  max-width: 1440px; margin: 0 auto; padding: 20px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.logo img { height: 40px; width: auto; display: block; vertical-align: middle; }
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav > li { position: relative; }
.main-nav a {
  color: var(--ivory); font-size: 13px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; transition: color .3s;
}
.main-nav a:hover { color: var(--powder-blue); }
.main-nav .caret { font-size: 9px; margin-left: 5px; }
.dropdown {
  position: absolute; top: calc(100% + 20px); left: -20px; min-width: 220px;
  background: var(--panel); border: 1px solid var(--hair); border-radius: 4px;
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .3s var(--ease);
}
.main-nav li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 11px 14px; letter-spacing: .12em; font-size: 12.5px; }
.dropdown a:hover { background: rgba(147,149,152,.08); }
.header-cta { display: inline-flex; padding: 13px 26px; }
.nav-contact { display: none; } /* Contact lives in the header CTA button on desktop; only shown inside the mobile overlay */
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--ivory); margin: 6px 0; transition: .3s; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; display: flex; align-items: flex-end; overflow: visible; margin-bottom: -1px; }
.hero .bg { overflow: hidden; }
.hero .bg { position: absolute; inset: 0% 0; z-index: 0; }
.hero .bg img, .hero .bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 65%, transparent) 0%, color-mix(in srgb, var(--bg) 30%, transparent) 45%, var(--bg) 96%); }
.hero .inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(70px, 10vh, 120px); }
.hero h1 {
  font-size: clamp(48px, 6.5vw, 110px); line-height: 0.98; letter-spacing: -.012em;
  font-weight: 380; max-width: 1100px;
}
.hero h1 em { font-style: italic; color: var(--powder-blue); }
.hero .line { display: block; overflow: visible; }
.hero .line > span { display: inline-block; }

/* Hero entrance/exit is fully owned by the GSAP timeline in js/main.js.
   Static opacity:0 below is only a no-FOUC baseline in case JS is slow/blocked —
   GSAP sets the same values inline on load and takes over from there. */
.hero .line > span,
.hero .sub,
.hero .globally,
.hero .actions .btn {
  opacity: 0;
}
.hero .below {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 48px; margin-top: 48px; flex-wrap: wrap;
}
.hero .sub { max-width: 600px; font-size: 20px; line-height: 1.7; }
.hero .actions { display: flex; gap: 20px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; right: var(--pad); bottom: 40px; z-index: 3;
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: .34em;
  text-transform: uppercase; color: var(--faint);
  display: flex; align-items: center; gap: 14px;
}
.scroll-cue::after { content: ""; width: 1px; height: 54px; background: linear-gradient(var(--sky-blue), transparent); }

/* ---------- stats band ---------- */
.stats { border-block: 1px solid var(--hair); background: var(--bg-2); position: relative; z-index: 1; }
.stats.light-bg { background: var(--bg-4); border-color: var(--hair); }
.stats.light-bg .stat-cell .n { color: var(--text-dark); }
/* All stat numbers use navy blue */
.stats.light-bg .stat-cell .n { color: var(--navy-blue); }
/* M+ sq ft uses text-muted (light-theme variant) — --muted is the dark-theme grey and fails contrast here */
.stats.light-bg .stat-cell .n em { color: var(--text-muted); }
.stats.light-bg .stat-cell .t { color: var(--text-muted); }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell {
  padding: clamp(36px, 4.5vw, 64px) clamp(20px, 3vw, 48px);
  border-left: 1px solid var(--hair);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0; /* no-FOUC baseline — GSAP timeline in js/main.js owns the reveal */
}
.stat-cell:first-child { border-left: 0; }
.stat-cell .n {
  font-family: var(--serif); font-size: clamp(44px, 4.6vw, 76px);
  color: var(--ivory); line-height: 1; display: flex; align-items: baseline; justify-content: center;
}
.stat-cell .n em { font-style: normal; color: var(--sky-blue); font-size: .55em; margin-left: 6px; }
.stat-cell .t { margin-top: 14px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }


/* ---------- manifesto (scrub) ---------- */
.manifesto { padding: clamp(110px, 16vh, 190px) 0; background: var(--navy-blue); }
.manifesto .eyebrow { margin-bottom: 44px; color: #ffffff; }
.manifesto p {
  font-family: var(--serif); font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.28; color: #ffffff; max-width: 1180px; font-weight: 350;
}
/* WCAG AA fix (2026-07-30): was .35 opacity (2.42:1 against navy — fails even the
   3:1 large-text floor). Breakeven for 4.5:1 is ~.637; .64 clears it with a thin
   margin while keeping the scroll-reveal dimming effect clearly visible. */
.manifesto p .w { opacity: .64; display: inline-block; }
.manifesto .after { margin-top: 46px; }
.manifesto .link-line { color: #ffffff; border-bottom-color: rgba(255,255,255,.35); }
.manifesto .link-line:hover { border-color: #ffffff; }
@media (max-width: 767px) {
  .manifesto { padding: 60px 0; }
}

/* ---------- horizontal divisions ---------- */
.divisions { position: relative; border-block: 1px solid var(--hair); background: var(--bg-2); }
.divisions .head { padding: clamp(40px, 6vh, 60px) 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.divisions .head.container { padding-inline: var(--pad); }
.divisions .sec-title { color: #ffffff; }
.divisions .eyebrow { opacity: 0; animation: fadeInLeft 0.8s var(--ease) forwards; }
.sec-title { font-size: clamp(40px, 5vw, 80px); line-height: 1.02; letter-spacing: -.01em; font-weight: 380; }
.sec-title em { font-style: italic; color: var(--powder-blue); }
.h-wrap { overflow: hidden; }
.h-track { display: flex; width: max-content; }
.d-panel {
  width: min(720px, 88vw); min-height: min(65vh, 700px); border-left: 1px solid var(--hair);
  padding: clamp(30px, 4vw, 60px); display: flex; flex-direction: column; gap: clamp(8px, 1.5vw, 16px);
  position: relative; flex: 0 0 auto;
}
.d-panel .no { font-family: var(--serif); font-size: clamp(16px, 1.5vw, 19px); color: var(--sky-blue); font-style: italic; margin-bottom: 2px; }
.d-panel h3 { font-size: clamp(20px, 2.2vw, 32px); font-weight: 380; letter-spacing: -.005em; line-height: 1.1; color: #ffffff; }
.d-panel .pic { aspect-ratio: 16/7; overflow: hidden; max-height: 40vh; margin: clamp(4px, 1vw, 12px) 0; }
.d-panel .pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: saturate(.7) brightness(.85); transition: filter .5s, transform .8s var(--ease); }
.d-panel .pic.pic--bottom-align img { object-position: center 100% !important; }
.d-panel:hover .pic img { filter: saturate(1) brightness(1); transform: scale(1.04); }
.d-panel p { max-width: min(560px, 90%); font-size: clamp(14px, 1.1vw, 16px); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d-panel .link-line { align-self: flex-start; margin-top: clamp(4px, 1vw, 12px); }

/* ---------- leadership ---------- */
.leaders { padding: clamp(100px, 14vh, 170px) 0 clamp(60px, 8vh, 100px) 0; }
/* On about.html, .leaders ends with #management's own dark block, which
   supplies its own bottom padding — .leaders' bottom padding would just
   show as a band of the light-bg color under it. index.html's .leaders
   has no trailing .m-wrap, so its normal bottom padding is left alone. */
.leaders:has(.m-wrap) { padding-bottom: 0; }
.leaders.light-bg { background: var(--bg-4); }
.leaders.light-bg .eyebrow { color: var(--navy-blue); }
.leaders.light-bg .sec-title { color: var(--text-dark); }
.leaders.light-bg .sec-title em { color: var(--navy-blue); }
@media (max-width: 767px) {
  .leaders { padding: 60px 0; }
  .leaders:has(.m-wrap) { padding-bottom: 0; }
}
.leader-feature {
  display: grid; grid-template-columns: minmax(200px, 360px) 1fr;
  gap: clamp(40px, 6vw, 110px); padding: clamp(60px, 8vh, 100px) 0;
  border-top: 1px solid var(--hair); align-items: center;
}
.leader-feature:first-of-type { border-top: 0; }
@media (max-width: 767px) {
  .leader-feature { padding: 60px 0; }
}
.leader-feature.rev { grid-template-columns: 1fr minmax(200px, 360px); }
.leader-feature.rev .portrait { order: 2; }
.portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/4.8;
  perspective: 1000px;
  transform-style: preserve-3d;
}
.portrait img {
  width: 110%; height: 112%; object-fit: cover; object-position: top; filter: saturate(.8);
  transition: transform 0.8s var(--ease);
  transform: rotateY(0deg) scale(1.05);
  backface-visibility: visible;
}
.portrait::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--hair); }
.portrait .frame {
  position: absolute; top: 18px; left: 18px; right: -18px; bottom: -18px;
  border: 1px solid rgba(111,156,224,.35); z-index: -1;
  transition: transform 0.8s var(--ease);
  transform: rotateY(0deg);
  backface-visibility: visible;
}
/* Hover effect - subtle 3D rotation */
.portrait:hover img { transform: rotateY(12deg) scale(1.08); }
.portrait:hover .frame { transform: rotateY(-12deg); }
.leader-feature .role {
  color: var(--sky-blue); font-size: 12.5px; letter-spacing: .3em; text-transform: uppercase; font-weight: 600;
}
.leaders.light-bg .leader-feature .role {
  color: var(--navy-blue); font-size: 14px;
}
.leader-feature h3 {
  font-size: clamp(32px, 3.4vw, 54px); font-weight: 380; margin: 18px 0 26px; line-height: 1.08;
}
.leaders.light-bg .leader-feature h3 {
  color: var(--text-dark);
}
.leader-feature p {
  margin-bottom: 16px; max-width: 640px;
}
.leaders.light-bg .leader-feature p {
  color: var(--text-muted);
}
.leader-feature .link-line {

}
.leaders.light-bg .leader-feature .link-line {
  color: var(--navy-blue); border-bottom-color: var(--navy-blue);
}

/* Leadership section - animations controlled by GSAP ScrollTrigger */
.leaders .eyebrow { opacity: 1; }
.leaders .sec-title { opacity: 1; }
.leader-feature .portrait { opacity: 1; }
.leader-feature .role { opacity: 1; }
.leader-feature h3 { opacity: 1; }
.leader-feature p { opacity: 1; }
.leader-feature .link-line { opacity: 1; }


@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* management list */
/* ---------- Management Section ----------
   flex-wrap (not grid) so an incomplete last row centers instead of
   leaving a dangling empty cell — team count won't always divide evenly
   into the column count. */
.m-wrap { padding: clamp(100px, 14vh, 170px) 0 clamp(60px, 8vh, 100px) 0; background: var(--bg-2); }
@media (max-width: 767px) {
  .m-wrap { padding: 60px 0; }
}
/* #management (id, not .m-wrap class) to out-specificity the parent
   `.leaders.light-bg .eyebrow` / `.sec-title` / `.sec-title em` rules —
   this sub-section is dark-on-dark inside an otherwise light-bg parent
   section, and the 3-class parent selectors were silently winning the
   cascade over .m-wrap's 2-class rules, rendering the title in
   --text-dark (#2c2c2c) on a near-black background. */
#management .eyebrow { color: var(--powder-blue); }
#management .sec-title { color: #ffffff; }
#management .sec-title em { color: var(--powder-blue); }
.m-track {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  background: transparent; border: none;
  margin-top: clamp(40px, 5vh, 54px);
}
.team-card {
  flex: 0 1 25%; min-width: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(30px, 4vw, 50px) clamp(20px, 3vw, 35px);
  background: var(--bg-2); transition: background .4s;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-right: -1px;
  margin-bottom: -1px;
}
.team-card:hover { background: var(--panel); }
.team-photo {
  /* min() against 100% so the fixed-ish photo size yields to a narrow card
     instead of forcing the flex item's min-content floor above its
     25%-of-row flex-basis — that floor is what silently dropped this to
     3-per-row between roughly 1081px and 1390px viewport width. */
  width: min(clamp(180px, 20vw, 240px), 100%); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; margin-bottom: clamp(16px, 2vw, 24px);
  position: relative; background: var(--panel);
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: saturate(0) brightness(0.7); transition: all .6s var(--ease);
}
.team-card:hover .team-photo img {
  filter: saturate(1) brightness(1); transform: scale(1.1);
}
.team-card h4 {
  font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); color: #ffffff;
  font-weight: 400; margin-bottom: clamp(6px, 1vw, 10px); line-height: 1.3;
}
.team-card .role {
  font-size: clamp(12px, 1.2vw, 14px); letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint);
}

/* ---------- CSR cards ---------- */
.csr-sec { padding: clamp(90px, 12vh, 150px) 0; background: var(--navy-blue); }
@media (max-width: 767px) {
  .csr-sec { padding: 60px 0; }
}
.csr-sec .eyebrow { color: var(--powder-blue); }
.csr-sec .sec-title { color: #ffffff; }
.csr-sec .sec-title em { color: var(--ivory); }
.csr-sec .link-line { color: #ffffff; border-bottom-color: rgba(255,255,255,.35); }
.csr-sec .link-line:hover { border-color: #ffffff; }
.csr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06); margin-top: 54px; }
.csr-tile { background: var(--bg-4); padding: 0 0 30px; transition: background .4s; display: flex; flex-direction: column; }
.csr-tile:hover { background: var(--bg-2); }
.csr-tile .pic { aspect-ratio: 16/10; overflow: hidden; margin-bottom: 26px; }
.csr-tile .pic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.85); transition: all .6s var(--ease); }
.csr-tile:hover .pic img { filter: saturate(1) brightness(1); transform: scale(1.04); }
.csr-tile h3 { font-size: 24px; font-weight: 400; padding: 0 26px; line-height: 1.25; color: var(--text-dark); }
.csr-tile p { padding: 12px 26px 18px; font-size: 15px; color: var(--text-muted); }
.csr-tile .link-line { margin: auto 26px 0; align-self: flex-start; color: var(--navy-blue); border-bottom-color: rgba(23, 71, 158, 0.35); }
.csr-tile .link-line:hover { border-color: var(--navy-blue); }
.csr-tile:hover h3 { color: #ffffff; }
.csr-tile:hover p { color: var(--ivory); }
.csr-tile:hover .link-line { color: #ffffff; border-bottom-color: rgba(255,255,255,.35); }
.csr-tile:hover .link-line:hover { border-color: #ffffff; }

.media-tile .pic { position: relative; cursor: pointer; }
.play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(5, 7, 12, 0.55); border: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(2px); transition: transform .3s var(--ease), background .3s;
}
.play-icon::after {
  content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #ffffff;
}
.media-tile:hover .play-icon { transform: translate(-50%, -50%) scale(1.1); background: var(--navy-blue, rgba(5,7,12,.75)); }

/* ---------- partners band (infinite logo marquee) ---------- */
.partners { border-block: 1px solid var(--hair); padding: clamp(40px, 5vh, 56px) 0; background: var(--bg-4); }
@media (max-width: 767px) {
  .partners { padding: 60px 0; }
}
.partners .eyebrow { color: var(--navy-blue); }
.partners .sec-title { color: var(--text-dark); }
.partners .sec-title em { color: var(--navy-blue); }
.partners .container { margin-bottom: clamp(40px, 5vh, 60px); }

/* ---------- partners showcase (GSAP vertical column marquee) ---------- */
.partners .partners-showcase.container {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  margin-bottom: 0;
}
.partners-showcase-intro { max-width: 440px; }

.partners-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
.partners-showcase-col {
  position: relative;
  height: clamp(300px, 34vw, 400px);
  overflow: hidden;
}
/* Solid-to-transparent overlays instead of mask-image: a CSS mask on the
   clipping parent combined with the GSAP-animated transform on the track
   inside it is a known trigger for intermittent paint/compositing glitches
   (cards blinking) in some browsers. This gets the same edge fade without
   masking the animated layer.
   Height must exceed one card's rendered height (clamp(64px,6.5vw,84px) below)
   — otherwise a card larger than the fade band gets hard-clipped by
   `overflow: hidden` while still fully legible, reading as a sudden vanish
   instead of a fade. */
.partners-showcase-col::before,
.partners-showcase-col::after {
  content: ""; position: absolute; left: 0; right: 0; height: clamp(90px, 20vw, 140px);
  pointer-events: none; z-index: 1;
}
.partners-showcase-col::before { top: 0; background: linear-gradient(180deg, var(--bg-4), transparent); }
.partners-showcase-col::after { bottom: 0; background: linear-gradient(0deg, var(--bg-4), transparent); }
.partners-showcase-col-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.partners-showcase-col-set {
  display: flex;
  flex-direction: column;
}
/* margin-bottom (not a parent `gap`) so every card — including the last one
   in each duplicated set — carries identical trailing space. That keeps the
   two stacked sets byte-for-byte the same height, which is what makes the
   yPercent -50/0 loop below land on an exact pixel with no seam or skip. */
.partners-showcase-card {
  display: flex; align-items: center; justify-content: center;
  height: clamp(64px, 6.5vw, 84px);
  margin-bottom: clamp(14px, 1.8vw, 22px);
  padding: 14px 20px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .09), 0 2px 6px rgba(15, 23, 42, .06);
}
.partners-showcase-card img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Mobile: 3 full-width horizontal marquee rows (1st/3rd left-to-right, 2nd
   right-to-left — driven in main.js) instead of the desktop/tablet vertical
   columns. Same track/set/card DOM, just re-axised via flex-direction. */
@media (max-width: 767px) {
  .partners .partners-showcase.container { grid-template-columns: 1fr; gap: 32px; }
  .partners-showcase-intro { max-width: none; }
  .partners-showcase-grid { grid-template-columns: 1fr; gap: 14px; }
  .partners-showcase-col { height: auto; overflow: hidden; }
  .partners-showcase-col::before,
  .partners-showcase-col::after {
    top: 0; bottom: 0; right: auto; height: auto;
    width: clamp(36px, 12vw, 64px);
  }
  .partners-showcase-col::before { left: 0; background: linear-gradient(90deg, var(--bg-4), transparent); }
  .partners-showcase-col::after { left: auto; right: 0; background: linear-gradient(270deg, var(--bg-4), transparent); }
  .partners-showcase-col-track { flex-direction: row; width: max-content; }
  .partners-showcase-col-set { flex-direction: row; }
  .partners-showcase-card { margin-bottom: 0; margin-right: clamp(14px, 1.8vw, 22px); }
}
@media (prefers-reduced-motion: reduce) {
  .partners-showcase-col-track { transform: none !important; }
}

/* ---------- giant CTA ---------- */
.cta-final { position: relative; overflow: hidden; text-align: center; padding: clamp(60px, 8vh, 80px) 0; }
@media (max-width: 767px) {
  .cta-final { padding: 60px 0; }
}
.cta-final .glow {
  position: absolute; width: 900px; height: 900px; border-radius: 50%; left: 50%; top: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(111,156,224,.16), transparent 62%); pointer-events: none;
}
.cta-final .eyebrow { justify-content: center; }
.cta-final .eyebrow::before { display: none; }
.cta-final h2 {
  font-size: clamp(40px, 5vw, 80px); font-weight: 380; letter-spacing: -.01em;
  line-height: 1.02; margin: 30px 0 44px;
}
.cta-final h2 em { font-style: italic; color: var(--powder-blue); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hair); padding: clamp(60px, 8vh, 80px) 0 clamp(30px, 4vh, 36px); background: var(--bg-2); }
@media (max-width: 767px) {
  .site-footer { padding: 60px 0; }
}
.site-footer .top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(30px, 4vw, 50px); padding-bottom: clamp(50px, 6vh, 64px); }
.site-footer .brand img { height: clamp(40px, 4vw, 52px); margin-bottom: clamp(20px, 2.5vw, 32px); }
.site-footer .brand .contact-info { list-style: none; padding: 0; margin: 0; }
.site-footer .brand .contact-info li { color: var(--ivory); font-size: clamp(14px, 1.1vw, 15px); line-height: 1.6; margin-bottom: clamp(8px, 1vw, 12px); display: flex; align-items: flex-start; gap: 10px; }
.site-footer .brand .contact-info li:last-child { margin-bottom: 0; }
.site-footer .brand .contact-info .icon { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.4; flex-shrink: 0; min-width: 20px; }
.site-footer .brand .contact-info .icon svg { width: 1em; height: 1em; display: block; color: var(--sky-blue); }
.site-footer .brand .contact-info a { color: var(--sky-blue); transition: color .3s; }
.site-footer .brand .contact-info a:hover { color: var(--powder-blue); }
.site-footer .footer-nav h4 { color: var(--faint); font-size: clamp(11px, 1.2vw, 12px); letter-spacing: .28em; text-transform: uppercase; margin-bottom: clamp(16px, 2vw, 22px); font-weight: 600; }
.site-footer .links { display: flex; flex-direction: column; gap: clamp(4px, 0.5vw, 8px); }
.site-footer .links a { display: block; color: var(--ivory); font-size: clamp(15px, 1.2vw, 16px); padding: clamp(4px, 0.5vw, 6px) 0; transition: color .3s; }
.site-footer .links a:hover { color: var(--powder-blue); }
.site-footer .bottom {
  border-top: 1px solid var(--hair); padding-top: clamp(20px, 3vh, 30px); font-size: clamp(12px, 1.1vw, 13.5px); color: var(--faint);
  display: flex; justify-content: center; text-align: center;
}

/* ---------- 404 error page ---------- */
.error-404 { min-height: 100vh; display: flex; align-items: center; padding: 210px 0 100px; }
.error-404 .eyebrow { margin-bottom: 30px; }
.error-404-num {
  font-family: var(--serif); font-size: clamp(120px, 22vw, 340px); font-weight: 380;
  line-height: .9; letter-spacing: -.02em; color: var(--ivory);
}
.error-404 .intro { max-width: 560px; margin-top: 30px; font-size: clamp(17px, 1.5vw, 21px); }
.error-404 .actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 42px; }

.page-band { height: clamp(320px, 52vh, 560px); overflow: hidden; position: relative; }
.page-band img { width: 100%; height: 120%; object-fit: cover; opacity: .65; }
.page-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg), transparent 30%, transparent 70%, var(--bg)); }

/* ---------- about page ---------- */
.vm-sec { padding-top: 90px; padding-bottom: clamp(90px, 12vh, 150px); background: var(--bg-4); }
@media (max-width: 767px) {
  .vm-sec { padding-top: 60px; padding-bottom: 60px; }
}
.vm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.vm-col { background: #ffffff; padding: clamp(40px, 5vw, 70px); }
.vm-col .eyebrow { margin-bottom: 16px; color: var(--navy-blue); }
.vm-col h3 { font-size: clamp(28px, 2.6vw, 40px); color: var(--text-dark); font-weight: 400; margin-bottom: 24px; }
.vm-col p { font-family: var(--serif); font-size: clamp(21px, 1.9vw, 28px); line-height: 1.45; color: var(--text-dark); font-weight: 350; }
.values-sec { background: var(--bg-2); padding-block: clamp(90px, 12vh, 150px); }
@media (max-width: 767px) {
  .values-sec { padding-block: 60px; }
}
.values-sec .eyebrow { margin-bottom: 24px; }
.values-list { border-top: 1px solid var(--hair); margin-top: 54px; }
.value-row {
  display: grid; grid-template-columns: 80px minmax(180px, 300px) 1fr; gap: 30px;
  align-items: baseline; padding: 34px 16px; border-bottom: 1px solid var(--hair);
  transition: background .3s var(--ease), padding-left .35s var(--ease);
}
.value-row:hover { background: var(--panel); padding-left: 32px; }
.value-row .no { font-family: var(--serif); font-style: italic; color: var(--sky-blue); font-size: 17px; }
.value-row h4 { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 34px); color: #ffffff; font-weight: 400; }
.value-row p { font-size: 16px; color: var(--muted); }

/* ---------- subsidiaries page ---------- */
.subs-sec { background: var(--bg-4); padding-block: clamp(90px, 12vh, 150px); }
@media (max-width: 767px) {
  .subs-sec { padding-block: 60px; }
}
.sub-feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--hair); border-top: 1px solid var(--hair);
}
.sub-feature:first-of-type { border-top: 0; }
.sub-feature > * { background: #ffffff; padding: clamp(30px, 4vw, 60px); }
.sub-feature.rev .side { order: 2; }
.sub-feature .side { position: sticky; top: 130px; align-self: start; }
.sub-feature .eyebrow { color: var(--navy-blue); }
.sub-feature h2 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 380; line-height: 1.08; margin: 18px 0 24px; color: var(--text-dark); }
.sub-feature .division-image {
  margin-top: 24px; aspect-ratio: 16/9; overflow: hidden;
  border-radius: 4px;
}
.sub-feature .division-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: saturate(0.7) brightness(0.85); transition: all 0.6s var(--ease);
}
.sub-feature .division-image.division-image--bottom-align img { object-position: center 100%; }
.sub-feature:hover .division-image img { filter: saturate(1) brightness(1); transform: scale(1.04); }
.sub-feature .body p { margin-bottom: 18px; color: var(--text-muted); }
.sub-feature .body ul { margin: 0 0 18px 20px; list-style: none; }
.sub-feature .body ul li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--hair); color: var(--text-muted); }
.sub-feature .body ul li::before { content: "—"; position: absolute; left: 0; color: var(--navy-blue); }
.sub-feature .link-line { color: var(--navy-blue); border-bottom-color: rgba(23, 71, 158, 0.35); }
.sub-feature .link-line:hover { border-color: var(--navy-blue); }

/* ---------- partners page ---------- */
.partners-section {
    /* padding: clamp(40px, 6vw, 80px) 0; */
}

.partners-section > .container {
  padding-block: 60px;
}

.partners-group { margin-top: clamp(48px, 6vw, 80px); }
.partners-group:first-child { margin-top: 0; }

.partners-group h2 {
  font-size: clamp(22px, 2.2vw, 30px);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  margin-top: clamp(24px, 3vw, 36px);
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(12px, 1.6vw, 18px);
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--bg-2);
  transition: background .4s;
}

.partner-card:hover {
  background: var(--panel);
}

.partner-card .partner-logo {
  width: 100%;
  max-width: 128px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 4px;
  padding: 10px;
}

.partner-card .partner-logo img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.partner-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.2;
  color: var(--ivory);
  margin: 0;
}

.partner-card--empty {
  min-height: 140px;
  background: transparent;
  outline: 1px dashed var(--hair);
  outline-offset: -1px;
}
.partner-card--empty:hover { background: transparent; }

/* Responsive breakpoints */
@media (max-width: 1023px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- forms ---------- */
.form-sec { padding: 60px 0 140px; }
@media (max-width: 767px) {
  .form-sec { padding: 60px 0; }
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.form-card { border: 1px solid var(--hair); background: var(--bg-2); padding: clamp(30px, 4vw, 56px); }
.field { margin-bottom: 24px; }
.field label { display: block; color: var(--ivory); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid rgba(147,149,152,.25); background: transparent;
  padding: 12px 2px; font-family: var(--sans); font-size: 17px; color: var(--ivory);
  transition: border-color .3s; border-radius: 0;
}
.field select { background: var(--bg-2); }
.field select option { background: var(--bg-2); color: var(--ivory); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--sky-blue); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.form-card button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }

/* Cloudflare Turnstile, execute-on-submit mode. Verification only runs when
   the visitor clicks Send, and for the vast majority of visitors it resolves
   silently with no visible widget at all — so no reserved height is needed
   here. On the rare submission Cloudflare needs to actually challenge, the
   widget renders itself at that moment; a one-off layout shift then is an
   acceptable tradeoff for not reserving dead space on every other visit. */
.cf-turnstile { margin-bottom: 8px; max-width: 100%; }
.cf-turnstile:empty { margin-bottom: 0; }

/* Post-submit confirmation panel — replaces the form fields entirely so a
   submitted enquiry can't be edited and resent by mistake. */
.form-success { text-align: center; padding: 12px 0; }
.form-success-message { color: var(--ivory); font-size: 17px; line-height: 1.6; margin-bottom: 24px; }

/* Rate-limit panel — replaces the form entirely rather than showing an
   inline error, so a rapid-retry source doesn't get handed a still-editable,
   instantly-resubmittable form. Deliberately no button here. */
.form-blocked { text-align: center; padding: 12px 0; }
.form-blocked-message { color: var(--faint); font-size: 15px; line-height: 1.6; }
.form-blocked-message a { color: var(--sky-blue); text-decoration: underline; }

/* File upload specific styles */
.file-requirements {
  font-size: 12px; color: var(--faint); margin: 4px 0 8px 0; letter-spacing: 0.1em;
}

input[type="file"] {
  border: 1px dashed rgba(147,149,152,.3) !important;
  padding: 20px !important;
  background: var(--bg) !important;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
}

input[type="file"]:hover {
  border-color: var(--sky-blue) !important;
}

input[type="file"]::file-selector-button {
  background: var(--sky-blue);
  color: #05070c;
  border: none;
  padding: 8px 16px;
  margin-right: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
}

input[type="file"]::file-selector-button:hover {
  background: var(--powder-blue);
}
.form-status { margin-top: 18px; font-size: 14.5px; min-height: 1.4em; }
.form-status.is-success { color: #7fd99a; }
.form-status.is-error { color: #e08a8a; }
.info-blocks { display: grid; gap: 40px; }
.info-block h3 { font-size: 26px; font-weight: 400; margin-bottom: 10px; }
.info-block a { color: var(--sky-blue); }
.map-frame { border: 1px solid var(--hair); width: 100%; height: 440px; margin-top: 80px; filter: grayscale(1) invert(.92) contrast(.9); }

/* ---------- location accordion ---------- */
.loc-accordion { border-top: 1px solid var(--hair); margin-top: 6px; }
.loc-item { border-bottom: 1px solid var(--hair); }
.loc-trigger {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 18px 2px; background: none; border: 0;
  font-family: var(--sans); text-align: left; color: var(--ivory);
}
.loc-flag { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(147,149,152,.25); }
.loc-name { flex: 1; font-size: 15.5px; font-weight: 600; letter-spacing: .02em; }
.loc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.loc-panel-inner { overflow: hidden; }
.loc-panel-inner p { padding-bottom: 20px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.loc-item.is-open .loc-panel { grid-template-rows: 1fr; }

/* ---------- csr/media listing ---------- */
.listing { padding: 40px 0 120px; }

/* ---------- gsap reveal defaults (pre-hidden, JS animates in) ---------- */
.gs-reveal { opacity: 0; transform: translateY(44px); }
.gs-reveal.shown { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

/* laptop tier — wide but vertically short viewports (14"-16" panels:
   1440x900, 1512x982, 1728x1117, 1920x1080/1200 with browser chrome).
   Distinct from true desktop monitors, which are usually also tall
   (1920x1200+ unconstrained, or ultrawide/4K) and keep the larger scale
   above. vw-driven clamp() maxes assumed a spacious desktop monitor
   viewed from distance; on a laptop panel viewed close-up the same
   pixel size reads oversized, so every display/heading max comes down
   here while body/intro copy nudges up slightly for better balance. */
@media (min-width: 1440px) and (max-height: 1000px) {
  .hero h1 { font-size: clamp(40px, 5.4vw, 86px); }
  .hero .sub { font-size: 18px; }
  .sec-title { font-size: clamp(32px, 3.6vw, 58px); }
  .cta-final h2 { font-size: clamp(44px, 7vw, 110px); }
  .manifesto { padding: clamp(70px, 10vh, 120px) 0; }
  .manifesto p { font-size: clamp(24px, 2.6vw, 40px); }
  .stat-cell .n { font-size: clamp(36px, 3.4vw, 58px); }
  .leaders { padding: clamp(70px, 9vh, 120px) 0 30px; }
  .leader-feature { padding: clamp(40px, 5vh, 70px) 0; }
  .leader-feature h3 { font-size: clamp(26px, 2.6vw, 42px); }
  .leader-feature p { font-size: 15.5px; }
  .csr-sec { padding: clamp(60px, 8vh, 100px) 0; }
  .vm-sec { padding: clamp(60px, 8vh, 100px) 0; }
  .values-sec { padding-block: clamp(60px, 8vh, 100px); }
  .subs-sec { padding-block: clamp(60px, 8vh, 100px); }
  .vm-col p { font-size: clamp(19px, 1.6vw, 24px); }
  .value-row h4 { font-size: clamp(20px, 1.8vw, 28px); }
  .sub-feature h2 { font-size: clamp(26px, 2.6vw, 42px); }
  .error-404-num { font-size: clamp(100px, 16vw, 220px); }
  .error-404 .intro { font-size: 18px; }
  .d-panel { min-height: 62vh; }
}

@media (max-width: 1080px) {
  .stats .grid { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(odd) { border-left: 0; }
  .stat-cell { border-top: 1px solid var(--hair); }
  .stat-cell:nth-child(-n+2) { border-top: 0; }
  .leader-feature, .leader-feature.rev { grid-template-columns: 1fr; }
  .leader-feature.rev .portrait { order: 0; }
  .portrait { max-width: 100%; opacity: 1 !important; }
  .portrait img { transform: rotateY(0deg) scale(1.05) !important; }
  .portrait:hover img { transform: rotateY(0deg) scale(1.05); }
  .portrait:hover .frame { transform: rotateY(0deg); }
  .csr-grid { grid-template-columns: 1fr; }
  .team-card { flex-basis: 50%; padding: 25px 20px; }
  .vm-cols { grid-template-columns: 1fr; }
  .sub-feature { grid-template-columns: 1fr; }
  .sub-feature .side { position: static; }
  .sub-feature.rev .side { order: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .value-row { grid-template-columns: 50px 1fr; row-gap: 6px; }
  .value-row p { grid-column: 2; }
  .mgmt-row { grid-template-columns: 58px 1fr auto; }
  .mgmt-row .no { display: none; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
/* ---------- Scroll Cue Positioning Fix ---------- */
@media (min-width: 768px) {
  .hero .below {
    max-width: calc(100% - 120px); /* Leave room for scroll cue */
  }
  .scroll-cue {
    right: var(--pad);
    bottom: clamp(40px, 6vh, 80px); /* Better vertical positioning */
  }
}

@media (max-width: 767px) {
  .scroll-cue { display: none; }
}

/* ---------- footer mobile: logo full-width row, nav links 3-up ---------- */
@media (max-width: 767px) {
  .site-footer .top { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
  .site-footer .brand { grid-column: 1 / -1; }
}

/* ---------- Leader Bio Side Panel ---------- */
.leader-bio-panel {
  position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.leader-bio-panel.is-active { pointer-events: auto; opacity: 1; }

.bio-panel-overlay {
  position: absolute; inset: 0; background: rgba(5, 7, 12, 0.8);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.4s var(--ease);
}
.leader-bio-panel.is-active .bio-panel-overlay { opacity: 1; }

.bio-panel-content {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: var(--bg-4); border-left: 1px solid var(--hair);
  transform: translateX(100%); transition: transform 0.5s var(--ease);
  overflow: visible; display: grid;
  grid-template-columns: 30% 70%;
}
.leader-bio-panel.is-active .bio-panel-content { transform: translateX(0); }

.bio-panel-close {
  position: absolute; top: 24px; right: 24px; z-index: 1001;
  width: 40px; height: 40px; background: rgba(0,0,0,.02); border: 1px solid rgba(0,0,0,.08);
  cursor: pointer; padding: 8px; display: block; border-radius: 4px;
  transition: transform 0.3s var(--ease);
}
.bio-panel-close:hover { transform: scale(1.1); }
.bio-panel-close span {
  width: 24px; height: 2px; background: var(--text-muted); border-radius: 1px;
  display: block; position: absolute; top: 50%; left: 50%;
  transition: transform 0.3s, opacity 0.3s;
}
.bio-panel-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}
.bio-panel-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Left column - leader info */
.bio-panel-left {
  padding: clamp(60px, 8vh, 100px) clamp(30px, 4vw, 50px);
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left; border-right: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
}

.bio-panel-portrait {
  width: clamp(180px, 20vw, 280px); height: clamp(220px, 25vw, 340px);
  border-radius: 4px; overflow: hidden; margin: 0 0 clamp(30px, 4vw, 40px) 0;
  background: var(--bg-2); border: 3px solid var(--ivory);
}

.bio-panel-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}

.bio-panel-header { margin-bottom: 0; }
.bio-panel-header .eyebrow {
  color: var(--navy-blue); font-size: clamp(11px, 1.2vw, 13px); letter-spacing: 0.3em;
  text-transform: uppercase; font-weight: 600; margin-bottom: clamp(12px, 1.5vw, 16px);
}
.bio-panel-header h2 {
  font-size: clamp(20px, 2.4vw, 28px); line-height: 1.15;
  font-weight: 380; color: var(--text-dark); font-family: var(--serif);
}

/* Right column - bio content */
.bio-panel-right {
  padding: clamp(60px, 8vh, 100px) clamp(40px, 5vw, 70px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}

.bio-panel-right::-webkit-scrollbar { width: 4px; }
.bio-panel-right::-webkit-scrollbar-track { background: transparent; }
.bio-panel-right::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); border-radius: 2px; }

.bio-panel-body {
  font-family: var(--sans); font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7; color: var(--text-muted);
  max-width: 800px;
}
.bio-panel-body p { margin-bottom: 24px; }
.bio-panel-body p:last-child { margin-bottom: 0; }

/* Mobile responsive for bio panel */
@media (max-width: 767px) {
  .bio-panel-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .bio-panel-left {
    padding: 50px 30px 40px; border-right: none; border-bottom: 1px solid rgba(0,0,0,.08);
    align-items: center; text-align: center;
  }
  .bio-panel-header .eyebrow { justify-content: center; }
  .bio-panel-portrait {
    width: 140px; height: 140px; margin: 0 auto 24px;
  }
  .bio-panel-right { padding: 40px 30px 50px; overflow-y: visible; }
  .bio-panel-close { top: 16px; right: 16px; }
}

/* CSR Side Panel */
.csr-panel {
  position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.csr-panel.is-active { pointer-events: auto; opacity: 1; }

.csr-panel-overlay {
  position: absolute; inset: 0; background: rgba(5, 7, 12, 0.8);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.4s var(--ease);
}
.csr-panel.is-active .csr-panel-overlay { opacity: 1; }

.csr-panel-content {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: var(--bg-4); border-left: 1px solid var(--hair);
  transform: translateX(100%); transition: transform 0.5s var(--ease);
  overflow: visible; display: grid;
  grid-template-columns: 40% 60%;
}
.csr-panel.is-active .csr-panel-content { transform: translateX(0); }

.csr-panel-close {
  position: absolute; top: 24px; right: 24px; z-index: 1001;
  width: 40px; height: 40px; background: rgba(0,0,0,.02); border: 1px solid rgba(0,0,0,.08);
  cursor: pointer; padding: 8px; display: block; border-radius: 4px;
  transition: transform 0.3s var(--ease);
}
.csr-panel-close:hover { transform: scale(1.1); }
.csr-panel-close span {
  width: 24px; height: 2px; background: var(--text-muted); border-radius: 1px;
  display: block; position: absolute; top: 50%; left: 50%;
  transition: transform 0.3s, opacity 0.3s;
}
.csr-panel-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}
.csr-panel-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Left column - CSR info */
.csr-panel-left {
  padding: clamp(60px, 8vh, 100px) clamp(30px, 4vw, 50px);
  display: flex; flex-direction: column; gap: clamp(20px, 3vh, 32px);
  border-right: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
}

.csr-panel-image {
  aspect-ratio: 16/10; overflow: hidden; border-radius: 4px;
  width: 100%; max-height: 400px;
}
.csr-panel-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}

.csr-panel-header { margin-bottom: 0; }
.csr-panel-header .eyebrow {
  color: var(--navy-blue); font-size: clamp(11px, 1.2vw, 13px); letter-spacing: 0.3em;
  text-transform: uppercase; font-weight: 600; margin-bottom: clamp(12px, 1.5vw, 16px);
}
.csr-panel-header h2 {
  font-size: clamp(24px, 2.8vw, 36px); line-height: 1.12;
  font-weight: 380; color: var(--text-dark);
}

/* Right column - CSR content */
.csr-panel-right {
  padding: clamp(60px, 8vh, 100px) clamp(40px, 5vw, 70px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.csr-panel-right::-webkit-scrollbar { width: 4px; }
.csr-panel-right::-webkit-scrollbar-track { background: transparent; }
.csr-panel-right::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); border-radius: 2px; }

.csr-panel-body {
  font-family: var(--sans); font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.7; color: var(--text-muted);
}
.csr-panel-body p { margin-bottom: 24px; }
.csr-panel-body p:last-child { margin-bottom: 0; }

/* Mobile responsive for CSR panel */
@media (max-width: 767px) {
  .csr-panel-content {
    width: 100vw; max-width: 100vw;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .csr-panel-left {
    padding: 50px 30px 40px; border-right: none; border-bottom: 1px solid rgba(0,0,0,.08);
  }
  .csr-panel-right { padding: 40px 30px 50px; overflow-y: visible; }
  .csr-panel-close { top: 16px; right: 16px; }
}

/* ---------- Media Panel ---------- */
.media-panel {
  position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.media-panel.is-active { pointer-events: auto; opacity: 1; }

.media-panel-overlay {
  position: absolute; inset: 0; background: rgba(5, 7, 12, 0.8);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.4s var(--ease);
}
.media-panel.is-active .media-panel-overlay { opacity: 1; }

.media-panel-content {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 60%; max-width: 1200px;
  /* mobile override below */
  background: var(--bg-4); border-left: 1px solid var(--hair);
  transform: translateX(100%); transition: transform 0.5s var(--ease);
  overflow: visible; display: block;
}
.media-panel.is-active .media-panel-content { transform: translateX(0); }

.media-panel-close {
  position: absolute; top: 24px; right: 24px; z-index: 1001;
  width: 40px; height: 40px; background: rgba(0,0,0,.02); border: 1px solid rgba(0,0,0,.08);
  cursor: pointer; padding: 8px; display: block; border-radius: 4px;
  transition: transform 0.3s var(--ease);
}
.media-panel-close:hover { transform: scale(1.1); }
.media-panel-close span {
  width: 24px; height: 2px; background: var(--text-muted); border-radius: 1px;
  display: block; position: absolute; top: 50%; left: 50%;
  transition: transform 0.3s, opacity 0.3s;
}
.media-panel-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}
.media-panel-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Media panel content - single column layout */
.media-panel-content {
  padding: clamp(60px, 8vh, 100px) clamp(40px, 5vw, 70px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.media-panel-content::-webkit-scrollbar { width: 4px; }
.media-panel-content::-webkit-scrollbar-track { background: transparent; }
.media-panel-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); border-radius: 2px; }

.media-panel-video {
  aspect-ratio: 16/9; background: #000; border-radius: 4px; overflow: hidden;
  margin-bottom: clamp(32px, 4vh, 48px);
}
.media-panel-video video {
  width: 100%; height: 100%; object-fit: contain; display: block; background: #000;
}

.media-panel-header { margin-bottom: clamp(24px, 3vh, 36px); }
.media-panel-header .eyebrow {
  color: var(--navy-blue); font-size: clamp(11px, 1.2vw, 13px); letter-spacing: 0.3em;
  text-transform: uppercase; font-weight: 600; margin-bottom: clamp(12px, 1.5vw, 16px);
}
.media-panel-header h2 {
  font-size: clamp(24px, 2.8vw, 36px); line-height: 1.12;
  font-weight: 380; color: var(--text-dark);
}

.media-panel-body {
  font-family: var(--sans); font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.7; color: var(--text-muted);
}
.media-panel-body p { margin-bottom: 24px; }

/* Mobile responsive for media panel */
@media (max-width: 767px) {
  .media-panel-content { width: 100vw; max-width: 100vw; border-left: none; }
}


/* Mobile responsive for divisions section */
@media (max-width: 767px) {
  .divisions .head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 60px 0;
  }

  /* Pinned horizontal scroll (GSAP) is desktop-only — stack the cards
     in normal document flow instead of a swipeable track on mobile. */
  .h-wrap { overflow: visible; }
  .h-track { flex-direction: column; width: 100%; }

  .d-panel {
    min-height: auto;
    width: 100%;
    padding: 24px;
    border-left: 0;
    border-bottom: 1px solid var(--hair);
  }

  .d-panel .pic {
    max-height: 30vh;
  }

  .d-panel h3 {
    font-size: clamp(18px, 4.5vw, 24px);
  }

  .d-panel p {
    font-size: clamp(13px, 3.2vw, 15px);
  }
}

/* ---------- Responsive Navigation for Target Devices ---------- */

/* Hamburger / full-screen overlay menu for tablet + mobile.
   Covers the whole range where the horizontal nav can't fit (logo + 6 links +
   Contact CTA needs ~1080px+). Horizontal nav resumes at min-width:1081px. */
@media (max-width: 1080px) {
  /* min-height: logo/menu-toggle are position:fixed (pulled out of flow), so
     without it .bar collapses to just its padding and the header's painted
     background falls short of where the fixed logo/button actually sit. */
  .site-header .bar { padding: 16px var(--pad); justify-content: center; min-height: 80px; }
  /* top values below are centers/offsets against the .bar's 80px height above —
     keep both in sync with it, or the logo/button drift off-center in the bar. */
  .logo { position: fixed; top: 40px; left: var(--pad); transform: translateY(-50%); z-index: 102; }
  .logo img { height: 40px; }
  .main-nav a { font-size: 18px; }
  .header-cta { display: none; }
  .nav-contact { display: block; } /* surface Contact inside the overlay */
  .menu-toggle { display: block; position: fixed; top: 12px; right: 20px; z-index: 102; padding: 12px; background: var(--panel); border: 1px solid var(--hair); border-radius: 4px; }

  .main-nav {
    position: fixed; inset: 0; background: var(--bg); flex-direction: column;
    justify-content: center; align-items: center; gap: 28px; transform: translateX(100%);
    transition: transform .4s var(--ease); z-index: 100; padding: 96px 40px 40px;
    text-align: center; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  body.nav-open .main-nav { transform: none; }

  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; margin-top: 12px; text-align: center;
  }
  body.nav-open .dropdown { display: block; }
  .dropdown a { font-size: 15px; padding: 12px 16px; display: block; text-align: center; }

  .menu-toggle span { width: 26px; height: 2px; margin: 6px 0; }
  body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Mobile hero video framing */
  .hero .bg video { object-position: calc(50% + 520px) center; }
  .hero h1 { font-size: clamp(40px, 8vw, 72px); }

  /* Hero description and spacing adjustments */
  .hero .sub { max-width: 456px; font-size: 17px; }
  .hero .below { margin-top: 22px; }

  /* Button size matching - same ratio as header-cta (though hidden on mobile) */
  .btn { padding: 13px 26px; font-size: 12px; }
}

/* Narrow phones: the bilingual wordmark logo is ~7:1 aspect ratio, so at
   40px tall it's ~277px wide — collides with the fixed hamburger button
   below ~380px viewport width. Shrink it so the two never overlap. */
@media (max-width: 390px) {
  .logo img { height: 30px; }
}

/* Small 14" laptops: 1081-1366px */
@media (min-width: 1081px) and (max-width: 1365px) {
  .site-header .bar { padding: 20px var(--pad); }
  .main-nav { gap: 20px; }
  .main-nav > li { position: relative; }
  .main-nav a { font-size: 12px; letter-spacing: .15em; white-space: nowrap; }
  .main-nav .caret { font-size: 8.5px; margin-left: 4px; }
  .logo img { height: 50px; }
  .dropdown { min-width: 220px; }

  /* Hero overlap fix */
  .hero .below { max-width: calc(100% - 140px); }
  .scroll-cue { right: calc(var(--pad) + 10px); bottom: 50px; }
}

/* iPad: 810x1080px (vertical) and iPad landscape (1080x810px)
   Nav here is the hamburger overlay (see max-width:1080px block); only content
   adjustments live here now. */
@media (min-width: 768px) and (max-width: 1080px) {
  /* Hero overlap fix */
  .hero .below { max-width: calc(100% - 100px); }
  .scroll-cue { right: calc(var(--pad) + 5px); bottom: 45px; }

  /* Hero description and spacing adjustments */
  .hero .sub { max-width: 532px; font-size: 20px; }
  .hero .below { margin-top: 26px; }

  /* Button size matching */
  .btn { padding: 11px 22px; font-size: 12px; }
}

/* 14" Laptop and Desktop: 1366x768px and up */
@media (min-width: 1366px) {
  .site-header .bar { padding: 24px var(--pad); }
  .main-nav { gap: 22px; }
  .main-nav > li { position: relative; }
  .main-nav a { font-size: 12px; white-space: nowrap; }
  .main-nav .caret { font-size: 9px; margin-left: 5px; }
  .logo img { height: 56px; }
  .header-cta { padding: 16px 32px; }
  .dropdown { min-width: 240px; }

  /* Hero overlap fix */
  .hero .below { max-width: calc(100% - 160px); }
  .scroll-cue { right: calc(var(--pad) + 15px); bottom: 60px; }

  /* Hero description and spacing adjustments for 14" laptops */
  .hero .sub { max-width: 760px; font-size: 24px; }
  .hero .below { margin-top: 32px; }

  /* Button size matching - same ratio as header-cta */
  .btn { padding: 16px 32px; }
  .header-cta { padding: 16px 32px; }
}
