/* ==========================================================================
   Taylor Rubber — Landing Page
   Source of truth: Paper file "Taylor" → "Landing Page — UI v1"

   Structure
   1. Design tokens (global, from the Paper token sheet)
   2. Base / reset
   3. Layout primitives (inner containers, blueprint background)
   4. Shared components (eyebrow, section-head, button)
   5. Blocks, in page order — each block declares its OWN local variables
      at the top of its rule, so a section can be retuned without touching
      the global tokens.
   6. Motion
   7. Responsive

   Naming: BEM — .block, .block__element, .block--modifier
   ========================================================================== */


/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  /* Colour */
  --color-navy: #002060;
  --color-navy-bright: #0D3E85;
  --color-navy-deep: #00143F;
  --color-cta-navy: #0A0A6E;
  --color-ground: #FFFFFF;
  --color-ground-tint: #F3F6FA;
  --color-border: #DDE3EC;
  --color-text-body: #333B47;
  --color-text-muted: #6B7280;
  --color-field-fill: #F7F9FC;
  --color-on-dark: #FFFFFF;
  --color-on-dark-soft: #C7D2E6;
  --color-on-dark-muted: #9FB0D1;
  --color-error: #C62828;

  /* Brand gradient */
  --gradient-brand: linear-gradient(135deg, var(--color-navy-bright) 0%, var(--color-navy-deep) 100%);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Two-font rule (2026-10-22): Barlow Semi Condensed for headlines, Inter for everything else */
  --font-display: "Barlow Semi Condensed", "Arial Narrow", "Inter", sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 800;
  --tracking-eyebrow: 0.12em;
  --tracking-wide: 0.1em;
  --tracking-wider: 0.14em;

  /* Radius */
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-card: 0 1px 2px rgba(0, 32, 96, 0.04);
  --shadow-form: 0 24px 48px -16px rgba(0, 32, 96, 0.14);

  /* Layout */
  --container-max: 1280px;
  --gutter: clamp(20px, 5.6vw, 80px);
  --section-pad-top: 88px;
  --section-pad-bottom: 96px;
  --header-height: 85px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.6s;
}


/* ==========================================================================
   2. Base / reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* +1px covers the header's bottom border so anchors never tuck under it */
  scroll-padding-top: calc(var(--header-height) + 1px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-body);
  background: var(--color-ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, address {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Avoid single-word last lines in titles and copy */
h1, h2, h3 {
  text-wrap: balance;
}

p, blockquote {
  text-wrap: pretty;
}

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

:focus-visible {
  outline: 2px solid var(--color-navy-bright);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--color-on-dark);
  background: var(--color-navy);
  border-radius: var(--radius-8);
}

.skip-link:focus {
  top: 16px;
}


/* ==========================================================================
   3. Layout primitives
   Every section follows: <section class="block"> → <div class="block__inner">
   ========================================================================== */
.site-header__inner,
.hero__inner,
.trust-bar__inner,
.clients__inner,
.guides__inner,
.industries__inner,
.case-studies__inner,
.quality__inner,
.testimonials__inner,
.how-we-work__inner,
.cta-band__inner,
.site-footer__inner {
  width: min(100% - (var(--gutter) * 2), var(--container-max));
  margin-inline: auto;
}

/* Blueprint grid over the brand gradient (brand motif) */
.blueprint {
  --blueprint-line: rgba(255, 255, 255, 0.06);
  --blueprint-cell: 48px;
  --blueprint-base: var(--gradient-brand);

  position: relative;
  color: var(--color-on-dark);
  background:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px) 0 0 / var(--blueprint-cell) var(--blueprint-cell),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px) 0 0 / var(--blueprint-cell) var(--blueprint-cell),
    var(--blueprint-base);
}


/* ==========================================================================
   4. Shared components
   ========================================================================== */

/* ---------- Eyebrow ---------- */
.eyebrow {
  --eyebrow-color: var(--color-navy-bright);
  --eyebrow-rule: var(--color-navy-bright);

  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: var(--weight-semibold);
  line-height: 16px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--eyebrow-color);
}

.eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 2px;
  background: var(--eyebrow-rule);
}

.eyebrow--inverse {
  --eyebrow-color: var(--color-on-dark-soft);
  --eyebrow-rule: var(--color-on-dark);
}

/* ---------- Section head ---------- */
.section-head {
  --head-title-color: var(--color-navy);
  --head-intro-color: var(--color-text-body);
  --head-title-max: 780px;
  --head-intro-width: 440px;

  display: grid;
  grid-template-columns: minmax(0, var(--head-title-max)) minmax(0, var(--head-intro-width));
  justify-content: space-between;
  align-items: end;
  gap: 32px 48px;
  margin-bottom: 48px;
}

.section-head__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  color: var(--head-title-color);
  text-wrap: balance;
}

.section-head__intro {
  font-size: 16px;
  line-height: 26px;
  color: var(--head-intro-color);
}

.section-head--wide {
  --head-title-max: 900px;
  --head-intro-width: 340px;
}

.section-head--inverse {
  --head-title-color: var(--color-on-dark);
  --head-intro-color: var(--color-on-dark-soft);
}

.section-head--stacked {
  grid-template-columns: minmax(0, 960px);
}

.section-head__title--wide {
  max-width: 880px;
}

/* ---------- Button ---------- */
.button {
  --button-height: 46px;
  --button-pad: 22px;
  --button-radius: var(--radius-8);
  --button-font-size: 14px;
  --button-bg: transparent;
  --button-color: var(--color-navy);
  --button-border: transparent;
  --button-bg-hover: var(--button-bg);
  --cursor-fill: var(--color-on-dark);
  --cursor-stroke: var(--color-cta-navy);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--button-height);
  padding-inline: var(--button-pad);
  font-size: var(--button-font-size);
  font-weight: var(--weight-semibold);
  line-height: 18px;
  white-space: nowrap;
  color: var(--button-color);
  background: var(--button-bg);
  border: 1.5px solid var(--button-border);
  border-radius: var(--button-radius);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.button:hover {
  background: var(--button-bg-hover);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button__icon {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.button__nowrap {
  white-space: nowrap;
}

/* Brand motif: white cursor-click icon on primary CTAs */
.button__cursor {
  position: absolute;
  right: -8px;
  bottom: -9px;
  pointer-events: none;
  fill: var(--cursor-fill);
  stroke: var(--cursor-stroke);
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}

.button--cursor:hover .button__cursor {
  transform: translate(-2px, -2px);
}

.button--navy {
  --button-bg: var(--color-navy);
  --button-bg-hover: var(--color-navy-bright);
  --button-color: var(--color-on-dark);
}

.button--cta {
  --button-bg: var(--color-cta-navy);
  --button-bg-hover: var(--color-navy-bright);
  --button-color: var(--color-on-dark);
}

.button--outline {
  --button-border: var(--color-navy);
  --button-bg-hover: var(--color-ground-tint);
}

.button--light {
  --button-bg: var(--color-ground);
  --button-bg-hover: #E8EDF5;
  --button-color: var(--color-cta-navy);
  --cursor-fill: var(--color-cta-navy);
  --cursor-stroke: var(--color-on-dark);
}

.button--ghost {
  --button-color: var(--color-on-dark);
  --button-border: rgba(255, 255, 255, 0.7);
  --button-bg-hover: rgba(255, 255, 255, 0.08);
}

.button--pill {
  --button-radius: var(--radius-pill);
}

.button--large {
  --button-height: 52px;
  --button-pad: 26px;
  --button-font-size: 15px;
  gap: 10px;
}

.button--block {
  --button-height: 50px;
  --button-font-size: 15px;
  width: 100%;
}


/* ==========================================================================
   5. Blocks
   ========================================================================== */

/* ---------- Site header ---------- */
.site-header {
  --header-bg: rgba(255, 255, 255, 0.96);
  --header-link: var(--color-text-body);
  --header-link-hover: var(--color-navy);

  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: saturate(1.4) blur(8px);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(0, 32, 96, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
  padding-block: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand__logo {
  width: 116px;
  height: auto;
}

.brand__divider {
  width: 1px;
  height: 28px;
  background: var(--color-border);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-size: 16px;
  font-weight: var(--weight-bold);
  line-height: 20px;
  color: var(--color-navy);
}

.brand__tagline {
  font-size: 10px;
  font-weight: var(--weight-medium);
  line-height: 12px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: space-between;
  margin-left: clamp(24px, 14vw, 230px);
}

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

.site-nav__link {
  position: relative;
  font-size: 15px;
  font-weight: var(--weight-medium);
  line-height: 18px;
  color: var(--header-link);
  transition: color 0.2s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--color-navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--header-link-hover);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

.site-nav__cta {
  --button-height: 44px;
}

.site-header__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-8);
  cursor: pointer;
}

.site-header__toggle-bar,
.site-header__toggle-bar::before,
.site-header__toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

.site-header__toggle-bar {
  top: 50%;
  transform: translate(-50%, -50%);
}

.site-header__toggle-bar::before,
.site-header__toggle-bar::after {
  content: "";
  transform: translateX(-50%);
}

.site-header__toggle-bar::before { top: -6px; }
.site-header__toggle-bar::after { top: 6px; }

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar {
  background: transparent;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar::before {
  transform: translateX(-50%) translateY(6px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar::after {
  transform: translateX(-50%) translateY(-6px) rotate(-45deg);
}


/* ---------- Hero ---------- */
.hero {
  --hero-pad-top: 96px;
  --hero-pad-bottom: 104px;
  --hero-content-width: 640px;
  --hero-form-width: 480px;
  --hero-title-size: 46px;
  --hero-title-leading: 52px;

  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, var(--hero-content-width)) minmax(0, var(--hero-form-width));
  justify-content: space-between;
  align-items: start;
  gap: 48px;
  padding-top: var(--hero-pad-top);
  padding-bottom: var(--hero-pad-bottom);
}

.hero__content {
  display: flex;
  flex-direction: column;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  height: 34px;
  padding-inline: 16px;
  font-size: 12px;
  font-weight: var(--weight-semibold);
  line-height: 16px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-on-dark);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-pill);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-on-dark);
  border-radius: 50%;
}

.hero__title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: var(--hero-title-size);
  font-weight: var(--weight-black);
  line-height: var(--hero-title-leading);
  letter-spacing: -0.01em;
  color: var(--color-on-dark);
  text-wrap: balance;
}

.hero__lead {
  max-width: 600px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-on-dark-soft);
}

.hero__stats {
  margin-top: 44px;
}

.hero__stats-rule {
  display: block;
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
}

.stats {
  --stats-value-color: var(--color-on-dark);
  --stats-label-color: var(--color-on-dark-muted);

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stats__value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: var(--weight-black);
  line-height: 40px;
  color: var(--stats-value-color);
  font-variant-numeric: tabular-nums;
}

.stats__label {
  max-width: 190px;
  font-size: 15px;
  line-height: 22px;
  color: var(--stats-label-color);
}


/* ---------- Lead form ---------- */
.lead-form {
  --form-pad: 28px;
  --form-bg: var(--color-ground);
  --field-height: 48px;
  --field-bg: var(--color-field-fill);
  --field-border: var(--color-border);
  --field-border-focus: var(--color-navy-bright);

  position: relative;
  padding: var(--form-pad);
  color: var(--color-text-body);
  background: var(--form-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  box-shadow: var(--shadow-form);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.lead-form.is-highlighted {
  animation: form-highlight 1.4s var(--ease-out);
}

.lead-form__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--weight-bold);
  line-height: 30px;
  color: var(--color-navy);
}

.lead-form__sub {
  margin-top: 8px;
  font-size: 15px;
  line-height: 22px;
  color: var(--color-text-muted);
}

.lead-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.lead-form__submit {
  margin-top: 20px;
}

.lead-form__submit.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.lead-form__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.lead-form__meta-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  line-height: 14px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.lead-form__meta-item + .lead-form__meta-item::before {
  content: "";
  width: 3px;
  height: 3px;
  background: var(--color-border);
  border-radius: 50%;
}

.lead-form__success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 420px;
  justify-content: center;
}

.lead-form__success[hidden] {
  display: none;
}

.lead-form__success-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  background: var(--color-ground-tint);
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
}

.lead-form__success-icon svg {
  fill: none;
  stroke: var(--color-navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lead-form__reset {
  margin-top: 28px;
}

/* Field */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

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

.field__label {
  font-size: 13px;
  font-weight: var(--weight-medium);
  line-height: 16px;
  color: var(--color-text-body);
}

.field__control {
  width: 100%;
  min-width: 0;
  height: var(--field-height);
  padding-inline: 14px;
  font-size: 15px;
  line-height: 18px;
  color: var(--color-navy-deep);
  background-color: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field__control::placeholder {
  color: var(--color-text-muted);
}

.field__control:focus {
  outline: none;
  background-color: var(--color-ground);
  border-color: var(--field-border-focus);
  box-shadow: 0 0 0 3px rgba(13, 62, 133, 0.14);
}

.field__control--select {
  padding-right: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field__control--select:invalid {
  color: var(--color-text-muted);
}

.field__error {
  min-height: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-error);
}

.field__error:empty {
  display: none;
}

.field--invalid .field__control {
  border-color: var(--color-error);
}

/* Consent */
.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 18px;
}

.consent__checkbox {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  appearance: none;
  cursor: pointer;
  background: var(--color-ground) center / 12px no-repeat;
  border: 1.5px solid var(--color-navy);
  border-radius: var(--radius-4);
  transition: background-color 0.15s ease;
}

.consent__checkbox:checked {
  background-color: var(--color-navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.consent__checkbox.is-invalid {
  border-color: var(--color-error);
}

.consent__label {
  font-size: 13px;
  line-height: 18px;
  color: var(--color-text-muted);
  cursor: pointer;
}

.consent__error {
  margin-top: 6px;
  padding-left: 28px;
}


/* ---------- Trust bar ---------- */
.trust-bar {
  --trust-bg: var(--color-ground-tint);
  --trust-icon: var(--color-navy);

  background: var(--trust-bg);
  border-bottom: 1px solid var(--color-border);
}

.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 20px;
}

.trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: var(--weight-semibold);
  line-height: 18px;
  color: var(--color-navy);
}

.trust-bar__icon {
  flex-shrink: 0;
  fill: none;
  stroke: var(--trust-icon);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-bar__note {
  font-size: 14px;
  line-height: 18px;
  color: var(--color-text-muted);
}


/* ---------- Clients ---------- */
.clients {
  --clients-title-width: 140px;
  --clients-logo-height: 48px;

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

.clients__inner {
  display: grid;
  grid-template-columns: var(--clients-title-width) minmax(0, 1fr);
  align-items: center;
  gap: 24px 48px;
  padding-block: 40px;
}

.clients__title {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  line-height: 18px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.clients__list {
  display: grid;
  grid-template-columns: repeat(8, auto);
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.clients__item {
  display: grid;
  place-items: center;
  height: var(--clients-logo-height);
}

.clients__logo {
  width: auto;
  max-height: 36px;
}


/* ---------- Industries ---------- */
.industries {
  --industries-bg: var(--color-ground);
  --industries-gap: 24px;

  background: var(--industries-bg);
}

.industries__inner {
  padding-top: var(--section-pad-top);
  padding-bottom: var(--section-pad-bottom);
}

.industries__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--industries-gap);
}

/* Industry card */
.industry-card {
  --card-media-height: 260px;
  --card-pad: 28px;
  --card-eyebrow: var(--color-navy-bright);
  --card-title: var(--color-navy);

  display: grid;
  grid-template-rows: var(--card-media-height) 1fr;
  overflow: hidden;
  background: var(--color-ground);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}

.industry-card:hover {
  box-shadow: 0 20px 40px -24px rgba(0, 32, 96, 0.3);
}

.industry-card__media {
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.industry-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.industry-card:hover .industry-card__image {
  transform: scale(1.04);
}

.industry-card__body {
  display: flex;
  flex-direction: column;
  padding: var(--card-pad);
  container-type: inline-size;
}

.industry-card__eyebrow {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  line-height: 14px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--card-eyebrow);
}

.industry-card__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--weight-bold);
  line-height: 28px;
  color: var(--card-title);
}

.industry-card__text {
  flex-grow: 1;
  margin-top: 10px;
  font-size: 15px;
  line-height: 24px;
}

.industry-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

/* Wide card (Building & Infrastructure) — image left, body right */
.industry-card--wide {
  --card-media-width: 460px;

  grid-column: 1 / -1;
  grid-template-rows: none;
  grid-template-columns: var(--card-media-width) minmax(0, 1fr);
}

.industry-card--wide .industry-card__media {
  border-bottom: 0;
  border-right: 1px solid var(--color-border);
}

.industry-card--wide .industry-card__body {
  justify-content: center;
  padding: 36px 40px;
}

.industry-card--wide .industry-card__text {
  flex-grow: 0;
}

/* PDF brief row with mini cover thumbnail */
.brief {
  --brief-bg: var(--color-ground-tint);
  --brief-cover: linear-gradient(150deg, var(--color-navy-bright) 0%, var(--color-navy-deep) 100%);

  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 12px;
  background: var(--brief-bg);
  border-radius: var(--radius-12);
}

.brief__cover {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 46px;
  height: 60px;
  padding: 6px 5px;
  background: var(--brief-cover);
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0, 20, 63, 0.25);
}

.brief__cover-oval {
  width: 20px;
  height: 8px;
  margin-bottom: auto;
  border: 0.9px solid var(--color-on-dark);
  border-radius: 50%;
}

.brief__cover-line {
  width: 30px;
  height: 2.5px;
  background: var(--color-on-dark);
  border-radius: 2px;
}

.brief__cover-line--short {
  width: 24px;
}

.brief__cover-line--faint {
  width: 16px;
  height: 2px;
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.45);
}

.brief__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brief__name {
  font-size: 14px;
  font-weight: var(--weight-semibold);
  line-height: 18px;
  color: var(--color-navy);
}

.brief__meta {
  font-size: 12px;
  line-height: 16px;
  color: var(--color-text-muted);
}


/* ---------- Case studies ---------- */
.case-studies {
  --case-bg: var(--color-ground-tint);

  background: var(--case-bg);
  border-top: 1px solid var(--color-border);
}

.case-studies__inner {
  padding-top: var(--section-pad-top);
  padding-bottom: var(--section-pad-bottom);
}

.case-studies__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.case-card {
  --case-visual-height: 250px;
  --case-scrim: linear-gradient(90deg, rgba(0, 20, 63, 0.96) 0%, rgba(0, 20, 63, 0.8) 38%, rgba(0, 20, 63, 0) 72%);
  --case-pad: 26px;

  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-ground);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease;
}

.case-card:hover {
  box-shadow: 0 20px 40px -24px rgba(0, 32, 96, 0.3);
}

.case-card__visual {
  position: relative;
  height: var(--case-visual-height);
  overflow: hidden;
  color: var(--color-on-dark);
  background: var(--gradient-brand);
}

.case-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--case-scrim);
}

.case-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.case-card:hover .case-card__image {
  transform: scale(1.05);
}

.case-card__tag,
.case-card__headline,
.case-card__logo {
  position: absolute;
  left: 24px;
  z-index: 1;
}

.case-card__tag {
  top: 22px;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding-inline: 10px;
  font-size: 10px;
  font-weight: var(--weight-semibold);
  line-height: 12px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
}

.case-card__headline {
  top: 60px;
  width: 200px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--weight-black);
  line-height: 28px;
}

.case-card__logo {
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 74px;
  height: 26px;
  font-size: 11px;
  font-weight: var(--weight-black);
  line-height: 14px;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--color-on-dark);
  border-radius: var(--radius-pill);
}

.case-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--case-pad);
}

.case-card__eyebrow {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  line-height: 14px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-navy-bright);
}

.case-card__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--weight-bold);
  line-height: 27px;
  color: var(--color-navy);
}

.case-card__text {
  flex-grow: 1;
  margin-top: 10px;
  font-size: 15px;
  line-height: 24px;
}

.case-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.case-card__link-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: var(--weight-semibold);
  line-height: 18px;
  color: var(--color-navy);
}

.case-card__link-label svg {
  flex-shrink: 0;
  fill: none;
  stroke: var(--color-navy);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-card__link-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--color-cta-navy);
  border-radius: 50%;
  transition: transform 0.25s var(--ease-out), background-color 0.2s ease;
}

.case-card__link-arrow svg {
  fill: none;
  stroke: var(--color-on-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-card__link:hover .case-card__link-arrow {
  background: var(--color-navy-bright);
  transform: translateX(4px);
}


/* ---------- Quality & process ---------- */
.quality {
  --step-bg: rgba(255, 255, 255, 0.05);
  --step-border: rgba(255, 255, 255, 0.16);
  --step-number: rgba(255, 255, 255, 0.18);

  overflow: hidden;
}

.quality__inner {
  padding-top: var(--section-pad-top);
  padding-bottom: var(--section-pad-bottom);
}

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

.process-step {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--step-bg);
  border: 1px solid var(--step-border);
  border-radius: var(--radius-16);
}

.process-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.process-step__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.process-step__icon svg,
.work-step__icon svg {
  fill: none;
  stroke: var(--color-on-dark);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-step__number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: var(--weight-black);
  line-height: 34px;
  color: var(--step-number);
}

.process-step__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--weight-bold);
  line-height: 26px;
  color: var(--color-on-dark);
}

.process-step__text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 24px;
  color: var(--color-on-dark-soft);
}

.quality-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 20px;
  padding: 26px 32px;
  color: var(--color-text-body);
  background: var(--color-ground);
  border-radius: var(--radius-16);
}

.quality-cta__content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.quality-cta__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--color-ground-tint);
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
}

.quality-cta__icon svg {
  fill: none;
  stroke: var(--color-navy);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quality-cta__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quality-cta__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--weight-bold);
  line-height: 22px;
  color: var(--color-navy);
}

.quality-cta__sub {
  font-size: 15px;
  line-height: 20px;
}


/* ---------- Testimonials ---------- */
.testimonials {
  --quote-bg: var(--color-ground-tint);
  --quote-mark: var(--color-navy);

  background: var(--color-ground);
}

.testimonials__inner {
  padding-top: var(--section-pad-top);
  padding-bottom: var(--section-pad-bottom);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.testimonial {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--quote-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
}

.testimonial__mark {
  fill: var(--quote-mark);
}

.testimonial__quote {
  flex-grow: 1;
  margin-top: 20px;
  font-size: 17px;
  line-height: 27px;
  color: var(--color-navy-deep);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.testimonial__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: var(--weight-bold);
  color: var(--color-on-dark);
  background: var(--color-navy);
  border-radius: 50%;
}

.testimonial__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial__role {
  font-size: 14px;
  font-weight: var(--weight-semibold);
  line-height: 18px;
  color: var(--color-navy);
}

.testimonial__org {
  font-size: 13px;
  line-height: 16px;
  color: var(--color-text-muted);
}


/* ---------- How we work ---------- */
.how-we-work {
  background: var(--color-ground-tint);
  border-top: 1px solid var(--color-border);
}

.how-we-work__inner {
  padding-top: var(--section-pad-top);
  padding-bottom: var(--section-pad-bottom);
}

.how-we-work__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.work-step {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--color-ground);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-16);
}

.work-step__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--color-navy);
  border-radius: 50%;
}

.work-step__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--weight-bold);
  line-height: 26px;
  color: var(--color-navy);
}

.work-step__text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 24px;
}


/* ---------- CTA band ---------- */
.cta-band {
  --cta-content-width: 600px;
  --cta-mockup-width: 420px;

  overflow: hidden;
}

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, var(--cta-content-width)) var(--cta-mockup-width);
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  padding-block: 72px;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: var(--weight-black);
  line-height: 1.2;
  color: var(--color-on-dark);
}

.cta-band__text {
  margin-top: 14px;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-on-dark-soft);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Portfolio cover mockup (pure CSS) */
.portfolio-mockup {
  position: relative;
  width: var(--cta-mockup-width);
  height: 256px;
}

.portfolio-mockup__sheet {
  position: absolute;
  top: 22px;
  left: 150px;
  width: 172px;
  height: 226px;
  background: #E8EDF5;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0, 10, 40, 0.35);
  transform: rotate(8deg);
  transform-origin: 0 0;
}

.portfolio-mockup__cover {
  position: absolute;
  top: 8px;
  left: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 180px;
  height: 236px;
  padding: 18px 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #134493 0%, var(--color-navy-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  box-shadow: 0 24px 48px rgba(0, 10, 40, 0.45);
  transform: rotate(-4deg);
  transform-origin: 0 0;
  transition: transform 0.5s var(--ease-out);
}

.cta-band__inner:hover .portfolio-mockup__cover {
  transform: rotate(-6deg) translateY(-6px);
}

.portfolio-mockup__logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 22px;
  font-size: 9px;
  font-weight: var(--weight-black);
  line-height: 12px;
  letter-spacing: 0.04em;
  border: 1.3px solid var(--color-on-dark);
  border-radius: var(--radius-pill);
}

.portfolio-mockup__art {
  opacity: 0.55;
  fill: none;
  stroke: var(--color-on-dark);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.portfolio-mockup__art-rule {
  stroke-dasharray: 3 4;
  stroke-opacity: 0.6;
}

.portfolio-mockup__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portfolio-mockup__kicker {
  font-size: 8px;
  font-weight: var(--weight-semibold);
  line-height: 10px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-on-dark-soft);
}

.portfolio-mockup__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--weight-black);
  line-height: 19px;
}

.portfolio-mockup__materials {
  margin-top: 2px;
  font-size: 8px;
  line-height: 10px;
  color: var(--color-on-dark-soft);
}

.portfolio-mockup__badge {
  position: absolute;
  top: 186px;
  left: 250px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding-inline: 12px;
  font-size: 12px;
  font-weight: var(--weight-semibold);
  line-height: 16px;
  color: var(--color-navy);
  background: var(--color-ground);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(0, 10, 40, 0.3);
}

.portfolio-mockup__badge svg {
  fill: none;
  stroke: var(--color-navy);
  stroke-width: 1.8;
  stroke-linejoin: round;
}


/* ---------- Site footer ---------- */
.site-footer {
  --footer-bg: var(--color-navy-deep);
  --footer-link: var(--color-on-dark-soft);
  --footer-muted: var(--color-on-dark-muted);
  --footer-rule: rgba(255, 255, 255, 0.12);

  color: var(--color-on-dark);
  background: var(--footer-bg);
}

.site-footer__inner {
  padding-top: 40px;
  padding-bottom: 32px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--footer-rule);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer__logo {
  flex-shrink: 0;
  width: 104px;
  height: auto;
}

.site-footer__divider {
  flex-shrink: 0;
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
}

.site-footer__address {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer__company {
  font-size: 15px;
  font-weight: var(--weight-bold);
  line-height: 18px;
}

.site-footer__street {
  font-size: 12px;
  line-height: 16px;
  color: var(--footer-muted);
}

.site-footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.site-footer__link {
  font-size: 14px;
  font-weight: var(--weight-medium);
  line-height: 18px;
  color: var(--footer-link);
  transition: color 0.2s ease;
}

.site-footer__link:hover,
.site-footer__legal-link:hover {
  color: var(--color-on-dark);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
}

.site-footer__certs,
.site-footer__legal {
  font-size: 13px;
  line-height: 16px;
  color: var(--footer-muted);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer__legal-link {
  transition: color 0.2s ease;
}


/* ==========================================================================
   6. Motion
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

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

@keyframes form-highlight {
  0%   { box-shadow: var(--shadow-form), 0 0 0 0 rgba(255, 255, 255, 0.9); }
  40%  { box-shadow: var(--shadow-form), 0 0 0 10px rgba(255, 255, 255, 0.35); }
  100% { box-shadow: var(--shadow-form), 0 0 0 0 rgba(255, 255, 255, 0); }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================================
   7. Responsive
   ========================================================================== */

/* Narrow industry cards: stack the two CTAs so labels never wrap mid-word */
@container (max-width: 500px) {
  .industry-card__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .hero {
    --hero-title-size: 42px;
    --hero-title-leading: 50px;
    --hero-form-width: 440px;
  }

  .site-nav {
    margin-left: 48px;
  }

  .clients__list {
    grid-template-columns: repeat(4, auto);
    justify-content: space-around;
    row-gap: 8px;
  }
}

@media (max-width: 1080px) {
  :root {
    --section-pad-top: 72px;
    --section-pad-bottom: 80px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .lead-form {
    max-width: 560px;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .section-head__intro {
    max-width: 640px;
  }

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

  .industry-card--wide {
    grid-template-columns: none;
    grid-template-rows: var(--card-media-height) 1fr;
  }

  .industry-card--wide .industry-card__media {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .industry-card--wide .industry-card__body {
    padding: var(--card-pad);
  }

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

  .portfolio-mockup {
    justify-self: center;
  }
}

@media (max-width: 960px) {
  :root {
    --header-height: 72px;
  }

  .site-header__inner {
    padding-block: 14px;
  }

  .site-header__toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin: 0;
    padding: 20px var(--gutter) 28px;
    background: var(--color-ground);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 16px 32px -20px rgba(0, 32, 96, 0.4);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.25s var(--ease-out), visibility 0s linear 0.25s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.25s var(--ease-out);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    display: block;
    padding-block: 14px;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav__link::after {
    display: none;
  }

  .clients__inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
}

/* Three-card rows: stay 3-up down to 900px, then stack — never 2 + 1 orphan */
@media (max-width: 900px) {
  .case-studies__grid,
  .testimonials__grid,
  .how-we-work__grid,
  .quality__steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --section-pad-top: 56px;
    --section-pad-bottom: 64px;
  }

  .brand__divider,
  .brand__text {
    display: none;
  }

  .hero {
    --hero-title-size: 32px;
    --hero-title-leading: 40px;
  }

  .hero__inner {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero__lead {
    font-size: 16px;
    line-height: 26px;
  }

  .stats {
    gap: 16px;
  }

  .stats__value {
    font-size: 26px;
    line-height: 32px;
  }

  .stats__label {
    font-size: 13px;
    line-height: 18px;
  }

  .lead-form {
    --form-pad: 20px;
  }

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

  .hero__badge {
    height: auto;
    min-height: 34px;
    padding-block: 7px;
    letter-spacing: 0.06em;
  }

  .lead-form__meta,
  .lead-form__meta-item {
    gap: 8px;
    white-space: nowrap;
    letter-spacing: 0.04em;
  }

  .lead-form__meta-item {
    font-size: 10px;
  }

  .trust-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .industry-card {
    --card-media-height: 200px;
    --card-pad: 20px;
  }

  .cta-band__inner {
    padding-top: var(--section-pad-top);
    padding-bottom: var(--section-pad-bottom);
  }

  .quality-cta {
    padding: 22px;
  }

  .quality-cta .button {
    width: 100%;
    height: auto;
    min-height: var(--button-height);
    padding-block: 12px;
    white-space: normal;
    text-align: center;
    --button-font-size: 14px;
    --button-pad: 18px;
  }

  .quality-cta .button__label {
    overflow: visible;
  }

  .cta-band__actions .button {
    width: 100%;
  }

  .portfolio-mockup {
    transform: scale(0.8);
    transform-origin: center top;
    margin-bottom: -40px;
  }
}
