/* The energy scene is drawn in one coordinate system; panel cells are clipped by their own rectangles. */
.power-section {
  background: #0e2939;
  color: #f1f2e9;
  overflow: hidden;
}
.power-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(32px, 5vw, 100px);
  align-items: center;
}
.power-editorial h2 {
  font-size: clamp(42px, 4.7vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}
.power-intro {
  max-width: 33em;
  margin: 30px 0 0;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.65;
  color: #bacbd1;
}
.power-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  margin: 34px 0 0;
  max-width: 460px;
  border: 1px solid #8ca6b04a;
  background: #081c2833;
}
.power-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 17px 12px;
  min-height: 62px;
  background: transparent;
  color: #c2d1d3;
  font-size: 16px;
  transition:
    background 0.25s,
    color 0.25s;
}
.power-tab svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.power-tab[aria-selected="true"] {
  background: #e3b440;
  color: #081c28;
}
.power-tab:not([aria-selected="true"]):hover {
  background: #ffffff0b;
  color: #e3b440;
}
.power-tab:focus-visible {
  outline: 2px solid #f8df9c;
  outline-offset: 4px;
}
.power-copy-panel {
  padding-top: 30px;
  min-height: 226px;
}
.power-copy-panel[hidden] {
  display: none;
}
.power-copy-panel h3 {
  font-size: clamp(23px, 2vw, 31px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.power-copy-panel p {
  font-size: 17px;
  line-height: 1.65;
  color: #bdcdd1;
  max-width: 35em;
}
.power-copy-detail {
  display: block;
  margin-top: 20px;
  color: #e3b440;
  font-size: 13px;
  line-height: 1.6;
}
.power-stage {
  position: relative;
  background: radial-gradient(ellipse at 50% 40%, #17374780, #081c28 72%);
  border: 1px solid #aec7cc16;
  padding: clamp(18px, 2vw, 32px);
  min-width: 0;
}
.power-stage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #c1d1d5;
  font-size: 13px;
}
.power-stage-status {
  color: #e3b440;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  white-space: nowrap;
}
.power-stage-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.power-house {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  margin: 13px 0 37px;
}
.power-house .power-label {
  fill: #c7d7da;
  font-family: inherit;
  font-size: 23px;
  letter-spacing: -0.3px;
}
.power-house .power-load-label {
  fill: #b2c5cb;
  font-family: inherit;
  font-size: 21px;
  letter-spacing: -0.3px;
}
.power-sun,
.power-panels,
.power-grid,
.power-window,
.power-essential,
.power-battery-charge {
  transition: opacity .6s, fill .6s, color .6s, filter .6s;
}
.power-house .power-state-label { fill: #e3b440; font-family: inherit; font-size: 21px; }
.power-house .power-panel-label { font-size: 21px; }
.power-house .power-inverter-label { font-size: 21px; }
.power-sun-rays { transform-box: fill-box; transform-origin: 50% 50%; animation: power-sun-turn 38s linear infinite; }
.power-wire-base, .power-grid-track { fill: none; stroke: #668794; stroke-width: 2; opacity: .35; }
.power-current {
  fill: none;
  stroke: #e3b440;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 5 10;
  animation: power-flow 1.5s linear infinite;
  transition: opacity .5s;
}
.power-sun-beam { stroke-width: 1.6; opacity: .72; animation-duration: 2s; }
.power-grid-current { stroke: #aac7ce; opacity: .72; animation-duration: 2.5s; }
.power-backup-flow { opacity: 0; }
.power-grid-disconnect { opacity: 0; transition: opacity .5s; }
.power-essential { color: #e3b440; }
.power-load-halo { fill: #253626; stroke: #e3b440; stroke-width: 1; stroke-opacity: .6; }
.power-fan-blades { transform-box: fill-box; transform-origin: 50% 50%; animation: power-fan 1.8s linear infinite; }
.power-wifi-wave { animation: power-wifi 2.2s ease-in-out infinite; }
.wave-middle { animation-delay: .2s; }
.wave-outer { animation-delay: .4s; }
.power-fridge-spark { animation: power-fridge 3s ease-in-out infinite; }
.power-caption {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #e3b440;
  padding-top: 19px;
  border-top: 1px solid #b3c5ce24;
}
.power-caption p {
  font-size: 13px;
  line-height: 1.5;
}
.power-signal {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
}
.power-note {
  margin-top: 13px;
  font-size: 11px;
  line-height: 1.7;
  color: #91a9b4;
  max-width: 57em;
}
.power-section[data-power-mode="outage"] .power-solar-flow,
.power-section[data-power-mode="outage"] .power-solar-input,
.power-section[data-power-mode="outage"] .power-charge-flow,
.power-section[data-power-mode="outage"] .power-grid-current { opacity: 0; }
.power-section[data-power-mode="outage"] .power-sun { opacity: .26; }
.power-section[data-power-mode="outage"] .power-sun-rays { animation-play-state: paused; }
.power-section[data-power-mode="outage"] .power-panels { filter: brightness(.66); }
.power-section[data-power-mode="outage"] .power-grid { opacity: .4; }
.power-section[data-power-mode="outage"] .power-grid-track { opacity: .12; stroke-dasharray: 3 9; }
.power-section[data-power-mode="outage"] .power-grid-disconnect { opacity: 1; }
.power-section[data-power-mode="outage"] .power-backup-flow { opacity: 1; }
.power-section[data-power-mode="outage"] .power-window { fill: #132e3b; }
@keyframes power-sun-turn { to { rotate: 360deg; } }
@keyframes power-flow {
  to {
    stroke-dashoffset: -30;
  }
}
@keyframes power-fan {
  to {
    rotate: 360deg;
  }
}
@keyframes power-wifi {
  0%,
  100% {
    opacity: 0.3;
  }
  40%,
  70% {
    opacity: 1;
  }
}
@keyframes power-fridge {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
@media (min-width: 1000px) and (max-width: 1280px) {
  .power-layout {
    grid-template-columns: 0.88fr 1.12fr;
    gap: 30px;
  }
  .power-editorial h2 {
    font-size: clamp(44px, 4.6vw, 58px);
  }
  .power-intro {
    font-size: 17px;
  }
  .power-controls {
    margin-top: 26px;
  }
  .power-copy-panel p {
    font-size: 16px;
  }
  .power-copy-panel {
    min-height: 230px;
  }
  .power-stage {
    padding: 20px;
  }
}
@media (max-width: 999px) {
  .power-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    max-width: 760px;
  }
  .power-editorial h2 {
    font-size: clamp(42px, 7.5vw, 70px);
  }
  .power-editorial h2 br:nth-child(2) {
    display: none;
  }
  .power-copy-panel {
    min-height: 180px;
  }
  .power-stage {
    padding: 28px;
  }
}
@media (max-width: 540px) {
  .power-layout {
    gap: 18px;
  }
  .power-editorial h2 {
    font-size: clamp(39px, 10.4vw, 56px);
  }
  .power-intro {
    margin-top: 23px;
    font-size: 16px;
  }
  .power-controls {
    margin-top: 25px;
  }
  .power-tab {
    padding: 12px 8px;
    min-height: 54px;
    font-size: 15px;
  }
  .power-copy-panel {
    min-height: 230px;
    padding-top: 24px;
  }
  .power-copy-panel p {
    font-size: 16px;
  }
  .power-copy-detail {
    font-size: 12px;
    margin-top: 15px;
  }
  .power-stage {
    padding: 17px 12px 20px;
    margin-inline: -4px;
  }
  .power-stage-heading {
    font-size: 11px;
    gap: 8px;
  }
  .power-stage-status {
    font-size: 9px;
    gap: 5px;
  }
  .power-house {
    margin-top: 4px;
    margin-bottom: 27px;
  }
  .power-house .power-label {
    font-size: 26px;
  }
  .power-house .power-load-label {
    font-size: 24px;
  }
  .power-caption {
    padding-top: 15px;
  }
  .power-caption p {
    font-size: 11px;
  }
  .power-note {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .power-section *,
  .power-section *::before,
  .power-section *::after {
    animation: none !important;
    transition: none !important;
  }
}
