/* ---------- Fairdeal Design System ---------- */
:root {
  --navy: #13296B;
  --navy-700: #0D1F56;
  --navy-100: #E6EAF3;
  --orange: #E63927;
  --orange-600: #C82A1B;
  --orange-100: #FCE2DF;

  --ink: #1A1A17;
  --ink-700: #3D3D38;
  --ink-500: #6B6B63;
  --ink-300: #A8A89F;
  --line: #E5E3DB;
  --line-strong: #D4D1C4;
  --paper: #FAFAF7;
  --paper-2: #F2F0E8;
  --white: #FFFFFF;

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
body { font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* Type scale */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px; background: var(--orange);
  margin-right: 8px; vertical-align: middle;
  transform: translateY(-1px);
}
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* Layout */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.hr { border-top: 1px solid var(--line); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all 180ms ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-700); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
  transition: color 180ms ease, border-color 180ms ease;
}
.btn-link:hover { color: var(--orange); border-color: var(--orange); }

/* Placeholder image */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(11,37,69,0.06) 0 2px, transparent 2px 12px),
    var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ph-nav {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 12px),
    var(--navy);
  border-color: rgba(255,255,255,0.12);
}
.ph-orange {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 12px),
    var(--orange);
}
.ph-caption {
  position: absolute;
  inset: auto 12px 12px 12px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--ink-500);
  text-transform: uppercase;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px 10px;
  max-width: fit-content;
}
.ph-nav .ph-caption { color: rgba(255,255,255,0.8); background: rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.15); }
.ph-orange .ph-caption { color: rgba(255,255,255,0.95); background: rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.2); }

/* Logo */
.logo-img { display: block; height: 52px; width: auto; }

/* Top bar */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  padding: 8px 0;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.topbar-left, .topbar-right { display: flex; gap: 24px; align-items: center; }
.topbar a { color: rgba(255,255,255,0.7); transition: color 180ms ease; }
.topbar a:hover { color: var(--orange); }
.topbar .divider { width: 1px; height: 12px; background: rgba(255,255,255,0.2); }
.topbar-muted { color: rgba(255,255,255,0.5); }

/* Nav */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links .mobile-cta { display: none; }
.nav-link {
  font-size: 13px; font-weight: 500;
  color: var(--ink-700);
  transition: color 180ms ease;
  position: relative;
  padding: 6px 0;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--navy); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--orange);
}
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-search {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink-500);
  transition: all 180ms ease;
}
.nav-search:hover { border-color: var(--ink); color: var(--ink); }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
}
.search-overlay.open { display: block; }
.search-backdrop {
  position: absolute; inset: 0;
  background: rgba(19, 41, 107, 0.28);
  backdrop-filter: blur(2px);
}
.search-panel {
  position: relative;
  max-width: 720px;
  margin: 14vh auto 0;
  padding: 0 24px;
  animation: search-in 200ms ease;
}
@keyframes search-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.search-form {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(19, 41, 107, 0.18);
  padding: 18px 20px;
}
.search-ico { color: var(--navy); display: flex; }
.search-form input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-family: var(--font-ui);
  font-size: 18px; color: var(--ink);
}
.search-form input::placeholder { color: var(--ink-500); }
.search-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  color: var(--ink-500); background: transparent; border: 0;
  cursor: pointer; transition: color 160ms ease;
}
.search-close:hover { color: var(--orange); }
.search-hint {
  margin-top: 12px; text-align: center;
  font-size: 11px; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
}

/* Search results banner (products page) */
.search-results-banner {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  margin-bottom: 28px; padding: 16px 20px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-700);
}
.search-results-banner.is-empty { border-color: var(--orange-100); background: var(--orange-100); }
.search-results-banner a { color: var(--navy); text-decoration: underline; }
.search-results-banner a:hover { color: var(--orange); }
.search-results-banner .search-clear {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none;
}
.search-results-banner .search-clear:hover { color: var(--orange); }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  align-items: center; justify-content: center;
  color: var(--ink);
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 180ms ease, transform 180ms ease;
}
.card:hover { border-color: var(--ink-300); }

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  padding: 80px 0 24px;
}
.footer h4 {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); margin-bottom: 20px; font-family: var(--font-mono); font-weight: 500;
}
.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: var(--orange); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid ul { display: grid; gap: 10px; }
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.footer-meta { display: flex; gap: 24px; }

/* Page transition */
.page { animation: fadeIn 320ms ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Scrollbar subtle */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); }
::-webkit-scrollbar-track { background: var(--paper-2); }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); }
.field input, .field textarea, .field select {
  font-family: var(--font-ui); font-size: 14px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 180ms ease;
  width: 100%;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--navy);
}

/* ---------- Page-specific layouts ---------- */

/* Hero (Home) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: end;
}
.hero-h1 {
  font-size: clamp(56px, 8vw, 112px);
  line-height: 1.0;
}
.hero-sub {
  margin-top: 48px;
  max-width: 520px;
  font-size: 17px;
  color: var(--ink-700);
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.hero-image { position: relative; }
.hero-badge {
  position: absolute;
  bottom: -24px; left: -24px;
  background: var(--orange);
  color: var(--white);
  padding: 28px 32px;
  width: 200px;
}

/* Spec strip */
.spec-strip {
  margin-top: 96px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec-strip > div {
  padding: 32px 28px;
}
.spec-strip > div:not(:last-child) { border-right: 1px solid var(--line); }

/* Brand wall */
.brandwall {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}
.brandwall > div {
  padding: 32px 20px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: 0.08em; font-size: 14px;
  color: var(--ink-500);
}
.brandwall > div:not(:nth-child(6n)) { border-right: 1px solid var(--line); }
.brandwall > div:nth-child(-n+6) { border-bottom: 1px solid var(--line); }

/* Capabilities split */
.cap-split {
  display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start;
}
.cap-sticky { position: sticky; top: 100px; }
.cap-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
}
.cap-card {
  background: var(--white); padding: 40px 32px;
  min-height: 240px;
  display: flex; flex-direction: column;
  transition: background 200ms ease;
  cursor: pointer;
}
.cap-card:hover { background: var(--paper-2); }

/* Featured section (CUMI) */
.featured-section {
  background: var(--navy); color: var(--white);
  padding: 120px 0;
}
.featured-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.featured-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin-top: 40px; background: rgba(255,255,255,0.12);
}
.featured-stats > div { background: var(--navy); padding: 20px 24px; }

/* Process */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.process-card { border-top: 2px solid var(--ink); padding-top: 24px; }

/* CTA band (Home) */
.cta-band-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center;
}
.cta-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px;
}

/* About */
.about-hero-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: end;
}
.about-portrait-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start;
}
.about-stats {
  margin-top: 48px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.timeline-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,0.12);
}
.timeline-grid > div { background: var(--navy); padding: 32px 24px; min-height: 240px; }
.values-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 80px;
}
.values-row {
  display: grid; grid-template-columns: 80px 1fr; gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.values-row:last-child { border-bottom: 1px solid var(--line); }
.leadership-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  max-width: 880px; margin: 0 auto;
}
.leadership-card {
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.leadership-card:hover {
  border-color: var(--ink-300);
  box-shadow: 0 8px 32px -12px rgba(0,0,0,0.08);
}
.facility-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px;
}
.brand-wall {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.brand-wall-tile {
  background: var(--white);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  transition: background 180ms ease;
}
.brand-wall-tile:hover { background: var(--paper-2); }
.brand-wall-tile img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 200ms ease, opacity 200ms ease;
}
.brand-wall-tile:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Products */
.products-hero-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 80px; align-items: end;
}
.cat-filter {
  margin-top: 56px; display: flex; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.cat-chip {
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-700);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  font-family: var(--font-mono);
  transition: all 180ms ease;
}
.cat-chip.active { border-color: var(--navy); background: var(--navy); color: var(--white); }
.brand-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.brand-card {
  background: var(--white); padding: 36px;
  cursor: pointer; transition: background 180ms ease;
  min-height: 320px;
  display: flex; flex-direction: column;
}
.brand-card:hover { background: var(--paper-2); }
.brand-card-meta {
  margin-top: auto; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}

/* Product detail */
.breadcrumb { background: var(--paper-2); padding: 16px 0; border-bottom: 1px solid var(--line); }
.brand-hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: end;
}
.brand-stats {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brand-stats > div { padding: 24px 28px; }
.brand-stats > div:not(:last-child) { border-right: 1px solid var(--line); }
.sku-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.sku-card {
  background: var(--white); padding: 24px;
  cursor: pointer; transition: background 180ms ease;
}
.sku-card:hover { background: var(--paper-2); }
.related-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}

/* Downloads */
.dl-table {
  display: grid;
  grid-template-columns: auto 2fr auto auto auto auto;
  border-top: 2px solid var(--ink);
}
.dl-table > div {
  padding: 24px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.dl-table .dl-head {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.04em;
  color: var(--ink-500);
  background: var(--paper-2);
  text-transform: uppercase;
}
.dl-icon {
  width: 48px; height: 60px;
  background: var(--paper-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.dl-tag {
  font-family: var(--font-mono); font-size: 11px; color: var(--navy);
  border: 1px solid var(--line); padding: 4px 10px;
}
.dl-new {
  background: var(--orange); color: var(--white);
  font-family: var(--font-mono); font-size: 9px;
  padding: 3px 8px; letter-spacing: 0.08em; margin-left: 12px;
}

/* Contact */
.contact-info {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.contact-info > div { background: var(--white); padding: 40px; min-height: 280px; }
.contact-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
.form-card {
  background: var(--white); border: 1px solid var(--line); padding: 48px;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Quote */
.stepper {
  display: flex; gap: 0;
  margin-bottom: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stepper > div {
  flex: 1; padding: 20px 28px; cursor: pointer;
  background: var(--white); color: var(--ink-700);
  transition: all 180ms ease;
}
.stepper > div:not(:last-child) { border-right: 1px solid var(--line); }
.stepper > div.active { background: var(--navy); color: var(--white); }
.quote-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 64px;
}
.quote-step { display: none; gap: 20px; }
.quote-step.active { display: grid; }
.line-row { display: grid; grid-template-columns: 2fr 1fr auto; gap: 8px; }
.line-row input {
  padding: 14px; border: 1px solid var(--line); font-size: 14px;
}
.dropzone {
  border: 1.5px dashed var(--line-strong);
  padding: 32px; text-align: center; cursor: pointer;
}
.quote-aside ul { display: grid; gap: 20px; }
.quote-aside li {
  border-top: 1px solid var(--line); padding-top: 16px;
}
.quote-summary {
  margin-top: 32px;
  background: var(--paper-2);
  padding: 32px; border: 1px solid var(--line);
}
.step-nav {
  display: flex; justify-content: space-between;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ---------- Category cards (product.html) ---------- */
.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cat-detail-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--white);
  text-decoration: none;
  transition: background 0.15s;
}
.cat-detail-card:hover { background: var(--paper-2); }
.cat-detail-card:hover h3 { color: var(--orange); }

/* ---------- Catalogue page ---------- */
.catalogue-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ---------- Responsive ---------- */

/* Tablet & below (≤1024px) — iPad landscape, iPad Pro portrait */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .section { padding: 80px 0; }

  .hero-grid, .about-hero-grid, .about-portrait-grid, .featured-grid, .cap-split,
  .products-hero-grid, .brand-hero, .contact-form-grid, .quote-grid, .cta-band-grid,
  .values-grid, .catalogue-body-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .cap-sticky { position: static; }

  .spec-strip, .brand-stats { grid-template-columns: repeat(2, 1fr); }
  .spec-strip > div, .brand-stats > div { border-right: none; border-bottom: 1px solid var(--line); }
  .spec-strip > div:nth-child(2n), .brand-stats > div:nth-child(2n) { border-right: none; }
  .spec-strip > div:nth-child(odd), .brand-stats > div:nth-child(odd) { border-right: 1px solid var(--line); }

  .brandwall { grid-template-columns: repeat(3, 1fr); }
  .brandwall > div:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
  .brandwall > div:nth-child(3n) { border-right: none; }
  .brandwall > div { border-bottom: 1px solid var(--line); }

  .cap-grid, .brand-grid, .sku-grid, .related-grid, .contact-info, .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .leadership-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cat-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .facility-grid { grid-template-columns: 1fr 1fr; }
  .brand-wall { grid-template-columns: repeat(4, 1fr); }
  .stepper { flex-wrap: wrap; }
  .stepper > div { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  /* Tone down inline mega-headings on tablet */
  .display[style*="font-size: 140px"],
  .display[style*="font-size: 120px"],
  .display[style*="font-size: 112px"],
  .display[style*="font-size: 104px"] { font-size: 84px !important; }
  .display[style*="font-size: 96px"],
  .display[style*="font-size: 88px"],
  .display[style*="font-size: 80px"],
  .display[style*="font-size: 72px"] { font-size: 64px !important; }
  .display[style*="font-size: 64px"],
  .display[style*="font-size: 60px"] { font-size: 52px !important; }
  .display[style*="font-size: 56px"] { font-size: 46px !important; }

  /* Inline 2-column CTA bands → single column */
  .container[style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  /* Hero container with inline padding */
  .container[style*="padding: 64px 32px"] { padding: 56px 28px !important; }

  /* Quote aside sticky → release on tablet */
  .quote-aside [style*="position: sticky"] { position: static !important; }
}

/* iPad portrait & smaller (≤900px) — release nav into hamburger earlier */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary { display: none; }
  .nav.menu-open .nav-links {
    display: grid;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 28px 22px;
    gap: 2px;
    z-index: 35;
    box-shadow: 0 18px 40px -22px rgba(0,0,0,0.15);
  }
  .nav.menu-open .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .nav.menu-open .nav-link:last-child { border-bottom: none; }
  .nav.menu-open .nav-link.active::after { display: none; }
  .nav.menu-open .mobile-cta {
    display: inline-flex !important;
    margin-top: 14px;
    justify-content: center;
    padding: 14px 18px;
    width: 100%;
  }
  .mobile-cta { display: none; }

  .featured-section { padding: 88px 0; }
  .footer { padding: 64px 0 24px; }
}

/* Mobile (≤720px) — phones in landscape, small tablets in portrait */
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }

  /* Topbar */
  .topbar { font-size: 11px; padding: 8px 0; }
  .topbar .container { flex-wrap: wrap; gap: 6px 12px; }
  .topbar-left, .topbar-right { gap: 10px; flex-wrap: wrap; }
  .topbar .divider { display: none; }
  .topbar-muted { display: none; }

  /* Nav */
  .nav-inner { height: 64px; }
  .logo-img { height: 40px; }
  .nav-actions { gap: 8px; }
  .nav.menu-open .nav-links { top: 64px; }

  /* Single-column collapses */
  .cap-grid, .brand-grid, .sku-grid, .related-grid, .contact-info, .process-grid,
  .timeline-grid, .row-2, .facility-grid, .spec-strip, .brand-stats, .cta-band-grid,
  .values-row, .featured-stats, .footer-grid, .cat-cards-grid, .catalogue-body-grid,
  .leadership-grid {
    grid-template-columns: 1fr;
  }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .about-stats > div .display { font-size: 28px !important; }
  .brand-wall { grid-template-columns: repeat(3, 1fr); }
  .brand-wall-tile { padding: 18px; }

  .spec-strip > div, .brand-stats > div { border-right: none !important; }
  .spec-strip > div:not(:last-child), .brand-stats > div:not(:last-child) { border-bottom: 1px solid var(--line); }
  .spec-strip { margin-top: 56px; }
  .spec-strip > div { padding: 22px 18px; }

  .brandwall { grid-template-columns: repeat(2, 1fr); }
  .brandwall > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 12px; font-size: 12px; }
  .brandwall > div:nth-child(2n) { border-right: none; }

  /* Footer */
  .footer { padding: 56px 0 24px; }
  .footer-grid { gap: 32px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-meta { flex-wrap: wrap; gap: 12px 18px; }

  /* Downloads table */
  .dl-table { display: grid; grid-template-columns: 1fr; }
  .dl-table > div { border-bottom: 1px solid var(--line); padding: 16px 18px; }
  .dl-table .dl-head { display: none; }
  .dl-icon { width: 40px; height: 50px; }

  /* Hero */
  .hero-badge {
    position: static;
    margin-top: 24px;
    width: auto;
    padding: 22px 26px;
  }
  .hero-sub { margin-top: 28px; font-size: 15px; }
  .hero-cta { margin-top: 24px; gap: 10px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }

  /* Cap cards / Featured / Timeline / Values / Process */
  .cap-card { min-height: auto; padding: 32px 24px; }
  .featured-section { padding: 64px 0; }
  .featured-grid { gap: 36px; }
  .featured-stats { grid-template-columns: 1fr 1fr; }
  .featured-stats > div { padding: 16px 18px; }
  .timeline-grid > div { min-height: auto; padding: 26px 22px; }
  .values-row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .process-grid { gap: 20px; }

  /* Brand cards */
  .brand-card { min-height: auto; padding: 28px 24px; }

  /* Contact */
  .contact-info > div { min-height: auto; padding: 32px 26px; }
  iframe[style*="min-height: 480px"] { min-height: 320px !important; aspect-ratio: 4 / 3 !important; }
  .form-card { padding: 28px 22px; }
  form[style*="padding: 48px"] { padding: 28px 22px !important; }

  /* Quote */
  .stepper > div { padding: 14px 16px; flex: 1 1 50%; font-size: 13px; }
  .step-nav { flex-direction: column-reverse; gap: 10px; }
  .step-nav .btn { width: 100%; justify-content: center; }
  .quote-aside ul { gap: 16px; }

  /* Inline 2-col CTA bands → one column */
  .container[style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .container[style*="grid-template-columns: 2fr 1fr"] > .btn { justify-self: stretch !important; justify-content: center; text-align: center; }

  /* Inline hero / section paddings → tighten */
  .container[style*="padding: 64px 32px"] { padding: 40px 20px 56px !important; }
  section[style*="padding: 80px 0"] { padding: 56px 0 !important; }
  section[style*="padding: 96px 0"] { padding: 56px 0 !important; }
  section[style*="padding: 120px 0"] { padding: 64px 0 !important; }
  section[style*="80px 0 96px"] { padding: 48px 0 56px !important; }
  section[style*="80px 0 64px"] { padding: 48px 0 40px !important; }
  section[style*="80px 0 48px"] { padding: 48px 0 32px !important; }
  section[style*="64px 0 56px"] { padding: 40px 0 32px !important; }
  section[style*="64px 0 48px"] { padding: 40px 0 32px !important; }

  /* Override inline display font-sizes for mobile */
  .display[style*="font-size: 140px"],
  .display[style*="font-size: 120px"],
  .display[style*="font-size: 112px"],
  .display[style*="font-size: 104px"],
  .display[style*="font-size: 96px"] { font-size: clamp(40px, 12vw, 64px) !important; }
  .display[style*="font-size: 88px"],
  .display[style*="font-size: 80px"],
  .display[style*="font-size: 72px"] { font-size: clamp(36px, 10vw, 56px) !important; }
  .display[style*="font-size: 64px"],
  .display[style*="font-size: 60px"],
  .display[style*="font-size: 56px"],
  .display[style*="font-size: 52px"] { font-size: clamp(30px, 8vw, 44px) !important; }
  .display[style*="font-size: 48px"],
  .display[style*="font-size: 44px"],
  .display[style*="font-size: 40px"] { font-size: clamp(26px, 6.5vw, 36px) !important; }
  .display[style*="font-size: 36px"],
  .display[style*="font-size: 32px"],
  .display[style*="font-size: 28px"] { font-size: clamp(22px, 5.5vw, 28px) !important; }

  /* Hero h1 with inline clamp baselines that are too big on small screens */
  .hero-h1 { font-size: clamp(44px, 11vw, 72px) !important; line-height: 1.05 !important; }
  .display[style*="clamp(72px"] { font-size: clamp(46px, 13vw, 76px) !important; }
  .display[style*="clamp(56px, 8vw"] { font-size: clamp(42px, 11vw, 64px) !important; }
  .display[style*="clamp(56px, 7vw"] { font-size: clamp(40px, 10vw, 60px) !important; }
  .display[style*="clamp(48px, 7vw"] { font-size: clamp(36px, 9vw, 56px) !important; }
  .display[style*="clamp(40px, 5vw"] { font-size: clamp(28px, 7vw, 40px) !important; }

  /* Big inline stat numbers — slightly tone down */
  .hero-badge .display { font-size: 44px !important; }
}

/* Small phone (≤480px) — iPhone SE, narrow Android */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-tight { padding: 36px 0; }

  .topbar { display: none; }
  .nav-inner { height: 60px; }
  .logo-img { height: 36px; }
  .nav-actions .nav-search { display: none; }
  .nav.menu-open .nav-links { top: 60px; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .about-stats { grid-template-columns: 1fr 1fr; }
  .featured-stats { grid-template-columns: 1fr; }
  .brandwall { grid-template-columns: 1fr 1fr; }
  .brandwall > div { font-size: 11px; padding: 18px 8px; }

  .stepper > div { flex: 1 1 100%; }
  .line-row { grid-template-columns: 1fr auto; gap: 6px; }
  .line-row input:first-child { grid-column: 1 / -1; }

  /* Even tighter heading scale on tiny viewports */
  .display[style*="font-size: 140px"],
  .display[style*="font-size: 120px"],
  .display[style*="font-size: 112px"],
  .display[style*="font-size: 104px"],
  .display[style*="font-size: 96px"] { font-size: 44px !important; }
  .display[style*="font-size: 88px"],
  .display[style*="font-size: 80px"],
  .display[style*="font-size: 72px"] { font-size: 40px !important; }
  .display[style*="font-size: 64px"],
  .display[style*="font-size: 60px"],
  .display[style*="font-size: 56px"] { font-size: 32px !important; }
  .hero-h1 { font-size: 44px !important; }
  .display[style*="clamp(72px"] { font-size: 44px !important; }

  .form-card { padding: 22px 18px; }
  form[style*="padding: 48px"] { padding: 24px 18px !important; }

  .breadcrumb .mono { font-size: 10px; }
}
