/* ============================================
   DETAILME — Shared Styles
   Aesthetic: editorial automotive, dark, lime accent
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-elev: #131313;
  --bg-soft: #1a1a1a;
  --line: #262626;
  --line-soft: #1f1f1f;
  --ink: #f4f2ec;
  --ink-dim: #a8a59d;
  --ink-mute: #6b685f;
  --accent: #d4ff3a;
  --accent-deep: #a8d100;
  --warn: #ff6b3a;
  --cream: #f1ece1;
  --cream-soft: #e8e1d2;
  --cream-line: #d8cfb9;
  --ink-dark: #161410;
  --ink-dark-dim: #5c574c;
  --cobalt: #1e2c5e;
  --cobalt-soft: #2a3d7a;
  --terra: #d97757;

  --serif: "Newsreader", "Georgia", serif;
  --sans: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --pad: 24px;
  --pad-lg: 32px;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--accent); color: #000; }

/* ---------- Top bar (mobile-first) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  background: rgba(10,10,10,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.brand-dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 18px var(--accent);
}
.brand-mark {
  display: inline-block;
}
.brand-mark .it {
  color: var(--accent);
  font-weight: 700;
}
.topbar-cta {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
}
.topbar-cta:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* ---------- Bottom Nav (mobile) ---------- */
.botnav {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(20,20,20,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.botnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-radius: 999px;
  transition: all .2s ease;
}
.botnav a.active {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}
.botnav a:not(.active):hover { color: var(--ink); }
.botnav svg { width: 18px; height: 18px; stroke-width: 1.8; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 24px var(--pad) 40px;
}
.hero-split {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-direction: column;
}
.hero-split .hero-text { width: 100%; }
.hero-split .hero-img {
  width: 100%;
  aspect-ratio: 4/5;
}
@media (min-width: 720px) {
  .hero-split { flex-direction: row; }
  .hero-split .hero-text { flex: 1; min-width: 0; }
  .hero-split .hero-img { flex: 0 0 42%; max-width: 42%; width: auto; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.h-display {
  font-family: "Big Shoulders Display", var(--sans);
  font-weight: 800;
  font-size: clamp(56px, 16vw, 120px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  font-variation-settings: normal;
  margin-bottom: 24px;
}
.h-display .it {
  color: var(--accent);
  font-weight: 900;
  font-variation-settings: normal;
}
.h-sub {
  font-size: 16px;
  color: var(--ink-dim);
  max-width: 38ch;
  line-height: 1.55;
  margin-bottom: 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 56px var(--pad); border-top: 1px solid var(--line-soft); position: relative; }

/* Section themes */
section.cream {
  background: var(--cream);
  color: var(--ink-dark);
  border-top: none;
}
section.cream .sec-h,
section.cream .h-display,
section.cream .foot-h { color: var(--ink-dark); }
section.cream .sec-h .it,
section.cream .h-display .it { color: var(--terra); }
section.cream .sec-intro,
section.cream p { color: var(--ink-dark-dim); }
section.cream .sec-label,
section.cream .eyebrow { color: var(--ink-dark-dim); }
section.cream .sec-label span:last-child { color: var(--ink-dark); }
section.cream .eyebrow::before { background: var(--terra); }
section.cream .card,
section.cream .img-frame {
  background: var(--cream-soft);
  border-color: var(--cream-line);
}
section.cream .btn-ghost {
  border-color: var(--cream-line);
  color: var(--ink-dark);
}
section.cream .btn-ghost:hover { border-color: var(--ink-dark); background: rgba(0,0,0,0.04); }
section.cream .btn-primary { background: var(--ink-dark); color: var(--cream); }
section.cream .btn-primary:hover { background: var(--terra); color: var(--cream); }
section.cream .stat-row,
section.cream .stat { border-color: var(--cream-line); }
section.cream .stat-l { color: var(--ink-dark-dim); }
section.cream .stat-n .it { color: var(--terra); }
section.cream + section { border-top: none; }

section.cobalt {
  background: var(--cobalt);
  color: var(--cream);
  border-top: none;
  overflow: hidden;
}
section.cobalt .sec-h,
section.cobalt .h-display,
section.cobalt .foot-h { color: var(--cream); }
section.cobalt .sec-h .it,
section.cobalt .h-display .it { color: var(--accent); }
section.cobalt .sec-intro,
section.cobalt p { color: rgba(241,236,225,0.7); }
section.cobalt .sec-label { color: rgba(241,236,225,0.5); }
section.cobalt .sec-label span:last-child { color: rgba(241,236,225,0.85); }
section.cobalt .eyebrow { color: rgba(241,236,225,0.6); }
section.cobalt .eyebrow::before { background: var(--accent); }
section.cobalt + section { border-top: none; }
.sec-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.sec-label span:last-child { color: var(--ink-dim); }
.sec-h {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(32px, 8vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" 92;
  margin-bottom: 16px;
}
.sec-h .it {
  color: var(--accent);
  font-weight: 700;
  font-variation-settings: "wdth" 75;
}
.sec-intro {
  color: var(--ink-dim);
  margin-bottom: 32px;
  max-width: 52ch;
}

/* ---------- Image utilities ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.img-frame:hover img { transform: scale(1.04); }
.img-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

/* ---------- Footer ---------- */
.foot {
  padding: 48px var(--pad) 64px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-mute);
  font-size: 13px;
}
.foot-h {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(40px, 12vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-variation-settings: "wdth" 90;
  color: var(--ink);
  margin-bottom: 24px;
}
.foot-h .it { color: var(--accent); font-weight: 700; font-variation-settings: "wdth" 75; }
.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.foot-grid h5 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.foot-grid a, .foot-grid p { color: var(--ink); display: block; margin-bottom: 6px; font-size: 14px; }
.foot-grid a:hover { color: var(--accent); }
.foot-end {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Desktop adjustments ---------- */
@media (min-width: 720px) {
  :root { --pad: 56px; }
  .topbar { padding: 20px var(--pad); }
  .hero { padding: 64px var(--pad) 80px; }
  section { padding: 96px var(--pad); }
  .foot { padding: 96px var(--pad); }
  .foot-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .botnav {
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, calc(100% - 24px));
  }
}

@media (min-width: 1024px) {
  :root { --pad: 80px; }
  body { font-size: 17px; }
}

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.rise-d1 { animation-delay: .08s; }
.rise-d2 { animation-delay: .16s; }
.rise-d3 { animation-delay: .24s; }
.rise-d4 { animation-delay: .32s; }

/* Scroll-reveal — set initial state, JS adds .in to play */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.slide-l { transform: translateX(-28px); }
.reveal.slide-l.in { transform: translateX(0); }
.reveal.slide-r { transform: translateX(28px); }
.reveal.slide-r.in { transform: translateX(0); }
.reveal.zoom { transform: scale(.94); opacity: 0; }
.reveal.zoom.in { transform: scale(1); opacity: 1; }

/* Image reveal — scales up subtly on entry */
.img-reveal { overflow: hidden; }
.img-reveal img {
  transform: scale(1.12);
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.img-reveal.in img { transform: scale(1); }

/* Number count-up — opacity fades, JS animates number */
.count-up { display: inline-block; }

/* Floating chip animation */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-y { animation: float-y 4s ease-in-out infinite; }

/* Gentle pulse on accent dot */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 12px var(--accent); }
  50% { box-shadow: 0 0 24px var(--accent), 0 0 4px var(--accent); }
}
.brand-dot { animation: pulse-glow 2.4s ease-in-out infinite; }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal, .img-reveal img, .rise, .float-y, .brand-dot, .marquee-track {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 0;
  background: var(--bg);
}
.marquee.cream-marquee {
  background: var(--cream);
  border-color: var(--cream-line);
}
.marquee.cream-marquee .marquee-item { color: var(--ink-dark); }
.marquee.cream-marquee .marquee-item::after { color: var(--terra); }
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-variation-settings: "wdth" 85;
  color: var(--ink);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee-item::after {
  content: "●";
  color: var(--accent);
  font-size: 10px;
}

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { min-height: 120px; resize: vertical; }

/* ---------- Pricing card ---------- */
.price-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 24px;
  overflow: hidden;
}
.price-card.featured {
  background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
  border-color: var(--accent);
}
.price-card.featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(212,255,58,0.18), transparent 60%);
  pointer-events: none;
}
.price-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
}
.price-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 16px;
}
.price-amount {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.price-amount .currency {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 28px;
  vertical-align: top;
  margin-right: 4px;
  font-weight: 500;
}
.price-time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 24px;
}
.price-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.price-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}
.price-feats li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.price-feats li.muted { color: var(--ink-mute); }
.price-feats li.muted::before { background: var(--ink-mute); }

/* ---------- Process step ---------- */
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
}
.step:first-of-type { border-top: none; }
.step-num {
  font-family: var(--mono);
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  font-weight: 500;
}
.step-name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.step-detail {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Stat row ---------- */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin: 32px 0;
}
.stat {
  padding: 24px 16px;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: none; }
.stat-n {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 40px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-n .it { font-family: var(--mono); color: var(--accent); font-weight: 500; font-size: 0.6em; }
.stat-l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@media (min-width: 720px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}

/* Scroll progress bar */
.scroll-prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  pointer-events: none;
  transition: width 80ms linear;
  box-shadow: 0 0 8px rgba(212,255,58,0.5);
}

/* Before / After slider */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
  background: var(--bg-soft);
}
.ba-after {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 50% 0 0);
  pointer-events: none;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}
.ba-handle::before,
.ba-handle::after {
  content: "";
  flex: 1;
  width: 2px;
  background: rgba(255,255,255,0.85);
}
.ba-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  color: #000;
}
.ba-label {
  position: absolute;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
  z-index: 5;
}
.ba-label-b { left: 14px; }
.ba-label-a { right: 14px; }

/* Contact page */
.contact-card {
  display: block;
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease;
}
a.contact-card:hover { border-color: var(--accent); }
.contact-card-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.contact-card-value {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
  word-break: break-all;
}
.contact-card-note {
  font-size: 13px;
  color: var(--ink-dim);
}
.contact-card-arrow {
  position: absolute;
  top: 28px;
  right: 24px;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
}

/* Testimonial carousel */
.t-slider { position: relative; }
.t-slide { display: none; }
.t-slide.active { display: block; animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.t-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .3s ease;
}
.t-dot.active { background: var(--accent); width: 24px; }
