/* Home page styles: hero layout, turbine/solar animations, corridor & orbital power hub */

@media (max-width: 1023px) {
  body.page-home main {
    padding-top: 104px !important;
  }
}

.hero-copy-stack {
  gap: clamp(0.75rem, 1.4vw, 1.15rem);
}

.hero-headline {
  font-size: clamp(2.2rem, 3.2vw, 3.6rem);
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.02;
}

/* Wind Turbine & Transmission Line Animations */
@keyframes turbineRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes windDrift {
  0% {
    transform: translateX(-60px);
    opacity: 0;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    transform: translateX(60px);
    opacity: 0;
  }
}

@keyframes powerFlowDown {
  from {
    stroke-dashoffset: 40;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.animate-turbine-spin {
  animation: turbineRotate 6s linear infinite;
  transform-origin: 500px 340px;
}

.wind-stream-1 {
  animation: windDrift 4.5s ease-in-out infinite;
}

.wind-stream-2 {
  animation: windDrift 5.5s ease-in-out infinite 1.8s;
}

.wind-stream-3 {
  animation: windDrift 5s ease-in-out infinite 0.9s;
}

.animate-power-flow {
  stroke-dasharray: 8 12;
  animation: powerFlowDown 1.2s linear infinite;
}

/* Orbital Transmission Network SVG Hub */
.hub-node {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  will-change: transform, opacity;
}

.hub-node:hover,
.hub-node.active-highlight {
  scale: 1.06;
  box-shadow: 0 14px 30px -6px rgba(46, 125, 50, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  border-color: #2e7d32 !important;
}

.is-energized .hub-node[data-node="1"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.65s;
}

.is-energized .hub-node[data-node="2"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.8s;
}

.is-energized .hub-node[data-node="3"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.95s;
}

.is-energized .hub-node[data-node="4"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 1.1s;
}

.is-energized .hub-node[data-node="5"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 1.25s;
}

.is-energized .hub-node[data-node="6"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 1.4s;
}

.is-energized .hub-node[data-node="7"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 1.55s;
}

.hub-connect-line {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition:
    stroke-dashoffset 0.75s cubic-bezier(0.25, 1, 0.5, 1),
    stroke 0.25s ease,
    stroke-width 0.25s ease,
    filter 0.25s ease;
}

.is-energized .hub-connect-line {
  stroke-dashoffset: 0;
}

.is-energized #line-node-1 { transition-delay: 0.5s; }
.is-energized #line-node-2 { transition-delay: 0.7s; }
.is-energized #line-node-3 { transition-delay: 0.85s; }
.is-energized #line-node-4 { transition-delay: 1.0s; }
.is-energized #line-node-5 { transition-delay: 1.15s; }
.is-energized #line-node-6 { transition-delay: 1.3s; }
.is-energized #line-node-7 { transition-delay: 1.45s; }

.hub-line-active {
  stroke: #2e7d32 !important;
  stroke-width: 2.8 !important;
  filter: drop-shadow(0 0 5px rgba(46, 125, 50, 0.6));
}

/* Continuous Living Power Grid Heartbeat */
.hub-center-core {
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: continuousHeartbeat 2.2s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
  will-change: transform, box-shadow;
}

.hub-center-core:hover {
  transform: translate(-50%, -50%) scale(1.08) !important;
  box-shadow: 0 0 45px rgba(46, 125, 50, 0.6) !important;
  border-color: #2e7d32 !important;
}

@keyframes continuousHeartbeat {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 0 0 0 rgba(46, 125, 50, 0);
    border-color: #0f172a;
  }
  14% {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 45px 10px rgba(46, 125, 50, 0.55), 0 14px 28px -4px rgba(46, 125, 50, 0.28);
    border-color: #2e7d32;
  }
  24% {
    transform: translate(-50%, -50%) scale(1.02);
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.22);
    border-color: #1e293b;
  }
  36% {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 0 35px 6px rgba(46, 125, 50, 0.45), 0 10px 22px -4px rgba(46, 125, 50, 0.22);
    border-color: #2e7d32;
  }
  50%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 0 0 0 rgba(46, 125, 50, 0);
    border-color: #0f172a;
  }
}

/* Emerald Shockwave Ripple Expanding Outward Continuously */
.shockwave-circle {
  transform-origin: 390px 280px;
  opacity: 0;
  pointer-events: none;
}

.shockwave-circle-1 {
  animation: continuousShockwave 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite 0.12s;
}

.shockwave-circle-2 {
  animation: continuousShockwave 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite 0.36s;
}

@keyframes continuousShockwave {
  0% {
    transform: scale(0.28);
    opacity: 0.95;
    stroke-width: 4px;
  }
  35% {
    opacity: 0.6;
    stroke-width: 2px;
  }
  75% {
    transform: scale(1.25);
    opacity: 0;
    stroke-width: 0.5px;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
    stroke-width: 0px;
  }
}

/* Mobile Hub Cards Cascade */
.mobile-hub-card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-energized .mobile-hub-card {
  opacity: 1;
  transform: translateY(0);
}

.is-energized .mobile-hub-card:nth-child(1) { transition-delay: 0.5s; }
.is-energized .mobile-hub-card:nth-child(2) { transition-delay: 0.65s; }
.is-energized .mobile-hub-card:nth-child(3) { transition-delay: 0.8s; }
.is-energized .mobile-hub-card:nth-child(4) { transition-delay: 0.95s; }
.is-energized .mobile-hub-card:nth-child(5) { transition-delay: 1.1s; }
.is-energized .mobile-hub-card:nth-child(6) { transition-delay: 1.25s; }
.is-energized .mobile-hub-card:nth-child(7) { transition-delay: 1.4s; }

