.hero .moon,
.hero .portal-wrap {
  display: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
}

.hero-copy h1 {
  font-size: clamp(44px, 5.25vw, 78px);
}

.hero-copy > p {
  max-width: 520px;
  margin: 18px 0 22px;
  font-size: 13.3px;
}

.hero-copy .button {
  height: 40px;
  padding: 0 13px;
  gap: 10px;
  border-radius: 6px;
  font-size: 13px;
}

.hero-copy .button.primary {
  border-color: var(--mint);
  background: transparent;
  box-shadow: none;
  color: var(--mint);
}

.hero-copy .button.primary:hover,
.hero-copy .button.primary:focus-visible {
  background: rgba(121, 242, 192, 0.09);
}

.hero .stars {
  background-image:
    linear-gradient(rgba(121, 242, 192, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 242, 192, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.72;
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}

.hero {
  padding-bottom: 190px;
}

.hub-slider {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  height: 190px;
  border-top: 1px solid rgba(121, 242, 192, 0.16);
  background: rgba(5, 11, 19, 0.94);
}

.hub-slider-viewport {
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hub-slider-viewport::-webkit-scrollbar {
  display: none;
}

.hub-slider-track {
  display: flex;
  width: max-content;
  height: 100%;
  gap: 2px;
}

.hub-slide {
  position: relative;
  flex: 0 0 clamp(260px, 26vw, 400px);
  height: 100%;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  background: #101925;
  cursor: zoom-in;
}

.hub-slide:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: -4px;
}

.hub-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 240ms ease, transform 700ms ease;
}

.hub-slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(3, 8, 14, 0.82));
  content: '';
  pointer-events: none;
}

.hub-slide:hover img {
  filter: saturate(1.08) brightness(1.05);
  transform: scale(1.025);
}

.hub-slide figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 14px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #edf5f1;
  font: 600 12px var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hub-slide figcaption span {
  color: var(--mint);
  font-size: 10px;
}

.hub-slider-button {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 42px;
  height: 54px;
  border: 1px solid rgba(121, 242, 192, 0.3);
  background: rgba(5, 11, 19, 0.84);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hub-slider-button:hover,
.hub-slider-button:focus-visible {
  border-color: var(--mint);
  background: rgba(12, 35, 37, 0.96);
}

.hub-slider-previous {
  left: 14px;
}

.hub-slider-next {
  right: 14px;
}

.hub-slider-count {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 72px;
  margin: 0;
  padding: 5px 8px;
  background: rgba(5, 11, 19, 0.78);
  color: #84928f;
  font: 600 10px var(--display);
  letter-spacing: 0.12em;
}

.hub-slider-count span {
  color: var(--mint);
}

body.hub-viewer-open {
  overflow: hidden;
}

.hub-viewer[hidden] {
  display: none;
}

.hub-viewer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
}

.hub-viewer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(2, 7, 12, 0.82);
  backdrop-filter: blur(13px) saturate(0.7);
  cursor: zoom-out;
}

.hub-viewer-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(92vw, 1440px);
  max-height: 92vh;
  place-items: center;
}

.hub-viewer-panel figure {
  width: 100%;
  margin: 0;
}

.hub-viewer-panel img {
  display: block;
  width: 100%;
  max-height: 82vh;
  border: 1px solid rgba(121, 242, 192, 0.3);
  background: #080d17;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.72);
  object-fit: contain;
}

.hub-viewer-panel figcaption {
  margin-top: 10px;
  color: #c3cfcc;
  font: 600 11px var(--display);
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.hub-viewer-close,
.hub-viewer-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(121, 242, 192, 0.42);
  background: rgba(5, 11, 19, 0.9);
  color: #fff;
  cursor: pointer;
}

.hub-viewer-close:hover,
.hub-viewer-close:focus-visible,
.hub-viewer-nav:hover,
.hub-viewer-nav:focus-visible {
  border-color: var(--mint);
  background: rgba(15, 48, 46, 0.96);
  outline: none;
}

.hub-viewer-close {
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  font-size: 30px;
  line-height: 1;
}

.hub-viewer-nav {
  top: 50%;
  width: 48px;
  height: 64px;
  font-size: 22px;
  transform: translateY(-50%);
}

.hub-viewer-nav-previous {
  left: 12px;
}

.hub-viewer-nav-next {
  right: 12px;
}

@media (max-width: 900px) {
  .hero {
    padding-bottom: 220px;
  }

  .hub-slider {
    height: 190px;
  }

  .hub-slide {
    flex-basis: min(78vw, 390px);
  }
}

@media (max-width: 560px) {
  .hero {
    padding-bottom: 178px;
  }

  .hub-slider {
    height: 154px;
  }

  .hub-slide {
    flex-basis: 82vw;
  }

  .hub-slider-button {
    width: 36px;
    height: 46px;
  }

  .hub-slider-previous {
    left: 8px;
  }

  .hub-slider-next {
    right: 8px;
  }

  .hub-slider-count {
    top: 8px;
    right: 52px;
  }

  .hub-viewer {
    padding: 12px;
  }

  .hub-viewer-panel {
    width: 100%;
  }

  .hub-viewer-close {
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
  }

  .hub-viewer-nav {
    width: 40px;
    height: 54px;
  }

  .hub-viewer-nav-previous {
    left: 8px;
  }

  .hub-viewer-nav-next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-slider-viewport {
    scroll-behavior: auto;
  }

  .hub-slide img {
    transition: none;
  }
}
