/* ==========================================================================
   Huasheng Industrial Equipment Trading
   Single stylesheet. Mobile-first. Design tokens as custom properties.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */

:root {
  /* Colour ---------------------------------------------------------- */
  --c-ink: #1a1817; /* primary text */
  --c-ink-2: #3b3733; /* lede text */
  --c-muted: #6b655e; /* secondary body text */
  --c-label: #8a837b; /* mono labels on light */
  --c-label-dark: #a9a29a; /* mono labels on dark */
  --c-surface: #f5f3f0; /* tinted section background */
  --c-white: #fff;
  --c-dark: #141210; /* dark sections, header, footer */
  --c-darker: #0c0b0a; /* hero scrim base */
  --c-accent: #ef5f2c;
  --c-accent-hover: #d8501f;

  /* Hairlines ------------------------------------------------------- */
  --line-1: rgba(26, 24, 23, 0.1);
  --line-2: rgba(26, 24, 23, 0.12);
  --line-3: rgba(26, 24, 23, 0.14);
  --line-on-dark-1: rgba(255, 255, 255, 0.12);
  --line-on-dark-2: rgba(255, 255, 255, 0.14);
  --line-on-dark-3: rgba(255, 255, 255, 0.18);
  --line-on-dark-4: rgba(255, 255, 255, 0.34);
  --line-on-dark-5: rgba(255, 255, 255, 0.5);

  /* Text on dark ---------------------------------------------------- */
  --c-on-dark: rgba(255, 255, 255, 0.84);
  --c-on-dark-2: rgba(255, 255, 255, 0.78);
  --c-on-dark-3: rgba(255, 255, 255, 0.7);
  --c-on-dark-4: rgba(255, 255, 255, 0.68);
  --c-on-dark-5: rgba(255, 255, 255, 0.66);
  --c-on-dark-6: rgba(255, 255, 255, 0.6);
  --c-on-dark-nav: rgba(255, 255, 255, 0.74);
  --c-on-dark-faint: rgba(255, 255, 255, 0.42);

  /* Type ------------------------------------------------------------ */
  --font-sans: 'Geist', 'Archivo', system-ui, -apple-system, 'Segoe UI', roboto,
    sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, sfmono-regular, menlo, monospace;

  /* Fluid between 375px and 1440px viewports. */
  --fs-h1: clamp(2.375rem, 1.2746rem + 4.6948vw, 5.5rem); /* 38 → 88 */
  --fs-h2: clamp(1.875rem, 1.5229rem + 1.5023vw, 2.875rem); /* 30 → 46 */
  --fs-h2-display: clamp(2rem, 1.5159rem + 2.0657vw, 3.375rem); /* 32 → 54 */
  --fs-h2-parts: clamp(2rem, 1.472rem + 2.2535vw, 3.5rem); /* 32 → 56 */
  --fs-h3-band: clamp(1.5rem, 1.3239rem + 0.7512vw, 2rem); /* 24 → 32 */
  --fs-h3-panel: clamp(1.5rem, 1.368rem + 0.5634vw, 1.875rem); /* 24 → 30 */
  --fs-h3-card: clamp(1.375rem, 1.287rem + 0.3756vw, 1.625rem); /* 22 → 26 */
  --fs-h3-step: clamp(1.375rem, 1.265rem + 0.4695vw, 1.6875rem); /* 22 → 27 */
  --fs-h3-cap: clamp(1.25rem, 1.184rem + 0.2817vw, 1.4375rem); /* 20 → 23 */
  --fs-h3-row: clamp(1.75rem, 1.486rem + 1.1268vw, 2.5rem); /* 28 → 40 */
  --fs-statement: clamp(1.375rem, 1.177rem + 0.8451vw, 1.9375rem); /* 22 → 31 */
  --fs-statement-sm: clamp(1.1875rem, 1.055rem + 0.5634vw, 1.5625rem); /* 19 → 25 */
  --fs-h3-lg: clamp(1.25rem, 1.206rem + 0.1878vw, 1.375rem); /* 20 → 22 */
  --fs-h3: clamp(1.1875rem, 1.1435rem + 0.1878vw, 1.3125rem); /* 19 → 21 */
  --fs-h3-sm: clamp(1.0625rem, 1.0405rem + 0.0939vw, 1.125rem); /* 17 → 18 */
  --fs-lede: clamp(1.0625rem, 1.0185rem + 0.1878vw, 1.1875rem); /* 17 → 19 */
  --fs-body: 1.03125rem; /* 16.5 */
  --fs-body-sm: 0.96875rem; /* 15.5 */
  --fs-card: 0.9375rem; /* 15 */
  --fs-micro: 0.90625rem; /* 14.5 */
  --fs-nav: 0.875rem; /* 14 */
  --fs-mono: 0.6875rem; /* 11 */
  --fs-mono-sm: 0.65625rem; /* 10.5 */

  --lh-tight: 0.96;
  --lh-display: 1.02;
  --lh-heading: 1.06;
  --lh-body: 1.62;
  --lh-relaxed: 1.68;

  --ls-h1: -0.035em;
  --ls-h2: -0.03em;
  --ls-h3: -0.02em;
  --ls-mono: 0.18em;
  --ls-mono-sm: 0.16em;

  /* Space ----------------------------------------------------------- */
  --sp-section: clamp(4.5rem, 2.739rem + 7.512vw, 9.5rem); /* 72 → 152 */
  --sp-section-lg: clamp(4.75rem, 2.901rem + 7.887vw, 10rem); /* 76 → 160 */
  --sp-section-md: clamp(4.25rem, 2.665rem + 6.761vw, 8.75rem); /* 68 → 140 */
  --sp-section-sm: clamp(4rem, 2.504rem + 6.385vw, 8.25rem); /* 64 → 132 */
  --gutter: clamp(1.25rem, 0.4575rem + 3.3803vw, 3.5rem); /* 20 → 56 */
  --gap-col: clamp(2.5rem, 0.7676rem + 5.6338vw, 5.5rem); /* 40 → 88 */
  --gap-card: 1.5rem; /* 24 */
  --maxw: 85rem; /* 1360 */

  --header-h: clamp(3.875rem, 2.9711rem + 3.8554vw, 6.0625rem); /* 62 → 97 */
  --logo-w: clamp(8.75rem, 7.4648rem + 5.4836vw, 12.25rem); /* 140 → 196 */

  --radius-btn: 5px;
  --radius-pill: 999px;

  /* Motion ---------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 180ms;
  --dur-reveal: 700ms;
}

/* ----------------------------------------------------------------- base -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

/* The `hidden` attribute is only honoured by a UA rule of the same
   specificity as a class, so any `.thing { display: … }` silently defeats
   it. Anything relying on `hidden` to stay out of the page — the enquiry
   success panel, the form once it is submitted, field error slots — needs
   this to be authoritative. */
[hidden] {
  display: none !important;
}

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

/* <picture> wraps every photograph for the WebP/JPEG swap. It must not
   create a box of its own, or absolutely-positioned and object-fit images
   would lose their containing block. */
picture {
  display: contents;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  color: var(--c-white);
  background: var(--c-accent);
  transform: translateY(-120%);
  transition: transform var(--dur-fast) var(--ease);
}

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

/* ------------------------------------------------------------- helpers -- */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--sp-section);
}

.section--surface {
  background: var(--c-surface);
}

.section--dark {
  padding-block: var(--sp-section-lg);
  color: var(--c-white);
  background: var(--c-dark);
}

.section--accent {
  padding-block: var(--sp-section-md);
  color: var(--c-white);
  background: var(--c-accent);
}

.section--contact {
  padding-block: var(--sp-section-sm);
}

/* Eyebrow: orange square + mono caps label. */
.eyebrow {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 1.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--c-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono);
}

.eyebrow::before {
  flex: none;
  width: 6px;
  height: 6px;
  content: '';
  background: var(--c-accent);
}

.eyebrow--on-dark {
  color: var(--c-label-dark);
}

.eyebrow--on-accent {
  color: rgba(255, 255, 255, 0.88);
}

.eyebrow--on-accent::before {
  background: var(--c-white);
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-h2);
}

/* Pill: outline capsule with an accent dot. */
.pill {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--c-white);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono-sm);
  border: 1px solid var(--line-on-dark-4);
  border-radius: var(--radius-pill);
  transition:
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.pill::before {
  flex: none;
  width: 5px;
  height: 5px;
  content: '';
  background: var(--c-accent);
}

a.pill:hover,
a.pill:focus-visible {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--c-white);
}

/* Solid button. */
.btn {
  display: inline-block;
  flex: none;
  padding: 19px 38px;
  font-size: var(--fs-body-sm);
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--c-white);
  text-align: center;
  background: var(--c-accent);
  border-radius: var(--radius-btn);
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.btn:hover,
.btn:focus-visible {
  color: var(--c-white);
  background: var(--c-accent-hover);
}

.btn--light {
  padding: 17px 32px;
  font-size: 0.9375rem;
  color: var(--c-ink);
  background: var(--c-white);
}

.btn--light:hover,
.btn--light:focus-visible {
  color: var(--c-white);
  background: var(--c-ink);
}

/* Dark button, used on the accent band. */
.btn--dark {
  background: var(--c-dark);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  color: var(--c-white);
  background: #000;
}

/* ------------------------------------------------------------- header --- */

/* The header spans the full viewport and is the only element that paints a
   background. Nothing sits behind it: a second stacked layer cannot carry
   backdrop-filter (it does not inherit), so it would tint differently from
   the element in front of it and seam at the shell boundary. */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition:
    background-color 300ms var(--ease),
    border-color 300ms var(--ease);
  border-bottom: 1px solid transparent;
}

/* "Header solidifies on scroll" — .is-solid is applied by site.js. */
.header.is-solid {
  background: rgba(20, 18, 16, 0.94);
  border-bottom-color: var(--line-on-dark-2);
  backdrop-filter: saturate(140%) blur(10px);
}

/* Width and padding only — never a background. */
.header__inner {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--maxw);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header__logo {
  display: block;
  flex: none;
}

.header__logo img {
  width: var(--logo-w);
  height: auto;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav__link {
  font-size: var(--fs-nav);
  font-weight: 400;
  color: var(--c-on-dark-nav);
  white-space: nowrap;
  letter-spacing: 0.005em;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--c-accent);
}

.nav__link[aria-current='page'] {
  color: var(--c-white);
}

.header__cta {
  display: none;
}

/* Mobile menu toggle ------------------------------------------------ */

.menu-toggle {
  display: flex;
  flex: none;
  gap: 5px;
  flex-direction: column;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-inline-end: -10px;
  padding: 10px;
}

.menu-toggle__bar {
  width: 100%;
  height: 1.5px;
  background: var(--c-white);
  transition:
    transform 260ms var(--ease),
    opacity 160ms var(--ease);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu panel ------------------------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) var(--gutter) 3rem;
  visibility: hidden;
  background: var(--c-dark);
  opacity: 0;
  transition:
    opacity 300ms var(--ease),
    visibility 300ms var(--ease);
}

.menu.is-open {
  visibility: visible;
  opacity: 1;
}

.menu__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.menu__link {
  font-size: clamp(1.5rem, 1.2rem + 1.28vw, 2rem);
  font-weight: 500;
  color: var(--c-white);
  letter-spacing: var(--ls-h3);
}

.menu__link:hover,
.menu__link:focus-visible {
  color: var(--c-accent);
}

.menu__cta {
  align-self: flex-start;
  margin-top: 2.5rem;
}

body.menu-open {
  overflow: hidden;
}

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(100svh, 60rem);
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--c-dark);
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 60%;
}

/* "Hero image scales slowly, 12s" */
.hero__img {
  transform: scale(1.001);
  transition: transform 12s linear;
}

.hero.is-ready .hero__img {
  transform: scale(1.08);
}

.hero__scrim,
.hero__scrim-base {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__scrim-base {
  background: linear-gradient(
    90deg,
    rgba(12, 11, 10, 0.93) 0%,
    rgba(12, 11, 10, 0.8) 34%,
    rgba(12, 11, 10, 0.28) 64%,
    rgba(12, 11, 10, 0.1) 100%
  );
}

.hero__scrim {
  top: auto;
  height: 240px;
  background: linear-gradient(
    180deg,
    rgba(12, 11, 10, 0) 0%,
    rgba(12, 11, 10, 0.72) 100%
  );
}

/* On narrow screens the left-to-right scrim leaves text unreadable, so
   darken vertically instead. */
@media (max-width: 59.999rem) {
  .hero__scrim-base {
    background: linear-gradient(
      180deg,
      rgba(12, 11, 10, 0.86) 0%,
      rgba(12, 11, 10, 0.72) 45%,
      rgba(12, 11, 10, 0.82) 100%
    );
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  padding-top: clamp(3rem, 0.6rem + 6.4vw, 8.25rem);
  padding-bottom: clamp(2.5rem, 1.6rem + 2.4vw, 4.5rem);
}

.hero__title {
  max-width: 16em;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  color: var(--c-white);
  letter-spacing: var(--ls-h1);
}

.hero__title-lead {
  display: block;
  font-weight: 300;
  color: var(--c-on-dark);
}

.hero__title-main {
  display: block;
  font-weight: 600;
}

.hero__lede {
  max-width: 29em;
  font-size: var(--fs-lede);
  font-weight: 400;
  line-height: 1.55;
  color: var(--c-on-dark-2);
}

.hero__foot {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2.5rem, 1.4rem + 2.9vw, 4.5rem);
}

.hero__standfirst {
  max-width: 33em;
  padding-top: 22px;
  font-size: var(--fs-body-sm);
  line-height: 1.7;
  color: var(--c-on-dark-4);
  border-top: 1px solid var(--line-on-dark-3);
}

/* -------------------------------------------------------------- about --- */

.about__grid {
  display: grid;
  gap: var(--gap-col);
  align-items: start;
}

.about__heading {
  max-width: 14em;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 2.125rem;
  padding-top: 8px;
}

.about__body p:first-child {
  font-size: var(--fs-lede);
  line-height: var(--lh-body);
  color: var(--c-ink-2);
}

.about__body p + p {
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--c-muted);
}

/* ---------------------------------------------------------- equipment --- */

.sec-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3.75rem;
}

.sec-head__heading {
  max-width: 20em;
}

.sec-head__intro {
  max-width: 26em;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-muted);
}

.cards {
  display: grid;
  gap: var(--gap-card);
  grid-template-columns: 1fr;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--line-1);
  transition:
    transform 260ms var(--ease),
    border-color 260ms var(--ease),
    box-shadow 260ms var(--ease);
}

/* "Cards lift on hover" */
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(26, 24, 23, 0.2);
  box-shadow: 0 14px 32px -18px rgba(26, 24, 23, 0.45);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px 26px;
}

.card__spec {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono-sm);
}

.card__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: var(--ls-h3);
}

.card__text {
  flex: 1;
  font-size: var(--fs-card);
  line-height: var(--lh-body);
  color: var(--c-muted);
}

.card__link {
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-ink);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono-sm);
  border-top: 1px solid var(--line-2);
}

.card__link:hover,
.card__link:focus-visible {
  color: var(--c-accent);
}

.sec-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line-3);
}

.sec-foot__text {
  max-width: 34em;
  font-size: var(--fs-lede);
  line-height: 1.58;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------- why --- */

.why__grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
}

.why__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line-3);
}

.why__num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-accent);
  letter-spacing: var(--ls-mono);
}

.why__title {
  font-size: var(--fs-h3-lg);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.why__text {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-relaxed);
  color: var(--c-muted);
}

/* ------------------------------------------------------------ service --- */

.service__head {
  display: grid;
  gap: var(--gap-col);
  align-items: end;
  margin-bottom: 4.5rem;
}

.service__heading {
  max-width: 15em;
  font-size: var(--fs-h2-display);
  font-weight: 500;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-h1);
}

.service__heading-lead {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}

.service__intro {
  max-width: 32em;
  font-size: var(--fs-lede);
  line-height: var(--lh-body);
  color: var(--c-on-dark-3);
}

/* 1px gaps over a light background render as hairline rules between cells. */
.service__grid {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line-on-dark-1);
}

.service__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 38px 34px 42px;
  background: var(--c-dark);
}

.service__ref {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono);
}

.service__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: var(--ls-h3);
}

.service__text {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-relaxed);
  color: var(--c-on-dark-5);
}

.service__band {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding: 42px 38px;
  color: var(--c-white);
  background: var(--c-accent);
}

.service__band-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service__band-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono);
}

.service__band-heading {
  max-width: 18em;
  font-size: var(--fs-h3-band);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: var(--ls-h2);
}

.service__band-text {
  max-width: 34em;
  font-size: 1rem;
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.92);
}

/* ------------------------------------------------------------ process --- */

.process__head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.process__intro {
  max-width: 25em;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.92);
}

.process__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
}

/* "Connecting rule draws left → right, 900ms, on enter" */
.process__grid::before {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  content: '';
  background: var(--line-on-dark-5);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms var(--ease);
}

.process__grid.is-visible::before {
  transform: scaleX(1);
}

.process__step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line-on-dark-5);
}

/* The drawn rule replaces the per-step top borders once they line up in a
   single row. */
.process__num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: var(--ls-mono);
}

.process__title {
  font-size: var(--fs-h3-sm);
  font-weight: 500;
  letter-spacing: var(--ls-h3);
}

.process__text {
  font-size: var(--fs-micro);
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.9);
}

/* ------------------------------------------------------------ contact --- */

.contact__grid {
  display: grid;
  gap: var(--gap-col);
  align-items: start;
}

.contact__heading {
  max-width: 13em;
}

.contact__body {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding-top: 8px;
}

.contact__text {
  max-width: 30em;
  font-size: var(--fs-lede);
  line-height: var(--lh-body);
  color: var(--c-ink-2);
}

.contact__cta {
  align-self: flex-start;
}

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

.footer {
  padding-block: 5.5rem 2.75rem;
  color: var(--c-white);
  background: var(--c-dark);
}

.footer__grid {
  display: grid;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line-on-dark-2);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer__brand img {
  width: 210px;
  max-width: 100%;
  height: auto;
}

.footer__blurb {
  max-width: 24em;
  font-size: 0.9375rem;
  line-height: var(--lh-relaxed);
  color: var(--c-on-dark-6);
}

.footer__heading {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-label-dark);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__nav a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.76);
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
  color: var(--c-accent);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__address {
  font-size: 0.9375rem;
  font-style: normal;
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.76);
}

.footer__email {
  align-self: flex-start;
  font-size: 0.9375rem;
  color: var(--c-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.footer__email:hover,
.footer__email:focus-visible {
  color: var(--c-accent);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.875rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-on-dark-faint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* -------------------------------------------------------- page header --- */

/* Dark opening block with a photographic background. Shared by every
   interior page. */
.page-header {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 44vh;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--c-dark);
}

.page-header__media {
  position: absolute;
  inset: 0;
}

.page-header__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.page-header__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 11, 10, 0.88) 0%,
    rgba(12, 11, 10, 0.66) 46%,
    rgba(12, 11, 10, 0.82) 100%
  );
}

.page-header__inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(2.75rem, 1.6rem + 4.9vw, 4.625rem);
  padding-bottom: clamp(3rem, 1.6rem + 5.9vw, 5.5rem);
}

.page-header__title {
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--c-white);
  letter-spacing: var(--ls-h1);
}

.page-header__lede {
  max-width: 29em;
  margin-top: 1.625rem;
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--c-on-dark-2);
}

/* --------------------------------------------------- hairline grids ----- */

/* Cells separated by 1px gaps over a tinted background, so the gaps read as
   hairline rules. --boxed adds the surrounding rule. */
.hairline-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line-2);
}

.hairline-grid--boxed {
  border: 1px solid var(--line-2);
}

.section--dark .hairline-grid--boxed {
  border-color: rgba(255, 255, 255, 0.16);
}

/* Sections whose padding is absorbed by the neighbouring block. */
.section--flush-bottom {
  padding-bottom: 0;
}

.section--flush-top {
  padding-top: clamp(3.5rem, 2.2rem + 5.5vw, 7rem);
}

/* Follows a block that already supplies the separation. */
.section--top-0 {
  padding-top: 0;
}

/* ---------------------------------------------------- equipment cards --- */

.eq-head {
  margin-bottom: 3.5rem;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-2);
}

.eq-head .eyebrow {
  margin-bottom: 0;
}

.eq-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  /* 24/20/22 at 375 → the design's 36/38/34 at 1440. */
  padding: clamp(1.5rem, 1.236rem + 1.1268vw, 2.25rem)
    clamp(1.25rem, 0.854rem + 1.6901vw, 2.375rem)
    clamp(1.375rem, 1.111rem + 1.1268vw, 2.125rem);
  background: var(--c-white);
}

.eq-card__media {
  height: clamp(15rem, 10rem + 21.3vw, 23.75rem); /* 240 → 380 */
  overflow: hidden;
  background: #dcd8d2;
}

.eq-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.eq-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
}

.eq-card__title {
  font-size: var(--fs-h3-card); /* 22 → 26 */
  font-weight: 500;
  letter-spacing: -0.025em;
}

.eq-card__spec {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono-sm);
}

.eq-card__text {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-relaxed);
  color: var(--c-muted);
}

.eq-card__buyers {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eq-card__link {
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-ink);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono-sm);
  border-top: 1px solid var(--line-2);
}

.eq-card__link:hover,
.eq-card__link:focus-visible {
  color: var(--c-accent);
}

/* Final cell: a prompt rather than a category. */
.eq-card--prompt {
  gap: 26px;
  justify-content: space-between;
  background: #f4f2ef;
}

.eq-card--prompt .eq-card__body {
  gap: 1rem;
}

.eq-card__label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono);
}

.eq-card__prompt-title {
  max-width: 14em;
  font-size: var(--fs-h3-panel); /* 24 → 30 */
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: var(--ls-h2);
}

.eq-card--prompt .eq-card__text {
  max-width: 26em;
}

.eq-card--prompt .btn {
  align-self: flex-start;
}

/* ------------------------------------------------------- spare parts ---- */

.eq-parts__head {
  display: grid;
  gap: var(--gap-col);
  align-items: end;
  margin-bottom: 4.75rem;
}

.h2-display {
  max-width: 15em;
  font-size: var(--fs-h2-parts); /* 32 → 56 */
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: var(--ls-h1);
}

.eq-parts__intro {
  max-width: 30em;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------------------------- new or refurbished --- */

.eq-cond {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* 28/20 at 375 → the design's 48/44 at 1440. */
  padding: clamp(1.75rem, 1.31rem + 1.8779vw, 3rem)
    clamp(1.25rem, 0.722rem + 2.2535vw, 2.75rem);
  background: var(--c-white);
}

.eq-cond__label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono);
}

.eq-cond__title {
  font-size: var(--fs-h3-panel);
  font-weight: 500;
  letter-spacing: var(--ls-h2);
}

.eq-cond__text {
  max-width: 30em;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--c-muted);
}

.eq-cond--note {
  padding: clamp(1.25rem, 0.942rem + 1.3146vw, 2.125rem)
    clamp(1.25rem, 0.722rem + 2.2535vw, 2.75rem);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--c-ink-2);
  border-top: 1px solid var(--line-2);
}

/* --------------------------------------------------------- CTA band ----- */

.eq-cta {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
}

.eq-cta__heading {
  max-width: 22em;
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: var(--ls-h1);
}

/* ----------------------------------------------------- service page ----- */

/* Scope statement: eyebrow left, one large statement right. */
.svc-scope {
  display: grid;
  gap: var(--gap-col);
  align-items: start;
}

.svc-scope__label .eyebrow {
  margin-bottom: 0;
}

.svc-scope__statement {
  max-width: 26em;
  font-size: var(--fs-statement); /* 22 → 31 */
  font-weight: 400;
  line-height: 1.32;
  color: var(--c-ink);
  letter-spacing: var(--ls-h3);
}

/* The rows carry their own generous padding, so the rule above them sits
   tight against the first one. */
.svc-provide .eq-head {
  margin-bottom: 0;
}

/* Alternating image/text rows ------------------------------------- */

.row-pair {
  display: grid;
  gap: var(--gap-col);
  align-items: center;
  padding-block: clamp(2.75rem, 1.5rem + 5.3vw, 4.75rem); /* 44 → 76 */
  border-bottom: 1px solid var(--line-2);
}

.row-pair:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.row-pair__media {
  height: clamp(16.25rem, 11.41rem + 20.657vw, 30rem); /* 260 → 480 */
  overflow: hidden;
  background: #dcd8d2;
}

.row-pair__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.row-pair__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 28em;
}

.row-pair__label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono);
}

.row-pair__title {
  font-size: var(--fs-h3-row); /* 28 → 40 */
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: -0.032em;
}

.row-pair__text {
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--c-muted);
}

/* Why it matters --------------------------------------------------- */

.svc-why__heading {
  max-width: 20em;
  margin-bottom: clamp(2.75rem, 1.4rem + 5.7vw, 4.75rem);
}

.svc-why__text {
  font-size: var(--fs-statement-sm); /* 19 → 25 */
  line-height: 1.28;
  color: var(--c-white);
  letter-spacing: var(--ls-h3);
}

/* Maintenance agreements ------------------------------------------- */

.svc-agreements__link {
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
}

/* ------------------------------------------------- about / industries --- */

/* Rules on the sides and bottom only — the eyebrow's own rule closes the top. */
.hairline-grid--sides {
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}

.about-who__body {
  display: flex;
  max-width: 30em;
  flex-direction: column;
  gap: 30px;
}

.about-who__body p:first-child {
  font-size: var(--fs-lede);
  line-height: var(--lh-relaxed);
  color: var(--c-ink);
}

.about-who__body p + p {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--c-muted);
}

/* Capability / sector card ----------------------------------------- */

.cap-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px clamp(1.25rem, 0.8rem + 1.9vw, 2rem) 38px;
  background: var(--c-white);
}

.cap-card--filler {
  background: #f4f2ef;
}

.cap-card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono-sm);
}

.cap-card__title {
  font-size: var(--fs-h3-cap); /* 20 → 23 */
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.cap-card__text {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-relaxed);
  color: var(--c-muted);
}

/* Stepped process sequence ----------------------------------------- */

/* Deliberately not a grid of cards: a full-width sequence with the stage
   number, name and description sharing one baseline. */
.steps {
  display: flex;
  flex-direction: column;
}

.steps__row {
  display: grid;
  gap: 14px 48px;
  align-items: baseline;
  padding-block: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.steps__row:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.steps__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-accent);
  letter-spacing: var(--ls-mono);
}

.steps__title {
  font-size: var(--fs-h3-step); /* 22 → 27 */
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.028em;
}

.steps__text {
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--c-on-dark-4);
}

/* Why-clients card -------------------------------------------------- */

.why-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(1.75rem, 1.2rem + 2.3vw, 2.75rem)
    clamp(1.25rem, 0.7rem + 2.3vw, 2.5rem);
  background: var(--c-white);
}

.why-card__title {
  font-size: var(--fs-h3-card); /* 22 → 26 */
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.028em;
}

.why-card__text {
  max-width: 28em;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--c-muted);
}

/* Equipment matrix -------------------------------------------------- */

.matrix__heading {
  max-width: 16em;
  margin-bottom: 3.5rem;
}

.matrix__table {
  width: 100%;
  border-collapse: collapse;
  border-bottom: 1px solid var(--line-2);
}

.matrix__table th,
.matrix__table td {
  font-weight: 400;
}

.matrix__table thead th {
  padding: 0 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.59375rem;
  line-height: 1.35;
  color: var(--c-label);
  text-align: center;
  text-transform: uppercase;
  vertical-align: bottom;
  letter-spacing: 0.12em;
}

.matrix__table tbody th {
  height: 56px;
  padding-right: 18px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-ink);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  border-top: 1px solid var(--line-2);
}

.matrix__table tbody td {
  height: 56px;
  text-align: center;
  border-top: 1px solid var(--line-2);
  border-left: 1px solid rgba(26, 24, 23, 0.08);
}

.matrix__mark {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: var(--c-accent);
}

/* Stacked per-sector view, shown only on narrow screens. */
.matrix-stack {
  display: none;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}

.matrix-stack__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  background: var(--c-white);
}

.matrix-stack__sector {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono-sm);
}

.matrix-stack__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  line-height: 1.5;
  color: var(--c-ink-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.regions__text {
  max-width: 28em;
  padding-top: 8px;
  font-size: var(--fs-lede);
  line-height: var(--lh-body);
  color: var(--c-on-dark-2);
}

/* Below the matrix breakpoint the table is clipped rather than removed, so
   it stays in the accessibility tree; the stacked lists take over visually. */
@media (max-width: 59.999rem) {
  .matrix {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .matrix-stack {
    display: grid;
  }
}

/* Print always gets the real table. */
@media print {
  .matrix {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }

  .matrix-stack {
    display: none;
  }
}

/* ------------------------------------------------------ contact form --- */

.contact-grid {
  display: grid;
  gap: var(--gap-col);
  align-items: start;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0;
  margin: 0;
  border: 0;
}

.form-group__legend {
  display: flex;
  gap: 11px;
  align-items: center;
  padding-bottom: 18px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--c-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono);
  border-bottom: 1px solid var(--line-2);
}

.form-group__legend::before {
  flex: none;
  width: 6px;
  height: 6px;
  content: '';
  background: var(--c-accent);
}

.form-grid {
  display: grid;
  gap: 28px 32px;
  grid-template-columns: 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.field__label {
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono-sm);
}

.field__req {
  color: var(--c-accent);
}

.field__hint {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--c-label);
}

.field__error {
  font-size: 0.875rem;
  color: #c2401a;
}

.control {
  width: 100%;
  padding: 15px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--c-ink);
  background: var(--c-white);
  border: 1px solid rgba(26, 24, 23, 0.22);
  border-radius: var(--radius-btn);
  transition: border-color var(--dur-fast) var(--ease);
}

.control:focus {
  border-color: var(--c-accent);
}

select.control {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-ink) 50%),
    linear-gradient(135deg, var(--c-ink) 50%, transparent 50%);
  background-repeat: no-repeat;
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px, 5px 5px;
  padding-right: 44px;
}

textarea.control {
  resize: vertical;
}

.is-invalid .control {
  border-color: #c2401a;
}

/* Choice groups ------------------------------------------------------ */

.choices {
  display: grid;
  gap: 14px 32px;
  grid-template-columns: 1fr;
}

.choices--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.choice {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 1rem;
}

.choice input {
  flex: none;
  width: 16px;
  height: 16px;
  accent-color: var(--c-accent);
}

/* Numeric stepper ---------------------------------------------------- */

.stepper {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(26, 24, 23, 0.22);
  border-radius: var(--radius-btn);
}

.stepper:focus-within {
  border-color: var(--c-accent);
}

.stepper__btn {
  flex: none;
  width: 52px;
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  color: var(--c-ink);
  background: #f4f2ef;
  transition: background-color var(--dur-fast) var(--ease);
}

.stepper__btn:first-child {
  border-right: 1px solid rgba(26, 24, 23, 0.14);
}

.stepper__btn:last-child {
  border-left: 1px solid rgba(26, 24, 23, 0.14);
}

.stepper__btn:hover {
  background: #e8e4de;
}

.stepper__input {
  flex: 1;
  min-width: 0;
  padding: 15px 8px;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--c-ink);
  text-align: center;
  background: var(--c-white);
  border: 0;
  letter-spacing: 0.04em;
}

.stepper__input:focus {
  outline: none;
}

/* Honeypot: off-screen, untabbable, and hidden from assistive tech. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__summary {
  padding: 14px 16px;
  font-size: 0.9375rem;
  color: #c2401a;
  background: rgba(194, 64, 26, 0.07);
  border-left: 3px solid #c2401a;
}

.form__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.form__actions .btn {
  border: 0;
  cursor: pointer;
}

.form__actions .btn[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.form__footnote {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Success panel ------------------------------------------------------ */

.form-success {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  padding: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  background: #f4f2ef;
  border: 1px solid var(--line-3);
}

.form-success:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.form-success__heading {
  max-width: 18em;
  font-size: var(--fs-h3-panel);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: var(--ls-h2);
}

.form-success__text {
  max-width: 34em;
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--c-muted);
}

.form-success .btn {
  margin-top: 0.5rem;
  border: 0;
  cursor: pointer;
}

/* Direct-contact aside ----------------------------------------------- */

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(1.75rem, 1.1rem + 2.8vw, 2.75rem)
    clamp(1.25rem, 0.6rem + 2.8vw, 2.5rem);
  background: #f4f2ef;
  border: 1px solid var(--line-3);
}

.contact-aside .eyebrow {
  margin-bottom: 0;
}

.contact-aside__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line-3);
}

.contact-aside__label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono-sm);
}

.contact-aside__value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-ink);
  letter-spacing: 0.03em;
}

a.contact-aside__value:hover,
a.contact-aside__value:focus-visible {
  color: var(--c-accent);
}

/* ------------------------------------------------------ scroll reveals -- */

/* "Section fades up once on scroll, 20–30px". Applied by site.js; the
   no-JS fallback leaves content visible because .reveal only becomes
   hidden once the script confirms IntersectionObserver support. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity var(--dur-reveal) var(--ease),
    transform var(--dur-reveal) var(--ease);
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js-reveal .reveal--d1 {
  transition-delay: 90ms;
}

.js-reveal .reveal--d2 {
  transition-delay: 180ms;
}

.js-reveal .reveal--d3 {
  transition-delay: 270ms;
}

.js-reveal .reveal--d4 {
  transition-delay: 360ms;
}

/* ------------------------------------------------------------ breakpoints */

@media (min-width: 48rem) {
  /* 768 */
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem 2.5rem;
  }

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

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

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

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

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

  .eq-cond--note {
    grid-column: 1 / -1;
  }

  .eq-cta {
    flex-direction: row;
    gap: 4.5rem;
    align-items: center;
    justify-content: space-between;
  }

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

  .field--full {
    grid-column: 1 / -1;
  }

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

@media (min-width: 60rem) {
  /* 960 */
  .nav {
    display: block;
  }

  .header__cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .about__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .sec-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3.75rem;
  }

  .sec-head__intro {
    text-align: right;
  }

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

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

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

  .process__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3.75rem;
  }

  .process__intro {
    text-align: right;
  }

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

  .contact__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

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

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

  .steps__row {
    grid-template-columns: 96px minmax(0, 20em) minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.75fr);
  }

  .svc-scope {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  }

  /* The label sits optically level with the first line of the statement. */
  .svc-scope__label {
    padding-top: 14px;
  }

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

  /* Source order is always media-then-copy; swap sides on alternate rows. */
  .row-pair--reversed .row-pair__media {
    order: 2;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }

  .footer__brand {
    grid-column: auto;
  }
}

@media (min-width: 75rem) {
  /* 1200 */
  .why__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3.5rem;
  }

  /* Six across, divided by vertical rules, as in the design. */
  .process__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .process__step {
    padding: 28px 24px 0;
    border-top: 0;
    border-left: 1px solid var(--line-on-dark-5);
  }

  .process__step:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .process__step:last-child {
    padding-right: 0;
  }
}

/* --------------------------------------------------- reduced motion ------ */

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

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

  .hero__img,
  .hero.is-ready .hero__img {
    transform: none;
  }

  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .process__grid::before {
    transform: scaleX(1);
  }

  .card:hover,
  .card:focus-within {
    transform: none;
  }
}
