:root {
  --bg: #f5f0e8;
  --paper: #fbf8f2;
  --rose: #ddaeae;
  --sky: #97cee5;
  --sage: #c6ebaf;
  --navy: #23244a;
  --navy-soft: #5f607d;
  --line: rgba(35, 36, 74, 0.12);
  --shadow: 0 22px 64px rgba(35, 36, 74, 0.10);
  --radius: 18px;
  --shell: 1180px;

  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs: 0.72rem;
  --text-sm: 0.88rem;
  --text-base: 1rem;
  --text-lg: 1.08rem;
  --heading-1: clamp(3.1rem, 5.7vw, 5.35rem);
  --heading-2: clamp(2.1rem, 3.8vw, 3.45rem);
  --heading-3: 1.18rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(35, 36, 74, .04);
}

.nav-shell {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 286px;
  height: 76px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1;
  font-weight: 600;
  color: var(--navy-soft);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--navy); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--bg) !important;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .76rem !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500 !important;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #30315f;
  box-shadow: 0 10px 26px rgba(35, 36, 74, .18);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
}

.button-light {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--navy) !important;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}

.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.text-link:hover { color: #30315f; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--navy);
  margin: 4px auto;
}

.eyebrow,
.mono-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-soft);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--sky);
}

.eyebrow-light { color: rgba(245, 240, 232, .7); }
.mono-label { color: var(--navy-soft); }

h1, h2, h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -.04em;
}

h1 {
  font-size: var(--heading-1);
  max-width: 11ch;
}

h2 { font-size: var(--heading-2); }
h3 { font-size: var(--heading-3); }

p { margin: 0; color: var(--navy-soft); }

.hero {
  padding: 92px 0 104px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, .95fr);
  gap: clamp(44px, 5vw, 72px);
  align-items: center;
}

.hero h1 { margin: 22px 0 24px; }

.hero-lede {
  max-width: 58ch;
  font-size: var(--text-lg);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 38px;
}

.hero-proof span {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--navy-soft);
}

.hero-proof span::before {
  content: "•";
  color: var(--sky);
  margin-right: 8px;
}

.hero-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  justify-self: center;
}

.dashboard-card {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border: 1px solid rgba(35,36,74,.08);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.dashboard-top,
.inventory-head,
.inventory-row,
.signal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-top { margin-bottom: 24px; }

.dashboard-top h2 {
  font-size: 1.5rem;
  margin-top: 4px;
}

.mini-label {
  font-family: var(--font-mono);
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--navy-soft);
}

.live-pill {
  font-size: .72rem;
  font-weight: 700;
  background: rgba(198,235,175,.45);
  border-radius: 999px;
  padding: 7px 11px;
}

.live-pill i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #579d4c;
  border-radius: 50%;
  margin-right: 7px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric {
  min-height: 116px;
  padding: 16px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

.metric span,
.metric small { font-size: .68rem; color: var(--navy-soft); }
.metric strong { font-size: 1.8rem; line-height: 1; margin: auto 0 5px; }
.rose { background: rgba(221,174,174,.55); }
.sky { background: rgba(151,206,229,.55); }
.sage { background: rgba(198,235,175,.62); }

.inventory-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.inventory-head,
.inventory-row {
  display: grid;
  grid-template-columns: 1.6fr .9fr .7fr;
  gap: 12px;
  padding: 13px 15px;
}

.inventory-head {
  font-family: var(--font-mono);
  font-size: .62rem;
  text-transform: uppercase;
  color: var(--navy-soft);
  background: rgba(35,36,74,.035);
}

.inventory-row {
  font-size: .72rem;
  border-top: 1px solid var(--line);
}

.inventory-row > div { display: flex; align-items: center; gap: 9px; }

.dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.rose-dot { background: var(--rose); }
.sky-dot { background: var(--sky); }
.sage-dot { background: var(--sage); }

.status {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 700;
}
.in-stock { background: rgba(198,235,175,.5); }
.low { background: rgba(221,174,174,.5); }

.signal-card {
  justify-content: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(151,206,229,.17);
}

.signal-card strong { font-size: .78rem; }
.signal-card p { font-size: .68rem; }

.signal-icon { display: flex; gap: 3px; }
.signal-icon span {
  width: 8px;
  height: 26px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.signal-icon span:nth-child(1) { background: var(--rose); }
.signal-icon span:nth-child(2) { background: var(--sky); }
.signal-icon span:nth-child(3) { background: var(--sage); }

.accent-block {
  position: absolute;
  border-radius: 30px;
  z-index: 1;
}
.accent-one {
  width: 180px; height: 180px;
  background: var(--sky);
  right: -52px; top: -45px;
  opacity: .42;
}
.accent-two {
  width: 150px; height: 150px;
  background: var(--rose);
  left: -42px; bottom: -44px;
  opacity: .35;
}





.hero-system {
  width: min(100%, 760px);
  margin: 0;
  padding: clamp(16px, 2.2vw, 24px);
  background: rgba(251, 248, 242, .9);
  border: 1px solid rgba(35, 36, 74, .10);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(35, 36, 74, .11);
}

.hero-system__topline,
.hero-system__legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-system__topline { margin-bottom: 18px; }
.hero-system__topline > div { display: grid; gap: 4px; }
.hero-system__topline span:first-child {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--navy-soft);
}
.hero-system__topline strong { font-size: var(--text-sm); }
.hero-system__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(198, 235, 175, .42);
  font-size: var(--text-xs);
  font-weight: 700;
}
.hero-system__status i {
  width: 8px; height: 8px; border-radius: 50%; background: #579d4c;
  box-shadow: 0 0 0 4px rgba(87, 157, 76, .12);
}
.hero-system__canvas {
  width: 100%;
  aspect-ratio: 760 / 500;
  overflow: hidden;
  border-radius: 21px;
}
.hero-system__svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-system__legend {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--navy-soft);
  font-size: var(--text-xs);
}
.hero-system__legend span { display: inline-flex; align-items: center; gap: 7px; }
.hero-system__legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend-blue { background: var(--sky); }
.legend-rose { background: var(--rose); }
.legend-green { background: var(--sage); }

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 21px 0;
}

.trust-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 28px;
  font-weight: 600;
  font-size: var(--text-sm);
}

.section {
  padding: 104px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 50px;
}

.section-heading h2 { margin: 20px 0 22px; }
.section-heading p { max-width: 62ch; font-size: var(--text-lg); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  position: relative;
  min-height: 330px;
  background: var(--paper);
  border: 1px solid rgba(35,36,74,.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 35px rgba(35,36,74,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 55px rgba(35,36,74,.1);
}

.feature-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 16px;
}
.rose-bg { background: var(--rose); }
.sky-bg { background: var(--sky); }
.sage-bg { background: var(--sage); }

.card-index {
  position: absolute;
  right: 28px;
  top: 30px;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--navy-soft);
}

.feature-card h3 { margin: 76px 0 14px; }
.feature-card p { font-size: var(--text-sm); }

.scan-lines, .bar-chart, .check-ring, .gear-icon { display: block; position: relative; }

.scan-lines { width: 26px; height: 22px; }
.scan-lines::before,
.scan-lines::after {
  content: "";
  position: absolute;
  top: 0;
  height: 22px;
  width: 8px;
  border-left: 2px solid var(--navy);
  border-right: 2px solid var(--navy);
}
.scan-lines::before { left: 1px; }
.scan-lines::after { right: 1px; }

.gear-icon {
  width: 27px;
  height: 27px;
  border: 2px solid var(--navy);
  border-radius: 50%;
}

.gear-icon::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid var(--navy);
  border-radius: 50%;
}

.gear-icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  background:
    linear-gradient(var(--navy), var(--navy)) center top / 4px 7px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center bottom / 4px 7px no-repeat,
    linear-gradient(90deg, var(--navy), var(--navy)) left center / 7px 4px no-repeat,
    linear-gradient(90deg, var(--navy), var(--navy)) right center / 7px 4px no-repeat;
}


.bar-chart {
  width: 25px;
  height: 24px;
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
}
.bar-chart::before,
.bar-chart::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 5px;
  background: var(--navy);
}
.bar-chart::before { height: 10px; left: 5px; }
.bar-chart::after { height: 17px; right: 4px; }

.check-ring {
  width: 26px; height: 26px;
  border: 2px solid var(--navy);
  border-radius: 50%;
}
.check-ring::after {
  content: "";
  position: absolute;
  width: 9px; height: 5px;
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(-45deg);
  left: 7px; top: 7px;
}

.dark-section {
  background: var(--navy);
  color: var(--bg);
}

.dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.dark-copy h2 { margin: 20px 0 24px; }
.dark-copy p { color: rgba(245,240,232,.68); margin-bottom: 32px; }

.dark-features { border-top: 1px solid rgba(245,240,232,.18); }

.dark-feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(245,240,232,.18);
}

.dark-feature > span,
.principle > span {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--sky);
}

.dark-feature h3 { font-size: var(--text-lg); margin-bottom: 6px; }
.dark-feature p { color: rgba(245,240,232,.62); font-size: var(--text-sm); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--navy-soft);
}

.step-graphic {
  width: 100%;
  height: 8px;
  margin: 32px 0 28px;
  border-radius: 999px;
}
.rose-line { background: var(--rose); }
.sky-line { background: var(--sky); }
.sage-line { background: var(--sage); }
.navy-line { background: var(--navy); }

.step-card h3 { margin-bottom: 11px; }
.step-card p { font-size: var(--text-sm); }

.quote-section { padding-top: 20px; }

.quote-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 70px;
  overflow: hidden;
}

.quote-mark {
  position: absolute;
  right: 40px;
  top: -25px;
  font-size: 10rem;
  line-height: 1;
  color: var(--rose);
  opacity: .5;
}

blockquote {
  margin: 0 0 20px;
  max-width: 800px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 700;
}

.contact-section { padding-top: 50px; }

.contact-card {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 80px;
  background: var(--paper);
  border-radius: 28px;
  padding: 64px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-card h2 { margin: 20px 0 22px; }

.contact-form {
  display: grid;
  gap: 17px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: .76rem;
  font-weight: 700;
  color: var(--navy);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--navy);
  outline: none;
  background: #fffdfa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(151,206,229,.25);
}

.contact-form small { color: var(--navy-soft); }

.site-footer {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 40px;
  align-items: end;
}

.site-footer img {
  width: 235px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 16px;
}

.site-footer p { max-width: 38ch; font-size: var(--text-sm); }

.footer-links,
.footer-meta {
  display: grid;
  gap: 9px;
  font-size: .84rem;
}

.footer-links a { text-decoration: none; color: var(--navy-soft); }
.footer-links a:hover { color: var(--navy); }

.footer-meta {
  justify-items: end;
  color: var(--navy-soft);
  font-family: var(--font-mono);
  font-size: .7rem;
}

/* About */
.about-hero { padding: 110px 0 90px; border-bottom: 1px solid var(--line); }
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  align-items: end;
}
.about-hero h1 {
  max-width: 11ch;
  margin-top: 20px;
  font-size: var(--heading-1);
}
.about-intro { display: grid; gap: 18px; font-size: var(--text-lg); }

.story-layout {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: 90px;
  align-items: start;
}

.story-panel {
  position: sticky;
  top: 112px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.story-panel h2 {
  font-size: 1.75rem;
  margin: 15px 0 20px;
  line-height: 1.08;
}

.story-panel ul {
  margin: 0;
  padding-left: 17px;
  color: var(--navy-soft);
  font-size: var(--text-sm);
  line-height: 1.48;
}

.story-panel li { margin: 8px 0; }

.story-copy h2 { margin: 20px 0 26px; }
.story-copy p { margin-bottom: 20px; font-size: var(--text-base); }

.section-heading-light h2 { color: var(--bg); }
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.principle {
  border-top: 1px solid rgba(245,240,232,.22);
  padding-top: 22px;
}
.principle h3 { margin: 35px 0 12px; }
.principle p { color: rgba(245,240,232,.64); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.team-card {
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.team-initial {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 16px;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 40px;
}
.team-card h3 { font-size: 1.55rem; margin: 8px 0 14px; }
.about-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .dark-grid,
  .contact-card,
  .about-hero-grid,
  .story-layout { grid-template-columns: 1fr; }

  .hero {
    padding-top: 80px;
  }

  .hero-copy {
    width: min(100%, 760px);
    margin-inline: auto;
    text-align: center;
  }

  .hero h1 {
    max-width: 12ch;
    margin-inline: auto;
  }

  .hero-lede {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-proof {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 760px);
    max-width: none;
    margin-inline: auto;
  }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 250px; }
  .feature-card h3 { margin-top: 42px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .story-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { justify-items: start; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links .button { width: 100%; }
  .hero { padding: 70px 0 88px; }
  .hero-grid { gap: 52px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-proof { flex-direction: column; gap: 8px; }
  .dashboard-card { padding: 18px; border-radius: 20px; }
  .metric-row { grid-template-columns: 1fr; }
  .metric { min-height: 88px; }
  .inventory-panel { overflow-x: auto; }
  .inventory-head, .inventory-row { min-width: 520px; }
  .trust-content { align-items: flex-start; flex-direction: column; }
  .trust-list { justify-content: flex-start; }
  .section {
  padding: 104px 0;
}
  .steps-grid,
  .principles-grid,
  .team-grid { grid-template-columns: 1fr; }
  .quote-card,
  .contact-card { padding: 34px 24px; }
  .quote-mark { right: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.3rem; }
  .brand img { width: 220px; height: 62px; }
  .site-footer img { width: 190px; height: 56px; }
}


@media (max-width: 1080px) {
  .lab-workcell {
    max-width: 680px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .lab-workcell {
    padding: 18px;
    border-radius: 22px;
  }

  .workcell-label {
    top: 17px;
    left: 18px;
  }

  .workcell-status {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workcell-arm,
  .workcell-panel {
    animation: none;
  }

  .feature-card,
  .step-card,
  .product-card,
  .value-card,
  .button,
  .text-link span {
    transition: none;
  }
}


@media (max-width: 820px) {
  .automation-scene {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .scene-software {
    width: calc(100% - 36px);
    max-width: 430px;
    margin: 22px auto 0;
  }

  .scene-equipment {
    min-height: 390px;
  }

  .automation-hero__header {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .automation-hero {
    padding: 16px;
    border-radius: 21px;
  }

  .automation-hero__header {
    flex-direction: column;
    margin-bottom: 15px;
  }

  .automation-hero__footer {
    gap: 10px 16px;
  }

  .scene-software {
    width: calc(100% - 24px);
  }

  .software-metrics {
    grid-template-columns: 1fr;
  }

  .software-body {
    grid-template-columns: 32px 1fr;
  }

  .scene-equipment {
    min-height: 350px;
  }

  .instrument {
    transform: scale(.85);
    transform-origin: bottom center;
  }

  .instrument-left { left: 0; }
  .instrument-right { right: 0; }

  .robot-station {
    transform: translateX(-50%) scale(.86);
    transform-origin: bottom center;
  }

  .hero-copy {
    text-align: left;
  }

  .hero h1,
  .hero-lede {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions,
  .hero-proof {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .data-line i {
    animation: none;
  }
}

/* Stable hero sizing: the SVG always preserves its viewBox and never reflows internally. */
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 800px); margin-inline: auto; }
  .hero-system { width: 100%; }
}
@media (max-width: 620px) {
  .hero-system { border-radius: 20px; padding: 14px; }
  .hero-system__topline { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hero-system__canvas { border-radius: 14px; }
  .hero-system__legend { gap: 9px 16px; }
}
@media (max-width: 420px) {
  .hero-system__legend { display: grid; grid-template-columns: 1fr; }
}
