html {
  scroll-behavior: smooth;
}

section[id],
div[id],
header[id] {
  scroll-margin-top: 5.75rem;
}

body {
  text-rendering: optimizeLegibility;
}

.script {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
}

.logo-mark {
  object-position: center 35%;
}

#mobile-menu nav a {
  width: 100%;
}

.foam-grid {
  background-image:
    radial-gradient(circle at 12% 20%, rgba(0, 191, 255, 0.16), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(0, 57, 252, 0.08), transparent 26%),
    radial-gradient(circle at 70% 90%, rgba(0, 191, 255, 0.12), transparent 24%);
}

.card-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(24, 33, 69, 0.12);
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(24, 33, 69, 0.88);
}

#lightbox.open {
  display: flex;
}

#lightbox img {
  max-width: min(1100px, 100%);
  max-height: 86vh;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

#lightbox button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #fff;
  color: #182145;
  font-size: 1.5rem;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card-lift,
  .card-lift:hover {
    transition: none;
    transform: none;
  }
}
