@font-face {
  font-family: "Red Hat Display";
  src: url("../fonts/RedHatDisplay-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Pastel #14/#74: without real 500/600/700 faces the browser resolved every
   Medium, SemiBold and Bold declaration to the Black file. */
@font-face {
  font-family: "Red Hat Display";
  src: url("../fonts/RedHatDisplay-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Red Hat Display";
  src: url("../fonts/RedHatDisplay-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Red Hat Display";
  src: url("../fonts/RedHatDisplay-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Red Hat Display";
  src: url("../fonts/RedHatDisplay-Black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --pa-design-width: 1728px;
  --pa-global-blue: #001795;
  --pa-footer-blue: #3b73ff;
  --pa-global-font: "Red Hat Display", Arial, sans-serif;
}

body.pa-body {
  font-family: var(--pa-global-font);
}

.pa-header {
  position: fixed;
  z-index: 5000;
  top: 46px;
  left: 50%;
  width: min(1536px, calc(100vw - 120px));
  height: 108px;
  padding: 0;
  transform: translateX(-50%);
  overflow: visible;
  border: 1px solid rgba(6, 25, 101, .08);
  border-radius: 999px;
  background: #f7f7f8;
  color: #061968;
  box-shadow: 0 8px 0 rgba(0, 20, 91, .12), 0 15px 28px rgba(0, 13, 82, .15);
  transition: top .25s ease, box-shadow .25s ease;
}

.pa-header.is-scrolled {
  top: 18px;
  box-shadow: 0 8px 0 rgba(0, 20, 91, .12), 0 18px 36px rgba(0, 13, 82, .2);
}

.pa-header.is-hidden,
.pa-header:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%);
}

.pa-nav {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.12fr 1fr 150px 1.45fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 88px;
}

.pa-nav > .menu-item {
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pa-nav a {
  color: #07175f;
  font-family: var(--pa-global-font);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

.pa-nav-link {
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.pa-nav-link:hover,
.pa-nav-link:focus-visible {
  color: #07175f;
  background: rgba(55, 102, 255, .1);
}

.pa-nav-link:active {
  transform: scale(.98);
}

.pa-nav-link.is-active,
.pa-nav-link[aria-current="page"] {
  border-color: rgba(8, 31, 123, .035);
  background: rgba(255, 255, 255, .32);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
  color: #07175f;
}

.pa-nav-spark {
  color: #ffd21a;
  font-size: 23px;
  line-height: 0;
}

.pa-header .pa-brand {
  width: 118px;
  height: 92px;
  justify-self: center;
  display: block;
}

.pa-header .pa-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(11%) sepia(96%) saturate(4540%) hue-rotate(229deg) brightness(67%) contrast(120%);
}

.pa-menu-toggle {
  display: none;
}

.pa-legal-page {
  min-height: 72vh;
  padding: 220px max(8vw, 100px) 100px;
  background: #f7f9ff;
  color: #061b72;
  font-family: var(--pa-global-font);
}

.pa-legal-page article {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 70px 90px;
  border-radius: 36px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 23, 149, .12);
}

.pa-legal-page h1 { margin: 0 0 55px; font-size: 64px; line-height: 1; }
.pa-legal-page h2 { margin: 38px 0 14px; font-size: 28px; }
.pa-legal-page p { font-size: 19px; line-height: 1.65; }

.pa-footer {
  position: relative;
  width: min(1575px, calc(100vw - 153px));
  min-height: 262px;
  margin: 58px auto 42px;
  padding: 48px 100px 44px;
  border: 1px solid rgba(150, 187, 255, .68);
  border-radius: 54px;
  background: var(--pa-footer-blue);
  box-shadow: 0 26px 0 #001275, 0 32px 34px rgba(0, 4, 61, .45);
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: center;
  gap: 64px;
  color: #fff;
  font-family: var(--pa-global-font);
}

.pa-footer-brand {
  width: 156px;
  height: 156px;
  display: block;
  justify-self: center;
}

.pa-footer-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pa-footer-content {
  min-width: 0;
  padding-right: 130px;
}

.pa-footer-nav,
.pa-footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 76px;
}

.pa-footer a {
  color: #fff;
  text-decoration: none;
}

.pa-footer-nav a {
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

.pa-footer a:hover,
.pa-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.pa-footer-rule {
  width: 100%;
  height: 1px;
  margin: 31px 0 28px;
  background: rgba(97, 229, 255, .58);
}

.pa-footer-meta {
  gap: 94px;
  color: rgba(255, 255, 255, .6);
}

.pa-footer-meta p,
.pa-footer-meta a {
  margin: 0;
  color: inherit;
  font-size: 15px;
  white-space: nowrap;
}

.pa-footer-decoration {
  position: absolute;
  z-index: 2;
  top: -51px;
  right: 70px;
  width: 132px;
  height: 154px;
  transform: rotate(26deg);
}

.pa-footer-decoration i {
  position: absolute;
  width: 76px;
  height: 118px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  background: linear-gradient(135deg, #2851da, #7691ff);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .2);
  animation:pa-footer-float 5.4s ease-in-out infinite alternate;
}

.pa-footer-decoration i:first-child {
  left: 0;
  top: 0;
}

.pa-footer-decoration i:last-child {
  right: 0;
  bottom: 0;
  animation-delay:-2.2s;
  animation-direction:alternate-reverse;
}

@keyframes pa-footer-float {
  from { transform:translate3d(0,0,0) rotate(-2deg); }
  to { transform:translate3d(4px,-9px,0) rotate(3deg); }
}
html.reduced-motion .pa-footer-decoration i { animation:none; }

/* Desktop geometry is viewport-relative so OS scaling/browser zoom does not
   enlarge fixed-pixel components disproportionately. */
@media (min-width: 981px) {
  .pa-header {
    top: clamp(24px, 2vw, 38px);
    width: 88vw;
    height: clamp(76px, 5.625vw, 108px);
  }

  .pa-header.is-scrolled { top: clamp(14px, 1.05vw, 20px); }

  .pa-nav {
    grid-template-columns: 1.75fr repeat(4, 1fr);
    padding-inline: clamp(34px, 3.1vw, 60px);
    gap: clamp(8px, 1vw, 20px);
  }

  .pa-header .pa-brand {
    width: clamp(230px, 17.5vw, 315px);
    height: clamp(52px, 3.8vw, 68px);
    justify-self: start;
  }

  .pa-nav-link {
    min-width: clamp(112px, 7.7vw, 148px);
    min-height: clamp(46px, 2.9vw, 56px);
    padding-inline: clamp(16px, 1.15vw, 22px);
    font-size: clamp(14px, .925vw, 18px);
  }
}

.pa-header .pa-brand img {
  filter: none;
}

.pa-header .pa-brand,
.pa-nav-link {
  transition: transform .24s ease, filter .24s ease, background-color .24s ease, box-shadow .24s ease;
}

.pa-header .pa-brand:hover,
.pa-header .pa-brand:focus-visible {
  transform: translateY(-2px) scale(1.015);
  filter: drop-shadow(0 6px 8px rgba(5, 27, 115, .15));
}

@media (max-width: 1200px) {
  .pa-header {
    width: calc(100vw - 64px);
  }

  .pa-nav {
    padding-inline: 36px;
    gap: 12px;
  }

  .pa-footer {
    width: calc(100vw - 64px);
    padding-inline: 52px;
  }
}

@media (max-width: 980px) {
  html { scroll-padding-top: 105px; }

  .pa-header {
    top: 18px;
    width: calc(100vw - 32px);
    height: 76px;
    border-radius: 26px;
  }

  .pa-header.is-scrolled { top: 10px; }

  .pa-nav {
    position: static;
    inset: auto;
    width: 100%;
    background: transparent;
    border-radius: 0;
    display: flex;
    flex-direction: row;
    padding: 0 22px;
    justify-content: flex-start;
    gap: 0;
  }

  .pa-header .pa-brand {
    width: 198px;
    height: 64px;
    margin: 0 auto 0 0;
  }

  .pa-nav > .pa-nav-link,
  .pa-nav > .pa-nav-projects,
  .pa-nav > .menu-item { display: none; }

  .pa-menu-toggle {
    position: absolute;
    z-index: 1002;
    right: 24px;
    top: 22px;
    width: 34px;
    height: 32px;
    padding: 5px;
    border: 0;
    background: transparent;
    display: grid !important;
    place-items: center;
    cursor: pointer;
  }

  .pa-menu-toggle::before {
    content: "☰";
    color: #00156e;
    font: 800 27px/1 var(--pa-global-font);
  }

  .pa-menu-toggle[aria-expanded="true"]::before { content: "×"; font-size: 34px; }

  .pa-menu-toggle::before { content:none; }
  .pa-menu-toggle {
    display:flex !important;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
  }
  .pa-menu-toggle > span:not(.screen-reader-text) {
    display:block;
    width:24px;
    height:3px;
    margin:0;
    border-radius:999px;
    background:#00156e;
    transition:transform .2s ease,opacity .2s ease;
  }
  .pa-menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform:translateY(8px) rotate(45deg); }
  .pa-menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity:0; }
  .pa-menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform:translateY(-8px) rotate(-45deg); }

  .pa-nav.is-open {
    position: fixed;
    z-index: 1001;
    inset: 10px 16px auto;
    width: auto;
    height: auto;
    padding: 8px 20px 24px;
    border-radius: 28px;
    background: #f8f8f8;
    box-shadow: 0 12px 35px rgba(0, 14, 80, .28);
    flex-direction: column;
    align-items: stretch;
  }

  .pa-nav.is-open > .pa-nav-link,
  .pa-nav.is-open > .pa-nav-projects,
  .pa-nav.is-open > .menu-item {
    display: flex;
    width: 100%;
    height: auto;
  }

  .pa-nav.is-open .pa-brand { margin-bottom: 8px; }
  .pa-nav.is-open .pa-nav-link { width: 100%; min-height: 52px; }

  .pa-footer {
    width: calc(100vw - 32px);
    padding: 36px 28px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    border-radius: 28px;
  }

  .pa-footer-brand { width: 104px; height: 104px; }
  .pa-footer-content { width: 100%; padding: 0; }
  .pa-footer-nav { flex-wrap: wrap; justify-content: center; gap: 18px 30px; }
  .pa-footer-meta { justify-content: center; gap: 16px 30px; flex-wrap: wrap; }
  .pa-footer-decoration { display: none; }
}

@media (max-width: 520px) {
  html { scroll-padding-top:82px; }
  .pa-header {
    top:12px;
    width:calc(100vw - 32px);
    height:64px;
    overflow:visible;
    border-radius:22px;
  }
  .pa-header.is-scrolled { top:8px; }
  .pa-header .pa-brand { width:148px; height:54px; }
  .pa-nav { min-width:0; padding-inline:16px; }
  .pa-menu-toggle {
    right:12px;
    top:15px;
    width:34px;
    height:34px;
    padding:6px;
    display:flex !important;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    border-radius:50%;
    background:rgba(0,23,149,.07);
  }
  .pa-menu-toggle::before { content:none !important; }
  .pa-menu-toggle > span:not(.screen-reader-text) {
    display:block;
    width:21px;
    height:2.5px;
    margin:0;
    border-radius:999px;
    background:#00156e;
    transition:transform .2s ease,opacity .2s ease;
  }
  .pa-menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform:translateY(8px) rotate(45deg); }
  .pa-menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity:0; }
  .pa-menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform:translateY(-8px) rotate(-45deg); }
  .pa-nav.is-open {
    inset:8px 16px auto;
    padding:7px 16px 16px;
    border-radius:22px;
    gap:2px;
  }
  .pa-nav.is-open > .pa-nav-link,
  .pa-nav.is-open > .menu-item {
    display:flex !important;
    width:100%;
    height:auto;
  }
  .pa-nav.is-open .pa-brand { margin-bottom:2px; }
  .pa-nav.is-open .pa-nav-link {
    min-height:43px;
    padding:8px 14px;
    border-radius:14px;
    font-size:15px;
  }
  body.menu-open { overflow:hidden; }
}

@media (max-width: 640px) {
  .pa-legal-page { padding: 130px 18px 60px; }
  .pa-legal-page article { padding: 38px 24px; border-radius: 24px; }
  .pa-legal-page h1 { margin-bottom: 36px; font-size: 42px; }
  .pa-legal-page h2 { font-size: 24px; }
  .pa-legal-page p { font-size: 17px; }
}
.pa-video-modal[hidden] { display:none; }
.pa-video-modal { position:fixed; z-index:20000; inset:0; padding:clamp(14px,3vw,48px); background:rgba(2,10,45,.88); backdrop-filter:blur(10px); display:grid; place-items:center; }
.pa-video-modal-dialog { position:relative; width:min(1180px,calc(100vw - 28px)); aspect-ratio:16/9; max-height:calc(100vh - 28px); border:3px solid #24cfff; border-radius:24px; background:#061d67; box-shadow:0 22px 70px rgba(0,0,0,.45); overflow:visible; }
.pa-video-modal-player,.pa-video-modal-player iframe,.pa-video-modal-player video { display:block; width:100%; height:100%; border:0; border-radius:20px; background:#061d67; }
.pa-video-modal-player video { object-fit:contain; }
.pa-video-modal-close { position:absolute; z-index:2; right:-16px; top:-16px; width:48px; height:48px; padding:0; border:2px solid #fff; border-radius:50%; background:#06269d; color:#fff; box-shadow:0 8px 20px rgba(0,0,0,.32); font:400 34px/1 Arial,sans-serif; cursor:pointer; }
.pa-video-modal-close:hover,.pa-video-modal-close:focus-visible { transform:scale(1.08); background:#fb4b24; }
.pa-video-modal-close:focus-visible { outline:3px solid #23d6ff; outline-offset:3px; }

/* Navigation states and project selector. */
.pa-nav-projects {
  position: relative;
  z-index: 2;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pa-nav-projects > .pa-nav-link {
  width: 100%;
}

.pa-nav > .pa-nav-link::before,
.pa-nav-projects > .pa-nav-link::before {
  content: "✦";
  width: 0;
  overflow: hidden;
  color: #8659ff;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transform: scale(.6) rotate(-25deg);
  transition: width .2s ease, opacity .2s ease, transform .25s ease;
}

.pa-nav > .pa-nav-link:hover,
.pa-nav > .pa-nav-link:focus-visible,
.pa-nav > .pa-nav-link.is-active,
.pa-nav > .pa-nav-link[aria-current="page"],
.pa-nav-projects:hover > .pa-nav-link,
.pa-nav-projects:focus-within > .pa-nav-link,
.pa-nav-projects.is-open > .pa-nav-link {
  border-color: #061b5f;
  background: #03164c;
  box-shadow: inset 0 0 0 1px rgba(129, 160, 255, .12);
  color: #fff;
}

.pa-nav > .pa-nav-link:hover::before,
.pa-nav > .pa-nav-link:focus-visible::before,
.pa-nav > .pa-nav-link.is-active::before,
.pa-nav > .pa-nav-link[aria-current="page"]::before,
.pa-nav-projects:hover > .pa-nav-link::before,
.pa-nav-projects:focus-within > .pa-nav-link::before,
.pa-nav-projects.is-open > .pa-nav-link::before {
  width: 18px;
  opacity: 1;
  transform: scale(1) rotate(0);
}

.pa-projects-dropdown {
  position: absolute;
  z-index: 5010;
  top: calc(100% - 8px);
  left: 50%;
  width: 216px;
  padding: 14px 15px 17px;
  border: 1px solid rgba(91, 133, 255, .35);
  border-radius: 20px;
  background: #001447;
  box-shadow: 0 5px 0 rgba(0, 10, 54, .55), 0 18px 28px rgba(0, 10, 61, .3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -7px);
  transition: opacity .2s ease, visibility .2s ease, transform .22s ease;
}

.pa-nav-projects:hover .pa-projects-dropdown,
.pa-nav-projects:focus-within .pa-projects-dropdown,
.pa-nav-projects.is-open .pa-projects-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.pa-projects-dropdown a i {
  color: #8b57ff;
  font-style: normal;
}

.pa-projects-dropdown a {
  width: 100%;
  min-height: 43px;
  margin-top: 7px;
  padding: 0 13px;
  border: 1px solid rgba(133, 164, 255, .38);
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(68, 102, 182, .34), rgba(38, 60, 124, .5));
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: flex-start;
  font-size: 13px;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.pa-projects-dropdown a:first-of-type {
  margin-top: 0;
}

.pa-projects-dropdown a i {
  color: #516eaf;
  transition: color .18s ease, transform .18s ease;
}

.pa-projects-dropdown a:hover,
.pa-projects-dropdown a:focus-visible {
  border-color: #8aaeff;
  background: #0d2c77;
  color: #fff;
  outline: none;
  transform: translateX(2px);
}

.pa-projects-dropdown a:hover i,
.pa-projects-dropdown a:focus-visible i {
  color: #9a6cff;
  transform: rotate(18deg) scale(1.12);
}

.pa-nav .pa-projects-dropdown a { color: #fff; }

@media (max-width: 980px) {
  .pa-nav-projects {
    display: none;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .pa-nav.is-open > .pa-nav-projects { display: flex; }
  .pa-nav-projects > .pa-nav-link { width: 100%; }

  .pa-projects-dropdown,
  .pa-nav-projects:hover .pa-projects-dropdown,
  .pa-nav-projects:focus-within .pa-projects-dropdown {
    position: static;
    width: 100%;
    max-height: 0;
    padding: 0 14px;
    border-width: 0;
    border-radius: 18px;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: none;
    box-shadow: none;
  }

  .pa-nav-projects.is-open .pa-projects-dropdown {
    max-height: 280px;
    margin: 3px 0 8px;
    padding: 10px 14px 14px;
    border-width: 1px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pa-nav-link::before,
  .pa-projects-dropdown,
  .pa-projects-dropdown a {
    transition: none;
  }
}
