/* ============================================================
   HERO SCROLL FRAMES  —  hero-scroll-frames.css
   Pinned, scroll-driven 150-frame canvas animation
   ============================================================ */

/* Preloader */
#hsf-loader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: #fdfcf9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
#hsf-loader.hsf-loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hsf-loader__brand {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.55em;
  color: #c39c4a;
  text-transform: uppercase;
}
.hsf-loader__track {
  width: 220px;
  height: 1px;
  background: rgba(28, 43, 33, 0.12);
  position: relative;
  overflow: hidden;
}
.hsf-loader__fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: #c39c4a;
  transition: width 0.12s linear;
}
.hsf-loader__pct {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #1a201b;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hsf-loader__pct span {
  font-size: 1.2rem;
  font-weight: 400;
  color: #5e6b62;
  margin-left: 0.25rem;
}
.hsf-loader__sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: #5e6b62;
  text-transform: uppercase;
}

/* Outer scroll travel container */
.hsf-outer {
  position: relative;
  width: 100%;
}

/* Sticky viewport shell */
.hsf-sticky {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #fdfcf9;
  will-change: transform;
}

/* Frame canvas */
#hero-frame-canvas {
  display: block;
  width: 100%;
  height: 100vh;
  background: #fdfcf9;
  object-fit: cover;
}

/* Radial blend mask */
.hsf-blend-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 70% at center,
    transparent 30%,
    rgba(253, 252, 249, 0.55) 65%,
    rgba(253, 252, 249, 0.92) 85%,
    #fdfcf9 100%
  );
  mix-blend-mode: multiply;
}

/* Text layer */
.hsf-text-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(30vh) scale(0.95);
  will-change: transform, opacity;
  pointer-events: none;
}
.hsf-text-layer.hsf-text--active { pointer-events: auto; }

.hsf-label {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.52em;
  color: #c39c4a;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.hsf-headline {
  font-family: 'Syne', sans-serif;
  font-size: 90px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #1a201b;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.hsf-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1rem, 2.2vw, 1.65rem);
  font-style: italic;
  color: #3a473d;
  max-width: 700px;
  line-height: 1.55;
  margin-bottom: 3.5rem;
}
.hsf-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  border-top: 1px solid rgba(28, 43, 33, 0.15);
  padding-top: 2rem;
}
.hsf-stat { text-align: center; }
.hsf-stat__num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: #c39c4a;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.hsf-stat__lbl {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: #5e6b62;
  text-transform: uppercase;
}

/* Scroll hint arrow */
.hsf-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 1;
  transition: opacity 0.4s ease;
  animation: hsf-bounce 2s ease-in-out infinite;
}
.hsf-scroll-hint.hsf-scroll-hint--hidden { opacity: 0; pointer-events: none; }
.hsf-scroll-hint__line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, #c39c4a);
}
.hsf-scroll-hint__label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: #c39c4a;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

@keyframes hsf-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 768px) {
  .hsf-stats { gap: 2rem; flex-wrap: wrap; }
}
