/* SOIBOI studio refresh — landing page only */
:root {
  --ink: #08131e;
  --ink-2: #0d1b28;
  --paper: #f5f2ea;
  --paper-2: #e9e5dc;
  --lime: #d9ff3f;
  --lime-soft: #cceb36;
  --line-dark: rgba(245, 242, 234, 0.16);
  --line-light: rgba(8, 19, 30, 0.14);
  --gutter: clamp(1.25rem, 4.2vw, 5rem);
  --header-height: 5rem;
}

body {
  background: var(--ink);
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}

main {
  display: flex;
  flex-direction: column;
}

#top { order: 1; }
#systems { order: 2; }
#work { order: 3; }
#demos { order: 4; }
#videos { order: 5; }
#charts { order: 6; }
#decks { order: 7; }
#pricing { order: 8; }
#testimonials { order: 9; }
#about { order: 10; }
#faq { order: 11; }
#related { order: 12; }
#contact { order: 13; }

.site-header {
  min-height: var(--header-height);
  border-bottom-color: rgba(245, 242, 234, 0.11);
  background: rgba(8, 19, 30, 0.34);
  backdrop-filter: blur(20px) saturate(125%);
}

.site-header.is-scrolled {
  min-height: 4.35rem;
  background: rgba(8, 19, 30, 0.92);
}

.site-header::after {
  right: var(--gutter);
  bottom: -0.15rem;
  box-shadow: 0 0 1rem rgba(217, 255, 63, 0.5);
}

.wordmark {
  font-size: 1.65rem;
  letter-spacing: -0.075em;
}

.primary-nav {
  gap: clamp(1rem, 1.7vw, 2rem);
  font-size: 0.72rem;
}

.primary-nav a {
  color: rgba(245, 242, 234, 0.7);
  transition: color 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active {
  color: var(--paper);
}

.header-cta {
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(245, 242, 234, 0.22);
  border-radius: 999px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: var(--lime);
  color: var(--ink);
  background: var(--lime);
}

.header-cta:hover span,
.header-cta:focus-visible span {
  color: var(--ink);
}

.hero {
  min-height: 100svh;
  padding: var(--header-height) var(--gutter) 1.35rem;
  background: #07111b;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(7, 17, 27, 0.98) 0%, rgba(7, 17, 27, 0.9) 32%, rgba(7, 17, 27, 0.4) 61%, rgba(7, 17, 27, 0.08) 100%),
    linear-gradient(0deg, rgba(7, 17, 27, 0.85), transparent 48%);
}

.hero::after {
  opacity: 0.6;
  background-size: 7rem 7rem;
  mask-image: linear-gradient(90deg, black, transparent 58%);
}

.hero-photo {
  object-position: 58% center;
  filter: saturate(0.74) contrast(1.08) brightness(0.92);
  animation: heroCamera 18s ease-in-out infinite alternate;
}

.hero-grid {
  max-width: 86rem;
  min-height: calc(100svh - var(--header-height) - 3.5rem);
}

.hero-copy {
  width: min(48rem, 58vw);
}

.hero-brand {
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
  color: var(--lime);
}

.hero h1 {
  max-width: 11.5ch;
  font-size: calc(clamp(4.2rem, 6.9vw, 7.9rem) * var(--theme-hero-scale));
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.hero-summary {
  max-width: 34rem;
  color: rgba(245, 242, 234, 0.76);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  min-height: 3.55rem;
  border-radius: 999px;
  padding-right: 0.95rem;
  padding-left: 1.3rem;
  box-shadow: none;
}

.button--lime {
  box-shadow: 0 0.85rem 2.5rem rgba(217, 255, 63, 0.14);
}

.hero .text-link {
  color: rgba(245, 242, 234, 0.82);
}

.hero-footer {
  max-width: 86rem;
  color: rgba(245, 242, 234, 0.5);
}

.section-title,
.demos-heading .section-title {
  text-wrap: balance;
}

.systems {
  grid-template-columns: minmax(0, 1.32fr) minmax(22rem, 0.68fr);
  min-height: 0;
  background: var(--paper);
}

.systems-main {
  padding: clamp(6rem, 9vw, 9rem) clamp(2rem, 6vw, 7rem) clamp(5rem, 8vw, 8rem) var(--gutter);
}

.systems-main > .section-title {
  max-width: 11ch;
}

.signal-installation {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: clamp(3rem, 5vw, 4.5rem) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  background: var(--ink);
  box-shadow: 0 1.75rem 5rem rgba(8, 19, 30, 0.17);
}

.signal-installation::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 46%, rgba(5, 12, 19, 0.82) 100%),
    linear-gradient(90deg, rgba(5, 12, 19, 0.25), transparent 50%);
}

.signal-installation img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 900ms ease;
}

.signal-installation:hover img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.025);
}

.signal-installation figcaption {
  position: absolute;
  z-index: 3;
  right: clamp(1.2rem, 3vw, 2.25rem);
  bottom: clamp(1.2rem, 3vw, 2.25rem);
  left: clamp(1.2rem, 3vw, 2.25rem);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  color: var(--paper);
}

.signal-installation figcaption span {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-installation figcaption strong {
  max-width: 18rem;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.25;
  text-align: right;
}

.capability-list {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-light);
}

.capability {
  min-height: 7.5rem;
  border-bottom-color: var(--line-light);
  transition: padding 250ms ease, background 250ms ease;
}

.capability:hover {
  padding-right: 1rem;
  padding-left: 1rem;
  background: rgba(8, 19, 30, 0.035);
}

.process-panel {
  min-height: 100%;
  padding-right: clamp(1.5rem, 3vw, 3rem);
  padding-left: clamp(1.5rem, 3vw, 3rem);
  background: var(--ink);
}

.process-panel::before {
  background: linear-gradient(180deg, rgba(8, 19, 30, 0.95), rgba(8, 19, 30, 0.7) 48%, rgba(8, 19, 30, 0.98));
}

.process-list li {
  border-bottom-color: rgba(245, 242, 234, 0.15);
}

.work {
  padding: clamp(6rem, 9vw, 9rem) var(--gutter);
  background:
    radial-gradient(circle at 78% 28%, rgba(217, 255, 63, 0.07), transparent 25rem),
    var(--ink);
}

.work-heading,
.featured-work {
  max-width: 86rem;
}

.featured-work {
  gap: clamp(3rem, 6vw, 6.5rem);
  border-top: 1px solid rgba(245, 242, 234, 0.14);
}

.featured-copy h3 {
  font-size: clamp(3rem, 4.6vw, 5.2rem);
}

.command-board {
  border-color: rgba(245, 242, 234, 0.16);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 78% 8%, rgba(217, 255, 63, 0.12), transparent 15rem),
    linear-gradient(145deg, #142331, #0a151f 68%);
  box-shadow: 0 2.4rem 7rem rgba(0, 0, 0, 0.26);
}

.command-stage,
.command-output-list li {
  transition: border-color 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.demos {
  padding: clamp(6rem, 9vw, 9rem) var(--gutter);
  background: var(--paper);
}

.demos-heading,
.demo-workbench {
  max-width: 86rem;
}

.demos-heading {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem);
}

.demos-heading .section-title {
  font-size: clamp(3.2rem, 5.4vw, 6rem);
}

.demo-workbench {
  overflow: hidden;
  border-color: rgba(8, 19, 30, 0.12);
  border-radius: 1rem;
  clip-path: none;
  box-shadow: 0 2rem 6rem rgba(8, 19, 30, 0.1);
}

.demo-tabs button {
  min-height: 4rem;
  border-right-color: rgba(8, 19, 30, 0.12);
  transition: color 180ms ease, background 180ms ease;
}

.demo-tabs button[aria-selected="true"] {
  background: var(--lime);
}

.demo-input-side {
  border-right-color: rgba(8, 19, 30, 0.14);
}

.demo-output {
  background-color: var(--ink-2);
}

.decks {
  padding: clamp(6rem, 9vw, 9rem) var(--gutter);
  background: #0b1722;
}

.decks-header,
.deck-rail {
  max-width: 86rem;
}

.deck-item {
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.deck-item:hover {
  transform: translateY(-0.45rem);
}

.deck-cover {
  overflow: hidden;
  border-radius: 0.8rem;
  box-shadow: 0 1.8rem 4rem rgba(0, 0, 0, 0.2);
}

.pricing {
  padding-top: clamp(6rem, 9vw, 9rem);
  padding-bottom: clamp(6rem, 9vw, 9rem);
  background: var(--paper);
}

.pricing-grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: 1rem;
  background: var(--line-light);
}

.pricing-card {
  border: 0;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.pricing-card--featured {
  color: var(--paper);
  background: var(--ink-2);
}

.about {
  gap: clamp(3rem, 7vw, 8rem);
  padding: clamp(6rem, 9vw, 9rem) var(--gutter);
  background: var(--paper-2);
}

.about-copy,
.about-visual {
  align-self: center;
}

.about-image {
  border-radius: 1rem;
  box-shadow: 0 2rem 5rem rgba(8, 19, 30, 0.16);
}

.about-image img {
  filter: saturate(0.8) contrast(1.03);
}

.faq {
  background: var(--paper);
}

.faq-item {
  border-color: var(--line-light);
}

.contact {
  min-height: 38rem;
  padding: clamp(6rem, 10vw, 10rem) var(--gutter);
  background:
    radial-gradient(circle at 78% 34%, rgba(217, 255, 63, 0.12), transparent 20rem),
    var(--ink-2);
}

.contact-copy,
.contact-actions {
  position: relative;
  z-index: 1;
}

.contact h2 {
  max-width: 10.5ch;
  font-size: clamp(3.4rem, 6vw, 6.8rem);
}

.site-footer {
  background: #050d14;
}

@keyframes heroCamera {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to { transform: scale(1.045) translate3d(-0.35%, 0, 0); }
}

@media (max-width: 1180px) {
  .primary-nav {
    gap: 1rem;
  }

  .systems {
    grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  }

  .signal-installation figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .signal-installation figcaption strong {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 50rem;
  }

  .hero-grid {
    min-height: calc(50rem - var(--header-height) - 3.5rem);
  }

  .hero-copy {
    width: min(42rem, 88vw);
  }

  .hero h1 {
    font-size: clamp(3.8rem, 10vw, 6rem);
  }

  .systems {
    grid-template-columns: 1fr;
  }

  .systems-main {
    padding-right: var(--gutter);
  }

  .process-panel {
    min-height: 46rem;
  }

  .featured-work,
  .demos-heading {
    grid-template-columns: 1fr;
  }

  .demos-heading {
    align-items: start;
  }

  .pricing-grid {
    gap: 1px;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 43rem;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(7, 17, 27, 0.97), rgba(7, 17, 27, 0.62)),
      linear-gradient(0deg, rgba(7, 17, 27, 0.92), transparent 56%);
  }

  .hero-photo {
    object-position: 64% center;
  }

  .hero-grid {
    min-height: calc(43rem - var(--header-height) - 4rem);
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    max-width: 9.2ch;
    font-size: clamp(3.15rem, 14vw, 4.35rem);
  }

  .hero-summary {
    max-width: 29rem;
    font-size: 0.93rem;
  }

  .signal-installation {
    aspect-ratio: 4 / 5;
  }

  .signal-installation img {
    object-position: 59% center;
  }

  .signal-installation figcaption {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .capability:hover {
    padding-right: 0;
    padding-left: 0;
    background: transparent;
  }

  .demo-workbench,
  .command-board,
  .pricing-grid,
  .about-image {
    border-radius: 0.7rem;
  }

  .contact {
    min-height: 34rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo {
    animation: none !important;
  }
}

/* Three visual operating instruments */

/* 01 — Hero pipeline pulse */
.hero-pipeline-band {
  order: 1;
  padding: 0 var(--gutter);
  color: var(--paper);
  border-top: 1px solid rgba(245, 242, 234, 0.12);
  border-bottom: 1px solid rgba(245, 242, 234, 0.14);
  background: #050e16;
}

.hero-pipeline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(10rem, 0.42fr) minmax(22rem, 1.5fr) minmax(9rem, 0.38fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  width: min(86rem, 100%);
  min-height: 8.5rem;
  padding: 1.25rem 0;
  margin: 0 auto;
  color: var(--paper);
}

.hero-pipeline__topline,
.hero-pipeline > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.hero-pipeline__topline span,
.hero-pipeline__topline strong,
.hero-pipeline > p {
  font-family: var(--mono);
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-pipeline__topline span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: rgba(245, 242, 234, 0.7);
}

.hero-pipeline__topline i {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(217, 255, 63, 0.55);
  animation: heroPipelineLive 2.4s ease-out infinite;
}

.hero-pipeline__topline strong {
  color: var(--lime);
}

.hero-pipeline__flow {
  position: relative;
  min-width: 0;
  padding: 0.8rem 0 0.15rem;
}

.hero-pipeline__meter {
  position: relative;
  height: 1.5rem;
}

.hero-pipeline__meter::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(245, 242, 234, 0.2);
}

.hero-pipeline__beam {
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  width: 18%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  filter: drop-shadow(0 0 0.35rem rgba(217, 255, 63, 0.75));
  animation: heroPipelineBeam 3.6s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.hero-pipeline__point {
  position: absolute;
  top: calc(50% - 0.25rem);
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid rgba(217, 255, 63, 0.8);
  border-radius: 50%;
  background: var(--ink);
  animation: heroPipelinePoint 3.6s ease-in-out infinite;
}

.hero-pipeline__point--research { left: 0; }
.hero-pipeline__point--qualify { left: calc(50% - 0.25rem); animation-delay: 0.55s; }
.hero-pipeline__point--act { right: 0; animation-delay: 1.1s; }

.hero-pipeline ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0;
  margin: 0.45rem 0 0;
  list-style: none;
}

.hero-pipeline li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245, 242, 234, 0.75);
  font-size: 0.56rem;
  font-weight: 600;
}

.hero-pipeline li:nth-child(2) {
  justify-content: center;
}

.hero-pipeline li:last-child {
  justify-content: flex-end;
}

.hero-pipeline li span {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.46rem;
}

.hero-pipeline > p {
  margin: 0;
  color: rgba(245, 242, 234, 0.5);
}

.hero-pipeline > p strong {
  color: var(--lime);
  font-size: 0.72rem;
}

/* 02 — Agentic sales loop */
.agent-loop {
  position: relative;
  display: grid;
  grid-template-columns: minmax(13rem, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: min(86rem, 100%);
  padding: clamp(1.5rem, 3vw, 2.4rem) 0 clamp(2rem, 4vw, 3rem);
  margin: clamp(-2.5rem, -3vw, -1.5rem) auto clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid rgba(8, 19, 30, 0.18);
  border-bottom: 1px solid rgba(8, 19, 30, 0.18);
}

.agent-loop__intro span {
  display: block;
  margin-bottom: 0.55rem;
  color: #5d6f00;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-loop__intro strong {
  display: block;
  max-width: 17rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.agent-loop__stages {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.agent-loop__stages li {
  position: relative;
  min-width: 0;
  padding: 0.8rem 0.65rem 0.8rem 1rem;
  border-left: 1px solid rgba(8, 19, 30, 0.16);
  animation: agentStage 6.4s ease-in-out infinite;
}

.agent-loop__stages li:nth-child(2) { animation-delay: 1.6s; }
.agent-loop__stages li:nth-child(3) { animation-delay: 3.2s; }
.agent-loop__stages li:nth-child(4) { animation-delay: 4.8s; }

.agent-loop__stages i {
  display: block;
  margin-bottom: 0.7rem;
  color: #718400;
  font-family: var(--mono);
  font-size: 0.55rem;
  font-style: normal;
}

.agent-loop__stages strong,
.agent-loop__stages span {
  display: block;
}

.agent-loop__stages strong {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
}

.agent-loop__stages span {
  margin-top: 0.25rem;
  color: rgba(8, 19, 30, 0.56);
  font-size: 0.62rem;
}

.agent-loop__rail {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: calc(31% + 1rem);
  height: 2px;
  overflow: hidden;
  background: rgba(8, 19, 30, 0.12);
}

.agent-loop__rail span {
  display: block;
  width: 18%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  box-shadow: 0 0 1rem rgba(217, 255, 63, 0.45);
  animation: agentRail 6.4s linear infinite;
}

/* 03 — Presentation decision wave */
.decision-wave {
  grid-column: 1 / -1;
  width: 100%;
  padding: 1.1rem 0 0;
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  border-top: 1px solid rgba(245, 242, 234, 0.16);
  border-bottom: 1px solid rgba(245, 242, 234, 0.16);
}

.decision-wave__topline,
.decision-wave figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.decision-wave__topline span,
.decision-wave__topline strong,
.decision-wave figcaption {
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-wave__topline span {
  color: var(--lime);
}

.decision-wave__topline strong {
  color: rgba(245, 242, 234, 0.58);
}

.decision-wave svg {
  width: 100%;
  height: clamp(9rem, 15vw, 13rem);
  overflow: visible;
}

.decision-wave__grid {
  fill: none;
  stroke: rgba(245, 242, 234, 0.09);
  stroke-width: 1;
  stroke-dasharray: 2 6;
}

.decision-wave__area {
  fill: rgba(217, 255, 63, 0.035);
  opacity: 0;
  animation: decisionArea 7s ease-in-out infinite;
}

.decision-wave__line {
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 0.35rem rgba(217, 255, 63, 0.5));
  animation: decisionDraw 7s cubic-bezier(0.65, 0, 0.2, 1) infinite;
}

.decision-wave__node {
  fill: var(--ink);
  stroke: var(--lime);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: decisionNode 7s ease-in-out infinite;
}

.decision-wave__node--one { animation-delay: 0.65s; }
.decision-wave__node--two { animation-delay: 1.3s; }
.decision-wave__node--three { animation-delay: 1.95s; }

.decision-wave figcaption {
  padding: 0.75rem 0 1rem;
  color: rgba(245, 242, 234, 0.46);
}

.decision-wave figcaption span:nth-child(2) {
  color: rgba(245, 242, 234, 0.7);
}

.decision-wave figcaption span:last-child {
  color: var(--lime);
}

@keyframes heroPipelineLive {
  0% { box-shadow: 0 0 0 0 rgba(217, 255, 63, 0.55); }
  72% { box-shadow: 0 0 0 0.42rem rgba(217, 255, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 255, 63, 0); }
}

@keyframes heroPipelineBeam {
  0% { opacity: 0; transform: translateX(-0.5rem); }
  16% { opacity: 1; }
  84% { opacity: 1; }
  100% { opacity: 0; transform: translateX(460%); }
}

@keyframes heroPipelinePoint {
  0%, 20%, 100% { background: var(--ink); transform: scale(0.8); }
  38%, 58% { background: var(--lime); transform: scale(1.18); }
}

@keyframes agentStage {
  0%, 18%, 100% { background: transparent; box-shadow: inset 0 0 0 rgba(217, 255, 63, 0); }
  28%, 44% { background: rgba(217, 255, 63, 0.09); box-shadow: inset 3px 0 var(--lime); }
}

@keyframes agentRail {
  from { transform: translateX(-100%); }
  to { transform: translateX(560%); }
}

@keyframes decisionDraw {
  0%, 12% { stroke-dashoffset: 1; }
  58%, 82% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1; }
}

@keyframes decisionArea {
  0%, 28%, 100% { opacity: 0; }
  55%, 82% { opacity: 1; }
}

@keyframes decisionNode {
  0%, 20%, 100% { opacity: 0; transform: scale(0.5); }
  36%, 76% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1180px) {
  .hero-pipeline {
    grid-template-columns: minmax(9rem, 0.4fr) minmax(20rem, 1.35fr) minmax(8rem, 0.35fr);
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .hero-pipeline {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    min-height: 0;
    padding: 1.5rem 0;
  }

  .hero-pipeline__flow {
    padding-top: 0.35rem;
  }

  .agent-loop {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .agent-loop__intro strong {
    max-width: 24rem;
  }

  .agent-loop__rail {
    left: 0;
  }
}

@media (max-width: 620px) {
  .hero-pipeline-band {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero-pipeline {
    padding: 1.2rem 0;
  }

  .hero-pipeline li {
    gap: 0.3rem;
    font-size: 0.5rem;
  }

  .agent-loop {
    margin-top: -1rem;
  }

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

  .agent-loop__stages li:nth-child(3),
  .agent-loop__stages li:nth-child(4) {
    border-top: 1px solid rgba(8, 19, 30, 0.12);
  }

  .decision-wave__topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .decision-wave svg {
    height: 8.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pipeline *,
  .agent-loop *,
  .decision-wave * {
    animation: none !important;
  }

  .decision-wave__line {
    stroke-dashoffset: 0;
  }

  .decision-wave__area,
  .decision-wave__node {
    opacity: 1;
  }
}
