:root {
  --red: #c8102e;
  --red-hover: #a90d27;
  --ink: #171a20;
  --body: #393c41;
  --muted: #5c5e62;
  --soft: #f4f4f4;
  --paper: #fff;
  --nav-height: 64px;
  --gutter: clamp(24px, 5vw, 80px);
  --ease: 330ms cubic-bezier(.5, 0, 0, .75);
  font: 400 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, fieldset { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img, canvas, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.skip-link { position: fixed; inset: 8px auto auto 8px; z-index: 10; background: white; padding: 8px 16px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
h1, h2, h3 { font-weight: 500; line-height: 1.14; }
h1, h2 { font-size: clamp(28px, 3.1vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
p { color: var(--body); }
section[id], div[id="global-solutions"] { scroll-margin-top: var(--nav-height); }
.wrap { width: min(1320px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section-space { padding-block: clamp(72px, 9vw, 128px); }
.label { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.button-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}
.primary { background: var(--red); color: white; }
.primary:hover { background: var(--red-hover); }
.secondary { background: white; color: var(--ink); }
.secondary:hover { background: #ebebeb; }
.outline { border-color: #b0b0b2; color: var(--ink); background: white; }
.outline:hover { background: var(--soft); border-color: var(--ink); }
.play { width: 0; height: 0; border-block: 5px solid transparent; border-left: 7px solid currentColor; margin-right: 10px; }
.text-link { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; font-size: 14px; text-underline-offset: 4px; text-decoration: underline; }
.text-link:hover { color: var(--red); }
.wordmark { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; width: fit-content; }
.wordmark img { width: 30px; height: auto; }
.wordmark span { font-weight: 700; font-size: 19px; letter-spacing: .11em; }
.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  color: white;
  transition: color var(--ease), background-color var(--ease);
}
.masthead.solid, .masthead:has(.menu-button[aria-expanded="true"]), .masthead:focus-within {
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
  color: var(--ink);
}
.masthead-inner {
  max-width: 1472px;
  min-height: var(--nav-height);
  padding-inline: clamp(24px, 3.33vw, 48px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.masthead nav { display: flex; align-items: center; gap: 4px; }
.masthead nav a, .header-contact, .menu-button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  transition: background-color var(--ease);
}
.masthead nav a:hover, .header-contact:hover, .menu-button:hover { background: rgb(127 127 127 / 18%); }
.masthead nav a[aria-current="page"] { background: rgb(127 127 127 / 12%); }
.header-contact { justify-self: end; display: inline-flex; gap: 8px; }
.menu-button, .masthead nav .mobile-contact { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  text-align: center;
  height: max(100svh, min(56vw, 1200px));
  min-height: 650px;
  color: white;
  overflow: hidden;
  background: #42535e;
  padding: calc(var(--nav-height) + clamp(24px, 4vh, 48px)) 24px clamp(40px, 7vh, 72px);
}
.hero-image, .hero-image img, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; }
.hero-image img { object-fit: cover; object-position: 60% bottom; }
.hero::before { content: ""; background: rgb(13 23 32 / 29%); z-index: -1; }
.hero-copy p { color: inherit; font-size: clamp(16px, 1.7vw, 22px); margin-top: 7px; }
.hero-actions { grid-row: 2; justify-content: center; margin-top: 22px; }
.hero-actions .button { width: 200px; }

.media-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding-inline: 14px;
  background: #171a20;
  color: white;
}
.media-toggle:hover { background: #393c41; }

.supply-grid {
  display: grid;
  grid-template: "options diagram" 1fr "notes diagram" 1fr / minmax(276px, .76fr) minmax(0, 1.24fr);
  column-gap: clamp(32px, 7vw, 112px);
  row-gap: 16px;
}
.supply-copy { grid-area: options; align-self: end; }
.supply-notes { grid-area: notes; align-self: start; }
.route-figure { grid-area: diagram; align-self: center; }
.supply-copy > p:not(.label) { margin-top: 16px; max-width: 42ch; }
.source-picker { padding: 0; border: 0; margin-top: 24px; display: grid; gap: 8px; max-width: 370px; min-inline-size: 0; }
.source-picker label { position: relative; display: block; }
.source-picker input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.source-picker span {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  border-radius: 4px;
  border: 1px solid #d8d8da;
  padding: 8px 12px;
  color: var(--body);
  font-size: 14px;
  transition: background-color var(--ease), border-color var(--ease);
}
.source-picker span::before { content: ""; border: 1px solid #777b80; width: 12px; height: 12px; border-radius: 50%; }
.source-picker input:checked + span { border-color: var(--red); color: var(--ink); }
.source-picker input:checked + span::before { border: 4px solid var(--red); }
.source-picker input:hover + span { background: var(--soft); }
.source-picker input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }
.route-copy { min-height: 4.5em; max-width: 42ch; font-size: 14px; }
.route-figure { background: var(--soft); }
.route-canvas { width: 100%; aspect-ratio: 680 / 480; }
.route-figure figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 0 22px 18px; }
.route-figure figcaption span:last-child { margin-left: auto; }
.line-key { width: 18px; height: 2px; background: var(--red); }
.components { padding-top: clamp(56px, 7vw, 104px); }
.components-heading { max-width: 60ch; margin-bottom: 24px; }
.components p { margin-top: 12px; }
.component-photo img { width: 100%; height: auto; }

.robotics { background: #151719; color: white; }
.robotics-copy { max-width: 64ch; margin-bottom: clamp(24px, 4vw, 44px); }
.robotics-copy .label, .robotics-copy p { color: #d0d2d5; }
.robotics-copy h2 + p { margin-top: 12px; }
.robot-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.robotics-visual, .robot-showcase article > img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #e7e8e9;
}
.robot-showcase article > img { object-fit: contain; }
.robotics-visual video { width: 100%; height: 100%; object-fit: cover; }
.robot-showcase h3 { margin-top: 16px; font-size: 20px; }
.robot-showcase .text-link:hover { color: #fff; text-decoration-thickness: 2px; }
.robot-actions { margin-top: clamp(24px, 4vw, 42px); }
.home-page .section-space { padding-block: clamp(56px, 7.25vw, 104px); }
.home-page .components { padding-top: clamp(48px, 6.4vw, 92px); }
.home-page .supply { background: #fafafa; }
.home-page .component-photo, .home-page .components-heading { max-width: 1120px; margin-inline: auto; }
.home-page .production-image { height: clamp(235px, 40vw, 540px); }

.engineering-lead { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 7vw, 100px); align-items: center; }
.engineering-lead img { width: 100%; height: clamp(240px, 34vw, 480px); object-fit: cover; }
.engineering-lead p { margin: 16px 0 24px; max-width: 42ch; }
.market-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-top: clamp(40px, 6vw, 80px); }
.market { display: flex; flex-direction: column; }
.market img { width: 100%; height: clamp(180px, 25vw, 320px); object-fit: cover; object-position: center 36%; border-radius: 12px; background: var(--soft); }
.market-sentry img { object-fit: contain; }
.market > div { padding: 16px 0 0; }
.market .label { margin-bottom: 4px; }
.market h3 { display: flex; justify-content: space-between; gap: 16px; }
.market:hover h3 { color: var(--red); }

.manufacturing { background: var(--soft); }
.production-image { height: clamp(235px, 47vw, 680px); width: 100%; object-fit: cover; object-position: center; }
.manufacturing-copy { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(32px, 9vw, 144px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.manufacturing-copy img { width: 100%; height: clamp(200px, 27vw, 360px); object-fit: cover; }
.manufacturing-copy p { margin-block: 16px 24px; max-width: 42ch; }
.closing { text-align: center; }
.closing p { margin: 12px auto 24px; }
.closing .button-row { justify-content: center; }
.closing .button { min-width: 176px; }

.footer { background: var(--soft); padding-block: 48px 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr .62fr; gap: 24px; }
.footer-grid h2 { font-size: 14px; margin-bottom: 8px; }
.footer-grid p { margin-top: 10px; }
.footer-grid p, .footer-grid > div > a:not(.wordmark) { color: var(--body); font-size: 14px; }
.footer-grid > div > a:not(.wordmark) { display: block; padding-block: 3px; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { padding-top: 40px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.film-dialog { width: min(calc(100% - 32px), 1000px); max-height: 94dvh; padding: 16px; border: 0; border-radius: 4px; color: var(--ink); }
.film-dialog::backdrop { background: rgb(18 20 24 / 82%); }
.film-heading { display: flex; justify-content: space-between; align-items: center; padding-left: 8px; margin-bottom: 8px; }
.film-heading h2 { font-size: 18px; }
.film-dialog video { width: 100%; max-height: 78dvh; background: #101113; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  :root { --nav-height: 56px; }
  .masthead-inner { grid-template-columns: 1fr auto; }
  .header-contact { display: none; }
  .menu-button { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; cursor: pointer; padding-right: 0; }
  .menu-button i { width: 13px; height: 7px; border-block: 1px solid currentColor; }
  .masthead nav { display: none; grid-column: 1 / -1; flex-direction: column; align-items: stretch; padding-bottom: 16px; }
  .masthead nav a { padding: 12px 0; min-height: 44px; }
  .masthead .menu-button[aria-expanded="true"] + nav, .masthead nav .mobile-contact { display: flex; }
  .hero {
    --picture-height: clamp(390px, min(147vw, 100svh - 120px), 640px);
    height: auto;
    min-height: 0;
    grid-template-rows: var(--picture-height) auto;
    padding: 0;
    background: white;
  }
  .hero-image, .hero::before { height: var(--picture-height); }
  .hero-image img { object-position: 68% bottom; }
  .hero::before { background: rgb(13 23 32 / 30%); }
  .hero-copy { padding-top: calc(var(--nav-height) + 29px); }
  .hero-actions { flex-direction: column; gap: 8px; width: 100%; margin-top: 0; padding: 12px 24px 18px; }
  .hero-actions .button { width: min(100%, 352px); }
  .hero-actions .secondary { border-color: #d0d1d2; }
  .supply-grid { grid-template: "options" "diagram" "notes" / minmax(0, 1fr); gap: 16px; }
  .engineering-lead, .manufacturing-copy, .market-grid { grid-template-columns: minmax(0, 1fr); }
  .source-picker { max-width: none; }
  .route-copy { min-height: 0; }
  .route-figure figcaption { padding: 0 12px 12px; }
  .robot-showcase { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .robot-actions { margin-top: 20px; }
  .engineering-lead { gap: 24px; }
  .market-grid { gap: 28px; }
  .market img { height: 190px; }
  .manufacturing-copy { gap: 24px; }
  .closing .button-row { flex-direction: column; }
  .closing .button { width: min(100%, 352px); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
}
