.top-page {
  overflow: hidden;
}

.entrance {
  --enter-duration: 780ms;
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  min-height: 100dvh;
  grid-template-rows: minmax(0, 1fr) auto auto;
  overflow: hidden;
  padding:
    calc(20px + env(safe-area-inset-top))
    calc(18px + env(safe-area-inset-right))
    calc(14px + env(safe-area-inset-bottom))
    calc(18px + env(safe-area-inset-left));
}

.entrance::after {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 10;
  background: radial-gradient(
    circle at 50% 46%,
    rgb(255 250 232 / 96%) 0,
    rgb(246 218 163 / 78%) 15%,
    rgb(222 176 104 / 36%) 31%,
    rgb(108 68 32 / 11%) 48%,
    transparent 68%
  );
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(.2);
  transform-origin: 50% 46%;
  transition:
    transform var(--enter-duration) cubic-bezier(.2, .62, .18, 1),
    opacity var(--enter-duration) cubic-bezier(.25, .68, .2, 1);
  will-change: transform, opacity;
}

.entrance__image,
.entrance__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.entrance__image {
  z-index: -3;
  object-fit: cover;
  object-position: 50% center;
  filter: brightness(.62) saturate(.78) contrast(1.06);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 50% 46%;
  transition: transform var(--enter-duration) cubic-bezier(.24, .58, .16, 1);
  will-change: transform;
}

.entrance__shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgb(1 5 10 / 76%) 0, rgb(1 6 12 / 22%) 38%, rgb(1 3 7 / 43%) 68%, rgb(1 2 4 / 94%) 100%),
    radial-gradient(ellipse at center 44%, transparent 28%, rgb(0 2 5 / 56%) 100%);
}

.entrance__identity {
  align-self: start;
  justify-self: center;
  display: grid;
  justify-items: center;
  width: min(100%, 620px);
  margin-top: clamp(56px, 9.5svh, 106px);
  text-align: center;
  text-shadow: 0 3px 15px #000;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    transform var(--enter-duration) cubic-bezier(.24, .58, .16, 1),
    opacity var(--enter-duration) ease;
}

.asset-slot--crest {
  width: clamp(58px, 15vw, 96px);
  aspect-ratio: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 8px 18px rgb(0 0 0 / 52%));
}

.asset-slot--title {
  width: min(92vw, 590px);
  border: 0;
  background: transparent;
}

.official-title-logo {
  width: 100%;
}

.asset-slot--title h1 {
  margin: 0;
  color: var(--paper);
  font: 500 clamp(34px, 10.5vw, 78px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: .085em;
  white-space: nowrap;
}

.asset-slot--title p {
  margin: 8px 0 0;
  color: var(--gold-bright);
  font-size: clamp(11px, 3.4vw, 17px);
  letter-spacing: .28em;
}

.official-label {
  display: grid;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
  gap: 10px;
  width: min(92%, 530px);
  margin: 17px 0 0;
  color: var(--gold-bright);
  font: clamp(10px, 2.7vw, 15px)/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: .25em;
}

.official-label span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.official-label span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.site-motto {
  margin: 20px 0 0;
  color: var(--gold-bright);
  font-size: clamp(13px, 4vw, 22px);
  letter-spacing: .13em;
  text-shadow: 0 2px 12px #000, 0 0 20px rgb(216 187 128 / 12%);
}

.entrance__action {
  align-self: end;
  justify-self: center;
  width: min(82vw, 430px);
  margin-bottom: clamp(16px, 3.6svh, 42px);
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    transform var(--enter-duration) cubic-bezier(.24, .58, .16, 1),
    opacity var(--enter-duration) ease;
}

.enter-link {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(72px, 12svh, 104px);
  border: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, rgb(17 13 10 / 92%), rgb(3 4 5 / 96%));
  color: var(--gold-bright);
  font: clamp(29px, 8vw, 48px)/1 Georgia, "Times New Roman", serif;
  letter-spacing: .12em;
  text-decoration: none;
  box-shadow: 0 16px 28px rgb(0 0 0 / 55%), inset 0 0 0 5px rgb(216 187 128 / 7%);
  transition: border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.enter-link::before,
.enter-link::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgb(216 187 128 / 25%);
  pointer-events: none;
}

.enter-link::after {
  inset: -1px;
  border-color: transparent;
  background: linear-gradient(90deg, transparent, rgb(216 187 128 / 18%), transparent);
  opacity: 0;
  transition: opacity .2s ease;
}

.enter-link:hover::after {
  opacity: 1;
}

.enter-link:hover,
.enter-link:focus-visible {
  border-color: var(--gold);
  color: #f7e7bd;
  box-shadow: 0 18px 34px rgb(0 0 0 / 62%), inset 0 0 0 5px rgb(216 187 128 / 10%);
}

.enter-link:active {
  transform: translateY(1px);
}

.entrance.is-entering::after {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(2.35);
}

.entrance.is-entering .entrance__image {
  transform: translate3d(0, 0, 0) scale(1.095);
}

.entrance.is-entering .entrance__identity,
.entrance.is-entering .entrance__action {
  opacity: .82;
  transform: translate3d(0, 0, 0) scale(1.025);
}

.entrance.is-entering .enter-link {
  pointer-events: none;
}

.provisional-credits {
  align-self: end;
  color: rgb(241 229 204 / 58%);
  font-size: clamp(7px, 2vw, 9px);
  line-height: 1.5;
  letter-spacing: .08em;
  text-align: center;
  transition: opacity var(--enter-duration) ease;
}

.entrance.is-entering .provisional-credits {
  opacity: .72;
}

.entrance.is-entering-simple {
  --enter-duration: 180ms;
}

.entrance.is-entering-simple::after {
  opacity: .22;
  transform: translate3d(0, 0, 0) scale(1.2);
}

.entrance.is-entering-simple .entrance__image {
  transform: translate3d(0, 0, 0) scale(1.01);
}

.entrance.is-entering-simple .entrance__identity,
.entrance.is-entering-simple .entrance__action {
  opacity: .68;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 350px) {
  .entrance {
    padding-inline: calc(14px + env(safe-area-inset-left)) calc(14px + env(safe-area-inset-right));
  }

  .asset-slot--title h1 {
    font-size: 31px;
    letter-spacing: .06em;
  }

  .site-motto {
    letter-spacing: .08em;
  }
}

.provisional-credits p {
  margin: 2px 0;
}

@media (max-height: 600px) {
  .entrance__identity {
    margin-top: 32px;
  }

  .asset-slot--crest {
    width: 48px;
    margin-bottom: 8px;
  }

  .official-label {
    margin-top: 10px;
  }

  .site-motto {
    margin-top: 11px;
  }

  .entrance__action {
    margin-bottom: 8px;
  }
}

@media (min-width: 700px) {
  .entrance__image {
    object-position: 50% 58%;
  }

  .entrance__identity {
    margin-top: clamp(70px, 9vh, 120px);
  }
}

@media (min-width: 768px) and (max-width: 1180px) and (min-height: 600px) {
  .entrance {
    padding-inline:
      calc(3vw + env(safe-area-inset-left))
      calc(3vw + env(safe-area-inset-right));
  }

  .entrance__identity {
    width: 92vw;
    max-width: 900px;
  }

  .asset-slot--title {
    width: min(78vw, 720px);
  }
}

@media (min-width: 768px) and (max-width: 1180px) and (min-height: 600px) and (orientation: landscape) {
  .entrance__identity {
    width: 95vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entrance {
    --enter-duration: 180ms;
  }

  .top-page .entrance::after,
  .top-page .entrance__image,
  .top-page .entrance__identity,
  .top-page .entrance__action,
  .top-page .provisional-credits {
    transition-duration: var(--enter-duration) !important;
  }

  .entrance::after {
    background: radial-gradient(circle at 50% 46%, rgb(246 225 184 / 42%), transparent 68%);
    transform: none;
  }

  .entrance.is-entering::after {
    opacity: 1;
    transform: none;
  }

  .entrance.is-entering .entrance__image,
  .entrance.is-entering .entrance__identity,
  .entrance.is-entering .entrance__action {
    transform: none;
  }
}
