/* Panel styles from aifa_html/website2.html, in source cascade order. */

.home-clients,
.home-about-section {
  scroll-margin-top: calc(5rem + var(--section-nav-height));
}

@media (max-width: 440px) {
  .section-nav[data-show-at-first-section] > .container {
    gap: .25rem;
  }

  .section-nav[data-show-at-first-section] a {
    flex: 1;
    justify-content: center;
    text-align: center;
    text-wrap: balance;
  }
}

.home-clients {
  margin-block-start: clamp(1.75rem, 4vw, 3rem);
  padding-block: clamp(1.75rem, 5vw, 3.5rem);
  background: var(--deep);
  box-shadow: 0 0 0 100vmax var(--deep);
  clip-path: inset(0 -100vmax);
  color: var(--white);
  text-align: center;
}

.home-clients .company-section-title {
  inset-block-start: -8px;
  margin: 0;
  color: inherit;
  text-align: start;
}

.home-clients > ul {
  --client-card-gap: clamp(.625rem, 2vw, 1.25rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--client-card-gap);
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
}

.home-clients li {
  display: grid;
  flex: 0 0 calc((100% - var(--client-card-gap)) / 2);
  place-items: center;
  min-inline-size: 0;
  min-block-size: clamp(6rem, 10vw, 8rem);
  padding: .75rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-block-start: 2px solid var(--website-gold);
  border-radius: 12px;
  background: rgb(255 255 255 / 5%) url("dist/img/ai-bg.svg") center / auto 84% no-repeat;
  font-size: clamp(.9375rem, 1.6vw, 1.125rem);
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}

@media (min-width: 720px) {
  .home-clients li {
    flex: 1 1 0;
  }
}

.home-about-section {
  --about-section-spacing: clamp(1.375rem, 3vw, 2.5rem);
  padding-block-start: var(--about-section-spacing);
}

.home-about-section#awards {
  padding-block-end: var(--about-section-spacing);
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
}

/* Restore the reference's element defaults inside the imported content. */
.reference-content {
  line-height: normal;
}

.reference-content :where(h1, h2, h3, h4, h5, h6) {
  margin: revert;
  font-family: inherit;
  font-size: revert;
  font-weight: revert;
  line-height: revert;
}

.reference-content :where(p, ol, ul, dl, dt, dd, figure) {
  margin: revert;
}

.reference-content :where(p) {
  overflow-wrap: revert;
}

.reference-content :where(ol, ul) {
  padding: revert;
}

.reference-content :where(img, svg) {
  max-width: revert;
  vertical-align: revert;
}

.reference-content {
  --navy: #144064;
  --deep: #0d2b42;
  --teal: #1b6b90;
  --blue: #5390b0;
  --gold: #e09003;
  --series-0: var(--gold);
  --series-1: var(--teal);
  --ink: #19384c;
  --muted: #657e8e;
  --paper: #f4f7f8;
  --white: #fff;
  --line: #dce6eb;
  --sidebar-width: 248px;
  --corner-logo-size: 48px;
  --page-gutter: clamp(24px, 5vw, 84px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--deep);
}

:where(.reference-content) * { box-sizing: border-box; }

:where(.reference-content) svg:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

:where(.reference-content) [hidden] { display: none !important; }

:where(.reference-content) ::selection { background: #c6e0eb; color: var(--deep); }

:where(.reference-content) .page {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 24px 0 42px;
  background: var(--paper);
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 100%, 0);
  transition: transform .55s var(--ease), visibility 0s .55s;
}

:where(.reference-content) .page::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 12px;
  z-index: 4;
  width: var(--corner-logo-size);
  height: var(--corner-logo-size);
  border-radius: 3px;
  background: var(--short-logo) center / contain no-repeat;
  pointer-events: none;
}

:where(.reference-content) .page.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; z-index: 2; }

:where(.reference-content) .page-scroll { position: relative; width: 100%; max-width: 1440px; height: 100%; min-height: 0; margin: 0 auto; padding: clamp(16px, 2vh, 28px) var(--page-gutter) 28px; overflow: hidden; overflow: clip; }

:where(.reference-content) .page-inner { width: calc(100% / var(--content-scale, 1)); max-width: none; min-height: calc(100% / var(--content-scale, 1)); margin: 0; padding: 0; transform: scale(var(--content-scale, 1)); transform-origin: top left; }

:where(.reference-content) .person-photo { display: block; width: 96px; height: 96px; flex: none; border-radius: 50%; object-fit: cover; object-position: center 28%; background: #edf2f5; }

:where(.reference-content) .person-name { margin: 0 0 9px; color: var(--navy); font-size: clamp(19px, 1.6vw, 24px); font-weight: 680; line-height: 1.2; letter-spacing: -.03em; }

:where(.reference-content) .person-role { margin: 0; color: var(--teal); font-size: 15px; font-weight: 550; line-height: 1.5; }

:where(.reference-content) .company-view { min-width: 0; }


:where(.reference-content) .company-awards {
  --award-gap: clamp(13px, 1.5vw, 20px);
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

:where(.reference-content) .award-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(232px, 27vw, 320px);
  gap: var(--award-gap);
}

:where(.reference-content) .award-grid[aria-hidden="true"] { display: none; }

:where(.reference-content) .company-awards:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

@media screen and (prefers-reduced-motion: no-preference) {
  :where(.reference-content) .company-awards:has(> .award-track) { overflow: clip; }

  :where(.reference-content) .award-track {
    display: flex;
    width: max-content;
    animation: award-scroll 48s linear infinite;
  }

  :where(.reference-content) .award-track > .award-grid {
    flex: none;
    padding-inline-end: var(--award-gap);
  }

  :where(.reference-content) .award-grid[aria-hidden="true"] { display: grid; }
}

@media (hover: hover) {
  :where(.reference-content) .company-awards:hover > .award-track { animation-play-state: paused; }
}

@keyframes award-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

:where(.reference-content) .award-card { display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; min-height: 238px; padding: 25px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }

:where(.reference-content) .award-logo { display: flex; align-items: center; justify-content: center; height: 72px; }

:where(.reference-content) .award-logo img { display: block; width: 100%; max-width: 210px; height: 72px; object-fit: contain; }

:where(.reference-content) .award-logo img[alt="LBP AM"] { transform: scale(1.12); }

:where(.reference-content) .award-copy { min-width: 0; }

:where(.reference-content) .award-copy h3 { margin: 0; color: var(--navy); font-size: 18.75px; font-weight: 650; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }

:where(.reference-content) .award-copy p { margin: 8px 0 0; color: #4d6473; font-size: 16.25px; line-height: 1.55; text-align: center; overflow-wrap: anywhere; }

@media (min-width: 1700px) {
  :where(.reference-content) .award-card { min-height: 261px; padding: 30px; }

  :where(.reference-content) .page-scroll { max-width: 1520px; }

  :where(.reference-content) .person-photo { width: 112px; height: 112px; }
}

@media (max-width: 1250px) {
  :where(.reference-content) .award-card { padding: 23px; }

  .reference-content { --page-gutter: 30px; }

  :where(.reference-content) .person-photo { width: 87px; height: 87px; }
}

@media (max-width: 900px) {
  :where(.reference-content) .award-card { min-height: 226px; }

  .reference-content { --page-gutter: 25px; }

  :where(.reference-content) .page { padding-top: 56px; }

  :where(.reference-content) .page-scroll { padding-top: 16px; padding-bottom: 24px; }

  :where(.reference-content) .person-name { font-size: 21px; }
}

@media (max-width: 580px) {
  .reference-content { --page-gutter: 20px; }

  :where(.reference-content) .page { padding-bottom: 56px; }

  :where(.reference-content) .page-scroll { padding-top: 16px; padding-bottom: 24px; }

  :where(.reference-content) .award-card { min-height: 200px; gap: 14px; padding: 21px; }

  :where(.reference-content) .award-logo,
  :where(.reference-content) .award-logo img { height: 48px; }

  :where(.reference-content) .award-copy h3 { font-size: 16.25px; }

  :where(.reference-content) .award-copy p { font-size: 15px; }

  :where(.reference-content) .person-photo { width: 80px; height: 80px; }

  :where(.reference-content) .person-name { font-size: 22px; }

  :where(.reference-content) .person-role { font-size: 14px; }
}

@media (max-width: 359px) {
  .reference-content { --page-gutter: 15px; }

  :where(.reference-content) .person-photo { width: 70px; height: 70px; }

  :where(.reference-content) .person-name { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  :where(.reference-content) *,
  :where(.reference-content) *::before,
  :where(.reference-content) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  :where(.reference-content) *,
  :where(.reference-content) *::before,
  :where(.reference-content) *::after { transition: none !important; animation: none !important; }

  :where(.reference-content) .page,
  :where(.reference-content) .page.is-active { position: relative; inset: auto; height: auto; min-height: 0; overflow: visible; padding: 64px 0 0; opacity: 1; visibility: visible; pointer-events: auto; transform: none; background: white; break-before: page; page-break-before: always; print-color-adjust: exact; -webkit-print-color-adjust: exact; }

  :where(.reference-content) .page::after { top: 0; right: 0; width: 44px; height: 44px; }

  :where(.reference-content) .page:first-child { break-before: auto; page-break-before: auto; }

  :where(.reference-content) .page-scroll { width: auto; max-width: none; height: auto; min-height: 0; margin: 0; padding: 0; overflow: visible; }

  :where(.reference-content) .page-inner { width: auto; min-height: 0; max-width: none; margin: 0; padding: 0; transform: none; }

  :where(.reference-content) .person-photo { width: 65px; height: 65px; }

  :where(.reference-content) .person-name { font-size: 17px; }

  :where(.reference-content) .person-role { font-size: 11px; }

  :where(.reference-content) .company-awards { overflow: visible; }

  :where(.reference-content) .award-grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }

  :where(.reference-content) .award-card { min-height: 152px; gap: 8px; padding: 15px; break-inside: avoid; }

  :where(.reference-content) .award-logo,
  :where(.reference-content) .award-logo img { height: 40px; }

  :where(.reference-content) .award-logo img { max-width: 130px; }

  :where(.reference-content) .award-copy h3 { font-size: 11px; }

  :where(.reference-content) .award-copy p { font-size: 10px; }

  :where(.reference-content) .company-view,
  :where(.reference-content) .company-view[hidden] { display: block !important; margin-bottom: 25px; break-inside: avoid; }
}

:where(.reference-content).aifa-website {
  --website-background: #fff;
  --website-navy: #0a2438;
  --website-gold: #ffc45f;
  --website-section-bar-height: 0px;
  --page-gutter: var(--website-gutter);
  height: auto;
  overflow: visible;
  scroll-padding-top: calc(var(--website-header-height) + var(--website-section-bar-height) + 8px);
  background: var(--website-background);
}

@media (max-width: 1023.98px) {
  .header-wrap.active .header-nav {
    display: block;
  }
}

:where(.reference-content) .website-container {
  width: 100%;
  max-width: var(--website-width);
  margin-inline: auto;
  padding-inline: var(--website-gutter);
}

:where(.reference-content).website-main {
  flex: 1;
  min-width: 0;
}

:where(.reference-content).aifa-website .website-page {
  display: none;
  position: static;
  height: auto;
  overflow: visible;
  padding: 0;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: none;
  background: var(--website-background);
}

:where(.reference-content).aifa-website .website-page.is-active { display: block; }

:where(.reference-content) .website-page::after { content: none; }

:where(.reference-content).aifa-website .website-page .page-scroll {
  width: 100%;
  max-width: var(--website-width);
  height: auto;
  margin-inline: auto;
  overflow: visible;
  padding: clamp(22px, 3vw, 36px) var(--website-gutter) clamp(45px, 7vw, 96px);
}

:where(.reference-content).aifa-website .website-page .page-inner {
  --content-scale: 1 !important;
  width: 100%;
  min-height: 0;
  transform: none;
}

:where(.reference-content) .website-page [role="region"][tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

:where(.reference-content) .company-description-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

:where(.reference-content) .company-overview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 20px);
}

:where(.reference-content) .company-overview-section h3 {
  margin: 0 0 8px;
  color: var(--deep);
  font-size: clamp(1.25rem, 2.25vw, 1.625rem);
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -.035em;
}

:where(.reference-content) .company-overview-section p {
  margin: 0;
  color: #4d6473;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
  overflow-wrap: anywhere;
}

:where(.reference-content) .company-overview-row > figure {
  min-width: 0;
  margin: 0;
}

:where(.reference-content) .company-overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(.reference-content) .company-overview-metrics li {
  display: grid;
  align-content: start;
  gap: .625rem;
  padding-block-start: .875rem;
  border-block-start: 2px solid var(--gold);
  color: var(--ink);
  font-size: .9375rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

:where(.reference-content) .company-overview-metrics strong {
  color: var(--deep);
  font-size: clamp(2.125rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
}

:where(.reference-content) .company-overview-illustration {
  width: 100%;
  max-width: 27rem;
  justify-self: center;
}

:where(.reference-content) .company-overview-illustration img {
  display: block;
  width: 100%;
  height: auto;
}

:where(.reference-content) .company-world-map {
  display: block;
  width: 100%;
  max-width: 30rem;
  height: auto;
  margin-inline: auto;
  aspect-ratio: 12 / 5;
  color: #789eb4;
}

:where(.reference-content) .company-map-pins { fill: var(--gold); }

:where(.reference-content) .company-map-pins > g > path {
  stroke: white;
  stroke-width: 1.5;
  paint-order: stroke fill;
}

@media screen and (min-width: 901px) {
  :where(.reference-content) .company-description-grid {
    row-gap: clamp(24px, 3vw, 40px);
  }

  :where(.reference-content) .company-overview-row {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas: "copy visual";
    column-gap: clamp(12px, 1.15vw, 16px);
  }

  :where(.reference-content) .company-overview-row:nth-child(2) {
    grid-template-areas: "visual copy";
  }

  :where(.reference-content) .company-overview-section { grid-area: copy; }

  :where(.reference-content) .company-overview-row:not(:nth-child(2)) > .company-overview-section,
  :where(.reference-content) .company-overview-illustration {
    max-inline-size: calc(100% / 1.15);
  }

  :where(.reference-content) .company-overview-row > :is(figure, .company-overview-metrics) { grid-area: visual; }

  :where(.reference-content) .company-overview-illustration { justify-self: start; }

  :where(.reference-content) .company-overview-illustration img {
    max-block-size: 12.5rem;
    object-fit: cover;
  }

  :where(.reference-content) .company-world-map { margin-inline-start: 0; }
}

:where(.reference-content) .website-team-profiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 3vw, 34px);
}

:where(.reference-content) .website-team-profile {
  display: grid;
  grid-template-columns: clamp(64px, 8vw, 96px) minmax(0, 1fr);
  align-content: start;
  column-gap: clamp(16px, 2.5vw, 32px);
  row-gap: 14px;
  padding: clamp(16px, 2.5vw, 28px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

:where(.reference-content) :is(.website-team-profile, .award-card) {
  border-top: 3px solid var(--gold);
}

:where(.reference-content) .website-team-profile .person-photo {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

:where(.reference-content) .website-team-identity {
  grid-column: 2;
  align-self: center;
  min-width: 0;
}

:where(.reference-content) .website-team-biography {
  grid-column: 1 / -1;
  min-width: 0;
}

:where(.reference-content) .website-team-identity .person-name {
  margin-bottom: 4px;
  color: var(--deep);
}

:where(.reference-content) .website-team-biography p {
  margin: 0;
  color: #415b6c;
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
  overflow-wrap: anywhere;
}

:where(.reference-content) .website-team-biography p + p {
  margin-block-start: .65em;
}

@media (min-width: 841px) {
  :where(.reference-content) .website-team-profiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  :where(.reference-content).aifa-website .website-page { break-before: auto; }

  :where(.reference-content) .company-description-grid { gap: 16px; }

  :where(.reference-content) .company-overview-row {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 18px;
    break-inside: avoid;
  }

  :where(.reference-content) .company-overview-section h3 { font-size: 15px; }

  :where(.reference-content) .company-overview-section p { font-size: 11px; }

  :where(.reference-content) .company-world-map { max-width: 230px; }
}
