/* Contacts are open at rest. Energy only flows when the contact closes. */
.circuit-site .t-node,
.circuit-site .expertise-item {
  text-decoration: none;
}
.circuit-site .detail-load {
  max-width: 420px;
  color: #37647e;
  --card-accent: #37647e;
  --card-bg: #fff;
}
.circuit-site .detail-load .load-blade {
  transform: none;
}
.circuit-site .detail-load .load-current {
  opacity: 1;
  animation: load-energy 1s linear infinite;
}
.circuit-site .detail-load .load-lamp {
  fill: #c4df6c55;
}
.circuit-site .bridge-steps .header-switch {
  width: 29px;
  height: 24px;
}
.circuit-site .bridge-steps .header-wire,
.circuit-site .bridge-steps .header-switch-blade {
  stroke: #c4df8b;
}
.circuit-site .t-bridge.is-live .header-switch-blade {
  animation: method-contact 5s ease infinite;
}
.circuit-site .t-bridge.is-live .header-led {
  animation: method-led 5s step-end infinite;
}
.circuit-site .t-bridge.is-live .header-wire-out {
  stroke-dasharray: 3 2;
  animation:
    method-led 5s step-end infinite,
    wire-current 0.7s linear infinite;
}
.circuit-site .bridge-steps li:nth-child(2) .header-switch * {
  animation-delay: 0.7s;
}
.circuit-site .bridge-steps li:nth-child(3) .header-switch * {
  animation-delay: 1.4s;
}
@keyframes method-contact {
  0%,
  12%,
  92%,
  100% {
    transform: rotate(32deg);
  }
  20%,
  84% {
    transform: rotate(0);
  }
}
@keyframes method-led {
  0%,
  12%,
  92%,
  100% {
    fill: #8ba4af;
    opacity: 0.45;
  }
  20%,
  84% {
    fill: #c9ec76;
    opacity: 1;
  }
}
.circuit-site .application-picture:hover::after {
  animation: output-lamp 1.2s ease infinite;
}
@keyframes output-lamp {
  50% {
    box-shadow:
      0 0 0 10px #c3e07544,
      0 0 18px #c3e075;
  }
}
.circuit-site .load-schematic {
  display: block;
  width: 100%;
  height: 66px;
  margin: 4px 0 24px;
  color: var(--card-accent);
  overflow: visible;
}
.load-schematic path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.load-wire {
  opacity: 0.4;
}
.load-contact {
  fill: var(--card-bg);
  stroke: currentColor;
  stroke-width: 1.5;
}
.load-blade {
  transform-origin: 48px 33px;
  transform: rotate(-32deg);
  transition: transform 0.35s ease;
  stroke-width: 2.5 !important;
}
.load-lamp {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.5;
  transition:
    fill 0.4s,
    filter 0.4s;
}
.load-output {
  fill: var(--card-bg);
  stroke: currentColor;
  stroke-width: 1.5;
}
.load-current {
  opacity: 0;
  stroke-dasharray: 5 18;
}
.is-conducting .load-current,
.is-powered .load-current {
  opacity: 1;
  animation: load-energy 0.9s linear infinite;
  animation-delay: 0.25s;
}
.is-conducting .load-blade,
.is-powered .load-blade {
  transform: rotate(0);
}
.is-conducting .load-lamp,
.is-powered .load-lamp {
  fill: #c4df6c88;
  filter: drop-shadow(0 0 7px #bbdb6a80);
}
.is-conducting .load-output,
.is-powered .load-output {
  fill: #bad968;
}
@keyframes load-energy {
  to {
    stroke-dashoffset: -46;
  }
}
.circuit-site .expertise-item {
  border-radius: 5px 20px 5px 20px;
}
.circuit-site .expertise-index {
  top: 105px;
}
.circuit-site .expertise-icon {
  border-radius: 50%;
}
.circuit-site .expertise-item.is-powered {
  border-color: #93b547;
  box-shadow: 0 0 0 3px #bddb6c33;
}

.circuit-site .t-node {
  width: 29%;
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ffffff69;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #ffffffdb;
  outline: 1px solid #7599ad55;
  outline-offset: 5px;
  box-shadow:
    inset 0 0 24px #ffffff80,
    0 12px 35px #234c6410;
}
.circuit-site .t-node::after {
  content: '';
  position: absolute;
  inset: -7px;
  border: 2px dashed #96b948;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.circuit-site .t-node.is-conducting::after,
.circuit-site .t-node.is-powered::after {
  opacity: 0.8;
  animation: node-energy-ring 14s linear infinite;
}
@keyframes node-energy-ring {
  to {
    transform: rotate(360deg);
  }
}
.circuit-site .t-node .node-photo {
  width: 46%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 0 0 6px;
  overflow: visible;
  background: transparent;
  flex-shrink: 0;
}
.circuit-site .t-node .node-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.88;
}
.circuit-site .t-node .node-icon {
  border-radius: 50%;
  right: -7px;
  bottom: -2px;
}
.circuit-site .t-node > .header-switch {
  width: 33px;
  height: 23px;
  margin: 1px 0;
}
.circuit-site .t-node strong {
  font-size: clamp(11px, 1.2vw, 16px);
  margin: 0;
}
.circuit-site .t-node > span:last-child {
  font-size: 8px;
}
.t-node.is-conducting .header-switch-blade,
.t-node.is-powered .header-switch-blade {
  transform: rotate(0deg);
  stroke: #718f2c;
}
.t-node.is-conducting .header-led,
.t-node.is-powered .header-led {
  fill: #a9c94c;
}
.t-node.is-conducting .header-wire-out,
.t-node.is-powered .header-wire-out {
  stroke: #83a337;
  stroke-dasharray: 3 2;
  animation: wire-current 0.7s linear infinite;
}

.circuit-site .button-primary {
  position: relative;
}
.circuit-site .button-primary::before {
  content: '';
  width: 21px;
  height: 10px;
  flex-shrink: 0;
  border: 1px solid #ffffffa0;
  border-radius: 8px;
  background: radial-gradient(
    circle at 5px 50%,
    #c6e67b 3px,
    transparent 3.5px
  );
  transition: background-position 0.3s;
}
.circuit-site .button-primary:hover::before,
.circuit-site .button-primary:focus-visible::before {
  background-position: 10px 0;
}

@media (max-width: 600px) {
  .circuit-site .t-node {
    width: 31%;
    padding: 9px 5px;
  }
  .circuit-site .t-node .node-photo {
    width: 42%;
    margin-bottom: 3px;
  }
  .circuit-site .t-node strong {
    font-size: 10px;
  }
  .circuit-site .t-node > .header-switch {
    width: 26px;
    height: 18px;
    margin: 0;
  }
  .circuit-site .t-node > span:last-child {
    display: none;
  }
  .circuit-site .t-node .node-icon {
    width: 19px;
    height: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .load-current,
  .t-node::after {
    animation: none !important;
  }
}

.circuit-site .t-system .t-node {
  width: 21%;
  background: #fafdff8c;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 3;
  border-color: #8aa9b638;
  outline: none;
  box-shadow: inset 0 0 16px #ffffff22;
  color: #3e5e71;
  padding: 9px;
}
.circuit-site .t-system .t-node:hover,
.circuit-site .t-system .t-node:focus-visible {
  background: #fffffff2;
  border-color: #92b546;
  box-shadow: 0 0 0 5px #b4d56b12;
}
.circuit-site .t-system .t-node .node-photo {
  width: 39%;
  margin-bottom: 4px;
}
.circuit-site .t-system .t-node .node-photo > img {
  opacity: 0.68;
}
.circuit-site .t-system .t-node strong {
  font-size: clamp(9px, 1vw, 13px);
  font-weight: 500;
  background: #fafdff55;
  border-radius: 4px;
  padding: 1px 3px;
}
.circuit-site .t-system .t-node > .header-switch {
  width: 27px;
  height: 19px;
}
.circuit-site .t-system .node-energy {
  top: 0;
  left: 40%;
}
.circuit-site .t-system .node-control {
  top: 65%;
  left: 1%;
}
.circuit-site .t-system .node-safety {
  top: 65%;
  right: 1%;
}
.circuit-site .t-system .node-solar {
  top: 17%;
  right: 0;
  animation-delay: -1s;
}
.circuit-site .t-system .node-cabins {
  top: 17%;
  left: 0;
  animation-delay: -3s;
}
.circuit-site .t-system .node-water {
  top: auto;
  bottom: 0;
  left: 40%;
  animation-delay: -5s;
}
.circuit-site .t-system-caption {
  bottom: -22px;
}
@media (max-width: 600px) {
  .circuit-site .t-system .t-node {
    width: 23%;
    padding: 6px 3px;
  }
  .circuit-site .t-system .t-node strong {
    font-size: 8px;
  }
  .circuit-site .t-system .t-node > .header-switch {
    width: 23px;
    height: 16px;
  }
  .circuit-site .t-system .t-node .node-icon {
    display: none;
  }
  .circuit-site .t-system {
    margin-bottom: 35px;
  }
}
