/* ============================================================
   REV Marketing Automotive — Marketing site layout & responsive rules
   Mobile-first. Cosmetics live inline in the JSX; structure,
   grids, breakpoints, nav and motion live here.
   ============================================================ */

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface-page); overflow-x: hidden; }

/* ---------- Layout container ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--carbon-900); color: var(--paper-100);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.site-header .container {
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand-lockup { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-lockup img { height: 34px; display: block; }
.brand-wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  letter-spacing: 0.02em; color: var(--paper-100); text-transform: uppercase; white-space: nowrap;
}

.nav-desktop { display: none; align-items: center; gap: 30px; }
.nav-desktop a {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--paper-100); text-decoration: none; transition: color .18s ease;
}
.nav-desktop a:hover { color: var(--red-200); }
.nav-desktop a.is-active { color: var(--red-200); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: transparent; border: none;
  color: var(--paper-100); cursor: pointer; padding: 0;
}
@media (min-width: 900px) {
  .site-header .container { height: 72px; }
  .nav-desktop { display: flex; }
  .hamburger { display: none; }
}

/* CTA button used in nav (outline-then-fills-red) */
.nav-cta {
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  color: var(--paper-100); background: transparent;
  border: 1.5px solid var(--red-500); border-radius: 999px;
  padding: 9px 18px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.nav-cta:hover { background: var(--red-500); border-color: var(--red-500); color: var(--paper-100); }

/* ---------- Mobile overlay ---------- */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 200; background: var(--carbon-900);
  display: flex; flex-direction: column; padding: 22px;
  transform: translateY(-100%); transition: transform .32s cubic-bezier(.2,.7,.3,1);
}
.mobile-overlay.is-open { transform: translateY(0); }
.mobile-overlay-top { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.mobile-links { display: flex; flex-direction: column; gap: 4px; margin-top: 32px; }
.mobile-links a {
  font-family: var(--font-display); font-weight: 700; font-size: 34px;
  letter-spacing: -0.02em; color: var(--paper-100); text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.10);
}
.mobile-links a:hover { color: var(--red-200); }
.mobile-overlay .nav-cta { margin-top: 28px; justify-content: center; font-size: 17px; padding: 15px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Generic responsive grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }

.work-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 560px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }

.brands-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (min-width: 768px) { .brands-wall { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Section heading ---------- */
.section-title {
  font-family: var(--font-display); font-weight: 700; color: var(--text-strong);
  text-align: center; letter-spacing: -0.03em; line-height: 1.05;
  font-size: clamp(30px, 6vw, 46px); margin: 0;
}
.section-eyebrow {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-500);
  text-align: center; margin: 0 0 14px;
}

/* ---------- Accordion (services) ---------- */
.accordion { border-top: 1px solid var(--paper-300); max-width: 880px; margin: 0 auto; }
.acc-item { border-bottom: 1px solid var(--paper-300); }
.acc-head {
  width: 100%; background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; text-align: left;
}
.acc-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-strong); font-size: clamp(20px, 3.5vw, 28px); line-height: 1.15;
}
.acc-toggle {
  flex: none; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 400; font-size: 30px; line-height: 1;
  color: var(--carbon-800); transition: color .2s ease, transform .25s ease;
}
.acc-item.is-open .acc-toggle { color: var(--red-500); }
.acc-item.is-open .acc-title { color: var(--red-600); }
.acc-body { overflow: hidden; max-height: 0; transition: max-height .4s cubic-bezier(.2,.7,.3,1); }
.acc-item.is-open .acc-body { max-height: 320px; }
.acc-body-inner {
  padding: 0 4px 30px; max-width: 680px;
  font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--text-body);
}
.acc-kicker {
  display: block; font-family: var(--font-body); font-size: 15px; font-weight: 600;
  font-style: italic; color: var(--red-600); margin: -10px 0 14px;
}

/* ---------- Testimonials carousel ---------- */
.tcar-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 22px 18px; margin: 0 -22px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tcar-track::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .tcar-track { padding: 6px 32px 18px; margin: 0 -32px; } }
.tcard {
  scroll-snap-align: start; flex: 0 0 86%;
  background: var(--paper-50); border: 1px solid var(--paper-300);
  border-radius: 12px; padding: 26px; box-shadow: 0 1px 2px rgba(12,12,15,0.04);
}
@media (min-width: 560px) { .tcard { flex-basis: 48%; } }
@media (min-width: 980px) { .tcard { flex-basis: 31%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--carbon-900); color: var(--paper-100); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr; gap: 56px; } }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  color: var(--paper-100); border: 1px solid rgba(255,255,255,0.18); transition: background .18s, border-color .18s, color .18s;
}
.social-row a:hover { background: var(--red-500); border-color: var(--red-500); color: var(--paper-100); }

/* ---------- Hero ---------- */
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  color: var(--carbon-900); background: var(--paper-100);
  border-radius: 999px; padding: 14px 26px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22); transition: transform .2s ease, background .2s ease;
}
.hero-pill:hover { background: var(--paper-50); color: var(--carbon-900); transform: translateY(-2px); }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-kenburns { animation: kenburns 18s ease-out forwards; }
@media (prefers-reduced-motion: reduce) { .hero-kenburns { animation: none; } }

/* ---------- Work tile hover ---------- */
.work-tile:hover .work-tile-img { transform: scale(1.06); }
.work-tile:hover .play-orb > span { transform: scale(1.1); }

/* ---------- Carousel arrows ---------- */
.car-btn {
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--paper-50); border: 1px solid var(--paper-300); color: var(--carbon-800);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.car-btn:hover { background: var(--red-500); border-color: var(--red-500); color: var(--paper-100); }

/* ---------- Embed placeholder (media kit / calendly) ---------- */
.embed-slot {
  border: 2px dashed var(--paper-400); border-radius: 14px; background: var(--paper-50);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--text-muted); padding: 40px 24px;
}

/* ============================================================
   REV site — hero video, Drive CTA, stats, pillars, marquee,
   case studies, revenue proof, Calendly
   ============================================================ */

/* ---------- Hero video ---------- */
.hero-video-wrap { position: absolute; inset: 0; z-index: 1; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-rise { opacity: 0; animation: heroRise .8s var(--ease-out, cubic-bezier(.2,.7,.3,1)) forwards; }
.hero-rise.d1 { animation-delay: .05s; }
.hero-rise.d2 { animation-delay: .18s; }
.hero-rise.d3 { animation-delay: .32s; }
.hero-rise.d4 { animation-delay: .46s; }
@media (prefers-reduced-motion: reduce) { .hero-rise { animation: none; opacity: 1; } }

/* ---------- Drive CTA (site-wide primary pill) ---------- */
.drive-block { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.btn-drive {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  color: #FFFFFF; background: var(--red-500); text-decoration: none;
  padding: 15px 30px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 14px 34px -10px rgba(var(--accent-rgb), 0.6);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-drive:hover { background: var(--red-600); transform: translateY(-1px); box-shadow: 0 18px 40px -10px rgba(var(--accent-rgb), 0.65); }
.btn-drive:active { background: var(--red-700); transform: translateY(1px); }
.btn-drive .btn-arrow { display: inline-flex; transition: transform .18s ease; }
.btn-drive:hover .btn-arrow { transform: translateX(3px); }
.btn-drive.is-lg { font-size: 19px; padding: 18px 38px; }
.btn-drive.is-sm { font-size: 14px; padding: 9px 18px; gap: 7px; }
.btn-drive.is-inverse { background: #FFFFFF; color: var(--red-600); box-shadow: 0 14px 34px -10px rgba(0,0,0,0.3); }
.btn-drive.is-inverse:hover { background: var(--paper-100); }
.drive-sub { font-family: var(--font-body); font-size: 13.5px; color: var(--text-subtle); margin: 0; }
.drive-block.on-red .drive-sub { color: rgba(255,255,255,0.85); }
.site-header .nav-cta { border: none; }

/* ---------- Stats band (dark) ---------- */
.stat-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.stat-card { text-align: center; padding: 22px 18px; border-radius: var(--radius-md); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); }
.stat-num {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(34px, 4.6vw, 46px); color: var(--red-500); line-height: 1;
}
.stat-label { font-family: var(--font-body); font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,0.7); margin-top: 10px; }

/* ---------- Pillars ---------- */
.pillar-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 44px; }
@media (min-width: 860px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar-tile {
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.pillar-tile.is-hot { border: 2px solid var(--red-500); box-shadow: 0 18px 44px -18px rgba(var(--accent-rgb), 0.35); }
.pillar-kicker {
  font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red-500); margin-bottom: 12px;
}
.pillar-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 23px; color: var(--text-strong); margin: 0 0 10px; }
.pillar-body { font-family: var(--font-body); font-size: 15.5px; line-height: 1.62; color: var(--text-body); margin: 0 0 18px; }
.pillar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pillar-list li { font-family: var(--font-body); font-size: 14.5px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.pillar-list .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--red-500); flex: none; }

/* ---------- Logo marquee ---------- */
.logo-marquee { overflow: hidden; position: relative; }
.logo-marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 36s linear infinite; padding: 4px 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-marquee-track { animation: none; flex-wrap: wrap; width: auto; } }
.logo-chip { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo-orb {
  width: 44px; height: 44px; border-radius: 999px; overflow: hidden; flex: none;
  background: #fff; border: 1px solid var(--border-hairline); display: inline-block;
}
.logo-orb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: var(--text-muted); white-space: nowrap; }

/* ---------- Testimonial carousel arrows ---------- */
.tcar { position: relative; }
.tcar-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; box-shadow: var(--shadow-md); }
.tcar-arrow.prev { left: -8px; }
.tcar-arrow.next { right: -8px; }
.tcard.is-active { border-color: var(--red-200); box-shadow: 0 10px 30px -14px rgba(var(--accent-rgb), 0.25); }

/* ---------- Case studies ---------- */
.cs-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 760px) { .cs-grid { grid-template-columns: 1fr 1fr; } }
.cs-card {
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.cs-media { position: relative; aspect-ratio: 16 / 10; background: var(--carbon-900); overflow: hidden; }
.cs-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-media.is-portrait img { object-position: center 30%; }
.cs-media.is-screenshot { background: #FFFFFF; border-bottom: 1px solid var(--border-hairline); }
.cs-media.is-screenshot img { object-fit: contain; padding: 10px; box-sizing: border-box; }
.cs-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #FFFFFF; background: var(--red-500); border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.cs-body { padding: 22px 24px 26px; display: flex; flex-direction: column; }
.cs-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cs-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; color: var(--text-strong); line-height: 1.2; }
.cs-brand-sector { font-family: var(--font-body); font-size: 13px; color: var(--text-subtle); margin-top: 2px; }
.cs-stat {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(20px, 2.6vw, 24px); color: var(--red-600); margin: 0 0 10px; line-height: 1.15;
}
.cs-quote { font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.55; color: var(--text-strong); margin: 0 0 10px; }
.cs-text { font-family: var(--font-body); font-size: 14.5px; line-height: 1.62; color: var(--text-muted); margin: 0; }

/* Flagship case (Auto Aesthetics) */
.cs-flagship {
  display: grid; grid-template-columns: 1fr; border-radius: var(--radius-md); overflow: hidden;
  background: var(--carbon-900); color: #FFFFFF; box-shadow: var(--shadow-lg);
}
@media (min-width: 860px) { .cs-flagship { grid-template-columns: 0.9fr 1.1fr; } }
.cs-flagship-media { position: relative; min-height: 320px; background: var(--carbon-800); }
.cs-flagship-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.cs-flagship-body { padding: 34px 32px 36px; display: flex; flex-direction: column; }
@media (min-width: 860px) { .cs-flagship-body { padding: 44px 44px 46px; } }
.cs-flagship .cs-brand-name { color: #FFFFFF; }
.cs-flagship .cs-brand-sector { color: rgba(255,255,255,0.6); }
.cs-flagship .cs-quote { color: #FFFFFF; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 6px 0 14px; }
.cs-flagship .cs-text { color: rgba(255,255,255,0.75); font-size: 15.5px; }
.cs-flagship-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); }
.cs-mini-num { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 26px; color: var(--red-500); line-height: 1; }
.cs-mini-label { font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 6px; }

/* ---------- Revenue proof (REV story) ---------- */
.rev-compare { display: flex; flex-direction: column; gap: 10px; }
.rev-shot { margin: 0; background: #FFFFFF; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 18px 44px -18px rgba(0,0,0,0.55); }
.rev-shot img { width: 100%; display: block; }
.rev-shot figcaption {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: 17px;
  color: var(--carbon-900); padding: 12px 16px; border-top: 1px solid var(--border-hairline);
}
.rev-shot.is-after figcaption { color: var(--red-600); }
.rev-shot-date { font-family: var(--font-body); font-weight: 600; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subtle); white-space: nowrap; }
.rev-compare-arrow {
  align-self: center; width: 40px; height: 40px; border-radius: 999px; background: var(--red-500);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(var(--accent-rgb), 0.6);
}

/* ---------- Red band racing stripes ---------- */
.red-band::before {
  content: ''; position: absolute; top: -60px; bottom: -60px; right: 8%; width: 46px;
  background: rgba(255,255,255,0.12); transform: rotate(14deg); pointer-events: none;
}
.red-band::after {
  content: ''; position: absolute; top: -60px; bottom: -60px; right: calc(8% + 70px); width: 16px;
  background: rgba(255,255,255,0.08); transform: rotate(14deg); pointer-events: none;
}

/* ---------- Details card (contact) ---------- */
.details-card {
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm);
}

/* ---------- Calendly inline embed ---------- */
.calendly-frame {
  width: 100%; min-height: 900px; border: none; border-radius: var(--radius-md);
  background: var(--surface-card); box-shadow: var(--shadow-sm); border: 1px solid var(--border-hairline);
}
@media (min-width: 768px) { .calendly-frame { min-height: 680px; } }
