.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gallery-grid figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid figcaption {
  display: grid;
  padding: 18px;
}

.gallery-grid figcaption span {
  color: var(--blue);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.empty-gallery {
  max-width: 780px;
}

.warranty {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-inline: 48px;
}

.warranty::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(2, 6, 9, 0.86), rgba(2, 6, 9, 0.34));
}

.warranty-shader {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
}

.warranty-content {
  position: relative;
  z-index: 1;
}

.site-header {
  height: 112px;
  overflow: visible;
}

.brand img {
  width: 130px;
  height: 130px;
  transform: translateY(9px);
  position: relative;
  z-index: 2;
}

.brand span {
  font-size: 1.35rem;
  margin-left: 4px;
}

.hero-stage {
  padding-top: 0;
}

.hero {
  width: 100%;
  height: min(760px, calc(100vh - 112px));
  min-height: 720px;
  margin: 0 auto;
  border: 0;
  background-image:
    linear-gradient(90deg, rgba(2, 4, 6, 0.72), rgba(2, 4, 6, 0.18)),
    var(--hero-poster);
  background-position: center;
  background-size: cover;
}

.site-header nav .button-small {
  padding: 13px 22px !important;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

:where(a, button, h1) {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    text-shadow 180ms ease,
    transform 180ms ease;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  h1:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 24px rgba(57, 196, 255, 0.24);
  }

  a:not(.brand):not(.button):hover {
    color: var(--blue);
    transform: translateY(-1px);
  }

  .button:hover,
  button:hover {
    transform: translateY(-2px);
    border-color: #8bddff;
    background-color: #77d6ff;
    box-shadow: 0 10px 28px rgba(57, 196, 255, 0.2);
  }

  .button-ghost:hover {
    color: var(--text);
    background-color: rgba(57, 196, 255, 0.14);
  }
}

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

  .site-header {
    height: 78px;
  }

  .brand img {
    width: 88px;
    height: 88px;
    transform: translateY(5px);
  }

  .brand span {
    font-size: 1rem;
  }

  .site-header nav {
    top: 78px;
  }

  .hero {
    width: 100%;
    height: 680px;
    min-height: 680px;
  }

  .hero-stage {
    padding-top: 0;
  }

  .warranty {
    padding-inline: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(a, button, h1) {
    transition: none;
  }
}
