/* ============================================================
   SILVER FERN - SCROLL-TO-EXPAND HERO COMPONENT
   Interactive, scroll-driven viewport expansion with motto
   ============================================================ */

.scroll-expand-track {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 185vh;
  background-color: #1A1C1E;
  margin: 0;
  padding: 0;
}

.scroll-expand-stage {
  position: sticky;
  top: var(--nav-height, 72px);
  width: 100%;
  max-width: 100vw;
  height: calc(100vh - var(--nav-height, 72px));
  min-height: 560px;
  overflow: hidden;
  background-color: #1A1C1E;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

/* Media Frame with dynamic clip-path */
.scroll-expand-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(18% 26% 18% 26% round 22px);
  will-change: clip-path;
  overflow: hidden;
  background-color: #1A3626;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.scroll-expand-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.28);
  transform-origin: center;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

.scroll-expand-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.42) 0%,
    rgba(15, 23, 42, 0.68) 50%,
    rgba(15, 23, 42, 0.90) 100%
  );
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 120ms ease;
}

/* ── MOTTO CONTAINER (INITIAL STATE) ── */
.scroll-expand-motto-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  z-index: 10;
  will-change: opacity, transform;
}

.hero-motto-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 90, 0, 0.16);
  border: 1px solid rgba(255, 90, 0, 0.4);
  color: #FF5A00;
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 1.15rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero-motto-title {
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: clamp(2.25rem, 6vw, 4.85rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.7);
  max-width: 980px;
  margin: 0 0 1rem 0;
}

.hero-motto-sub {
  font-family: var(--font-body), 'Inter', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 500;
  color: rgba(248, 249, 250, 0.95);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
  max-width: 640px;
  margin: 0;
  line-height: 1.5;
}

/* Scroll Hint Indicator */
.scroll-expand-hint {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 15;
  transition: color 180ms ease, opacity 200ms ease;
  user-select: none;
}

.scroll-expand-hint:hover {
  color: #FF5A00;
}

.scroll-hint-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: hintBounce 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes hintBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ── EXPANDED CONTENT (REVEAL STATE) ── */
.scroll-expand-content-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.hero-content-badge {
  display: inline-flex;
  align-items: center;
  background: #FF5A00;
  color: #FFFFFF;
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(255, 90, 0, 0.35);
}

.hero-content-title {
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: #FFFFFF;
  margin: 0 0 1.25rem 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.hero-content-desc {
  font-family: var(--font-body), 'Inter', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  color: rgba(243, 244, 246, 0.95);
  max-width: 650px;
  line-height: 1.65;
  margin: 0 0 1.75rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-content-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FF5A00;
  color: #FFFFFF;
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 1.85rem;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 90, 0, 0.4);
  transition: all 180ms ease;
  border: 1px solid transparent;
}

.btn-hero-primary:hover {
  background: #E04F00;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 90, 0, 0.5);
  color: #FFFFFF;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-family: var(--font-heading), 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 1.85rem;
  border-radius: 0.5rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 180ms ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
  color: #FFFFFF;
}

/* ── RESPONSIVE MEDIA QUERIES ── */
@media (max-width: 900px) {
  .scroll-expand-frame {
    clip-path: inset(14% 10% 14% 10% round 18px);
  }
}

@media (max-width: 768px) {
  .scroll-expand-track {
    height: 160vh;
  }
  .scroll-expand-stage {
    min-height: 480px;
  }
  .scroll-expand-frame {
    clip-path: inset(10% 4% 10% 4% round 14px);
  }
  .hero-motto-title {
    font-size: clamp(1.75rem, 8vw, 2.75rem);
    line-height: 1.1;
  }
  .hero-motto-sub {
    font-size: 0.9375rem;
  }
  .scroll-expand-hint {
    bottom: 1.25rem;
    font-size: 0.75rem;
  }
  .hero-content-title {
    font-size: 1.875rem;
  }
  .hero-content-desc {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }
}
