/* ─── BASE ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ─── HERO GRAIN TEXTURE ─── */
.hero-grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ─── HERO ANIMATIONS ─── */
.hero-eyebrow {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 0.3s;
}
.hero-title {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.9s ease forwards;
  animation-delay: 0.5s;
}
.hero-sub {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 0.7s;
}
.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards;
  animation-delay: 0.9s;
}
.hero-photo-main {
  opacity: 0;
  transform: translateX(40px) scale(0.97);
  animation: heroSlideIn 1s ease forwards;
  animation-delay: 0.6s;
}
.hero-photo-accent {
  opacity: 0;
  transform: translateX(-30px) scale(0.95);
  animation: heroSlideIn 1s ease forwards;
  animation-delay: 0.9s;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideIn {
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* ─── SECTION EYEBROW ─── */
.section-eyebrow {
  letter-spacing: 0.3em;
}

/* ─── NAV LINKS ─── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ─── MOBILE MENU ─── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
#mobile-menu.open .mobile-link {
  animation: mobileLinkIn 0.4s ease forwards;
  opacity: 0;
  transform: translateY(10px);
}
#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes mobileLinkIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── SCROLL REVEAL (below fold only) ─── */
.reveal-bottom,
.reveal-left,
.reveal-right {
  /* Default: visible — progressive enhancement via JS */
}

.reveal-bottom.animate,
.reveal-left.animate,
.reveal-right.animate {
  animation: revealUp 0.7s ease forwards;
}
.reveal-left.animate {
  animation-name: revealLeft;
}
.reveal-right.animate {
  animation-name: revealRight;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes revealRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-title, .hero-sub, .hero-cta,
  .hero-photo-main, .hero-photo-accent {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal-bottom.animate,
  .reveal-left.animate,
  .reveal-right.animate {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ─── MARQUEE ─── */
.marquee-track {
  animation: marqueeScroll 30s linear infinite;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── HEADER SCROLL STATE ─── */
#site-header.scrolled {
  background: rgba(254, 253, 251, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

/* ─── SELECTION ─── */
::selection {
  background: rgba(123, 45, 59, 0.15);
  color: #5e1f28;
}

/* ─── FOCUS VISIBLE ─── */
:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
}

/* ─── FORM STYLES ─── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B2D3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
