/* ============================================================
   MID-PENINSULA ELECTRIC — single-page system
   Concept: one thick red conductor runs the page; every section
   is a branch circuit tapped off it. X-ray building reveals all.
   Palette: void graphite, bone, conductor red, copper.
   Type: Archivo (engineered) / Newsreader (editorial) / IBM Plex Mono (spec)
   ============================================================ */

:root {
  --void: #0a0b0d;
  --carbon: #131519;
  --carbon-2: #1a1d22;
  --bone: #e9e5dd;
  --bone-dim: #cfcac1;
  --ink: #17181a;
  --ink-soft: #46484c;
  --steel: #969ca6;
  --steel-dim: #4a4e55;
  --copper: #b0702e;
  --copper-bright: #d18f45;
  --wire: #ff3a2c;
  --wire-deep: #b3271d;
  --wire-glow: rgba(255, 58, 44, 0.45);
  --line-dark: rgba(233, 229, 221, 0.13);
  --line-light: rgba(23, 24, 26, 0.16);

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --fs-hero: clamp(2.5rem, 7.2vw, 6.4rem);
  --fs-statement: clamp(1.9rem, 6.8vw, 5.8rem);
  --fs-h2: clamp(1.6rem, 3.8vw, 3.2rem);
  --fs-h3: clamp(1.2rem, 2.1vw, 1.8rem);
  --fs-serif-lead: clamp(1.25rem, 2.4vw, 1.9rem);
  --fs-body: clamp(0.99rem, 1.05vw, 1.1rem);
  --fs-mono: clamp(0.66rem, 0.82vw, 0.78rem);

  --pad-x: clamp(1.25rem, 5vw, 5rem);
  --rail: clamp(2.4rem, 8vw, 7rem);      /* x position of the main conductor */
  --rail-gap: clamp(1.4rem, 3vw, 2.8rem); /* space between rail and content */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4.5rem;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: var(--wire);
  color: var(--void);
}

:focus-visible {
  outline: 2px solid var(--wire);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 300;
  background: var(--wire);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--copper-bright);
}

.display {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 122;
  font-weight: 570;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.03;
}

.serif-lead {
  font-family: var(--font-serif);
  font-size: var(--fs-serif-lead);
  font-weight: 330;
  line-height: 1.42;
}

.mono-note {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.accent-red {
  color: var(--wire);
}

.accent-copper {
  color: var(--copper-bright);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 3.5vw, 3rem);
  transition: background 0.45s, border-color 0.45s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 125;
  font-weight: 620;
  font-size: clamp(0.76rem, 1.4vw, 0.94rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand img {
  height: 2rem;
  width: auto;
  flex: none;
}

.footer-brand .brand img {
  height: 2.6rem;
}

.brand em {
  font-style: normal;
  color: var(--wire);
}

@media (max-width: 1100px) {
  .brand span {
    display: none;
  }

  .brand img {
    height: 2.2rem;
  }
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.2rem);
}

.primary-nav a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.25s;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--wire);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.primary-nav a:hover {
  color: var(--bone);
}

.primary-nav a:hover::after {
  transform: scaleX(1);
}

.header-phone {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--bone);
  border: 1px solid rgba(255, 58, 44, 0.5);
  padding: 0.55rem 1rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}

.header-phone:hover {
  background: var(--wire);
  border-color: var(--wire);
  color: #fff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--bone);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--void);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) var(--pad-x) 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 120;
  font-weight: 560;
  font-size: clamp(1.7rem, 7.5vw, 2.8rem);
  text-transform: uppercase;
  line-height: 1.25;
  border-bottom: 1px solid var(--line-dark);
  padding: 0.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.mobile-menu nav a small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--wire);
}

.mobile-menu .menu-contact {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-menu .menu-contact a {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
}

@media (max-width: 940px) {
  .primary-nav,
  .header-phone {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-h) + 3rem) var(--pad-x) clamp(5rem, 12vh, 8rem);
}

.hero-xray {
  position: absolute;
  top: 50%;
  right: clamp(-6rem, -2vw, 2rem);
  transform: translateY(-52%);
  width: clamp(24rem, 46vw, 46rem);
  z-index: -1;
  opacity: 0.95;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 60% at 70% 40%, rgba(255, 58, 44, 0.05), transparent 60%),
    linear-gradient(var(--void) 0%, #0d0f12 55%, var(--void) 100%);
}

.hero-grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(233, 229, 221, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 229, 221, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 30%, transparent 75%);
}

.hero-inner {
  max-width: 46rem;
  position: relative;
}

.hero-inner .eyebrow {
  display: block;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: var(--fs-hero);
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line > span {
  display: block;
  transform: translateY(112%);
  animation: rise 1.1s var(--ease-out) forwards;
}

.hero-title .line:nth-child(2) > span {
  animation-delay: 0.15s;
}

@keyframes rise {
  to {
    transform: translateY(0);
  }
}

.hero-sub {
  margin-top: 1.7rem;
  max-width: 33em;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  color: var(--bone-dim);
  opacity: 0;
  animation: fade 1.1s 0.5s forwards;
}

.hero-ctas {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
  opacity: 0;
  animation: fade 1.1s 0.7s forwards;
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

.hero-hud {
  position: absolute;
  right: clamp(1.25rem, 3.5vw, 3rem);
  bottom: 2rem;
  text-align: right;
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  opacity: 0;
  animation: fade 1.1s 1s forwards;
}

.hero-hud b {
  color: var(--copper-bright);
  font-weight: 500;
}

.scroll-cue {
  position: absolute;
  left: var(--rail);
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0;
  animation: fade 1s 1.2s forwards;
}

.scroll-cue::after {
  content: "";
  width: 2px;
  height: 3.4rem;
  background: linear-gradient(var(--wire), transparent);
  animation: cue 2.1s ease-in-out infinite;
}

@keyframes cue {
  0%,
  100% {
    transform: scaleY(0.3);
    transform-origin: top;
    opacity: 0.35;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero {
    align-items: center;
  }

  .hero-xray {
    right: -30%;
    width: 34rem;
    opacity: 0.3;
  }

  .hero-hud {
    display: none;
  }
}

/* ---------- compact interior page hero ---------- */
.page-hero-lite {
  position: relative;
  padding: calc(var(--header-h) + clamp(3.5rem, 9vh, 6rem)) var(--pad-x) clamp(2.5rem, 6vh, 4rem);
  padding-left: calc(var(--rail) + var(--rail-gap));
}

.page-hero-lite h1 {
  font-size: clamp(2rem, 5vw, 3.9rem);
  margin-top: 1rem;
}

.page-hero-lite .lede {
  margin-top: 1.3rem;
  color: var(--bone-dim);
  max-width: 36em;
}

/* ---------- wire scope & stages ---------- */
.wire-scope {
  position: relative;
}

.wire-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
  pointer-events: none;
}

.wire-svg .wire-track {
  stroke: #23262b;
  stroke-width: 6;
  fill: none;
  stroke-linecap: round;
}

.wire-svg .wire-halo {
  stroke: var(--wire);
  stroke-width: 15;
  opacity: 0.16;
  fill: none;
  stroke-linecap: round;
}

.wire-svg .wire-live {
  stroke: var(--wire);
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
}

.wire-svg .wire-node {
  fill: var(--carbon-2);
  stroke: #33373d;
  stroke-width: 2;
  transition: fill 0.4s, stroke 0.4s;
}

.wire-svg .wire-node.is-live {
  fill: var(--wire);
  stroke: #ff8177;
}

.wire-svg .wire-pulse {
  fill: #fff;
  filter: drop-shadow(0 0 6px var(--wire)) drop-shadow(0 0 14px var(--wire));
}

/* a stage = one tap off the conductor */
.stage {
  position: relative;
  padding: clamp(3.8rem, 9vh, 7rem) var(--pad-x);
  padding-left: calc(var(--rail) + var(--rail-gap));
}

/* full-bleed cinematic stage — normal scroll, no pinning */
.stage-cinema {
  padding: 0;
}

.cinema-pin {
  position: relative;
  height: 88svh;
  overflow: hidden;
}

.cinema-pin video,
.cinema-pin > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cinema-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 13, 0.5) 0%, rgba(10, 11, 13, 0.06) 45%, rgba(10, 11, 13, 0.78) 100%);
}

.cinema-pin .cinema-caption {
  position: absolute;
  top: auto;
  left: calc(var(--rail) + var(--rail-gap));
  right: var(--pad-x);
  bottom: clamp(2.2rem, 7vh, 4.5rem);
  max-width: 44rem;
}

.cinema-tag {
  position: absolute;
  right: clamp(1.25rem, 3.5vw, 3rem);
  bottom: clamp(2.5rem, 8vh, 5rem);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.cinema-tag b {
  color: var(--wire);
  font-weight: 500;
}


/* splits between the major parts of the page */
.wire-scope > section {
  border-top: 1px solid var(--line-dark);
}

.wire-scope > section:first-of-type {
  border-top: 0;
}

.wire-scope > section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: var(--rail);
  height: 1px;
  background: linear-gradient(90deg, var(--wire-deep), transparent);
}

.stage-head {
  position: relative;
  max-width: 46rem;
}

/* the branch: energizes when the wire reaches this stage */
.stage-head::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--rail-gap));
  top: 0.55em;
  width: calc(var(--rail-gap) - 0.6rem);
  height: 3px;
  background: var(--wire);
  box-shadow: 0 0 10px var(--wire-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out) 0.15s;
}

.stage.is-live .stage-head::before {
  transform: scaleX(1);
}

.stage-index {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color 0.4s;
}

.stage-index .amp {
  margin: 0 0.35em;
}

/* text energizes when the conductor reaches the tap */
.stage .stage-title,
.xray-section .statement-title {
  color: #52565e;
  transition: color 0.9s var(--ease-out), text-shadow 0.9s var(--ease-out);
}

.stage.is-live .stage-title,
.xray-section.is-live .statement-title {
  color: var(--bone);
  text-shadow:
    0 0 22px rgba(255, 58, 44, 0.3),
    0 0 64px rgba(255, 58, 44, 0.14);
  animation: ignite 0.75s linear;
}

.stage .stage-title .accent-red,
.xray-section .statement-title .accent-red {
  color: #6b3531;
  transition: color 0.9s var(--ease-out);
}

.stage.is-live .stage-title .accent-red,
.xray-section.is-live .statement-title .accent-red {
  color: var(--wire);
}

.stage .stage-head .stage-copy {
  color: #62666d;
  transition: color 0.9s var(--ease-out);
}

.stage.is-live .stage-head .stage-copy {
  color: var(--bone-dim);
}

@keyframes ignite {
  0% { opacity: 0.45; }
  28% { opacity: 1; }
  42% { opacity: 0.55; }
  58% { opacity: 1; }
  72% { opacity: 0.8; }
  100% { opacity: 1; }
}

.stage.is-live .stage-index {
  color: var(--wire);
}

.stage-index .amp {
  color: var(--steel-dim);
}

.stage-title {
  font-size: var(--fs-h2);
  margin-top: 0.9rem;
}

.stage-copy {
  margin-top: 1.2rem;
  color: var(--bone-dim);
  max-width: 36em;
}

/* two-column stage body */
.stage-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: clamp(2rem, 5vh, 3.5rem);
}

.stage-cols.tight {
  align-items: start;
}

@media (max-width: 860px) {
  .stage-cols {
    grid-template-columns: 1fr;
  }
}

/* media frame w/ spec caption */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.04);
  transition: transform 1.6s var(--ease-out);
}

.media-frame:hover img,
.media-frame:hover video {
  transform: scale(1);
}

.media-frame figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  background: linear-gradient(transparent, rgba(10, 11, 13, 0.85));
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.media-frame figcaption b {
  color: var(--wire);
  font-weight: 500;
}

/* facts */
.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 2rem;
}

.fact .fact-value {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 118;
  font-weight: 560;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.08;
}

.fact .fact-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 0.45rem;
  line-height: 1.7;
}

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

/* ---------- panel schedule (capabilities) ---------- */
.panel-board {
  margin-top: clamp(2.2rem, 5vh, 3.6rem);
  border: 1px solid var(--line-dark);
  background: linear-gradient(180deg, var(--carbon) 0%, var(--void) 100%);
}

.panel-plate {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding: 1.1rem clamp(1rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

.panel-plate b {
  color: var(--bone);
  font-weight: 500;
}

.panel-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.circuit {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: clamp(1.2rem, 2.6vh, 1.8rem) clamp(1rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  transition: background 0.35s;
}

.circuit:nth-child(odd) {
  border-right: 1px solid var(--line-dark);
}

.circuit:hover {
  background: rgba(255, 58, 44, 0.04);
}

.circuit .ckt-no {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--steel);
  padding-top: 0.35rem;
}

/* breaker handle */
.breaker {
  width: 22px;
  height: 34px;
  border: 1px solid #3a3e45;
  background: #1b1e23;
  position: relative;
  flex: none;
  margin-top: 0.1rem;
}

.breaker::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 17px;
  height: 9px;
  background: #565b63;
  transition: top 0.25s var(--ease-out), background 0.25s;
}

.stage.is-live .circuit .breaker::after {
  top: 5px;
  background: var(--wire);
  box-shadow: 0 0 8px var(--wire-glow);
}

.circuit h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 116;
  font-weight: 560;
  text-transform: uppercase;
  font-size: clamp(0.98rem, 1.5vw, 1.2rem);
  letter-spacing: 0.04em;
}

.circuit h3 small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--copper-bright);
  margin-top: 0.3rem;
}

.circuit p {
  grid-column: 3;
  color: var(--steel);
  font-size: 0.94rem;
  margin-top: 0.55rem;
  max-width: 30em;
}

@media (max-width: 860px) {
  .panel-rows {
    grid-template-columns: 1fr;
  }

  .circuit:nth-child(odd) {
    border-right: 0;
  }
}

/* stagger breaker flips when panel goes live */
.stage.is-live .circuit:nth-child(1) .breaker::after { transition-delay: 0.05s; }
.stage.is-live .circuit:nth-child(2) .breaker::after { transition-delay: 0.15s; }
.stage.is-live .circuit:nth-child(3) .breaker::after { transition-delay: 0.25s; }
.stage.is-live .circuit:nth-child(4) .breaker::after { transition-delay: 0.35s; }
.stage.is-live .circuit:nth-child(5) .breaker::after { transition-delay: 0.45s; }
.stage.is-live .circuit:nth-child(6) .breaker::after { transition-delay: 0.55s; }
.stage.is-live .circuit:nth-child(7) .breaker::after { transition-delay: 0.65s; }
.stage.is-live .circuit:nth-child(8) .breaker::after { transition-delay: 0.75s; }

/* ---------- loads served (work grid) ---------- */
.load-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.2vw, 2rem);
  margin-top: clamp(2.2rem, 5vh, 3.6rem);
}

.load-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
}

.load-card img,
.load-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.3s var(--ease-out);
}

.load-card:hover img,
.load-card:hover video {
  transform: scale(1.1);
}

.load-card .card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 11, 13, 0.82) 100%);
}

.load-card .card-label {
  position: absolute;
  left: 1.4rem;
  bottom: 1.3rem;
  right: 1.4rem;
}

.load-card .card-label .mono-note {
  color: var(--copper-bright);
}

.load-card .card-label h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 118;
  font-weight: 560;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  margin-top: 0.45rem;
}

.load-card .card-label p {
  color: var(--bone-dim);
  font-size: 0.9rem;
  margin-top: 0.4rem;
  max-width: 34em;
}

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }

.load-card.ratio-wide img,
.load-card.ratio-wide video { aspect-ratio: 16 / 9; }
.load-card.ratio-cine img,
.load-card.ratio-cine video { aspect-ratio: 21 / 9; }
.load-card.ratio-tall img,
.load-card.ratio-tall video { aspect-ratio: 3 / 4; }

@media (max-width: 780px) {
  .span-7,
  .span-5,
  .span-6 {
    grid-column: span 12;
  }

  .load-card.ratio-tall img,
  .load-card.ratio-tall video {
    aspect-ratio: 4 / 3;
  }
}

/* craft strip */
.craft-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.2vw, 2rem);
  margin-top: clamp(2.2rem, 5vh, 3.6rem);
}

.craft-strip .media-frame img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (max-width: 780px) {
  .craft-strip {
    grid-template-columns: 1fr;
  }

  .craft-strip .media-frame img {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- hero x-ray building drawing ---------- */
.xray .x-struct {
  stroke: rgba(150, 156, 166, 0.34);
  stroke-width: 1.2;
  fill: none;
}

.xray .x-struct-soft {
  stroke: rgba(150, 156, 166, 0.16);
  stroke-width: 1;
  fill: none;
}

.xray .x-fill {
  fill: rgba(150, 156, 166, 0.05);
  stroke: none;
}

.xray .x-riser {
  stroke: var(--wire);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px var(--wire-glow));
}

.xray .x-branch {
  stroke: var(--wire);
  stroke-width: 1.7;
  opacity: 0.85;
  fill: none;
  stroke-linecap: round;
}

.xray .x-panel {
  fill: var(--carbon-2);
  stroke: var(--wire);
  stroke-width: 1.4;
}

.xray .x-dev {
  fill: #ffb4ad;
}

.xray .x-light {
  fill: #ffe9c9;
}

.xray .x-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  fill: var(--steel);
  text-transform: uppercase;
}

/* hero variant: already energized, ambient flicker */
.hero-xray .x-dev {
  animation: ambient 5.5s infinite;
}

.hero-xray .x-dev:nth-of-type(4n) { animation-delay: 1.2s; }
.hero-xray .x-dev:nth-of-type(4n + 2) { animation-delay: 3.1s; }

@keyframes ambient {
  0%, 92%, 100% { opacity: 1; }
  95% { opacity: 0.35; }
}

/* ============================================================
   SHEET E-101 — the drawing that plots itself
   ============================================================ */
.plan-section {
  position: relative;
  height: 170vh;
  padding: 0;
}

.plan-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 0.9rem) clamp(0.9rem, 3vw, 2.2rem) 1.1rem;
  padding-left: calc(var(--rail) + var(--rail-gap));
  overflow: hidden;
}

.plan-head {
  flex: none;
  max-width: 54rem;
}

.plan-head .statement-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 124;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 3.1vw, 2.5rem);
  line-height: 1.05;
  margin-top: 0.5rem;
  color: var(--bone);
}

.plan-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  padding-top: 0.7rem;
}

.plan-frame svg {
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.plan-cue {
  flex: none;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--steel-dim);
  padding-top: 0.35rem;
}

/* --- sheet surfaces --- */
.plan .p-paper { fill: #0b0e14; }
.plan .p-border { fill: none; stroke: rgba(150, 156, 166, 0.5); stroke-width: 2; }
.plan .p-border-in { fill: none; stroke: rgba(150, 156, 166, 0.26); stroke-width: 1; }
.plan .p-tbline { fill: none; stroke: rgba(150, 156, 166, 0.22); stroke-width: 1; }
.plan .p-inset { fill: rgba(150, 156, 166, 0.03); stroke: rgba(150, 156, 166, 0.22); stroke-width: 1; }

/* --- plan geometry --- */
.plan .p-grid {
  fill: none;
  stroke: rgba(150, 156, 166, 0.24);
  stroke-width: 1;
  stroke-dasharray: 14 5 3 5;
}

.plan .p-bub { fill: none; stroke: rgba(150, 156, 166, 0.5); stroke-width: 1.2; }
.plan .fill-col { fill: rgba(150, 156, 166, 0.38); stroke: none; }
.plan .p-wall { fill: none; stroke: rgba(233, 229, 221, 0.62); stroke-width: 7; }
.plan .p-part { fill: none; stroke: rgba(233, 229, 221, 0.4); stroke-width: 3.4; }
.plan .p-door { fill: none; stroke: rgba(233, 229, 221, 0.3); stroke-width: 1.3; }
.plan .p-dim { fill: none; stroke: rgba(150, 156, 166, 0.42); stroke-width: 1; }

/* --- equipment --- */
.plan .p-eq { fill: rgba(11, 14, 20, 0.9); stroke: var(--copper-bright); stroke-width: 1.7; }
.plan .p-msb { fill: rgba(176, 112, 46, 0.16); }
.plan .p-pn { fill: rgba(11, 14, 20, 0.9); stroke: var(--copper-bright); stroke-width: 1.6; }
.plan .p-brk { fill: none; stroke: var(--copper-bright); stroke-width: 1.5; }

/* --- live conductors --- */
.plan .p-feed {
  fill: none;
  stroke: var(--wire);
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(255, 58, 44, 0.5));
}

.plan .p-riser-bus {
  fill: none;
  stroke: var(--wire);
  stroke-width: 3.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(255, 58, 44, 0.45));
}

.plan .p-tap { fill: none; stroke: var(--wire); stroke-width: 1.7; opacity: 0.9; }
.plan .p-br { fill: none; stroke: var(--wire); stroke-width: 1.5; opacity: 0.88; stroke-linecap: round; }
.plan .p-br.hr { stroke-width: 1.8; opacity: 1; }
.plan .p-floor { fill: none; stroke: rgba(150, 156, 166, 0.2); stroke-width: 1; stroke-dasharray: 8 6; }
.plan .p-floor.lvl { stroke: rgba(233, 229, 221, 0.4); }

/* --- devices & luminaires --- */
.plan .dev-g use { stroke: rgba(233, 229, 221, 0.72); stroke-width: 1.5; fill: none; }
.plan .dev-g .fill-cur { fill: rgba(233, 229, 221, 0.72); }
.plan .fx-g use { stroke: rgba(233, 229, 221, 0.5); stroke-width: 1.4; fill: none; }
.plan .fx-g .fill-cur { fill: rgba(233, 229, 221, 0.5); }

.plan .fx-g.lit use {
  stroke: #ffd9a0;
  filter: drop-shadow(0 0 5px rgba(255, 200, 130, 0.55));
}

.plan .fx-g.lit .fill-cur { fill: #ffd9a0; }

.plan .leg use { stroke: rgba(233, 229, 221, 0.62); stroke-width: 1.4; fill: none; }
.plan .leg .fill-cur { fill: rgba(233, 229, 221, 0.62); }

/* --- sheet typography --- */
.plan text {
  font-family: var(--font-mono);
  fill: var(--steel);
  text-anchor: middle;
}

.plan .t-l { text-anchor: start; }

.plan .t-firm {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-weight: 620;
  font-size: 19px;
  fill: var(--bone);
  text-anchor: start;
  letter-spacing: 0.02em;
}

.plan .t-tb { font-size: 10.5px; fill: var(--steel); text-anchor: start; letter-spacing: 0.06em; }
.plan .t-tbb { font-size: 11px; fill: var(--bone-dim); text-anchor: start; letter-spacing: 0.05em; font-weight: 500; }
.plan .t-lbl { font-size: 9px; fill: var(--wire); text-anchor: start; letter-spacing: 0.2em; }
.plan .t-sheet-t { font-family: var(--font-display); font-variation-settings: "wdth" 112; font-weight: 600; font-size: 21px; fill: var(--bone); text-anchor: start; }
.plan .t-sheet-n { font-family: var(--font-display); font-variation-settings: "wdth" 118; font-weight: 700; font-size: 54px; fill: var(--bone); text-anchor: start; }
.plan .t-plot { font-size: 11px; fill: var(--copper-bright); text-anchor: start; letter-spacing: 0.14em; }
.plan .t-plot-n { font-size: 12px; fill: var(--bone); text-anchor: end; letter-spacing: 0.05em; }
.plan .p-bar-bg { fill: rgba(150, 156, 166, 0.16); }
.plan .p-bar { fill: var(--wire); }

.plan .t-bub { font-size: 12px; fill: var(--bone-dim); letter-spacing: 0.04em; }
.plan .t-room { font-size: 11.5px; fill: rgba(233, 229, 221, 0.62); letter-spacing: 0.2em; }
.plan .t-dim { font-size: 10.5px; fill: var(--steel); letter-spacing: 0.1em; }
.plan .t-eq { font-size: 10px; fill: var(--copper-bright); letter-spacing: 0.1em; }
.plan .t-tag { font-size: 9.5px; fill: rgba(255, 122, 110, 0.95); text-anchor: start; letter-spacing: 0.08em; }
.plan .t-inset-t { font-size: 12px; fill: var(--bone); text-anchor: start; letter-spacing: 0.18em; }
.plan .t-lvl { font-size: 9.5px; fill: var(--steel); text-anchor: start; letter-spacing: 0.16em; }
.plan .t-lvl.lvl { fill: var(--bone-dim); }
.plan .t-pn { font-size: 10.5px; fill: var(--copper-bright); letter-spacing: 0.08em; }
.plan .t-leg { font-size: 10px; fill: var(--bone-dim); text-anchor: start; letter-spacing: 0.1em; }
.plan .t-note { font-size: 10.5px; fill: var(--steel); text-anchor: start; letter-spacing: 0.05em; }
.plan .t-plan-t { font-family: var(--font-display); font-variation-settings: "wdth" 114; font-weight: 600; font-size: 15px; fill: var(--bone); text-anchor: start; letter-spacing: 0.08em; }
.plan .t-sym { font-size: 15px; fill: currentColor; stroke: none; }
.plan .t-sym-sm { font-size: 8px; fill: currentColor; stroke: none; }
.plan .dev-g text { fill: rgba(233, 229, 221, 0.85); stroke: none; }
.plan .leg text.t-sym,
.plan .leg text.t-sym-sm { fill: rgba(233, 229, 221, 0.75); stroke: none; }

.plan .p-stamp { fill: rgba(255, 58, 44, 0.07); stroke: var(--wire); stroke-width: 1.6; }
.plan .t-stamp { font-size: 13px; fill: var(--wire); letter-spacing: 0.14em; font-weight: 500; }

@media (max-width: 900px) {
  .plan-section { height: 220vh; }
  .plan-pin { padding-left: calc(var(--rail) + 1rem); }
}

/* ---------- reviews ---------- */
.testimonial-hero {
  max-width: 50rem;
}

.testimonial-hero blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  font-weight: 320;
  font-style: italic;
  line-height: 1.5;
  margin-top: 2rem;
}

.testimonial-hero blockquote::before {
  content: "“";
  display: block;
  font-size: 3em;
  line-height: 0.55;
  color: var(--wire);
  font-style: normal;
  margin-bottom: 1.2rem;
}

.testimonial-hero cite {
  display: block;
  margin-top: 1.8rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper-bright);
}

.rating-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.6rem;
  margin-top: clamp(2rem, 5vh, 3rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
}

.rating-strip a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color 0.25s;
}

.rating-strip a:hover {
  color: var(--wire);
}

.rating-strip .stars {
  color: var(--copper-bright);
  letter-spacing: 0.1em;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.8rem);
  margin-top: clamp(2rem, 5vh, 3rem);
}

.review-card {
  border: 1px solid var(--line-dark);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: linear-gradient(180deg, rgba(26, 29, 34, 0.55), transparent);
}

.review-card .stars {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--copper-bright);
}

.review-card blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 330;
  font-size: 0.99rem;
  line-height: 1.6;
  color: var(--bone-dim);
  flex: 1;
}

.review-card cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.review-card cite a {
  color: var(--copper-bright);
}

.review-card cite a:hover {
  color: var(--wire);
}

/* ---------- about ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.8rem);
  margin-top: clamp(2.2rem, 5vh, 3.4rem);
}

.principle {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.4rem;
}

.principle h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 116;
  font-weight: 560;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.principle p {
  margin-top: 0.85rem;
  color: var(--steel);
  font-size: 0.95rem;
}

@media (max-width: 780px) {
  .principles {
    grid-template-columns: 1fr;
  }
}

/* license plate card */
.license-plate {
  border: 1px solid var(--line-dark);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  background: linear-gradient(180deg, rgba(26, 29, 34, 0.55), transparent);
}

.license-plate b {
  color: var(--bone);
  font-weight: 500;
}

.license-plate .lp-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px dashed rgba(233, 229, 221, 0.1);
  padding-bottom: 0.55rem;
}

.license-plate .lp-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  margin-top: clamp(2.2rem, 5vh, 3.6rem);
}

.contact-channels {
  display: grid;
  gap: 1.8rem;
}

.channel {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.3rem;
}

.channel .mono-note {
  color: var(--wire);
}

.channel a.big,
.channel p.big {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-weight: 530;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.3;
  margin-top: 0.55rem;
  overflow-wrap: anywhere;
}

.channel a.big:hover {
  color: var(--wire);
}

.channel .sub {
  color: var(--steel);
  font-size: 0.93rem;
  margin-top: 0.45rem;
}

.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.8rem;
  border: 1px solid var(--line-dark);
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  background: linear-gradient(180deg, rgba(26, 29, 34, 0.55), transparent);
}

.form-head {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.form-head b {
  color: var(--wire);
  font-weight: 500;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--bone);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(233, 229, 221, 0.22);
  padding: 0.65rem 0.1rem;
  border-radius: 0;
  transition: border-color 0.3s;
  width: 100%;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ff3a2c' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.3rem center;
}

.field select option {
  background: var(--carbon);
  color: var(--bone);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--wire);
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.form-hint {
  font-size: 0.86rem;
  color: var(--steel);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .inquiry-form {
    grid-template-columns: 1fr;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid rgba(255, 58, 44, 0.65);
  color: var(--bone);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn:hover {
  background: var(--wire);
  border-color: var(--wire);
  color: #fff;
}

.btn-solid {
  background: var(--wire);
  border-color: var(--wire);
  color: #fff;
}

.btn-solid:hover {
  background: #ff574b;
}

.btn-ghost {
  border-color: var(--line-dark);
  color: var(--bone-dim);
}

.btn-ghost:hover {
  background: transparent;
  border-color: var(--copper-bright);
  color: var(--copper-bright);
}

.cta-row {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-col li.sp {
  margin-top: 0.8rem;
}

/* ---------- reveal engine ---------- */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-dark);
  padding: clamp(3rem, 8vh, 5rem) var(--pad-x) 2.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 80rem;
  margin: 0 auto;
}

.footer-brand p {
  margin-top: 1.1rem;
  color: var(--steel);
  font-size: 0.92rem;
  max-width: 24em;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--wire);
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.footer-col a,
.footer-col li {
  color: var(--bone-dim);
  font-size: 0.91rem;
}

.footer-col a:hover {
  color: var(--wire);
}

.footer-legal {
  max-width: 80rem;
  margin: 3.2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-title .line > span,
  .hero-sub,
  .hero-ctas,
  .hero-hud,
  .scroll-cue {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .scroll-cue::after,
  .hero-xray .x-dev {
    animation: none;
  }

  .media-frame img,
  .media-frame video,
  .load-card img {
    transform: none;
    transition: none;
  }

  .stage-head::before {
    transform: scaleX(1);
    transition: none;
  }

  .breaker::after {
    transition: none;
  }

  .xray .x-dev,
  .xray .x-light {
    opacity: 1;
    animation: none;
  }

  .stage .stage-title,
  .stage.is-live .stage-title {
    color: var(--bone);
    text-shadow: none;
    animation: none;
    transition: none;
  }

  .stage .stage-title .accent-red {
    color: var(--wire);
    transition: none;
  }

  /* the sheet is presented complete, no plotting animation */
  .plan-section {
    height: auto;
  }

  .plan-pin {
    position: relative;
    height: auto;
    min-height: 60svh;
    padding-bottom: 3rem;
  }

  .plan-frame svg {
    height: auto;
  }

  .plan .fx-g use {
    stroke: #ffd9a0;
  }

  .stage .stage-head .stage-copy {
    color: var(--bone-dim);
    transition: none;
  }
}

/* long email address must not break mid-word in the narrow channel column */
.channel a.big.is-email {
  font-size: clamp(0.92rem, 1.45vw, 1.2rem);
  overflow-wrap: anywhere;
  letter-spacing: 0.01em;
}

.plan-cue {
  transition: opacity 0.5s var(--ease-out);
}

/* ============================================================
   PANEL MPE-01 — capabilities drawn as a real sub-panel.
   Built as SVG so the layout is identical at every width:
   text down both sides, breakers stacked either side of the bus.
   ============================================================ */
.subpanel {
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 68rem;
}

.sp-svg {
  width: 100%;
  height: auto;
}

.sp-svg text {
  font-family: var(--font-mono);
  text-anchor: start;
}

.sp-svg .sp-end { text-anchor: end; }

.sp-can { fill: #0e1116; stroke: rgba(150, 156, 166, 0.34); stroke-width: 1.6; }
.sp-strip { fill: rgba(150, 156, 166, 0.06); }
.sp-rule { stroke: rgba(150, 156, 166, 0.26); stroke-width: 1; fill: none; }

.sp-h { font-size: 12px; fill: var(--steel); letter-spacing: 0.16em; }
.sp-hb { fill: var(--bone); font-weight: 500; }
.sp-f { font-size: 11px; fill: var(--steel-dim); letter-spacing: 0.16em; }
.sp-live { fill: #4a4e55; transition: fill 0.9s var(--ease-out); }
.stage.is-live .sp-live { fill: var(--wire); }

.sp-bus {
  stroke: rgba(176, 112, 46, 0.4);
  stroke-width: 3;
  fill: none;
  transition: stroke 0.9s var(--ease-out);
}

.stage.is-live .sp-bus {
  stroke: rgba(255, 58, 44, 0.75);
}

.sp-numbg { fill: #0e1116; }
.t-cn { font-size: 13px; fill: var(--steel); text-anchor: middle; letter-spacing: 0.06em; }

/* circuit text sits dark until the wire energizes the section */
.t-ct {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-weight: 560;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  fill: #52565e;
  transition: fill 0.9s var(--ease-out);
}

.t-cs {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  fill: #3f434a;
  transition: fill 0.9s var(--ease-out);
}

.stage.is-live .t-ct { fill: var(--bone); }
.stage.is-live .t-cs { fill: var(--copper-bright); }

/* breakers: toggles throw toward the bus the moment the panel energizes */
.brk-body {
  fill: #14171c;
  stroke: #363b43;
  stroke-width: 1.6;
  transition: stroke 0.6s var(--ease-out);
}

.stage.is-live .brk-body { stroke: rgba(255, 58, 44, 0.5); }

.brk-t {
  fill: #464b53;
  transition: transform 0.42s var(--ease-out), fill 0.42s var(--ease-out);
}

.stage.is-live .brk-t {
  fill: var(--wire);
  filter: drop-shadow(0 0 6px rgba(255, 58, 44, 0.65));
}

.stage.is-live .brk-t.l { transform: translateX(48px); }
.stage.is-live .brk-t.r { transform: translateX(-48px); }

/* the whole panel flashes with the headline */
.stage.is-live .sp-svg { animation: ignite 0.75s linear; }

/* ---------- circular field portrait ---------- */
.portrait {
  position: relative;
  max-width: 26rem;
  margin-inline: auto;
}

.portrait img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 1px solid rgba(233, 229, 221, 0.16);
}

.portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

.portrait figcaption b {
  color: var(--wire);
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .brk-t,
  .stage.is-live .brk-t.l,
  .stage.is-live .brk-t.r {
    transition: none;
  }

  .stage.is-live .sp-svg { animation: none; }

  .t-ct { fill: var(--bone); }
  .t-cs { fill: var(--copper-bright); }
  .sp-live { fill: var(--wire); }
  .sp-bus { stroke: rgba(255, 58, 44, 0.75); }
  .brk-body { stroke: rgba(255, 58, 44, 0.5); }
  .brk-t { fill: var(--wire); }
  .brk-t.l { transform: translateX(48px); }
  .brk-t.r { transform: translateX(-48px); }
}

/* on phones the panel reaches toward both edges so the type stays legible */
@media (max-width: 700px) {
  .subpanel {
    margin-left: calc(-1 * var(--rail-gap));
    margin-right: calc(-1 * var(--pad-x));
  }
}

/* the portrait rises into the open space beside the headline */
@media (min-width: 900px) {
  .stage-cols.tight .portrait { margin-top: -7rem; }
}

@media (min-width: 1200px) {
  .stage-cols.tight .portrait { margin-top: -12rem; }
}
