:root {
  --chrome-environment: #050608;
  --chrome-header-art-height: 116px;
  --chrome-header-center-inset: 154px;
  --chrome-footer-art-height: 156px;
  --chrome-footer-center-inset: 176px;
  --chrome-footer-row-height: 164px;
  --header-height: 116px;
}

html {
  background: var(--chrome-environment);
}

body {
  background-color: var(--chrome-environment);
  background-image: url("/assets/redspire-global-deep-space.jpeg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: block;
  min-height: var(--header-height);
  overflow: visible;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  color: #fff;
  isolation: isolate;
}

.site-header::before,
.site-header::after,
.site-footer::before,
.site-footer::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.site-header::before {
  inset: 0;
  z-index: 1;
  background:
    url("/assets/header-left.png") left center / auto var(--chrome-header-art-height) no-repeat,
    url("/assets/header-right.png") right center / auto var(--chrome-header-art-height) no-repeat;
}

.site-header::after {
  inset: 0 var(--chrome-header-center-inset);
  background: url("/assets/header-center.png") center / 100% var(--chrome-header-art-height) no-repeat;
}

.site-header__bar {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  min-height: var(--header-height);
  align-items: center;
  grid-template-columns: minmax(11rem, auto) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.75rem);
  padding: 0 clamp(9.75rem, 10vw, 11rem);
  background: transparent;
}

.site-header .brand-mark {
  display: flex;
  min-width: 0;
  align-items: center;
  align-self: center;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  gap: 0.75rem;
  margin: 0;
  color: #f5f4f2;
  text-decoration: none;
  text-shadow: 0 2px 9px rgb(0 0 0 / 0.68);
  transform: translateY(2px);
}

.site-header .brand-icon {
  display: grid;
  width: 2.8rem;
  height: 2.95rem;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgb(185 193 201 / 0.42);
  background: rgb(3 5 8 / 0.7);
  box-shadow:
    inset 0 1px rgb(255 255 255 / 0.08),
    0 5px 14px rgb(0 0 0 / 0.36);
}

.site-header .brand-icon img {
  width: 1.82rem;
  max-width: 1.82rem;
  max-height: 2.05rem;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
  line-height: 1;
}

.site-header .brand-name {
  color: #f7f5f2;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.55vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 0.92;
  white-space: nowrap;
  text-transform: uppercase;
}

.brand-subtitle {
  color: rgb(235 238 241 / 0.78);
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.48em;
  line-height: 1;
  text-transform: uppercase;
}

.site-header-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  align-self: center;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  gap: clamp(1rem, 2.4vw, 2.5rem);
  font-family: var(--font-body);
}

.site-header-nav a {
  color: rgb(247 246 244 / 0.82);
  font-size: clamp(0.72rem, 0.82vw, 0.84rem);
  font-weight: 650;
  letter-spacing: 0.15em;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 2px 8px rgb(0 0 0 / 0.7);
  text-transform: uppercase;
  transition:
    color 180ms ease,
    text-shadow 180ms ease;
}

.site-header-nav a:hover,
.site-header-nav a:focus-visible,
.site-header-nav a[aria-current="page"] {
  color: #fff;
  text-shadow:
    0 2px 8px rgb(0 0 0 / 0.72),
    0 0 10px rgb(255 79 98 / 0.32);
}

.menu-toggle {
  grid-column: 3;
  grid-row: 1;
  width: clamp(4.65rem, 5.2vw, 5.55rem);
  height: auto;
  aspect-ratio: 938 / 759;
  justify-self: end;
  align-self: center;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0.4rem 0.75rem rgb(0 0 0 / 0.62));
  transform-origin: center;
}

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

.menu-toggle:hover,
.menu-toggle:focus-visible {
  box-shadow: none;
  filter:
    brightness(1.1)
    drop-shadow(0 0.4rem 0.8rem rgb(0 0 0 / 0.65))
    drop-shadow(0 0 0.45rem rgb(240 32 56 / 0.28));
  outline: none;
}

.menu-toggle::before {
  content: none;
}

.menu-toggle__icon {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.menu-toggle__blade {
  position: absolute;
  inset: 0;
  display: block;
  background: url("/assets/redspire-menu-toggle.png") center / contain no-repeat;
  pointer-events: none;
  will-change: opacity, transform;
  transition:
    opacity 260ms ease,
    transform 820ms cubic-bezier(0.22, 0.78, 0.2, 1);
}

.menu-toggle__blade--top {
  clip-path: inset(0 0 66% 0);
  transform-origin: 50% 17%;
}

.menu-toggle__blade--middle {
  clip-path: inset(33% 0 34% 0);
  transform-origin: center;
}

.menu-toggle__blade--bottom {
  clip-path: inset(66% 0 0 0);
  transform-origin: 50% 83%;
}

.site-header.is-menu-open .menu-toggle__blade--top {
  transform: translateY(33%) rotate(31deg) scale(0.82);
}

.site-header.is-menu-open .menu-toggle__blade--middle {
  opacity: 0;
  transform: scaleX(0.12);
}

.site-header.is-menu-open .menu-toggle__blade--bottom {
  transform: translateY(-33%) rotate(-31deg) scale(0.82);
}

.site-header.is-menu-closing .menu-toggle__blade {
  transition-duration: 820ms;
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle__blade,
  .site-header.is-menu-closing .menu-toggle__blade {
    transition-duration: 1ms;
  }
}

.menu-toggle__glyph {
  display: none;
}

.rs-menu {
  z-index: 4;
}

.site-footer {
  --footer-side-padding: clamp(10.25rem, 9.5vw, 11.5rem);
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(var(--chrome-footer-row-height) + 4.35rem);
  align-items: center;
  grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.28fr);
  grid-template-rows: var(--chrome-footer-row-height) 4.35rem;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  color: #fff;
  isolation: isolate;
}

.site-footer::before {
  top: 0;
  right: 0;
  left: 0;
  height: var(--chrome-footer-row-height);
  z-index: 1;
  background:
    url("/assets/footer-left.png") left center / auto var(--chrome-footer-art-height) no-repeat,
    url("/assets/footer-right.png") right center / auto var(--chrome-footer-art-height) no-repeat;
}

.site-footer::after {
  top: 0;
  right: var(--chrome-footer-center-inset);
  left: var(--chrome-footer-center-inset);
  height: var(--chrome-footer-row-height);
  background: url("/assets/footer-center.png") center / 100% var(--chrome-footer-art-height) no-repeat;
}

.footer-brand,
.footer-links,
.site-footer > p,
.footer-legal-link {
  position: relative;
  z-index: 2;
}

.footer-brand {
  display: grid;
  min-width: 0;
  align-items: center;
  align-self: center;
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: 2.8rem minmax(0, auto);
  gap: 0.75rem;
  margin-left: var(--footer-side-padding);
  color: #f7f5f2;
  line-height: 1;
  text-shadow: 0 2px 9px rgb(0 0 0 / 0.68);
  transform: translateY(0.25rem);
}

.footer-brand .brand-icon {
  display: grid;
  width: 2.8rem;
  height: 2.95rem;
  grid-column: 1;
  grid-row: 1;
  place-items: center;
  overflow: hidden;
  background: rgb(3 5 8 / 0.7);
  border: 1px solid rgb(185 193 201 / 0.42);
  box-shadow:
    inset 0 1px rgb(255 255 255 / 0.08),
    0 5px 14px rgb(0 0 0 / 0.36);
}

.footer-brand .brand-icon img {
  width: 1.82rem;
  max-width: 1.82rem;
  max-height: 2.05rem;
  object-fit: contain;
}

.footer-brand .brand-copy {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  gap: 0.18rem;
}

.footer-brand .brand-name,
.footer-brand .brand-subtitle {
  text-transform: uppercase;
}

.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.55vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 0.92;
}

.footer-brand .brand-subtitle {
  color: rgb(235 238 241 / 0.78);
  font-family: var(--font-body);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.46em;
  line-height: 1;
}

.footer-links {
  display: flex;
  min-width: 0;
  align-items: center;
  align-self: center;
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-start;
  padding-right: var(--footer-side-padding);
  font-family: var(--font-body);
  transform: translateY(0.25rem);
}

.site-footer .footer-links > a {
  flex: 0 0 auto;
  color: rgb(247 246 244 / 0.8);
  font-size: clamp(0.7rem, 0.78vw, 0.82rem);
  font-weight: 650;
  letter-spacing: 0.13em;
  line-height: 1;
  opacity: 1;
  text-decoration: none;
  text-shadow: 0 2px 8px rgb(0 0 0 / 0.7);
  text-transform: uppercase;
}

.site-footer .footer-links > a::after {
  content: none;
}

.site-footer .footer-links > a:hover,
.site-footer .footer-links > a:focus-visible,
.site-footer .footer-links > a[aria-current="page"] {
  color: #fff;
  opacity: 1;
  text-shadow:
    0 2px 8px rgb(0 0 0 / 0.72),
    0 0 10px rgb(255 79 98 / 0.3);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  padding-left: clamp(0.9rem, 1.8vw, 1.5rem);
  border-left: 1px solid rgb(188 197 205 / 0.3);
}

.footer-social-link {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgb(182 190 199 / 0.3);
  background: rgb(2 4 7 / 0.56);
  box-shadow: inset 0 1px rgb(255 255 255 / 0.06);
}

.site-footer > p {
  align-self: center;
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  padding: 0 0 0 clamp(1.5rem, 4vw, 4rem);
  border: 0;
  color: rgb(209 214 220 / 0.62);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.footer-legal-link {
  align-self: center;
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  margin-right: clamp(1.5rem, 4vw, 4rem);
  color: rgb(209 214 220 / 0.64);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible,
.footer-legal-link[aria-current="page"] {
  color: #fff;
}

@media (max-width: 1180px) {
  :root {
    --chrome-header-center-inset: 138px;
    --chrome-footer-center-inset: 150px;
  }

  .site-header__bar {
    grid-template-columns: minmax(10rem, auto) minmax(0, 1fr);
    gap: 1.2rem;
    padding-inline: clamp(8rem, 11vw, 8.5rem);
  }

  .site-header-nav {
    gap: clamp(0.8rem, 1.7vw, 1.4rem);
  }

  .site-header-nav a {
    font-size: 0.69rem;
    letter-spacing: 0.11em;
  }

  .site-footer {
    --footer-side-padding: clamp(8.6rem, 12vw, 9rem);
    gap: 0 1.4rem;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 96px;
    --chrome-header-art-height: 96px;
    --chrome-header-center-inset: 94px;
    --chrome-header-side-width: 128px;
    --chrome-footer-row-height: 184px;
    --chrome-footer-art-height: 156px;
    --chrome-footer-center-inset: 92px;
  }

  .site-header__bar {
    grid-template-columns: minmax(10rem, auto) minmax(0, 1fr);
    gap: 1.4rem;
    padding-inline: clamp(3.75rem, 8vw, 5.2rem);
  }

  .site-header::before {
    -webkit-mask:
      linear-gradient(to right, #000 0 76%, transparent 100%) left center / var(--chrome-header-side-width) 100% no-repeat,
      linear-gradient(to left, #000 0 76%, transparent 100%) right center / var(--chrome-header-side-width) 100% no-repeat;
    mask:
      linear-gradient(to right, #000 0 76%, transparent 100%) left center / var(--chrome-header-side-width) 100% no-repeat,
      linear-gradient(to left, #000 0 76%, transparent 100%) right center / var(--chrome-header-side-width) 100% no-repeat;
  }

  .site-header-nav {
    display: flex;
    grid-column: 2;
  }

  .site-footer {
    --footer-side-padding: 0;
    min-height: calc(var(--chrome-footer-row-height) + 4.35rem);
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: var(--chrome-footer-row-height) 4.35rem;
    gap: 0;
  }

  .footer-links {
    align-self: center;
    grid-column: 1 / -1;
    justify-content: center;
    padding: 0;
  }

  .footer-socials {
    margin: 0;
  }
}

@media (max-width: 680px) {
  .site-header__bar {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.home-page):not(.not-found-page) .site-header .brand-mark {
    display: none;
  }

  .site-header .brand-mark {
    grid-column: 1;
    justify-self: center;
    transition:
      opacity 220ms ease,
      transform 220ms ease,
      visibility 0s linear;
  }

  .site-header-nav {
    display: none;
  }

  .menu-toggle {
    position: absolute;
    right: auto;
    left: 50%;
    width: 2.8rem;
    transform: translateX(-50%);
    transition:
      opacity 220ms ease,
      filter 180ms ease,
      transform 220ms ease,
      visibility 0s linear;
  }

  .home-page.nav-is-available .site-header .brand-mark {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(2px) scale(0.94);
  }

  .home-page:not(.nav-is-available) .menu-toggle {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) scale(0.9);
  }
}

@media (max-width: 540px) {
  :root {
    --header-height: 86px;
    --chrome-header-art-height: 76px;
    --chrome-header-center-inset: 70px;
    --chrome-header-side-width: 101.333px;
    --chrome-footer-row-height: 168px;
    --chrome-footer-art-height: 150px;
    --chrome-footer-center-inset: 0px;
  }

  body {
    background-attachment: scroll;
  }

  .site-header,
  .site-footer {
    background-attachment: scroll;
  }

  .site-footer::before {
    -webkit-mask:
      linear-gradient(to right, #000 0 82%, transparent 100%) left center / 170px 100% no-repeat,
      linear-gradient(to left, #000 0 82%, transparent 100%) right center / 170px 100% no-repeat;
    mask:
      linear-gradient(to right, #000 0 82%, transparent 100%) left center / 170px 100% no-repeat,
      linear-gradient(to left, #000 0 82%, transparent 100%) right center / 170px 100% no-repeat;
  }

  .site-footer::after {
    right: 0;
    left: 0;
    background-position: 70% center;
    background-size: auto var(--chrome-footer-art-height);
  }

  .site-header__bar {
    gap: 0.5rem;
    padding-inline: 6rem;
  }

  .site-header .brand-mark {
    gap: 0.4rem;
  }

  .site-header .brand-icon {
    width: 2.15rem;
    height: 2.3rem;
  }

  .site-header .brand-icon img {
    width: 1.35rem;
  }

  .site-header .brand-name {
    font-size: 0.9rem;
    letter-spacing: 0.065em;
  }

  .brand-subtitle {
    font-size: 0.4rem;
    letter-spacing: 0.34em;
  }

  .menu-toggle {
    width: 2.65rem;
    height: auto;
  }

  .menu-toggle::before {
    right: calc(100% + 0.35rem);
    height: 1.5rem;
  }

  .site-footer {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--chrome-footer-row-height) auto auto;
    gap: 0;
    padding: 0 1rem 1.25rem;
  }

  .footer-links {
    display: flex;
    align-self: center;
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
    justify-self: stretch;
    padding: 0;
    transform: none;
  }

  .footer-socials {
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    border-left: 0;
  }

  .footer-social-link {
    width: 1.9rem;
    height: 1.9rem;
  }

  .site-footer > p {
    align-self: center;
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    margin: 0;
    padding: 0.65rem 0 0;
    font-size: 0.62rem;
    text-align: center;
  }

  .footer-legal-link {
    align-self: center;
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    margin: 0;
    padding: 0.65rem 0 0;
    font-size: 0.62rem;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .site-header__bar {
    gap: 0.35rem;
    padding-inline: 4rem;
  }

  .site-header .brand-icon {
    width: 2rem;
    height: 2.12rem;
  }

  .site-header .brand-name {
    font-size: 0.82rem;
  }

  .menu-toggle {
    width: 2.5rem;
    height: auto;
  }

  .site-footer > p,
  .footer-legal-link {
    padding-inline: 0.35rem;
    text-align: center;
  }
}
