/* Homepage: sunlight, cartography, weaving and lake reflections. */
.hero-home { isolation: isolate; overflow: hidden; background-image: none; }
.hero-home::before {
  content: ''; position: absolute; inset: -3%; z-index: -2;
  background: url('../images/konark-temple-panorama.jpg') center / cover;
  animation: heritage-landscape 28s ease-in-out infinite alternate;
}
.hero-home .hero-overlay { z-index: -1; }
.heritage-sunlight {
  position: absolute; inset: -15%; pointer-events: none;
  background: radial-gradient(ellipse at 78% 18%, rgb(230 162 66 / 19%), transparent 44%);
  animation: heritage-light 24s ease-in-out infinite alternate;
}
.landscape-motion-toggle {
  display: block; margin: 0 auto 18px; padding: 7px 13px;
  border: 1px solid rgb(255 255 255 / 35%); border-radius: 999px;
  background: rgb(17 32 25 / 65%); color: white; font-size: .72rem; cursor: pointer;
}
.landscape-motion-toggle[hidden] { display: none; }
.landscape-motion-toggle:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
.hero-home .hero-finder-bar { border: 1px solid var(--gold-border); }
#journeys, #destinations, .heritage-weave, .heritage-departure { position: relative; isolation: isolate; overflow: hidden; }
#journeys::before {
  content: ''; position: absolute; top: 20px; right: -160px; width: 560px; height: 420px;
  z-index: -1; pointer-events: none; opacity: .055; border-radius: 45%;
  background: repeating-radial-gradient(ellipse at 70% 35%, transparent 0 24px, var(--forest) 25px 26px, transparent 27px 43px);
  transform: rotate(-18deg);
}
.heritage-weave::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .035;
  background-image: repeating-linear-gradient(45deg, var(--terracotta) 0 1px, transparent 1px 18px), repeating-linear-gradient(-45deg, var(--terracotta) 0 1px, transparent 1px 18px);
  mask-image: linear-gradient(90deg, black, transparent 70%);
}
.heritage-route { position: absolute; top: 4px; left: 0; width: 100%; height: 180px; z-index: -1; pointer-events: none; color: var(--gold); opacity: .22; }
.route-line { stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.route-stops { fill: var(--bg-page); stroke: currentColor; stroke-width: 2; }
.motion-enabled #destinations.route-visible .route-line { animation: heritage-route-draw 2.4s ease-out both; }
.heritage-water .story-image { position: relative; overflow: hidden; }
.heritage-water .story-image::after {
  content: ''; position: absolute; inset: 82% -15% -4%; pointer-events: none;
  opacity: .07; background: repeating-linear-gradient(177deg, transparent 0 13px, rgb(255 255 255 / 60%) 15px, transparent 17px 28px);
  animation: heritage-water 18s ease-in-out infinite alternate;
}
.heritage-departure::before {
  content: ''; position: absolute; width: 65%; height: 160px; right: -4%; bottom: -105px;
  border: 2px dashed rgb(201 132 36 / 24%); border-radius: 50%; pointer-events: none; z-index: -1;
  transform: rotate(-12deg);
}
@keyframes heritage-landscape { from { transform: scale(1); } to { transform: scale(1.055); } }
@keyframes heritage-light { from { transform: translate(-2%, 0); opacity: .65; } to { transform: translate(2%, 3%); opacity: 1; } }
@keyframes heritage-water { from { transform: translateY(0) scaleX(1); } to { transform: translateY(12px) scaleX(1.06); } }
@keyframes heritage-route-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
/* Static by default until the motion control is available. */
html:not(.motion-enabled) .hero-home::before,
html:not(.motion-enabled) .heritage-sunlight,
html:not(.motion-enabled) .heritage-water .story-image::after,
.motion-paused .hero-home::before,
.motion-paused .heritage-sunlight,
.motion-paused .heritage-water .story-image::after,
.motion-paused .route-line { animation-play-state: paused !important; }
@media (max-width: 700px) {
  .hero-home::before, .heritage-water .story-image::after { animation: none; }
  .heritage-route { opacity: .13; }
  #journeys::before { width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-home::before, .heritage-sunlight, .heritage-water .story-image::after,
  .motion-enabled #destinations.route-visible .route-line { animation: none; }
  html { scroll-behavior: auto; }
}
