:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  --line: rgba(255, 255, 255, 0.2);
  --muted: rgba(255, 255, 255, 0.7);
  --glass-line: rgba(255, 255, 255, 0.34);
  --glass-shadow: rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #18202a;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: #fff;
  background: #18202a;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

.scene,
.scene__image,
.scene__shade {
  position: fixed;
  inset: 0;
}

.scene {
  z-index: 0;
  overflow: hidden;
  background: #18202a;
  pointer-events: none;
}

.scene__image {
  background-color: #18202a;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 1;
  transform: scale(1.01);
  transition:
    opacity 320ms ease,
    transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scene__image.is-changing {
  opacity: 0.22;
  transform: scale(1.025);
}

.scene__shade {
  background:
    linear-gradient(180deg, rgba(5, 9, 13, 0.3) 0%, transparent 34%),
    linear-gradient(0deg, rgba(5, 9, 13, 0.38) 0%, transparent 32%),
    radial-gradient(
      circle at 50% 22%,
      rgba(5, 9, 13, 0.15) 0%,
      transparent 34%
    );
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
}

.identity {
  position: absolute;
  top: clamp(7.5rem, 18vh, 12rem);
  left: 50%;
  display: grid;
  justify-items: center;
  width: min(68rem, calc(100vw - 2rem));
  transform: translateX(-50%);
  text-align: center;
  text-shadow: 0 3px 35px rgba(0, 0, 0, 0.42);
}

.identity h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 6.2vw, 7.2rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.explore-button {
  --glass-x: 50%;
  --glass-y: 0%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  gap: 0.7rem;
  margin-top: clamp(1.7rem, 3.4vh, 2.7rem);
  padding: 0.82rem 1.25rem 0.82rem 1.45rem;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(
      circle at var(--glass-x) var(--glass-y),
      rgba(255, 255, 255, 0.26),
      transparent 42%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.05) 44%,
      rgba(8, 15, 22, 0.2)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    0 16px 44px var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.explore-button::before {
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.13),
    transparent 38% 72%,
    rgba(255, 255, 255, 0.08)
  );
  content: "";
  pointer-events: none;
}

.explore-button:hover,
.explore-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    0 20px 52px rgba(0, 0, 0, 0.34);
  outline: none;
  transform: translateY(-2px);
}

.explore-button svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.clock {
  position: absolute;
  left: clamp(1.4rem, 3vw, 2.7rem);
  bottom: clamp(1.4rem, 3vw, 2.7rem);
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.17em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6);
}

.explore-dialog {
  --glass-x: 50%;
  --glass-y: 0%;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: auto;
  width: min(48rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--glass-line);
  border-radius: 1.8rem;
  color: #fff;
  background:
    radial-gradient(
      circle at var(--glass-x) var(--glass-y),
      rgba(255, 255, 255, 0.18),
      transparent 38%
    ),
    linear-gradient(
      145deg,
      rgba(31, 44, 55, 0.66),
      rgba(10, 17, 24, 0.76)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 32px 110px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(34px) saturate(165%);
  -webkit-backdrop-filter: blur(34px) saturate(165%);
}

.explore-dialog[open] {
  animation: reveal-dialog 220ms ease-out;
}

.explore-dialog::backdrop {
  background: rgba(5, 9, 13, 0.44);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: reveal-backdrop 220ms ease-out;
}

.explore-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.2rem 0.2rem 1.6rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.explore-dialog h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.close-button {
  display: grid;
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.close-button:hover,
.close-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transform: rotate(4deg);
}

.close-button svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.destination-list {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.destination-card {
  display: grid;
  min-height: 7.2rem;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  transition:
    color 180ms ease,
    padding 180ms ease;
}

.destination-card:hover,
.destination-card:focus-visible {
  padding-right: 0;
  padding-left: 0.65rem;
  outline: none;
}

.destination-card__number {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.destination-card > svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
  transition: transform 180ms ease;
}

.destination-card:hover > svg {
  transform: translateX(3px);
}

.destination-card__content {
  display: grid;
  gap: 0.35rem;
}

.destination-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 400;
}

.destination-card small {
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.noscript {
  position: fixed;
  z-index: 3;
  left: 1rem;
  bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: #fff;
  background: #17212b;
}

@keyframes reveal-dialog {
  from {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.98);
  }
}

@keyframes reveal-backdrop {
  from {
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .scene__image {
    background-position: 64% center;
  }

  .identity {
    top: clamp(6.5rem, 15vh, 9rem);
    left: 50%;
    width: calc(100vw - 2rem);
  }

  .identity h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(2.4rem, 12vw, 4.4rem);
    line-height: 0.98;
  }

  .destination-card {
    min-height: 6.25rem;
    grid-template-columns: 2.2rem minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding: 0.95rem 0.2rem;
  }

  .explore-dialog {
    inset: auto 0.5rem max(0.5rem, env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 1rem - env(safe-area-inset-bottom));
    margin: 0;
    padding: 1rem;
    border-radius: 1.45rem;
  }

  .explore-dialog__header {
    gap: 1rem;
    padding: 0.1rem 0.1rem 1rem;
  }

  .explore-dialog h2 {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }
}

@media (max-height: 620px) {
  .explore-dialog {
    max-height: calc(100dvh - 1rem);
    padding: 1rem 1.2rem;
  }

  .explore-dialog__header {
    padding-bottom: 0.8rem;
  }

  .destination-card {
    min-height: 5.2rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }
}

@media (max-height: 620px) and (min-width: 761px) {
  .identity {
    top: 3.5rem;
  }

  .identity h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
