html {
  scroll-padding-top: 84px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.motion-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

.gallery-grid {
  display: grid;
  min-height: 0;
}

.gallery-card {
  width: 100%;
}

.gallery-card img,
.gallery-card video {
  display: block;
  width: 100%;
  height: clamp(230px, 56vw, 620px);
  max-height: 72vh;
  object-fit: contain;
  background: #11110f;
}

.gallery-card .media-error-message {
  display: none;
  padding: 28px;
  color: #f5f3ee;
}

.gallery-card.media-error .media-error-message {
  display: block;
}

.gallery-empty {
  min-height: 240px;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  color: #f5f3ee;
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
}

.gallery-controls button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.gallery-controls button:focus-visible,
.menu-toggle:focus-visible,
.desktop-nav a:focus-visible,
.admin-button:focus-visible,
.upload-control:focus-within {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

.upload-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-image img,
.admin-image video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--ink);
}

.admin-image video {
  max-height: 240px;
}

.message {
  overflow-wrap: anywhere;
  line-height: 1.6;
}

@media (max-width: 800px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 72px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 9px;
  }

  .site-header.nav-open .desktop-nav {
    top: 71px;
    z-index: 10;
    padding: 18px 23px 24px;
  }

  .desktop-nav a {
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .logo-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .logos {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 22px;
  }

  .section-heading {
    align-items: flex-start;
    gap: 18px;
  }

  .proof-section {
    padding-top: 86px;
    padding-bottom: 90px;
  }

  .gallery-card img,
  .gallery-card video {
    height: clamp(220px, 68vw, 480px);
  }

  .reviews-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .review-intro h2 {
    margin-bottom: 28px;
  }

  .footer-row {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

@media (max-width: 600px) {
  .section-heading {
    flex-direction: column;
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .heading-note {
    font-size: 9px;
  }

  .hero-foot {
    gap: 10px;
    font-size: 8px;
  }

  .gallery-card img,
  .gallery-card video {
    height: min(68vh, 390px);
  }

  .gallery-controls {
    gap: 16px;
  }

  .admin-shell {
    width: calc(100% - 28px);
  }

  .panel {
    padding: 20px;
  }

  .dashboard-header {
    align-items: flex-start;
  }

  .dashboard-header > div {
    gap: 12px;
  }

  .admin-gallery {
    gap: 8px;
  }

  .upload-control {
    min-height: 130px;
    padding: 16px;
  }

  .upload-control span {
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
