/* Stratum Orthotic Lab - site styles
   Generated from design/home-mockup.html by tools/make_index.py.
   Edit the mockup and re-run; do not hand-edit the first section.
   Self-hosted or system faces only - the site makes no external
   requests at all. */

/* ==========================================
   STRATUM ORTHOTIC LAB
   HOME PAGE — REVISED
   ========================================== */

:root {
  --charcoal: #141b21;
  --orange: #fc4800;
  --orange-text: #c23700;
  --orange-light: #ff946c;

  --white: #ffffff;
  --grey: #f4f5f7;
  --grey-dark: #e4e7ea;

  --text: #141b21;
  --muted: #4c565e;
  --line: #d7dce0;

  --dark-panel: #202a32;
  --dark-line: #46535d;
  --dark-muted: #d5dce0;

  --max-width: 1200px;
}

/* ==========================================
   RESET
   ========================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--orange-text);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

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

p {
  margin: 0 0 20px;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 800;
}

h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 800;
}

h3 {
  font-size: 21px;
  font-weight: 800;
}

strong {
  font-weight: 800;
}

.wrap {
  width: min(
    var(--max-width),
    calc(100% - 64px)
  );
  margin-inline: auto;
}

.section {
  padding: 90px 0;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-intro p {
  max-width: 650px;
  color: var(--muted);
  font-size: 16px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.15em;
  text-transform: uppercase;

  line-height: 1.5;
}

.eyebrow::before {
  content: "";
  width: 25px;
  height: 3px;
  flex: 0 0 auto;
  background: var(--orange);
}

.lead {
  font-size: 18px;
  line-height: 1.65;
}

.section-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 35px 0;
}

/* ==========================================
   BUTTONS
   ========================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  min-height: 56px;
  padding: 14px 22px;

  border: 2px solid transparent;
  border-radius: 1px;

  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;

  line-height: 1.35;
  text-decoration: none;

  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.button-primary {
  background: var(--orange);
  color: var(--charcoal);
}

.button-primary:hover {
  background: #ff7841;
  color: var(--charcoal);
}

.button-dark {
  background: var(--charcoal);
  color: var(--white);
}

.button-dark:hover {
  background: #34414b;
  color: var(--white);
}

.button-outline {
  color: var(--charcoal);
  border-color: var(--charcoal);
  background: transparent;
}

.button-outline:hover {
  color: var(--white);
  background: var(--charcoal);
}

.button-arrow {
  font-size: 21px;
  line-height: 1;
}

/* ==========================================
   HEADER
   ========================================== */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

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

  min-height: 106px;
}

/*
  LOGO NOTE

  This is a self-contained HTML/CSS/SVG
  representation of the Stratum identity.

  For production, replace this brand lockup
  with the approved original logo asset.

  The text remains editable HTML.
  No lettering is embedded in the SVG.
*/

.brand {
  display: flex;
  align-items: center;
  gap: 13px;

  color: var(--charcoal);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-symbol { max-width: 190px; height: auto;
  width: 92px;
  height: 51px;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-weight: 900;
  font-size: 25px;
  letter-spacing: -0.055em;
}

.brand-descriptor {
  margin-top: 5px;

  color: var(--orange-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.23em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 29px;
}

.main-nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.main-nav a:not(.nav-cta):hover {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 6px;
}

.main-nav .nav-cta {
  background: var(--charcoal);
  color: var(--white);
  padding: 13px 18px;
}

.main-nav .nav-cta:hover {
  background: #34414b;
}

/* ==========================================
   HERO
   ========================================== */

.hero {
  background: var(--charcoal);
  color: var(--white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 55px;
  align-items: center;

  padding-top: 84px;
  padding-bottom: 81px;
}

.hero .eyebrow {
  color: #d1d9de;
}

.hero h1 {
  margin: 23px 0 25px;
  max-width: 750px;
}

.hero h1 .highlight {
  color: var(--orange-light);
}

.hero .lead {
  max-width: 610px;
  color: #e0e6ea;
  margin-bottom: 28px;
}

.hero-proof {
  border-left: 3px solid var(--orange);

  margin-top: 31px;
  padding-left: 20px;

  max-width: 580px;

  color: var(--white);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 700;
}

.hero-meta {
  margin-top: 24px;

  color: #c5cfd5;
  font-size: 13px;
  line-height: 1.7;
}

/* ==========================================
   TECHNICAL VISUALS
   ========================================== */

.technical-figure {
  margin: 0;
}

.technical-panel {
  position: relative;

  height: 365px;
  overflow: hidden;

  border: 1px solid #63707a;

  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 39px,
      #34414a 39px,
      #34414a 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 39px,
      #34414a 39px,
      #34414a 40px
    ),
    #202a32;
}

.technical-panel::after {
  content: "";

  position: absolute;
  inset: 13px;

  border: 1px solid #56636d;

  pointer-events: none;
}

.technical-panel svg {
  width: 100%;
  height: 100%;
}

/* A panel holding a photograph rather than a drawing. The grid paper and
   the inset hairline are there to make a technical drawing look drawn; over
   a photograph they read as clutter, so both come off and the image fills
   the panel edge to edge. */
.photo-panel {
  background: #0d1216;
  padding: 0;
}

.photo-panel::after {
  display: none;
}

.photo-panel img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.figure-caption {
  margin-top: 13px;

  color: #c6d0d6;

  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
}

/* ==========================================
   TURNAROUND
   ========================================== */

.turnaround {
  padding: 65px 0 70px;
  background: var(--grey);
  border-bottom: 1px solid var(--line);
}

.turnaround-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 30px;
  margin-bottom: 28px;
}

.turnaround-heading h2 {
  margin: 15px 0 0;
}

.turnaround-note {
  max-width: 320px;
  margin: 0 0 5px;

  text-align: right;

  font-size: 13px;
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  background: var(--white);
  border: 1px solid #cbd2d7;
}

.metric {
  padding: 35px;
  min-height: 225px;
}

.metric + .metric {
  border-left: 1px solid #cbd2d7;
}

.metric-number {
  font-size: clamp(76px, 8vw, 113px);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.95;
}

.metric-number span {
  display: inline-block;
  margin-left: 8px;
  vertical-align: top;

  color: var(--orange-text);
  font-size: 25px;
  letter-spacing: -0.02em;
}

.metric h3 {
  margin: 25px 0 7px;
  font-size: 18px;
}

.metric p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ==========================================
   THE BALANCE — PRIMARY DIFFERENTIATOR
   ========================================== */

.balance-section {
  padding: 100px 0;
  background: var(--white);
}

.balance-heading {
  max-width: 1000px;
  margin-bottom: 49px;
}

.balance-heading h2 {
  max-width: 940px;
  margin: 17px 0 26px;
}

.balance-statement {
  max-width: 1030px;

  font-size: clamp(23px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.035em;

  margin: 0;
}

.balance-statement em {
  color: var(--orange-text);
  font-style: normal;
}

/* Tolerance feature panel */

.tolerance-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;

  background: var(--charcoal);
  color: var(--white);

  border-top: 5px solid var(--orange);
  margin-bottom: 43px;
}

.tolerance-number-block {
  padding: 45px 46px 48px;
  border-right: 1px solid var(--dark-line);
}

.tolerance-kicker {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: #d7dfe3;
}

.tolerance-number {
  font-size: clamp(88px, 10vw, 144px);
  font-weight: 800;

  line-height: 1;
  letter-spacing: -0.1em;

  margin: 25px 0 14px;
  color: var(--white);
}

.tolerance-number span {
  color: var(--orange-light);
  font-size: 37px;
  letter-spacing: -0.03em;
  margin-left: 9px;
}

.tolerance-label {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.tolerance-description {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tolerance-description h3 {
  font-size: 26px;
  max-width: 530px;
  margin-bottom: 20px;
}

.tolerance-description p {
  max-width: 530px;
  margin-bottom: 15px;
  color: #e0e6ea;
}

.tolerance-description p:last-child {
  margin-bottom: 0;
}

.tolerance-qualification {
  font-size: 13px;
  color: #cad4da !important;
}

/* Supporting technical facts */

.balance-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 42px;
}

.balance-fact {
  display: grid;
  grid-template-columns: 47px 1fr;
  gap: 16px;

  padding: 27px 0;

  border-top: 1px solid var(--line);
}

.fact-index {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--orange-text);
}

.balance-fact h3 {
  margin: 0 0 11px;
  font-size: 20px;
}

.balance-fact p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* Historical method explanation */

.method-note {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 45px;

  margin-top: 36px;
  padding: 36px 0 0;

  border-top: 2px solid var(--charcoal);
}

.method-note h3 {
  font-size: 25px;
  margin: 0;
}

.method-note p {
  color: #3b464e;
  font-size: 16px;
  line-height: 1.8;
}

.method-note p:last-child {
  margin-bottom: 0;
}

/* ==========================================
   PROCESS
   ========================================== */

.process {
  background: var(--grey);
}

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

.process-step {
  padding: 24px 16px 10px 0;
  border-top: 4px solid var(--charcoal);
}

.step-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;

  margin-bottom: 30px;
}

.step-number {
  color: var(--orange-text);
  font-size: 13px;
  font-weight: 800;
}

.step-type {
  padding: 6px 9px;

  border: 1px solid #aab4bc;

  color: #35434d;
  background: var(--white);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.step-type.hand {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
}

.process-step h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.process-step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.process-dispatch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;

  margin-top: 40px;
  padding: 26px 30px;

  background: var(--charcoal);
  color: var(--white);
}

.process-dispatch p {
  margin: 0;
  color: #edf1f3;
}

.process-dispatch a {
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  white-space: nowrap;
}

/* ==========================================
   MANUFACTURING CAPABILITIES
   ========================================== */

.manufacturing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.manufacturing-figure {
  padding: 15px;
  background: var(--grey);

  border: 1px solid var(--line);
}

.manufacturing-figure .technical-panel {
  height: 395px;

  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 39px,
      #e0e5e9 39px,
      #e0e5e9 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 39px,
      #e0e5e9 39px,
      #e0e5e9 40px
    ),
    #f4f5f7;

  border-color: #cad2d8;
}

.manufacturing-figure .technical-panel::after {
  border-color: #d2d9de;
}

.manufacturing-figure .figure-caption {
  color: #4d5861;
}

.manufacturing-content h2 {
  margin: 16px 0 22px;
}

.manufacturing-content > p {
  color: var(--muted);
}

.capabilities-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;

  margin: 28px 0 30px;
}


/* ==========================================
   FIVE-STAGE STRIP
   ========================================== */

/* One pair, carried through five stages. Four of them are captures from the
   design software and the fifth is the photograph of the finished device, so
   the strip ends by walking out of the screen and into your hand.

   It scrolls sideways rather than stacking, because the five are a sequence
   and a sequence wants to be read in order. The rail deliberately runs past
   the right-hand edge of the text column: a card cut in half is the only
   honest way to say "there is more this way" without printing the words. */
.stages-rail {
  /* Matches .wrap's gutter, so card one lines up with the heading above it
     while the rest of the rail still reaches the edge of the window. */
  --rail-gutter: max(32px, calc((100% - var(--max-width)) / 2));

  margin-top: 34px;
}

.stages-track {
  display: flex;
  gap: 20px;

  margin: 0;
  padding: 4px var(--rail-gutter);
  list-style: none;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--rail-gutter);
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;

  /* The bar is hidden because the cards peek and there are dots and arrows
     below; it is not hidden to make scrolling a secret. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stages-track::-webkit-scrollbar {
  display: none;
}

.stages-track:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.stage-card {
  flex: 0 0 min(520px, 78vw);
  scroll-snap-align: start;

  display: flex;
  flex-direction: column;

  background: var(--white);
  border: 1px solid var(--line);
}

.stage-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;

  /* The same navy the four captures already have, so a slow connection
     shows the right colour rather than a white flash. */
  background: #222e5e;
  border-bottom: 1px solid var(--line);
}

.stage-body {
  padding: 18px 20px 22px;
}

.stage-step {
  display: block;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-text);
}

.stage-body h3 {
  margin: 9px 0 9px;
  font-size: 18px;
  line-height: 1.3;
}

.stage-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Hidden until the script fills them in, so a visitor without JavaScript
   gets a strip they can still swipe and tab through, not a dead set of
   buttons under it. */
.stages-controls {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-top: 24px;
  padding: 0 var(--rail-gutter);
}

.stages-arrow {
  width: 42px;
  height: 42px;
  flex: none;

  display: grid;
  place-items: center;

  font-size: 15px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
}

.stages-arrow:hover:not(:disabled) {
  border-color: var(--charcoal);
}

.stages-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.stages-dots {
  display: flex;
  align-items: center;
  gap: 8px;

  margin: 0;
  padding: 0;
  list-style: none;
}

.stages-dot {
  width: 9px;
  height: 9px;
  padding: 0;

  background: var(--grey-dark);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.stages-dot[aria-current="true"] {
  width: 24px;
  background: var(--orange);
}

/* The strip advances on its own, so it needs a way to stop it - something
   that moves without being asked has to be stoppable. Hovering or tabbing
   into the strip pauses it too, and touching an arrow or a dot stops it for
   good, because at that point the visitor is driving. */
.stages-play {
  margin-left: auto;
}

.stages-icon {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
}

/* Two bars while it is running. Drawn rather than typed, because the pause
   and play characters land as emoji on some systems. */
.stages-icon::before,
.stages-icon::after {
  content: "";
  position: absolute;
  top: 0;

  width: 3px;
  height: 12px;
  background: currentColor;
}

.stages-icon::before {
  left: 1px;
}

.stages-icon::after {
  right: 1px;
}

/* One triangle while it is stopped. */
[data-paused] .stages-icon::before {
  left: 2px;

  width: 0;
  height: 0;
  background: none;

  border-left: 10px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

[data-paused] .stages-icon::after {
  display: none;
}

/* .wrap drops to an 18px gutter below this width, and the rail has to drop
   with it or card one stops lining up with the heading above it. */
@media (max-width: 760px) {
  .stages-rail {
    --rail-gutter: max(18px, calc((100% - var(--max-width)) / 2));
  }
}

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


/* ==========================================
   PRINT TIMELAPSE
   ========================================== */

.printvid .wrap {
  max-width: 880px;
}

/* The clip is 3:4 portrait, because the subject runs tall and narrow and
   there is no honest landscape crop of it. So the plate is narrow too,
   rather than a portrait video marooned in the middle of a wide box. */
.printvid-figure {
  margin: 30px 0 0;
  padding: 15px;

  max-width: 430px;

  background: var(--grey);
  border: 1px solid var(--line);
}

.printvid-figure video {
  display: block;
  width: 100%;
  height: auto;

  background: #0d1216;
  border: 1px solid #cad2d8;
}

.printvid-figure .figure-caption {
  color: #4d5861;
}

.capability {
  border-top: 1px solid #bfc7cd;
  padding: 20px 0 18px;
}

.capability h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.capability p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* ==========================================
   SCAN COMPATIBILITY
   ========================================== */

.compatibility {
  background: var(--grey);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compatibility-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 70px;
  align-items: center;
}

.compatibility h2 {
  margin: 17px 0 22px;
}

.compatibility p {
  color: var(--muted);
  max-width: 620px;
}

.format-list { margin: 0 0 22px; }
.format-list dt {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.01em;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}
.format-list dd {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.compatibility-panel {
  background: var(--white);

  border: 1px solid #ccd3d8;
  border-top: 5px solid var(--orange);

  padding: 30px;
}

.compatibility-panel h3 {
  font-size: 21px;
}

.compatibility-panel p {
  font-size: 14px;
  line-height: 1.7;
}

.placeholder-note {
  display: block;
  border: 1px dashed #85929b;

  padding: 15px;
  margin: 22px 0 0;

  color: #35414a;
  background: #f4f5f7;

  font-size: 13px;
  line-height: 1.65;
}

.placeholder-note strong {
  display: block;
  margin-bottom: 5px;
}

/* ==========================================
   WHY CLINICS WORK WITH STRATUM
   ========================================== */

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

.advantage-card {
  border: 1px solid var(--line);
  padding: 30px 27px;
}

.advantage-card::before {
  content: "";
  display: block;

  width: 37px;
  height: 4px;

  background: var(--orange);

  margin-bottom: 27px;
}

.advantage-card h3 {
  font-size: 21px;
  margin-bottom: 14px;
}

.advantage-card p {
  margin: 0;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.75;
}

/* ==========================================
   FINAL CTA
   ========================================== */

.contact {
  padding: 90px 0;
  background: var(--charcoal);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 80px;
}

.contact .eyebrow {
  color: #d0d9de;
}

.contact h2 {
  margin: 20px 0 26px;
  max-width: 660px;
}

.contact p {
  color: #e1e7eb;
  line-height: 1.75;
}

.contact-box {
  border-top: 5px solid var(--orange);
  padding-top: 29px;
}

.contact-box h3 {
  font-size: 25px;
  margin-bottom: 19px;
}

.contact-option {
  padding: 19px 0;

  border-bottom: 1px solid var(--dark-line);
}

.contact-option strong {
  display: block;
  margin-bottom: 5px;
  color: var(--white);
}

.contact-option p {
  font-size: 14px;
  margin: 0;
}

.contact-details {
  border-left: 4px solid var(--orange);

  margin-top: 27px;
  padding: 18px;

  color: #e2e9ed;
  font-size: 13px;
  line-height: 1.7;
}

.contact-details strong {
  display: block;
  margin-bottom: 6px;
}

.contact-details p {
  font-size: 13px;
  margin: 0;
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
  padding: 29px 0;
  background: #0e1419;
  color: #d0d8dd;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  font-size: 12px;
}

.footer-inner strong {
  color: var(--white);
}

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

/* ==========================================
   RESPONSIVE — TABLET
   ========================================== */

@media (max-width: 1020px) {

  .main-nav {
    gap: 17px;
  }

  .hero-grid {
    gap: 30px;
  }

  .manufacturing-grid {
    gap: 32px;
  }

  .metric {
    padding: 28px;
  }

  .advantages-grid {
    gap: 13px;
  }

  .advantage-card {
    padding: 25px 21px;
  }

  .contact-grid {
    gap: 45px;
  }

}

/* ==========================================
   RESPONSIVE — MOBILE
   ========================================== */

@media (max-width: 760px) {

  .wrap {
    width: min(
      var(--max-width),
      calc(100% - 36px)
    );
  }

  .section,
  .balance-section {
    padding: 65px 0;
  }

  .header-inner {
    min-height: 84px;
    gap: 12px;
  }

  .brand-symbol { max-width: 190px; height: auto;
    width: 62px;
    height: 38px;
  }

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

  .brand-descriptor {
    font-size: 8px;
  }

  .main-nav a:not(.nav-cta) {
    display: none;
  }

  .main-nav .nav-cta {
    font-size: 12px;
    padding: 11px 12px;
  }

  .hero-grid,
  .manufacturing-grid,
  .compatibility-grid,
  .contact-grid,
  .method-note,
  .tolerance-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 65px;
    padding-bottom: 55px;
    gap: 45px;
  }

  .hero h1 {
    font-size: clamp(40px, 10vw, 58px);
  }

  .hero .lead {
    font-size: 16px;
  }

  .technical-panel {
    height: 280px;
  }

  .turnaround {
    padding: 55px 0 60px;
  }

  .turnaround-heading {
    display: block;
  }

  .turnaround-note {
    text-align: left;
    max-width: none;
    margin-top: 17px;
  }

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

  .metric + .metric {
    border-left: 0;
    border-top: 1px solid #cbd2d7;
  }

  .metric {
    min-height: auto;

    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 0 15px;
    align-items: center;

    padding: 27px;
  }

  .metric-number {
    grid-row: span 2;
    font-size: 87px;
  }

  .metric-number span {
    font-size: 20px;
  }

  .metric h3 {
    margin: 0 0 5px;
  }

  .balance-heading {
    margin-bottom: 33px;
  }

  .balance-statement {
    font-size: 25px;
  }

  .tolerance-number-block {
    border-right: 0;
    border-bottom: 1px solid var(--dark-line);

    padding: 35px;
  }

  .tolerance-number {
    font-size: 104px;
    margin: 20px 0 10px;
  }

  .tolerance-description {
    padding: 34px 35px;
  }

  .balance-facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .method-note {
    gap: 22px;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .process-dispatch {
    flex-direction: column;
    align-items: flex-start;
  }

  .manufacturing-figure .technical-panel {
    height: 310px;
  }

  .compatibility-grid {
    gap: 30px;
  }

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

  .contact {
    padding: 65px 0;
  }

  .contact-grid {
    gap: 35px;
  }

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

}

/* ==========================================
   SMALL MOBILE
   ========================================== */

@media (max-width: 440px) {

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .brand-symbol { max-width: 190px; height: auto;
    width: 49px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-descriptor {
    font-size: 7px;
  }

  .main-nav .nav-cta {
    font-size: 11px;
    padding: 10px;
  }

  .metric {
    grid-template-columns: 105px 1fr;
    padding: 22px 17px;
  }

  .metric-number {
    font-size: 68px;
  }

  .metric-number span {
    font-size: 17px;
  }

  .metric h3 {
    font-size: 15px;
  }

  .balance-statement {
    font-size: 23px;
  }

  .tolerance-number-block,
  .tolerance-description {
    padding: 26px;
  }

  .tolerance-number {
    font-size: 84px;
  }

  .tolerance-number span {
    font-size: 28px;
  }

  .tolerance-description h3 {
    font-size: 23px;
  }

  .process-steps,
  .capabilities-list {
    grid-template-columns: 1fr;
  }

  .process-step {
    padding-bottom: 14px;
  }

  .step-heading {
    margin-bottom: 17px;
  }

  .technical-panel {
    height: 240px;
  }

  .manufacturing-figure .technical-panel {
    height: 250px;
  }

}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

}

/* ===========================================================
   PRODUCTION ADDITIONS

   The mockup had no skip link because it was one page with no
   nav to skip past. The built site needs one, and it needs to
   stay out of sight until a keyboard user reaches it.
   =========================================================== */

.skip {
  position: absolute;
  left: 12px;
  top: -200px;
  z-index: 200;
  background: var(--charcoal);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 16px;
  text-decoration: none;
}

.skip:focus { top: 12px; }

/* ===========================================================
   The mockup is a single page with an anchor nav. The built site
   has nine pages, a mobile menu and two forms.
   =========================================================== */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  background: none;
  border: 2px solid var(--charcoal);
  border-radius: 1px;
  padding: 9px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--charcoal);
}

.nav-toggle-bars { position: relative; }

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after  { top: 5px; }

.main-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* --- page band for the inner pages ------------------------- */

.page-head {
  background: var(--charcoal);
  color: #fff;
  padding-block: 66px 60px;
}

.page-head .eyebrow { color: #cdd4da; }
.page-head h1 { color: #fff; max-width: 17ch; }

.page-head p {
  color: #dfe5e9;
  font-size: 18px;
  line-height: 1.65;
  max-width: 62ch;
  margin-bottom: 0;
}

.prose { max-width: 68ch; }
.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 32px; }
.prose ul, .prose ol { padding-left: 20px; color: var(--muted); }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--orange); }

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  max-width: 62ch;
}

.two-col {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
}

.aside-card {
  background: var(--grey);
  border-top: 4px solid var(--orange);
  padding: 27px 26px;
}

.aside-card h3 { font-size: 18px; margin-bottom: 10px; }
.aside-card p  { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.aside-card + .aside-card { margin-top: 18px; }

/* --- data table -------------------------------------------- */

.spec-table { width: 100%; border-collapse: collapse; }

.spec-table caption {
  text-align: left;
  font-size: 13px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 14px 16px 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.spec-table td:first-child { font-weight: 700; width: 38%; }
.spec-table td p { margin: 0; font-size: 14px; color: var(--muted); }

/* --- forms -------------------------------------------------- */

.form-wrap {
  background: var(--grey);
  border-top: 4px solid var(--orange);
  padding: 34px 32px 36px;
}

.field { margin-bottom: 21px; }

.field label {
  display: block;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .01em;
  margin-bottom: 7px;
}

.field .req { color: var(--orange-text); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  padding: 12px 13px;
  border: 1px solid #9aa4ac;
  border-radius: 1px;
}

.field textarea { min-height: 9rem; resize: vertical; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.field .hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  font-weight: 400;
}

.check input { margin-top: 3px; flex-shrink: 0; }

.hp { position: absolute; left: -9999px; }

fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 24px;
  padding: 22px 0 0;
}

legend {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}

/* --- small print ------------------------------------------- */

.note-block {
  border-left: 4px solid var(--orange);
  padding: 2px 0 2px 18px;
  margin: 26px 0;
}

.note-block p { margin-bottom: 0; font-size: 15px; }

/* --- footer ------------------------------------------------- */

.site-footer {
  background: #0f151a;
  color: #cdd3d8;
  padding-block: 40px 34px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand strong { color: #fff; display: block; font-size: 17px; }
.footer-brand span   { font-size: 13px; display: block; margin-top: 6px; }

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 20px;
}

.footer-nav a { color: #fff; font-size: 14px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

.footer-contact { display: grid; gap: 6px; font-size: 14px; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-contact span { color: #9aa6ae; font-size: 13px; }

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 34px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0 4px;
  }

  .main-nav[data-open="true"] { display: flex; }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .main-nav .nav-cta {
    margin-top: 12px;
    border-bottom: 0;
    text-align: center;
    padding: 14px 16px;
  }

  .header-inner { flex-wrap: wrap; }
  .field-row, .check-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 26px 20px 28px; }
  .page-head { padding-block: 46px 42px; }
}
