html {
  scroll-behavior: smooth;
}

body {
  font-feature-settings: "liga" 1;
}

/* Header state after scroll */
#site-header.scrolled {
  background-color: rgba(249, 248, 246, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(13, 13, 13, 0.06);
}

#site-header.scrolled.on-dark {
  background-color: rgba(13, 13, 13, 0.85);
}

/* Header text switches to dark ink once it floats over a light (cream) section */
#site-header.scrolled:not(.on-dark) .site-logo,
#site-header.scrolled:not(.on-dark) .header-nav,
#site-header.scrolled:not(.on-dark) .header-cta {
  color: #0D0D0D;
}
#site-header.scrolled:not(.on-dark) .header-nav {
  color: rgba(13, 13, 13, 0.8);
}
#site-header.scrolled:not(.on-dark) .header-cta {
  border-color: rgba(13, 13, 13, 0.2);
}
#site-header.scrolled:not(.on-dark) .menu-line {
  background-color: #0D0D0D;
}

/* Hero background effects */
.hero-glow {
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.08), transparent 45%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(249, 248, 246, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 248, 246, 0.6) 1px, transparent 1px);
  background-size: 48px 48px;
}

@keyframes bounce-slow {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.4; }
  50% { transform: translate(-50%, 8px); opacity: 0.8; }
}
.animate-bounce-slow {
  animation: bounce-slow 2.4s ease-in-out infinite;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile nav links */
.mobile-link {
  color: rgba(13, 13, 13, 0.8);
}
.mobile-link:hover {
  color: #D4AF37;
}

/* Legal modal text spacing */
.prose-legal p {
  color: rgba(13, 13, 13, 0.75);
}

/* Scrollbar (subtle, webkit only) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
}
