/* ============================================
   Hero Section — Sandan Koyo Cinematic Experience
   Three-layered autumn: snow peak, red leaves, green base
   ============================================ */

.hero {
  position: relative;
  height: 66vh;
  min-height: 480px;
  max-height: 800px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-midnight);
}

/* Background Image with Parallax */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}

/* Cinematic Gradient Overlays — warm autumn tones */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(10, 22, 40, 0.2) 0%,
      rgba(10, 22, 40, 0.05) 25%,
      rgba(198, 40, 40, 0.05) 50%,
      rgba(10, 22, 40, 0.3) 70%,
      rgba(10, 22, 40, 0.88) 100%
    );
}

/* Atmospheric Grain */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.04;
  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");
  pointer-events: none;
}

/* Falling Leaves Canvas */
.hero__leaves {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

/* Hero Content */
.hero__content {
  position: relative;
  z-index: 5;
  padding-bottom: clamp(1.5rem, 3vh, 2.5rem);
  width: 100%;
}

.hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Hero Title */
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.08;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  max-width: min(750px, 100%);
  overflow-wrap: break-word;
  word-break: break-word;
  opacity: 0;
  transform: translateY(40px);
  animation: hero-fade-in 1s var(--ease-out-expo) 0.5s forwards;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--color-autumn-red) 0%, var(--color-orange) 50%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Subtitle — Key Message */
.hero__subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  color: var(--color-gold-light);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
  max-width: min(680px, 100%);
  overflow-wrap: break-word;
  word-break: break-word;
  opacity: 0;
  transform: translateY(30px);
  animation: hero-fade-in 1s var(--ease-out-expo) 0.6s forwards;
}

/* Hero Description */
.hero__desc {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-glacier);
  max-width: min(520px, 100%);
  overflow-wrap: break-word;
  word-break: break-word;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(30px);
  animation: hero-fade-in 1s var(--ease-out-expo) 0.7s forwards;
}

/* Hero Actions */
.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: hero-fade-in 1s var(--ease-out-expo) 0.9s forwards;
}

@keyframes hero-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Scroll Indicator --- */
.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  z-index: 5;
  opacity: 0;
  animation: hero-fade-in 1s var(--ease-out-expo) 1.2s forwards;
}

.hero__scroll-text {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 0.9; transform: scaleY(1.1); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero__scroll {
    display: none; /* Hide on mobile to save space */
  }

  .hero {
    height: 66vh;
    min-height: 400px;
  }

  .hero__content {
    padding-bottom: 2rem;
  }

  .hero__title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .hero__subtitle {
    font-size: clamp(0.8rem, 3vw, 1rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    text-align: center;
    justify-content: center;
  }
}
