/* Dexpress global stylesheet ------------------------------------- */
:root {
  --bg: #0A0B0D;
  --bg-2: #14161A;
  --bg-3: #1C1F25;
  --line: rgba(255,255,255,0.10);
  --line-2: rgba(255,255,255,0.18);
  --ink: #F5F2EC;
  --ink-2: #C9C5BC;
  --ink-3: #8A867D;
  --red: #D9272E;
  --red-2: #B41F25;
  --red-soft: rgba(217,39,46,0.14);
  --blue: #1E55A8;
  --blue-2: #1A4486;
  --blue-soft: rgba(30,85,168,0.18);
  --maple: #E0292F;
  --display: 'Archivo', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Typography ------------------------------------------------------ */
.h-display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-wrap: balance;
}
.h1 { font-size: clamp(48px, 7.5vw, 124px); }
.h2 { font-size: clamp(36px, 5vw, 78px); }
.h3 { font-size: clamp(26px, 3vw, 44px); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.eyebrow .tick { color: var(--red); }
.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 60ch;
}
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }

/* Layout ---------------------------------------------------------- */
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 36px; }
.wrap-tight { max-width: 1200px; margin: 0 auto; padding: 0 36px; }
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 72px 0; }
.divider { height: 1px; background: var(--line); width: 100%; }

/* Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--ink); }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn .arr { display: inline-block; transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* Eyebrow row ----------------------------------------------------- */
.section-head {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; margin-bottom: 56px;
}
.section-head .row {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.section-head .num { color: var(--red); font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; }

/* Pills ----------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.pill .dot.blue { background: var(--blue); }
.pill .dot.live { background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,0.6); animation: livepulse 2s infinite; }
@keyframes livepulse { 0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); } 50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } }

/* Image effects --------------------------------------------------- */
.img-fill { width: 100%; height: 100%; object-fit: cover; }
.img-grade { filter: contrast(1.05) saturate(0.92); }
.img-hero {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.08) saturate(0.85) brightness(0.7);
}
.scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(10,11,13,0) 0%, rgba(10,11,13,0.6) 60%, var(--bg) 100%),
    linear-gradient(180deg, rgba(10,11,13,0.6) 0%, rgba(10,11,13,0.25) 35%, rgba(10,11,13,0.85) 100%);
}
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Marquee --------------------------------------------------------- */
.marquee {
  display: flex; overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0; gap: 60px;
}
.marquee-track {
  display: flex; gap: 60px;
  animation: marquee 40s linear infinite;
  flex-shrink: 0;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.marquee span .star { color: var(--red); margin: 0 24px; display: inline-block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Cards ----------------------------------------------------------- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--line-2); }

/* Form ------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  padding: 10px 0;
  outline: none;
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--red); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23C9C5BC' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 4px center; }
.field select option { background: var(--bg-2); color: var(--ink); }

/* Driver mode (blue dominant) ------------------------------------- */
.driver-mode { --primary: var(--blue); --primary-2: var(--blue-2); }
.sales-mode  { --primary: var(--red);  --primary-2: var(--red-2); }

/* Reveal on scroll ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Utilities ------------------------------------------------------- */
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-mute { color: var(--ink-2); }
.text-dim { color: var(--ink-3); }
.bg-2 { background: var(--bg-2); }
.bg-3 { background: var(--bg-3); }

/* Mobile nav drawer ------------------------------------------------ */
.menu-btn { display: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-cta-mobile { display: none; }
.nav-drawer { display: none; }  /* hidden on desktop; media query shows it on mobile */

/* ============================================================
   RESPONSIVE LAYER
   ============================================================ */

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
  .wrap, .wrap-tight { padding: 0 24px; }
  .section { padding: 80px 0; }
  .section-sm { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
  /* generic 3-col grids -> 2 col */
  [style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns: repeat(3,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns: repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns: repeat(4,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="grid-template-columns: repeat(6, 1fr)"] { grid-template-columns: repeat(3, 1fr) !important; }
  [style*="grid-template-columns: repeat(6,1fr)"] { grid-template-columns: repeat(3, 1fr) !important; }
  /* 1.6fr 1fr 1fr 1fr style footer -> 2 col */
  footer [style*="grid-template-columns: 1.6fr"] { grid-template-columns: repeat(2, 1fr) !important; gap: 36px !important; }
  /* two-col split sections -> stack-friendly */
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 1.05fr 1fr"],
  [style*="grid-template-columns: 1fr 1.05fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  /* USP rows: stop alternating, stack image over text */
  .usp-row { grid-template-columns: 1fr !important; }
  .usp-row > div:first-child { grid-column: 1 !important; grid-row: 1 !important; aspect-ratio: 16/10; }
  .usp-row > div:last-child { grid-column: 1 !important; grid-row: 2 !important; padding: 40px 28px !important; }
}

/* Phone: 720px and below */
@media (max-width: 720px) {
  html, body { font-size: 15px; }
  .wrap, .wrap-tight { padding: 0 18px; }
  .section { padding: 64px 0; }
  .section-sm { padding: 44px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head .row { flex-wrap: wrap; gap: 8px; }
  .h1 { font-size: clamp(36px, 11vw, 56px); }
  .h2 { font-size: clamp(28px, 8vw, 44px); }
  .h3 { font-size: clamp(22px, 6vw, 30px); }
  .lede { font-size: 16px; }
  .marquee span { font-size: 20px; }
  .btn { padding: 14px 20px; font-size: 14px; }

  /* Nav: hide desktop links, show menu button */
  .nav-links { display: none !important; }
  .menu-btn {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px;
    background: rgba(10,11,13,0.6); color: var(--ink); cursor: pointer;
  }
  .nav-cta-mobile { display: inline-flex !important; }
  .nav-cta-desktop { display: none !important; }
  .nav-eyebrow { display: none !important; }

  /* Drawer */
  .nav-drawer {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(6,7,10,0.96); backdrop-filter: blur(20px);
    display: flex; flex-direction: column;
    padding: 92px 24px 32px;
    transform: translateY(-100%); transition: transform .35s ease;
  }
  .nav-drawer.open { transform: translateY(0); }
  .nav-drawer a {
    font-family: var(--display); font-size: 36px; font-weight: 700;
    letter-spacing: -0.02em; color: var(--ink);
    padding: 18px 0; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
  }
  .nav-drawer .drawer-cta { margin-top: 32px; justify-content: center; }
  .drawer-close {
    position: absolute; top: 22px; right: 18px;
    width: 44px; height: 44px; border-radius: 999px;
    border: 1px solid var(--line-2); background: rgba(255,255,255,0.04);
    color: var(--ink); display: grid; place-items: center; cursor: pointer;
  }

  /* Hero */
  section[style*="height:100vh"], section[style*="height: 100vh"] { min-height: 620px !important; height: auto !important; padding-bottom: 48px; }
  .img-hero { min-height: 100%; }

  /* All 2/3/4/6 col grids -> 1 col on phone */
  [style*="grid-template-columns: repeat(2, 1fr)"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: repeat(2,1fr)"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: repeat(4, 1fr)"] { grid-template-columns: 1fr 1fr !important; }
  [style*="grid-template-columns: repeat(4,1fr)"] { grid-template-columns: 1fr 1fr !important; }
  [style*="grid-template-columns: repeat(6, 1fr)"] { grid-template-columns: 1fr 1fr !important; }
  [style*="grid-template-columns: repeat(6,1fr)"] { grid-template-columns: 1fr 1fr !important; }
  /* generic gaps shrink */
  [style*="gap: 80px"] { gap: 40px !important; }
  [style*="gap: 64px"] { gap: 32px !important; }
  [style*="gap: 48px"] { gap: 28px !important; }
  /* About columns */
  [style*="column-count: 2"], [style*="column-count:2"] { column-count: 1 !important; }
  /* Service blocks padding */
  [style*="padding:'80px 0'"], [style*="padding: 80px 0"] { padding: 48px 0 !important; }
  /* Hide right-edge hero coords on small screens (overlap) */
  .hero-coords { display: none !important; }

  /* Border tweaks: drop right borders that disappear on stack */
  .stack-borders > * { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .stack-borders > *:last-child { border-bottom: 0 !important; }

  /* Hero: reduce kicker top padding on phone so it clears nav cleanly */
  .hero-kicker-wrap { padding-top: 88px !important; }

  /* Careers stats band: drop right borders when 2-col */
  .careers-stats > *:nth-child(even) { border-right: 0 !important; }
  .careers-stats > * { border-bottom: 1px solid var(--line) !important; }
  .careers-stats > *:last-child { border-bottom: 0 !important; }

  /* Funnel cards taller stack */
  .funnel-card { min-height: 480px !important; padding: 32px 24px !important; }

  /* Footer alignment */
  footer .wrap > div:last-child { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Forms: full-width 2-col -> 1-col */
  form[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Sticky sidecar drops to flow */
  [style*="position:'sticky'"], [style*="position: sticky"] { position: static !important; }

  /* Make hero pill / corner overlays smaller */
  .pill { font-size: 10px; padding: 5px 10px; }

  /* Section header headline tightening */
  .section-head h2 { font-size: clamp(28px, 8vw, 44px); }

  /* Reduce service card height on mobile */
  .card { border-radius: 4px; }

  /* Map svg scales fine but reduce height */
  .gta-map-wrap { height: 360px !important; }
}

/* Very small */
@media (max-width: 420px) {
  .wrap, .wrap-tight { padding: 0 14px; }
  .h1 { font-size: clamp(34px, 12vw, 48px); }
  .nav-drawer a { font-size: 28px; padding: 14px 0; }
}
