/* TRANSCAR — Design System
   Aesthetic language: minimal, photography-first, alternating tiles,
   single accent, tight typography. */

:root {
  /* Color */
  --action: #0066cc;
  --action-focus: #0071e3;
  --action-on-dark: #2997ff;
  --highlight: #70F79E;
  --ink: #1d1d1f;
  --ink-80: #333333;
  --ink-48: #7a7a7a;
  --hairline: #e0e0e0;
  --divider-soft: #f0f0f0;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --tile-1: #272729;
  --tile-2: #2a2a2c;
  --tile-3: #252527;
  --void: #000000;
  --on-dark: #ffffff;
  --on-dark-muted: #cccccc;
  --chip-translucent: rgba(210,210,215,0.64);

  /* Radii */
  --r-xs: 5px;
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 18px;
  --r-pill: 9999px;

  /* Spacing */
  --s-xxs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 17px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-xxl: 48px;
  --s-section: 80px;

  /* Type */
  --font-display: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;

  --product-shadow: 3px 5px 30px 0 rgba(0,0,0,0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* === Global type defaults === */
h1,
h2,
h3,
p {
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(40px, 6.2vw, 88px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.022em;
}

h2 {
  font-size: clamp(34px, 3.6vw, 56px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.018em;
}

h3 {
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

p {
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.011em;
}

/* === Typography utilities === */
.t-hero {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.2vw, 88px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.022em;
}
.t-display-lg {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 56px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.018em;
}
.t-display-md {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.014em;
}
.t-section {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
}
.t-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: 0;
  color: var(--ink-80);
}
.t-lead-airy {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-80);
}
.t-tagline {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.011em;
}
.t-body { font-size: 17px; font-weight: 400; line-height: 1.47; letter-spacing: -0.011em; }
.t-body-strong { font-size: 17px; font-weight: 600; line-height: 1.24; letter-spacing: -0.022em; }
.t-caption { font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: -0.016em; }
.t-caption-strong { font-size: 14px; font-weight: 600; line-height: 1.29; letter-spacing: -0.016em; }
.t-fine { font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink-48); }
.t-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--highlight);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}
.t-eyebrow.on-dark { color: var(--highlight); }

.muted { color: var(--ink-48); }
.center { text-align: center; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-text);
  transition: transform 120ms ease, background 200ms ease, color 200ms ease, opacity 200ms ease;
  text-decoration: none;
}
.btn:active { transform: scale(0.96); }
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--action);
  color: var(--on-dark);
  font-size: 17px;
  font-weight: 400;
  padding: 11px 22px;
  border-radius: var(--r-pill);
}
.btn-primary:hover { background: #0077e6; color: #fff; }
.btn-primary:focus { outline: 2px solid var(--action-focus); outline-offset: 2px; }

.btn-ghost {
  background: transparent;
  color: var(--action);
  font-size: 17px;
  font-weight: 400;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--action);
}
.btn-ghost:hover { background: rgba(0,102,204,0.08); }
.btn-ghost.on-dark {
  color: var(--action-on-dark);
  border-color: var(--action-on-dark);
}
.btn-ghost.on-dark:hover { background: rgba(41,151,255,0.12); }

.btn-store {
  background: var(--action);
  color: var(--on-dark);
  font-size: 18px;
  font-weight: 300;
  padding: 14px 28px;
  border-radius: var(--r-pill);
}

.btn-utility {
  background: var(--ink);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 15px;
  border-radius: var(--r-sm);
  letter-spacing: -0.016em;
}

.btn-pearl {
  background: var(--pearl);
  color: var(--ink-80);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  border: 3px solid var(--divider-soft);
}

.arrow::after { content: " ›"; font-weight: 500; transform: translateY(-1px); display: inline-block; }
.text-link {
  color: var(--action);
  font-size: 17px;
  display: inline-flex;
  align-items: center;
}
.text-link:hover { text-decoration: underline; }
.text-link.on-dark { color: var(--action-on-dark); }

/* === Centered stack content used inside tiles === */
.stack-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.stack-content > * { max-width: 100%; }
.stack-content h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.018em;
  max-width: 880px;
}
.stack-content p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-80);
  max-width: 720px;
}
.tile-dark .stack-content p,
.tile-dark-2 .stack-content p,
.tile-dark-3 .stack-content p,
.tile-void .stack-content p { color: var(--on-dark-muted); }
.stack-content .eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 6px;
}
.stack-content .ctas {
  display: flex;
  gap: 22px;
  margin-top: 22px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Site chrome (top utility bar + main nav) === */
:root {
  --brand-navy: #0a2a72;
  --brand-navy-deep: #08225e;
  --brand-sky: #2997ff;
}

.site-chrome {
  position: sticky;
  top: 0;
  z-index: 100;
  display: block;
  font-family: var(--font-text);
}

/* --- Top utility bar (dark navy) --- */
.topbar {
  background: var(--brand-navy);
  color: #ffffff;
  height: 36px;
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar-spacer { flex: 1; }
.topbar-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.topbar-social-link {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255,255,255,0.1);
  transition: background-color 180ms ease, transform 180ms ease;
}
.topbar-social-link svg {
  width: 15px;
  height: 15px;
}
.topbar-social-link:hover,
.topbar-social-link:focus-visible {
  color: #ffffff;
  background: rgba(255,255,255,0.22);
  text-decoration: none;
  transform: translateY(-1px);
}
.topbar-link {
  color: #ffffff;
  font-size: 13px;
  letter-spacing: -0.011em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.94;
  transition: opacity 200ms ease;
}
.topbar-link:hover { opacity: 1; text-decoration: none; color: #fff; }
.topbar-talk-mobile { display: none; }
.topbar-ico {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
}

/* --- Main nav (light) --- */
.mainnav {
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mainnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 78px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

/* Brand mark */
.mainnav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--brand-navy);
}
.mainnav-brand:hover { text-decoration: none; }
/* The logo artwork is 1000x261.5 with a viewBox tight to the glyphs, so
   rendered height is the only lever on how big the mark reads. max-width must
   stay above height x 3.83 or it silently clamps the height back down. */
.mainnav-brand img {
  display: block;
  height: 62px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
}
.foot-brand img { height: 104px; max-width: 420px; }

/* Between the burger breakpoint and ~1180px the full link row plus the larger
   brand mark exceeds the viewport, so the logo and link padding step down. */
@media (min-width: 834px) and (max-width: 1180px) {
  .mainnav-inner { padding: 0 20px; gap: 16px; }
  .mainnav-brand img { height: 48px; max-width: 220px; }
  .mainnav-links a,
  .mainnav-links button.nav-trigger {
    font-size: 14px;
    padding: 9px 11px;
  }
}

@media (max-width: 833px) {
  .mainnav-brand img { height: 44px; max-width: 190px; }
  /* Footer lockup spans the column on mobile, where there is no adjacent
     content competing for the width. max-width on the shared .mainnav-brand
     rule would otherwise cap it, so it is reset here. */
  .foot-brand { display: block; width: 100%; }
  .foot-brand img {
    width: 100%;
    height: auto;
    max-width: none;
  }
}

/* Main links */
.mainnav-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mainnav-links a,
.mainnav-links button.nav-trigger {
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand-navy);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 200ms ease, color 200ms ease;
}
.mainnav-links a:hover,
.mainnav-links button.nav-trigger:hover {
  color: var(--brand-navy-deep);
  background: rgba(10,42,114,0.06);
  text-decoration: none;
}
.mainnav-links a.active.pill,
.mainnav-links button.nav-trigger.active {
  background: var(--brand-navy);
  color: #ffffff;
}
.mainnav-links a.active.pill:hover,
.mainnav-links button.nav-trigger.active:hover {
  background: var(--brand-navy-deep);
  color: #ffffff;
}
.mainnav-links button.nav-trigger svg {
  transition: transform 200ms ease;
}
.mainnav-links button.nav-trigger.open svg {
  transform: rotate(180deg);
}

/* Burger (mobile only) */
.mainnav-burger {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.mainnav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-navy);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.mainnav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mainnav-burger.open span:nth-child(2) { opacity: 0; }
.mainnav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Dropdown panel */
.nav-panel {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 99;
}
.nav-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.nav-panel-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 28px 44px;
}
.nav-panel-eyebrow {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-48);
  margin-bottom: 22px;
}
.nav-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.nav-panel-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--ink);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 280ms ease, background 280ms ease;
}
.nav-panel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10,42,114,0.25);
  background: var(--parchment);
  text-decoration: none;
}
.nav-panel-card.active { border-color: var(--brand-navy); }
.nav-panel-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--brand-navy);
}
.nav-panel-card-title-mobile { display: none; }
.nav-panel-card-desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-80);
  letter-spacing: -0.011em;
}
.nav-panel-card-more {
  margin-top: 4px;
  font-size: 13px;
  color: var(--action);
}

@media (max-width: 980px) {
  .nav-panel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 833px) {
  .mainnav-inner { grid-template-columns: 1fr auto; height: 64px; }
  .mainnav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .mainnav-links.mobile-open { display: flex; }
  .mainnav-links a,
  .mainnav-links button.nav-trigger {
    justify-content: flex-start;
    padding: 11px 14px;
    border-radius: var(--r-md);
    font-size: 13px;
    letter-spacing: 0.04em;
  }
  .mainnav-links button.nav-trigger {
    width: 100%;
    justify-content: space-between;
  }
  .mainnav-links .nav-panel {
    position: static;
    display: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    width: 100%;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
  }
  .mainnav-links .nav-panel.open {
    display: block;
    max-height: min(42vh, 280px);
    max-height: min(42dvh, 280px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .mainnav-links .nav-panel-inner { padding: 2px 0 6px; }
  .mainnav-links .nav-panel-eyebrow { display: none; }
  .mainnav-links .nav-panel-grid { grid-template-columns: 1fr; gap: 3px; }
  .mainnav-links .nav-panel-card {
    min-height: 0;
    padding: 10px 14px 10px 30px;
    border: 0;
    border-left: 2px solid rgba(10,42,114,0.16);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    background: rgba(10,42,114,0.035);
  }
  .mainnav-links .nav-panel-card.active {
    border-left-color: var(--brand-navy);
    background: rgba(10,42,114,0.12);
    box-shadow: inset 0 0 0 1px rgba(10,42,114,0.12);
  }
  .mainnav-links .nav-panel-card[aria-current="page"] .nav-panel-card-title {
    color: var(--brand-navy-deep);
    font-weight: 700;
  }
  .mainnav-links .nav-panel-card-title {
    font-family: var(--font-text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
  }
  .mainnav-links .nav-panel-card-title-full,
  .mainnav-links .nav-panel-card-desc,
  .mainnav-links .nav-panel-card-more { display: none; }
  .mainnav-links .nav-panel-card-title-mobile { display: inline; }
  .mainnav-links .nav-panel-card:hover { transform: none; }
  .mainnav-links .nav-trigger.open {
    color: var(--brand-navy-deep);
    background: rgba(10,42,114,0.08);
  }
  .mainnav-burger { display: inline-flex; }
  .nav-panel-grid { grid-template-columns: 1fr; }
  .topbar-inner { padding: 0 18px; gap: 16px; }
  .topbar-link { font-size: 12px; }
  .topbar-call-desktop { display: none; }
  .topbar-talk-mobile { display: inline-flex; }
}

/* === Tile sections === */
.tile {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.tile-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: var(--s-section) 22px;
  position: relative;
  z-index: 2;
}
.tile.full-bleed .tile-inner { max-width: 100%; padding: var(--s-section) 0; }

.tile-light { background: var(--canvas); color: var(--ink); }
.tile-parchment { background: var(--parchment); color: var(--ink); }
.tile-dark { background: var(--tile-1); color: var(--on-dark); }
.tile-dark-2 { background: var(--tile-2); color: var(--on-dark); }
.tile-dark-3 { background: var(--tile-3); color: var(--on-dark); }
.tile-void { background: var(--void); color: var(--on-dark); }

.tile-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.tile-center .ctas {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

/* === Hero stage (homepage parallax) === */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--void);
  color: var(--on-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: -10vh -5vw -10vh -5vw;
  will-change: transform;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 22px;
  max-width: 1024px;
  margin: 0 auto;
  will-change: transform, opacity;
}
.hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--highlight);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.32);
  margin-bottom: 22px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-family: var(--font-display);
}
.hero-title-main,
.hero-title-sub {
  display: block;
}
.hero-title-main {
  font-weight: 700;
}
.hero-title-sub {
  color: #dce3ec;
  font-weight: 500;
  font-style: italic;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.92), 0 0 1px rgba(0, 0, 0, 0.8);
  font-size: clamp(20px, 2.25vw, 30px);
  max-width: 980px;
  margin: 0.6em auto 0;
  line-height: 1.25;
  letter-spacing: 0.01em;
  opacity: 0.95;
  text-transform: none;
  text-wrap: balance;
}
.hero .tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--on-dark-muted);
  max-width: 760px;
  margin: 0 auto 28px;
}

/* === Stat row === */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 64px 22px;
  max-width: 1024px;
  margin: 0 auto;
}
.stat .n {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .l {
  font-size: 14px;
  letter-spacing: -0.016em;
  color: var(--ink-48);
  margin-top: 8px;
}
.tile-dark .stat .l, .tile-dark-2 .stat .l, .tile-dark-3 .stat .l, .tile-void .stat .l {
  color: var(--on-dark-muted);
}

@media (max-width: 833px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* === Card grids === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(0,0,0,0.14); }
.card .thumb {
  border-radius: var(--r-sm);
  aspect-ratio: 4/3;
  background: var(--parchment);
  overflow: hidden;
  position: relative;
}
.card h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.022em; }
.card .meta { font-size: 14px; color: var(--ink-48); }

/* === Service rows (alternating) === */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1024px;
  margin: 0 auto;
  padding: var(--s-section) 22px;
}
.feature.reverse > :first-child { order: 2; }
.feature .copy h2 { margin: 0 0 16px; }
.feature .copy .lead { margin: 0 0 24px; }
.feature .media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--parchment);
}
.feature .media.dark { background: var(--tile-2); }

.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}
.bullet-list li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  letter-spacing: -0.011em;
  align-items: flex-start;
}
.bullet-list li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--action);
  margin-top: 9px;
}
.tile-dark .bullet-list li::before { background: var(--action-on-dark); }

@media (max-width: 833px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 56px 22px; }
  .feature.reverse > :first-child { order: 0; }
  .bullet-list { grid-template-columns: 1fr; }
}

/* === Service checklist with icons (Transcar green) === */
:root {
  --brand-green: #2BC44E;
}
.checklist.with-icons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}
.checklist.with-icons li {
  display: flex;
  gap: 14px;
  font-size: 16px;
  letter-spacing: -0.011em;
  line-height: 1.4;
  align-items: flex-start;
  padding: 4px 0;
}
.checklist.with-icons li::before { content: none; }
.checklist.with-icons li > span:last-child {
  flex: 1;
  padding-top: 4px;
}
.checklist.with-icons .ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-top: 0;
  color: var(--brand-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.checklist.with-icons .ico svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile-dark .checklist.with-icons .ico,
.tile-dark-2 .checklist.with-icons .ico,
.tile-dark-3 .checklist.with-icons .ico,
.tile-void .checklist.with-icons .ico {
  color: #4CE078;
}
@media (max-width: 900px) {
  .checklist.with-icons { grid-template-columns: 1fr; gap: 4px; }
  .checklist.with-icons li { font-size: 16px; }
}

/* === Reusable hero photo bg === */
/* Wrap any hero with .hero-photo-host and add as first children:
     <img class="hero-photo-bg" src="..." />
     <div class="hero-photo-overlay dark"></div>
   The host flips to dark/white-text styling automatically. */
.hero-photo-host {
  position: relative;
  overflow: hidden;
  background: #0b0b0c !important;
  color: var(--on-dark);
  isolation: isolate;
}
.hero-photo-host > * { position: relative; z-index: 2; }
.hero-photo-host > .hero-photo-bg { z-index: 0; }
.hero-photo-host > .hero-photo-overlay { z-index: 1; }
.hero-photo-host h1,
.hero-photo-host h2 { color: var(--on-dark) !important; }
.hero-photo-host p,
.hero-photo-host .lead,
.hero-photo-host .lede { color: var(--on-dark-muted) !important; }
.hero-photo-host .eyebrow { color: var(--on-dark-muted) !important; }

/* Ensure the parallaxed photo always over-covers the hero so the
   translate3d from data-parallax never reveals a black band. */
.hero-photo-bg {
  position: absolute;
  top: -12%;
  left: -4%;
  width: 108%;
  height: 124%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  will-change: transform;
}
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-photo-overlay.dark {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 35%, rgba(0,0,0,0.78) 100%);
}
.hero-photo-overlay.dark-strong {
  background:
    linear-gradient(180deg, rgba(8,10,16,0.65) 0%, rgba(8,10,16,0.55) 50%, rgba(0,0,0,0.85) 100%);
}
.hero-photo-overlay.light {
  background:
    linear-gradient(180deg, rgba(245,245,247,0.0) 0%, rgba(245,245,247,0.6) 60%, rgba(245,245,247,0.95) 100%);
}
.hero-photo-overlay.navy {
  background:
    linear-gradient(180deg, rgba(10,42,114,0.55) 0%, rgba(8,16,40,0.55) 50%, rgba(0,0,0,0.85) 100%);
}

/* Real image filling its parent (sits on top of placeholder) */
.real-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 2;
}

/* === Image placeholder (striped, with monospace label) === */
.placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,0.035) 0,
      rgba(0,0,0,0.035) 14px,
      rgba(0,0,0,0.07) 14px,
      rgba(0,0,0,0.07) 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(0,0,0,0.42);
  text-transform: uppercase;
}
.placeholder.dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.04) 0,
      rgba(255,255,255,0.04) 14px,
      rgba(255,255,255,0.08) 14px,
      rgba(255,255,255,0.08) 28px);
  color: rgba(255,255,255,0.5);
}

/* === Footer === */
footer.site-foot {
  background: var(--parchment);
  color: var(--ink-80);
  padding: 80px 28px 28px;
  font-size: 12px;
  line-height: 1.4;
}
footer.site-foot .foot-inner {
  max-width: 1280px;
  margin: 0 auto;
}
footer.site-foot .foot-top {
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 40px;
}
footer.site-foot .foot-blurb {
  /* Wide enough for the "...since 1977." line to sit unbroken, and pretty
     keeps "1977." off a line of its own if it ever does wrap. */
  max-width: 680px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-80);
  text-wrap: pretty;
}
footer.site-foot .foot-blurb span {
  display: block;
}
footer.site-foot .foot-motto {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
footer.site-foot .foot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
footer.site-foot h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.016em;
  margin: 0 0 14px;
  color: var(--ink);
}
footer.site-foot ul { list-style: none; padding: 0; margin: 0; }
footer.site-foot ul li { margin-bottom: 8px; }
footer.site-foot a { color: var(--ink-80); }
footer.site-foot a:hover { color: var(--action); text-decoration: none; }
footer.site-foot .legal {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--ink-48);
  font-size: 12px;
}
footer.site-foot .legal .spacer { flex: 1; }
@media (max-width: 833px) {
  footer.site-foot {
    padding: 56px 22px 24px;
    font-size: 14px;
  }
  footer.site-foot .foot-brand {
    display: block;
    width: 100%;
  }
  footer.site-foot .foot-brand img {
    width: 100%;
    max-width: none;
    height: auto;
  }
  footer.site-foot .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 32px;
  }
  footer.site-foot h4 {
    margin-bottom: 10px;
    font-size: 15px;
  }
  footer.site-foot .foot-grid ul li {
    margin: 0;
  }
  footer.site-foot .foot-grid a,
  footer.site-foot .foot-grid .cookie-settings-link {
    display: inline-flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
  }
}

/* === Reveal on scroll === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: 120ms; }
.reveal.delay-2 { transition-delay: 240ms; }
.reveal.delay-3 { transition-delay: 360ms; }

/* === Page hero (for inner pages) === */
.page-hero {
  background: var(--parchment);
  padding: 120px 22px 80px;
  text-align: center;
  position: relative;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0 auto 22px;
  max-width: 1024px;
}
.page-hero p {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-80);
  max-width: 760px;
  margin: 0 auto;
}

/* === Sticky CTA bar === */
.sticky-bar {
  position: sticky;
  bottom: 16px;
  z-index: 90;
  background: rgba(245,245,247,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  margin: 0 auto;
  max-width: 880px;
  padding: 10px 14px 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.05);
}
.sticky-bar .label { font-size: 15px; letter-spacing: -0.011em; flex: 1; }
@media (max-width: 600px) {
  .sticky-bar { margin: 0 16px; }
}

/* === Map / region grid === */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px var(--s-section);
}
.region-card {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms ease;
  cursor: pointer;
}
.region-card:hover { transform: translateY(-4px); border-color: rgba(0,0,0,0.14); }
.region-card .label {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.014em;
}
.region-card .arrow-link {
  font-size: 15px;
  color: var(--action);
}
.region-card .map-fill {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 40% 50%, rgba(0,102,204,0.10), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}
@media (max-width: 833px) {
  .region-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .region-grid { grid-template-columns: 1fr; }
}

/* === Forms === */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--ink-48); letter-spacing: -0.011em; }
.field input, .field textarea, .field select {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: var(--font-text);
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.011em;
  outline: none;
  transition: border-color 200ms ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--action);
}
.field textarea { min-height: 140px; resize: vertical; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* tracking input */
.tracking-input {
  display: flex;
  align-items: center;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 22px;
  max-width: 540px;
  margin: 0 auto;
}
.tracking-input input {
  border: 0;
  outline: 0;
  flex: 1;
  font-family: var(--font-text);
  font-size: 17px;
  background: transparent;
  letter-spacing: -0.011em;
  padding: 12px 0;
}

/* utility */
.hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* Parallax layer */
.parallax-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
  pointer-events: none;
}

/* === Legal and privacy pages === */
.legal-hero {
  padding: clamp(150px, 18vh, 205px) 22px 70px;
  background: linear-gradient(135deg, #eaf4ff 0%, #f7f8fa 62%, #fff 100%);
  border-bottom: 1px solid var(--hairline);
}
.legal-hero-inner, .legal-content { width: min(860px, 100%); margin: 0 auto; }
.legal-hero .eyebrow { margin-bottom: 14px; color: var(--action); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.legal-hero h1 { margin: 0 0 18px; font: 600 clamp(48px, 8vw, 82px)/.98 var(--font-display); letter-spacing: -.04em; }
.legal-hero p { max-width: 680px; margin: 0; color: var(--ink-80); font-size: clamp(18px, 2.3vw, 23px); line-height: 1.5; }
.legal-content { padding: 72px 22px 110px; }
.legal-content h2 { margin: 54px 0 14px; font: 600 clamp(28px, 4vw, 38px)/1.1 var(--font-display); letter-spacing: -.025em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 30px 0 10px; font-size: 20px; }
.legal-content p, .legal-content li { color: var(--ink-80); font-size: 17px; line-height: 1.72; }
.legal-content ul { padding-left: 22px; }
.legal-content a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--ink-48); font-size: 13px; }
.legal-table-wrap { overflow-x: auto; margin: 20px 0 30px; border: 1px solid var(--hairline); border-radius: var(--r-md); }
.legal-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.legal-table th, .legal-table td { padding: 15px 16px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; font-size: 14px; line-height: 1.5; }

/* === Mobile portrait hero sizing ===
   Keep marketing heroes below the fold edge and avoid stacking the secondary
   image card beneath copy when the full-bleed hero image is already present. */
@media (max-width: 1024px) and (orientation: portrait) {
  .hero,
  [data-hero],
  .blog-hero,
  .up-hero {
    box-sizing: border-box;
    height: 65vh !important;
    height: 65svh !important;
    min-height: 65vh !important;
    min-height: 65svh !important;
    max-height: 65vh !important;
    max-height: 65svh !important;
    overflow: hidden;
  }

  [data-hero]:not(.hero) {
    padding: 72px 0 24px !important;
  }

  [data-hero] .hero-content {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  [data-hero] .photo-col {
    display: none !important;
  }

  [data-hero] h1,
  .blog-hero h1,
  .up-hero h1 {
    font-size: clamp(29px, 8vw, 40px) !important;
    margin-bottom: 14px !important;
  }

  [data-hero] .eyebrow,
  .hero .hero-eyebrow {
    margin-bottom: 10px !important;
  }

  [data-hero] p,
  [data-hero] p.lead {
    font-size: clamp(15px, 4vw, 18px) !important;
    line-height: 1.35 !important;
    margin-bottom: 14px !important;
  }

  [data-hero] .stat-strip {
    display: none !important;
  }

  .blog-hero,
  .up-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 22px 24px !important;
  }
}
.legal-table th { background: var(--parchment); color: var(--ink); }
.legal-table td { color: var(--ink-80); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-note { margin: 30px 0; padding: 20px 22px; border-left: 4px solid var(--action); border-radius: 0 var(--r-md) var(--r-md) 0; background: #eef6ff; }
.legal-note p { margin: 0; }
.legal-settings { margin: 28px 0; }
