@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6f8fa;
  --surface: #e8eef3;
  --surface-soft: #eef3f6;
  --ink: #0c141c;
  --muted: #43515f;
  --accent: #3261f4;
  --accent-dark: #214fdd;
  --accent-ink: #ffffff;
  --dark: #0a1118;
  --dark-ink: #f6f8fb;
  --dark-muted: #b8c3ce;
  --line: #c9d5df;
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --margin: clamp(1.125rem, 4vw, 4.5rem);
  --page-max: 1280px;
  --gutter: clamp(0.9rem, 1.5vw, 1.5rem);
  --radius: 0;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 0.98rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.02rem + 0.8vw, 1.65rem);
  --step-head: clamp(2.35rem, 1.45rem + 3.2vw, 4.25rem);
  --step-display: clamp(3.2rem, 1.4rem + 4.2vw, 5.35rem);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  background: var(--bg);
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.52;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

button,
select,
input {
  font: inherit;
}

h1,
h2,
h3,
p,
figure,
ul,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  max-width: 62ch;
  text-wrap: pretty;
}

ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.wrap {
  width: min(calc(100% - (2 * var(--margin))), var(--page-max));
  margin-inline: auto;
  padding-inline: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  width: clamp(9.6rem, 13.3vw, 13.3rem);
}

.brand img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 386;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
  font-size: var(--step-small);
  font-weight: 600;
}

.site-nav a:not(.button) {
  text-decoration: none;
}

.site-nav a:not(.button):hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  min-height: 44px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.82rem 1.2rem;
  font-size: var(--step-small);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.button:active {
  transform: none;
}

.button-small {
  min-height: 44px;
  padding: 0.7rem 1rem;
}

.button-light {
  background: var(--bg);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 700;
  text-decoration: underline;
}

.text-link::after {
  content: "↘";
  margin-left: 0.5rem;
  text-decoration: none;
}

.text-link-light {
  color: var(--dark-ink);
}

.line-hero {
  display: grid;
  grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(2rem, 4.5vw, 4.5rem);
}

.line-hero-copy h1 {
  max-width: 15ch;
  font-size: var(--step-display);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 0.94;
}

.lead {
  max-width: 41ch;
  margin-top: 1.5rem;
  font-size: var(--step-lead);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.7rem;
}

.hero-actions .button {
  min-height: 54px;
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: var(--step-small);
  font-weight: 600;
}

.hero-services span {
  display: inline-flex;
  align-items: center;
}

.hero-services span + span::before {
  content: "+";
  margin-right: 1rem;
  color: var(--accent);
}

.hero-note {
  max-width: 42ch;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: var(--step-small);
}

.hero-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-media img {
  width: 100%;
  height: min(65svh, 39rem);
  object-fit: cover;
  object-position: 42% center;
  transform-origin: center;
  will-change: transform;
}

.hero-media figcaption,
.factory figcaption,
.quality figcaption {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: var(--step-small);
}

.project-router {
  padding-block: clamp(4rem, 7vw, 6rem);
}

.project-router-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
}

.project-router-head h2 {
  max-width: 13ch;
  font-size: var(--step-head);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.project-router-head p {
  color: var(--muted);
}

.project-router-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.project-route {
  display: grid;
  min-height: 15rem;
  align-content: space-between;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  color: var(--ink);
  background: #e7eef6;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.project-route:hover {
  transform: translateY(-4px);
}

.project-route h3 {
  max-width: 12ch;
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.project-route p {
  margin-top: 1.1rem;
}

.project-route-action {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2rem;
  font-weight: 700;
}

.project-route-action::after {
  content: "→";
  color: var(--accent);
  font-size: 1.25em;
}

.project-route-custom {
  background: var(--accent);
  color: var(--accent-ink);
}

.project-route-custom:hover {
  background: var(--accent-dark);
}

.project-route-custom .project-route-action::after {
  color: var(--accent-ink);
}

.project-route-existing:hover {
  background: #dce8f4;
}

.metric-band {
  background: #e7eef6;
  color: var(--ink);
}

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

.metric-grid p {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 1.2rem clamp(0.75rem, 2vw, 1.5rem);
  font-size: var(--step-body);
}

.metric-grid strong {
  color: var(--accent);
  font-size: var(--step-lead);
  line-height: 1;
}

.trust-band {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: var(--bg);
}

.trust-band-bottom {
  margin-block: clamp(4rem, 8vw, 7rem) 0;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  align-items: end;
}

.trust-band h2 {
  max-width: 20ch;
  font-size: var(--step-head);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.trust-band p {
  margin-top: 1rem;
  color: var(--muted);
}

.trust-logo {
  width: min(100%, 11rem);
  justify-self: end;
}

.trust-logo img {
  width: 100%;
  height: auto;
}

.route-section {
  background: #fff;
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
}

.section-heading h2,
.factory-heading h2,
.quality h2,
.faq h2,
.contact h2 {
  max-width: 15ch;
  font-size: var(--step-head);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.section-heading p,
.factory-heading p {
  color: var(--muted);
}

.route-shell {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.route-control {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.route-progress {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 3px;
  overflow: hidden;
  background: transparent;
}

.route-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0.2);
  transform-origin: left center;
  will-change: transform;
}

.route-control button {
  position: relative;
  min-height: 82px;
  border: 0;
  border-radius: 0;
  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 50%,
    calc(100% - 18px) 100%,
    0 100%,
    18px 50%
  );
  background: var(--surface-soft);
  color: var(--ink);
  padding: 0.95rem 2.75rem 0.95rem 2rem;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.route-control button:hover {
  background: var(--surface);
}

.route-control button:focus-visible {
  outline-offset: -4px;
}

.route-control button:first-child {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
}

.route-control button:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%);
}

.route-control button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.route-control strong,
.route-control span {
  display: block;
}

.route-control strong {
  font-size: var(--step-body);
}

.route-control span {
  margin-top: 0.35rem;
  font-size: var(--step-small);
}

.route-detail {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gutter);
  margin-top: var(--gutter);
  background: #f1f5f8;
  min-height: 0;
  height: clamp(22rem, 42svh, 28rem);
}

.route-detail.is-media-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.route-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

.route-context {
  color: var(--ink);
  font-size: var(--step-small);
  font-weight: 700;
}

.route-copy h3 {
  max-width: 13ch;
  font-size: clamp(2.1rem, 3vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.route-context {
  margin-top: 0.7rem;
}

.route-copy > p:not(.route-context) {
  margin-top: 1rem;
  font-size: clamp(0.96rem, 0.88rem + 0.2vw, 1.0625rem);
  line-height: 1.42;
}

.route-fact {
  color: var(--muted);
  font-size: var(--step-small);
}

.route-image {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.route-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route-image figcaption {
  padding-inline: 1rem;
}

.engineering {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.engineering-heading h2 {
  max-width: 11ch;
  font-size: var(--step-head);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.engineering-heading p {
  margin-top: 1.4rem;
  color: var(--muted);
}

.engineering-list {
  --flow-line-y: 50%;
  --flow-down-x: 35%;
  --flow-down-start: 2.5rem;
  --flow-down-length: clamp(2.2rem, 3.4vw, 3.2rem);
  --flow-line-gap: 1.5rem;
  --flow-line-length: clamp(2rem, 4vw, 3.8rem);
  --flow-arrow-head-width: 22px;
  --flow-arrow-head-height: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "design supply"
    "test build";
  column-gap: clamp(4.5rem, 8vw, 7rem);
  row-gap: clamp(3rem, 5vw, 4.5rem);
}

.engineering-list article {
  position: relative;
  display: block;
  padding-block: 0.25rem;
  background: transparent;
}

.engineering-list article > span {
  display: block;
  color: var(--muted);
  font-size: var(--step-small);
  font-weight: 600;
}

.engineering-list h3 {
  margin-top: 0.45rem;
  font-size: var(--step-lead);
}

.engineering-list p {
  margin-top: 0.35rem;
  color: var(--muted);
}

.step-design {
  grid-area: design;
}

.step-supply {
  grid-area: supply;
}

.step-build {
  grid-area: build;
}

.step-test {
  grid-area: test;
}

.step-design::after,
.step-build::after {
  content: "";
  position: absolute;
  top: var(--flow-line-y);
  width: var(--flow-line-length);
  height: 4px;
  background: var(--accent);
  transform: translateY(-50%);
}

.step-design::after {
  left: calc(100% + var(--flow-line-gap));
}

.step-build::after {
  right: calc(100% + var(--flow-line-gap));
}

.step-design::before,
.step-build::before {
  content: "";
  position: absolute;
  top: var(--flow-line-y);
  width: var(--flow-arrow-head-width);
  height: var(--flow-arrow-head-height);
  background: var(--accent);
  transform: translateY(-50%);
}

.step-design::before {
  right: calc(-1 * (var(--flow-line-length) + var(--flow-line-gap)));
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.step-build::before {
  left: calc(-1 * (var(--flow-line-length) + var(--flow-line-gap)));
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.step-supply::after {
  content: "";
  position: absolute;
  top: calc(100% + var(--flow-down-start));
  left: calc(var(--flow-down-x) - 2px);
  width: 4px;
  height: var(--flow-down-length);
  background: var(--accent);
}

.step-supply::before {
  content: "";
  position: absolute;
  top: calc(100% + var(--flow-down-start) + var(--flow-down-length));
  left: calc(var(--flow-down-x) - 12px);
  width: var(--flow-arrow-head-height);
  height: var(--flow-arrow-head-width);
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

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

.small-team {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: #eef3f6;
  color: var(--ink);
}

.small-team-layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: end;
}

.small-team h2 {
  max-width: 10ch;
  font-size: var(--step-head);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.small-team p {
  max-width: 40ch;
  margin-top: 1.4rem;
  color: var(--muted);
}

.small-team ul {
  display: grid;
  gap: 0.8rem;
  font-size: var(--step-lead);
  line-height: 1.25;
}

.small-team li {
  display: grid;
  grid-template-columns: 0.65rem minmax(0, 1fr);
  gap: 0.8rem;
}

.small-team li::before {
  content: "→";
  width: auto;
  height: auto;
  margin-top: 0;
  color: var(--accent);
  font-weight: 700;
}

.factory {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.factory-heading {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
}

.factory-reel {
  --reel-gap: clamp(1rem, 2vw, 1.75rem);
  --reel-slide: min(62%, 52rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  outline-offset: 5px;
}

.factory-reel-stage {
  overflow: hidden;
  padding-block: 0.5rem;
  perspective: 90rem;
  touch-action: pan-y;
  cursor: grab;
}

.factory-reel.is-dragging .factory-reel-stage {
  cursor: grabbing;
}

.factory-reel-track {
  display: flex;
  gap: var(--reel-gap);
  align-items: start;
  transform-style: preserve-3d;
  will-change: transform;
}

.factory-slide {
  flex: 0 0 var(--reel-slide);
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateX(2.5rem) rotateY(-7deg) scale(0.94);
  transform-origin: center;
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 420ms;
  will-change: transform, opacity;
}

.factory-slide.is-active {
  visibility: visible;
  opacity: 1;
  transform: rotateY(0) scale(1);
  transition-delay: 0s;
}

.factory-slide.is-before {
  transform: translateX(-2.5rem) rotateY(7deg) scale(0.93);
  transform-origin: right center;
}

.factory-slide.is-after {
  transform: translateX(2.5rem) rotateY(-7deg) scale(0.93);
  transform-origin: left center;
}

.factory-slide.is-far {
  opacity: 0;
}

.factory-reel:not(.is-ready) .factory-slide:first-child {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.factory-slide-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}

.factory-slide-media img,
.factory-slide-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.factory-slide figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: var(--step-small);
}

.factory-slide:not(.is-active) figcaption {
  visibility: hidden;
}

.factory-reel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.factory-reel-button {
  min-width: 7.5rem;
  min-height: 46px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.factory-reel-button:hover {
  background: var(--accent);
}

.factory-reel-button:disabled {
  cursor: default;
  opacity: 0.4;
}

.factory-reel-status {
  color: var(--muted);
  font-size: var(--step-small);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.factory-reel.is-static .factory-reel-controls {
  display: none;
}

.page-contact-links {
  margin-top: 1rem;
  color: var(--dark-muted);
  overflow-wrap: anywhere;
}

.page-contact-links a {
  color: var(--dark-ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.quality {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: #e7eef6;
  color: var(--ink);
}

.quality-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quality h2 {
  color: var(--ink);
}

.quality p {
  margin-top: 1.3rem;
}

.quality ul {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.quality li {
  display: grid;
  grid-template-columns: 0.65rem minmax(0, 1fr);
  gap: 0.7rem;
}

.quality li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--accent);
}

.quality figure {
  min-height: 21rem;
}

.quality figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quality figcaption {
  color: var(--muted);
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: #eef3f6;
}

.faq-list {
  display: grid;
  gap: 0.55rem;
}

.faq details {
  background: var(--bg);
}

.faq summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.faq summary::after {
  content: "+";
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 1.2rem 1.2rem;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  padding-block: clamp(4.5rem, 8vw, 7rem);
  margin-block: clamp(2rem, 5vw, 5rem);
  border-radius: var(--radius);
}

.contact .lead {
  color: var(--dark-muted);
}

.contact-facts {
  align-self: end;
}

.contact-facts p {
  display: grid;
  gap: 0.25rem;
  padding-block: 0.9rem;
  color: var(--dark-muted);
}

.contact-facts span {
  color: var(--dark-ink);
  font-weight: 700;
}

.site-footer {
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  background: var(--dark);
  color: var(--dark-muted);
}

.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.footer-inner img {
  width: min(36vw, 30rem);
  height: auto;
  aspect-ratio: 1600 / 386;
  object-fit: contain;
}

.footer-inner div {
  display: grid;
  gap: 0.35rem;
  text-align: right;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  justify-content: flex-end;
}

.site-footer a {
  color: var(--dark-ink);
}

@media (min-width: 1051px) {
  .route-section {
    display: flex;
    min-height: 100svh;
    align-items: center;
    padding-block: clamp(1.75rem, 4svh, 3.25rem);
  }

  .route-section > .wrap {
    width: min(calc(100% - (2 * var(--margin))), var(--page-max));
    margin-inline: auto;
  }

  .route-shell {
    margin-top: clamp(1.25rem, 3svh, 2.25rem);
  }

  .route-image img {
    min-height: 0;
  }
}

@media (max-width: 1050px) {
  .line-hero,
  .route-detail,
  .quality,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .line-hero {
    gap: 2rem;
    padding-block: 2.5rem 3rem;
  }

  .hero-media img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

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

  .engineering,
  .faq,
  .small-team-layout,
  .factory-heading,
  .section-heading,
  .trust-band,
  .project-router-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-logo {
    justify-self: start;
  }

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

  .route-image,
  .quality figure {
    min-height: 19rem;
  }

  .route-detail {
    height: auto;
  }

  .factory-reel {
    --reel-slide: 76%;
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    padding: 0.6rem;
  }

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

  .site-nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 0.7rem 0.85rem;
  }

  .site-nav .button {
    justify-content: center;
    margin-top: 0.4rem;
  }

  .route-control {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    padding-left: 1.35rem;
  }

  .route-control::before {
    content: "";
    position: absolute;
    top: 1.4rem;
    bottom: 1.4rem;
    left: 0.2rem;
    width: 3px;
    background: var(--accent);
  }

  .route-control button,
  .route-control button:first-child,
  .route-control button:last-child {
    min-height: 64px;
    clip-path: none;
    padding: 0.9rem 1rem 0.9rem 1.8rem;
  }

  .route-control button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -1.04rem;
    width: 0.55rem;
    height: 0.55rem;
    border-top: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
    transform: translateY(-50%) rotate(45deg);
  }
}

@media (max-width: 700px) {
  .site-header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    padding: 0.6rem;
  }

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

  .site-nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 0.7rem 0.85rem;
  }

  .site-nav .button {
    justify-content: center;
    margin-top: 0.4rem;
  }

  .line-hero-copy h1 {
    font-size: clamp(2.5rem, 10.5vw, 3.6rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .text-link {
    justify-content: center;
  }

  .hero-services {
    display: grid;
    gap: 0.45rem;
  }

  .hero-services span + span::before {
    content: none;
  }

  .metric-grid,
  .project-router-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .factory-reel {
    --reel-slide: 88%;
  }

  .route-control {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    padding-left: 1.35rem;
  }

  .route-control::before {
    content: "";
    position: absolute;
    top: 1.4rem;
    bottom: 1.4rem;
    left: 0.2rem;
    width: 3px;
    background: var(--accent);
  }

  .route-control button,
  .route-control button:first-child,
  .route-control button:last-child {
    min-height: 64px;
    clip-path: none;
    padding: 0.9rem 1rem 0.9rem 1.8rem;
  }

  .route-control button:focus-visible {
    outline-offset: 3px;
  }

  .route-control button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -1.04rem;
    width: 0.55rem;
    height: 0.55rem;
    border-top: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
    transform: translateY(-50%) rotate(45deg);
  }

  .metric-grid p {
    padding: 0.9rem 1rem;
  }

  .section-heading h2,
  .factory-heading h2,
  .quality h2,
  .faq h2,
  .contact h2,
  .small-team h2,
  .engineering-heading h2,
  .trust-band h2 {
    font-size: clamp(2.5rem, 11vw, 3.7rem);
  }

  .route-copy h3 {
    font-size: var(--step-lead);
  }

  .engineering-list {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "design"
      "supply"
      "build"
      "test";
    gap: 0;
  }

  .engineering-list article {
    min-height: 7.5rem;
    padding: 1.1rem 0 1.1rem 2.2rem;
  }

  .engineering-list article::before {
    content: "";
    position: absolute;
    top: 1rem;
    left: 0.1rem;
    width: 1.1rem;
    height: 1.1rem;
    background: transparent;
    border-left: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
    border-radius: 0 0 0 0.55rem;
    clip-path: none;
  }

  .engineering-list article::after {
    content: "";
    position: absolute;
    top: 2rem;
    bottom: -1rem;
    left: 0.1rem;
    width: 3px;
    height: auto;
    background: var(--accent);
  }

  .engineering-list article:last-child::after {
    display: none;
  }

  .small-team ul {
    font-size: var(--step-lead);
  }

  .quality figure {
    min-height: 18rem;
  }

  .site-footer {
    padding-top: 3rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner img {
    width: min(72vw, 24rem);
  }

  .footer-inner div {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

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