/* Marquee scrolling animation */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }

.font-heading {
  text-wrap: balance;
}

/* Hero band (replaces the old grid pattern) */
.hero-band { background-color: #F3F1E9; }

/* Hard shadow utility */
.shadow-hard { box-shadow: 4px 4px 0px #111111; }
.shadow-hard-accent { box-shadow: 4px 4px 0px #DEFF00; }

/* Chartreuse square bullet */
.bullet-sq li {
  position: relative;
  padding-left: 1.25rem;
}
.bullet-sq li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background-color: #DEFF00;
  outline: 1px solid #111111;
}

/* Body base */
body {
  background-color: #FAF9F4;
  color: #1C1C1C;
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #FAF9F4; }
::-webkit-scrollbar-thumb { background: #D1D1C7; }

/* Firefox scrollbar */
html { scrollbar-color: #D1D1C7 #FAF9F4; scrollbar-width: thin; }

/* Focus ring */
:focus-visible { outline: 2px solid #111111; outline-offset: 2px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Sticky scroll-spy active state */
.spy-link { color: #9CA3AF; transition: color 200ms; }
.spy-link.active { color: #111111; font-weight: 700; }

/* Alpine x-cloak — prevents FOUC on Alpine-controlled elements */
[x-cloak] { display: none !important; }

/* Reviews marquee: two rows, opposite directions */
.marquee-slow { animation-duration: 120s; }
.marquee-reverse { animation-direction: reverse; }
.marquee-mask {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.quote-card { width: 340px; flex-shrink: 0; white-space: normal; }
@media (max-width: 640px) { .quote-card { width: 280px; } }

/* Video frames */
.video-frame { aspect-ratio: 16 / 9; background: #111111; }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; display: block; border: 0; object-fit: contain; background: #111111; }

/* Timeline */
.timeline-item { position: relative; padding-left: 1.75rem; }
.timeline-item::before {
  content: ''; position: absolute; left: 0; top: 0.45rem; width: 9px; height: 9px;
  background: #DEFF00; outline: 1px solid #111111;
}
.timeline-item::after {
  content: ''; position: absolute; left: 4px; top: 1.3rem; bottom: -1.6rem; width: 1px; background: #D1D1C7;
}
.timeline-item:last-child::after { display: none; }

/* Marquee pause: button, keyboard focus and hover */
.marquee-track.is-paused,
.marquee-mask:focus-within .marquee-track { animation-play-state: paused; }

/* Click-to-play YouTube */
.yt-lite { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #111111; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity 150ms; }
.yt-lite:hover img, .yt-lite:focus-visible img { opacity: 1; }
.yt-lite span { position: absolute; inset: 0; margin: auto; width: 72px; height: 50px; display: flex; align-items: center; justify-content: center; background: #DEFF00; color: #111111; border: 1px solid #111111; font-size: 20px; }
