:root {
  --ink: #08131b;
  --ink-2: #102837;
  --text: #18242d;
  --muted: #5c6d78;
  --paper: #ffffff;
  --wash: #eef3f7;
  --line: #d7e3ea;
  --blue: #00a7c7;
  --cyan: #00d7ff;
  --steel: #9fb0bb;
  --canvas: #061019;
  --shadow: 0 24px 70px rgba(8, 19, 27, 0.16);
  --container: 1180px;
  --header-height: 76px;
}

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

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  background: var(--wash);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 6px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  min-height: var(--header-height);
  color: #f7fbff;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(8, 19, 27, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-weight: 850;
  line-height: 1;
}

.brand-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--cyan);
}

.brand-word {
  font-size: 22px;
}

.rm-mark {
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("../img/robomotors-mark.svg") center / contain no-repeat;
  mask: url("../img/robomotors-mark.svg") center / contain no-repeat;
}

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

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: rgba(247, 251, 255, 0.82);
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
}

.nav-toggle span:not(.sr-only) {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 84svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #f7fbff;
  background:
    linear-gradient(180deg, rgba(0, 215, 255, 0.28) 0%, rgba(0, 167, 199, 0.14) 23%, rgba(8, 19, 27, 0) 58%),
    linear-gradient(150deg, #070a0f 0%, #0b1017 45%, #05070b 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 215, 255, 0.20) 0%, rgba(0, 167, 199, 0.10) 28%, transparent 62%),
    linear-gradient(90deg, rgba(0, 215, 255, 0.11), transparent 38%),
    linear-gradient(180deg, transparent 0%, rgba(8, 19, 27, 0.54) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 64px;
  padding: 130px 0 70px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.04;
}

h1 {
  margin-bottom: 24px;
  font-size: 76px;
  font-weight: 900;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 30px;
  color: rgba(247, 251, 255, 0.78);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 850;
  line-height: 1.1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: #001018;
  background: var(--cyan);
  border-color: var(--cyan);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #62e8ff;
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.hero-microcopy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(247, 251, 255, 0.72);
  font-size: 14px;
  font-weight: 750;
}

.hero-microcopy span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-logo-frame {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.hero-logo-img {
  position: relative;
  z-index: 1;
  width: 76%;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.38));
  animation: logoFloat 5200ms ease-in-out infinite;
}

.signal-strip {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  padding-bottom: 72px;
  background: linear-gradient(180deg, transparent 0 40px, var(--wash) 40px);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.signal-card,
.capability-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.signal-card {
  padding: 26px;
}

.signal-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 900;
}

.signal-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.signal-card p,
.capability-card p,
.section-heading p,
.contact-copy p,
.footer-grid p,
.error-copy p {
  color: var(--muted);
}

.section {
  padding: 90px 0;
}

.systems {
  background: var(--paper);
  padding-bottom: 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact-copy h2,
.error-copy h1 {
  margin-bottom: 18px;
  font-size: 48px;
  font-weight: 900;
}

.section-heading p {
  max-width: 720px;
  font-size: 18px;
}

.cards {
  display: grid;
  gap: 18px;
}

.systems .cards {
  position: relative;
  z-index: 3;
}

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capability-card {
  min-height: 280px;
  padding: 24px;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 6px;
  font-weight: 900;
}

.capability-card h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

.stewart-simulation {
  position: relative;
  width: 100%;
  z-index: 1;
  height: 590px;
  margin-top: 24px;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
}

.stewart-simulation::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 42px;
  pointer-events: none;
  background: linear-gradient(180deg, var(--paper), rgba(247, 251, 255, 0));
}

.stewart-viewport {
  position: relative;
  height: 100%;
  background: transparent;
  touch-action: pan-y;
}

.stewart-viewport canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  touch-action: pan-y;
}

.stewart-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 10px 20px 12px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0), rgba(247, 251, 255, 0.78) 48%, rgba(247, 251, 255, 0.96));
}

.stewart-controls {
  width: min(640px, calc(100vw - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  pointer-events: auto;
}

.stewart-control {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 78px;
  padding: 6px 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(8, 19, 27, 0.10);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(8, 19, 27, 0.10);
  backdrop-filter: blur(12px);
  font-weight: 850;
}

.stewart-control span {
  font-size: 11px;
  text-transform: uppercase;
}

.stewart-slider {
  width: 20px;
  height: 44px;
  accent-color: var(--cyan);
  writing-mode: vertical-lr;
  direction: rtl;
}

.dark-section {
  color: #f7fbff;
  background:
    linear-gradient(135deg, #071018 0%, #102837 56%, #08131b 100%);
}

.contact {
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.20) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.20) 1px, transparent 1px);
  background-size: 42px 42px;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 50px;
  align-items: start;
}

.contact-copy p,
.error-copy p {
  color: rgba(247, 251, 255, 0.74);
  font-size: 18px;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  margin-top: 14px;
  padding: 12px 15px;
  border: 1px solid rgba(0, 215, 255, 0.22);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 850;
  background:
    linear-gradient(135deg, rgba(0, 215, 255, 0.11), rgba(0, 167, 199, 0.10)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 28px rgba(8, 19, 27, 0.08);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.contact-mail:hover,
.contact-mail:focus-visible {
  border-color: rgba(0, 215, 255, 0.48);
  color: #06111a;
  box-shadow: 0 18px 34px rgba(0, 215, 255, 0.13);
  transform: translateY(-1px);
}

.contact-form {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

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

.contact-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
}

.contact-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 215, 255, 0.18);
  border-radius: 6px;
  background: rgba(8, 19, 27, 0.42);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.contact-social a:hover,
.contact-social a:focus-visible {
  border-color: rgba(0, 215, 255, 0.58);
  background: rgba(0, 215, 255, 0.12);
  transform: translateY(-1px);
}

.contact-social img {
  width: 28px;
  height: 28px;
  opacity: 0.68;
  transition: opacity 160ms ease;
}

.contact-social a:hover img,
.contact-social a:focus-visible img {
  opacity: 1;
}

.inputs-cont {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(247, 251, 255, 0.82);
  font-weight: 750;
}

.contact-form label.full,
.contact-form .button,
.message-cont {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  color: #ffffff;
  background: rgba(8, 19, 27, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(247, 251, 255, 0.46);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 215, 255, 0.76);
  box-shadow: 0 0 0 3px rgba(0, 215, 255, 0.14);
  background: rgba(8, 19, 27, 0.86);
}

.name-cont {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.loader-cont {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: rgba(8, 19, 27, 0.42);
  backdrop-filter: blur(2px);
}

.loader {
  width: 58px;
  height: 58px;
  border: 5px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.form-ajax.is-loading .loader-cont {
  display: flex;
}

.form-ajax.is-loading .inputs-cont,
.form-ajax.is-loading .message-cont {
  opacity: 0.42;
}

.form-ajax.is-loading button,
.form-ajax.is-loading input,
.form-ajax.is-loading textarea {
  pointer-events: none;
}

.message-cont {
  display: none;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 750;
}

.message-cont.is-visible {
  display: block;
}

.message-cont.info {
  color: #001018;
  background: var(--cyan);
}

.message-cont.error {
  color: #ffffff;
  background: #bc3044;
}

.messages {
  position: fixed;
  right: 20px;
  bottom: 82px;
  z-index: 90;
  width: min(420px, calc(100% - 40px));
  pointer-events: none;
}

.message-box {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 14px;
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.message-box.info {
  background: #0f6b5e;
}

.message-box.error {
  background: #bc3044;
}

.message-box-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
}

.message-box-close::before,
.message-box-close::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 8px;
  width: 16px;
  height: 2px;
  background: #ffffff;
}

.message-box-close::before {
  transform: rotate(45deg);
}

.message-box-close::after {
  transform: rotate(-45deg);
}

.site-footer {
  padding: 40px 0;
  color: rgba(247, 251, 255, 0.76);
  background: #050c11;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  color: #ffffff;
}

.footer-brand .brand-icon {
  width: 38px;
  height: 38px;
}

.footer-grid p {
  margin: 0;
  color: rgba(247, 251, 255, 0.62);
}

.copyright {
  text-align: right;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  min-width: 52px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #001018;
  background: var(--cyan);
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.error-page {
  min-height: 70svh;
}

.error-hero {
  min-height: 78svh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
}

.error-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 60px;
}

.error-alert {
  width: min(100%, 460px);
  margin: 24px 0 28px;
  padding: 14px 16px;
  color: #ffffff;
  background: #bc3044;
  border-radius: 8px;
  font-weight: 850;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.error-mark {
  width: 260px;
  height: 260px;
  color: var(--cyan);
  opacity: 0.82;
}

.error-mark img {
  width: 100%;
  height: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  h1 {
    font-size: 58px;
  }

  .section-heading h2,
  .contact-copy h2,
  .error-copy h1 {
    font-size: 40px;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .copyright {
    text-align: left;
  }
}

@media (max-width: 800px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

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

  .nav-links {
    position: fixed;
    top: calc(var(--header-height) - 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 14px 18px;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    background: rgba(8, 19, 27, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .nav-links a {
    min-height: 48px;
    width: 100%;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .brand-word {
    font-size: 20px;
  }

  .hero-visual {
    justify-content: center;
    width: 100%;
  }

  .hero-grid {
    gap: 42px;
    padding: 112px 0 58px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-logo-frame {
    width: min(360px, 100%);
    margin-inline: auto;
  }

  .signal-strip {
    margin-top: 0;
    padding: 42px 0 56px;
    background: var(--wash);
  }

  .signal-grid,
  .four-up {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 66px 0;
  }

  .systems {
    padding-bottom: 0;
  }

  .section-heading h2,
  .contact-copy h2,
  .error-copy h1 {
    font-size: 34px;
  }

  .contact-grid {
    gap: 30px;
  }

  .stewart-simulation {
    height: 540px;
  }

  .stewart-viewport {
    height: 100%;
  }

  .stewart-overlay {
    padding: 14px 12px 16px;
  }

  .stewart-controls {
    width: calc(100vw - 18px);
    max-width: none;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
  }

  .stewart-control {
    min-width: 0;
    min-height: 64px;
    padding: 7px 3px;
    overflow: hidden;
  }

  .stewart-control span {
    font-size: 9px;
  }

  .stewart-slider {
    width: 42px;
    max-width: 100%;
    height: 18px;
    appearance: none;
    -webkit-appearance: none;
    direction: ltr;
    writing-mode: horizontal-tb;
    background: transparent;
    touch-action: pan-x;
  }

  .stewart-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(8, 19, 27, 0.72);
  }

  .stewart-slider::-webkit-slider-thumb {
    width: 13px;
    height: 13px;
    margin-top: -4.5px;
    border: 0;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.78);
    appearance: none;
    -webkit-appearance: none;
  }

  .stewart-slider::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(8, 19, 27, 0.72);
  }

  .stewart-slider::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 0;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.78);
  }

  .inputs-cont {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-social {
    gap: 8px;
    padding: 12px;
  }

  .contact-social a {
    width: 38px;
    height: 38px;
  }

  .contact-social img {
    width: 25px;
    height: 25px;
  }

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

  .error-mark {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  h1 {
    font-size: 34px;
  }

  .section-heading h2,
  .contact-copy h2,
  .error-copy h1 {
    font-size: 30px;
  }

  .hero-microcopy {
    display: grid;
  }

  .signal-card,
  .capability-card {
    padding: 20px;
  }

  .stewart-simulation,
  .stewart-viewport {
    height: 520px;
  }

  .stewart-controls {
    width: calc(100vw - 14px);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
  }

  .stewart-control {
    min-height: 62px;
  }

  .stewart-slider {
    width: 40px;
    height: 18px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
