* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: #f3f9ff;
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: url("./assets/wix/624af8_f4c86c5295244702bd1bceda1fe72b0f~mv2.png"), auto;
  user-select: none;
}

a,
button,
video,
img {
  cursor: url("./assets/wix/624af8_f4c86c5295244702bd1bceda1fe72b0f~mv2.png"), pointer;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.backdrop__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.backdrop__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 36%, rgba(221, 54, 144, 0.26), transparent 42%),
    radial-gradient(circle at 79% 20%, rgba(114, 228, 187, 0.24), transparent 34%),
    linear-gradient(104deg, rgba(98, 43, 96, 0.44) 0%, rgba(34, 58, 75, 0.44) 54%, rgba(96, 146, 101, 0.4) 100%);
}

.page {
  position: relative;
  z-index: 1;
}

.hero {
  height: 100vh;
  min-height: 540px;
  display: grid;
  place-items: center;
  padding: 1rem;
  position: relative;
}

.hero__logo {
  width: min(82vw, 860px);
  max-width: 100%;
  filter: drop-shadow(0 20px 42px rgba(0, 0, 0, 0.52));
  transition: transform 90ms linear, opacity 90ms linear;
  will-change: transform, opacity;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(1.2rem, 3.4vw, 2.1rem);
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 70px;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
  align-content: center;
}

.chevron {
  width: 16px;
  height: 16px;
  border-right: 3px solid rgba(231, 249, 255, 0.92);
  border-bottom: 3px solid rgba(231, 249, 255, 0.92);
  transform: rotate(45deg);
  opacity: 0.2;
  filter: drop-shadow(0 0 0 rgba(147, 235, 255, 0));
  animation: chevronPulse 1.1s infinite steps(1, end);
}

.chevron--1 {
  animation-delay: 0s;
}

.chevron--2 {
  animation-delay: 0.18s;
}

.chevron--3 {
  animation-delay: 0.36s;
}

@keyframes chevronPulse {
  0% {
    opacity: 0.16;
    filter: drop-shadow(0 0 0 rgba(147, 235, 255, 0));
  }
  30% {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(147, 235, 255, 0.95));
  }
  60% {
    opacity: 0.22;
    filter: drop-shadow(0 0 2px rgba(147, 235, 255, 0.25));
  }
  100% {
    opacity: 0.14;
    filter: drop-shadow(0 0 0 rgba(147, 235, 255, 0));
  }
}

.gallery {
  padding: 3rem min(4vw, 2rem) 4rem;
  background:
    linear-gradient(
      180deg,
      rgba(7, 12, 20, 0) 0%,
      rgba(7, 12, 20, 0.28) 10%,
      rgba(7, 12, 20, 0.62) 24%,
      rgba(6, 11, 18, 0.84) 44%,
      rgba(6, 11, 18, 0.92) 100%
    );
}

.gallery__grid {
  width: min(1200px, 96vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.tile {
  margin: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(197, 224, 255, 0.26);
  background: rgba(6, 11, 18, 0.78);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tile::before,
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tile::before {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(220, 248, 255, 0.16) 0px,
      rgba(220, 248, 255, 0.16) 1px,
      rgba(0, 0, 0, 0.08) 2px,
      rgba(0, 0, 0, 0.08) 4px
    );
  mix-blend-mode: screen;
  opacity: 0.5;
  background-position: 0 0;
  animation: crtScan 0.55s linear infinite;
}

.tile::after {
  background:
    radial-gradient(125% 105% at 50% 0%, rgba(188, 236, 255, 0.24), rgba(0, 0, 0, 0) 56%),
    linear-gradient(115deg, rgba(166, 220, 247, 0.16), rgba(255, 255, 255, 0) 42%);
  opacity: 0.62;
  animation: crtFlicker 3.6s steps(2, end) infinite;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.46);
}

.tile__media {
  width: 100%;
  height: clamp(180px, 21vw, 260px);
  display: block;
  object-fit: cover;
}

.tile__image {
  opacity: 1;
  transition: opacity 920ms ease;
}

.tile__image.is-fading {
  opacity: 0.12;
}

@keyframes crtScan {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 8px;
  }
}

@keyframes crtFlicker {
  0%,
  22%,
  45%,
  73%,
  100% {
    opacity: 0.4;
  }
  25% {
    opacity: 0.34;
  }
  50% {
    opacity: 0.46;
  }
  75% {
    opacity: 0.37;
  }
}

.copyright {
  width: min(1200px, 96vw);
  margin: 1rem auto 0;
  font-size: 0.78rem;
  color: rgba(217, 234, 253, 0.88);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.88);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(94vw, 1320px);
  height: min(92vh, 920px);
  margin: 4vh auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(185, 213, 248, 0.33);
  background: rgba(6, 10, 16, 0.95);
  opacity: 0;
  transform: translate3d(var(--lb-from-x, 0), var(--lb-from-y, 18px), 0) scale(var(--lb-from-scale, 0.94));
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.lightbox__close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  border: 0;
  background: rgba(7, 15, 25, 0.82);
  color: #f1f7ff;
  width: 42px;
  height: 42px;
  font-size: 1.7rem;
  line-height: 1;
  border-radius: 999px;
  z-index: 3;
}

.lightbox__content {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 460ms ease 120ms;
}

.lightbox__content video,
.lightbox__content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05090e;
}

.lightbox.is-visible .lightbox__backdrop {
  opacity: 1;
}

.lightbox.is-visible .lightbox__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lightbox.is-visible .lightbox__content {
  opacity: 1;
}

@media (max-width: 900px) {
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .scroll-cue {
    bottom: 1.1rem;
  }
}
