:root {
  --ink-980: #050708;
  --ink-950: #080c0e;
  --ink-920: #0d1316;
  --gunmetal-900: #11191d;
  --gunmetal-850: #172126;
  --gunmetal-800: #1d2a30;
  --gunmetal-700: #2d3c43;
  --steel-600: #748188;
  --steel-400: #aebac0;
  --steel-200: #e8edf0;
  --white: #fbfcfd;
  --copper-500: #e26832;
  --copper-400: #f18b46;
  --amber-400: #f7b955;
  --line: rgba(232, 237, 240, 0.12);
  --line-strong: rgba(232, 237, 240, 0.2);
  --surface: rgba(18, 27, 31, 0.74);
  --surface-strong: rgba(23, 33, 38, 0.94);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 54px rgba(0, 0, 0, 0.28);
  --font-sans: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --container: 1180px;
  --container-wide: 1380px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% -8%, rgba(226, 104, 50, 0.14), transparent 28rem),
    linear-gradient(180deg, var(--ink-950), var(--ink-980) 46rem);
  color: var(--steel-400);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(241, 139, 70, 0.72);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

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

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 200;
  left: 1rem;
  top: 1rem;
  background: var(--white);
  color: var(--ink-950);
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: 900;
}

.container,
.container-wide {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.container-wide {
  width: min(calc(100% - 2rem), var(--container-wide));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 8, 0.78);
  backdrop-filter: blur(18px);
  transition: background 220ms var(--ease), box-shadow 220ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(5, 7, 8, 0.94);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.35);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(226, 104, 50, 0.16);
}

.brand span {
  letter-spacing: 0;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.56rem 0.86rem;
  color: rgba(232, 237, 240, 0.76);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.site-nav .nav-cta {
  margin-left: 0.55rem;
  padding-inline: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--copper-400), var(--copper-500));
  box-shadow: 0 12px 28px rgba(226, 104, 50, 0.24);
}

.site-nav .nav-cta:hover {
  background: linear-gradient(135deg, #ff9b52, #d85927);
}

.header-actions {
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: none;
}

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero {
  min-height: min(860px, calc(100vh - 76px));
  display: grid;
  align-items: center;
  padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.96), rgba(8, 12, 14, 0.85) 44%, rgba(13, 19, 22, 0.48)),
    radial-gradient(circle at 84% 28%, rgba(226, 104, 50, 0.18), transparent 24rem),
    var(--ink-950);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 50% 35%, #000, transparent 74%);
}

.hero-grid,
.page-hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-grid > *,
.page-hero-grid > *,
.hero-copy,
.hero-visual {
  min-width: 0;
}

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

.technical-label {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  margin-bottom: 1rem;
  color: var(--copper-400);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.technical-label::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  color: var(--white);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 6.4vw, 6.6rem);
  font-weight: 950;
}

.page-title {
  max-width: 13ch;
  font-size: clamp(2.65rem, 5.4vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 3.8vw, 4rem);
  font-weight: 930;
}

h3 {
  font-size: 1.28rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  max-width: 62ch;
  color: rgba(232, 237, 240, 0.82);
  font-size: clamp(1.04rem, 1.45vw, 1.25rem);
  line-height: 1.52;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.82rem 1.12rem;
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.1;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.button-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-block;
  flex: 0 0 auto;
  transition: transform 160ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover .button-icon {
  transform: translateX(3px);
}

.button-primary {
  background: linear-gradient(135deg, #f28d4b, #dd5d2b);
  box-shadow: 0 16px 38px rgba(226, 104, 50, 0.25);
}

.button-primary:hover {
  box-shadow: 0 20px 46px rgba(226, 104, 50, 0.32);
}

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

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-visual {
  position: relative;
}

.hero-photo-frame,
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: #0b1114;
  box-shadow: var(--shadow);
}

.hero-photo-frame {
  min-height: 580px;
}

.hero-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 46%, rgba(5, 7, 8, 0.84)),
    linear-gradient(90deg, rgba(5, 7, 8, 0.16), transparent 40%);
  pointer-events: none;
}

.hero-photo-frame img,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.08);
}

.hero-photo-frame img {
  min-height: 580px;
  object-position: 50% 50%;
}

.hero-photo-label {
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 2;
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(7, 12, 14, 0.76);
  padding: 1rem 1.1rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.hero-photo-kicker,
.eyebrow,
.stat-label,
.service-number,
.project-meta,
.pending-label {
  color: var(--copper-400);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-photo-label strong {
  color: var(--white);
  font-size: 1.15rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 2rem;
}

.proof-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.92rem;
}

.proof-item strong {
  display: block;
  color: var(--white);
  line-height: 1.15;
}

.proof-item span {
  display: block;
  margin-top: 0.25rem;
  color: var(--steel-400);
  font-size: 0.88rem;
}

.section {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section.alt {
  background:
    linear-gradient(180deg, rgba(23, 33, 38, 0.72), rgba(8, 12, 14, 0.88)),
    var(--gunmetal-900);
  border-block: 1px solid var(--line);
}

.section.compact {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.section-kicker,
.split-layout,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.section-kicker {
  margin-bottom: 2rem;
  align-items: end;
}

.service-grid,
.project-grid,
.capability-grid,
.detail-grid,
.footer-grid,
.field-grid,
.case-grid,
.detail-strip {
  display: grid;
  gap: 1rem;
}

.service-card,
.project-card,
.info-panel,
.capability-plate,
.form-panel,
.contact-card,
.cta-panel,
.service-band,
.case-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.service-card,
.project-card {
  color: inherit;
  text-decoration: none;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.service-card:hover,
.project-card:hover,
.service-card:focus-visible,
.project-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(241, 139, 70, 0.5);
  box-shadow: var(--shadow);
}

.service-card img,
.project-card img,
.case-card img {
  height: 250px;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.06);
  transition: transform 700ms var(--ease);
}

.service-card:hover img,
.project-card:hover img {
  transform: scale(1.035);
}

.service-body,
.project-card-content,
.info-panel,
.form-panel,
.contact-card,
.capability-plate,
.case-card-content {
  padding: clamp(1.15rem, 2vw, 1.55rem);
}

.service-card p,
.project-card p,
.capability-plate p,
.info-panel p,
.form-panel p,
.site-footer p,
.info-panel li,
.case-card p {
  color: var(--steel-400);
}

.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  color: var(--white);
  font-weight: 900;
}

.service-arrow svg {
  width: 1rem;
  height: 1rem;
}

.feature-strip,
.service-band {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.media-frame {
  min-height: 420px;
}

.media-frame img {
  min-height: 420px;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 8, 0.72));
}

.capability-marker {
  margin-bottom: 1rem;
  color: var(--copper-400);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.detail-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0b1114;
}

.detail-tile img {
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.08);
}

.detail-tile span {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(5, 7, 8, 0.72);
  color: var(--white);
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.page-hero {
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.94), rgba(5, 7, 8, 0.72), rgba(5, 7, 8, 0.5)),
    var(--hero-image, url("/assets/img/skeels-hero-control-cabinet.jpg")) center/cover no-repeat;
}

.page-hero.services-hero {
  --hero-image: url("/assets/img/skeels-site-control-panels.jpg");
}

.page-hero.projects-hero {
  --hero-image: url("/assets/img/skeels-site-delivery.jpg");
}

.page-hero.about-hero {
  --hero-image: url("/assets/img/skeels-fabrication-frame.jpg");
}

.page-hero.contact-hero {
  --hero-image: url("/assets/img/skeels-conveyor-entry.jpg");
}

.service-route,
.anchor-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.service-route a,
.anchor-strip a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  padding: 0.45rem 0.7rem;
  color: rgba(232, 237, 240, 0.8);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}

.service-route a:hover,
.anchor-strip a:hover {
  color: var(--white);
  border-color: rgba(241, 139, 70, 0.56);
  background: rgba(226, 104, 50, 0.14);
}

.info-panel {
  scroll-margin-top: 96px;
}

.info-panel ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.info-panel li {
  margin: 0.42rem 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--white);
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--white);
  padding: 0.85rem 0.95rem;
}

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

::placeholder {
  color: rgba(232, 237, 240, 0.62);
}

.form-note,
.status-message {
  margin: 0;
  color: var(--steel-400);
  font-size: 0.92rem;
}

.status-message {
  min-height: 1.5rem;
  color: var(--amber-400);
  font-weight: 800;
}

.cta-panel {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.92), rgba(5, 7, 8, 0.58)),
    url("/assets/img/skeels-site-control-panels.jpg") center/cover no-repeat;
}

.cta-panel h2,
.cta-panel p {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #040607;
  padding: 3.25rem 0 2rem;
}

.footer-grid {
  gap: 2rem;
}

.footer-brand {
  max-width: 370px;
}

.footer-brand .brand {
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.42rem;
}

.footer-links a {
  color: var(--steel-400);
  text-decoration: none;
}

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

.footer-bottom {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--steel-600);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

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

@media (min-width: 700px) {
  .service-grid,
  .project-grid,
  .capability-grid,
  .detail-grid,
  .field-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 901px) {
  body {
    font-size: 17px;
  }

  .hero-grid,
  .page-hero-grid,
  .split-layout,
  .contact-grid,
  .feature-strip,
  .service-band {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  }

  .section-kicker {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  }

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

  .project-grid,
  .capability-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-panel {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .footer-grid {
    grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(130px, 0.7fr));
  }
}

@media (max-width: 1100px) {
  .detail-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 64px 0 0;
    z-index: 80;
    background: rgba(5, 7, 8, 0.82);
    backdrop-filter: blur(4px);
  }

  .container,
  .container-wide {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand img {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .brand span {
    max-width: calc(100vw - 142px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
    cursor: pointer;
  }

  .nav-icon,
  .nav-icon::before,
  .nav-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .nav-icon {
    position: relative;
  }

  .nav-icon::before,
  .nav-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-icon::before {
    top: -7px;
  }

  .nav-icon::after {
    top: 7px;
  }

  .site-nav {
    margin-left: 0;
    position: fixed;
    inset: 66px 0 auto;
    z-index: 91;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 0.85rem 0.9rem 0.95rem;
    border-top: 1px solid rgba(241, 139, 70, 0.24);
    border-bottom: 1px solid rgba(241, 139, 70, 0.2);
    background: #050708;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.46);
  }

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

  .site-nav a {
    min-height: 50px;
    justify-content: center;
    padding: 0.85rem;
  }

  .site-nav .nav-cta {
    margin: 0.35rem 0 0;
  }

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

  .hero-grid,
  .page-hero-grid {
    gap: 1.5rem;
  }

  .hero-photo-frame,
  .hero-photo-frame img,
  .media-frame,
  .media-frame img {
    min-height: 360px;
  }

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

@media (max-width: 600px) {
  h1,
  .page-title {
    max-width: 100%;
    font-size: clamp(2.45rem, 12vw, 3.4rem);
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .button {
    width: 100%;
  }

  .service-card img,
  .project-card img,
  .case-card img {
    height: 210px;
  }

  .detail-strip {
    grid-template-columns: 1fr 1fr;
  }

  .detail-tile,
  .detail-tile img {
    min-height: 170px;
  }
}

/* Engineered motion pass: sharper industrial UI, fewer soft SaaS shapes. */
body {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, #06090b 0%, #0d1418 48%, #050708 100%);
  background-size: 96px 96px, 96px 96px, auto;
}

.brand img {
  border-radius: var(--radius-sm);
}

.site-nav a,
.site-nav .nav-cta,
.nav-toggle,
.button,
.proof-item,
.service-card,
.project-card,
.info-panel,
.capability-plate,
.form-panel,
.contact-card,
.cta-panel,
.service-band,
.case-card,
.detail-tile,
.detail-tile span,
input,
select,
textarea {
  border-radius: var(--radius-sm);
}

.anchor-strip a,
.service-route a {
  border-radius: var(--radius-sm);
}

.site-nav a {
  background: transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.055);
}

.site-nav .nav-cta,
.button-primary {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #f38a43, #d85a28);
}

.button {
  position: relative;
  min-height: 48px;
  padding-inline: 1.05rem 0.95rem;
  border-color: rgba(232, 237, 240, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.button::before {
  content: "";
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 4px;
  background: currentColor;
  opacity: 0.42;
  transform: scaleY(0.48);
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.button:hover::before {
  opacity: 0.8;
  transform: scaleY(1);
}

.button-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.028)),
    rgba(9, 13, 15, 0.94);
  backdrop-filter: blur(10px);
}

.button-icon path {
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.hero-engineered {
  min-height: min(880px, calc(100vh - 76px));
  padding-block: clamp(3.75rem, 7vw, 6.25rem);
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.98) 0%, rgba(7, 11, 13, 0.93) 42%, rgba(11, 17, 20, 0.82) 100%),
    #070a0c;
}

.hero-engineered::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, transparent 0 37%, rgba(226, 104, 50, 0.14) 38%, transparent 39% 100%),
    linear-gradient(90deg, transparent 0 62%, rgba(226, 104, 50, 0.055) 62% 100%);
  pointer-events: none;
}

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

.trace {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 139, 70, 0.72), transparent);
  opacity: 0.45;
  animation: trace-run 7s linear infinite;
}

.trace-a {
  left: -10%;
  top: 28%;
  width: 52%;
}

.trace-b {
  right: -18%;
  top: 54%;
  width: 62%;
  animation-delay: -2.8s;
}

.trace-c {
  left: 20%;
  bottom: 16%;
  width: 46%;
  animation-delay: -5s;
}

.hero-route-map {
  position: absolute;
  left: max(1rem, calc((100vw - var(--container-wide)) / 2));
  top: 27%;
  z-index: 0;
  width: min(46vw, 720px);
  height: 42%;
  opacity: 0.42;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 78%, transparent 100%);
}

.hero-route-path {
  fill: none;
  stroke: rgba(241, 139, 70, 0.6);
  stroke-width: 2;
  stroke-dasharray: 10 14;
  filter: drop-shadow(0 0 10px rgba(226, 104, 50, 0.18));
  animation: hero-route-flow 12s linear infinite;
}

.hero-route-path.route-two {
  stroke: rgba(232, 237, 240, 0.34);
  animation-duration: 15s;
}

.hero-route-path.route-three {
  stroke: rgba(241, 139, 70, 0.42);
  animation-duration: 10s;
}

.hero-route-runners {
  opacity: 0.72;
}

.hero-route-runner {
  fill: var(--copper-400);
  filter: drop-shadow(0 0 10px rgba(241, 139, 70, 0.72));
}

@keyframes trace-run {
  0% {
    transform: translateX(-16%);
    opacity: 0;
  }

  12%,
  76% {
    opacity: 0.48;
  }

  100% {
    transform: translateX(34%);
    opacity: 0;
  }
}

@keyframes hero-route-flow {
  to {
    stroke-dashoffset: -240;
  }
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  color: var(--steel-200);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-light {
  width: 0.58rem;
  height: 0.58rem;
  background: var(--copper-400);
  box-shadow: 0 0 0 4px rgba(226, 104, 50, 0.12), 0 0 24px rgba(226, 104, 50, 0.7);
  animation: status-pulse 1.9s ease-in-out infinite;
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

.typed-line {
  display: block;
  color: #fff;
  white-space: normal;
}

.typed-line::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.82em;
  margin-left: 0.08em;
  background: var(--copper-400);
  vertical-align: -0.05em;
  animation: caret-blink 1s steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.signal-flow {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(18px, 1fr) auto minmax(18px, 1fr) auto minmax(18px, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.85rem;
  width: 100%;
  max-width: 680px;
}

.flow-step {
  position: relative;
  z-index: 2;
  min-width: 82px;
  border: 1px solid rgba(232, 237, 240, 0.15);
  background:
    linear-gradient(180deg, rgba(20, 28, 32, 0.96), rgba(6, 9, 11, 0.94)),
    #0a1013;
  padding: 0.58rem 0.62rem;
  box-shadow: 0 0 0 6px rgba(5, 7, 8, 0.58);
}

.flow-step span {
  display: block;
  color: var(--copper-400);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
}

.flow-step strong {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.1;
}

.flow-line {
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 139, 70, 0.84) 18%, rgba(232, 237, 240, 0.35) 50%, rgba(241, 139, 70, 0.36) 82%, transparent);
  position: relative;
  overflow: hidden;
}

.flow-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 36%;
  background: #fff;
  animation: line-scan 2.6s linear infinite;
}

@keyframes line-scan {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(320%);
  }
}

.engineering-console {
  border: 1px solid rgba(232, 237, 240, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    #0b1114;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  min-width: 0;
}

.console-topline {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(232, 237, 240, 0.13);
  padding: 0.7rem 0.82rem;
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.console-topline strong {
  color: var(--copper-400);
}

.console-stage {
  position: relative;
  height: clamp(360px, 30vw, 500px);
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #070b0d;
}

.console-stage img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.9) contrast(1.12) brightness(0.84);
  transform: scale(1.01);
  transition: opacity 220ms var(--ease), transform 900ms var(--ease), filter 320ms var(--ease);
}

.engineering-console[data-capability-focus="controls"] .console-stage img {
  object-position: 50% 48%;
}

.engineering-console[data-capability-focus="mechanical"] .console-stage img {
  object-position: 52% 46%;
}

.engineering-console[data-capability-focus="fabrication"] .console-stage img {
  object-position: 48% 50%;
}

.engineering-console[data-capability-focus="delivery"] .console-stage img {
  object-position: 58% 52%;
}

.engineering-console.is-changing .console-stage img {
  opacity: 0.55;
  transform: scale(1.035);
}

.console-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(5, 7, 8, 0.03) 0%, transparent 48%, rgba(5, 7, 8, 0.42) 100%),
    linear-gradient(90deg, rgba(5, 7, 8, 0.26), transparent 46%, rgba(5, 7, 8, 0.36));
  pointer-events: none;
}

.console-readout {
  position: relative;
  z-index: 1;
  width: 100%;
  border-left: 3px solid var(--copper-400);
  border-top: 1px solid rgba(232, 237, 240, 0.12);
  background:
    linear-gradient(90deg, rgba(226, 104, 50, 0.09), transparent 42%),
    rgba(5, 7, 8, 0.92);
  padding: 0.98rem 1.05rem 1.05rem;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
  overflow: hidden;
}

.console-readout::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: min(34%, 190px);
  height: 2.65rem;
  border-top: 1px dashed rgba(241, 139, 70, 0.48);
  border-bottom: 1px dashed rgba(232, 237, 240, 0.2);
  opacity: 0.68;
  pointer-events: none;
}

.engineering-console.is-changing .console-readout {
  opacity: 0.72;
  transform: translateY(5px);
}

.console-readout span {
  color: var(--copper-400);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.console-readout strong {
  display: block;
  margin-top: 0.32rem;
  color: var(--white);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.16;
}

.console-readout p {
  margin: 0.45rem 0 0;
  color: rgba(232, 237, 240, 0.78);
}

.capability-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(232, 237, 240, 0.13);
}

.capability-switcher button {
  min-height: 48px;
  border: 0;
  border-right: 1px solid rgba(232, 237, 240, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--steel-400);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.capability-switcher button:last-child {
  border-right: 0;
}

.capability-switcher button:hover,
.capability-switcher button:focus-visible,
.capability-switcher button.is-active {
  background: linear-gradient(180deg, rgba(226, 104, 50, 0.24), rgba(226, 104, 50, 0.08));
  color: var(--white);
}

.section-tight {
  padding-top: clamp(3rem, 5vw, 4.8rem);
}

.service-card,
.project-card,
.case-card {
  box-shadow: none;
}

.service-card::before,
.project-card::before,
.case-card::before,
.info-panel::before,
.capability-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--copper-400) 0 28px, transparent 28px) top left / 72px 1px no-repeat,
    linear-gradient(180deg, var(--copper-400) 0 28px, transparent 28px) top left / 1px 72px no-repeat,
    linear-gradient(270deg, rgba(232, 237, 240, 0.28) 0 28px, transparent 28px) bottom right / 72px 1px no-repeat,
    linear-gradient(0deg, rgba(232, 237, 240, 0.28) 0 28px, transparent 28px) bottom right / 1px 72px no-repeat;
  opacity: 0.72;
}

.service-card img,
.project-card img,
.case-card img {
  filter: saturate(0.86) contrast(1.12) brightness(0.86);
}

.service-body,
.project-card-content,
.case-card-content {
  border-top: 1px solid rgba(232, 237, 240, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.process-layout,
.detail-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.process-diagram {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    rgba(255, 255, 255, 0.025);
  background-size: 46px 46px;
  overflow: hidden;
}

.process-diagram svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.process-path {
  fill: none;
  stroke: rgba(241, 139, 70, 0.86);
  stroke-width: 2.4;
  stroke-dasharray: 12 13;
  filter: drop-shadow(0 0 10px rgba(226, 104, 50, 0.28));
  animation: dash-flow 11s linear infinite;
}

.process-path.muted {
  stroke: rgba(232, 237, 240, 0.36);
  animation-duration: 14s;
}

.process-runner {
  fill: var(--copper-400);
  filter: drop-shadow(0 0 12px rgba(241, 139, 70, 0.9));
}

.process-runner.secondary {
  fill: rgba(232, 237, 240, 0.82);
  filter: drop-shadow(0 0 10px rgba(232, 237, 240, 0.48));
}

.process-node {
  position: absolute;
  width: min(220px, 36%);
  border: 1px solid rgba(232, 237, 240, 0.16);
  background: rgba(8, 12, 14, 0.92);
  padding: 1rem;
}

.process-node span {
  color: var(--copper-400);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 900;
}

.process-node h3 {
  margin-top: 0.28rem;
  font-size: 1.02rem;
}

.process-node p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.node-1 {
  left: 4%;
  top: 38%;
}

.node-2 {
  left: 32%;
  top: 8%;
}

.node-3 {
  right: 4%;
  top: 38%;
}

.node-4 {
  left: 42%;
  bottom: 8%;
}

.detail-marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.detail-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 0.75rem;
  padding-block: 0.75rem;
}

.detail-track figure {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #080c0e;
}

.detail-track img {
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.12) brightness(0.86);
  transition: transform 700ms var(--ease), filter 220ms var(--ease);
}

.detail-track figure:hover img {
  transform: scale(1.035);
  filter: saturate(0.96) contrast(1.1) brightness(0.96);
}

.detail-track figcaption {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  border-left: 2px solid var(--copper-400);
  background: rgba(5, 7, 8, 0.78);
  color: var(--white);
  padding: 0.45rem 0.58rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .trace,
  .flow-line::after,
  .hero-route-path,
  .process-path,
  .status-light,
  .typed-line::after {
    animation: none !important;
  }

  .hero-route-runners,
  .process-runner {
    display: none;
  }
}

@media (min-width: 901px) {
  .hero-engineered .hero-grid {
    grid-template-columns: minmax(360px, 0.78fr) minmax(620px, 1.22fr);
  }

  .hero-engineered .hero-copy {
    max-width: 590px;
  }

  .hero-engineered h1 {
    max-width: 9.2ch;
    font-size: clamp(3.6rem, 5.25vw, 5.4rem);
  }

  .process-layout,
  .detail-layout {
    grid-template-columns: minmax(320px, 0.48fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 900px) {
  .hero-engineered {
    padding-block: 1.35rem 2.2rem;
  }

  .hero-engineered .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .system-status {
    margin-bottom: 0.8rem;
  }

  .hero-route-map {
    left: -18%;
    top: 10%;
    width: 88vw;
    height: 25%;
    opacity: 0.15;
    mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 72%, transparent 100%);
  }

  .signal-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .flow-line {
    display: none;
  }

  .flow-step {
    min-width: 0;
    padding: 0.5rem;
  }

  .console-stage,
  .console-stage img {
    min-height: 0;
  }

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

  .capability-switcher button {
    border-bottom: 1px solid rgba(232, 237, 240, 0.12);
  }

  .process-diagram {
    min-height: auto;
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
  }

  .process-diagram::before {
    content: "";
    position: absolute;
    left: 0.92rem;
    top: 1.25rem;
    bottom: 1.25rem;
    z-index: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(241, 139, 70, 0.74), rgba(232, 237, 240, 0.24), transparent);
    opacity: 0.62;
    animation: trace-run 5.8s linear infinite;
  }

  .process-diagram svg {
    display: none;
  }

  .process-node {
    position: relative;
    z-index: 1;
    inset: auto;
    width: calc(100% - 1rem);
    margin-left: 1rem;
  }

  .detail-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
  }

  .detail-track figure {
    min-width: 72%;
    scroll-snap-align: start;
  }
}

@media (max-width: 600px) {
  h1,
  .page-title {
    font-size: clamp(2.05rem, 9.6vw, 2.72rem);
  }

  .hero-engineered {
    min-height: auto;
    display: block;
    padding-block: 1rem 1.55rem;
  }

  .hero-engineered .hero-grid {
    width: auto;
    max-width: none;
    margin-inline: 1rem;
    gap: 1.05rem;
    overflow: hidden;
  }

  .hero-engineered .hero-copy,
  .hero-engineered .hero-visual,
  .hero-engineered .button-row,
  .hero-engineered .signal-flow,
  .hero-engineered .engineering-console {
    width: 100%;
    max-width: 100%;
  }

  .hero-engineered .hero-copy {
    max-width: 100%;
  }

  .hero-engineered .system-status {
    display: none;
  }

  .hero-engineered h1 {
    max-width: 100%;
    margin-bottom: 0.72rem;
    font-size: clamp(2rem, 9.15vw, 2.42rem);
    line-height: 1.02;
  }

  .hero-engineered .lede {
    max-width: 100%;
    font-size: 0.96rem;
    line-height: 1.43;
  }

  .hero-engineered .button-row {
    width: 100%;
    max-width: 100%;
    display: grid;
    justify-items: start;
    gap: 0.48rem;
    margin-top: 1.08rem;
  }

  .hero-engineered .button {
    min-width: 0;
    width: auto;
    justify-content: center;
    padding-inline: 0.9rem 0.78rem;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
  }
  .hero-engineered .button-primary {
    min-width: min(100%, 13.5rem);
    justify-content: space-between;
  }

  .hero-engineered .button-secondary {
    width: max-content;
    max-width: 100%;
    min-height: auto;
    justify-content: flex-start;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    color: rgba(232, 237, 240, 0.82);
    padding: 0.3rem 0 0.12rem;
    overflow: visible;
    text-shadow: none;
  }

  .hero-engineered .button-secondary::before {
    display: none;
  }

  .hero-engineered .button-secondary .button-icon {
    color: var(--accent);
  }

  .hero-engineered .button-icon {
    width: 0.95rem;
    height: 0.95rem;
  }

  .typed-line {
    white-space: normal;
  }

  .hero-route-map,
  .hero-backdrop .trace {
    display: none;
  }

  .signal-flow {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    margin-top: 1rem;
    border: 1px solid rgba(232, 237, 240, 0.12);
    background:
      linear-gradient(90deg, rgba(226, 104, 50, 0.08), transparent 54%),
      rgba(9, 14, 16, 0.76);
    padding: 0.58rem 0.65rem;
    overflow: hidden;
  }

  .flow-line {
    display: block;
    flex: 1 1 12px;
    min-width: 8px;
    max-width: 30px;
    background: linear-gradient(90deg, rgba(241, 139, 70, 0.65), rgba(232, 237, 240, 0.18));
  }

  .flow-line::after {
    display: none;
  }

  .flow-step {
    flex: 0 0 auto;
    min-width: auto;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .flow-step span {
    display: none;
  }

  .flow-step strong {
    color: rgba(232, 237, 240, 0.88);
    font-size: clamp(0.64rem, 2.85vw, 0.74rem);
    white-space: nowrap;
  }

  .hero-engineered .hero-visual {
    margin-top: 0.1rem;
  }

  .engineering-console {
    position: relative;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .console-topline {
    display: none;
  }

  .console-stage {
    height: clamp(178px, 51vw, 228px);
    aspect-ratio: auto;
    border: 1px solid rgba(232, 237, 240, 0.14);
  }

  .console-readout {
    position: absolute;
    left: 0.62rem;
    right: 0.62rem;
    bottom: 0.62rem;
    width: auto;
    border: 1px solid rgba(232, 237, 240, 0.13);
    border-left: 2px solid var(--copper-400);
    background: rgba(5, 8, 9, 0.78);
    backdrop-filter: blur(10px);
    padding: 0.6rem 0.68rem;
  }

  .console-readout span {
    font-size: 0.55rem;
  }

  .console-readout strong {
    margin-top: 0.2rem;
    font-size: 0.92rem;
    line-height: 1.15;
  }

  .console-readout p,
  .console-readout::after,
  .capability-switcher {
    display: none;
  }
}

/* Mobile hero composition pass: fit the opening viewport and give the switchboard depth. */
@media (max-width: 600px) {
  body {
    background-size: 58px 58px, 58px 58px, auto;
  }

  .site-header {
    background: rgba(4, 7, 8, 0.94);
  }

  .header-inner {
    min-height: 62px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand span {
    font-size: 1.06rem;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
      #0c1215;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 14px 34px rgba(0, 0, 0, 0.42);
  }

  .hero-engineered {
    min-height: calc(100svh - 62px);
    display: grid;
    align-items: stretch;
    padding-block: clamp(0.55rem, 1.7svh, 0.95rem) clamp(0.7rem, 2svh, 1.05rem);
    background:
      radial-gradient(circle at 92% 4%, rgba(241, 139, 70, 0.18), transparent 13rem),
      linear-gradient(152deg, rgba(9, 14, 16, 0.98) 0%, rgba(5, 8, 9, 0.98) 47%, rgba(16, 21, 20, 0.96) 100%);
  }

  .hero-engineered::before {
    background:
      linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
    opacity: 0.72;
  }

  .hero-engineered::after {
    z-index: -2;
    background:
      linear-gradient(108deg, transparent 0 30%, rgba(226, 104, 50, 0.2) 31%, transparent 32% 100%),
      linear-gradient(90deg, transparent 0 64%, rgba(226, 104, 50, 0.075) 64% 100%);
    animation: mobile-copper-breathe 6.8s ease-in-out infinite;
  }

  .hero-engineered .hero-grid {
    width: auto;
    min-height: calc(100svh - 62px - clamp(1.25rem, 3.7svh, 2rem));
    max-width: none;
    margin-inline: 0.72rem;
    display: grid;
    grid-template-rows: auto minmax(224px, 1fr);
    align-content: center;
    gap: clamp(0.52rem, 1.5svh, 0.82rem);
    overflow: visible;
  }

  .hero-engineered .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: end;
    animation: mobile-hero-rise 580ms var(--ease) both;
  }

  .hero-engineered h1 {
    max-width: 8.8ch;
    margin-bottom: clamp(0.46rem, 1.4svh, 0.72rem);
    font-size: clamp(2.38rem, 11.6vw, 3.08rem);
    line-height: 0.94;
    text-wrap: balance;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.34));
  }

  .typed-line {
    min-height: 0.96em;
  }

  .hero-engineered .lede {
    max-width: 35rem;
    margin-bottom: 0;
    color: rgba(232, 237, 240, 0.8);
    font-size: clamp(0.88rem, 3.85vw, 1rem);
    line-height: 1.34;
  }

  .hero-engineered .button-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
    gap: 0.54rem;
    margin-top: clamp(0.72rem, 2svh, 1rem);
  }

  .hero-engineered .button {
    min-height: 48px;
    padding: 0.82rem 0.88rem;
    font-size: 0.88rem;
  }

  .hero-engineered .button-primary {
    width: 100%;
    min-width: 0;
    background:
      linear-gradient(135deg, rgba(255, 180, 92, 0.98), rgba(226, 104, 50, 0.98) 58%, rgba(191, 73, 34, 0.98));
    box-shadow: 0 13px 36px rgba(226, 104, 50, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .hero-engineered .button-secondary {
    width: auto;
    padding-inline: 0.18rem;
    color: rgba(232, 237, 240, 0.9);
    font-size: 0.84rem;
  }

  .signal-flow {
    position: relative;
    isolation: isolate;
    margin-top: clamp(0.95rem, 2.35svh, 1.22rem);
    padding: 0.18rem 0.08rem;
    background: none;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .signal-flow::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    right: 0.2rem;
    top: 50%;
    z-index: -1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(241, 139, 70, 0.52) 18%, rgba(232, 237, 240, 0.28) 50%, rgba(241, 139, 70, 0.38) 82%, transparent);
    transform: none;
    animation: none;
    pointer-events: none;
  }

  .flow-line {
    display: block;
    flex: 1 1 12px;
    min-width: 8px;
    max-width: none;
    height: 1px;
    background: transparent;
    opacity: 0;
  }

  .flow-step {
    position: relative;
    padding: 0.32rem 0.5rem;
    border: 1px solid rgba(232, 237, 240, 0.12);
    background:
      linear-gradient(180deg, rgba(28, 38, 43, 0.94), rgba(7, 11, 13, 0.94)),
      #080d0f;
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .flow-step::before {
    content: "";
    position: absolute;
    left: 0.42rem;
    right: 0.42rem;
    top: -1px;
    width: auto;
    height: 1px;
    background: var(--copper-400);
    box-shadow: 0 0 12px rgba(241, 139, 70, 0.46);
    transform: none;
  }

  .flow-step strong {
    color: rgba(251, 252, 253, 0.88);
    font-size: clamp(0.58rem, 2.42vw, 0.67rem);
    letter-spacing: 0;
  }

  .hero-route-map,
  .hero-backdrop .trace {
    display: block;
  }

  .hero-route-map {
    left: -40%;
    top: 5%;
    width: 150vw;
    height: 43%;
    opacity: 0.18;
  }

  .trace-a {
    top: 18%;
    width: 90%;
  }

  .trace-b {
    top: 48%;
    width: 96%;
  }

  .trace-c {
    bottom: 8%;
    left: -14%;
    width: 74%;
  }

  .hero-engineered .hero-visual {
    min-height: 0;
    display: flex;
    align-items: stretch;
    margin-top: 0;
    animation: mobile-console-rise 720ms var(--ease) 120ms both;
  }

  .engineering-console {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: 1fr;
    overflow: hidden;
    border: 1px solid rgba(232, 237, 240, 0.17);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
      rgba(8, 12, 14, 0.92);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(226, 104, 50, 0.09);
  }

  .engineering-console::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    border: 1px solid rgba(241, 139, 70, 0.22);
    pointer-events: none;
    clip-path: polygon(0 0, 56px 0, 56px 1px, 1px 1px, 1px 56px, 0 56px, 0 0, 100% 100%, calc(100% - 56px) 100%, calc(100% - 56px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 56px), 100% calc(100% - 56px));
  }

  .console-topline {
    position: absolute;
    left: 0.58rem;
    right: 0.58rem;
    top: 0.58rem;
    z-index: 4;
    min-height: 0;
    display: flex;
    border: 0;
    padding: 0;
    color: rgba(232, 237, 240, 0.76);
    font-size: 0.53rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  }

  .console-stage {
    height: auto;
    min-height: 234px;
    max-height: 42svh;
    border: 0;
    aspect-ratio: auto;
  }

  .console-stage::before {
    content: "";
    position: absolute;
    inset: -18% auto -18% -42%;
    z-index: 3;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(241, 139, 70, 0.16), rgba(255, 255, 255, 0.12), transparent);
    transform: skewX(-14deg);
    mix-blend-mode: screen;
    animation: mobile-console-scan 4.8s ease-in-out infinite;
    pointer-events: none;
  }

  .console-stage::after {
    background:
      linear-gradient(180deg, rgba(5, 7, 8, 0.02) 0%, transparent 54%, rgba(5, 7, 8, 0.42) 100%),
      linear-gradient(90deg, rgba(5, 7, 8, 0.08), transparent 42%, rgba(5, 7, 8, 0.08));
  }

  .console-stage img {
    filter: saturate(1.08) contrast(1.06) brightness(1);
    transform: scale(1.02);
  }

  .engineering-console[data-capability-focus="controls"] .console-stage img {
    object-position: 51% 45%;
  }

  .engineering-console[data-capability-focus="mechanical"] .console-stage img {
    object-position: 52% 42%;
  }

  .engineering-console[data-capability-focus="fabrication"] .console-stage img {
    object-position: 48% 46%;
  }

  .engineering-console[data-capability-focus="delivery"] .console-stage img {
    object-position: 58% 48%;
  }

  .console-readout {
    left: 0.56rem;
    right: 0.56rem;
    bottom: 0.56rem;
    padding: 0.58rem 0.64rem;
    background:
      linear-gradient(90deg, rgba(226, 104, 50, 0.12), rgba(5, 8, 9, 0.58) 48%),
      rgba(5, 8, 9, 0.7);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  }

  .console-readout span {
    font-size: 0.52rem;
    letter-spacing: 0;
  }

  .console-readout strong {
    max-width: 23rem;
    font-size: clamp(0.86rem, 3.95vw, 1.02rem);
    line-height: 1.08;
  }
}

@media (max-width: 600px) and (max-height: 700px) {
  .hero-engineered h1 {
    font-size: clamp(2.12rem, 10.4vw, 2.62rem);
  }

  .hero-engineered .lede {
    font-size: 0.84rem;
    line-height: 1.28;
  }

  .hero-engineered .button {
    min-height: 44px;
    padding-block: 0.68rem;
  }

  .signal-flow {
    margin-top: 0.58rem;
    padding-block: 0.42rem;
  }

  .console-stage {
    min-height: 168px;
    max-height: 31svh;
  }
}

@keyframes mobile-copper-breathe {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(1.4%);
  }
}

@keyframes mobile-signal-sweep {
  0% {
    transform: translateX(-110%);
    opacity: 0;
  }

  18%,
  62% {
    opacity: 1;
  }

  100% {
    transform: translateX(110%);
    opacity: 0;
  }
}

@keyframes mobile-console-scan {
  0%,
  28% {
    transform: translateX(0) skewX(-14deg);
    opacity: 0;
  }

  42% {
    opacity: 1;
  }

  76%,
  100% {
    transform: translateX(430%) skewX(-14deg);
    opacity: 0;
  }
}

@keyframes mobile-hero-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobile-console-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-engineered::after,
  .signal-flow::before,
  .console-stage::before,
  .hero-engineered .hero-copy,
  .hero-engineered .hero-visual {
    animation: none !important;
  }
}
