/* =========================================================
   BulkCore Incorporation — Design System
   ---------------------------------------------------------
   Palette  : navy + teal (from logo) + amber (from poster)
   Type     : Anton (display) / Archivo (heading) / Manrope (body) / JetBrains Mono (label)
   Built for: handoff to a developer for production
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Primary navy */
  --navy-900: #08172e;
  --navy-800: #0d2548;
  --navy-700: #133463;
  --navy-600: #1e4582;

  /* Teal (logo accent) */
  --teal-600: #2b8a8a;
  --teal-500: #3ba6a6;
  --teal-400: #6ec6c6;
  --teal-100: #d6ecec;

  /* Amber (poster accent) */
  --amber-600: #d68a0a;
  --amber-500: #f5a623;
  --amber-400: #ffba47;
  --amber-100: #fce7be;

  /* Neutrals */
  --cream-50:  #fbf8f2;
  --cream-100: #f3ede1;
  --cream-200: #e7dfcd;
  --gray-900: #14171c;
  --gray-700: #3a3f4a;
  --gray-500: #6b7280;
  --gray-400: #9aa0aa;
  --gray-300: #c7cbd2;
  --gray-200: #e3e5ea;
  --gray-100: #f1f2f5;
  --white:    #ffffff;

  /* Semantic */
  --bg:        var(--cream-50);
  --bg-dark:   var(--navy-900);
  --fg:        var(--gray-900);
  --fg-muted:  var(--gray-500);
  --accent:    var(--amber-500);
  --accent-2:  var(--teal-500);

  /* Type */
  --ff-display: "Anton", "Archivo Black", system-ui, sans-serif;
  --ff-heading: "Archivo", system-ui, sans-serif;
  --ff-body:    "Manrope", system-ui, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Scale */
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);

  /* Radii / Shadow */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(8,23,46,0.06), 0 2px 8px rgba(8,23,46,0.04);
  --shadow-2: 0 8px 24px rgba(8,23,46,0.10), 0 2px 6px rgba(8,23,46,0.06);
  --shadow-3: 0 24px 60px rgba(8,23,46,0.18), 0 8px 24px rgba(8,23,46,0.10);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--amber-500); color: var(--navy-900); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-600);
  font-weight: 500;
}
.eyebrow--light { color: var(--teal-400); }
.eyebrow--amber { color: var(--amber-500); }

h1, h2, h3, h4 { font-family: var(--ff-heading); font-weight: 800; letter-spacing: -0.01em; margin: 0; line-height: 1.08; color: var(--navy-900); }
h1 { font-size: clamp(40px, 6vw, 84px); }
h2 { font-size: clamp(32px, 4.4vw, 60px); }
h3 { font-size: clamp(22px, 2.2vw, 32px); }
h4 { font-size: clamp(18px, 1.6vw, 22px); }
p  { margin: 0; }

.display {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.92;
  text-transform: uppercase;
  font-size: clamp(56px, 10vw, 168px);
  color: var(--white);
}
.display--amber { color: var(--amber-500); }
.display--navy  { color: var(--navy-900); }

.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--gray-700); line-height: 1.55; max-width: 60ch; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 140px) 0; }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.section--dark { background: var(--navy-900); color: var(--cream-50); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark .lead { color: rgba(255,255,255,0.78); }
.section--cream { background: var(--cream-100); }
.section--white { background: var(--white); }

.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--navy-900);
  color: var(--cream-100);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.topbar__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; gap: 24px;
}
.topbar__left, .topbar__right { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.topbar__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber-500); display: inline-block; }
.topbar a:hover { color: var(--amber-400); }

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,248,242,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: transform 300ms ease;
  will-change: transform;
}
.nav--hidden { transform: translateY(-100%); }

/* Sticky header wrapper (topbar + nav) created by site.js so both
   the black topbar and the nav hide/reveal together on scroll */
.site-header {
  position: sticky; top: 0; z-index: 60;
  transition: transform 320ms ease;
  will-change: transform;
}
.site-header.nav--hidden { transform: translateY(-100%); }
.site-header .topbar { position: static; }
.site-header .nav { position: static; transition: none; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand__mark { width: 96px; height: 96px; flex-shrink: 0; filter: contrast(1.15) saturate(1.1); }
.brand__name {
  font-family: var(--ff-display);
  font-size: 38px; line-height: 1; letter-spacing: 0.02em;
  color: var(--navy-900); text-transform: uppercase;
  font-weight: 900;
}
.brand__name span { color: var(--teal-600); font-size: 13px; display: block; letter-spacing: 0.28em; font-family: var(--ff-mono); font-weight: 600; margin-top: 6px; }
@media (max-width: 600px) {
  .brand__mark { width: 64px; height: 64px; }
  .brand__name { font-size: 30px; }
  .brand__name span { font-size: 10px; }
}

.nav__links { display: flex; gap: 4px; align-items: center; }
.nav__link {
  padding: 10px 14px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 15px;
  color: var(--navy-800);
  transition: background 160ms, color 160ms;
}
.nav__link:hover { background: var(--gray-100); color: var(--navy-900); }
.nav__link.is-active { color: var(--amber-600); }
.nav__cta { padding-left: 8px; display: inline-flex; align-items: center; gap: 10px; }
.nav__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-sm); flex-shrink: 0;
  background: #0a66c2; color: #fff;
  transition: background 160ms, transform 120ms;
}
.nav__social:hover { background: #004182; transform: translateY(-1px); }
.nav__social svg { width: 20px; height: 20px; fill: currentColor; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--navy-900); color: var(--white);
  align-items: center; justify-content: center;
}
@media (max-width: 1000px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 24px; background: var(--cream-50); border-bottom: 1px solid var(--gray-200); gap: 4px; }
  .nav__links.is-open { display: flex; }
  .nav__link { padding: 14px; font-size: 16px; }
  .nav__toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 120ms ease-out, background 160ms, color 160ms, box-shadow 160ms;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--amber-500);
  color: var(--navy-900);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn--primary:hover { background: var(--amber-400); box-shadow: var(--shadow-2); }
.btn--dark { background: var(--navy-900); color: var(--white); }
.btn--dark:hover { background: var(--navy-700); }
.btn--ghost { background: transparent; color: var(--navy-900); border: 1.5px solid var(--navy-900); }
.btn--ghost:hover { background: var(--navy-900); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.7); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn__arrow { font-family: var(--ff-mono); font-weight: 400; transition: transform 200ms; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2vw, 32px);
  transition: transform 220ms ease-out, box-shadow 220ms;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card--dark { background: var(--navy-800); border-color: var(--navy-700); color: var(--cream-50); }
.card--dark h3 { color: var(--white); }

/* ---------- Pill / chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--teal-100); color: var(--teal-600);
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 500;
}
.chip--amber { background: var(--amber-100); color: var(--amber-600); }
.chip--dark { background: rgba(255,255,255,0.1); color: var(--cream-50); }
.chip--outline { background: transparent; border: 1px solid currentColor; }

/* ---------- Marquee / Ticker ---------- */
.marquee {
  background: var(--navy-900); color: var(--cream-100);
  overflow: hidden; white-space: nowrap;
  font-family: var(--ff-display); text-transform: uppercase;
  font-size: clamp(36px, 5vw, 64px); line-height: 1;
  padding: 18px 0;
  border-block: 1px solid rgba(255,255,255,0.08);
}
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 36s linear infinite; }
.marquee__item { display: inline-flex; align-items: center; gap: 48px; }
.marquee__dot { color: var(--amber-500); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: var(--cream-100); padding: 80px 0 32px; }
.footer h4 { color: var(--white); font-size: 14px; font-family: var(--ff-mono); font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { color: rgba(255,255,255,0.7); display: block; padding: 4px 0; font-size: 15px; }
.footer a:hover { color: var(--amber-400); }
.footer__bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 48px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-500); font-weight: 500; }
.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 15px;
  transition: border-color 140ms, box-shadow 140ms;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(19,52,99,0.12); }
.textarea { resize: vertical; min-height: 140px; }

/* ---------- Utilities ---------- */
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.stack-xs { --gap: 8px; }
.stack-sm { --gap: 12px; }
.stack-md { --gap: 20px; }
.stack-lg { --gap: 32px; }
.stack-xl { --gap: 48px; }

.center { text-align: center; }
.muted { color: var(--fg-muted); }
.amber { color: var(--amber-500); }
.teal  { color: var(--teal-500); }
.navy  { color: var(--navy-900); }

.divider { height: 1px; background: var(--gray-200); border: 0; margin: 0; }
.divider--light { background: rgba(255,255,255,0.1); }

.tag-line {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber-500); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.tag-line::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Image placeholders & treatments ---------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background: var(--gray-100);
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--ratio-1 { aspect-ratio: 1 / 1; }
.media--ratio-4-5 { aspect-ratio: 4 / 5; }
.media--ratio-16-9 { aspect-ratio: 16 / 9; }
.media--ratio-3-2 { aspect-ratio: 3 / 2; }
.media__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,23,46,0.7) 100%); }
.media__caption { position: absolute; left: 16px; bottom: 14px; color: var(--white); font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.media__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--navy-900); color: var(--cream-50);
  padding: 6px 10px; border-radius: var(--r-sm);
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
}
/* Logo watermark — sits bottom-right on every product image */
.media__logo {
  position: absolute; bottom: 14px; right: 14px;
  width: 64px; height: 64px;
  background: rgba(255, 247, 230, 0.94);
  border-radius: 999px;
  padding: 8px;
  box-shadow: 0 4px 14px rgba(8, 23, 46, 0.18), 0 0 0 1px rgba(8, 23, 46, 0.06);
  display: grid; place-items: center;
  pointer-events: none;
}
.media__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 600px) {
  .media__logo { width: 52px; height: 52px; padding: 6px; bottom: 10px; right: 10px; }
}
@media print {
  .media__logo { background: #FFF7E6 !important; box-shadow: none !important; }
}

/* ---------- Stat block ---------- */
.stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px 0;
}
.stat__num {
  font-family: var(--ff-display);
  font-size: clamp(48px, 6vw, 88px); line-height: 0.9;
  color: var(--navy-900);
  letter-spacing: 0.005em;
}
.stat__num.amber { color: var(--amber-500); }
.stat__label { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-500); }
.section--dark .stat__num { color: var(--white); }
.section--dark .stat__label { color: rgba(255,255,255,0.6); }

/* ---------- Hero treatments ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 96px);
}
.hero__bg {
  position: absolute; inset: 0; opacity: 0.32;
  background-size: cover; background-position: center;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,23,46,0.92) 0%, rgba(8,23,46,0.7) 40%, rgba(8,23,46,0.4) 100%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }

/* ---------- Animation helpers ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
  .reveal.is-in { opacity: 1; transform: translateY(0); }
}

/* ---------- Page-specific helpers used by multiple pages ---------- */
/* Footer brand override — bigger + inverted */
.footer .brand__mark { width: 112px; height: 112px; filter: brightness(0) invert(1) contrast(1.15); }
.footer .brand { gap: 16px; }
.footer .brand__name { font-size: 32px; color: var(--white); font-weight: 900; }
.footer .brand__name span { color: var(--teal-400); }

/* ---------- Quote Modal ---------- */
.qmodal {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  opacity: 0;
  transition: opacity 240ms ease-out;
}
.qmodal.is-open { display: flex; opacity: 1; }
.qmodal__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 23, 46, 0.78);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}
.qmodal__card {
  position: relative; z-index: 1;
  width: 100%; max-width: 880px;
  max-height: 92vh; overflow-y: auto;
  background: var(--cream-50);
  border-radius: var(--r-xl);
  box-shadow: 0 40px 100px rgba(0,0,0,0.4), 0 12px 32px rgba(8,23,46,0.25);
  transform: translateY(20px) scale(0.98);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: 0.85fr 1.2fr;
}
.qmodal.is-open .qmodal__card { transform: translateY(0) scale(1); }
@media (max-width: 760px) { .qmodal__card { grid-template-columns: 1fr; max-height: 95vh; } }

.qmodal__aside {
  background: var(--navy-900);
  color: var(--cream-50);
  padding: clamp(28px, 3vw, 44px);
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  display: flex; flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 760px) {
  .qmodal__aside { border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 28px; gap: 16px; }
}
.qmodal__aside::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.qmodal__eyebrow {
  font-family: var(--ff-mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber-500);
  display: inline-flex; align-items: center; gap: 10px;
}
.qmodal__eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245,166,35,0.18);
}
.qmodal__title {
  font-family: var(--ff-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: var(--white);
}
.qmodal__title em { color: var(--amber-500); font-style: normal; }
.qmodal__sla {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: grid; gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.qmodal__sla strong { color: var(--amber-500); font-weight: 500; }

.qmodal__body { padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.qmodal__close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--navy-900);
  z-index: 3;
  cursor: pointer;
  transition: background 160ms, transform 160ms;
}
.qmodal__close:hover { background: var(--amber-500); transform: rotate(90deg); }

.qmodal__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .qmodal__row { grid-template-columns: 1fr; } }

.qmodal .field { gap: 6px; }
.qmodal .label { font-size: 10px; }
.qmodal .input, .qmodal .select, .qmodal .textarea {
  padding: 12px 14px; font-size: 14px;
  border-radius: var(--r-sm);
  background: var(--white);
}
.qmodal .textarea { min-height: 92px; }

.qmodal__success {
  display: none;
  padding: 24px;
  background: var(--teal-100);
  border: 1px solid var(--teal-500);
  border-radius: var(--r-md);
  color: var(--teal-600);
}
.qmodal__success.is-on { display: block; }
.qmodal__success h4 { color: var(--teal-600); margin: 0 0 8px; }

/* Selector chips inside modal */
.qmodal .selector-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
@media (max-width: 480px) { .qmodal .selector-grid { grid-template-columns: 1fr 1fr; } }
.qmodal .selector-grid input[type="radio"] { display: none; }
.qmodal .selector-grid label {
  padding: 10px 10px; border: 1.5px solid var(--gray-300); border-radius: var(--r-sm);
  text-align: center; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--gray-700);
  transition: all 140ms;
}
.qmodal .selector-grid input:checked + label {
  background: var(--navy-900); color: var(--white); border-color: var(--navy-900);
}
.qmodal .selector-grid label:hover { border-color: var(--navy-800); }

.split {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* small SVG icons */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 36px; height: 36px; }

/* =========================================================
   Mobile responsiveness — consolidated overrides
   ========================================================= */

/* Never let anything cause a horizontal scrollbar.
   Use `clip` (not `hidden`) so it does NOT create a scroll container —
   `hidden` would break position:sticky on the nav. */
html, body { max-width: 100%; overflow-x: clip; }

/* When multi-column grids collapse on small screens, cancel any inline
   column spans (e.g. grid-column: span 3) so wide cards don't overflow */
@media (max-width: 900px) {
  .grid-2 > [style*="span"], .grid-3 > [style*="span"], .grid-4 > [style*="span"] {
    grid-column: auto !important;
  }
}

/* Inline 5-column grids (process steps, port rows) must collapse on mobile */
@media (max-width: 860px) {
  .grid[style*="repeat(5"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px) {
  .grid[style*="repeat(5"] { grid-template-columns: 1fr !important; }
}

/* Two-column inline grids that never collapse -> stack on small screens */
@media (max-width: 760px) {
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 1.3fr 1fr"],
  [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns: 1fr 1.3fr"],
  [style*="grid-template-columns: 1fr 1.08fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Small phones: let long buttons wrap instead of overflowing, and ease padding */
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; }
  .btn--lg { padding: 15px 18px; font-size: 15px; }
  [style*="grid-template-columns: 1.4fr 1fr"] { padding: 28px 22px !important; }
}

/* --- Topbar: stack the ticker above the contact links on small screens --- */
@media (max-width: 820px) {
  .topbar__row { flex-direction: column; align-items: center; gap: 8px; padding: 9px 0; }
  .topbar__left, .topbar__right { width: 100%; justify-content: center; gap: 6px 18px; }
  .topbar__left span[data-rotate] { white-space: normal; text-align: center; line-height: 1.4; }
  .topbar { font-size: 11px; letter-spacing: 0.04em; }
}
@media (max-width: 420px) {
  .topbar { font-size: 10px; }
  .topbar__right { gap: 4px 14px; }
}

/* --- Display headings: ease the minimum size so big Anton type never overflows --- */
@media (max-width: 640px) {
  .display { font-size: clamp(38px, 12vw, 60px); line-height: 0.96; }
  h1 { font-size: clamp(34px, 9vw, 56px); }
  h2 { font-size: clamp(28px, 7vw, 44px); }
}

/* --- Industry cards: keep a tidy photo ratio once stacked --- */
@media (max-width: 800px) {
  .ind-card .media { aspect-ratio: 16 / 10; }
  .ind-card .media img { height: 100%; }
}

/* --- Footer bottom: center the two lines when they wrap --- */
@media (max-width: 560px) {
  .footer__bottom { justify-content: center; text-align: center; }
}

/* --- Marquee: smaller on phones so it doesn't dominate --- */
@media (max-width: 560px) {
  .marquee { font-size: clamp(28px, 9vw, 40px); padding: 14px 0; }
}
