/* ===== Tihar + Chhath festival hero (self-contained) =====
   Section is  <section class="hero hero-fest">.  Everything is scoped to
   .hero.hero-fest so no other page / portal is touched.
   Scene art: js/hero-scene.js   Effects (coins, lanterns, fireworks): js/hero-fx.js */

.hero.hero-fest {
  --hf-gold: #ffc94d;
  --hf-gold2: #ff9d2e;
  --hf-ink: #1b1033;
  --hf-overlap: 0px;
  --hf-card-bg: rgba(255, 255, 255, 0.9);
  --hf-card-line: rgba(255, 190, 80, 0.55);
  --hf-field-bg: #ffffff;
  --hf-field-line: rgba(27, 16, 51, 0.12);
  --hf-field-text: #1b1033;
  --hf-field-hint: #7a6f92;
  --hf-seg-bg: rgba(27, 16, 51, 0.07);
  --hf-seg-text: #5b4f78;
  --hf-chip-bg: rgba(27, 16, 51, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  margin-top: calc(-1 * var(--nav-height));
  margin-bottom: 48px;
  padding: var(--nav-height) 0 0;
  overflow: visible;
  isolation: isolate;
}
:root[data-theme="dark"] .hero.hero-fest {
  --hf-card-bg: rgba(18, 11, 38, 0.82);
  --hf-card-line: rgba(255, 190, 80, 0.38);
  --hf-field-bg: rgba(255, 255, 255, 0.07);
  --hf-field-line: rgba(255, 255, 255, 0.16);
  --hf-field-text: #ffffff;
  --hf-field-hint: #c9bfe3;
  --hf-seg-bg: rgba(255, 255, 255, 0.08);
  --hf-seg-text: #d9d0ee;
  --hf-chip-bg: rgba(255, 255, 255, 0.08);
}

/* ---------- background + scene ---------- */
.hero.hero-fest .hero-bg {
  position: absolute;
  inset: 0 0 auto 0;
  width: auto;
  height: clamp(
    640px,
    42vw,
    820px
  ); /* hero-scene.js sets the real height: it ends just above the booking card */
  z-index: 0;
  overflow: hidden;
  border-radius: 0 0 36px 36px;
  background: linear-gradient(
    180deg,
    #070626 0%,
    #1d0f4a 28%,
    #5a1b6a 50%,
    #b3325f 68%,
    #f06a3c 84%,
    #ffa23a 100%
  );
  box-shadow: 0 30px 70px -30px rgba(40, 8, 60, 0.55);
}
.hero.hero-fest .hero-scene-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-scene-layer.is-paused * {
  animation-play-state: paused !important;
}
.ht-svg,
.ht-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  animation: ht-fade 1.1s ease both;
}
@keyframes ht-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* readable headline on the left, art stays bright on the right; soft vignette */
.hero.hero-fest .hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(
      46% 52% at 50% 32%,
      rgba(10, 4, 30, 0.62) 0%,
      rgba(10, 4, 30, 0.34) 55%,
      rgba(10, 4, 30, 0) 100%
    ),
    radial-gradient(
      120% 90% at 50% 40%,
      rgba(0, 0, 0, 0) 55%,
      rgba(8, 2, 24, 0.5) 100%
    );
}
.hero.hero-fest .hero-fx {
  z-index: 2;
}

/* ---------- layout ---------- */
.hero.hero-fest .hero-inner {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 26px;
  width: 100%;
  max-width: 1280px;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(24px, 3.4vw, 56px) 32px 0;
  box-sizing: border-box;
}
.hero.hero-fest .hero-content {
  order: -1;
  width: 100%;
  max-width: 860px;
  min-height: clamp(500px, 36vw, 720px);
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.hero.hero-fest .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 16px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 214, 140, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffe9bf;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  max-width: 100%;
}
.hero.hero-fest .eyebrow-line {
  display: none;
}
.hero.hero-fest .eyebrow-diya {
  flex: none;
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 8px rgba(255, 190, 70, 0.9));
}
.hero.hero-fest .eyebrow-flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: hf-flame 1.4s ease-in-out infinite alternate;
}
@keyframes hf-flame {
  from {
    transform: scale(1, 0.92) skewX(-3deg);
  }
  to {
    transform: scale(1.06, 1.08) skewX(3deg);
  }
}
.hero.hero-fest .hero-heading h1 {
  margin: 0 auto;
  max-width: 860px;
  font-size: clamp(28px, 3.2vw, 50px);
  line-height: 1.18;
  letter-spacing: -0.5px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 24px rgba(10, 2, 30, 0.55);
  text-wrap: balance;
}
.hero.hero-fest .text-accent {
  display: block;
  background: linear-gradient(95deg, #fff2b8 0%, #ffc94d 40%, #ff9d2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffc94d;
  text-shadow: none;
  filter: drop-shadow(0 3px 14px rgba(255, 150, 30, 0.45));
}
.hero.hero-fest .hero-subtext {
  max-width: 600px;
  margin: 0 auto;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.7;
  color: #f6eeff;
  text-shadow: 0 2px 12px rgba(10, 2, 30, 0.6);
}
.hero.hero-fest .hero-subtext .text-brand {
  color: #ffd777;
  -webkit-text-fill-color: #ffd777;
}
.hero.hero-fest .hero-subtext .hero-quote {
  display: block;
  margin-top: 6px;
  margin-bottom: 3.4em; /* room for the signature that hangs under the last word */
  font-weight: 700;
  color: #fff;
}
.hero.hero-fest .hero-subtext .hero-quote-end {
  position: relative;
  display: inline-block;
}
.hero.hero-fest .hero-subtext .hero-sign {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(calc(-50% + 12px)); /* a little to the right */
  font-size: 0.88em;
  margin-top: 2px;
  white-space: nowrap;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.2px;
}
.hero.hero-fest .hero-heading .text-accent {
  white-space: nowrap;
}
.hero.hero-fest .text-accent .hero-diya {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin: 0 0.1em;
  position: relative;
  top: 3px; /* sits a little below the text line */
  vertical-align: middle;
  filter: drop-shadow(0 0 8px rgba(255, 190, 70, 0.9));
}
.hero.hero-fest .hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.hero.hero-fest .hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.hero.hero-fest .hero-trust svg {
  color: var(--hf-gold);
  flex: none;
}

/* ---------- booking card ---------- */
.hero.hero-fest .booking-bar {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 18px 22px 18px;
  border-radius: 28px;
  background: var(--hf-card-bg);
  border: 1px solid var(--hf-card-line);
  box-shadow:
    0 30px 70px -18px rgba(25, 6, 50, 0.55),
    0 0 0 6px rgba(255, 255, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}
.hero.hero-fest .booking-bar::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: -1px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--hf-gold),
    var(--hf-gold2),
    var(--hf-gold),
    transparent
  );
}
.hero.hero-fest .booking-type-options {
  display: flex;
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 999px;
  background: var(--hf-seg-bg);
  border: 0;
}
.hero.hero-fest .custom-radio span {
  min-width: 0;
  padding: 9px 22px;
  border-radius: 999px;
  color: var(--hf-seg-text);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
}
.hero.hero-fest .custom-radio input:checked + span {
  background: linear-gradient(135deg, #ffd466, #ff9d2e);
  color: #3a1d00;
  box-shadow: 0 6px 16px -4px rgba(255, 140, 20, 0.7);
}
.hero.hero-fest .custom-radio:hover span {
  color: var(--hf-field-text);
}
.hero.hero-fest .custom-radio input:checked + span:hover {
  color: #3a1d00;
}
.hero.hero-fest .custom-radio input:focus-visible + span {
  outline: 2px solid var(--hf-gold2);
  outline-offset: 2px;
}

.hero.hero-fest .booking-bar-form,
.hero.hero-fest .booking-bar-form[data-trip-type] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.hero.hero-fest .return-date-slot,
.hero.hero-fest #returnDateSlot {
  display: contents;
}
.hero.hero-fest .location-input {
  flex: 1.25 1 210px;
}
.hero.hero-fest .date-input {
  flex: 1 1 170px;
}
.hero.hero-fest .input-with-icon {
  position: relative;
  min-width: 0;
}
.hero.hero-fest .input-icon {
  position: absolute;
  left: 18px;
  z-index: 2;
  width: 18px;
  height: 20px;
  color: var(--hf-gold2);
}
.hero.hero-fest .input-chevron,
.hero.hero-fest .dp-chevron {
  display: none !important;
}
.hero.hero-fest .input-with-icon input,
.hero.hero-fest .input-with-icon .dp-trigger {
  width: 100%;
  min-height: 60px;
  padding: 0 16px 0 48px;
  border-radius: 16px;
  background: var(--hf-field-bg);
  border: 1.5px solid var(--hf-field-line);
  color: var(--hf-field-text);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(27, 16, 51, 0.04);
}
.hero.hero-fest .input-with-icon input::placeholder,
.hero.hero-fest .dp-placeholder {
  color: var(--hf-field-hint);
  font-weight: 500;
}
.hero.hero-fest .dp-display {
  color: var(--hf-field-text);
}
.hero.hero-fest .dp-display.dp-placeholder {
  color: var(--hf-field-hint);
}
.hero.hero-fest .input-with-icon input:hover,
.hero.hero-fest .input-with-icon .dp-trigger:hover {
  border-color: rgba(255, 157, 46, 0.7);
}
.hero.hero-fest .input-with-icon input:focus,
.hero.hero-fest .input-with-icon .dp-trigger:focus,
.hero.hero-fest .input-with-icon .dp-trigger[aria-expanded="true"] {
  outline: none;
  border-color: var(--hf-gold2);
  box-shadow: 0 0 0 4px rgba(255, 157, 46, 0.25);
}
.hero.hero-fest .swap-btn {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 3;
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0 -28px;
  border-radius: 50%;
  border: 3px solid var(--hf-card-bg);
  background: linear-gradient(135deg, #ffd466, #ff9d2e);
  color: #3a1d00;
  box-shadow: 0 8px 18px -4px rgba(255, 140, 20, 0.7);
}
.hero.hero-fest .swap-btn:hover {
  background: linear-gradient(135deg, #ffe08a, #ffab45);
  border-color: var(--hf-card-bg);
  color: #3a1d00;
  transform: rotate(180deg) scale(1.06);
}
.hero.hero-fest .booking-bar .search-btn {
  order: 4;
  flex: 0 0 auto;
  width: auto;
  min-width: 150px;
  min-height: 60px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8a1f 0%, #ff5a36 55%, #e8336d 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 14px 26px -8px rgba(255, 90, 40, 0.75);
}
.hero.hero-fest .booking-bar .search-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-20deg);
  animation: hf-shine 4.2s ease-in-out infinite;
}
@keyframes hf-shine {
  0%,
  60% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}
.hero.hero-fest .booking-bar .search-btn:hover {
  background: linear-gradient(135deg, #ff9a38 0%, #ff6a46 55%, #f0457f 100%);
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -8px rgba(255, 90, 40, 0.85);
}
.hero.hero-fest .booking-bar .search-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.hero.hero-fest .quick-dates-row {
  order: 5;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}
.hero.hero-fest .quick-dates {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.hero.hero-fest .quick-dates-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--hf-seg-bg);
  color: var(--hf-field-text);
  box-shadow: none;
  border: 1px solid var(--hf-field-line);
}
.hero.hero-fest .quick-dates-arrow:hover:not(:disabled) {
  background: linear-gradient(135deg, #ffd466, #ff9d2e);
  color: #3a1d00;
}
.hero.hero-fest .date-box {
  min-height: 52px;
  border-radius: 14px;
  background: var(--hf-chip-bg);
  border: 1.5px solid var(--hf-field-line);
  color: var(--hf-field-text);
}
.hero.hero-fest .date-box small {
  opacity: 0.65;
}
.hero.hero-fest .date-box:hover,
.hero.hero-fest .date-box.active {
  background: linear-gradient(135deg, #ffd466, #ff9d2e);
  border-color: transparent;
  color: #3a1d00;
  box-shadow: 0 8px 18px -6px rgba(255, 140, 20, 0.7);
}

/* ---------- lanterns (js/hero-fx.js) ---------- */
.fx-lantern {
  position: absolute;
  bottom: -60px;
  left: var(--x);
  width: var(--s);
  height: calc(var(--s) * 1.25);
  border-radius: 38% 38% 30% 30% / 30% 30% 22% 22%;
  background: linear-gradient(180deg, #ffe9a6 0%, #ffb347 55%, #ff7a2a 100%);
  box-shadow:
    0 0 calc(var(--s) * 0.9) rgba(255, 170, 60, 0.75),
    inset 0 -6px 10px rgba(200, 60, 0, 0.35);
  opacity: 0;
  will-change: transform, opacity;
  animation: lantern-rise var(--dur) ease-in var(--delay) infinite;
}
.fx-lantern::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -3px;
  height: 4px;
  border-radius: 4px;
  background: #7a3a10;
}
@keyframes lantern-rise {
  0% {
    transform: translate3d(0, 0, 0) rotate(-3deg);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  50% {
    transform: translate3d(var(--sway), calc(var(--rise, 600px) * -0.42), 0)
      rotate(3deg);
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translate3d(
        calc(var(--sway) * -0.5),
        calc(var(--rise, 600px) * -0.95),
        0
      )
      rotate(-2deg);
    opacity: 0;
  }
}
.hero.hero-fest .hero-bg .hf-wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ---------- photo mode ---------- */
.ht-photo-marker {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #f33;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
  z-index: 9;
}

/* ---------- tablet + phone ---------- */
@media (max-width: 1024px) {
  .hero.hero-fest {
    --hf-overlap: 0px;
    min-height: 0;
    margin-bottom: 0;
    padding-bottom: 28px;
  }
  .hero.hero-fest .hero-bg {
    height: 640px; /* hero-scene.js sets the real height from the card position */
    border-radius: 0 0 28px 28px;
  }
  .hero.hero-fest .hero-gradient {
    background:
      linear-gradient(
        180deg,
        rgba(10, 4, 30, 0.62) 0%,
        rgba(10, 4, 30, 0.4) 40%,
        rgba(10, 4, 30, 0) 68%
      ),
      radial-gradient(
        120% 90% at 50% 50%,
        rgba(0, 0, 0, 0) 60%,
        rgba(8, 2, 24, 0.45) 100%
      );
  }
  .hero.hero-fest .hero-inner {
    justify-content: flex-start;
    gap: 0;
    padding: 20px 20px 0;
  }
  .hero.hero-fest .hero-content {
    max-width: 640px;
    min-height: 0;
    margin: 0 auto 300px;
    align-items: center;
    text-align: center;
  }
  .hero.hero-fest .hero-heading h1 {
    font-size: clamp(22px, 4.6vw, 38px);
  }
  .hero.hero-fest .hero-subtext {
    font-size: 15.5px;
  }
  .hero.hero-fest .booking-bar {
    max-width: 640px;
    margin: 0 auto;
  }
  .hero.hero-fest .booking-bar-form,
  .hero.hero-fest .booking-bar-form[data-trip-type] {
    gap: 10px;
  }
  .hero.hero-fest .location-input,
  .hero.hero-fest .date-input {
    flex: 1 1 100%;
  }
  .hero.hero-fest .swap-btn {
    flex: none;
    width: 40px;
    height: 40px;
    margin: -20px 18px -20px auto;
    order: 0;
  }
  .hero.hero-fest .swap-btn:hover {
    transform: rotate(180deg) scale(1.06);
  }
  .hero.hero-fest .booking-bar .search-btn {
    flex: 1 1 100%;
    width: 100%;
  }
  .hero.hero-fest .quick-dates-row {
    display: none !important;
  }
  .hero.hero-fest .hero-trust {
    display: none;
  }
}
@media (max-width: 600px) {
  .hero.hero-fest .hero-inner {
    padding: 16px 16px 0;
  }
  .hero.hero-fest .hero-eyebrow {
    font-size: 12px;
    padding: 6px 12px 6px 8px;
    text-align: left;
  }
  .hero.hero-fest .hero-content {
    gap: 14px;
  }
  .hero.hero-fest .booking-bar {
    padding: 14px 14px 16px;
    border-radius: 24px;
  }
  .hero.hero-fest .booking-type-options {
    width: 100%;
  }
  .hero.hero-fest .custom-radio {
    flex: 1;
  }
  .hero.hero-fest .custom-radio span {
    width: 100%;
    padding: 10px 8px;
  }
  .hero.hero-fest .input-with-icon input,
  .hero.hero-fest .input-with-icon .dp-trigger {
    min-height: 56px;
  }
}
@media (min-width: 1025px) and (max-width: 1180px) {
  .hero.hero-fest .hero-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ht-svg *,
  .ht-svg {
    animation: none !important;
    transition: none !important;
  }
  .ht-spark {
    opacity: 0.8;
  }
  .fx-lantern,
  .hero.hero-fest .search-btn::after,
  .hero.hero-fest .eyebrow-flame {
    animation: none !important;
  }
  .fx-lantern {
    opacity: 0.8;
    bottom: 40%;
  }
}

/* ===== scene animations (classes ht-*, drawn by js/hero-scene.js) ===== */
/* ---------- parallax: hero-fx.js sets --mx / --my (-1..1) on the layer ---------- */
.ht-px1,
.ht-px2,
.ht-px3,
.ht-px4,
.ht-px5 {
  transition: translate 0.6s ease-out;
}
.ht-px1 {
  translate: calc(var(--mx, 0) * -4px) calc(var(--my, 0) * -2px);
}
.ht-px2 {
  translate: calc(var(--mx, 0) * -9px) calc(var(--my, 0) * -4px);
}
.ht-px3 {
  translate: calc(var(--mx, 0) * -14px) calc(var(--my, 0) * -5px);
}
.ht-px4 {
  translate: calc(var(--mx, 0) * -22px) calc(var(--my, 0) * -7px);
}
.ht-px5 {
  translate: calc(var(--mx, 0) * -32px) calc(var(--my, 0) * -9px);
}

/* ---------- sky ---------- */
.ht-star {
  animation: ht-twinkle 3.4s ease-in-out infinite;
}
.ht-t1 {
  animation-duration: 2.6s;
  animation-delay: -0.8s;
}
.ht-t2 {
  animation-duration: 4.2s;
  animation-delay: -1.7s;
}
.ht-t3 {
  animation-duration: 3s;
  animation-delay: -2.2s;
}
.ht-t4 {
  animation-duration: 5s;
  animation-delay: -0.3s;
}
@keyframes ht-twinkle {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}
.ht-cloud {
  animation: ht-drift 70s ease-in-out infinite alternate;
}
.ht-c1 {
  animation-duration: 95s;
  animation-delay: -30s;
}
.ht-c2 {
  animation-duration: 80s;
  animation-delay: -55s;
}
@keyframes ht-drift {
  from {
    translate: -90px 0;
  }
  to {
    translate: 110px 0;
  }
}

.ht-sunrise {
  animation: ht-rise 3.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes ht-rise {
  from {
    translate: 0 130px;
    opacity: 0;
  }
  to {
    translate: 0 0;
    opacity: 1;
  }
}
.ht-sunglow {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: ht-breathe 6s ease-in-out infinite alternate;
}
@keyframes ht-breathe {
  from {
    opacity: 0.7;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1.07);
  }
}
.ht-rays {
  transform-origin: 0 0;
  animation: ht-spin 90s linear infinite;
}
@keyframes ht-spin {
  to {
    transform: rotate(360deg);
  }
}
.ht-sunring {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: ht-ring 4.5s ease-in-out infinite alternate;
}
@keyframes ht-ring {
  from {
    opacity: 0.35;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.ht-flock {
  animation: ht-fly 46s linear infinite;
}
@keyframes ht-fly {
  from {
    translate: 260px 20px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  to {
    translate: -620px -50px;
    opacity: 0;
  }
}
.ht-bird {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: ht-flap 0.9s ease-in-out infinite alternate;
}
.ht-bd1 {
  animation-delay: -0.3s;
}
.ht-bd2 {
  animation-delay: -0.6s;
}
@keyframes ht-flap {
  from {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(0.35);
  }
}

/* ---------- city lights ---------- */
.ht-win {
  opacity: 0.9;
}
.ht-w0 {
  animation: ht-wink 5s ease-in-out infinite;
}
.ht-w1 {
  animation: ht-wink 7s ease-in-out -2s infinite;
}
.ht-w2 {
  animation: ht-wink 4s ease-in-out -1s infinite;
}
.ht-w3 {
  animation: ht-wink 9s ease-in-out -4s infinite;
}
@keyframes ht-wink {
  0%,
  100% {
    opacity: 0.95;
  }
  45% {
    opacity: 0.35;
  }
  55% {
    opacity: 0.95;
  }
}

/* ---------- garlands + fairy lights ---------- */
.ht-sway {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: ht-sway 6s ease-in-out infinite alternate;
}
.ht-sw1 {
  animation-delay: -2s;
  animation-duration: 7s;
}
.ht-sw2 {
  animation-delay: -4s;
}
@keyframes ht-sway {
  from {
    transform: rotate(-0.5deg);
  }
  to {
    transform: rotate(0.5deg);
  }
}
.ht-bulb {
  animation: ht-bulb 2.4s ease-in-out infinite;
}
.ht-b1 {
  animation-delay: -0.4s;
}
.ht-b2 {
  animation-delay: -0.8s;
}
.ht-b3 {
  animation-delay: -1.2s;
}
.ht-b4 {
  animation-delay: -1.6s;
}
.ht-b5 {
  animation-delay: -2s;
}
@keyframes ht-bulb {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- river ---------- */
.ht-glit {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: ht-glit 2.8s ease-in-out infinite alternate;
}
.ht-l1 {
  animation-delay: -0.6s;
}
.ht-l2 {
  animation-delay: -1.2s;
}
.ht-l3 {
  animation-delay: -1.8s;
}
.ht-l4 {
  animation-delay: -2.4s;
}
@keyframes ht-glit {
  from {
    transform: scaleX(0.55);
    opacity: 0.5;
  }
  to {
    transform: scaleX(1.1);
    opacity: 1;
  }
}
.ht-rip {
  animation: ht-rip 7s ease-in-out infinite alternate;
}
.ht-r1 {
  animation-duration: 9s;
  animation-delay: -3s;
}
.ht-r2 {
  animation-duration: 11s;
  animation-delay: -6s;
}
@keyframes ht-rip {
  from {
    translate: -16px 0;
  }
  to {
    translate: 16px 0;
  }
}

/* ---------- diyas ---------- */
.ht-flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: ht-flick 0.32s ease-in-out infinite alternate;
}
.ht-f1 {
  animation-duration: 0.26s;
  animation-delay: -0.1s;
}
.ht-f2 {
  animation-duration: 0.38s;
  animation-delay: -0.2s;
}
.ht-f3 {
  animation-duration: 0.3s;
  animation-delay: -0.05s;
}
.ht-f4 {
  animation-duration: 0.42s;
  animation-delay: -0.28s;
}
@keyframes ht-flick {
  from {
    transform: scale(1, 1) skewX(-4deg);
  }
  to {
    transform: scale(0.88, 1.1) skewX(5deg);
  }
}
.ht-glow {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: ht-glow 1.6s ease-in-out infinite alternate;
}
.ht-g1 {
  animation-duration: 1.3s;
  animation-delay: -0.5s;
}
.ht-g2 {
  animation-duration: 1.9s;
  animation-delay: -0.9s;
}
.ht-g3 {
  animation-duration: 1.5s;
  animation-delay: -0.2s;
}
@keyframes ht-glow {
  from {
    opacity: 0.65;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1.08);
  }
}
.ht-float {
  animation: ht-float 11s ease-in-out infinite alternate;
}
.ht-fl1 {
  animation-duration: 14s;
  animation-delay: -4s;
}
.ht-fl2 {
  animation-duration: 9s;
  animation-delay: -2s;
}
.ht-fl3 {
  animation-duration: 16s;
  animation-delay: -7s;
}
@keyframes ht-float {
  from {
    translate: -26px 2px;
  }
  50% {
    translate: 4px -5px;
  }
  to {
    translate: 30px 3px;
  }
}

/* ---------- the two goddesses ---------- */
.ht-deity {
  animation: ht-appear 1.6s ease-out both;
}
.ht-dd1 {
  animation-delay: 0.35s;
}
@keyframes ht-appear {
  from {
    opacity: 0;
    translate: 0 24px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
.ht-aura {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: ht-aura 4.5s ease-in-out infinite alternate;
}
@keyframes ht-aura {
  from {
    opacity: 0.55;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1.06);
  }
}
.ht-waterglow {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: ht-glit 3.2s ease-in-out infinite alternate;
}
.ht-rays2 {
  transform-origin: 0 -292px;
  animation: ht-spin 60s linear infinite;
}
.ht-halospin {
  transform-origin: 0 -292px;
  animation: ht-spin 40s linear infinite reverse;
}
.ht-lotus {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: ht-lotus 5s ease-in-out infinite alternate;
}
@keyframes ht-lotus {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.025);
  }
}
.ht-spark {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: ht-spark 2.6s ease-in-out infinite;
  opacity: 0;
}
.ht-s1 {
  animation-delay: -0.7s;
  animation-duration: 3.2s;
}
.ht-s2 {
  animation-delay: -1.3s;
  animation-duration: 2.2s;
}
.ht-s3 {
  animation-delay: -1.9s;
  animation-duration: 3.8s;
}
@keyframes ht-spark {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.3) rotate(0);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(45deg);
  }
}

/* ===== effects layer: fireworks canvas + marigold petals (js/hero-fx.js) ===== */
.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-fx canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.fx-flower {
  position: absolute;
  top: -40px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 3px 5px rgba(20, 0, 30, 0.45));
  opacity: 0;
  will-change: transform, opacity;
  animation: petal-fall var(--dur) linear var(--delay) infinite;
}
@keyframes petal-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.95;
  }
  30% {
    transform: translate3d(calc(var(--drift) * 0.5), 30vh, 0) rotate(120deg);
  }
  60% {
    transform: translate3d(calc(var(--drift) * -0.3), 62vh, 0) rotate(260deg);
  }
  92% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(var(--drift), 105vh, 0) rotate(420deg);
    opacity: 0;
  }
}
@media (max-width: 768px) {
  .fx-flower:nth-child(n + 12) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fx-flower {
    display: none;
  }
}

/* water reflection + drifting mist */
.ht-reflw {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: ht-wob 3.6s ease-in-out infinite alternate;
}
@keyframes ht-wob {
  from {
    transform: translateX(-4px) skewX(-1.2deg);
  }
  to {
    transform: translateX(4px) skewX(1.2deg);
  }
}
.ht-fogE {
  animation: ht-fogm 18s ease-in-out infinite alternate;
}
.ht-fg1 {
  animation-duration: 24s;
  animation-direction: alternate-reverse;
}
.ht-fg2 {
  animation-duration: 21s;
}
@keyframes ht-fogm {
  from {
    translate: -60px 0;
  }
  to {
    translate: 70px 0;
  }
}

/* ---------- "Happy Diwali" BOOM: white flash + little shake (js/hero-fx.js) ---------- */
.fx-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at var(--fx, 60%) var(--fy, 30%),
    rgba(255, 244, 210, 0.95) 0%,
    rgba(255, 190, 90, 0.38) 32%,
    rgba(255, 150, 40, 0) 68%
  );
}
.fx-flash.go {
  animation: fx-flash 0.8s ease-out;
}
@keyframes fx-flash {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.hero-scene-layer.fx-shake {
  animation: fx-shake 0.45s linear;
}
@keyframes fx-shake {
  0%,
  100% {
    translate: 0 0;
  }
  15% {
    translate: -5px 3px;
  }
  30% {
    translate: 6px -3px;
  }
  45% {
    translate: -4px -2px;
  }
  60% {
    translate: 3px 3px;
  }
  80% {
    translate: -2px 1px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fx-flash.go,
  .hero-scene-layer.fx-shake {
    animation: none;
  }
}

/* ---------- the two women, seen from behind (arghya + rangoli) ---------- */
.ht-pw {
  animation: ht-powder 1.6s ease-in infinite;
  opacity: 0;
}
.ht-pw1 {
  animation-delay: -0.5s;
}
.ht-pw2 {
  animation-delay: -1s;
}
@keyframes ht-powder {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

/* ---------- animated silhouettes: water pouring from kalash + rangoli helpers ---------- */
.ht-pour {
  animation: ht-pour 0.8s linear infinite;
}
@keyframes ht-pour {
  to {
    stroke-dashoffset: -26;
  }
}
.ht-kal {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: ht-kal 2.4s ease-in-out infinite alternate;
}
.ht-kal1 {
  animation-delay: -1.1s;
}
@keyframes ht-kal {
  from {
    transform: rotate(-4deg);
  }
  to {
    transform: rotate(4deg);
  }
}
.ht-drop {
  animation: ht-drop 0.9s ease-out infinite;
  opacity: 0;
}
.ht-dr1 {
  animation-delay: -0.45s;
}
@keyframes ht-drop {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(8px, -14px);
    opacity: 0;
  }
}
.ht-sarm {
  transform-box: fill-box;
  transform-origin: 0% 0%;
  animation: ht-sdraw 1.9s ease-in-out infinite alternate;
}
.ht-sa1 {
  animation-delay: -0.9s;
}
@keyframes ht-sdraw {
  from {
    transform: rotate(-9deg);
  }
  to {
    transform: rotate(9deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ht-pour,
  .ht-kal,
  .ht-drop,
  .ht-sarm {
    animation: none !important;
  }
}

/* ---------- second eyebrow diyo, headline softens while "Happy Diwali" is written, women sway ---------- */
.hero.hero-fest .eyebrow-diya-r .eyebrow-flame {
  animation-delay: -0.7s;
}
.hero.hero-fest .hero-content {
  transition: opacity 0.6s ease;
}
.hero.hero-fest.fx-words .hero-content {
  opacity: 0.12;
}
.ht-wsway {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: ht-wsway 3.2s ease-in-out infinite alternate;
}
@keyframes ht-wsway {
  from {
    transform: rotate(-1.6deg);
  }
  to {
    transform: rotate(1.6deg);
  }
}
.ht-sarmR {
  transform-box: fill-box;
  transform-origin: 0% 0%;
  animation: ht-sdraw 1.6s ease-in-out infinite alternate;
}
.ht-sarmL {
  transform-box: fill-box;
  transform-origin: 100% 0%;
  animation: ht-sdraw 1.6s ease-in-out infinite alternate-reverse;
}
@media (prefers-reduced-motion: reduce) {
  .ht-wsway,
  .ht-sarmR,
  .ht-sarmL {
    animation: none !important;
  }
}
.hero.hero-fest .hero-gradient {
  transition: opacity 0.5s ease;
}
.hero.hero-fest.fx-words .hero-gradient {
  opacity: 0;
}
@media (max-width: 600px) {
  .hero.hero-fest .hero-heading h1 {
    font-size: clamp(20px, 5.2vw, 38px);
  }
  .hero.hero-fest .text-accent .hero-diya {
    width: 0.6em;
    height: 0.6em;
    margin: 0 0.08em;
  }
}
@media (max-width: 360px) {
  .hero.hero-fest .text-accent .hero-diya {
    display: none;
  }
}

/* ---------- phones: still picture, no animation (keeps the page smooth) ---------- */
@media (max-width: 600px) {
  .hero.hero-fest .hero-fx {
    display: none !important;
  }
  .hero.hero-fest *,
  .hero.hero-fest *::before,
  .hero.hero-fest *::after {
    animation: none !important;
    transition: none !important;
  }
}
