/* ==========================================================================
   M Group Africa — design tokens
   ========================================================================== */
:root {
  --onyx: #0E0D0B;
  --onyx-2: #16140F;
  --onyx-3: #1F1C16;
  --ivory: #F3EDE2;
  --ivory-2: #EAE2D3;
  --paper: #FAF7F1;
  --gold: #C9A45C;
  --gold-light: #E9D29A;
  --gold-deep: #7E6230;       /* gold for small text on ivory (AA) */
  --ink: #15130F;
  --ink-soft: #4F483D;        /* body text on ivory */
  --mist: #B3AA9A;            /* body text on onyx */
  --line-dark: rgba(201, 164, 92, 0.22);
  --line-light: rgba(21, 19, 15, 0.14);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--onyx);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 350;
  font-size: 17px;
  line-height: 1.7;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--onyx); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--gold); color: var(--onyx); padding: 10px 18px;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

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

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.light .eyebrow { color: var(--gold-deep); }

.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7.2vw, 104px); line-height: 1.02; letter-spacing: -.015em;
  margin: 0;
}
.display em, .h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
.light .h2 em { color: var(--gold-deep); }
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 68px); line-height: 1.06; letter-spacing: -.01em;
  margin: 22px 0 0;
}
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.65; color: var(--mist); max-width: 60ch; }
.light .lede { color: var(--ink-soft); }
p { margin: 0 0 1.1em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 30px;
  font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--gold); cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
@media (max-width: 560px) { .btn { padding: 0 20px; letter-spacing: .12em; gap: 10px; } }
.btn--gold { background: var(--gold); color: var(--onyx); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(243,237,226,.35); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.light .btn--ghost { color: var(--ink); border-color: var(--line-light); }
.light .btn--ghost:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

/* ---------- placeholder text (to be supplied by client) ---------- */
.tbc { color: var(--gold); font-style: italic; }
.light .tbc { color: var(--gold-deep); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
  padding: 22px 0;
}
.header.is-scrolled {
  background: rgba(14, 13, 11, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
  padding: 12px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark { width: 40px; height: 40px; }
.brand__rule { width: 1px; height: 34px; background: var(--line-dark); }
.brand__word { width: 132px; height: auto; }
@media (max-width: 400px) { .brand__rule, .brand__word { display: none; } .brand__mark { width: 44px; height: 44px; } }
.nav { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 30px); }
.nav a:not(.btn) {
  font-size: 12px; font-weight: 450; letter-spacing: .17em; text-transform: uppercase;
  color: rgba(243,237,226,.8); position: relative; padding: 10px 0; white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ivory); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 22px; font-size: 12px; white-space: nowrap; }
.menu-btn {
  display: none; width: 48px; height: 48px; background: none; border: 1px solid var(--line-dark);
  cursor: pointer; position: relative;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  position: absolute; left: 50%; width: 20px; height: 1px; background: var(--ivory);
  transform: translateX(-50%); transition: transform .3s var(--ease), opacity .2s;
}
.menu-btn span { top: 50%; }
.menu-btn span::before, .menu-btn span::after { content: ""; left: 0; transform: none; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 8px;
    background: var(--onyx); opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 34px; letter-spacing: 0; text-transform: none; }
  .nav .btn { margin-top: 20px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: 130px 0 0; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(45% 60% at 72% 48%, rgba(201,164,92,.13), transparent 70%),
    var(--onyx);
}
.hero__canvas { position: absolute; inset: 0; z-index: -1; display: block; }
.hero__main { flex: 1; display: flex; align-items: center; }
.hero__content { max-width: 620px; padding: 24px 0 56px; }
.hero .eyebrow { margin-bottom: 30px; }

/* kinetic headline: each word is split into characters that rise into place */
.kinetic { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 6.6vw, 104px); line-height: 1; letter-spacing: -.015em; }
.kinetic__slot { display: grid; overflow: hidden; padding: .04em 0 .16em; margin-bottom: -.12em; }
.kinetic__slot--gold { font-style: italic; color: var(--gold); }
.kw { grid-area: 1 / 1; white-space: nowrap; }
.has-motion .kw .ch { display: inline-block; transform: translateY(115%); transition: transform .95s cubic-bezier(.19, 1, .22, 1); }
.has-motion .kw.is-in .ch { transform: none; }
.has-motion .kw.is-out .ch { transform: translateY(-115%); transition-duration: .55s; transition-timing-function: cubic-bezier(.6, 0, .8, .4); transition-delay: 0s !important; }

.hero__through { display: flex; align-items: center; gap: 16px; margin: 30px 0 0; min-height: 24px; }
.hero__through-k { font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--mist); }
.hero__through-k::after { content: ""; display: inline-block; vertical-align: middle; width: 36px; height: 1px; background: var(--gold); margin-left: 16px; }
.hero__through-v { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ivory); opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.hero__through-v.is-in { opacity: 1; transform: none; }
.hero .lede { margin: 26px 0 40px; font-size: clamp(17px, 1.4vw, 19px); max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* first load: text is held until the brand fonts are ready, then eases in (no visible font swap) */
.header__inner, .hero__content > *, .hero__index { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.fonts-loading .header__inner { opacity: 0; }
.fonts-loading .hero__content > *, .fonts-loading .hero__index { opacity: 0; transform: translateY(14px); }
.hero__content > .hero__through { transition-delay: .5s; }
.hero__content > .lede { transition-delay: .65s; }
.hero__content > .hero__ctas { transition-delay: .8s; }
.hero__index { transition-delay: 1s; }
/* the static headline is for no-JS visitors; hero.js replaces it with the animated one */
html:not(.no-js) .kw--static { opacity: 0; animation: show-static 0s 3s forwards; }
@keyframes show-static { to { opacity: 1; } }

/* sector index along the bottom of the hero */
.hero__index { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line-dark); }
.hero__tab {
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--mist);
  padding: 20px 16px 26px 0; min-height: 44px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  position: relative; transition: color .3s var(--ease);
}
.hero__tab:hover, .hero__tab.is-active { color: var(--ivory); }
.hero__tab-n { font-family: var(--serif); font-size: 15px; color: var(--gold); }
.hero__tab-l { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
.hero__tab-bar { position: absolute; left: 0; right: 16px; top: -1px; height: 1px; overflow: hidden; }
.hero__tab-bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero__tab.is-active .hero__tab-bar i { animation: tabfill var(--dur, 4600ms) linear forwards; }
@keyframes tabfill { to { transform: scaleX(1); } }

@media (max-width: 899px) {
  .hero { padding-top: 100px; }
  .hero__main { align-items: flex-end; }
  .hero__content { padding-top: min(40vh, 360px); padding-bottom: 36px; }
  /* fixed-size text area so the changing lines never push the buttons around */
  .kinetic { font-size: min(11.2vw, 52px); }
  .hero__through { height: 58px; align-items: flex-start; margin-top: 24px; }
  .hero__through-k { padding-top: 7px; flex: none; }
  .hero__through-v { font-size: 19px; line-height: 1.35; }
  .hero .lede { margin: 18px 0 34px; }
  .hero__canvas { opacity: .9; }
  .hero__index { grid-template-columns: repeat(7, 1fr); }
  .hero__tab { padding: 16px 0 20px; justify-content: center; }
  .hero__tab-l { display: none; }
  .hero__tab-bar { right: 6px; }
}

/* key figures (in The Group section) */
.figures { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.figures + .values { margin-top: 0; border-top: 0; }
.stat { padding: 30px 24px 34px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-light); }
.stat__num { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 60px); line-height: 1; color: var(--gold-deep); }
.stat__label { margin-top: 10px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 760px) {
  .figures { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-light); }
}

/* marquee of company names */
.marquee {
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  overflow: hidden; padding: 22px 0; background: var(--onyx-2);
}
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee__track span {
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 30px);
  color: rgba(243,237,226,.72); padding: 0 34px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 68px;
}
.marquee__track span::after { content: "◆"; font-style: normal; font-size: 9px; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--section) 0; position: relative; }
.light { background: var(--ivory); color: var(--ink); }
.paper { background: var(--paper); color: var(--ink); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px; align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.section__head .lede { margin: 0; }
@media (max-width: 900px) { .section__head { grid-template-columns: 1fr; } }

/* ---------- The Group ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 120px); }
.about__quote {
  font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.25; font-style: italic;
  color: var(--ink); margin: 40px 0 0; padding-left: 28px; border-left: 1px solid var(--gold);
}
.about__body p { color: var(--ink-soft); font-size: 18px; }
.about__body p:first-child { font-family: var(--serif); font-size: 25px; line-height: 1.5; color: var(--ink); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line-light); }
.value { padding: 36px 28px 8px 0; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--line-light); }
.value__n { font-family: var(--serif); font-size: 15px; color: var(--gold-deep); letter-spacing: .1em; }
.value h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 14px 0 10px; }
.value p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; margin: 0; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 28px 0 8px; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line-light); }
}

/* ---------- Portfolio grid ---------- */
.sectors { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
  min-height: 44px; padding: 0 20px; border: 1px solid var(--line-dark); background: transparent;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); cursor: pointer;
  transition: all .25s var(--ease);
}
.chip:hover { color: var(--ivory); border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--onyx); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.card {
  background: var(--onyx); display: flex; flex-direction: column; padding: 18px 18px 28px;
  transition: background .35s var(--ease);
}
.card[hidden] { display: none; }
.card:hover { background: var(--onyx-3); }
.card__plate { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.card__plate img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.card__plate--white { background: #fff; }
.card__plate--black { background: #000; }
.card:hover .card__plate img { transform: scale(1.04); }
.card__body { padding: 24px 8px 0; display: flex; flex-direction: column; flex: 1; }
.card__sector { font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.card__name { font-family: var(--serif); font-size: 29px; font-weight: 500; line-height: 1.15; margin: 10px 0 10px; }
.card__desc { color: var(--mist); font-size: 15.5px; line-height: 1.6; margin: 0 0 22px; }
.card__more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory);
}
.card__more svg { width: 16px; transition: transform .3s var(--ease); color: var(--gold); }
.card:hover .card__more svg { transform: translateX(5px); }
/* closing tile: fills the row the tenth company leaves open */
.card--cta { grid-column: span 2; background: var(--onyx-2); justify-content: center; }
.card--cta .card__body { padding: 34px 30px; max-width: 46ch; }
.card--cta .card__name { font-size: clamp(30px, 2.6vw, 38px); margin-top: 14px; }
.card--cta .card__desc { font-size: 16.5px; margin-bottom: 26px; }
.card--cta .card__more { margin-top: 0; }
@media (max-width: 1020px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } .card--cta { grid-column: span 1; } }

/* ---------- Company chapters ---------- */
.chapters { display: grid; grid-template-columns: 240px 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.rail { position: sticky; top: 110px; }
.rail__title { font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 18px; }
.rail ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-light); }
.rail a {
  display: block; padding: 9px 0 9px 20px; margin-left: -1px; border-left: 1px solid transparent;
  font-family: var(--serif); font-size: 19px; color: var(--ink-soft); transition: color .25s, border-color .25s;
}
.rail a:hover { color: var(--ink); }
.rail a.is-active { color: var(--ink); border-left-color: var(--gold-deep); }
@media (max-width: 1100px) { .chapters { grid-template-columns: 1fr; } .rail { display: none; } }

.company { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line-light); scroll-margin-top: 80px; }
.company:first-child { border-top: 0; padding-top: 0; }
.company__top { display: grid; grid-template-columns: 200px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.company__logo { aspect-ratio: 1; border: 1px solid var(--line-light); overflow: hidden; }
.company__logo img { width: 100%; height: 100%; object-fit: contain; }
.company__index { font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); }
.company__name { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin: 10px 0 8px; }
.company__tag { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-deep); margin: 0 0 22px; }
.company__text { color: var(--ink-soft); max-width: 64ch; }
.caps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 36px; }
.caps li { position: relative; padding-left: 26px; font-size: 16px; color: var(--ink-soft); line-height: 1.55; }
.caps li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--gold-deep); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; }
.gallery .ph { aspect-ratio: 4 / 3; }
.gallery--wide-first .ph:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery--portrait .ph { aspect-ratio: 3 / 4; }
@media (max-width: 760px) {
  .company__top { grid-template-columns: 1fr; }
  .company__logo { width: 160px; }
  .caps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery--wide-first .ph:first-child, .gallery .ph { aspect-ratio: 4 / 3; }
  .gallery--portrait .ph { aspect-ratio: 3 / 4; }
}

/* photo placeholder frame — replace with <img> once photography is supplied */
.ph {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(126,98,48,.07) 0 1px, transparent 1px 14px),
    var(--ivory-2);
  border: 1px solid var(--line-light);
  display: flex; align-items: flex-end;
}
.ph { margin: 0; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph__label {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep);
}
.ph__label svg { width: 16px; height: 16px; flex: none; }
.ph--dark { background: repeating-linear-gradient(135deg, rgba(201,164,92,.08) 0 1px, transparent 1px 14px), var(--onyx-3); border-color: var(--line-dark); }
.ph--dark .ph__label { color: var(--gold); }

/* frames holding a real photograph */
.ph--photo { background: var(--onyx); border-color: var(--line-light); }
.ph--photo::after {
  content: ""; position: absolute; inset: auto 0 0; height: 55%;
  background: linear-gradient(to top, rgba(10,9,8,.82), transparent);
  pointer-events: none;
}
.ph--photo .ph__label { color: var(--ivory); z-index: 1; }
.ph--photo img { transition: transform 1.2s var(--ease); cursor: zoom-in; }
.ph--photo:hover img { transform: scale(1.04); }
.ph--top img { object-position: center 15%; }      /* keeps heads in frame */
.ph--contain { background: #fff; }
.ph--contain img { object-fit: contain; }
.ph--contain::after { display: none; }
.ph--contain .ph__label { color: var(--ink); background: rgba(250,247,241,.88); }

/* tap / click a photo to see it full size */
.lightbox {
  position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px); background: rgba(8, 7, 6, .94);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  transform: scale(.97); transition: transform .35s var(--ease);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
}
.lightbox.is-open img { transform: none; }
.lightbox__cap {
  position: absolute; left: 0; right: 0; bottom: clamp(14px, 3vw, 28px); text-align: center;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--mist);
}
.lightbox__close {
  position: absolute; top: clamp(12px, 2.5vw, 26px); right: clamp(12px, 2.5vw, 26px);
  width: 52px; height: 52px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line-dark); color: var(--ivory); cursor: pointer;
  transition: border-color .25s, color .25s;
}
.lightbox__close:hover { border-color: var(--gold); color: var(--gold-light); }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line-dark); color: var(--ivory); cursor: pointer;
}
.lightbox__nav:hover { border-color: var(--gold); color: var(--gold-light); }
.lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__nav--prev { left: clamp(8px, 2vw, 26px); transform: translateY(-50%) rotate(180deg); }
.lightbox__nav--next { right: clamp(8px, 2vw, 26px); }
body.lightbox-open { overflow: hidden; }

/* ==========================================================================
   Leadership
   ========================================================================== */
.chair { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.chair .ph { aspect-ratio: 4 / 5; }
.chair__quote { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 44px); line-height: 1.22; margin: 28px 0 32px; }
.chair__quote::before { content: "\201C"; display: block; font-size: 110px; line-height: .6; color: var(--gold); margin-bottom: 8px; }
.chair__sig { display: flex; flex-direction: column; gap: 4px; }
.chair__name { font-family: var(--serif); font-size: 26px; }
.chair__role { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--mist); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(72px, 9vw, 128px); }
.person .ph { aspect-ratio: 3 / 4; }
.person__name { font-family: var(--serif); font-size: 24px; margin: 18px 0 2px; }
.person__role { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
@media (max-width: 900px) { .chair { grid-template-columns: 1fr; } .chair .ph { max-width: 420px; } .team { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Growth / Partnering
   ========================================================================== */
.growth { background: var(--onyx-2); overflow: hidden; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.pillar { padding: 40px 30px 44px 0; position: relative; }
.pillar + .pillar { padding-left: 30px; border-left: 1px solid var(--line-dark); }
.pillar__n { font-family: var(--serif); font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.pillar h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 22px 0 12px; }
.pillar p { color: var(--mist); font-size: 15.5px; line-height: 1.65; margin: 0; }
@media (max-width: 1020px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line-dark); }
}

.partner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); margin-top: clamp(80px, 10vw, 140px); }
.avenues { list-style: none; margin: 0; padding: 0; }
.avenues li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line-dark); }
.avenues li:first-child { border-top: 1px solid var(--line-dark); }
.avenues .n { font-family: var(--serif); color: var(--gold); font-size: 18px; padding-top: 2px; }
.avenues h4 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 6px; }
.avenues p { color: var(--mist); font-size: 15.5px; margin: 0; }
.why { display: grid; gap: 22px; margin: 32px 0 44px; }
.why div { display: flex; gap: 16px; }
.why svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 4px; }
.why strong { display: block; font-weight: 500; color: var(--ivory); font-size: 16.5px; }
.why span { color: var(--mist); font-size: 15px; }
@media (max-width: 900px) { .partner { grid-template-columns: 1fr; } }

/* ==========================================================================
   Responsibility
   ========================================================================== */
.resp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.resp__item { background: var(--paper); border: 1px solid var(--line-light); padding: 36px 28px 40px; transition: border-color .3s var(--ease); }
.resp__item:hover { border-color: var(--gold-deep); }
.resp__item svg { width: 34px; height: 34px; color: var(--gold-deep); }
.resp__item h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; margin: 26px 0 10px; }
.resp__item p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; margin: 0; }
@media (max-width: 1020px) { .resp { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .resp { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 120px); }
.details { margin: 44px 0 0; display: grid; gap: 30px; }
.details dt { font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.details dd { margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.4; }
.details a { border-bottom: 1px solid var(--line-dark); transition: border-color .25s, color .25s; }
.details a:hover { color: var(--gold-light); border-color: var(--gold); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--mist); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid rgba(243,237,226,.25);
  padding: 12px 0; min-height: 48px; font-size: 17px; color: var(--ivory); border-radius: 0;
  transition: border-color .25s var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A45C' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 18px; }
.field select option { background: var(--onyx-2); color: var(--ivory); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field .err { color: #E7A08A; font-size: 13.5px; min-height: 1em; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 8px; }
.form__note { font-size: 14px; color: var(--mist); margin: 0; }
.form__status { grid-column: 1 / -1; color: var(--gold-light); margin: 0; min-height: 1.5em; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--line-dark); padding: clamp(64px, 8vw, 104px) 0 36px; background: var(--onyx); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer__brand img { width: 220px; }
.footer__brand .footer__mark { width: 64px; margin: 0 0 22px 78px; }
.footer__brand p { color: var(--mist); font-size: 15px; margin-top: 26px; max-width: 34ch; }
.footer h4 { font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0 0 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer li a { display: inline-block; padding: 5px 0; color: var(--mist); font-size: 15px; transition: color .25s; }
.footer li a:hover { color: var(--ivory); }
.footer__bottom {
  margin-top: clamp(56px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--mist); letter-spacing: .06em;
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
