/*==================================================================
  ABOUT PAGE — app/about/page.js + component/aboutPage/*
  Prefix: ab-   ·   palette, utilities and motifs from theme.css / motifs.css
  Story of the chapter told with electrical parts: a rating plate,
  a two-way switch, a power line that charges, a PCB, energy meters
  and a row of circuit breakers.
==================================================================*/

/* ---------- scaffolding ---------- */
.ab-page { position: relative; }

.ab-sec {
  position: relative;
  padding-top: clamp(96px, 10vw, 140px);
}

/* accent per society: green = PES, coral = PELS, mix = joint chapter */
.ab-tone--green {
  --acc: var(--green);
  --acc-2: var(--green-2);
  --acc-3: var(--green-3);
  --acc-rgb: 76, 195, 138;
  --acc-ink: var(--green-ink);
  --glow-rgb: 76, 195, 138;
}

.ab-tone--red {
  --acc: var(--red);
  --acc-2: var(--red-2);
  --acc-3: #f6b0b3;
  --acc-rgb: 229, 99, 106;
  --acc-ink: var(--red-ink);
  --glow-rgb: 229, 99, 106;
}

.ab-tone--mix {
  --acc: var(--green);
  --acc-2: var(--green-3);
  --acc-3: var(--green-3);
  --acc-rgb: 76, 195, 138;
  --acc-ink: var(--green-ink);
  --glow-rgb: 76, 195, 138;
}

.ab-page .tf__heading_area h2 { text-wrap: balance; }

.ab-page .pp-section__head--center > p {
  max-width: 580px;
  margin: 18px auto 0 !important;
  font-size: 17px !important;
  color: var(--text-2);
}

/* looping decorations pause while their section is off screen: see the end of this file */

/* ================================================================
   WHO WE ARE + RATING PLATE
================================================================ */
.ab-intro { padding-top: clamp(80px, 8vw, 120px); }

.ab-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.ab-intro .tf__heading_area h2 { max-width: 640px; }

.ab-intro__lead {
  max-width: 620px;
  margin-top: 26px !important;
  font-size: clamp(18px, 1.5vw, 20px) !important;
  line-height: 1.65 !important;
  color: var(--text);
}

.ab-intro__why {
  max-width: 600px;
  margin-top: 16px !important;
  color: var(--text-2);
}

.ab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px !important;
}

.ab-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 16px 6px 7px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}

.ab-chip i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 13px;
  color: var(--green-2);
  background: var(--green-soft);
}

.ab-chip:nth-child(even) i {
  color: var(--red-2);
  background: var(--red-soft);
}

/* the plate */
.ab-intro__plate { position: relative; }

.ab-intro__plate::before {
  content: "";
  position: absolute;
  inset: 10% -4% -6% 6%;
  z-index: -1;
  border-radius: 40px;
  background:
    radial-gradient(closest-side at 30% 30%, rgba(76, 195, 138, 0.22), transparent),
    radial-gradient(closest-side at 80% 85%, rgba(229, 99, 106, 0.18), transparent);
  filter: blur(30px);
}

.ab-plate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 30px 34px 30px;
  border-radius: 24px;
  background: linear-gradient(160deg, #1d2623 0%, #131a18 48%, #1a211f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 50px 90px -50px rgba(0, 0, 0, 0.95);
  transform: rotate(-1deg);
  transition: transform 1s var(--ease-soft);
}

.ab-plate:hover { transform: rotate(0deg) translateY(-4px); }

/* brushed metal */
.ab-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px);
}

/* a slow glint */
.ab-plate::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.06) 50%, transparent 58%);
  transform: translateX(-70%);
  animation: ab-glint 11s var(--ease) infinite;
}

@keyframes ab-glint {
  0%, 55% { transform: translateX(-70%); }
  100% { transform: translateX(70%); }
}

.ab-plate__rivet {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5d6964 0%, #2b3330 55%, #161b19 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 1px rgba(0, 0, 0, 0.6);
}

.ab-plate__rivet::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.6);
  transform: rotate(-35deg);
}

.ab-plate__rivet.is-tl { top: 14px; left: 14px; }
.ab-plate__rivet.is-tr { top: 14px; right: 14px; }
.ab-plate__rivet.is-bl { bottom: 14px; left: 14px; }
.ab-plate__rivet.is-br { bottom: 14px; right: 14px; }

.ab-plate__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 4px 0;
}

.ab-plate__logo {
  width: auto !important;
  height: 46px !important;
  object-fit: contain !important;
  filter: var(--logoGlow);
}

.ab-plate__led {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-2);
}

.ab-plate__led::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(76, 195, 138, 0.18), 0 0 12px rgba(76, 195, 138, 0.9);
  animation: ab-blink 2.8s ease-in-out infinite;
}

@keyframes ab-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.ab-plate__title {
  margin: 22px 0 0;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.ab-plate__title span {
  display: block;
  margin-top: 6px;
  font-family: var(--paraFont);
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5 !important;
  text-transform: uppercase;
  color: var(--text-2);
}

.ab-plate__specs {
  margin: 20px 0 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.ab-plate__specs > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.ab-plate__specs dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.ab-plate__specs dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.ab-plate__warn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0 !important;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(229, 99, 106, 0.45);
  background: rgba(229, 99, 106, 0.06);
  font-size: 12.5px !important;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-2);
}

.ab-plate__warn svg { flex: none; }

.ab-intro__wave {
  margin-top: clamp(56px, 7vw, 96px);
  opacity: 0.5;
  pointer-events: none;
}

/* ================================================================
   TWO SOCIETIES — the two-way switch
================================================================ */
.ab-soc {
  isolation: isolate;
  padding-top: clamp(56px, 6vw, 90px);
}

.ab-soc__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ab-soc__glow span {
  position: absolute;
  left: 50%;
  top: 60%;
  width: min(1200px, 130vw);
  height: 820px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1.2s var(--ease-soft);
}

.ab-soc__glow .is-green { background: radial-gradient(closest-side, rgba(76, 195, 138, 0.13), transparent); }
.ab-soc__glow .is-red { background: radial-gradient(closest-side, rgba(229, 99, 106, 0.12), transparent); }
.ab-soc.is-green .ab-soc__glow .is-green,
.ab-soc.is-red .ab-soc__glow .is-red { opacity: 1; }

.ab-soc .pp-section__head { margin-bottom: 36px; }

.ab-switch-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 44px;
}

.ab-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 460px);
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #090d0c, #141c19);
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 3px 10px rgba(0, 0, 0, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 24px 50px -30px rgba(0, 0, 0, 0.9);
}

/* end stops, like screws on a switch plate */
.ab-switch::before,
.ab-switch::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #2b3431;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ab-switch::before { left: -18px; }
.ab-switch::after { right: -18px; }

.ab-switch__thumb {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc(50% - 6px);
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--green-3), var(--green) 60%, #3aa877);
  box-shadow:
    0 12px 30px -12px rgba(76, 195, 138, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.7s var(--ease-soft), box-shadow 0.5s var(--ease);
}

/* coral face fades in when PELS is selected */
.ab-switch__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #f6b0b3, var(--red) 60%, #d24f57);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.ab-switch[data-active="1"] .ab-switch__thumb {
  transform: translateX(100%);
  box-shadow:
    0 12px 30px -12px rgba(229, 99, 106, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.ab-switch[data-active="1"] .ab-switch__thumb::after { opacity: 1; }

/* grip ridges on the lever */
.ab-switch__grip {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 16px;
  width: 9px;
  height: 18px;
  margin-top: -9px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 2px, transparent 2px 4px);
  transition: right 0s 0.35s, left 0s 0.35s;
}

.ab-switch[data-active="1"] .ab-switch__grip { right: auto; left: 16px; }

.ab-switch__tab {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 66px;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.4s var(--ease);
}

.ab-switch__tab:hover { color: var(--text); }

.ab-switch__tab[aria-selected="true"] { transition-delay: 0.18s; }
.ab-switch__tab[aria-selected="true"].is-green { color: var(--green-ink); }
.ab-switch__tab[aria-selected="true"].is-red { color: var(--red-ink); }

.ab-switch__tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.ab-switch__short {
  font-family: var(--headingFont);
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.01em;
}

.ab-switch__long {
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* a little arc when the switch flips */
.ab-switch__spark {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ab-switch__spark i {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.75);
  opacity: 0;
  animation: ab-spark 0.75s var(--ease-soft) 0.12s;
}

.ab-switch__spark i:nth-child(odd) { width: 4px; height: 4px; left: -2px; top: -2px; }

@keyframes ab-spark {
  0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1); }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(48px) scale(0.3); }
}

/* panels */
.ab-soc__stage { display: grid; }

/* both panels sit in the same cell: the stage is as tall as the taller panel,
   so flipping the switch never moves the sections below */
.ab-soc__stage > .ab-panel { grid-area: 1 / 1; }

.ab-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip; /* not a scroll container: lets the logo column stick */
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: 36px;
  background:
    radial-gradient(640px 420px at 20% 35%, rgba(var(--acc-rgb), 0.14), transparent 65%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(var(--acc-rgb), 0.2);
  box-shadow: 0 60px 120px -70px rgba(var(--acc-rgb), 0.45);
  align-items: start;
  align-content: center;
  /* leaving: fade out quickly, then hide */
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease-soft), visibility 0s linear 0.35s;
}

.ab-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.9s var(--ease-soft) 0.1s, transform 0.9s var(--ease-soft) 0.1s, visibility 0s;
}

/* the two halves of the panel arrive one after the other */
.ab-panel__visual,
.ab-panel__body {
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.ab-panel__visual { transform: translateX(-18px); }
.ab-panel__body { transform: translateY(14px); }

.ab-panel.is-active .ab-panel__visual,
.ab-panel.is-active .ab-panel__body {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease-soft) 0.15s, transform 1s var(--ease-soft) 0.15s;
}

.ab-panel.is-active .ab-panel__body { transition-delay: 0.25s; }

/* nothing loops inside the hidden panel */
.ab-panel:not(.is-active) *,
.ab-panel:not(.is-active) *::before,
.ab-panel:not(.is-active) *::after { animation-play-state: paused !important; }

/* the logo stays in view while reading a long panel */
@media (min-width: 992px) {
  .ab-panel__visual {
    position: sticky;
    top: 120px;
  }
}

.ab-panel__circuit {
  z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 22% 45%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 80% at 22% 45%, #000 10%, transparent 75%);
}

.ab-panel__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.ab-panel__orbit { width: min(100%, 360px); }

.ab-panel__orbit .pp-orbit__path { border-color: rgba(var(--acc-rgb), 0.24); }

.ab-panel__disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(var(--acc-rgb), 0.45), rgba(var(--acc-rgb), 0.1) 58%, rgba(10, 14, 13, 0.92) 76%);
  box-shadow:
    0 0 0 1px rgba(var(--acc-rgb), 0.42),
    0 0 0 12px rgba(var(--acc-rgb), 0.05);
}

/* breathing halo (opacity only) */
.ab-panel__disc::after {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: -1;
  border-radius: 50%;
  box-shadow: 0 0 70px 8px rgba(var(--acc-rgb), 0.5);
  opacity: 0.45;
  animation: ab-breathe 6s ease-in-out infinite;
}

@keyframes ab-breathe {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

.ab-panel__disc img {
  width: 64% !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.ab-panel__fields {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 400px;
}

.ab-panel__fields li {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  background: rgba(var(--acc-rgb), 0.08);
  border: 1px solid rgba(var(--acc-rgb), 0.24);
}

.ab-panel__kicker {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc-2);
}

.ab-panel__title {
  margin-top: 12px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  color: #fff;
}

.ab-panel__since {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px !important;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
}

.ab-panel__since i { font-size: 12px; color: var(--acc); }

.ab-panel__lead {
  margin-top: 18px !important;
  font-size: 16.5px !important;
  line-height: 1.7 !important;
  color: var(--text-2);
}

/* accordion */
.ab-acc {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.ab-acc__item {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  transition: border-color 0.45s var(--ease), background 0.45s var(--ease);
}

.ab-acc__item.is-open {
  background: rgba(var(--acc-rgb), 0.06);
  border-color: rgba(var(--acc-rgb), 0.3);
}

.ab-acc__head { margin: 0; font-size: inherit; }

.ab-acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 11px 12px 11px 20px;
  border-radius: 18px;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.ab-acc__btn:focus-visible {
  outline: 2px solid var(--acc-2);
  outline-offset: 2px;
}

.ab-acc__q {
  font-family: var(--paraFont);
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.ab-acc__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.6s var(--ease-soft);
}

.ab-acc__icon::before,
.ab-acc__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.5s var(--ease-soft), background 0.3s var(--ease);
}

.ab-acc__icon::after { transform: rotate(90deg); }

.ab-acc__btn:hover .ab-acc__icon { border-color: rgba(var(--acc-rgb), 0.5); }

.ab-acc__item.is-open .ab-acc__icon {
  background: var(--acc);
  border-color: var(--acc);
  transform: rotate(180deg);
}

.ab-acc__item.is-open .ab-acc__icon::before,
.ab-acc__item.is-open .ab-acc__icon::after { background: var(--acc-ink); }

.ab-acc__item.is-open .ab-acc__icon::after { transform: rotate(0deg); }

.ab-acc__body {
  padding: 0 20px 18px;
  animation: ab-fade-up 0.5s var(--ease-soft);
}

.ab-acc__body p {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--text-2);
}

.ab-acc__body p + p { margin-top: 10px !important; }

@keyframes ab-fade-up {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.ab-goals { margin-top: 26px; }

.ab-goals__title {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.ab-goals ul { margin-top: 8px !important; }

.ab-goals li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.ab-goals li i {
  flex: none;
  margin-top: 6px;
  font-size: 12px;
  color: var(--acc);
}

.ab-goals li span {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--text-2);
}

/* ================================================================
   OUR STORY — a power line that charges as you scroll
================================================================ */
.ab-story .pp-section__head { margin-bottom: 28px; }

.ab-tl-wrap { position: relative; }

.ab-tl-wrap .ab-tl__line {
  left: 50%;
  width: 2px;
  margin-left: -1px;
}

.ab-tl { position: relative; z-index: 1; }

/* era labels sit on the line */
.ab-era {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 0 22px;
  text-align: center;
}

.ab-era__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 18px 7px 7px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 8px var(--bg);
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--text);
}

.ab-era__years {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  color: var(--green-ink);
  background: linear-gradient(135deg, var(--green-3), var(--green));
}

.ab-era.is-joint .ab-era__years { background: var(--grad-brand); }

.ab-era__legend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  width: 100%;
}

.ab-era__legend span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}

.ab-era__legend .is-pes { grid-column: 1; justify-self: end; }
.ab-era__legend .is-pels { grid-column: 3; justify-self: start; }

.ab-era__legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.ab-era__legend .is-pels::before {
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

/* milestones */
.ab-mile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: center;
  padding: 14px 0;
}

.ab-mile--left { grid-template-areas: "card node date"; }
.ab-mile--right { grid-template-areas: "date node card"; }

.ab-mile__card { grid-area: card; }
.ab-mile__node { grid-area: node; }
.ab-mile__date { grid-area: date; }

.ab-mile--left .ab-mile__card { justify-self: end; }
.ab-mile--right .ab-mile__card { justify-self: start; }
.ab-mile--left .ab-mile__date { justify-self: start; text-align: left; }
.ab-mile--right .ab-mile__date { justify-self: end; text-align: right; }

.ab-mile__node {
  position: relative;
  justify-self: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(232, 238, 235, 0.24);
  box-shadow: 0 0 0 6px var(--bg);
  transition: background 0.6s var(--ease), border-color 0.6s var(--ease), box-shadow 0.6s var(--ease),
    transform 0.8s var(--ease-soft);
}

/* short trace from the node to its card */
.ab-mile__node::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 32px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: rgba(232, 238, 235, 0.1);
  transition: background 0.6s var(--ease);
}

.ab-mile--left .ab-mile__node::before { right: calc(100% + 8px); }
.ab-mile--right .ab-mile__node::before { left: calc(100% + 8px); }

.ab-mile.is-lit .ab-mile__node {
  background: var(--acc);
  border-color: var(--acc-3);
  transform: scale(1.12);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 10px rgba(var(--acc-rgb), 0.16), 0 0 26px 4px rgba(var(--acc-rgb), 0.7);
}

.ab-tone--mix.ab-mile.is-lit .ab-mile__node { background: var(--grad-brand); border-color: #fff; }

.ab-mile--left.is-lit .ab-mile__node::before { background: linear-gradient(90deg, rgba(var(--acc-rgb), 0.15), rgba(var(--acc-rgb), 0.85)); }
.ab-mile--right.is-lit .ab-mile__node::before { background: linear-gradient(270deg, rgba(var(--acc-rgb), 0.15), rgba(var(--acc-rgb), 0.85)); }

/* one ripple when the current arrives */
.ab-mile.is-lit .ab-mile__node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(var(--acc-rgb), 0.7);
  opacity: 0;
  animation: ab-ripple 1.3s var(--ease-soft);
}

@keyframes ab-ripple {
  from { opacity: 1; transform: scale(0.6); }
  to { opacity: 0; transform: scale(2.4); }
}

/* big year on the other side of the line */
.ab-mile__date { padding: 0 6px; }

.ab-mile__date time { display: inline-block; }

.ab-mile__month {
  display: block;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em;
  line-height: 1.4 !important;
  text-transform: uppercase;
  color: var(--text-3);
}

.ab-mile__year {
  position: relative;
  display: block;
  margin-top: 4px;
  font-family: var(--headingFont);
  font-size: clamp(48px, 5.2vw, 78px) !important;
  font-weight: 800 !important;
  line-height: 0.95 !important;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}

.ab-mile__year-base,
.ab-mile__year-glow {
  display: block;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

.ab-mile__year-base {
  color: var(--text-3);
  transition: opacity 0.9s var(--ease);
}

.ab-mile__year-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--acc-3), var(--acc));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.ab-tone--mix .ab-mile__year-glow { background-image: var(--grad-brand); }

.ab-mile.is-lit .ab-mile__year-base { opacity: 0; }
.ab-mile.is-lit .ab-mile__year-glow { opacity: 1; }

/* cards */
.ab-mile__card {
  position: relative;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -45px rgba(0, 0, 0, 0.9);
  transition: border-color 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.ab-mile.is-lit .ab-mile__card {
  border-color: rgba(var(--acc-rgb), 0.32);
  box-shadow: 0 34px 70px -46px rgba(var(--acc-rgb), 0.6);
}

.ab-mile.has-media .ab-mile__card {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
}

.ab-mile--right.has-media .ab-mile__card { grid-template-columns: minmax(0, 1fr) 172px; }
.ab-mile--right .ab-mile__media { order: 2; }

.ab-mile__media {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  background: var(--surface);
}

.ab-mile__media img {
  position: absolute;
  inset: 0;
  transition: transform 1.4s var(--ease-soft);
}

.ab-mile__card:hover .ab-mile__media img { transform: scale(1.06); }

.ab-mile__media.is-doc {
  display: grid;
  place-items: center;
  padding: 18px 16px;
  background:
    radial-gradient(circle at 50% 45%, rgba(var(--acc-rgb), 0.24), transparent 70%),
    #121a17;
}

.ab-mile__media.is-doc img {
  position: relative;
  inset: auto;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 4px;
  transform: rotate(-4deg);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.9s var(--ease-soft);
}

.ab-mile--right .ab-mile__media.is-doc img { transform: rotate(4deg); }

.ab-mile__card:hover .ab-mile__media.is-doc img { transform: rotate(0deg) scale(1.05); }

.ab-mile__body { padding: 22px 24px; }

.ab-mile__tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em;
  line-height: 1.4 !important;
  text-transform: uppercase;
  color: var(--acc-2);
}

.ab-mile__tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
}

.ab-tone--mix .ab-mile__tag::before { background: var(--grad-brand); box-shadow: 0 0 8px rgba(155, 231, 193, 0.8); }

.ab-mile__mark {
  width: auto !important;
  height: 24px !important;
  object-fit: contain !important;
}

.ab-mile__tag:has(.ab-mile__mark)::before { display: none; }

.ab-mile__title {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.ab-mile__text {
  margin-top: 8px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--text-2);
}

.ab-mile__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}

.ab-mile__stats div {
  display: flex;
  flex-direction: column-reverse;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(var(--acc-rgb), 0.08);
  border: 1px solid rgba(var(--acc-rgb), 0.22);
}

.ab-mile__stats dt {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

.ab-mile__stats dd {
  margin: 0;
  font-family: var(--headingFont);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.ab-mile__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.ab-mile__link i {
  font-size: 12px;
  color: var(--acc-2);
  transition: transform 0.3s var(--ease);
}

.ab-mile__link:hover { color: var(--acc-2); }
.ab-mile__link:hover i { transform: translate(2px, -2px); }

.ab-mile__link:focus-visible {
  outline: 2px solid var(--acc-2);
  outline-offset: 2px;
  border-radius: 6px;
}

/* the merger: two currents become one */
.ab-merge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 0 10px;
}

.ab-merge__node {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 26px;
  margin-bottom: -13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(232, 238, 235, 0.28);
  box-shadow: 0 0 0 6px var(--bg);
  transition: background 0.7s var(--ease), border-color 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.ab-merge.is-lit .ab-merge__node {
  background: var(--grad-brand);
  border-color: #fff;
  box-shadow: 0 0 0 6px var(--bg), 0 0 34px 8px rgba(155, 231, 193, 0.45);
}

.ab-merge__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 1000px);
  padding: 56px clamp(24px, 5vw, 64px) 0;
  border-radius: 36px;
  text-align: center;
  background:
    radial-gradient(560px 320px at 0% 100%, rgba(76, 195, 138, 0.2), transparent 70%),
    radial-gradient(560px 320px at 100% 100%, rgba(229, 99, 106, 0.18), transparent 70%),
    radial-gradient(500px 240px at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%),
    #0e1412;
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, 0.95);
}

/* gradient edge, green on the left, coral on the right */
.ab-merge__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(76, 195, 138, 0.55), rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.06) 60%, rgba(229, 99, 106, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.ab-merge__kicker {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
}

.ab-merge__title {
  margin-top: 18px;
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
}

.ab-merge__text {
  max-width: 640px;
  margin: 16px auto 0 !important;
  font-size: 17px !important;
  color: var(--text-2);
}

.ab-merge__flow {
  position: relative;
  width: 100%;
  margin-top: 30px;
}

.ab-merge__flow.is-narrow { display: none; }

.ab-merge__flow svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ab-merge__track {
  fill: none;
  stroke: rgba(232, 238, 235, 0.07);
  stroke-width: 8;
  stroke-linecap: round;
}

.ab-merge__wire {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.75;
}

.ab-merge__wire.is-pes { stroke: var(--green); }
.ab-merge__wire.is-pels { stroke: var(--red); }

.ab-merge__wire.is-out {
  stroke-width: 4;
  opacity: 0.2;
  transition: opacity 1s var(--ease);
}

.ab-merge.is-lit .ab-merge__wire.is-out { opacity: 1; }

.ab-merge__current {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 70 1000;
  stroke-dashoffset: 70;
  animation: ab-current 3.4s linear infinite;
}

.ab-merge__current.is-pes { stroke: #c4f3da; filter: drop-shadow(0 0 6px #4cc38a); }
.ab-merge__current.is-pels { stroke: #fbd0d2; filter: drop-shadow(0 0 6px #e5636a); }

.ab-merge__current.is-out {
  stroke: #fff;
  stroke-width: 5;
  stroke-dasharray: 260 1000;
  stroke-dashoffset: 260;
  filter: drop-shadow(0 0 8px #9be7c1);
  opacity: 0;
  animation-duration: 1.7s;
  transition: opacity 0.8s var(--ease);
}

.ab-merge.is-lit .ab-merge__current.is-out { opacity: 1; }

@keyframes ab-current {
  to { stroke-dashoffset: -1000; }
}

.ab-merge__logo {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: -56px 0 0 -56px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(var(--rgb), 0.4), rgba(var(--rgb), 0.08) 60%, #0e1412 74%);
  box-shadow: 0 0 0 1px rgba(var(--rgb), 0.45), 0 0 44px -4px rgba(var(--rgb), 0.6);
}

.ab-merge__logo.is-pes { --rgb: 76, 195, 138; }
.ab-merge__logo.is-pels { --rgb: 229, 99, 106; }

.ab-merge__logo img {
  width: 60% !important;
  height: 60% !important;
  object-fit: contain !important;
}

.ab-merge__junction {
  position: absolute;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(155, 231, 193, 0.18), 0 0 20px 4px rgba(155, 231, 193, 0.6);
  opacity: 0.35;
  transition: opacity 0.8s var(--ease);
}

.ab-merge.is-lit .ab-merge__junction {
  opacity: 1;
  animation: ab-junction 2.6s ease-in-out infinite;
}

@keyframes ab-junction {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* end of the line */
.ab-tl__end {
  display: flex;
  justify-content: center;
  padding-top: 30px;
}

.ab-tl__cap {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--text-3);
  background: var(--bg);
  border: 2px solid rgba(232, 238, 235, 0.22);
  box-shadow: 0 0 0 8px var(--bg);
  transition: background 0.7s var(--ease), color 0.7s var(--ease), border-color 0.7s var(--ease),
    box-shadow 0.7s var(--ease);
}

.ab-tl__end.is-lit .ab-tl__cap {
  color: #fff;
  border-color: transparent;
  background: var(--grad-brand);
  box-shadow: 0 0 0 8px var(--bg), 0 0 44px 8px rgba(229, 99, 106, 0.4);
}

.ab-tl__outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  text-align: center;
}

.ab-tl__outro p {
  font-family: var(--headingFont);
  font-size: 24px !important;
  font-style: italic;
  font-weight: 600 !important;
  color: var(--text);
}

/* ================================================================
   VALUES — components on one board
================================================================ */
.ab-values .pp-section__head { margin-bottom: 40px; }

.ab-board {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(76px, 7vw, 96px) clamp(26px, 4vw, 60px) clamp(40px, 5vw, 60px);
  border-radius: 36px;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(76, 195, 138, 0.1), transparent 60%),
    radial-gradient(800px 420px at 100% 100%, rgba(229, 99, 106, 0.09), transparent 60%),
    linear-gradient(180deg, #0f1614, #0b100f);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 60px 120px -70px rgba(0, 0, 0, 0.95);
}

.ab-board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(232, 238, 235, 0.07) 1px, transparent 1.2px);
  background-size: 22px 22px;
}

.ab-board__traces { z-index: -1; }

.ab-board__hole {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(232, 238, 235, 0.14);
  box-shadow: 0 0 0 5px rgba(232, 238, 235, 0.03);
}

.ab-board__hole.is-tl { top: 22px; left: 22px; }
.ab-board__hole.is-tr { top: 22px; right: 22px; }
.ab-board__hole.is-bl { bottom: 22px; left: 22px; }
.ab-board__hole.is-br { bottom: 22px; right: 22px; }

.ab-board__silk {
  position: absolute;
  top: 25px;
  left: 58px;
  margin: 0 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.24em;
  line-height: 1.2 !important;
  text-transform: uppercase;
  color: rgba(232, 238, 235, 0.62);
}

.ab-board__silk.is-right { left: auto; right: 58px; }

.ab-parts {
  --gap: 24px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px var(--gap);
  align-items: start;
}

/* source terminal at the start of the rail */
.ab-parts::before {
  content: "+";
  position: absolute;
  top: -15px;
  left: -46px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font: 700 16px/1 var(--paraFont);
  color: var(--green-ink);
  background: linear-gradient(135deg, var(--green-3), var(--green));
  box-shadow: 0 0 0 5px rgba(76, 195, 138, 0.12), 0 0 20px rgba(76, 195, 138, 0.6);
}

.ab-part {
  position: relative;
  padding-top: var(--drop);
}

/* rail segment above each part: together they make one rail */
.ab-part__rail {
  position: absolute;
  top: 0;
  left: calc(var(--gap) / -2 - 1px);
  right: calc(var(--gap) / -2 - 1px);
  height: 2px;
  overflow: hidden;
  background: rgba(232, 238, 235, 0.14);
}

.ab-part:first-child .ab-part__rail { left: -18px; }
.ab-part:last-child .ab-part__rail { right: 50%; }

.ab-part__rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0 62%, rgba(155, 231, 193, 0.9) 90%, #fff 96%, transparent 100%);
  transform: translateX(-100%);
}

/* the via where a wire leaves the rail */
.ab-part::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -5px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(var(--acc-rgb), 0.55);
}

.ab-part__wire {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: var(--drop);
  margin-left: -1px;
  overflow: hidden;
  background: rgba(232, 238, 235, 0.14);
}

.ab-part__wire::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 70%;
  background: linear-gradient(180deg, transparent, var(--acc-3), transparent);
  transform: translateY(-100%);
}

/* current: along the rail, then down each wire, one part after the other */
.ab-board:not(.is-armed) .ab-part__rail::after {
  animation: ab-rail 5.6s linear infinite;
  animation-delay: calc(var(--i) * 1.4s);
}

.ab-board:not(.is-armed) .ab-part__wire::after {
  animation: ab-drop 5.6s linear infinite;
  animation-delay: calc(var(--i) * 1.4s + 0.7s);
}

@keyframes ab-rail {
  0% { transform: translateX(-100%); }
  25%, 100% { transform: translateX(100%); }
}

@keyframes ab-drop {
  0% { transform: translateY(-100%); }
  14%, 100% { transform: translateY(160%); }
}

.ab-part__chip {
  position: relative;
  padding: 30px 24px 22px;
  border-radius: 20px;
  background: linear-gradient(170deg, #1a2320, #111816);
  border: 1px solid rgba(232, 238, 235, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -40px rgba(0, 0, 0, 0.95);
  transition: border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.ab-part__chip:hover {
  border-color: rgba(var(--acc-rgb), 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 40px 70px -40px rgba(var(--acc-rgb), 0.45);
}

/* IC legs on both sides */
.ab-part__pins {
  position: absolute;
  top: 30px;
  bottom: 30px;
  width: 7px;
  background: repeating-linear-gradient(180deg, rgba(200, 212, 206, 0.3) 0 7px, transparent 7px 17px);
}

.ab-part__pins.is-l { left: -8px; border-radius: 2px 0 0 2px; }
.ab-part__pins.is-r { right: -8px; border-radius: 0 2px 2px 0; }

/* solder pad where the wire lands */
.ab-part__pad {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 18px;
  height: 11px;
  margin-left: -9px;
  border-radius: 3px;
  background: linear-gradient(180deg, #d5ddd9, #86918c);
  box-shadow: 0 0 0 3px rgba(11, 15, 14, 0.9);
}

.ab-part__led {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(var(--acc-rgb), 0.95);
  box-shadow: 0 0 0 3px rgba(var(--acc-rgb), 0.16), 0 0 14px 2px rgba(var(--acc-rgb), 0.85);
}

.ab-board.is-armed .ab-part__led {
  background: #2a3330;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ab-board.is-on .ab-part__led {
  animation: ab-led 0.9s var(--ease) both;
  animation-delay: calc(var(--i) * 1.4s + 1.45s);
}

@keyframes ab-led {
  0% { background: #2a3330; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
  35% { background: #fff; box-shadow: 0 0 0 5px rgba(var(--acc-rgb), 0.25), 0 0 26px 8px rgba(var(--acc-rgb), 0.95); }
  100% { background: rgba(var(--acc-rgb), 0.95); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), 0.16), 0 0 14px 2px rgba(var(--acc-rgb), 0.85); }
}

.ab-part__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 22px;
  color: var(--acc-2);
  background: rgba(var(--acc-rgb), 0.1);
  border: 1px solid rgba(var(--acc-rgb), 0.26);
}

.ab-part__title {
  margin-top: 20px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}

.ab-part__words {
  display: grid;
  gap: 2px;
  margin-top: 12px !important;
}

.ab-part__words li {
  font-family: var(--headingFont);
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}

.ab-part__words b {
  font-weight: 700;
  color: var(--acc-2);
}

.ab-part__line {
  margin-top: 12px !important;
  font-size: 15.5px !important;
  line-height: 1.6 !important;
  color: var(--text-2);
}

.ab-part__silk {
  display: block;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(232, 238, 235, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.24em;
  line-height: 1.2 !important;
  text-transform: uppercase;
  color: rgba(232, 238, 235, 0.62);
}

/* ================================================================
   KEY FIGURES — energy meters
================================================================ */
.ab-figs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ab-gauge {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
}

.ab-gauge::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(var(--acc-rgb), 0.15), transparent);
}

.ab-gauge.ab-tone--red::before { background: radial-gradient(closest-side, rgba(229, 99, 106, 0.15), transparent); }

.ab-gauge--big {
  grid-row: span 2;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 40px 32px;
  text-align: center;
}

.ab-gauge--big::before {
  top: 42%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side at 40% 50%, rgba(76, 195, 138, 0.14), transparent),
    radial-gradient(closest-side at 62% 55%, rgba(229, 99, 106, 0.1), transparent);
}

.ab-gauge__dial {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.ab-gauge--big .ab-gauge__dial { width: min(100%, 320px); }

.ab-gauge__dial svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ab-gauge__scale {
  fill: none;
  stroke: rgba(232, 238, 235, 0.1);
  stroke-width: 1;
  stroke-dasharray: 1 5;
}

.ab-gauge__track path {
  fill: none;
  stroke: rgba(232, 238, 235, 0.07);
  stroke-width: 13;
}

.ab-gauge__fill path {
  fill: none;
  stroke-width: 13;
}

.ab-gauge--big .ab-gauge__track path,
.ab-gauge--big .ab-gauge__fill path { stroke-width: 10; }

.ab-gauge.is-armed .ab-gauge__fill path { opacity: 0; }

.ab-gauge.is-on .ab-gauge__fill path { animation: ab-seg 0.35s var(--ease) var(--t) both; }

@keyframes ab-seg {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* the spark that rides the dial while it charges */
.ab-gauge__tip {
  transform-box: view-box;
  transform-origin: 100px 100px;
  transform: rotate(270deg);
}

.ab-gauge__tip circle {
  fill: #fff;
  filter: drop-shadow(0 0 4px rgba(var(--acc-rgb), 1)) drop-shadow(0 0 10px rgba(var(--acc-rgb), 0.8));
}

.ab-gauge.is-armed .ab-gauge__tip {
  transform: rotate(0deg);
  opacity: 0;
}

.ab-gauge.is-on .ab-gauge__tip { animation: ab-tip var(--dur, 1.8s) cubic-bezier(0.33, 1, 0.68, 1) both; }

@keyframes ab-tip {
  from { transform: rotate(0deg); opacity: 1; }
  to { transform: rotate(270deg); opacity: 1; }
}

.ab-gauge__end {
  font-family: var(--paraFont);
  font-size: 16px;
  font-weight: 600;
  fill: var(--text-3);
}

.ab-gauge--big .ab-gauge__end { font-size: 12px; }

.ab-gauge__value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0 !important;
}

.ab-gauge__num {
  font-family: var(--headingFont);
  font-size: 40px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: lining-nums tabular-nums;
}

.ab-gauge__num small {
  margin-left: 2px;
  font-size: 0.55em;
  font-weight: 600;
  vertical-align: 0.6em;
  color: var(--acc-2);
}

.ab-gauge--big .ab-gauge__num { font-size: clamp(64px, 6.6vw, 92px) !important; }

.ab-gauge__label {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.ab-gauge--big .ab-gauge__label { margin-top: 8px; font-size: 30px; }

.ab-gauge__note {
  margin-top: 6px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--text-2);
}

/* ================================================================
   CHAPTER LIFE — mosaic + lightbox
================================================================ */
.ab-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15.5vw, 224px);
  grid-auto-flow: dense;
  gap: 14px;
}

.ab-tile {
  position: relative;
  min-width: 0;
}

.ab-tile--wide { grid-column: span 2; }
.ab-tile--tall { grid-row: span 2; }
.ab-tile--big { grid-column: span 2; grid-row: span 2; }

.ab-tile__btn {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
  cursor: zoom-in;
}

.ab-tile__btn img {
  position: absolute;
  inset: 0;
  filter: saturate(0.92) brightness(0.9);
  transition: transform 1.4s var(--ease-soft), filter 0.8s var(--ease);
}

.ab-tile__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 10, 0) 42%, rgba(8, 11, 10, 0.8) 100%);
}

/* soft edge that lights up on hover */
.ab-tile__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.5s var(--ease);
  pointer-events: none;
}

.ab-tile__btn:hover img {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(1);
}

.ab-tile__btn:hover::before { box-shadow: inset 0 0 0 1px rgba(155, 231, 193, 0.55), inset 0 0 50px rgba(76, 195, 138, 0.22); }
.ab-tile:nth-child(3n + 2) .ab-tile__btn:hover::before { box-shadow: inset 0 0 0 1px rgba(240, 138, 143, 0.55), inset 0 0 50px rgba(229, 99, 106, 0.22); }

.ab-tile__btn:focus-visible {
  outline: 3px solid var(--green-3);
  outline-offset: 3px;
}

.ab-tile__cap {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #fff;
  text-align: left;
}

.ab-tile__cap i {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ab-tile__zoom {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 13px;
  color: #fff;
  background: rgba(11, 15, 14, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-soft);
}

.ab-tile__btn:hover .ab-tile__zoom,
.ab-tile__btn:focus-visible .ab-tile__zoom {
  opacity: 1;
  transform: none;
}

/* the solar-cell tile */
.ab-tile--solar {
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(160deg, #11281f, #0b1613 72%);
  border: 1px solid rgba(76, 195, 138, 0.26);
}

.ab-tile__cells {
  position: absolute;
  inset: 10px;
  z-index: -1;
  overflow: hidden;
  border-radius: 16px;
  background-image:
    linear-gradient(rgba(155, 231, 193, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 231, 193, 0.12) 1px, transparent 1px),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(155, 231, 193, 0.045) 7px 8px);
  background-size: 25% 33.34%, 25% 33.34%, 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
}

.ab-tile__cells::after {
  content: "";
  position: absolute;
  inset: -60%;
  background: linear-gradient(115deg, transparent 44%, rgba(255, 255, 255, 0.13) 50%, transparent 56%);
  transform: translateX(-40%);
  animation: ab-sun 8s ease-in-out infinite;
}

@keyframes ab-sun {
  0%, 40% { transform: translateX(-40%); }
  100% { transform: translateX(40%); }
}

.ab-tile__sun {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 17px;
  color: var(--green-ink);
  background: linear-gradient(135deg, var(--green-3), var(--green));
  box-shadow: 0 0 0 6px rgba(76, 195, 138, 0.12), 0 0 30px rgba(76, 195, 138, 0.55);
}

.ab-tile__big {
  font-family: var(--headingFont);
  font-size: clamp(22px, 2vw, 28px) !important;
  font-style: italic;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: #fff;
}

.ab-tile__small {
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  color: var(--text-2);
}

/* lightbox */
.ab-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 76px 16px 24px;
  border: 0;
  background: transparent;
  color: var(--text);
}

.ab-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ab-fade 0.35s var(--ease);
}

.ab-lightbox::backdrop {
  background: rgba(4, 7, 6, 0.84);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@keyframes ab-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ab-lightbox__fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  animation: ab-pop 0.55s var(--ease-soft);
}

@keyframes ab-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.ab-lightbox__fig img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px);
  object-fit: contain !important;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}

.ab-lightbox__fig figcaption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 7px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: rgba(20, 27, 25, 0.85);
  border: 1px solid var(--line-2);
}

.ab-lightbox__fig figcaption i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 12px;
  color: var(--green-2);
  background: var(--green-soft);
}

.ab-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
  color: #fff;
  background: rgba(20, 27, 25, 0.85);
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.5s var(--ease-soft);
}

.ab-lightbox__close:hover {
  background: var(--green);
  color: var(--green-ink);
  transform: rotate(90deg);
}

.ab-lightbox__close:focus-visible {
  outline: 2px solid var(--green-3);
  outline-offset: 3px;
}

/* ================================================================
   CLOSING SWITCHBOARD
================================================================ */
.ab-cta__panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* soft AC wave under the breakers, fading into the footer */
.ab-cta__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -150px;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

.ab-cta__text p {
  max-width: 440px;
  margin-top: 16px !important;
  font-size: 17px !important;
  color: var(--text-2);
}

.ab-breakers {
  position: relative;
  padding: 8px 0;
}

/* DIN rail behind the breakers */
.ab-breakers__rail {
  position: absolute;
  top: 50%;
  left: -16px;
  right: -16px;
  height: 40px;
  margin-top: -20px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(0, 0, 0, 0.32) 26px 36px),
    linear-gradient(180deg, #27322e, #1b2320 50%, #27322e);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ab-breakers ul {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ab-breaker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 16px 10px 18px;
  border-radius: 18px;
  text-align: center;
  color: var(--text);
  background: linear-gradient(180deg, #202a27, #151c1a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 40px -26px rgba(0, 0, 0, 0.95);
  transition: transform 0.6s var(--ease-soft), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}

.ab-breaker:hover,
.ab-breaker:focus-visible {
  color: var(--text);
  transform: translateY(-4px);
  border-color: rgba(var(--acc-rgb), 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 50px -26px rgba(var(--acc-rgb), 0.55);
}

.ab-breaker:focus-visible {
  outline: 2px solid var(--acc-3);
  outline-offset: 4px;
}

.ab-breaker__led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  /* every breaker is live: the LED is on */
  background: var(--acc-2);
  box-shadow: 0 0 0 3px rgba(var(--acc-rgb), 0.16), 0 0 10px 1px rgba(var(--acc-rgb), 0.65);
  transition: box-shadow 0.3s var(--ease);
}

.ab-breaker__slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 52px;
  height: 98px;
  padding: 6px 0;
  border-radius: 12px;
  background: #090d0c;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ab-breaker__mark {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  line-height: 1 !important;
  text-transform: uppercase;
  color: rgba(232, 238, 235, 0.62);
}

.ab-breaker__mark.is-on { color: var(--acc-3); }

/* the lever sits in the ON position */
.ab-breaker__lever {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 19px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--acc-3), var(--acc));
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-26px);
}

/* hover / focus: the lever gives a small "click" and the LED brightens */
.ab-breaker:hover .ab-breaker__lever,
.ab-breaker:focus-visible .ab-breaker__lever {
  animation: ab-lever-click 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ab-lever-click {
  0% { transform: translateY(-26px); }
  35% { transform: translateY(-16px); }
  100% { transform: translateY(-26px); }
}

.ab-breaker:hover .ab-breaker__led,
.ab-breaker:focus-visible .ab-breaker__led {
  box-shadow: 0 0 0 4px rgba(var(--acc-rgb), 0.24), 0 0 16px 3px rgba(var(--acc-rgb), 0.95);
}

.ab-breaker__label {
  font-family: var(--headingFont);
  font-size: 19px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: #fff;
}

.ab-breaker__sub {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: -4px;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  line-height: 1.3 !important;
  text-transform: uppercase;
  color: var(--text-2);
}

.ab-breaker__sub i {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--acc-2);
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1199.98px) {
  .ab-figs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-gauge--big { grid-column: 1 / -1; grid-row: auto; }
  .ab-gauge--big .ab-gauge__dial { width: min(100%, 280px); }

  .ab-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-part:nth-child(odd) .ab-part__rail { left: -18px; right: calc(var(--gap) / -2 - 1px); }
  .ab-part:nth-child(even) .ab-part__rail { right: 50%; }
  .ab-part:nth-child(3)::after {
    /* second row gets its own terminal */
    content: "+";
    position: absolute;
    top: -15px;
    left: -46px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font: 700 16px/1 var(--paraFont);
    color: var(--green-ink);
    background: linear-gradient(135deg, var(--green-3), var(--green));
    box-shadow: 0 0 0 5px rgba(76, 195, 138, 0.12), 0 0 20px rgba(76, 195, 138, 0.6);
  }
  .ab-board { padding-left: 72px; }

  .ab-cta__panel { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
  .ab-intro__grid { grid-template-columns: 1fr; }
  .ab-intro__plate { max-width: 560px; }

  .ab-panel { grid-template-columns: 1fr; }
  .ab-panel__orbit { width: min(100%, 300px); }

  /* timeline: one column, line on the left */
  .ab-tl-wrap .ab-tl__line { left: 20px; }

  .ab-mile,
  .ab-mile--left,
  .ab-mile--right {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas: "node date" ". card";
    row-gap: 12px;
    padding: 14px 0;
  }

  .ab-mile__node { justify-self: start; margin-left: 11px; width: 18px; height: 18px; }
  .ab-mile__node::before { display: none; }

  .ab-mile--left .ab-mile__card,
  .ab-mile--right .ab-mile__card { justify-self: stretch; max-width: 640px; }

  .ab-mile--left .ab-mile__date,
  .ab-mile--right .ab-mile__date {
    justify-self: start;
    padding: 0 0 0 6px;
    text-align: left;
  }

  .ab-mile__date time {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 12px;
  }

  .ab-mile__month { order: 2; }
  .ab-mile__year { margin-top: 0; font-size: 44px !important; }

  .ab-era {
    align-items: flex-start;
    padding-left: 0;
  }

  .ab-era__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-left: 50px;
  }

  .ab-merge {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    padding-top: 24px;
  }

  .ab-merge__node {
    margin: 30px 0 0 7px;
  }

  .ab-merge__card {
    grid-column: 2;
    width: 100%;
    max-width: 640px;
    padding: 34px 22px 0;
    border-radius: 28px;
  }

  .ab-merge__flow.is-wide { display: none; }
  .ab-merge__flow.is-narrow { display: block; }
  .ab-merge__logo { width: 84px; height: 84px; margin: -42px 0 0 -42px; }

  .ab-tl__end {
    justify-content: flex-start;
    padding-left: 0;
  }

  .ab-tl__cap { width: 42px; height: 42px; font-size: 16px; }

  .ab-tl__outro { align-items: flex-start; padding-left: 52px; text-align: left; }

  /* mosaic: the solar tile takes two columns, REC iT Up gives one back */
  .ab-tile--solar { grid-column: span 2; }
  .ab-tile--squeeze { grid-column: auto; }

  /* figures: dial above the text */
  .ab-gauge {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding: 22px 16px 20px;
    text-align: center;
  }

  .ab-gauge::before { left: 50%; top: 36%; transform: translate(-50%, -50%); }
  .ab-gauge .ab-gauge__dial { width: min(100%, 140px); }
  .ab-gauge--big { padding: 34px 20px 30px; }
  .ab-gauge--big .ab-gauge__dial { width: min(100%, 260px); }
}

@media (max-width: 767.98px) {
  .ab-plate { padding: 26px 22px 24px; transform: rotate(-0.8deg); }
  .ab-plate__specs > div { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .ab-plate__title { font-size: 23px; }

  .ab-switch__grip { display: none; }
  .ab-switch::before,
  .ab-switch::after { display: none; }

  .ab-panel { padding: 26px 20px 28px; border-radius: 28px; }
  .ab-panel__disc { width: 150px; height: 150px; }
  .ab-panel__orbit { width: min(100%, 250px); }
  .ab-acc__btn { padding-left: 16px; }
  .ab-acc__body { padding: 0 16px 16px; }

  .ab-mile.has-media .ab-mile__card,
  .ab-mile--right.has-media .ab-mile__card { grid-template-columns: 1fr; }
  .ab-mile__media { order: 0 !important; min-height: 0; aspect-ratio: 16 / 9; }
  .ab-mile__media.is-doc { padding: 16px 18%; }
  .ab-mile__body { padding: 18px 18px 20px; }
  .ab-mile__title { font-size: 20px; }

  /* values: one column, rail runs down the left */
  .ab-board { padding: 72px 18px 32px 54px; border-radius: 28px; }
  .ab-board__silk { left: 50px; }
  .ab-board__silk.is-right { display: none; }

  .ab-parts { grid-template-columns: 1fr; gap: 18px; }
  .ab-parts::before { top: -36px; left: -42px; }
  .ab-part:nth-child(3)::after { display: none; }
  .ab-part { padding-top: 0; }

  .ab-part__rail,
  .ab-part:nth-child(odd) .ab-part__rail,
  .ab-part:nth-child(even) .ab-part__rail,
  .ab-part:first-child .ab-part__rail {
    top: -18px;
    bottom: -1px;
    left: -28px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .ab-part:first-child .ab-part__rail { top: -24px; }
  .ab-part:last-child .ab-part__rail { bottom: 50%; }

  .ab-part__rail::after {
    background: linear-gradient(180deg, transparent 0 62%, rgba(155, 231, 193, 0.9) 90%, #fff 96%, transparent 100%);
  }

  .ab-board:not(.is-armed) .ab-part__rail::after { animation-name: ab-rail-v; }

  @keyframes ab-rail-v {
    0% { transform: translateY(-100%); }
    25%, 100% { transform: translateY(100%); }
  }

  .ab-part::before { top: 50%; left: -33px; margin: -6px 0 0; }

  .ab-part__wire {
    top: 50%;
    left: -28px;
    width: 28px;
    height: 2px;
    margin: -1px 0 0;
  }

  .ab-part__wire::after {
    top: 0;
    bottom: 0;
    left: 0;
    width: 70%;
    height: auto;
    background: linear-gradient(90deg, transparent, var(--acc-3), transparent);
  }

  .ab-board:not(.is-armed) .ab-part__wire::after { animation-name: ab-drop-h; }

  @keyframes ab-drop-h {
    0% { transform: translateX(-100%); }
    14%, 100% { transform: translateX(160%); }
  }

  .ab-part__pins.is-l { display: none; }
  .ab-part__pad { top: 50%; left: -6px; width: 11px; height: 18px; margin: -9px 0 0; }
  .ab-part__chip { padding: 24px 20px 20px; }
  .ab-part__title { margin-top: 16px; font-size: 24px; }

  /* figures */
  .ab-figs__grid { gap: 12px; }
  .ab-gauge { padding: 20px 14px 18px; }
  .ab-gauge .ab-gauge__dial { width: min(100%, 128px); }
  .ab-gauge--big .ab-gauge__dial { width: min(100%, 250px); }
  .ab-gauge__num { font-size: 34px !important; }
  .ab-gauge--big .ab-gauge__num { font-size: 66px !important; }
  .ab-gauge__label { font-size: 19px; }
  .ab-gauge--big .ab-gauge__label { font-size: 26px; }
  .ab-gauge__note { font-size: 13px !important; }

  /* mosaic */
  .ab-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
  }

  .ab-tile__btn,
  .ab-tile--solar { border-radius: 18px; }
  .ab-tile__cap { left: 10px; right: 10px; bottom: 10px; font-size: 13px !important; }
  .ab-tile__cap i { width: 26px; height: 26px; font-size: 11px; }
  .ab-tile__zoom { display: none; }
  .ab-tile--solar { padding: 16px 18px; }
  .ab-tile__sun { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 14px; }
  .ab-tile__big { font-size: 20px !important; }
  .ab-tile__small { font-size: 12.5px !important; }

  /* switchboard */
  .ab-breakers ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ab-breakers__rail { display: none; }
  .ab-breaker { padding: 14px 8px 16px; }
  .ab-breaker__label { font-size: 17px !important; }
}

@media (max-width: 575.98px) {
  .ab-chip { font-size: 13.5px; }
  .ab-switch__short { font-size: 21px !important; }
  .ab-switch__long { font-size: 10px !important; letter-spacing: 0.1em; }
  .ab-mile__year { font-size: 38px !important; }
  .ab-merge__title { font-size: 34px; }
  .ab-merge__text { font-size: 15.5px !important; }
}

/* ================================================================
   REDUCED MOTION — everything shown in its final, charged state
================================================================ */
@media (prefers-reduced-motion: reduce) {
  .ab-plate::after,
  .ab-plate__led::before,
  .ab-panel__disc::after,
  .ab-tile__cells::after,
  .ab-merge.is-lit .ab-merge__junction,
  .ab-acc__body,
  .ab-lightbox[open],
  .ab-lightbox__fig,
  .ab-breaker__lever { animation: none !important; }

  .ab-switch__spark,
  .ab-merge__current,
  .ab-part__rail::after,
  .ab-part__wire::after,
  .ab-mile.is-lit .ab-mile__node::after { display: none !important; }

  .ab-tl-wrap .pp-powerline__charge { transform: none !important; }
  .ab-tl-wrap .pp-powerline__spark { display: none; }

  .ab-plate,
  .ab-plate:hover { transform: none; transition: none; }

  .ab-switch__thumb,
  .ab-switch__thumb::after,
  .ab-panel,
  .ab-panel.is-active,
  .ab-panel__visual,
  .ab-panel.is-active .ab-panel__visual,
  .ab-panel__body,
  .ab-panel.is-active .ab-panel__body,
  .ab-mile__node,
  .ab-mile__year-base,
  .ab-mile__year-glow,
  .ab-breaker,
  .ab-breaker__lever,
  .ab-tile__btn img,
  .ab-mile__media img { transition: none !important; }

  .ab-panel,
  .ab-panel__visual,
  .ab-panel__body { animation: none !important; }
  .ab-tile__btn:hover img,
  .ab-mile__card:hover .ab-mile__media img,
  .ab-breaker:hover,
  .ab-breaker:focus-visible { transform: none; }
}

/* ================================================================
   OFF-SCREEN PAUSE — kept last and !important on purpose: the
   "running" rules above (e.g. .ab-board:not(.is-armed) …,
   .ab-merge.is-lit …) use the animation shorthand, which would
   otherwise reset the play state to running.
================================================================ */
.ab-page .is-paused .pp-orbit__electron,
.ab-page .is-paused .pp-circuit__pulse,
.ab-page .is-paused .pp-sine__wave,
.ab-page .is-paused .pp-grad,
.ab-page .is-paused .tf__heading_area h5::before,
.ab-page .is-paused .ab-plate::after,
.ab-page .is-paused .ab-plate__led::before,
.ab-page .is-paused .ab-merge__current,
.ab-page .is-paused .ab-merge__junction,
.ab-page .is-paused .ab-part__rail::after,
.ab-page .is-paused .ab-part__wire::after,
.ab-page .is-paused .ab-panel__disc::after,
.ab-page .is-paused .ab-tile__cells::after { animation-play-state: paused !important; }

/* photo dialog open: the page behind stays still, and the reserved
   scrollbar gutter keeps the layout from shifting */
html.ab-scroll-lock {
  overflow: hidden;
  scrollbar-gutter: stable;
}

.ab-lightbox { overscroll-behavior: contain; }
