/* AEF Union
   Direction: the page reads like a well-made consulting report.
   Navy and white carry it; gold is reserved for the banknote rosette, rules and the primary action.
   Type: Newsreader (headlines, statements), Instrument Sans (everything else). */

:root {
  --navy: #0B1F35;
  --navy-2: #13304F;
  --petrol: #0E5A63;
  --gold: #B89B5E;
  --gold-light: #D4BC85;
  --white: #FFFFFF;
  --mist: #F2F4F6;
  --slate: #536170;
  --slate-light: #A8B4C2;
  --line: #D9DEE4;
  --line-dark: rgba(255, 255, 255, .14);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 17px/1.6 var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -.015em; }
img, svg { display: block; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--navy); padding: 8px 14px; }
.skip:focus { left: 8px; }
.nowrap { white-space: nowrap; }

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Nav ───────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  color: var(--white);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.nav.solid { background: var(--white); color: var(--navy); box-shadow: 0 1px 0 var(--line); }
.nav-inner { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; height: 100%; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  height: 36px; padding: 0 9px;
  border: 1px solid currentColor;
  font: 500 17px/1 var(--serif); letter-spacing: .06em;
}
.brand-name { font: 500 17px/1 var(--sans); }

.nav nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; position: relative; }
.nav nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav nav a:not(.nav-cta):hover::after, .nav nav a.active::after { transform: scaleX(1); }
.nav nav .nav-cta { padding: 10px 18px; border: 1px solid currentColor; transition: background-color .2s, color .2s; }
.nav nav .nav-cta:hover { background: var(--white); color: var(--navy); }
.nav.solid nav .nav-cta { background: var(--navy); color: var(--white); border-color: var(--navy); }
.nav.solid nav .nav-cta:hover { background: var(--petrol); border-color: var(--petrol); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 13px 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 1.5px; background: currentColor; transition: transform .25s; }
.nav-toggle span + span { margin-top: 8px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.75px) rotate(-45deg); }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav nav {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); color: var(--navy); padding: 4px var(--gutter) 28px;
    box-shadow: 0 1px 0 var(--line), 0 24px 40px rgba(11, 31, 53, .12);
    opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav nav a { font: 300 30px/1.1 var(--serif); padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav nav a::after { display: none; }
  .nav nav .nav-cta, .nav.solid nav .nav-cta { margin-top: 20px; text-align: center; font: 500 16px/1 var(--sans); padding: 17px; background: var(--navy); color: var(--white); border: 0; }
  .nav.menu-open { background: var(--white); color: var(--navy); }
}

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-line { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn-line:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--petrol); }

/* ── Cover ─────────────────────────────────────── */
.cover {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88svh, 860px);
  background: var(--navy);
  color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 48px);
}
.rosette {
  position: absolute; z-index: -1;
  width: min(96vh, 1000px); height: auto; aspect-ratio: 1;
  right: max(-16vw, -240px); top: 46%; transform: translateY(-50%);
  color: var(--gold);
}
.rosette path { fill: none; stroke: currentColor; vector-effect: non-scaling-stroke; stroke-width: .7; opacity: .5; }
.js .rosette path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.js .rosette.drawn path { transition: stroke-dashoffset 3.2s cubic-bezier(.45, .05, .2, 1); stroke-dashoffset: 0; }

.cover-inner { max-width: calc(var(--max) + 2 * var(--gutter)); width: 100%; margin-inline: auto; padding-inline: var(--gutter); padding-bottom: clamp(56px, 10vh, 112px); }
.cover-kicker { color: var(--gold-light); font-size: 16px; font-weight: 500; margin-bottom: 28px; display: flex; align-items: center; gap: 14px; }
.cover-kicker::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.cover h1 {
  font-size: clamp(46px, 7.6vw, 112px);
  line-height: 1;
  letter-spacing: -.025em;
  max-width: 10em;
}
.cover-lede { margin-top: 32px; max-width: 54ch; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: #C9D3DE; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

@media (max-width: 900px) {
  .rosette { width: 125vw; right: -50vw; top: 30%; opacity: .75; }
}

.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.pillars li { border-top: 2px solid var(--navy); padding-top: 20px; }
.pillars h2, .pillars h3 { font: 600 17px/1.3 var(--sans); letter-spacing: 0; margin-bottom: 8px; }
.formats { grid-template-columns: repeat(4, 1fr); gap: 0 32px; margin-bottom: clamp(48px, 6vw, 72px); }
@media (max-width: 1000px) { .formats { grid-template-columns: 1fr 1fr; gap: 32px; } }
.pillars p { color: var(--slate); font-size: 16px; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; gap: 32px; } }

/* ── Sections ──────────────────────────────────── */
.section { padding: clamp(88px, 11vw, 150px) 0; }
.section-mist { background: var(--mist); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 64px; align-items: end;
  padding-bottom: 32px; margin-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: clamp(48px, 6.4vw, 92px); line-height: .95; letter-spacing: -.03em; }
.section-head p { color: var(--slate); font-size: 18px; max-width: 52ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.sub-h { font: 600 17px/1.3 var(--sans); margin-bottom: 18px; }

/* ── Partnerships ──────────────────────────────── */
.partner-now { margin-bottom: clamp(56px, 7vw, 88px); }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-cell { min-height: 128px; display: grid; place-items: center; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .2s; }
a.logo-cell:hover { background: var(--mist); }
.logo-cell img { max-height: 48px; max-width: 75%; object-fit: contain; filter: grayscale(1); transition: filter .2s; }
a.logo-cell:hover img { filter: none; }
.logo-cell .wm { font: 400 22px/1.2 var(--serif); text-align: center; }
.logo-cell.main { grid-column: span 2; }

.open-call {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 36px;
  padding: 32px clamp(24px, 4vw, 48px);
  background: var(--navy); color: var(--white);
}
.open-call .seal { width: 88px; height: 88px; color: var(--gold); }
.open-call .seal path { fill: none; stroke: currentColor; vector-effect: non-scaling-stroke; stroke-width: .7; }
.open-call h3 { font: 300 clamp(24px, 2.6vw, 34px)/1.15 var(--serif); }
.open-call p { color: var(--slate-light); margin-top: 6px; max-width: 60ch; }
@media (max-width: 600px) { .open-call { grid-template-columns: 1fr; } .open-call .seal { width: 64px; height: 64px; } }



/* ── Team ──────────────────────────────────────── */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 28px; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .team { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; } }
.team-group + .team-group { margin-top: clamp(56px, 7vw, 88px); }
.team-h { font: 400 clamp(26px, 2.6vw, 34px)/1.1 var(--serif); letter-spacing: -.01em; padding-bottom: 14px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.empty-note { color: var(--slate); font-size: 18px; }
.member { position: relative; }
.portrait {
  aspect-ratio: 4 / 5; background: var(--navy); color: var(--white);
  display: grid; place-items: center; overflow: hidden; position: relative;
  margin-bottom: 18px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.member:hover .portrait img { filter: none; }
.portrait .initials { font: 300 clamp(40px, 5vw, 64px)/1 var(--serif); letter-spacing: .04em; position: relative; }
.portrait .guill { position: absolute; left: 50%; top: 50%; width: 150%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); color: var(--gold); opacity: .3; }
.portrait .guill { transition: transform 1.6s cubic-bezier(.2, .7, .2, 1), opacity .6s; }
.member:hover .portrait .guill { transform: translate(-50%, -50%) rotate(40deg) scale(1.08); opacity: .5; }
.portrait .guill path { fill: none; stroke: currentColor; vector-effect: non-scaling-stroke; stroke-width: .6; }
.member h3 { font: 600 18px/1.3 var(--sans); }
.member .role { color: var(--slate); font-size: 15px; margin-top: 2px; }
.member a.li { position: absolute; inset: 0; }
.member a.li:hover ~ div h3, .member a.li:focus-visible ~ div h3 { text-decoration: underline; text-underline-offset: 3px; }

/* ── Events ────────────────────────────────────── */
.ev-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.tabs { display: flex; gap: 28px; }
.tabs button { background: none; border: 0; border-bottom: 1px solid transparent; padding: 8px 0; cursor: pointer; font: 300 28px/1.1 var(--serif); color: var(--slate-light); }
.tabs button[aria-selected="true"] { color: var(--navy); border-color: var(--navy); }
.tabs button:hover { color: var(--navy); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { background: none; border: 1px solid var(--line); padding: 8px 16px; cursor: pointer; font-size: 14px; font-weight: 500; }
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.agenda { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--navy); }
.event { display: grid; grid-template-columns: 120px minmax(0, 1fr) 220px; gap: 8px 40px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.ev-date .d { display: block; font: 300 56px/.9 var(--serif); letter-spacing: -.03em; }
.ev-date .m { display: block; font-size: 15px; font-weight: 600; margin-top: 8px; }
.ev-type { font-size: 14px; font-weight: 600; color: var(--petrol); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.ev-type[data-t="Social"] { color: #85652A; }
.ev-body h3 { font: 400 clamp(24px, 2.4vw, 32px)/1.15 var(--serif); letter-spacing: -.01em; }
.ev-body p.desc { margin-top: 10px; color: var(--slate); max-width: 62ch; }
.ev-side { font-size: 15px; color: var(--slate); display: grid; gap: 4px; align-content: start; }
.ev-side strong { color: var(--navy); font-weight: 500; }
.ev-side .btn { margin-top: 12px; min-height: 42px; padding: 0 18px; justify-self: start; }
.ev-side .soon { margin-top: 10px; font-size: 14px; }
.next { font-weight: 600; font-size: 12px; color: var(--navy); background: var(--gold-light); padding: 3px 9px; }
.event.past .ev-date, .event.past .ev-body h3 { color: var(--slate); }
.agenda .empty { padding: 48px 0; color: var(--slate); font-size: 18px; }
@media (max-width: 860px) {
  .event { grid-template-columns: 76px minmax(0, 1fr); gap: 12px 20px; }
  .ev-date .d { font-size: 40px; }
  .ev-side { grid-column: 2; }
}

/* ── Footer ────────────────────────────────────── */
.footer { background: var(--navy); color: var(--white); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 56px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-join h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.08; margin-bottom: 32px; max-width: 14em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); gap: 32px; }
.footer-cols h3 { font: 600 14px/1.3 var(--sans); color: var(--slate-light); margin-bottom: 12px; }
.footer-cols a, .footer-cols p { display: block; font-size: 16px; text-decoration: none; margin-bottom: 6px; line-height: 1.5; overflow-wrap: anywhere; }
.footer-cols a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; align-items: center; gap: 16px; padding-top: 28px; color: var(--slate-light); font-size: 14px; }
.footer-bottom .brand-mark { color: var(--white); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rosette path { stroke-dashoffset: 0; }
  * { transition-duration: 0s !important; }
}
.partner-contact { margin-top: 24px; }
@media (max-width: 760px) { .open-call { grid-template-columns: 1fr; } .open-call .btn { justify-self: start; } }
