html {
  scroll-behavior: smooth;
}

/* Home header: transparent over the hero video, solid after scrolling */
#site-header {
  background: transparent;
  transition: background-color 0.3s ease;
}

#site-header.is-scrolled {
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(8px);
}

.dark #site-header.is-scrolled {
  background: rgb(10 10 10 / 0.95);
}

/* Masonry columns */
#gallery {
  column-gap: 1.5rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

/* Scroll reveal: elements fade and rise in as they enter the viewport */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Featured pricing card (Gold): sits permanently lifted above its neighbors */
.price-card-gold.is-in {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px -22px rgb(0 0 0 / 0.45);
}

/* Filmstrip marquee: two identical tracks scroll half their width, seamlessly */
.marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* Splash: blinking caret while "shotbyrohen" types out (typing driven by app.js) */
#splash-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  background: currentColor;
  vertical-align: -0.12em;
  animation: caret-blink 1.1s steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

/* Lightbox */
#lightbox-img {
  max-height: 82vh;
}

/* Custom cursor: filled trailing circle (desktop pointers only) */
@media (pointer: fine) {
  .custom-cursor,
  .custom-cursor a,
  .custom-cursor button,
  .custom-cursor .gallery-item {
    cursor: none;
  }

  #cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 9999px;
    opacity: 0;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    background: rgb(18 18 20 / 0.4);
    transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease, margin 0.25s ease, background-color 0.25s ease;
  }

  #cursor-ring.is-hover {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    background: rgb(18 18 20 / 0.5);
  }

  .dark #cursor-ring {
    background: rgb(232 232 230 / 0.45);
  }

  .dark #cursor-ring.is-hover {
    background: rgb(232 232 230 / 0.55);
  }
}

