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

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding-block: var(--section-y);
  background: var(--bg);
  color: var(--text);
}

.section--sunk {
  --bg: var(--paper-100);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__title {
  font-size: var(--step-3);
  margin-block: 0.35rem 0.75rem;
}

.section__lead {
  color: var(--text-muted);
  font-size: var(--step-1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 0.1875rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    var(--gold-500) 0 33%,
    var(--maple-500) 33% 66%,
    var(--leaf-500) 66%
  );
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
}

/* The same Ivorian tricolour is repeated in the header and footer. */
.tricolour {
  height: 0.3125rem;
  background: linear-gradient(
    90deg,
    var(--gold-500) 0 33.33%,
    var(--paper-50) 33.33% 66.66%,
    var(--leaf-500) 66.66%
  );
}

.tricolour--brand {
  background: linear-gradient(
    90deg,
    var(--gold-500) 0 33.33%,
    var(--paper-50) 33.33% 66.66%,
    var(--leaf-500) 66.66%
  );
}

/* ---------------------------------------------------------------- header - */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 252 247 / 88%);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  overflow: visible;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  min-height: 4.5rem;
  overflow: visible;
}

/* The brand is the one part of the header that may give ground when the
   viewport is tight, so it carries the shrinking for everyone. */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink-900);
}

.brand img {
  flex: none;
  width: 2.75rem;
  height: auto;
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__acronym {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand__full {
  font-size: 0.7rem;
  color: var(--ink-500);
  letter-spacing: 0.01em;
  max-width: 15rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.4rem);
  overflow: visible;
}

.site-nav a {
  padding: 0.4rem 0.1rem;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-700);
  border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease);
}

.site-nav a:hover {
  color: var(--ink-900);
  border-bottom-color: var(--gold-500);
}

.site-nav a[aria-current="page"] {
  color: var(--ink-900);
  border-bottom-color: var(--maple-600);
}

.nav-flyout.is-current .nav-flyout__trigger {
  color: var(--maple-700);
}

/* -------------------------------------------------------- presentation nav */

/* The padding bridges the visual gap under the trigger so the pointer never
   crosses a strip that belongs to neither the trigger nor the panel; the
   negative margin keeps the nav row's vertical centring unchanged. */
.nav-flyout {
  position: relative;
  z-index: 80;
  padding-bottom: 0.35rem;
  margin-bottom: -0.35rem;
}

.nav-flyout__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.55rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-700);
  transition:
    color 0.15s var(--ease),
    background-color 0.15s var(--ease);
}

.nav-flyout__trigger:hover,
.nav-flyout.is-open .nav-flyout__trigger {
  color: var(--ink-900);
  background: var(--gold-100);
}

.nav-flyout__trigger[aria-expanded="true"] {
  color: var(--maple-700);
  background: var(--maple-100);
}

.nav-flyout__chevron {
  flex: none;
  width: 0.85rem !important;
  height: 0.85rem !important;
  color: var(--gold-700);
  transition:
    transform 0.2s var(--ease),
    color 0.15s var(--ease);
}

.nav-flyout__trigger:hover .nav-flyout__chevron,
.nav-flyout.is-open .nav-flyout__chevron {
  color: var(--maple-600);
}

.nav-flyout__trigger[aria-expanded="true"] .nav-flyout__chevron {
  transform: rotate(180deg);
}

.nav-flyout__menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 90;
  min-width: 14.5rem;
  padding: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.35rem);
  transition:
    opacity 0.18s var(--ease),
    transform 0.18s var(--ease),
    visibility 0.18s;
}

.nav-flyout__menu::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.22rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: linear-gradient(
    90deg,
    var(--gold-500) 0 33.33%,
    var(--maple-500) 33.33% 66.66%,
    var(--leaf-500) 66.66%
  );
}

.nav-flyout.is-open .nav-flyout__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-flyout__link {
  display: block;
  padding: 0.58rem 0.7rem;
  border-radius: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-700);
  transition:
    background-color 0.12s var(--ease),
    color 0.12s var(--ease);
}

.nav-flyout__link:hover {
  background: var(--gold-100);
  color: var(--gold-800);
}

.nav-flyout__link:focus-visible {
  background: var(--maple-100);
  color: var(--maple-800);
}

.nav-flyout__link[aria-current="page"] {
  font-weight: 700;
  color: var(--maple-800);
  background: var(--maple-100);
}

.header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: grid;
  place-content: center;
  gap: 0.3rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

@media (max-width: 1000px) {
  .site-nav--desktop,
  .header-cta {
    display: none;
  }
}

@media (min-width: 1001px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-900);
}

/* ------------------------------------------------------------- language - */

.lang {
  position: relative;
}

.lang__trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
}

.lang__chevron {
  width: 0.7rem !important;
  height: 0.7rem !important;
  opacity: 0.55;
  transition: transform 0.18s var(--ease);
}

.lang__trigger[aria-expanded="true"] .lang__chevron {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 60;
  min-width: 11rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.lang__option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  font-size: 0.9rem;
  text-align: left;
}

.lang__option:hover {
  background: var(--paper-100);
}

.lang__option[aria-checked="true"] {
  font-weight: 700;
}

.lang__check {
  margin-left: auto;
  width: 0.85rem !important;
  height: 0.85rem !important;
  color: var(--leaf-700);
}

/* ---------------------------------------------------------------- drawer - */

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  visibility: hidden;
}

.nav-drawer.is-open {
  visibility: visible;
}

.nav-drawer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgb(11 18 25 / 55%);
  opacity: 0;
  transition: opacity 0.24s var(--ease);
}

.nav-drawer.is-open .nav-drawer__backdrop {
  opacity: 1;
}

.nav-drawer__panel {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: min(21rem, 88vw);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 5rem 1.5rem 2rem;
  background: var(--paper-50);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform 0.28s var(--ease);
  overflow-y: auto;
}

.nav-drawer.is-open .nav-drawer__panel {
  transform: none;
}

.nav-drawer__panel a {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-drawer__panel > a[aria-current="page"] {
  color: var(--maple-700);
}

.nav-drawer__cta {
  margin-top: 0.85rem;
  padding: 0.75rem 1rem !important;
  border: 0 !important;
  border-radius: var(--radius-pill);
  background: var(--ink-900);
  color: var(--paper-50);
  text-align: center;
}

.nav-drawer__cta:hover {
  background: var(--maple-700);
  color: var(--paper-50);
}

.nav-drawer__group {
  border-bottom: 1px solid var(--line);
}

.nav-drawer__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  color: var(--ink-900);
}

.nav-drawer__group > summary::-webkit-details-marker {
  display: none;
}

.nav-drawer__chevron {
  flex: none;
  width: 1rem !important;
  height: 1rem !important;
  color: var(--gold-700);
  transition:
    transform 0.2s var(--ease),
    color 0.15s var(--ease);
}

.nav-drawer__group[open] > summary {
  color: var(--maple-700);
}

.nav-drawer__group[open] .nav-drawer__chevron {
  transform: rotate(180deg);
  color: var(--maple-600);
}

.nav-drawer__sub {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0 0.65rem 0.35rem;
  border-left: 2px solid var(--gold-400);
  margin-left: 0.15rem;
}

.nav-drawer__sub a {
  padding: 0.45rem 0 0.45rem 0.65rem;
  border-bottom: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: color 0.12s var(--ease);
}

.nav-drawer__sub a:hover {
  color: var(--maple-700);
}

.nav-drawer__sub a[aria-current="page"] {
  font-weight: 700;
  color: var(--maple-700);
}

.nav-drawer__sub a::before {
  content: none;
}

.nav-drawer__close {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  display: grid;
  place-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.nav-drawer__lang {
  margin-top: 1.5rem;
}

.nav-drawer__lang > span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* ---------------------------------------------------------------- footer - */

.site-footer {
  background: var(--ink-950);
  color: var(--paper-200);
}

.site-footer a {
  color: var(--paper-200);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  padding-block: clamp(2.75rem, 6vw, 4rem);
}

.footer__brand img {
  width: 13rem;
  margin-bottom: 1rem;
  /* The lockup's name is black, so on the dark footer it needs a light plate
     behind it rather than a filter that would also wash out the artwork. */
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--paper-50);
}

.footer__blurb {
  max-width: 24rem;
  font-size: 0.92rem;
  color: var(--ink-300);
}

.footer__title {
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.footer__list li + li {
  margin-top: 0.5rem;
}

.footer__list {
  font-size: 0.93rem;
}

.footer__social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer__social a {
  display: grid;
  place-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius-sm);
}

.footer__social a:hover {
  background: rgb(255 255 255 / 10%);
}

.footer__social svg {
  width: 1.1rem;
  height: 1.1rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: 0.84rem;
  color: var(--ink-300);
}

/* ------------------------------------------------------------------ hero - */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(42rem, 84svh);
  padding-block: clamp(4rem, 12vw, 8rem) clamp(3rem, 7vw, 5rem);
  background: var(--ink-950);
  color: var(--paper-50);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(11 18 25 / 62%) 0%, rgb(11 18 25 / 30%) 42%, rgb(11 18 25 / 92%) 100%),
    linear-gradient(85deg, rgb(11 18 25 / 72%) 0%, rgb(11 18 25 / 10%) 62%);
}

.hero__inner {
  max-width: 44rem;
}

.hero__eyebrow {
  color: var(--gold-300);
}

.hero__title {
  font-size: var(--step-4);
  margin-block: 0.6rem 1rem;
}

.hero__title em {
  font-style: normal;
  color: var(--gold-300);
}

.hero__lead {
  max-width: 38rem;
  font-size: var(--step-1);
  color: var(--paper-200);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 3rem);
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 18%);
}

.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--gold-300);
}

.hero__stat span {
  font-size: 0.86rem;
  color: var(--paper-200);
}
