/* ==========================================================================
   BESS assembly launch: Dholera, Gujarat, 2027
   Hero sunset + launch card, launch band, Dholera motion graphic
   ========================================================================== */

/* ---------- Hero: dusk and night ---------- */

.hero-dusk,
.hero-night {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.hero-dusk {
  background: linear-gradient(180deg, rgba(58, 78, 120, 0.35) 0%, rgba(214, 120, 96, 0.45) 46%, rgba(255, 170, 92, 0.7) 74%, rgba(255, 206, 140, 0.6) 100%);
  transition: opacity 1.2s ease;
}
.hero-night {
  background: linear-gradient(180deg, #051520 0%, #0a2230 34%, #12343f 58%, #24494c 78%, #31524a 100%);
  transition: opacity 1.8s ease;
}
.hero-stars i {
  position: absolute;
  width: var(--z, 2px);
  height: var(--z, 2px);
  border-radius: 50%;
  background: #f4f7e8;
  opacity: 0;
  transition: opacity 1.6s ease 0.6s;
}
.hero-moon {
  position: absolute;
  top: 15%;
  left: 11%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 11px -7px 0 0 #f1edd2;
  filter: drop-shadow(0 0 18px rgba(241, 237, 210, 0.35));
  opacity: 0;
  transform: translateY(40px) rotate(-12deg);
  transition: opacity 1.4s ease 0.8s, transform 2.2s var(--ease) 0.6s;
}
.hero.is-dusk .hero-dusk {
  opacity: 1;
}
.hero.is-night .hero-night {
  opacity: 1;
}
.hero.is-night .hero-stars i {
  opacity: var(--o);
  animation: star-twinkle 3.6s ease-in-out infinite;
  animation-delay: var(--d);
}
.hero.is-night .hero-moon {
  opacity: 1;
  transform: translateY(0) rotate(-12deg);
}
@keyframes star-twinkle {
  50% { opacity: calc(var(--o) * 0.35); }
}
.hero .cloud,
.hero .birds {
  transition: opacity 1.6s ease, filter 1.6s ease;
}
.hero.is-night .cloud {
  opacity: 0.14;
  filter: brightness(0.6);
}
.hero.is-dusk .cloud {
  filter: sepia(0.5) saturate(2) hue-rotate(-20deg);
}
.hero.is-night .birds {
  opacity: 0;
}

/* Copy turns light at night */
.hero h1,
.hero .lede,
.hero .accent,
.hero-pill,
.hero-pill .mono,
.ticker-words {
  transition: color 1.4s ease, background-color 1.4s ease, border-color 1.4s ease;
}
.hero.is-night h1 {
  color: #f2f6ee;
}
.hero.is-night .accent {
  color: var(--amber);
}
.hero.is-night .lede {
  color: #c8d5c7;
}
.hero.is-night .hero-pill {
  background: rgba(6, 26, 22, 0.5);
  border-color: rgba(255, 255, 255, 0.14);
  color: #d5e0d4;
}
.hero.is-night .ticker-words {
  color: var(--amber);
}
.hero.no-fade *,
.hero.no-fade *::before {
  transition: none !important;
}

/* Landscape */
.hz-turb path,
.hz-turb circle {
  transition: fill 2s ease, stroke 2s ease;
}
.hero.is-night .hz-turb path,
.hero.is-night .hz-turb circle {
  fill: #3a5058;
  stroke: rgba(0, 0, 0, 0.2);
}
.hz-dusk {
  fill: #071824;
  opacity: 0;
  transition: opacity 2.2s ease;
}
.hero.is-dusk .hz-dusk {
  opacity: 0.22;
}
.hero.is-night .hz-dusk {
  opacity: 0.66;
}
.hz-lit {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero.is-night .hz-lit {
  opacity: 1;
  transition-delay: calc(1.4s + var(--d, 0s));
}
.hero.is-night .hz-lit-cell {
  animation: lit-cell 2.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes lit-cell {
  50% { fill: #ffe08f; }
}
.hz-lit-flow {
  fill: none;
  stroke: #ffc400;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 4 7;
  animation: flow 0.9s linear infinite;
}
.hero.is-night .hz-pin .lbl {
  fill: rgba(240, 246, 236, 0.94);
}

/* Persistent announcement under the hero buttons */
.hero-announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(12px, 2vh, 18px);
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(28, 106, 23, 0.18);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--green-deep);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 1.4s;
}
.hero-announce:hover {
  background: rgba(255, 255, 255, 0.85);
}
.hero-announce .moon-chip {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--amber);
  flex: none;
}
.hero-announce .moon-chip svg {
  width: 14px;
  height: 14px;
}
.hero-announce b {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  background: var(--amber);
  color: var(--green-deep);
  border-radius: 999px;
  padding: 3px 8px;
}
.hero-announce .arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.35s var(--ease);
}
.hero-announce:hover .arrow {
  transform: translateX(3px);
}
.hero.is-night .hero-announce {
  background: rgba(6, 26, 22, 0.55);
  border-color: rgba(255, 196, 0, 0.35);
  color: #eaf2e4;
}

/* ---------- Launch card (pops out where the sun sets) ---------- */

.launch-pop {
  position: absolute;
  z-index: 5;
  right: auto;
  width: min(410px, calc(100% - 32px));
  border-radius: 22px;
  padding: 18px;
  text-align: left;
  color: #eaf2e4;
  background: linear-gradient(160deg, rgba(14, 52, 24, 0.94), rgba(6, 30, 12, 0.94));
  border: 1px solid rgba(255, 196, 0, 0.32);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(255, 196, 0, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.launch-pop[hidden] {
  display: none;
}
.lp-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 6px 16px;
  align-items: start;
}
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  grid-column: 1 / -1;
}
.lp-eyebrow .pulse {
  background: var(--amber);
}
.lp-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 6px;
}
.lp-title span {
  color: var(--amber);
}
.lp-map {
  grid-row: span 2;
  width: 92px;
  height: auto;
  margin-top: 6px;
}
.lp-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: #bacbb9;
  margin-top: 4px;
}
.lp-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
}
.lp-actions .btn {
  border-radius: 999px;
  padding: 5px 18px 5px 5px;
  font-size: 14.5px;
}
.lp-actions .btn .chip {
  border-radius: 999px;
  width: 32px;
  height: 32px;
}
.lp-day {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: #bacbb9;
  text-decoration: underline;
  text-decoration-color: rgba(186, 203, 185, 0.4);
  text-underline-offset: 3px;
}
.lp-day:hover {
  color: #fff;
}
.lp-close {
  position: absolute;
  /* Above the card copy: GSAP's entrance transforms put .lp-in's children on
     their own layers, which otherwise paint over (and swallow clicks on) the button */
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #d5e0d4;
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s;
}
.lp-close:hover {
  background: rgba(255, 255, 255, 0.14);
}
.lp-close svg {
  width: 12px;
  height: 12px;
}
.lp-close + .lp-in .lp-eyebrow {
  padding-right: 36px;
}
.launch-pop.is-compact .lp-text,
.launch-pop.is-compact .lp-day {
  display: none;
}
.launch-pop.is-compact .lp-map {
  grid-row: span 1;
  width: 72px;
}

/* Gujarat glyph */
.mm-land {
  fill: rgba(255, 196, 0, 0.14);
  stroke: rgba(255, 196, 0, 0.75);
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.mm-pin {
  fill: var(--amber);
  stroke: #061c0b;
  stroke-width: 1.5;
}
.mm-ring {
  fill: var(--amber);
  transform-box: fill-box;
  transform-origin: center;
  animation: mm-ring 2.2s ease-out infinite;
}
@keyframes mm-ring {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(3.4); opacity: 0; }
}

@media (max-width: 700px) {
  .launch-pop {
    left: 16px !important;
    right: 16px;
    top: auto !important;
    bottom: 16px;
    width: auto;
    padding: 16px;
  }
  .lp-in {
    grid-template-columns: minmax(0, 1fr) 64px;
  }
  .lp-map {
    width: 64px;
  }
  .lp-title {
    font-size: 18px;
  }
  .lp-text {
    font-size: 13px;
    line-height: 1.45;
  }
  .lp-map {
    grid-row: span 1;
  }
  .lp-actions {
    margin-top: 10px;
  }
  .lp-day {
    display: none;
  }
  .hero-announce {
    font-size: 12.5px;
    max-width: 100%;
  }
  .hero-announce .long {
    display: none;
  }
}

/* ---------- Launch band (home) ---------- */

.launch-band {
  padding: clamp(28px, 5vw, 64px);
  overflow: clip;
}
.launch-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.launch-grid .h-section {
  margin-top: 20px;
  max-width: 14ch;
}
.launch-grid .lede {
  margin-top: 20px;
}
.launch-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--night-line);
  border: 1px solid var(--night-line);
}
.launch-facts div {
  background: var(--night);
  padding: 14px 16px;
}
.launch-facts span {
  display: block;
  color: var(--night-muted);
}
.launch-facts b {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}
.launch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 28px;
}
.launch-actions .link-arrow {
  color: var(--amber);
}
.launch-stage {
  border-radius: 22px;
  border: 1px solid var(--night-line);
  background: radial-gradient(120% 90% at 60% 40%, rgba(255, 196, 0, 0.06), transparent 60%), var(--night-2);
  padding: 14px;
}
.launch-stage .stage-head {
  border-color: var(--night-line);
  color: var(--night-muted);
}
.launch-stage .stage-head b {
  color: var(--amber);
  font-weight: 500;
}
.launch-stage > svg {
  display: block;
  width: 100%;
  height: auto;
}
.status--launch {
  background: rgba(255, 196, 0, 0.22);
  color: var(--green-deep);
}
.dark .status--launch {
  background: rgba(255, 196, 0, 0.14);
  color: var(--amber);
}
.status--launch .pulse {
  background: var(--green);
}
.dark .status--launch .pulse {
  background: var(--amber);
}
a.status:hover {
  filter: brightness(0.96);
}
.sol-launch {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin: 2px 0 14px;
}
/* Availability chips on the dark solutions band (QA-05) */
.dark .status:not(.status--launch) {
  background: rgba(214, 236, 206, 0.12);
  color: #d6ecce;
}
.dark .status:not(.status--launch) .pulse {
  background: #7fd46f;
}
.dark .status--dev {
  background: rgba(255, 196, 0, 0.1);
  color: #f4e2a6;
}
.dark .status--dev .pulse {
  background: var(--sun);
}

@media (max-width: 1020px) {
  .launch-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .launch-facts {
    grid-template-columns: 1fr;
  }
}

/* The BESS page story sits in a dark band; `clip` keeps position: sticky working */
.dark.clip-ok {
  overflow: clip;
}

/* ---------- Dholera motion graphic ---------- */

.dh-svg {
  overflow: hidden;
  font-family: var(--font-label);
}
.dh-nb {
  fill: rgba(208, 224, 207, 0.05);
  stroke: rgba(208, 224, 207, 0.16);
  stroke-width: 0.25;
}
.dh-gj {
  fill: rgba(255, 196, 0, 0.1);
}
.dh-gj-line {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.dh-sea {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 15px;
  fill: rgba(166, 187, 167, 0.6);
  letter-spacing: 0.04em;
}
.dh-region {
  font-family: var(--font-label);
  font-size: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  fill: rgba(255, 196, 0, 0.55);
}
.dh-city circle {
  fill: #d0e0cf;
}
.dh-city text {
  font-size: 13px;
  fill: #a6bba7;
  letter-spacing: 0.02em;
}
.dh-pin-drop path {
  fill: var(--amber);
  stroke: #061c0b;
  stroke-width: 1.5;
}
.dh-pin-drop circle {
  fill: #061c0b;
}
.dh-ripple {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: dh-ripple 2.2s ease-out infinite;
}
@keyframes dh-ripple {
  from { transform: scale(0.4); opacity: 0.9; }
  to { transform: scale(3.2); opacity: 0; }
}
.dh-loc text {
  fill: #fff;
}
.dh-k,
.dh-k2 {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dh-k {
  fill: var(--amber) !important;
}
.dh-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 54px;
  letter-spacing: -0.03em;
}
.dh-sub {
  font-family: var(--font-sans);
  font-size: 22px;
  fill: #d0e0cf !important;
}
.dh-k2.dim {
  fill: #a6bba7 !important;
  font-size: 12.5px;
}
.dh-rule {
  stroke: rgba(208, 224, 207, 0.25);
  stroke-dasharray: 3 5;
}
.dh-grid {
  fill: none;
  stroke: rgba(208, 224, 207, 0.07);
  stroke-width: 1;
}
.dh-pad {
  fill: rgba(208, 224, 207, 0.08);
  stroke: rgba(208, 224, 207, 0.2);
  stroke-dasharray: 4 5;
}
.dh-site-k {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: #a6bba7;
}
.dh-face {
  stroke: rgba(6, 26, 11, 0.55);
  stroke-width: 1;
  stroke-linejoin: round;
}
.dh-modline {
  fill: rgba(255, 255, 255, 0.04);
  stroke: rgba(255, 196, 0, 0.28);
  stroke-width: 0.8;
}
.dh-led {
  fill: #ffc400;
}
.dh-tray {
  fill: none;
  stroke: #7f9180;
  stroke-width: 3;
}
.dh-corr {
  stroke: rgba(6, 26, 11, 0.13);
  stroke-width: 1;
  fill: none;
}
.dh-ctr-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  fill: #1c6a17;
}
.dh-doors path {
  stroke: rgba(6, 26, 11, 0.35);
  stroke-width: 1.2;
  fill: none;
}
.dh-screen {
  fill: #0a2a10;
}
.dh-blink {
  fill: #ffc400;
  animation: blink 1.6s steps(2, end) infinite;
}
.dh-blink.b2 {
  animation-delay: -0.5s;
  fill: #f4b321;
}
.dh-blink.b3 {
  animation-delay: -1s;
}
.dh-fan-ring {
  fill: #9aab98;
  stroke: rgba(6, 26, 11, 0.5);
}
.dh-fan {
  stroke: #0a2a10;
  stroke-width: 2.2;
  stroke-linecap: round;
  animation: spin 1.2s linear infinite;
}
.dh-bolt {
  fill: none;
  stroke: #e9a100;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dh-cable {
  fill: none;
  stroke: var(--amber);
  stroke-width: 3;
  stroke-dasharray: 4 6;
  animation: flow 0.9s linear infinite;
}
.dh-lbl path {
  fill: none;
  stroke: rgba(255, 196, 0, 0.75);
  stroke-width: 1.2;
}
.dh-lbl circle {
  fill: var(--amber);
  stroke: #061c0b;
  stroke-width: 1.5;
}
.dh-lbl text {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: #f2f6ee;
  paint-order: stroke;
  stroke: #0c3a15;
  stroke-width: 5px;
  stroke-linejoin: round;
}
.dh-stamp rect {
  fill: var(--amber);
}
.dh-stamp circle {
  fill: #1c6a17;
}
.dh-stamp path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dh-stamp text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  fill: #1c6a17;
}
.dh-stamp text.dim {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .dh-city text,
  .dh-sea {
    font-size: 20px;
  }
  .dh-lbl text {
    font-size: 21px;
  }
  .dh-site-k,
  .dh-k2.dim {
    display: none;
  }
}
/* Without GSAP: a still, assembled frame */
.dh-static .dh-map,
.dh-static .dh-loc,
.dh-static .dh-xrack,
.dh-static .dh-lbl,
.dh-static .dh-cell {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-dusk,
  .hero-night,
  .hero-stars i,
  .hero-moon,
  .hz-lit,
  .hz-dusk {
    transition: none !important;
  }
  .hero.is-night .hero-stars i,
  .dh-ripple,
  .mm-ring,
  .dh-fan,
  .dh-cable,
  .dh-blink {
    animation: none;
  }
}
