.site-header {
  position: relative;
  z-index: 100;
  height: var(--header-height);
  background: rgb(255 255 255 / 97%);
}

.site-header.is-sticky {
  position: sticky;
  top: 0;
  box-shadow: 0 10px 35px rgb(27 48 70 / 7%);
}

.site-header__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: block;
  width: clamp(190px, 18vw, 245px);
}

.site-logo img {
  width: 100%;
  height: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(30px, 4vw, 58px);
  list-style: none;
}

.site-nav a {
  position: relative;
  display: block;
  padding-block: 10px;
  font-size: .94rem;
  font-weight: 400;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--blue-bright);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav a[aria-current="page"] {
  color: var(--blue-deep);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
}

.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--ink);
  content: "";
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

.menu-toggle__lines {
  position: relative;
}

.menu-toggle__lines::before {
  position: absolute;
  top: -7px;
}

.menu-toggle__lines::after {
  position: absolute;
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.page-hero {
  position: relative;
  display: grid;
  min-height: 254px;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("../images/page-hero.jpg") center 56% / cover no-repeat;
  content: "";
  transform: scale(1.015);
}

.page-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(34 78 127 / 56%), rgb(54 117 157 / 18%));
  content: "";
}

.page-hero__title {
  position: relative;
  width: min(430px, 45vw);
  margin-bottom: clamp(34px, 2.4vw, 42px);
  padding-bottom: 10px;
  color: var(--white);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 400;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.page-hero__title::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgb(255 255 255 / 70%);
  content: "";
}

.site-footer {
  padding: clamp(48px, 4.5vw, 68px) 0 24px;
  color: #62676d;
  background: var(--white);
  border-top: 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr;
  gap: clamp(30px, 5vw, 74px);
}

.footer-logo {
  width: min(245px, 100%);
}

.site-footer__title {
  margin-bottom: 25px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}

.site-footer address {
  font-style: normal;
}

.site-footer p,
.site-footer address,
.site-footer li {
  margin: 0;
  font-size: .9rem;
  line-height: 1.85;
}

.site-footer ul {
  list-style: none;
}

.site-footer a {
  transition: color .2s;
}

.social-link {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-top: 14px;
  place-items: center;
  color: var(--blue-bright);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 600;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(45px, 5vw, 72px);
  padding-top: 22px;
  border-top: 0;
  font-size: .72rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
}

.back-to-top {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--blue-deep);
  background: rgb(255 255 255 / 92%);
  border: 1px solid var(--line);
  box-shadow: 0 8px 25px rgb(30 63 98 / 12%);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top::before {
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: translateY(3px) rotate(45deg);
}

.back-to-top span {
  display: none;
}

.dialog {
  width: min(1100px, calc(100% - 32px));
  max-height: min(82vh, 850px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--white);
  border: 0;
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgb(24 44 67 / 72%);
  backdrop-filter: blur(4px);
}

.dialog__inner {
  padding: clamp(30px, 3vw, 36px);
}

.dialog__close {
  position: sticky;
  z-index: 2;
  top: 16px;
  float: right;
  width: 42px;
  height: 42px;
  margin: 0 0 10px 20px;
  color: var(--ink);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}

.dialog__close::before,
.dialog__close::after {
  position: absolute;
  top: 20px;
  left: 11px;
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}

.dialog__close::after {
  transform: rotate(-45deg);
}

.dialog h2 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
}

.lightbox {
  width: min(1100px, calc(100% - 32px));
  max-height: 90vh;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.lightbox img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
}

.lightbox .dialog__close {
  position: absolute;
  top: -8px;
  right: -8px;
  float: none;
  margin: 0;
  color: var(--white);
  background: rgb(24 24 27 / 72%);
}

.dialog__role {
  margin-bottom: 22px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    z-index: -1;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--blue-deep), var(--blue));
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    visibility: hidden;
    transition: opacity .3s, transform .3s, visibility 0s linear .3s;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .site-nav a {
    color: var(--white);
    font-size: clamp(1.55rem, 6vw, 2.3rem);
    font-weight: 300;
  }

  .site-nav a[aria-current="page"] {
    color: var(--blue-pale);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .site-logo {
    width: 160px;
  }

  .page-hero {
    min-height: 217px;
  }

  .page-hero__title {
    width: 100%;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
