/* Hero sunset: --p is scroll progress (0 to 1), --glow peaks as the sun meets the sea. Set by js/hero.js. */
.hero { --p: 0; --glow: 0; isolation: isolate; }
.hero .sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero .dusk { position: absolute; inset: 0; background: #071619; opacity: calc(var(--p) * 0.55); }
.hero .glow { position: absolute; inset: 0; background: radial-gradient(70% 55% at 80% 100%, rgba(233, 140, 60, 0.55), rgba(233, 180, 37, 0.12) 45%, transparent 70%); opacity: calc(0.35 + var(--glow) * 0.65); }
.hero .stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #F4F1E6; box-shadow: 0 0 6px rgba(244, 241, 230, 0.8); opacity: calc(var(--p) * 1.4 - 0.4); }
.hero .stars i:nth-child(3n) { width: 3px; height: 3px; }
.hero .cloud { position: absolute; will-change: transform; }
.hero .cloud svg { display: block; width: 100%; height: auto; fill: #EEF2F1; animation: hero-drift 38s ease-in-out infinite alternate; }
.hero .c1 { width: clamp(140px, 18vw, 280px); top: 14%; left: 52%; opacity: 0.10; transform: translateX(calc(var(--p) * -120px)); }
.hero .c2 { width: clamp(110px, 13vw, 200px); top: 34%; left: 74%; opacity: 0.14; transform: translateX(calc(var(--p) * 90px)); }
.hero .c2 svg { animation-duration: 29s; animation-delay: -9s; }
.hero .c3 { width: clamp(160px, 22vw, 340px); top: 52%; left: -4%; opacity: 0.07; transform: translateX(calc(var(--p) * 200px)); }
.hero .c3 svg { animation-duration: 46s; animation-delay: -20s; }
@keyframes hero-drift { from { transform: translateX(-24px); } to { transform: translateX(24px); } }

.hero .hero-copy { z-index: 2; }
.hero .hero-copy > * { animation: hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero .scene { position: relative; z-index: 1; height: clamp(170px, 20vw, 300px); margin-top: 24px; overflow: hidden; }
.hero .land { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.hero .sun { position: absolute; z-index: 1; left: 80%; width: clamp(44px, 5vw, 76px); aspect-ratio: 1; border-radius: 50%; translate: -50% 0;
  top: calc(16% + var(--p) * 92%);
  background: color-mix(in srgb, #E9B425, #E2683C calc(var(--p) * 100%));
  box-shadow: 0 0 calc(30px + var(--glow) * 50px) calc(6px + var(--glow) * 14px) color-mix(in srgb, rgba(233, 180, 37, 0.45), rgba(226, 104, 60, 0.55) calc(var(--p) * 100%)); }
.hero .reflect { position: absolute; z-index: 3; left: 80%; top: 74%; width: clamp(60px, 9vw, 140px); height: 18%; translate: -50% 0;
  background: repeating-linear-gradient(180deg, rgba(233, 180, 37, 0.7) 0 2px, transparent 2px 7px);
  -webkit-mask-image: radial-gradient(50% 60% at 50% 0%, #000, transparent); mask-image: radial-gradient(50% 60% at 50% 0%, #000, transparent);
  opacity: calc((1 - var(--p)) * 0.4 + var(--glow) * 0.5 - var(--p) * 0.5); transform: scaleX(calc(0.7 + var(--glow) * 0.5)); }

@media (prefers-reduced-motion: reduce) {
  .hero .cloud svg, .hero .hero-copy > * { animation: none; }
}