body.page {
  background: #031827;
  main {
    background: #031827;
    min-height: 100vh;
    /*min-height: 100svh;*/
    padding: 0;
    & > header {
      inset: 0 0 auto;
      margin: 0;
      padding: clamp(12px, 1.6vw, 18px) clamp(18px, 3.5vw, 46px);
      position: fixed;
      width: 100%;
    }
  }
}

.hero {
  align-items: center;
  display: flex;
  isolation: isolate;
  min-height: 72svh;
  overflow: hidden;
  position: relative;
  .hero__image,
  .hero__shade {
    inset: 0;
    position: absolute;
  }
  .hero__image {
    animation: hero-cycle 18s ease-in-out infinite;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 70%;
    opacity: 0;
    width: 100%;
    will-change: opacity;
    z-index: -2;
    &.image--one {
      object-position: center 72%;
    }
    &.image--two {
      animation-delay: -12s;
      object-position: center 70%;
      transform: scaleX(-1);
    }
    &.image--three {
      animation-delay: -6s;
      object-position: center 58%;
    }
  }
  .hero__shade {
    background: linear-gradient(90deg, rgb(1 20 34 / 96%) 0%, rgb(1 20 34 / 79%) 23%, rgb(1 20 34 / 25%) 55%, transparent 76%),
    linear-gradient(0deg, rgb(1 20 34 / 22%), transparent 42%);
    z-index: -1;
  }
  .hero__inner {
    margin: 0 auto;
    padding: clamp(115px, calc(14vh + 10px), 150px) clamp(1rem, 4vw, 2.5rem) clamp(34px, calc(7vh - 10px), 56px);
    width: min(100%, 1380px);
  }
  .hero__copy {
    max-width: 490px;
  }
  .hero__media {
    display: contents;
  }
  .hero__eyebrow {
    color: var(--accent);
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: var(--weight-bold);
    letter-spacing: 0.22em;
    margin-bottom: 19px;
    text-transform: uppercase;
  }
  h1 {
    font-size: clamp(48px, 5vw, 68px);
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 24px;
  }
  .hero__rule {
    background: var(--accent);
    height: 1px;
    margin-bottom: 18px;
    opacity: 0.75;
    width: min(100%, 380px);
  }
  .hero__intro {
    color: rgb(255 255 255 / 87%);
    font-size: clamp(15px, 1.4vw, 17px);
    margin-bottom: 18px;
  }
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
}

.button {
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 2px;
  display: inline-flex;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: var(--weight-bold);
  justify-content: center;
  letter-spacing: 0.13em;
  min-height: 45px;
  padding: 11px 18px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  &:hover,
  &:focus-visible {
    outline: none;
    transform: translateY(-1px);
  }
  &.button--primary {
    background: var(--accent);
    color: var(--ink);
    &:hover,
    &:focus-visible {
      background: #e3c152;
    }
  }
  &.button--outline {
    background: rgb(2 22 37 / 36%);
    color: var(--accent);
    &:hover,
    &:focus-visible {
      background: var(--accent);
      color: var(--ink);
    }
  }
}

.benefits {
  background: #031827;
  .benefits__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0 auto;
    max-width: 1030px;
  }
  .benefit {
    align-items: center;
    display: flex;
    font-family: var(--sans);
    font-size: 0.73rem;
    font-weight: var(--weight-bold);
    gap: 14px;
    justify-content: center;
    letter-spacing: 0.08em;
    line-height: 1.55;
    min-height: 78px;
    padding: 10px 22px;
    text-transform: uppercase;
    & + .benefit {
      border-left: 1px solid rgb(212 175 55 / 58%);
    }
  }
  .benefit__icon {
    align-items: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 50px;
    height: 50px;
    justify-content: center;
    width: 50px;
    .line-icon {
      height: 30px;
      width: 30px;
    }
  }
}

.availability {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: clamp(18px, 3vw, 44px);
  justify-content: space-between;
  padding: 14px clamp(1rem, 4vw, 2.5rem);
  h2 {
    flex: 1 1 auto;
    font-size: clamp(27px, 3vw, 39px);
    letter-spacing: -0.025em;
    line-height: 1;
    text-align: center;
  }
  .button {
    flex: 0 0 auto;
    min-height: 37px;
    min-width: 242px;
    padding-block: 7px;
  }
}

@media (min-width: 901px) {
  .availability::before {
    content: "";
    flex: 0 0 242px;
  }
}

@media (min-width: 901px) and (min-height: 640px) {
  body.page {
    overflow: hidden;
  }
  body.page main {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 78px 96px auto;
    height: 100vh;
    height: 100svh;
  }
  .hero {
    min-height: 0;
  }
  .benefits,
  .benefits__list,
  .availability,
  .site-credit {
    height: 100%;
    min-height: 0;
  }
}

@keyframes hero-cycle {
  0%,
  27% {
    opacity: 1;
  }
  33%,
  94% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 70svh;
    .hero__image {
      object-position: 61% 70%;
      &.image--two {
        object-position: 40% 70%;
      }
      &.image--three {
        object-position: center 58%;
      }
    }
    .hero__shade {
      background: linear-gradient(90deg, rgb(1 20 34 / 94%) 0%, rgb(1 20 34 / 68%) 48%, rgb(1 20 34 / 12%) 100%);
    }
  }
  .benefits {
    .benefits__list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .benefit {
      &:nth-child(3) {
        border-left: 0;
      }
      &:nth-child(n + 3) {
        border-top: 1px solid rgb(212 175 55 / 58%);
      }
    }
  }
}

@media (max-width: 560px) {
  .hero {
    align-items: stretch;
    min-height: 0;
    overflow: visible;
    .hero__media {
      aspect-ratio: 4 / 3;
      border: 1px solid rgb(212 175 55 / 28%);
      display: block;
      isolation: isolate;
      margin: 0 calc(clamp(1rem, 4vw, 2.5rem) * -1) 26px;
      overflow: hidden;
      position: relative;
      &::after {
        background: linear-gradient(0deg, rgb(1 20 34 / 25%), transparent 45%);
        content: "";
        inset: 0;
        pointer-events: none;
        position: absolute;
        z-index: -1;
      }
    }
    .hero__image {
      object-position: 64% 72%;
      z-index: -2;
      &.image--two {
        object-position: 32% 70%;
      }
      &.image--three {
        object-position: center 58%;
      }
    }
    .hero__shade {
      display: none;
    }
    .hero__inner {
      padding: 118px clamp(1rem, 4vw, 2.5rem) 38px;
    }
    .hero__copy {
      max-width: none;
    }
    .hero__eyebrow {
      margin-bottom: 16px;
    }
    h1 {
      font-size: clamp(39px, 11.5vw, 52px);
      margin-bottom: 20px;
    }
    .hero__actions {
      width: 100%;
    }
  }
  .button {
    width: 100%;
  }
  .benefits {
    .benefits__list {
      grid-template-columns: 1fr;
    }
    .benefit {
      justify-content: flex-start;
      min-height: 72px;
      padding-inline: max(24px, calc((100vw - 280px) / 2));
      & + .benefit {
        border-left: 0;
        border-top: 1px solid rgb(212 175 55 / 58%);
      }
    }
  }
  .availability {
    flex-direction: column;
    justify-content: center;
    min-height: 160px;
    text-align: center;
    .button {
      min-width: 0;
      width: min(100%, 280px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero__image {
    animation: none;
    opacity: 0;
    &.image--one {
      opacity: 1;
    }
  }
  .button {
    transition: none;
  }
}

/* Home-only compact transparency statement and responsive footer. */
body.page .availability {
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  height: auto;
  min-height: 0;
  padding: 28px clamp(20px, 4vw, 40px);
  text-align: center;
}
.availability__copy { flex: none; min-width: 0; width: 100%; }
body.page .availability h2 {
  max-width: 32ch;
  margin: 0 auto;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}
body.page .availability .button {
  min-width: 0;
  min-height: 44px;
  width: auto;
  max-width: 100%;
  padding-inline: 24px;
}
.benefits__licence {
  margin: 0;
  padding: 10px 24px 14px;
  text-align: center;
  font-size: .875rem;
  line-height: 1.5;
}
body.page main > footer { margin-inline: 0; width: 100%; }
@media (min-width: 901px) {
  .availability::before { display: none; }
  body.page { overflow: auto; }
  body.page main { height: auto; min-height: 100svh; grid-template-rows: minmax(520px, 1fr) auto auto auto; }
  body.page .benefits .benefits__list { height: auto; }
}
