/* ===========================================================
 * Xpress Diesel Repair — global styles
 * Industrial dark theme + 60fps-style motion
 * =========================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0a0c;
  --bg-2: #111116;
  --bg-3: #16161c;
  --line: #23232c;
  --line-soft: rgba(255,255,255,.06);
  --text: #ececec;
  --muted: #9a9aa3;
  --accent: #ff6a00;
  --accent-2: #ff8a3d;
  --danger: #ff4444;
  --good: #16c784;
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg); color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
section { padding: 88px 0; border-top: 1px solid var(--line); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
::selection { background: var(--accent); color: #111; }

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: 'Oswald', 'Bebas Neue', Impact, sans-serif; letter-spacing: 0.5px; line-height: 1.05; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; text-transform: uppercase; }
p  { color: var(--muted); line-height: 1.65; }
.lead { color: #c8c8cf; font-size: 1.1rem; max-width: 720px; }

/* ===========================================================
 * Logo / Brand
 * =========================================================== */
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Oswald', sans-serif; font-size: 1.25rem; letter-spacing: 1px;
  text-transform: uppercase; color: #fff;
}
/* Bitmap brand logo */
.logo-img {
  height: 56px;
  width: auto;
  display: block;
  transition: transform .25s var(--ease-spring), filter .25s;
}
.brand:hover .logo-img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 18px rgba(255,106,0,.45));
}
footer.site .logo-img { height: 70px; }

/* Brand wordmark next to the logo */
.brand-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
}
.brand-name span { color: var(--accent); }

@media (max-width: 980px) {
  .brand-name { font-size: 1rem; }
}
@media (max-width: 720px) {
  .logo-img { height: 46px; }
  .brand-name { font-size: .95rem; letter-spacing: 1px; }
}
@media (max-width: 420px) {
  /* Tight phones — hide the wordmark, the logo image already includes the name */
  header.site .brand-name { display: none; }
}

/* Big logo for the hero (mark + wordmark stacked) */
.logo-hero {
  display: grid; place-items: center; gap: 18px;
  padding: 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,106,0,.18), transparent 60%),
    linear-gradient(180deg, #11111a, #0a0a0c);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.logo-hero::before {
  content: '';
  position: absolute; inset: -2px;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,106,0,.45) 80%, transparent 90% 100%);
  filter: blur(30px); opacity: .6;
  animation: spin 8s linear infinite;
  z-index: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.logo-hero > * { position: relative; z-index: 1; }
.logo-hero .logo-mark { width: 110px; height: 150px; }
.logo-hero .wordmark {
  font-family: 'Oswald', sans-serif; font-weight: 700; text-align: center; line-height: .9;
}
.logo-hero .wordmark .l1 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: #fff; letter-spacing: 2px; }
.logo-hero .wordmark .l2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--accent); letter-spacing: 3px; margin-top: 4px; }

/* ===========================================================
 * Truck assembly card — hosts the user's GIF.
 * The GIF is set via data-src and only swapped to src once the
 * card is in the viewport, so the animation restarts every time
 * the user scrolls back to the hero.
 * =========================================================== */
.truck-build {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1700 / 950;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(255,106,0,.10), transparent 60%),
    linear-gradient(180deg, #f6f6f8, #ececef);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.truck-build .truck-video,
.truck-build .truck-gif {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
  user-select: none; -webkit-user-drag: none;
  background: transparent;
}
/* Subtle scroll-progress bar at the bottom of the card */
.truck-build .progress {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  height: 3px; background: rgba(0,0,0,.08); border-radius: 999px; overflow: hidden;
  pointer-events: none;
}
.truck-build .progress::after {
  content: ''; display: block; height: 100%;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, var(--accent), #ff3a00);
  transition: width .04s linear;
}

/* Missing-source fallback */
.truck-build[data-missing="true"] .truck-video,
.truck-build[data-missing="true"] .truck-gif { display: none; }
.truck-build[data-missing="true"] {
  display: grid; place-items: center;
  border-style: dashed;
  color: #444;
  background: #f4f4f6;
}
.truck-build[data-missing="true"]::before {
  content: 'Drop truck-assembly.mp4 (or .gif) into /frontend/public/images/';
  padding: 24px; text-align: center; font-weight: 600;
}

@media (max-width: 720px) {
  .truck-build { border-radius: 18px; aspect-ratio: 1700 / 1100; }
}

/* Hero right-column container that stacks the logo card + the inline truck loop */
.hero-right { display: flex; flex-direction: column; gap: 18px; }
.hero-right .logo-hero { padding: 22px; }
.hero-right .logo-hero .logo-mark { width: 78px; height: 110px; }
.hero-right .logo-hero .wordmark .l1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.hero-right .logo-hero .wordmark .l2 { font-size: clamp(1.1rem, 2.4vw, 1.6rem); }

/* Inline auto-playing truck assembly card */
.truck-inline {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1700 / 950;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(255,106,0,.10), transparent 60%),
    linear-gradient(180deg, #f6f6f8, #ececef);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.truck-inline img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
  user-select: none; -webkit-user-drag: none;
  will-change: opacity, transform, filter;
}
.truck-inline .badge {
  position: absolute; left: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,10,12,.85); color: #fff;
  padding: 6px 12px; border-radius: 999px;
  font-size: .68rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  border: 1px solid rgba(255,255,255,.08);
  z-index: 2;
}
.truck-inline .badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.4); opacity: .65; }
}

/* Cross-fade loop — the two images alternate, with subtle blur+scale
   so the parts feel like they're flying together / apart */
@keyframes truck-out {
  0%, 30%  { opacity: 1; transform: scale(1);     filter: blur(0); }
  46%, 86% { opacity: 0; transform: scale(1.04);  filter: blur(3px); }
  100%     { opacity: 1; transform: scale(1);     filter: blur(0); }
}
@keyframes truck-in {
  0%, 30%  { opacity: 0; transform: scale(.94); }
  46%, 86% { opacity: 1; transform: scale(1); }
  100%     { opacity: 0; transform: scale(.94); }
}
.truck-inline .exploded  { animation: truck-out 9s ease-in-out infinite; }
.truck-inline .assembled { animation: truck-in  9s ease-in-out infinite; }

/* If either source is missing, hide the cards and show a hint */
.truck-inline[data-missing="true"] img { display: none; }
.truck-inline[data-missing="true"] {
  display: grid; place-items: center;
  aspect-ratio: 1700 / 600;
  border-style: dashed;
  color: #444;
}
.truck-inline[data-missing="true"]::before {
  content: 'Drop truck-exploded.jpg + truck-assembled.jpg into /frontend/public/images/';
  padding: 24px; text-align: center; font-weight: 600;
}

@media (max-width: 720px) {
  .truck-inline { aspect-ratio: 1700 / 1100; border-radius: 18px; }
}

/* ===== Header ===== */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,12,.78);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  transition: background .3s var(--ease), border-color .3s;
}
header.site.scrolled {
  background: rgba(10,10,12,.95);
  border-bottom-color: var(--accent);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
nav ul { list-style: none; display: flex; gap: 28px; align-items: center; }
nav ul a {
  font-weight: 500; color: #d6d6dd; transition: color .2s, transform .2s var(--ease);
  position: relative; padding: 6px 0;
}
nav ul a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
nav ul a:not(.btn):hover::after { width: 100%; }
nav ul a:hover { color: var(--accent); }
.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--line); color: var(--text);
  padding: 8px 10px; border-radius: 10px;
}

/* ===== Buttons ===== */
.btn {
  --pad-y: 14px; --pad-x: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x); border-radius: 999px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; font-size: .9rem;
  border: 1px solid transparent;
  transition: transform .15s var(--ease-spring), background .2s, border-color .2s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--accent); color: #111; box-shadow: 0 6px 22px rgba(255,106,0,.28); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 10px 30px rgba(255,106,0,.45); transform: translateY(-2px); }
.btn-ghost   { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-danger  { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn:active  { transform: translateY(0) scale(.98); }
/* Shimmer on primary */
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(100%); }

/* ===== Alert bar ===== */
.alert-bar {
  background: linear-gradient(90deg, var(--accent), #ff3a00);
  color: #111; padding: 10px 0; text-align: center;
  font-weight: 700; font-size: .9rem; letter-spacing: .5px; text-transform: uppercase;
}
.alert-bar a { text-decoration: underline; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h));
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% 20%, rgba(255,106,0,.18), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(255,106,0,.10), transparent 60%),
    linear-gradient(180deg, #0a0a0c 0%, #0a0a0c 100%);
  border-top: none;
  padding: 100px 0 60px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--accent); }
.hero p { margin-top: 18px; }
.hero .ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; max-width: 560px; }
.hero-stats .stat {
  padding: 16px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, rgba(20,20,26,.6), rgba(10,10,12,.4));
  backdrop-filter: blur(8px);
}
.hero-stats .num { font-family: 'Oswald', sans-serif; color: var(--accent); font-size: 2rem; }
.hero-stats .label { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }

/* ===== Section heading ===== */
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 36px; }
.section-head .eyebrow { color: var(--accent); font-size: .8rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; }

/* ===== Cards (services) ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  background-color: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .3s var(--ease), border-color .25s, background .25s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(255,106,0,.10), transparent 60%);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,106,0,.6); box-shadow: 0 24px 60px rgba(255,106,0,.10); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(255,106,0,.12); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 18px;
  transition: background .25s, transform .25s var(--ease-spring);
}
.card:hover .icon { background: rgba(255,106,0,.22); transform: scale(1.06) rotate(-3deg); }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { color: #fff; margin-bottom: 8px; }
.card .price { font-size: .8rem; color: var(--accent); margin-top: 12px; font-weight: 700; }

/* ===== Why us ===== */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why .item {
  padding: 24px; border-left: 3px solid var(--accent);
  background: var(--bg-2); border-radius: 8px;
  transition: transform .25s var(--ease), background .25s;
}
.why .item:hover { transform: translateY(-4px); background: var(--bg-3); }
.why .item h4 { color: #fff; font-family: 'Oswald'; font-size: 1.1rem; text-transform: uppercase; margin-bottom: 6px; }

/* ===== Testimonials ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.t-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .3s var(--ease), border-color .25s;
}
.t-card:hover { transform: translateY(-4px); border-color: rgba(255,106,0,.4); }
.t-card .stars { color: var(--accent); margin-bottom: 12px; letter-spacing: 4px; }
.t-card blockquote { color: #d6d6dd; font-size: 1rem; line-height: 1.55; }
.t-card .who { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }
.t-card .who strong { color: #fff; }
.t-card .who span { color: var(--muted); font-size: .85rem; }

/* ===== Forms ===== */
form.app-form { display: grid; gap: 14px; max-width: 720px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  font: inherit; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #161620;
  box-shadow: 0 0 0 4px rgba(255,106,0,.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.checkbox { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }

/* Password fields with show/hide eye toggle */
.password-field { position: relative; }
.password-field input { padding-right: 50px; }
.password-toggle {
  position: absolute;
  right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 1px solid transparent;
  color: var(--muted);
  width: 38px; height: 38px;
  border-radius: 8px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.password-toggle:hover { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line); }
.password-toggle svg { width: 18px; height: 18px; }
.form-msg { padding: 12px 14px; border-radius: 8px; font-size: .9rem; display: none; }
.form-msg.ok  { background: rgba(22,199,132,.12); color: var(--good); border: 1px solid rgba(22,199,132,.3); display: block; }
.form-msg.err { background: rgba(255,68,68,.12); color: var(--danger); border: 1px solid rgba(255,68,68,.3); display: block; }

/* ===== CTA strip ===== */
.cta-strip {
  background: linear-gradient(135deg, #1a0e00, #0a0a0c);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 40px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.cta-strip h2 { color: #fff; }
.cta-strip p  { color: var(--muted); margin-top: 6px; }

/* ===== Contact / Booking ===== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.info-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row .ic {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
  background: rgba(255,106,0,.12); color: var(--accent);
  display: grid; place-items: center;
}
.info-row .ic svg { width: 18px; height: 18px; }
.info-row strong { color: #fff; display: block; margin-bottom: 2px; }
.info-row span   { color: var(--muted); font-size: .92rem; }
.hours-grid { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; font-size: .9rem; }
.hours-grid .day { color: var(--muted); }

/* ===== Footer ===== */
footer.site {
  background: #06060a; border-top: 1px solid var(--line);
  padding: 56px 0 24px; color: var(--muted);
}
footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
footer h4 { color: #fff; font-family: 'Oswald'; font-size: 1rem; text-transform: uppercase; margin-bottom: 14px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer ul a { transition: color .2s; }
footer ul a:hover { color: var(--accent); }
footer .copy { border-top: 1px solid var(--line); padding-top: 18px; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ===========================================================
 * Truck assembly — scroll-driven cross-fade
 * The user scrolls through 220vh of section; the inner stage
 * is sticky (100vh), and JS drives the exploded → assembled
 * transition by setting a single 0–1 progress var.
 * =========================================================== */
.truck-assemble {
  position: relative;
  height: 220vh;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(1100px 600px at 50% 0%, rgba(255,106,0,.10), transparent 60%),
    linear-gradient(180deg, #f6f6f8 0%, #ececef 100%);
  color: #111;
  overflow: clip;
  --t: 0; /* progress 0..1, set by JS */
}
.truck-assemble .stage {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center;
  padding: 80px 24px 60px;
}
.truck-assemble .copy {
  position: absolute; left: 0; right: 0; top: 60px;
  text-align: center; padding: 0 24px;
  pointer-events: none;
}
.truck-assemble .copy .eyebrow {
  display: inline-block;
  background: rgba(255,106,0,.12); color: var(--accent);
  padding: 6px 12px; border-radius: 999px;
  font-size: .72rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 700;
}
.truck-assemble .copy h2 {
  color: #111; margin-top: 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.truck-assemble .copy p {
  color: #444; max-width: 620px; margin: 10px auto 0;
}

.truck-assemble .frame {
  position: relative;
  width: min(1100px, 92vw);
  aspect-ratio: 1700 / 950;
  margin-top: 40px;
}
.truck-assemble img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  user-select: none; -webkit-user-drag: none;
  will-change: opacity, transform, filter;
}
/* Exploded fades out, slight zoom-in feel */
.truck-assemble .exploded {
  opacity: calc(1 - var(--t));
  transform: scale(calc(1 + var(--t) * 0.04));
  filter: blur(calc(var(--t) * 4px));
}
/* Assembled grows in from a light scale */
.truck-assemble .assembled {
  opacity: var(--t);
  transform: scale(calc(0.92 + var(--t) * 0.08));
}
/* Progress bar so the user knows scroll-stage is active */
.truck-assemble .progress {
  position: absolute; left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: min(420px, 70vw); height: 4px;
  background: rgba(0,0,0,.08); border-radius: 999px; overflow: hidden;
}
.truck-assemble .progress::after {
  content: ''; display: block; height: 100%;
  width: calc(var(--t) * 100%);
  background: linear-gradient(90deg, var(--accent), #ff3a00);
  transition: width .04s linear;
}
.truck-assemble .scroll-hint {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  color: #888; font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
  opacity: calc(1 - var(--t)*1.4);
}

/* Image-missing fallback */
.truck-assemble[data-missing="true"] .frame {
  display: grid; place-items: center;
  border: 2px dashed rgba(0,0,0,.18); border-radius: 18px;
  aspect-ratio: 1700 / 600;
}
.truck-assemble[data-missing="true"] .frame::before {
  content: 'Drop truck-exploded.jpg and truck-assembled.jpg into /frontend/public/images/';
  color: #555; padding: 24px; text-align: center; font-weight: 600;
}
.truck-assemble[data-missing="true"] img { display: none; }

@media (max-width: 720px) {
  .truck-assemble { height: 180vh; }
  .truck-assemble .copy h2 { font-size: 1.6rem; }
  .truck-assemble .frame { aspect-ratio: 1700 / 1100; }
}

/* ===========================================================
 * Split feature — alternating photo + text, used as a visual
 * break between content sections
 * =========================================================== */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.split-feature .text { padding: 12px 0; }
.split-feature .text .eyebrow {
  display: inline-block;
  color: var(--accent); font-size: .8rem;
  letter-spacing: 3px; text-transform: uppercase; font-weight: 700;
}
.split-feature .text h2 { margin: 12px 0 14px; color: #fff; }
.split-feature .text p { font-size: 1.05rem; }
.split-feature .text .points {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: grid; gap: 10px;
}
.split-feature .text .points li {
  display: flex; gap: 12px; align-items: flex-start;
  color: #cfcfd6; font-size: .95rem;
}
.split-feature .text .points li::before {
  content: ''; flex: 0 0 8px; width: 8px; height: 8px; margin-top: 8px;
  border-radius: 999px; background: var(--accent);
}

.split-feature .img-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  isolation: isolate;
}
.split-feature .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.split-feature .img-wrap:hover img { transform: scale(1.05); }

.split-feature.reverse { grid-template-columns: 1.1fr 1fr; }
.split-feature.reverse .img-wrap { order: -1; }

@media (max-width: 880px) {
  .split-feature, .split-feature.reverse { grid-template-columns: 1fr; gap: 28px; }
  .split-feature.reverse .img-wrap { order: 0; }
  .split-feature .img-wrap { aspect-ratio: 16 / 11; }
}

/* ===========================================================
 * Services page banner — wide hero photo with overlay caption
 * =========================================================== */
.services-banner {
  position: relative;
  display: block;
  margin-bottom: 36px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 21 / 9;
  cursor: zoom-in;
  isolation: isolate;
}
.services-banner img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.services-banner:hover img { transform: scale(1.04); }
.services-banner-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 32px 24px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  color: #fff;
}
.services-banner-overlay .eyebrow { color: var(--accent); font-size: .8rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; }
.services-banner-overlay h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 6px; color: #fff; }
@media (max-width: 720px) {
  .services-banner { aspect-ratio: 4 / 3; border-radius: 16px; }
  .services-banner-overlay { padding: 20px 22px 18px; }
}

/* ===========================================================
 * Photo gallery — bento-style grid + click-to-enlarge lightbox
 * =========================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.g-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .3s;
}
.g-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255,106,0,.5);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
  display: block;
}
.g-item:hover img { transform: scale(1.07); }
.g-item .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  pointer-events: none;
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.g-item:hover .caption { opacity: 1; transform: none; }

/* Bento layout — vary spans for visual rhythm.
   Order: shop-team (large) | diagnostic-kit | customer-desk
                                | mobile-service (large) | shop-handshake | service-writer */
.g-item:nth-child(1) { grid-column: span 4; grid-row: span 2; } /* shop-team */
.g-item:nth-child(2) { grid-column: span 2; }                   /* diagnostic-kit */
.g-item:nth-child(3) { grid-column: span 2; }                   /* customer-desk */
.g-item:nth-child(4) { grid-column: span 3; grid-row: span 2; } /* mobile-service */
.g-item:nth-child(5) { grid-column: span 3; }                   /* shop-handshake */
.g-item:nth-child(6) { grid-column: span 3; }                   /* service-writer */

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: zoom-out;
  animation: lb-fade .25s var(--ease);
}
.lightbox.open { display: flex; }
@keyframes lb-fade { from { opacity: 0 } to { opacity: 1 } }
.lightbox img {
  max-width: 95vw; max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  cursor: default;
  animation: lb-zoom .3s var(--ease-spring);
}
@keyframes lb-zoom { from { transform: scale(.92); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.lightbox .close {
  position: absolute; top: 24px; right: 24px;
  background: rgba(255,255,255,.08);
  color: #fff; border: 1px solid rgba(255,255,255,.18);
  font-size: 2rem; font-weight: 300; cursor: pointer;
  width: 48px; height: 48px;
  border-radius: 50%; line-height: 1;
  display: grid; place-items: center;
  transition: background .2s, transform .15s;
}
.lightbox .close:hover { background: rgba(255,255,255,.18); transform: scale(1.05); }

/* Mobile gallery */
@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g-item, .g-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .g-item:nth-child(1), .g-item:nth-child(4), .g-item:nth-child(9) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-item, .g-item:nth-child(n) { grid-column: span 1; }
  .g-item .caption { opacity: 1; transform: none; } /* always show on mobile */
}

/* ===========================================================
 * 60fps-style scroll reveal
 * =========================================================== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-stagger.in > *           { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .00s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }

/* ===========================================================
 * Mobile bottom-dock navigation (60fps.design vibe)
 * =========================================================== */
.bottom-dock {
  display: none;
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 60;
  padding: 10px 14px; gap: 4px;
  background: rgba(20,20,26,.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04) inset;
  animation: dock-rise .5s var(--ease-spring) both;
}
@keyframes dock-rise {
  from { transform: translate(-50%, 60px); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}
.bottom-dock a {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px;
  color: #cfcfd6; transition: background .2s, color .2s, transform .2s var(--ease-spring);
  position: relative;
}
.bottom-dock a svg { width: 22px; height: 22px; }
.bottom-dock a:hover, .bottom-dock a.active { color: var(--accent); background: rgba(255,106,0,.12); }
.bottom-dock a.cta {
  background: var(--accent); color: #111; width: 56px; height: 44px;
  font-weight: 700; font-size: .82rem; letter-spacing: 1px; text-transform: uppercase;
}
.bottom-dock a.cta:hover { transform: translateY(-2px) scale(1.04); }

/* ===========================================================
 * Mobile (60fps.design–inspired layout)
 * =========================================================== */
@media (max-width: 980px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards, .why, .testimonials-grid { grid-template-columns: 1fr 1fr; }
  footer .grid { grid-template-columns: 1fr 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  section { padding: 64px 0; }
  .hero { padding: 90px 0 140px; }
  body { padding-bottom: 100px; } /* room for the dock */

  /* Mobile nav: hide top desktop links, show menu-toggle and bottom dock */
  nav ul { display: none; }
  nav.open ul {
    display: flex;
    position: fixed; inset: var(--header-h) 12px auto 12px;
    background: rgba(20,20,26,.92);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--line);
    border-radius: 22px; padding: 18px;
    flex-direction: column; gap: 6px;
    animation: drop-in .35s var(--ease-spring);
  }
  @keyframes drop-in {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: none; }
  }
  nav.open ul li { width: 100%; }
  nav.open ul a { display: block; padding: 14px 16px; border-radius: 12px; }
  nav.open ul a:hover { background: rgba(255,106,0,.10); }

  .menu-toggle { display: inline-flex; }
  .bottom-dock { display: inline-flex; }

  .form-row { grid-template-columns: 1fr; }
  .cards, .why, .testimonials-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  footer .grid { grid-template-columns: 1fr; }

  /* Tighter, mobile-first cards */
  .card, .t-card, .info-card { border-radius: 18px; padding: 22px; }

  /* Larger touch targets */
  .btn { --pad-y: 16px; --pad-x: 24px; font-size: .92rem; }
  .field input, .field select, .field textarea { padding: 16px; border-radius: 14px; }
}
