/* Kiro Crew · Spec — didactic landing (pt-BR) */
:root {
  --bg: #090a11;
  --bg-elev: #19161d;
  --bg-card: rgba(25, 22, 29, 0.72);
  --bg-card-solid: #1c1822;
  --border: rgba(198, 160, 255, 0.14);
  --border-strong: rgba(144, 70, 255, 0.45);
  --purple: #9046ff;
  --purple-mid: #9f63ff;
  --purple-soft: #c6a0ff;
  --pink: #ff80b5;
  --text: #a8a2b0;
  --text-soft: #938f9b;
  --heading: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --max: 1100px;
  --narrow: 760px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--purple-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code {
  font-size: 0.9em;
  color: var(--purple-soft);
  background: rgba(144, 70, 255, 0.12);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

pre {
  background: #120f18;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  color: var(--purple-soft);
  line-height: 1.5;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
}

p {
  margin: 0 0 1rem;
}

strong {
  color: #e8e4ef;
  font-weight: 600;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

/* Background ambience */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.orb-a {
  width: 480px;
  height: 480px;
  background: #9046ff;
  top: -120px;
  right: -80px;
}

.orb-b {
  width: 360px;
  height: 360px;
  background: #5b2db3;
  bottom: 20%;
  left: -120px;
  opacity: 0.28;
}

.orb-c {
  width: 280px;
  height: 280px;
  background: #ff80b5;
  bottom: -40px;
  right: 15%;
  opacity: 0.12;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 10, 17, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(9, 10, 17, 0.88);
}

.nav {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-logo {
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  background: rgba(144, 70, 255, 0.16);
}

.nav-links a.nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #6b2fd4);
  margin-left: 0.35rem;
}

.nav-links a.nav-cta:hover {
  filter: brightness(1.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
}

.section.alt {
  background: linear-gradient(180deg, rgba(25, 22, 29, 0.35), transparent);
}

.section.highlight {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(144, 70, 255, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(25, 22, 29, 0.5), transparent);
}

.section-kicker {
  color: var(--purple-soft);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 42rem;
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.path-hint {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  color: var(--purple-soft);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 36rem;
  color: var(--text);
}

.text-gradient {
  background: linear-gradient(120deg, #fff 10%, var(--purple-soft) 55%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero */
.hero {
  padding-top: clamp(3rem, 6vw, 5rem);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.5rem;
}

.hero-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-pills li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  background: rgba(25, 22, 29, 0.5);
}

.hero-card-inner {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.fake-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  background: #120f18;
  border-bottom: 1px solid var(--border);
}

.fake-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3540;
}

.fake-chrome span:nth-child(1) { background: #ff80b5; opacity: 0.7; }
.fake-chrome span:nth-child(2) { background: #c6a0ff; opacity: 0.7; }
.fake-chrome span:nth-child(3) { background: #9046ff; opacity: 0.7; }

.fake-chrome em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.fake-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.fake-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-soft);
  margin-bottom: 0.85rem;
}

.fake-steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fake-steps li {
  position: relative;
  padding: 0.7rem 0.9rem 0.7rem 2.4rem;
  border-radius: 10px;
  background: rgba(144, 70, 255, 0.06);
  border: 1px solid transparent;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.fake-steps li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3540;
}

.fake-steps li.is-done {
  color: #d7d0e0;
}

.fake-steps li.is-done::before {
  background: var(--purple);
  box-shadow: 0 0 0 3px rgba(144, 70, 255, 0.25);
}

.fake-steps li.is-active {
  border-color: var(--border-strong);
  color: #fff;
  background: rgba(144, 70, 255, 0.14);
}

.fake-steps li.is-active::before {
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 128, 181, 0.25);
}

.fake-ears {
  border-radius: 10px;
  background: #0d0b12;
  border: 1px dashed rgba(198, 160, 255, 0.3);
  padding: 0.85rem 1rem;
}

.fake-ears code {
  background: none;
  color: var(--purple-soft);
  font-size: 0.82rem;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), filter 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #6b2fd4);
  box-shadow: 0 10px 30px rgba(144, 70, 255, 0.28);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-ghost {
  color: #e8e4ef;
  background: transparent;
  border-color: var(--border);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(144, 70, 255, 0.1);
  border-color: var(--border-strong);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0;
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.card:hover {
  border-color: rgba(198, 160, 255, 0.35);
  transform: translateY(-2px);
}

.card p:last-child {
  margin-bottom: 0;
}

.note {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--purple);
  background: rgba(144, 70, 255, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-size: 0.98rem;
}

.note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.small {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0.75rem 0 0;
}

.plain-list {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
  color: var(--text);
}

.plain-list li {
  margin-bottom: 0.45rem;
}

/* File cards (Spec anatomy) */
.file-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.file-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

.file-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.file-card.is-inview,
.file-card:hover {
  border-color: rgba(198, 160, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.file-card.is-inview::after,
.file-card:hover::after {
  transform: scaleX(1);
}

.file-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #6b2fd4);
  margin-bottom: 1rem;
}

.file-card[data-file="design"] .file-icon {
  background: linear-gradient(135deg, #9f63ff, #9046ff);
}

.file-card[data-file="tasks"] .file-icon {
  background: linear-gradient(135deg, #c6a0ff, #9046ff);
}

.file-alt {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: -0.25rem;
  margin-bottom: 0.65rem;
}

.ears-box {
  background: rgba(25, 22, 29, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.ears-box h3 {
  margin-bottom: 0.5rem;
}

/* Stepper Spec First */
.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.5rem 0 1.25rem;
}

.step-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(25, 22, 29, 0.6);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 550;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.step-tab:hover {
  color: #fff;
  border-color: rgba(198, 160, 255, 0.35);
}

.step-tab.is-active {
  color: #fff;
  background: rgba(144, 70, 255, 0.28);
  border-color: var(--border-strong);
}

.step-panels {
  position: relative;
  min-height: 180px;
  margin-bottom: 1rem;
}

.step-panel {
  display: none;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  animation: panelIn 0.4s var(--ease);
}

.step-panel.is-active {
  display: block;
}

.mini-code {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.88rem;
}

.step-progress {
  height: 4px;
  background: rgba(144, 70, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.step-progress-bar {
  height: 100%;
  width: 14.28%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: inherit;
  transition: width 0.4s var(--ease);
}

.step-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bugfix contrast */
.contrast-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contrast-panel {
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
}

.contrast-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.contrast-panel li {
  margin-bottom: 0.4rem;
}

.feature-tone {
  border-color: rgba(144, 70, 255, 0.35);
  background:
    linear-gradient(160deg, rgba(144, 70, 255, 0.14), transparent 55%),
    var(--bg-card-solid);
}

.bug-tone {
  border-color: rgba(255, 128, 181, 0.35);
  background:
    linear-gradient(160deg, rgba(255, 128, 181, 0.12), transparent 55%),
    var(--bg-card-solid);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-soft);
  background: rgba(144, 70, 255, 0.16);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.badge.pink {
  color: #ffc0d8;
  background: rgba(255, 128, 181, 0.16);
}

.bug-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Diff table Skills */
.diff-table {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.diff-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.diff-row > div {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 0.95rem;
}

.diff-row > div:last-child {
  border-right: none;
}

.diff-row:last-child > div {
  border-bottom: none;
}

.diff-row.head > div {
  background: rgba(144, 70, 255, 0.12);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Proposal */
.proposal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.proposal-card {
  position: relative;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.proposal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(198, 160, 255, 0.4);
}

.proposal-card.accent {
  grid-column: 1 / -1;
  background:
    linear-gradient(120deg, rgba(144, 70, 255, 0.22), rgba(255, 128, 181, 0.08)),
    var(--bg-card-solid);
  border-color: rgba(198, 160, 255, 0.4);
}

.proposal-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--purple-soft);
  margin-bottom: 0.65rem;
}

.flow-line {
  font-size: 1.05rem;
  color: #e8e4ef;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 3.5rem;
  background: #07080e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-note {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin: 0;
}

.footer-heading {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--purple-soft);
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .orb {
    display: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .card-grid.three,
  .file-cards,
  .bug-phases,
  .contrast-panels,
  .proposal-grid,
  .footer-grid,
  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .proposal-card.accent {
    grid-column: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: rgba(9, 10, 17, 0.96);
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 0.15rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0.9rem;
  }

  .nav-links a.nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .stepper {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }

  .step-tab {
    flex: 0 0 auto;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

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

  .diff-row > div {
    border-right: none;
  }

  .diff-row.head > div:last-child {
    border-top: 1px solid var(--border);
  }
}

/* —— Spike page —— */
.spike-hero {
  min-height: calc(85vh - var(--header-h));
}

.spike-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.proposta-cta {
  margin: 0 0 1.75rem;
}

.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(144, 70, 255, 0.16);
}

/* Orchestrator numbered steps */
.orch-steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  counter-reset: none;
}

.orch-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.2rem 1.35rem;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    border-color 0.25s ease;
}

.orch-step.is-inview {
  opacity: 1;
  transform: none;
}

.orch-step:hover {
  border-color: rgba(198, 160, 255, 0.35);
}

.orch-step h3 {
  margin-bottom: 0.35rem;
}

.orch-step p {
  margin: 0;
  font-size: 0.98rem;
}

.orch-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #6b2fd4);
  box-shadow: 0 8px 20px rgba(144, 70, 255, 0.28);
  flex-shrink: 0;
}

/* Specialized agent cards */
.agent-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.agent-card {
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.agent-card.is-inview {
  opacity: 1;
  transform: none;
}

.agent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.agent-card.is-inview:hover {
  transform: translateY(-3px);
}

.agent-bug {
  border-color: rgba(255, 128, 181, 0.35);
  background:
    linear-gradient(160deg, rgba(255, 128, 181, 0.12), transparent 55%),
    var(--bg-card-solid);
}

.agent-change {
  border-color: rgba(159, 99, 255, 0.4);
  background:
    linear-gradient(160deg, rgba(159, 99, 255, 0.14), transparent 55%),
    var(--bg-card-solid);
}

.agent-feature {
  border-color: rgba(144, 70, 255, 0.4);
  background:
    linear-gradient(160deg, rgba(144, 70, 255, 0.16), transparent 55%),
    var(--bg-card-solid);
}

.agent-card .plain-list {
  margin-top: 0.75rem;
}

/* Animated pipeline (#fluxo) — presentation board */
.pipe-container {
  max-width: 1100px;
}

.pipe-shell {
  margin-top: 1.25rem;
}

/* Controls ABOVE diagram — sticky under section title */
.pipe-controls {
  position: sticky;
  top: calc(var(--header-h) + 4px);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.7rem 0.85rem;
  margin: 0 0 0.85rem;
  background: rgba(25, 22, 29, 0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.pipe-controls-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pipe-controls .btn {
  min-height: 2.55rem;
}

.pipe-btn-step {
  min-width: 2.7rem;
  padding-inline: 0.7rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.pipe-step-label {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-soft);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.pipe-hint {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.pipe-hint kbd {
  display: inline-block;
  padding: 0.05em 0.4em;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: rgba(144, 70, 255, 0.12);
  color: var(--purple-soft);
  font-size: 0.85em;
}

/* Stage */
.pipeline {
  --pipe-max: 1000px;
  position: relative;
  max-width: var(--pipe-max);
  margin: 0 auto;
  padding: 1.1rem 1rem 1.15rem;
  background:
    radial-gradient(ellipse 70% 35% at 50% 0%, rgba(144, 70, 255, 0.12), transparent 55%),
    var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 12rem;
}

.pipeline::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(144, 70, 255, 0.06) 0, transparent 40%),
    radial-gradient(circle at 82% 72%, rgba(255, 128, 181, 0.05) 0, transparent 38%);
  pointer-events: none;
}

/* Idle hint (compact until started) */
.pipe-idle {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 8.5rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  font-size: 1.08rem;
  color: var(--text-soft);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s var(--ease);
}

.pipe-idle strong {
  color: var(--purple-soft);
}

.pipe-idle-dash {
  position: absolute;
  inset: 0.65rem;
  border: 1.5px dashed rgba(198, 160, 255, 0.32);
  border-radius: 12px;
  pointer-events: none;
}

.pipeline.is-started .pipe-idle,
.pipeline.is-playing .pipe-idle {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Compact idle: board hidden until Iniciar / first step */
.pipeline:not(.is-started):not(.is-playing) {
  min-height: 10.5rem;
  max-height: none;
}

.pipeline:not(.is-started):not(.is-playing) .pipe-board {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.pipeline.is-started .pipe-idle-dash,
.pipeline.is-playing .pipe-idle-dash {
  display: none;
}

/* 2-column board (desktop default; mobile overrides) */
.pipe-board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.pipe-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pipe-col-label {
  display: none;
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-soft);
}

.pipe-bridge {
  display: none;
}

/* Nodes */
.pipe-node {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.75rem 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(9, 10, 17, 0.55);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.pipe-node.is-lit {
  opacity: 1;
  transform: none;
  border-color: rgba(198, 160, 255, 0.32);
  box-shadow:
    0 0 0 1px rgba(144, 70, 255, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.28);
}

.pipe-node.is-active {
  border-color: var(--border-strong);
  background:
    linear-gradient(135deg, rgba(144, 70, 255, 0.18), rgba(255, 128, 181, 0.06)),
    rgba(9, 10, 17, 0.65);
  box-shadow:
    0 0 22px rgba(144, 70, 255, 0.28),
    0 12px 32px rgba(0, 0, 0, 0.35);
}

.pipe-node-final.is-pulse {
  animation: pipeFinalPulse 1.1s var(--ease) 1;
}

@keyframes pipeFinalPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 128, 181, 0.25),
      0 12px 32px rgba(0, 0, 0, 0.28);
  }
  45% {
    box-shadow:
      0 0 0 2px rgba(255, 128, 181, 0.55),
      0 0 40px rgba(255, 128, 181, 0.35),
      0 16px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 128, 181, 0.65);
  }
}

.pipe-node-final.is-lit {
  border-color: rgba(255, 128, 181, 0.4);
  background:
    linear-gradient(145deg, rgba(255, 128, 181, 0.14), rgba(144, 70, 255, 0.08)),
    rgba(9, 10, 17, 0.6);
}

.pipe-badge {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(144, 70, 255, 0.55), rgba(107, 47, 212, 0.75));
  box-shadow: 0 6px 16px rgba(144, 70, 255, 0.22);
  transition: box-shadow 0.35s ease, transform 0.35s var(--ease);
}

.pipe-node.is-active .pipe-badge,
.pipe-node.is-lit .pipe-badge {
  background: linear-gradient(135deg, var(--purple), #6b2fd4);
  box-shadow: 0 0 18px rgba(144, 70, 255, 0.45);
}

.pipe-node-final.is-lit .pipe-badge {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 0 18px rgba(255, 128, 181, 0.4);
}

.pipe-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  color: var(--purple-soft);
  background: rgba(144, 70, 255, 0.12);
  border: 1px solid rgba(198, 160, 255, 0.18);
}

.pipe-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.pipe-node-final .pipe-icon {
  color: var(--pink);
  background: rgba(255, 128, 181, 0.12);
  border-color: rgba(255, 128, 181, 0.25);
}

.pipe-body { min-width: 0; }

.pipe-title {
  margin: 0 0 0.12rem;
  font-size: 1.02rem;
  font-weight: 650;
  color: #fff;
  letter-spacing: -0.01em;
}

.pipe-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.35;
}

.pipe-tip {
  grid-column: 1 / -1;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.82rem;
  color: var(--purple-soft);
  line-height: 1.4;
  transition:
    max-height 0.35s var(--ease),
    opacity 0.3s ease,
    margin 0.3s ease,
    padding 0.3s ease;
}

.pipe-node.is-open .pipe-tip {
  max-height: 5.5rem;
  opacity: 1;
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(198, 160, 255, 0.14);
}

/* Rails */
.pipe-rail {
  position: relative;
  z-index: 1;
  width: 2px;
  height: 0.95rem;
  margin: 0.05rem auto;
  border-radius: 2px;
  background: rgba(198, 160, 255, 0.12);
  overflow: hidden;
}

.pipe-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--purple), var(--pink));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
  box-shadow: 0 0 12px rgba(144, 70, 255, 0.55);
}

.pipe-rail.is-drawn::after { transform: scaleY(1); }

.pipe-rail-glow {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--purple-soft);
  opacity: 0;
  box-shadow: 0 0 12px 3px rgba(144, 70, 255, 0.65);
  pointer-events: none;
}

.pipe-rail.is-drawn .pipe-rail-glow {
  opacity: 1;
  animation: pipeGlowTravel 1.8s var(--ease) infinite;
}

@keyframes pipeGlowTravel {
  0% { top: -4px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 0.85; }
  100% { top: calc(100% - 4px); opacity: 0; }
}

/* Branch */
.pipe-branch {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin: 0.15rem 0 0.2rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.pipe-branch.is-lit {
  opacity: 1;
  transform: none;
}

.pipe-branch-svg {
  width: min(100%, 340px);
  height: 40px;
  overflow: visible;
}

.pipe-branch-path {
  fill: none;
  stroke: rgba(198, 160, 255, 0.22);
  stroke-width: 2;
  stroke-linecap: round;
}

.pipe-branch.is-lit .pipe-branch-path {
  stroke: var(--purple-mid);
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  filter: drop-shadow(0 0 4px rgba(144, 70, 255, 0.35));
}

.pipe-branch.is-drawn .pipe-branch-fan {
  animation: pipeDashDraw 0.65s var(--ease) forwards;
}
.pipe-branch.is-drawn .pipe-branch-fan:nth-child(1) { animation-delay: 0.04s; }
.pipe-branch.is-drawn .pipe-branch-fan:nth-child(2) { animation-delay: 0.1s; }
.pipe-branch.is-drawn .pipe-branch-fan:nth-child(3) { animation-delay: 0.16s; }

.pipe-branch.is-merged .pipe-branch-merge {
  animation: pipeDashDraw 0.7s var(--ease) forwards;
}
.pipe-branch.is-merged .pipe-branch-merge:nth-child(1) { animation-delay: 0.04s; }
.pipe-branch.is-merged .pipe-branch-merge:nth-child(2) { animation-delay: 0.1s; }
.pipe-branch.is-merged .pipe-branch-merge:nth-child(3) { animation-delay: 0.16s; }

@keyframes pipeDashDraw {
  to { stroke-dashoffset: 0; }
}

.pipe-branch.is-pulsing.is-merged .pipe-branch-path {
  animation: pipeDashPulse 2.4s linear infinite;
  stroke-dasharray: 8 10;
  stroke-dashoffset: 0;
}

@keyframes pipeDashPulse {
  to { stroke-dashoffset: -36; }
}

.pipe-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.1rem 0.2rem;
}

.pipe-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  color: #fff;
  border: 1px solid var(--border);
  background: rgba(9, 10, 17, 0.7);
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.pipe-pill.is-lit {
  opacity: 1;
  transform: none;
  box-shadow: 0 0 16px rgba(144, 70, 255, 0.18);
}

.pipe-pill-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--purple-soft);
  box-shadow: 0 0 8px currentColor;
}

.pipe-pill-bug {
  border-color: rgba(255, 128, 181, 0.4);
  background: linear-gradient(135deg, rgba(255, 128, 181, 0.16), rgba(9, 10, 17, 0.7));
}
.pipe-pill-bug .pipe-pill-dot { background: var(--pink); color: var(--pink); }

.pipe-pill-change {
  border-color: rgba(159, 99, 255, 0.45);
  background: linear-gradient(135deg, rgba(159, 99, 255, 0.18), rgba(9, 10, 17, 0.7));
}
.pipe-pill-change .pipe-pill-dot { background: var(--purple-mid); color: var(--purple-mid); }

.pipe-pill-feature {
  border-color: rgba(144, 70, 255, 0.5);
  background: linear-gradient(135deg, rgba(144, 70, 255, 0.2), rgba(9, 10, 17, 0.7));
}
.pipe-pill-feature .pipe-pill-dot { background: var(--purple); color: var(--purple); }

.pipe-branch-caption {
  margin: 0.1rem 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pipe-branch-caption span {
  display: inline-grid;
  place-items: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.2rem;
  border-radius: 6px;
  font-size: 0.65rem;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #6b2fd4);
}

.pipeline.is-complete .pipe-node.is-lit { opacity: 1; }

/* —— Desktop board (≥900px): 2-column discovery | delivery —— */
@media (min-width: 900px) {
  .pipeline {
    --pipe-max: 1000px;
    padding: 1.15rem 1.15rem 1.25rem;
    max-height: min(78vh, 820px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(144, 70, 255, 0.35) transparent;
  }

  .pipe-board {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: 0.5rem 0.75rem;
    align-items: start;
  }

  .pipe-col-label {
    display: block;
  }

  .pipe-col {
    padding: 0.65rem 0.7rem 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(198, 160, 255, 0.12);
    background: rgba(9, 10, 17, 0.28);
  }

  .pipe-bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    gap: 0.5rem;
    padding-top: 2.5rem;
  }

  .pipe-bridge-line {
    flex: 1;
    width: 2px;
    min-height: 4rem;
    max-height: 12rem;
    border-radius: 2px;
    background: linear-gradient(
      180deg,
      transparent,
      rgba(198, 160, 255, 0.35) 20%,
      rgba(255, 128, 181, 0.4) 80%,
      transparent
    );
  }

  .pipe-bridge-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
  }

  .pipe-node {
    padding: 0.72rem 0.85rem;
  }

  .pipe-title {
    font-size: 1.05rem;
  }

  .pipe-rail {
    height: 0.75rem;
  }

  .pipe-branch {
    margin-top: 0.25rem;
  }

  .pipe-branch-svg {
    width: 100%;
    max-width: none;
    height: 36px;
  }

  .pipe-pills {
    gap: 0.4rem;
  }

  .pipe-pill {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 2.4rem;
    font-size: 0.8rem;
    padding: 0.45rem 0.55rem;
  }

  .pipe-step-label {
    font-size: 0.95rem;
  }
}

/* —— Mobile / narrow (<900px): single-column story timeline —— */
@media (max-width: 899.98px) {
  .pipe-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    top: calc(var(--header-h) + 2px);
  }

  .pipe-controls-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .pipe-controls-btns .btn {
    width: 100%;
    min-width: 0;
    font-size: 0.88rem;
    padding-inline: 0.55rem;
  }

  .pipe-step-label {
    margin-left: 0;
    text-align: center;
    white-space: normal;
    font-size: 0.88rem;
  }

  .pipeline {
    --pipe-max: none;
    max-width: none;
    width: 100%;
    padding: 0.85rem 0.55rem 1rem;
    border-radius: 14px;
  }

  .pipe-board {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .pipe-col-label,
  .pipe-bridge {
    display: none !important;
  }

  .pipe-col {
    display: flex;
    flex-direction: column;
  }

  .pipe-node {
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: auto 1fr;
    gap: 0.7rem 0.8rem;
    padding: 1rem 0.95rem;
    min-height: 3.4rem;
    border-radius: 12px;
  }

  .pipe-icon { display: none; }

  .pipe-badge {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.9rem;
  }

  .pipe-title { font-size: 1.08rem; }
  .pipe-sub { font-size: 0.88rem; }
  .pipe-tip { font-size: 0.9rem; }

  .pipe-node.is-open .pipe-tip { max-height: 6.5rem; }

  .pipe-rail {
    height: 1.15rem;
    margin: 0.15rem auto;
  }

  /* No SVG fan — stacked agent cards */
  .pipe-branch-svg {
    display: none !important;
  }

  .pipe-branch {
    width: 100%;
    align-items: stretch;
    gap: 0;
    margin: 0.1rem 0 0.15rem;
  }

  .pipe-branch::before,
  .pipe-branch::after {
    content: "";
    display: block;
    width: 2px;
    height: 1.1rem;
    margin: 0.15rem auto;
    border-radius: 2px;
    background: rgba(198, 160, 255, 0.12);
    transition: background 0.35s ease, box-shadow 0.35s ease;
  }

  .pipe-branch.is-drawn::before {
    background: linear-gradient(180deg, var(--purple), var(--pink));
    box-shadow: 0 0 12px rgba(144, 70, 255, 0.45);
  }

  .pipe-branch.is-merged::after {
    background: linear-gradient(180deg, var(--purple), var(--pink));
    box-shadow: 0 0 12px rgba(144, 70, 255, 0.45);
  }

  .pipe-pills {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.7rem;
    padding: 0.05rem 0;
  }

  .pipe-pill {
    position: relative;
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    gap: 0.55rem;
    min-height: 3.1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 650;
  }

  .pipe-pill:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 0.7rem;
    margin-left: -1px;
    border-radius: 2px;
    background: rgba(198, 160, 255, 0.14);
    pointer-events: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
  }

  .pipe-branch.is-drawn .pipe-pill.is-lit:not(:last-child)::after {
    background: linear-gradient(180deg, var(--purple), var(--pink));
    box-shadow: 0 0 8px rgba(144, 70, 255, 0.4);
  }

  .pipe-pill-dot {
    width: 0.55rem;
    height: 0.55rem;
    flex-shrink: 0;
  }

  .pipe-branch-caption {
    justify-content: center;
    margin: 0.5rem 0 0.1rem;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orch-step,
  .agent-card {
    opacity: 1;
    transform: none;
  }

  .pipe-node,
  .pipe-branch,
  .pipe-pill {
    transition: none !important;
    animation: none !important;
  }

  .pipe-node.is-lit,
  .pipe-branch.is-lit,
  .pipe-pill.is-lit {
    opacity: 1;
    transform: none;
  }

  .pipe-rail::after {
    transition: none !important;
  }

  .pipe-rail-glow,
  .pipe-node-final.is-pulse {
    animation: none !important;
  }

  .pipe-branch.is-lit .pipe-branch-path,
  .pipe-branch.is-drawn .pipe-branch-fan,
  .pipe-branch.is-merged .pipe-branch-merge,
  .pipe-branch.is-pulsing.is-merged .pipe-branch-path {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    stroke-dasharray: none !important;
  }

  .pipe-branch.is-drawn::before,
  .pipe-branch.is-merged::after,
  .pipe-branch.is-drawn .pipe-pill.is-lit:not(:last-child)::after {
    background: linear-gradient(180deg, var(--purple), var(--pink)) !important;
  }
}
