/* Hiberden: the home page, the six industry pages, /central-library and
   /mcp_beta. Loaded after styles.css. Tokens and grammar come from styles.css
   and DESIGN.md; this file adds the home page's industry slider and the few
   blocks those pages need. The Industries menu moved to styles.css, since the
   one menu now sits on every page. */

/* ---------- Home: the industry slider ----------
   Without JS the six slides are a plain two-column index, every one readable.
   beta.js adds .is-armed: the slides stack in one grid cell (so the hero never
   changes height), one shows at a time, and the tabs and the rotation control
   appear. Under reduced motion it never rotates on its own, and styles.css's
   reduced-motion rule turns the crossfade into an instant swap. */

.vslider { max-width: 580px; margin: 0; }
.vslider__controls {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 26px;
}
.vslider__controls[hidden] { display: none; }

/* The rotation control: first in the carousel's focus order, as the WAI-ARIA
   pattern asks, drawn as a small square so the six tabs keep one row. Its name
   comes from aria-label (and a tooltip); the text span is for screen readers. */
.vslider__rotate {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 1px;
  color: var(--c-burrow);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 0;
  cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease-standard), color var(--dur-micro) var(--ease-standard);
}
.vslider__rotate:hover { border-color: var(--c-ember-ink); color: var(--c-den-brown); }
.vslider__rotate-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.vslider__rotate-icon { display: block; flex: none; width: 9px; height: 10px; box-sizing: border-box; }
.vslider__rotate[data-state="playing"] .vslider__rotate-icon {
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.vslider__rotate[data-state="paused"] .vslider__rotate-icon {
  width: 0;
  height: 0;
  border-left: 9px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* Six full names do not fit one row of the hero column, so they sit in a
   deliberate grid (three across, two across on phones) instead of wrapping
   raggedly. */
.vslider__tabs {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: start;
  gap: 2px 24px;
}
.vslider__tab { justify-self: start; }
.vslider__tab {
  position: relative;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--fg-3);
  background: none;
  border: 0;
  padding: 7px 0 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-micro) var(--ease-standard);
}
.vslider__tab:hover { color: var(--c-den-brown); }
.vslider__tab[aria-selected="true"] { color: var(--c-den-brown); }
.vslider__tab::before,
.vslider__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
}
.vslider__tab::before { background: var(--border-soft); opacity: 0; }
.vslider__tab[aria-selected="true"]::before { opacity: 1; }
.vslider__tab::after {
  background: var(--c-ember);
  transform: scaleX(0);
  transform-origin: left center;
}
.vslider__tab[aria-selected="true"]::after { transform: scaleX(1); }
/* While it rotates, the selected tab's rule fills over the slide's time, so the
   change never arrives unannounced. */
.vslider.is-ticking .vslider__tab[aria-selected="true"]::after {
  animation: vsliderTick var(--vslider-ms, 8000ms) linear both;
}
@keyframes vsliderTick {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.vslider__slides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 32px;
}
.vslider__slide {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.vslider__kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--c-ember-ink);
}
.vslider__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--c-den-brown);
  margin: 0 0 10px;
}
.vslider__body {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
}
.vslider__more {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.vslider.is-armed .vslider__slides { grid-template-columns: minmax(0, 1fr); }
.vslider.is-armed .vslider__slide {
  grid-area: 1 / 1;
  border-top: 0;
  padding-top: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s var(--ease-standard),
    transform 0.5s var(--ease-standard),
    visibility 0s linear 0.5s;
}
.vslider.is-armed .vslider__slide.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s var(--ease-standard),
    transform 0.5s var(--ease-standard),
    visibility 0s;
}
.vslider.is-armed .vslider__kicker { display: none; }
.vslider.is-armed .vslider__title {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin-bottom: 14px;
}
.vslider.is-armed .vslider__body {
  font-size: 17px;
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 16px;
}
.vslider.is-armed .vslider__more { font-size: 16px; }

/* The hero's own spacing around the slider. */
.hero-beta .hero-title { margin-bottom: 30px; }
.hero-beta .hero-actions { margin-top: 30px; }

@media (max-width: 560px) {
  .vslider__slides { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .vslider__tabs { grid-template-columns: repeat(2, max-content); gap: 2px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .vslider.is-armed .vslider__slide { transform: none; }
}

/* ---------- Home: the slide pictures ----------
   One picture per industry in the hero's right column, changing with the
   slide. The copy column dissolves into the hero grid so that on a phone the
   picture can sit between the headline and the tabs it belongs to, instead of
   after the whole text column. With JS off only the first picture shows. */

.hero-grid--slider { row-gap: 0; }
.hero-grid--slider > .hero-copy { display: contents; }
.hero-grid--slider > .hero-copy > * { min-width: 0; grid-column: 1; }
.hero-grid--slider > .hero-art { grid-column: 2; grid-row: 1 / span 4; min-width: 0; }

.vslider__art {
  position: relative;
  display: grid;
  background: var(--c-sand);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-raised);
  overflow: hidden;
  isolation: isolate;
}
.vslider__fig { grid-area: 1 / 1; margin: 0; min-width: 0; }
.vslider__fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.vslider__art:not(.is-armed) .vslider__fig:not(:first-child) { display: none; }

/* Crossfade without a dip: the picture leaving stays put underneath until the
   one arriving has covered it, then beta.js lets it go. */
.vslider__art.is-armed .vslider__fig {
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity 0.7s var(--ease-standard), visibility 0s linear 0.7s;
}
.vslider__art.is-armed .vslider__fig.is-prev {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition: opacity 0.2s var(--ease-standard), visibility 0s;
}
.vslider__art.is-armed .vslider__fig.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transition: opacity 0.7s var(--ease-standard), visibility 0s;
}

/* While the slides rotate, the picture on stage drifts in by a few percent
   over the slide's time, at rest but alive; a pause freezes it where it is
   instead of snapping it back. The picture leaving keeps the same animation,
   paused, so it holds its drift under the crossfade instead of jumping back. */
.vslider__art.is-armed .vslider__fig img { transform-origin: 50% 50%; }
.vslider__art.is-armed .vslider__fig.is-active img,
.vslider__art.is-armed .vslider__fig.is-prev img {
  animation: vsliderDrift var(--vslider-ms, 9000ms) linear both;
  animation-play-state: paused;
  will-change: transform;
}
.vslider__art.is-armed.is-ticking .vslider__fig.is-active img { animation-play-state: running; }
@keyframes vsliderDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.045); }
}

@media (max-width: 880px) {
  /* styles.css dissolves .hero-art here; the picture takes the slot between
     the headline and the slider, the card closes the hero. */
  .hero-grid--slider > .hero-copy > * { grid-column: auto; }
  .hero-grid--slider .hero-title { order: 0; margin-bottom: 26px; }
  /* Left-aligned, the same width as the slider under it, so the picture, the
     tabs and the text share one edge. styles.css caps and centers the old
     hero's <picture> here; the slide pictures fill their frame instead. */
  .hero-grid--slider .vslider__art { order: 1; max-width: 580px; width: 100%; margin: 0 0 28px; }
  .hero-grid--slider .vslider__fig picture { display: block; max-width: none; margin: 0; }
  .hero-grid--slider .vslider { order: 2; }
  .hero-grid--slider .hero-actions { order: 3; }
  .hero-grid--slider .hero-meta { order: 4; }
  .hero-grid--slider .hero-card { order: 5; max-width: 580px; margin-top: 28px; }
}

/* Two columns of industry names must fit a 320px phone: the columns may
   shrink and a long name may wrap, instead of running into the gutter. */
@media (max-width: 560px) {
  .vslider__tabs { grid-template-columns: repeat(2, minmax(0, max-content)); gap: 2px 16px; }
  .vslider__tab { white-space: normal; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .vslider__art.is-armed .vslider__fig,
  .vslider__art.is-armed .vslider__fig.is-active { transition: none; }
  .vslider__art.is-armed .vslider__fig.is-active img { animation: none; }
}

/* ---------- Two-up: one person, or an organization ----------
   An index, not a card grid: two hairline-topped columns on the section ground. */

.split2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 56px;
  margin: 8px 0 0;
}
.split2__col {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.split2__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-den-brown);
  margin: 0 0 8px;
}
.split2__lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-2);
}
.split2 .section-more { margin-top: 22px; }

/* A ruled list of plain sentences. The markers are stone, not ember: a list
   bullet is not something alive. */
.plist {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.plist li {
  position: relative;
  padding: 13px 0 13px 22px;
  border-top: 1px solid var(--border-soft);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-2);
}
.plist li:last-child { border-bottom: 1px solid var(--border-soft); }
.plist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 25px;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-stone);
}
.plist strong { color: var(--fg-1); font-weight: 600; }
.plist code,
.section-body code,
.tier-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--c-den-brown);
  background: rgba(168, 156, 136, 0.18);
  padding: 1px 5px;
  border-radius: 4px;
}

@media (max-width: 880px) {
  .split2 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* ---------- Page hero for the industry, Central Library and connector pages ---------- */

.page-hero .hero-lede { max-width: 660px; }
.page-hero .hero-actions { margin-top: 30px; }
.page-hero .hero-meta { margin-top: 26px; }
.page-hero .mcp-uses { margin: 6px 0 4px; }
.page-hero .mcp-term { margin: 32px 0 6px; }

/* ---------- Example policy: three rows of machine truth ---------- */

.policy-ex {
  margin: 34px 0 0;
  max-width: 680px;
  background: var(--bg-app);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-rest);
  padding: 18px 22px 6px;
}
.section:not(.section-alt) .policy-ex { background: var(--bg-raised); }
.policy-ex__flag {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--c-burrow);
}
.policy-ex__rows { margin: 0; padding: 0; list-style: none; }
.policy-ex__row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 12px 0;
  border-top: 1px solid var(--border-soft);
}
.policy-ex__kind {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--fg-1);
}
.policy-ex__what {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
}
@media (max-width: 520px) {
  .policy-ex__row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Note box: what a page's product does not do ---------- */

.note-box {
  margin: 40px 0 0;
  max-width: 680px;
  background: var(--bg-app);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  padding: 20px 22px 8px;
  box-shadow: var(--shadow-rest);
}
.section:not(.section-alt) .note-box { background: var(--bg-raised); }
.note-box__flag {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--c-burrow);
}
.note-box .plist { margin-top: 8px; }
.note-box .plist li:last-child { border-bottom: 0; }

/* ---------- Connector page: the tool list under each level ---------- */

.tier-tools {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tier-tools li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1;
  color: var(--fg-2);
  background: rgba(168, 156, 136, 0.16);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 5px 7px;
}
.tier-count {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ---------- Small additions to shared blocks ---------- */

/* Two paragraphs in one story chapter (styles.css sets story-body margin 0). */
.story-body + .story-body { margin-top: 14px; }

/* A paragraph that opens a new thought after a section's read-more link. */
.section-body.section-gap { margin-top: 30px; }

/* The industry index on the home page: each name is a link to its page. */
.audience-link {
  color: inherit;
  text-decoration: none;
}
.audience-link span {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.8em;
  color: var(--c-ember-ink);
  transition: transform var(--dur-micro) var(--ease-standard);
}
.audience-link:hover { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 5px; }
.audience-link:hover span { transform: translateX(3px); }

/* The "Compare it to Canister, YoYotta, and Archiware P5" link is nowrap in
   styles.css, and at a 390px phone it ran 31px past the screen and gave the page
   a sideways scroll (the live home page does the same). Let it wrap there. */
@media (max-width: 520px) {
  .story-cta-action .hero-actions-link { white-space: normal; }
}

/* ---------- Footer: the industry row ---------- */

.footer-nav--industries a { color: var(--fg-3); }

/* ---------- Home: one person, or an organization (two living scenes) ----------
   Two illustrated SVG scenes, one per column, each under its serif heading and
   above a short fact list. The base rules below draw every scene in its
   FINISHED state (every copy verified, the cartridge on the shelf, the library
   full), which is what the page shows with JS off and under reduced motion.
   beta.js adds .is-armed to a scene and then the p-* phase classes one after
   another; each phase rule below describes that moment, and CSS transitions
   carry the motion between moments. Transform, opacity, stroke-dashoffset and
   color only. */

.so-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px;
  margin: 8px 0 0;
}
.so-col {
  min-width: 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.so-fig { margin: 0; }
.so-scene {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--font-mono);
  transition: opacity 0.55s var(--ease-standard);
}
.so-scene.is-fade { opacity: 0; }
/* The reset between runs happens while the scene is faded out; nothing may
   animate back to its starting mark. */
.so-scene.is-snap,
.so-scene.is-snap * { transition: none !important; animation: none !important; }
/* Out of view or in a hidden tab the clock freezes, and the looping file marks
   and lights freeze with it. */
.so-fig.is-paused .so-scene *,
.so-fig.is-paused .so-readout__dot { animation-play-state: paused !important; }

/* The readout under each scene: a count or a state in mono, like the verify
   beat. Two lines are reserved so a longer line never moves the facts below. */
.so-readout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 0;
  min-height: 36px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.so-readout__dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--c-success);
  transition: background 0.35s var(--ease-standard);
}
.so-readout__dot.is-busy { background: var(--c-ember); animation: so-blink 1.1s ease-in-out infinite; }
.so-readout__dot.is-quiet { background: var(--c-stone); }

.so-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-den-brown);
  margin: 0 0 16px;
}
.so-facts {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.so-facts li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
}
.so-facts li:last-child { border-bottom: 1px solid var(--border-soft); }
.so-facts li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 20px;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-stone);
}
.so-facts strong { color: var(--fg-1); font-weight: 600; }
.so-col .section-more { margin-top: 16px; font-size: 15.5px; }

@keyframes so-blink { 50% { opacity: 0.35; } }
@keyframes so-flow { to { stroke-dashoffset: -8; } }

/* ---- Shared line work: stone and granite on the cream ground ---- */

.so-k { fill: none; stroke: var(--c-granite); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.so-k--thin { stroke: var(--c-stone); stroke-width: 1.2; }
.so-k--rows { stroke: var(--c-stone); stroke-width: 1.5; }
.so-k--soft { stroke: var(--border-soft); stroke-width: 1; }
.so-box { fill: var(--c-bone); stroke: var(--c-granite); stroke-width: 1.6; stroke-linejoin: round; transition: stroke 0.5s var(--ease-standard); }
.so-screen { fill: var(--c-cream); stroke: var(--border-soft); stroke-width: 1; }
.so-slot { fill: var(--c-sand); stroke: var(--c-stone); stroke-width: 1; transition: fill 0.4s var(--ease-standard); }
.so-spines rect,
.so-cart rect { fill: var(--c-sand); stroke: var(--c-granite); stroke-width: 1.4; }
.so-track { fill: var(--c-sand); }
.so-lbl { font-size: 13px; font-weight: 500; fill: var(--c-granite); letter-spacing: 0.02em; }

.so-wire {
  fill: none;
  stroke: var(--c-stone);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s var(--ease-standard);
}
.so-wire--2 { transition-delay: 0.12s; }
.so-wire--3 { transition-delay: 0.24s; }

/* File marks: the ember is alive only while a copy is being written. */
.so-flow {
  fill: none;
  stroke: var(--c-ember);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 2.4 5.6;
  opacity: 0;
  transition: opacity 0.5s var(--ease-standard);
}

/* A pulse is one short dash parked just off the path's end; a transition on
   its offset carries it the full length. Return pulses (one person) run from
   the copy back to the computer; report pulses (organization) run forward. */
.so-pulse {
  fill: none;
  stroke: var(--c-success);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 6 200;
  stroke-dashoffset: 7;
  transition: stroke-dashoffset 0.8s ease-in-out;
}
.so-pulse--fwd,
.so-pulse--again { stroke: var(--c-ember); stroke-dashoffset: -101; }

.so-led { fill: var(--c-success); transition: fill 0.4s var(--ease-standard); }
.so-prog {
  fill: var(--c-success);
  transform: scaleX(1);
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 3s linear, fill 0.4s var(--ease-standard);
}
.so-badge { transform-box: fill-box; transform-origin: center; transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3), opacity 0.3s var(--ease-standard); }
.so-badge circle { fill: var(--c-success); }
.so-badge path { fill: none; stroke: var(--c-bone); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.so-node { stroke: var(--c-success); }
.so-cart { transform: translate(156px, 49px) rotate(90deg); transition: transform 1.2s cubic-bezier(0.4, 0.1, 0.2, 1); }

/* ---- One person: armed, then phase by phase ---- */

.so-scene.is-armed .so-cart { transform: translate(370px, 183px) rotate(0deg); }
.so-scene.is-armed .so-wire { stroke-dashoffset: 100; }
.so-scene.is-armed .so-node { stroke: var(--c-granite); }
.so-scene.is-armed .so-led { fill: var(--c-stone); }
.so-scene.is-armed .so-prog { transform: scaleX(0); fill: var(--c-ember); }
.so-scene.is-armed .so-badge { opacity: 0; transform: scale(0.4); }
.so-scene.is-armed .so-pulse { stroke-dashoffset: -101; }

.so-scene.is-armed.p-in .so-cart { transform: translate(268px, 183px) rotate(0deg); transition-duration: 0.8s; }
.so-scene.is-armed.p-in .so-slot { fill: var(--c-stone); }
.so-scene.is-armed.p-in .so-led--1 { fill: var(--c-ember); }

.so-scene.is-armed.p-wire .so-wire { stroke-dashoffset: 0; }

.so-scene.is-armed.p-flow .so-flow { opacity: 1; animation: so-flow 0.7s linear infinite; }
.so-scene.is-armed.p-flow .so-led { fill: var(--c-ember); animation: so-blink 1s ease-in-out infinite; }
.so-scene.is-armed.p-flow .so-led--2 { animation-delay: 0.3s; }
.so-scene.is-armed.p-flow .so-led--3 { animation-delay: 0.6s; }
.so-scene.is-armed.p-flow .so-prog { transform: scaleX(1); }

.so-scene.is-armed.p-read .so-flow { opacity: 0; }
.so-scene.is-armed.p-read .so-led { animation: none; }

.so-scene.is-armed.p-v1 .so-pulse--1,
.so-scene.is-armed.p-v2 .so-pulse--2,
.so-scene.is-armed.p-v3 .so-pulse--3 { stroke-dashoffset: 7; }
.so-scene.is-armed.p-v1 .so-led--1,
.so-scene.is-armed.p-v2 .so-led--2,
.so-scene.is-armed.p-v3 .so-led--3 { fill: var(--c-success); transition-delay: 0.7s; }
.so-scene.is-armed.p-v1 .so-node--1,
.so-scene.is-armed.p-v2 .so-node--2,
.so-scene.is-armed.p-v3 .so-node--3 { stroke: var(--c-success); transition-delay: 0.7s; }
.so-scene.is-armed.p-v1 .so-badge--1,
.so-scene.is-armed.p-v2 .so-badge--2,
.so-scene.is-armed.p-v3 .so-badge--3 { opacity: 1; transform: none; transition-delay: 0.7s; }

.so-scene.is-armed.p-cov .so-prog { fill: var(--c-success); }
.so-scene.is-armed.p-cov .so-flow { animation: none; }

.so-scene.is-armed.p-out .so-cart { transform: translate(370px, 183px) rotate(0deg); transition-duration: 0.7s; }
.so-scene.is-armed.p-out .so-slot { fill: var(--c-sand); }
.so-scene.is-armed.p-shelf .so-cart { transform: translate(156px, 49px) rotate(90deg); transition-duration: 1.2s; }

/* ---- An organization ---- */

.so-card { fill: var(--c-bone); stroke: var(--border-soft); stroke-width: 1; }
.so-panel { fill: var(--c-bone); stroke: var(--border); stroke-width: 1; }
.so-name { font-size: 12.5px; font-weight: 500; fill: var(--c-burrow); transition: fill 0.5s var(--ease-standard); }
.so-pc__box { fill: var(--c-cream); stroke: var(--c-granite); stroke-width: 1.4; }
.so-pled { fill: var(--c-success); transition: fill 0.4s var(--ease-standard); }
.so-pprog {
  fill: var(--c-success);
  transform: scaleX(1);
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 0.9s linear, fill 0.4s var(--ease-standard);
}
.so-wire--solid { stroke-dasharray: none; }
.so-flag { font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--c-burrow); }
.so-tl { font-family: var(--font-sans); font-size: 12.5px; fill: var(--c-granite); }
.so-tv { font-size: 15px; font-weight: 500; fill: var(--c-den-brown); }
.so-meter {
  fill: var(--c-success);
  transform: scaleX(var(--so-cov, 0.976));
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 0.6s var(--ease-standard);
}
.so-dot { fill: var(--c-success); transition: fill 0.5s var(--ease-standard); }
.so-row { font-size: 11.5px; fill: var(--c-burrow); transition: fill 0.5s var(--ease-standard); }
.so-cnt { font-size: 10.5px; fill: var(--c-granite); letter-spacing: 0.02em; transition: opacity 0.5s var(--ease-standard); }
.so-quiet { font-size: 10.5px; fill: var(--c-stone); letter-spacing: 0.02em; opacity: 0; transition: opacity 0.5s var(--ease-standard); }
.so-av { transform-box: fill-box; transform-origin: center; transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3), opacity 0.3s var(--ease-standard); }
.so-av circle:first-child { fill: var(--c-bone); stroke: var(--c-granite); stroke-width: 1.4; }
.so-av--admin circle:first-child { stroke: var(--c-ember-ink); stroke-width: 1.6; }
.so-av circle + circle { fill: var(--c-granite); }
.so-av path { fill: none; stroke: var(--c-granite); stroke-width: 1.6; stroke-linecap: round; }

.so-pc--0, .so-pulse--r0, .so-av--0 { --so-i: 0; }
.so-pc--1, .so-pulse--r1, .so-av--1 { --so-i: 1; }
.so-pc--2, .so-pulse--r2, .so-av--2 { --so-i: 2; }
.so-pc--3, .so-pulse--r3 { --so-i: 3; }
.so-pc--4, .so-pulse--r4 { --so-i: 4; }
.so-pc--5, .so-pulse--r5 { --so-i: 5; }

.so-scene.is-armed .so-pled { fill: var(--c-stone); }
.so-scene.is-armed .so-pprog { transform: scaleX(0); fill: var(--c-ember); }
.so-scene.is-armed .so-pulse--fwd { stroke-dashoffset: 7; }
.so-scene.is-armed .so-pulse--again { stroke-dashoffset: 7; }
.so-scene.is-armed .so-dot { fill: var(--c-stone); }
.so-scene.is-armed .so-cnt { opacity: 0; }
.so-scene.is-armed .so-av { opacity: 0; transform: scale(0.5); }

.so-scene.is-armed.p-run .so-pled {
  fill: var(--c-ember);
  transition-delay: calc(var(--so-i, 0) * 0.35s);
  animation: so-blink 0.9s ease-in-out infinite;
  animation-delay: calc(var(--so-i, 0) * 0.35s);
}
.so-scene.is-armed.p-done .so-pled { fill: var(--c-success); animation: none; transition-delay: calc(var(--so-i, 0) * 0.35s); }
.so-scene.is-armed.p-run .so-pprog { transform: scaleX(1); transition-delay: calc(var(--so-i, 0) * 0.35s); }
.so-scene.is-armed.p-done .so-pprog { fill: var(--c-success); transition-delay: calc(var(--so-i, 0) * 0.35s); }
.so-scene.is-armed.p-send .so-pulse--fwd { stroke-dashoffset: -101; transition-delay: calc(var(--so-i, 0) * 0.35s); }
.so-scene.is-armed.p-row1 .so-dot--1,
.so-scene.is-armed.p-row2 .so-dot--2,
.so-scene.is-armed.p-row3 .so-dot--3 { fill: var(--c-success); }
.so-scene.is-armed.p-row1 .so-cnt--1,
.so-scene.is-armed.p-row2 .so-cnt--2,
.so-scene.is-armed.p-row3 .so-cnt--3 { opacity: 1; }
.so-scene.is-armed.p-sign .so-av { opacity: 1; transform: none; transition-delay: calc(var(--so-i, 0) * 0.3s); }

/* A quiet station dims; nothing alarms. */
.so-scene.is-armed.p-quiet:not(.p-again) .so-dot--2 { fill: var(--c-stone); }
.so-scene.is-armed.p-quiet:not(.p-again) .so-row--2 { fill: var(--c-stone); }
.so-scene.is-armed.p-quiet:not(.p-again) .so-cnt--2 { opacity: 0; }
.so-scene.is-armed.p-quiet:not(.p-again) .so-quiet { opacity: 1; }
.so-scene.is-armed.p-quiet:not(.p-again) .so-name--2 { fill: var(--c-stone); }
.so-scene.is-armed.p-quiet:not(.p-again) .so-pc--3 .so-pled,
.so-scene.is-armed.p-quiet:not(.p-again) .so-pc--3 .so-pprog { fill: var(--c-stone); transition-delay: 0s; }
.so-scene.is-armed.p-again .so-pulse--again { stroke-dashoffset: -101; }
.so-scene.is-armed.p-again .so-dot--2,
.so-scene.is-armed.p-again .so-pc--3 .so-pled,
.so-scene.is-armed.p-again .so-pc--3 .so-pprog { transition-delay: 0.8s; }
.so-scene.is-armed.p-again .so-row--2,
.so-scene.is-armed.p-again .so-name--2 { transition-delay: 0.8s; }
.so-scene.is-armed.p-again .so-cnt--2,
.so-scene.is-armed.p-again .so-quiet { transition-delay: 0.8s; }

/* ---- Responsive ---- */

@media (max-width: 880px) {
  .so-split { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 560px) {
  .so-facts li { font-size: 14.5px; }
}
