/* ============================================
   HaulQuest. B&W brand · sleek · motion-forward
   ============================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { background: var(--bg); }
body {
  font-family: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: #000; color: #fff; }

/* Tokens — high-contrast palette */
:root {
  --black: #000000;
  --ink: #0a0a0a;
  --gray-900: #1a1a1a;
  --gray-800: #262626;
  --gray-700: #2a2a2a;
  --gray-600: #353535;
  --gray-500: #4a4a4a;
  --gray-400: #6e6e6e;
  --gray-300: #b0b0b0;
  --gray-200: #d8d8d8;
  --gray-100: #f0f0f0;
  --gray-50: #f8f8f8;
  --bg: #ffffff;
  --bg-alt: #f8f8f8;
  --white: #ffffff;
  --border: #d8d8d8;
  --border-strong: #0a0a0a;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.12);
  --container: 1240px;
  --container-narrow: 920px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: var(--container-narrow); }

.section { padding: clamp(5rem, 9vw, 8rem) 0; position: relative; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--black); color: var(--white); position: relative; isolation: isolate; }
.section-dark p, .section-dark .lead { color: #e8e8e8; }
.section-dark { color: var(--white); }

/* Section-dark with photo background */
.section-dark .section-photo {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.section-dark .section-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 50%;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.22;
}
.section-dark .section-photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 50%, rgba(0,0,0,0.85) 100%);
}
.section-dark > .container { position: relative; z-index: 1; }

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
}
h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 700; letter-spacing: -0.045em; }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.18; letter-spacing: -0.02em; }
h4 { font-size: 1.0625rem; line-height: 1.3; }

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }

p { color: #0a0a0a; line-height: 1.6; font-weight: 450; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: #0a0a0a; max-width: 60ch; font-weight: 450; }
.section-dark p, .section-dark .lead { color: #ffffff; }

.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 1.25rem;
}
.kicker::before, .eyebrow::before {
  content: ''; width: 18px; height: 2px; background: currentColor;
}
.section-dark .kicker, .section-dark .eyebrow { color: #ffffff; }

.section-header { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-header.center { text-align: center; }
.section-header.center .kicker, .section-header.center .eyebrow { justify-content: center; }
.section-header p { margin-top: 1.25rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; font-size: 0.9375rem; font-weight: 700;
  letter-spacing: 0.005em;
  border-radius: 100px;
  transition: transform 0.12s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  border: 1.5px solid transparent; white-space: nowrap;
  position: relative;
  text-shadow: none;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform 0.18s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* Primary button: solid, with subtle elevation */
.btn-primary {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.08);
}
.btn-primary:hover {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}
.section-dark .btn-primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.15);
}
.section-dark .btn-primary:hover {
  background: #f0f0f0;
  color: #000000;
  border-color: #f0f0f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25), 0 8px 20px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

/* Secondary button: stronger borders, clearer hover */
.btn-secondary {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
  font-weight: 700;
}
.btn-secondary:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}
.section-dark .btn-secondary {
  background: rgba(0,0,0,0.35);
  color: #ffffff;
  border-color: #ffffff;
  font-weight: 700;
}
.section-dark .btn-secondary:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* On photo backgrounds, secondary button must have a SOLID dark backing
   so the white text is readable regardless of what the photo behind looks like. */
.hero .btn-secondary,
.page-header.has-photo .btn-secondary {
  background: rgba(0,0,0,0.6);
  color: #ffffff;
  border-color: #ffffff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-weight: 700;
}
.hero .btn-secondary:hover,
.page-header.has-photo .btn-secondary:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s var(--ease);
}
/* If backdrop-filter isn't supported, fall back to solid */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: #ffffff; }
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; letter-spacing: -0.025em;
  font-size: 1.0625rem; color: var(--ink);
}
.brand-mark {
  width: 40px; height: 40px;
  display: block; flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
}
/* Logo image renders as-is. No clipping, no background fill. */
.brand-mark img,
.brand-mark svg {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  font-size: 0.9375rem; font-weight: 600;
  color: #0a0a0a;
  border-radius: 999px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: #000000; background: var(--gray-100); }
.nav-cta { margin-left: 10px; }
/* Nav CTA button: enforce solid black bg + white text regardless of context */
.nav-cta .btn-primary,
.nav-links .btn-primary {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  font-weight: 700 !important;
}
.nav-cta .btn-primary:hover,
.nav-links .btn-primary:hover {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border-color: #1a1a1a !important;
}

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; align-items: center; justify-content: center; }
.nav-toggle:hover { background: var(--gray-100); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg);
    padding: 12px 20px 20px; gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 12px 14px; }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; background: var(--black);
  z-index: 70; width: 0%;
  transition: width 0.05s linear;
}

/* Hero */
.hero {
  position: relative; background: var(--black); color: var(--white);
  overflow: hidden;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
  isolation: isolate;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none; z-index: -1;
}
.hero-bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 40% at 50% 100%, rgba(255,255,255,0.08), transparent 70%),
    radial-gradient(40% 30% at 100% 0%, rgba(255,255,255,0.05), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lead { margin-top: 1.75rem; max-width: 60ch; color: var(--gray-300); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.hero .btn-row { margin-top: 2.5rem; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; font-weight: 500;
  color: var(--gray-300);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px; margin-bottom: 1.75rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.hero-tag .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

/* Hero with full-bleed photo */
.hero.hero-photo { background: var(--black); isolation: isolate; }
.hero-photo .hero-image { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo .hero-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.55;
}
.hero-photo .hero-image::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.95) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.hero-photo .hero-bg-grid, .hero-photo .hero-bg-glow { z-index: 1; }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-400);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 1;
}
.scroll-cue::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gray-400), transparent);
  animation: cueFall 2.4s ease-in-out infinite;
}
@keyframes cueFall {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--bg);
  padding: 22px 0;
  position: relative;
}
.section-dark .marquee { border-color: rgba(255,255,255,0.1); background: transparent; }
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track > * {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  letter-spacing: -0.03em;
  color: var(--gray-700);
  display: inline-flex; align-items: center; gap: 28px;
  white-space: nowrap;
}
.section-dark .marquee-track > * { color: var(--gray-400); }
.marquee-track .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gray-400); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.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: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; color: var(--ink); }
.card p { font-size: 0.9375rem; color: var(--gray-700); line-height: 1.55; }

.card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; color: var(--ink); letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 18px; display: block;
}
.card.dark .card-num { color: #b8b8b8; }
.section-dark .card .card-num { color: #b8b8b8; }

.icon-tile {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--ink); color: var(--white);
  display: grid; place-items: center;
  margin-bottom: 22px;
  transition: transform 0.3s var(--ease);
}
.card:hover .icon-tile { transform: scale(1.08) rotate(-3deg); }
.icon-tile svg { width: 22px; height: 22px; }

.section-dark .card { background: var(--gray-900); border-color: rgba(255,255,255,0.18); color: var(--white); }
.section-dark .card:hover { border-color: var(--white); }
.section-dark .card p { color: #d8d8d8; }
.section-dark .icon-tile { background: var(--white); color: var(--black); }

.card.dark { background: var(--black); color: var(--white); border-color: var(--black); }
.card.dark p,
.card.dark .lead { color: #ffffff; }
.card.dark h3,
.card.dark h2,
.card.dark h4 { color: var(--white); }
.card.dark .label { color: #d8d8d8; }
.card.dark .icon-tile { background: var(--white); color: var(--black); }

/* Feature row */
.feature-row {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(4rem, 8vw, 7rem); }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
@media (max-width: 920px) {
  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.reverse .feature-text { order: initial; }
  .feature-row.reverse .feature-visual { order: initial; }
}
.feature-text h2 { margin-bottom: 1.25rem; }
.feature-text .lead { margin-bottom: 1.75rem; }
.feature-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--ink); }
.feature-list .check {
  flex-shrink: 0; width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink); color: var(--white);
  display: grid; place-items: center;
  margin-top: 1px;
}
.feature-list .check svg { width: 12px; height: 12px; }
/* Feature list on dark surfaces — high contrast, but ONLY when the
   direct card / section is actually dark (not when a dark section
   contains a white card). */
.section-dark .feature-list li,
.split-card.dark .feature-list li,
.card.dark .feature-list li {
  color: #ffffff;
}
.section-dark .feature-list .check,
.split-card.dark .feature-list .check,
.card.dark .feature-list .check {
  background: #ffffff;
  color: #000000;
}
.section-dark .feature-list .check svg,
.split-card.dark .feature-list .check svg,
.card.dark .feature-list .check svg {
  stroke: #000000;
}

/* Override: a WHITE card embedded inside a dark section keeps black text.
   Catches the "HaulQuest Dispatching" card on the dispatching page. */
.section-dark .split-card[style*="#fff"] .feature-list li,
.section-dark .card[style*="#fff"] .feature-list li,
.split-card[style*="#fff"] .feature-list li,
.card[style*="#fff"] .feature-list li {
  color: #0a0a0a !important;
}
.section-dark .split-card[style*="#fff"] .feature-list .check,
.section-dark .card[style*="#fff"] .feature-list .check,
.split-card[style*="#fff"] .feature-list .check,
.card[style*="#fff"] .feature-list .check {
  background: #0a0a0a !important;
  color: #ffffff !important;
}
.section-dark .split-card[style*="#fff"] .feature-list .check svg,
.section-dark .card[style*="#fff"] .feature-list .check svg,
.split-card[style*="#fff"] .feature-list .check svg,
.card[style*="#fff"] .feature-list .check svg {
  stroke: #ffffff !important;
}

/* Comparison-row "negative" bullets (X marks) — make sure they're
   actually visible even when the row text is intentionally muted. */
.feature-list .check[style*="#404040"],
.feature-list .check[style*="#e5e5e5"] {
  background: #1a1a1a !important;
  color: #ffffff !important;
}
.feature-list .check[style*="#e5e5e5"] svg,
.feature-list .check[style*="#404040"] svg {
  stroke: #ffffff !important;
}
/* Brighten the muted comparison text from #a3a3a3 → #e0e0e0 (much more readable on black) */
.section-dark .feature-list li span[style*="#a3a3a3"],
.card.dark .feature-list li span[style*="#a3a3a3"] {
  color: #e0e0e0 !important;
}

/* Visual frames (mock UIs) */
.visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--gray-100);
  border: 1px solid var(--border);
  padding: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.visual-frame.dark { background: var(--gray-900); border-color: rgba(255,255,255,0.1); }
.visual-window { border-radius: 12px; background: #fff; border: 1px solid var(--border); overflow: hidden; }
.visual-window-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--gray-50);
}
.visual-window-bar .d { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-300); }
.visual-window-bar .url {
  margin-left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--gray-500);
}

/* mock load list */
.mock-list { padding: 14px; display: grid; gap: 10px; }
.mock-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff;
  align-items: center; font-size: 0.8125rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.mock-row:hover { border-color: var(--ink); transform: translateX(2px); }
.mock-row .pin { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-400); }
.mock-row .pin.live { background: var(--ink); animation: pulseDark 2s ease-in-out infinite; }
@keyframes pulseDark {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0,0,0,0); }
}
.mock-row .id { color: var(--ink); font-weight: 600; }
.mock-row .meta { color: var(--gray-500); font-size: 0.75rem; margin-top: 2px; }
.mock-row .status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--gray-600);
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--gray-100);
  border: 1px solid var(--border);
}
.mock-row .status.live { color: var(--white); background: var(--black); border-color: var(--black); }
.mock-row .status.done { color: var(--ink); background: var(--white); border-color: var(--ink); }

/* Phone */
.phone {
  width: 280px; margin: 0 auto;
  border-radius: 38px;
  background: var(--black);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-800);
}
.phone-screen { background: var(--bg); border-radius: 28px; overflow: hidden; height: 540px; position: relative; }
.phone-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem; color: var(--ink); font-weight: 600;
}
.phone-content { padding: 0 14px 14px; }
.phone-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 14px; margin-bottom: 10px;
}
.phone-card .h { font-weight: 600; font-size: 0.875rem; margin-bottom: 4px; }
.phone-card .s { font-size: 0.75rem; color: var(--gray-500); }
.phone-cta {
  background: var(--black); color: var(--white);
  text-align: center; font-weight: 600; font-size: 0.875rem;
  padding: 14px; border-radius: 14px; margin-top: 4px;
}

/* Stats */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: left; }
@media (max-width: 880px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 28px 28px 28px 0; border-left: 1px solid var(--border); padding-left: 28px; }
.stat:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 880px) {
  .stat { border-left: 0; padding-left: 0; padding-right: 0; }
}
.stat .num {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 600; letter-spacing: -0.04em;
  color: var(--ink); line-height: 1;
  display: flex; align-items: baseline; gap: 4px;
}
.stat .num .suffix { font-size: 0.55em; color: var(--gray-500); }
.stat .label { margin-top: 10px; font-size: 0.875rem; color: var(--gray-600); max-width: 22ch; }
.section-dark .stat { border-color: rgba(255,255,255,0.12); }
.section-dark .stat .num { color: var(--white); }
.section-dark .stat .label { color: var(--gray-400); }
.section-dark .stat .num .suffix { color: var(--gray-400); }

/* Compare table */
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.compare th, .compare td {
  padding: 20px 24px; text-align: left; font-size: 0.9375rem;
  border-bottom: 1px solid var(--border); vertical-align: top;
  color: var(--ink);
}
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--gray-50);
}
.compare tbody th { font-weight: 600; color: var(--ink); width: 28%; }
.compare .old { color: var(--gray-600); font-weight: 400; }
.compare .hq { color: var(--ink); font-weight: 600; }
.compare .hq::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink);
  margin-right: 10px; vertical-align: middle;
}

/* CTA banner */
.cta {
  background: var(--black); color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2.75rem, 6vw, 4.5rem);
  position: relative; overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(255,255,255,0.04), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* CTA with photo background */
.cta .cta-photo {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.cta .cta-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.32;
}
.cta .cta-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.85) 100%);
}

.cta-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 48px; align-items: center;
}
@media (max-width: 920px) { .cta-inner { grid-template-columns: 1fr; } }
.cta h2 { color: var(--white); }
.cta p { color: var(--gray-300); margin-top: 14px; }
.cta .btn-row { margin-top: 28px; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--bg); padding: 80px 0 36px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink); margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.footer-col a { font-size: 0.9375rem; color: var(--gray-700); transition: color 0.15s var(--ease); font-weight: 500; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem; color: var(--gray-700);
  flex-wrap: wrap; gap: 12px; letter-spacing: 0.04em; font-weight: 500;
}
.footer-social {
  display: flex; gap: 8px; align-items: center;
}
.footer-social a {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--ink); transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.footer-social a:hover {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}
.footer-social svg { width: 16px; height: 16px; }
.social-card-row {
  display: flex; gap: 10px; align-items: center; margin-top: 14px;
}
.social-card-row a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--ink);
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.social-card-row a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.social-card-row svg { width: 16px; height: 16px; }
.footer-tag { color: var(--gray-700); max-width: 38ch; font-size: 0.9375rem; font-family: 'Inter Tight', 'Inter', sans-serif; line-height: 1.55; }

/* Forms */
.form {
  display: grid; gap: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--gray-700);
}
.field input, .field textarea, .field select {
  padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--white);
  font-size: 0.9375rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

/* Page header (sub-pages) */
.page-header {
  background: var(--black); color: var(--white);
  padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000, transparent 70%);
  pointer-events: none;
}
.page-header h1 { color: var(--white); max-width: 22ch; }
.page-header .lead { color: var(--gray-300); margin-top: 1.5rem; max-width: 64ch; }
.page-header-inner { position: relative; z-index: 1; }

/* Page header with photo */
.page-header.has-photo { background: var(--black); isolation: isolate; }
.page-header.has-photo .page-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-header.has-photo .page-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.45;
}
.page-header.has-photo .page-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.page-header.has-photo .page-header-inner { position: relative; z-index: 2; }

/* Photo card */
.photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
}
.photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.7s var(--ease), filter 0.6s var(--ease);
}
.photo-card:hover img { transform: scale(1.05); filter: grayscale(0.6); }
.photo-card .photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 22px; color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  z-index: 1;
}
.photo-card .photo-caption .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7); margin-bottom: 4px;
}
.photo-card .photo-caption h3 { color: var(--white); font-size: 1.125rem; }

/* Image banner */
.image-banner {
  position: relative; height: clamp(220px, 32vw, 360px);
  overflow: hidden; background: var(--black);
}
.image-banner img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%;
  filter: grayscale(1) contrast(1.05); opacity: 0.7;
}
.image-banner .banner-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(90deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7));
  padding: 0 24px;
}
.image-banner .banner-overlay .quote {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.875rem);
  letter-spacing: -0.035em;
  color: var(--white); max-width: 22ch; line-height: 1.05;
}

/* Image grid */
.image-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 880px) { .image-grid { grid-template-columns: repeat(2, 1fr); } }
.image-grid .photo-card { aspect-ratio: 1 / 1; }

/* Image-fail state: dark backing only, no graphics */
.img-failed {
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}
.img-failed::before {
  content: '';
}

/* Misc */
.muted { color: var(--gray-600); }
.center { text-align: center; }
.divider { height: 1px; background: var(--border); width: 100%; margin: 32px 0; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--gray-100); color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--border);
}
.section-dark .badge {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 7px 14px;
  border: 1px solid var(--ink); border-radius: 999px;
  color: var(--ink); background: var(--white); font-weight: 600;
}
.section-dark .pill {
  background: rgba(255,255,255,0.08); color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

/* Animation utilities */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal.in.reveal-left, .reveal.in.reveal-right { transform: none; }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* Road strip with truck */
.road-strip {
  position: relative; height: 200px;
  background: var(--black); overflow: hidden;
  display: flex; align-items: center;
}
.road-strip .lane {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5) 20%, rgba(255,255,255,0.5) 80%, transparent);
}
.road-strip .lane.top { top: 30%; }
.road-strip .lane.bottom { bottom: 30%; }
.road-strip .dashes {
  position: absolute; left: 0; right: 0; top: 50%; height: 3px;
  background-image: linear-gradient(90deg, #fff 50%, transparent 50%);
  background-size: 60px 3px; background-repeat: repeat-x;
  transform: translateY(-50%);
  animation: lane-dashes 3s linear infinite;
}
@keyframes lane-dashes {
  from { background-position-x: 0; }
  to { background-position-x: -60px; }
}
.road-strip .truck {
  position: absolute;
  bottom: 14%;
  left: -300px;
  width: 280px;
  height: auto;
  max-height: 84%;
  object-fit: contain;
  animation: truck-drive 14s linear infinite;
  z-index: 3;
  /* The hand-drawn JPG has a white background. "screen" makes white go transparent on black. */
  mix-blend-mode: screen;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5));
}
.road-strip img.truck {
  /* keep the screen blend so the JPG's white background disappears on the black strip */
  background: transparent;
  display: block;
}
.road-strip img.truck.img-failed { display: none; }
@keyframes truck-drive {
  from { left: -200px; }
  to { left: 100%; }
}

/* Split / Service compare cards */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  background: var(--white);
  position: relative; overflow: hidden;
}
.split-card.dark { background: var(--black); color: var(--white); border-color: var(--black); }
.split-card.dark p,
.split-card.dark .lead { color: #ffffff; }
.split-card .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--gray-500); margin-bottom: 12px;
}
.split-card.dark .label { color: var(--gray-400); }
.split-card h2 { margin-bottom: 16px; }
.split-card.dark h2 { color: var(--white); }
.split-card .lead { margin-bottom: 24px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .road-strip .truck, .road-strip .dashes { animation: none; }
  .scroll-cue::after { animation: none; }
  .hero-tag .live-dot, .mock-row .pin.live { animation: none; }
}

/* =====================================================
   PERFORMANCE: GPU hints + cheap mobile mode
   ===================================================== */

/* Tell the compositor which elements are going to animate so it
   uses its own layer (no per-frame layout/paint). */
.marquee-track,
.road-strip .truck,
.road-strip .dashes,
.scroll-progress,
[data-parallax] {
  will-change: transform;
}
.reveal { will-change: opacity, transform; }

/* Mobile: kill expensive paint effects that wreck phone GPUs */
@media (max-width: 768px) {
  /* backdrop-filter is one of the most expensive CSS properties on phones.
     Use a solid color instead. */
  .nav,
  .hero .btn-secondary,
  .page-header.has-photo .btn-secondary {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .nav { background: #ffffff !important; }

  /* mix-blend-mode forces compositor passes; switch to plain rendering on mobile */
  .road-strip img.truck,
  .road-strip .truck {
    mix-blend-mode: normal !important;
    filter: none !important;
  }

  /* Disable the road-strip animated truck on phones. It saves a constant
     animation that's barely visible at small sizes anyway. */
  .road-strip { display: none !important; }

  /* Slow down the marquee so it's lighter on the GPU */
  .marquee-track { animation-duration: 60s !important; }

  /* Drop the heavy hero glow/grid layers */
  .hero-bg-grid,
  .hero-bg-glow { display: none !important; }

  /* Don't paint shadow filters on every photo card */
  .photo-card { box-shadow: 0 6px 16px rgba(0,0,0,0.12) !important; }
}

/* Save data: respect the user's Save-Data header */
@media (prefers-reduced-data: reduce) {
  .road-strip,
  .marquee,
  .hero-bg-grid,
  .hero-bg-glow { display: none; }
  .marquee-track { animation: none; }
  .road-strip .truck { animation: none; }
}

/* =====================================================
   MOBILE OPTIMIZATIONS
   Only active below 768px. Desktop layout untouched.
   ===================================================== */
@media (max-width: 768px) {
  /* Tighten container gutters so content doesn't crowd the edges */
  .container { padding: 0 18px; }

  /* Force any inline two-column grid to stack on phones.
     This catches the hero/page-header inline grid styles. */
  .hero-inner > div,
  .page-header-inner > div,
  [style*="grid-template-columns: 1.1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1.1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Section padding: shrink on mobile (was clamp 5–8rem) */
  .section { padding: 56px 0; }
  .section-tight { padding: 36px 0; }

  /* Typography scale-down */
  h1 { font-size: clamp(2.25rem, 9vw, 3rem) !important; letter-spacing: -0.035em; }
  h2 { font-size: clamp(1.75rem, 6vw, 2.25rem) !important; }
  h3 { font-size: 1.125rem !important; }
  .lead { font-size: 1rem !important; line-height: 1.5; }

  /* HERO */
  .hero { padding: 100px 0 72px; min-height: auto; }
  .hero h1 { max-width: 100%; }
  .hero .lead { margin-top: 1rem; }
  .hero .btn-row { margin-top: 1.75rem; flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 360px; }
  .hero .btn { width: 100%; padding: 16px 24px; font-size: 1rem; }
  .hero .photo-card { max-width: 100% !important; margin-left: 0 !important; aspect-ratio: 4 / 3 !important; }
  .hero-tag { font-size: 0.75rem; padding: 6px 12px; }
  .scroll-cue { display: none; }

  /* PAGE HEADER (services/dispatch/features/platform/pricing/contact heroes) */
  .page-header { padding: 100px 0 56px; }
  .page-header h1 { max-width: 100%; }
  .page-header .lead { margin-top: 1rem; }
  .page-header .btn-row { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 360px; }
  .page-header .btn { width: 100%; padding: 16px 24px; font-size: 1rem; }

  /* Buttons site-wide on mobile: bigger tap targets, no nowrap clipping */
  .btn { padding: 14px 22px; font-size: 0.9375rem; white-space: normal; text-align: center; }
  .btn-row { gap: 10px; }

  /* NAV: tighten height + spacing */
  :root { --nav-h: 60px; }
  .brand-text { font-size: 1rem; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-cta { display: none; } /* hide pill in nav, full menu has Get Started link */
  .nav-toggle { width: 44px; height: 44px; }
  .nav.open .nav-links {
    padding: 14px 18px 22px;
    gap: 2px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  }
  .nav.open .nav-links a {
    padding: 14px 16px !important;
    font-size: 1rem !important;
    border-radius: 10px;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav.open .nav-links li:last-child a { border-bottom: 0; }

  /* MARQUEE: smaller, faster-feeling */
  .marquee { padding: 14px 0; }
  .marquee span { font-size: 0.8125rem; }

  /* DUAL SERVICES / SPLIT cards */
  .split { gap: 18px; }
  .split-card { padding: 32px 22px; }

  /* FEATURE ROWS — already collapse at 920px, but tighten gaps */
  .feature-row { gap: 28px; }
  .feature-text h2 { margin-bottom: 0.875rem; }
  .feature-text .lead { margin-bottom: 1.25rem; }

  /* IMAGE GRID — stack to single column under 768px (was 2-col at 880) */
  .image-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .image-grid .image-tile { aspect-ratio: 16 / 10 !important; }

  /* CTA banner */
  .cta { padding: 72px 0; }
  .cta-inner { gap: 24px !important; }
  .cta h2 { font-size: clamp(2rem, 7vw, 2.5rem) !important; }
  .cta .btn-row { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 360px; }
  .cta .btn { width: 100%; padding: 16px 24px; }

  /* STATS strip */
  .stat-strip { grid-template-columns: 1fr 1fr !important; gap: 22px !important; }
  .stat .num { font-size: clamp(2rem, 8vw, 2.75rem); }
  .stat .label { font-size: 0.8125rem; }

  /* COMPARISON TABLE: switch to scrollable on phones */
  .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare { min-width: 540px; font-size: 0.875rem; }

  /* FOOTER stack */
  .footer { padding: 56px 0 28px; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 36px; }
  .footer-tag { max-width: 100%; }

  /* CONTACT page email cards / dual columns */
  .contact-grid { grid-template-columns: 1fr !important; gap: 22px !important; }

  /* DISPATCH page cards & rows */
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  /* Photo card / image banner heights smaller on phones */
  .image-banner { height: 280px !important; }
  .photo-card { aspect-ratio: 4 / 3 !important; }

  /* Visual / phone mocks: don't blow out the layout */
  .visual-frame, .visual-window, .phone { max-width: 100%; }
  .phone { transform: none !important; }

  /* Reduce margins between page-header and following sections */
  .page-header + .road-strip { height: 120px; }
  .road-strip { height: 140px; }
  .road-strip .truck { width: 200px; bottom: 10%; }

  /* Section header & kickers: tighten */
  .section-header { margin-bottom: 36px; }
  .kicker, .eyebrow { font-size: 0.6875rem; }

  /* Form on contact page */
  .form .field-row { grid-template-columns: 1fr !important; }
  .form input, .form textarea, .form select { font-size: 16px; } /* prevents iOS auto-zoom */
}

/* Phone-specific (very narrow) */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  h1 { font-size: clamp(2rem, 10vw, 2.5rem) !important; }
  h2 { font-size: clamp(1.5rem, 7vw, 2rem) !important; }
  .section { padding: 44px 0; }
  .hero { padding: 88px 0 56px; }
  .page-header { padding: 88px 0 44px; }
  .split-card { padding: 26px 18px; }
  .stat-strip { grid-template-columns: 1fr !important; }
  .road-strip { height: 110px; }
  .road-strip .truck { width: 160px; }
  .brand-text { display: none; } /* on tiny screens, just show logo mark */
}
