/* =====================================================================
   JC AutoWorks — auto body shop landing page
   Theme: cool steel graphite + vermilion (sampled from the logo).
   Type: Saira Condensed (display) / Barlow (body).
   ===================================================================== */

:root {
  /* --- cool steel graphite surfaces (hue ~266, echoes the brushed-metal
         wordmark in the logo), low chroma --- */
  --ink:        oklch(0.185 0.008 266);
  --ink-2:      oklch(0.215 0.010 266);
  --surface:    oklch(0.245 0.012 266);
  --surface-2:  oklch(0.285 0.014 266);
  --line:       oklch(0.345 0.014 266);
  --line-soft:  oklch(0.300 0.012 266);

  /* --- text (cool off-whites, chroma drops as it lightens) --- */
  --text:       oklch(0.965 0.004 266);
  --muted:      oklch(0.775 0.008 268);
  --faint:      oklch(0.615 0.010 268);

  /* --- vermilion accent sampled from the logo oval (#e45328) --- */
  --brand:      oklch(0.635 0.187 37);
  --brand-2:    oklch(0.560 0.178 36);
  --brand-ink:  oklch(0.300 0.058 37);
  --on-brand:   oklch(0.985 0.004 90);

  --star:       oklch(0.635 0.187 37);
  --star-off:   oklch(0.380 0.014 266);

  /* --- spacing (4pt scale, semantic) --- */
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  --shell: 1180px;
  --radius: 14px;
  --radius-sm: 9px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);       /* ease-out-quint-ish */
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: dark;
}

/* --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--muted);
  font-family: "Barlow", system-ui, sans-serif;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: "Saira Condensed", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.03;
  letter-spacing: -0.003em;
  margin: 0;
  font-weight: 700;
}

::selection { background: var(--brand); color: var(--on-brand); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--ink); padding: 10px 16px;
  font-weight: 700; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.shell {
  width: min(100% - 2 * var(--space-lg), var(--shell));
  margin-inline: auto;
}

/* ===================== eyebrows + section heads ====================== */
.eyebrow {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 0.775rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 var(--space-md);
  display: inline-block;
}

.head { max-width: 46rem; margin-bottom: var(--space-2xl); }
.head__h {
  font-size: clamp(1.85rem, 1.3rem + 2.6vw, 3.15rem);
  font-weight: 800;
}
.head__lede {
  margin: var(--space-lg) 0 0;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  color: var(--muted);
  max-width: 42rem;
}
.head--split {
  display: flex; flex-wrap: wrap; gap: var(--space-lg);
  align-items: flex-end; justify-content: space-between;
  max-width: none;
}

.section {
  padding-block: clamp(var(--space-3xl), 5vw + 2rem, calc(var(--space-4xl) + var(--space-md)));
}

/* ============================= buttons =============================== */
.btn {
  --pad-y: 12px; --pad-x: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  padding: var(--pad-y) var(--pad-x);
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn--lg { --pad-y: 15px; --pad-x: 26px; font-size: 1rem; }

.btn--solid {
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}
.btn--solid:hover { background: var(--brand-2); transform: translateY(-2px); }
.btn--solid:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ============================= stars ================================ */
.stars {
  --size: 16px;
  display: inline-block;
  width: calc(var(--size) * 5 + 8px);
  height: var(--size);
  background:
    linear-gradient(90deg, var(--star) var(--fill), var(--star-off) var(--fill));
  -webkit-mask: repeat-x left center / calc(var(--size) + 2px) var(--size)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M8 .9l2.16 4.38 4.84.7-3.5 3.41.83 4.82L8 11.94 3.67 14.2l.83-4.82L1 5.98l4.84-.7z'/%3E%3C/svg%3E");
          mask: repeat-x left center / calc(var(--size) + 2px) var(--size)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M8 .9l2.16 4.38 4.84.7-3.5 3.41.83 4.82L8 11.94 3.67 14.2l.83-4.82L1 5.98l4.84-.7z'/%3E%3C/svg%3E");
}
.stars--lg { --size: 22px; }

/* ============================== nav ================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--ink) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--line-soft);
  background: color-mix(in oklab, var(--ink) 92%, transparent);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-lg);
  height: 74px;
}

/* wordmark (actual logo, transparent PNG) */
.brand { display: inline-flex; align-items: center; }
.brand__logo {
  height: 38px; width: auto;
  display: block;
}

.nav__links { display: flex; gap: clamp(14px, 1.6vw, 28px); }
.nav__links a {
  font-weight: 500; font-size: 0.94rem; color: var(--muted);
  position: relative; padding-block: 4px;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: var(--space-md); }
.nav__phone {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; color: var(--text); font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.nav__phone svg { color: var(--brand); }
.nav__phone:hover { color: var(--brand); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 9px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span {
  width: 20px; height: 2px; background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--line-soft);
  background: var(--ink-2);
}
.nav__mobile a {
  padding: 13px 6px; font-weight: 600; font-size: 1.05rem;
  color: var(--text); border-bottom: 1px solid var(--line-soft);
}
.nav__mobile a:last-child { border: 0; margin-top: var(--space-sm); }

/* ============================== hero ================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.hero::before {
  /* fine film grain — tactile texture, no gradient */
  content: "";
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.07;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(340px, 40%) 1fr;
  align-items: center;
  gap: clamp(var(--space-lg), 3vw, var(--space-3xl));
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: clamp(var(--space-lg), 5vw, 84px);
  padding-block: clamp(var(--space-2xl), 5vw, 100px);
  min-height: clamp(560px, 80vh, 840px);
}
.hero__h {
  font-size: clamp(2.5rem, 1.3rem + 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.008em;
  line-height: 0.98;
  margin-block: 0 var(--space-lg);
  text-wrap: balance;
}
.hero__lede {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.28rem);
  color: var(--muted);
  max-width: 34rem;
  margin: 0;
}

.hero__proof {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-lg);
  margin-block: var(--space-xl);
  padding-block: var(--space-lg);
  border-block: 1px solid var(--line-soft);
}
.proof__rating { display: inline-flex; align-items: center; gap: 10px; }
.proof__num { font-weight: 500; color: var(--muted); font-size: 0.95rem; }
.proof__num strong { color: var(--text); font-size: 1.15rem; font-weight: 700; }
.proof__src { color: var(--faint); font-size: 0.9rem; }
.proof__rating:hover .proof__src { color: var(--muted); }
.proof__marks { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 0; padding: 0; }
.proof__marks li {
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 60%, transparent);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* rotating "wheel" of recent work — positions driven by main.js.
   Cards travel along an arc and fade into the hero background at both
   edges (per-card opacity from the script, plus this soft edge mask). */
.hero__media { position: relative; isolation: isolate; }
.fan {
  position: relative;
  width: 100%;
  height: var(--fan-h, 460px);
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%) no-repeat center / 100% 100%;
          mask: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%) no-repeat center / 100% 100%;
}
.fan__card {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--card-w, 220px);
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow:
    inset 0 0 0 1px oklch(0.99 0 0 / 0.12),
    inset 0 2px 0 oklch(0.99 0 0 / 0.06),
    0 26px 44px -22px oklch(0 0 0 / 0.78);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.fan__card img { width: 100%; height: 100%; object-fit: cover; }

/* static fallback if the script does not run: a simple five-card fan */
.fan__card:nth-child(1) { transform: translate(-50%,-50%) translate(-92%,10%)  rotate(-18deg); z-index: 1; }
.fan__card:nth-child(2) { transform: translate(-50%,-50%) translate(-48%,1%)   rotate(-9deg);  z-index: 2; }
.fan__card:nth-child(3) { transform: translate(-50%,-50%) translate(0,-3%)     rotate(0deg);   z-index: 3; }
.fan__card:nth-child(4) { transform: translate(-50%,-50%) translate(48%,1%)    rotate(9deg);   z-index: 2; }
.fan__card:nth-child(5) { transform: translate(-50%,-50%) translate(92%,10%)   rotate(18deg);  z-index: 1; }
.fan__card:nth-child(n+6) { opacity: 0; }

/* ============================ trust strip =========================== */
.trust {
  border-block: 1px solid var(--line-soft);
  background: var(--ink-2);
}
.trust__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  padding-block: var(--space-xl);
}
.trust__item {
  display: flex; flex-direction: column; gap: 3px;
  padding-inline: var(--space-md);
  border-left: 1px solid var(--line-soft);
}
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__k {
  font-family: "Saira Condensed", sans-serif; font-weight: 800;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
  color: var(--text); letter-spacing: -0.02em; line-height: 1;
}
.trust__v { font-size: 0.85rem; color: var(--faint); line-height: 1.3; }

/* ============================= services ============================= */
.svc__list { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(var(--space-xl), 4vw, var(--space-4xl));
}
.svc {
  display: flex; gap: var(--space-lg);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--line-soft);
  align-items: baseline;
}
/* first row on each column has the top rule; keep rhythm consistent */
.svc__no {
  font-family: "Saira Condensed", sans-serif; font-weight: 800;
  font-size: 1.05rem; color: var(--brand);
  letter-spacing: 0.02em;
  min-width: 2ch;
  padding-top: 2px;
}
.svc__t { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.svc__d { margin: 0; color: var(--muted); max-width: 34rem; }
.svc__body { transition: transform 0.3s var(--ease); }
.svc:hover .svc__t { color: var(--brand); }
.svc__t { transition: color 0.25s var(--ease); }

/* ========================== before / after ========================= */
.work { background: var(--ink-2); }
.ba { max-width: 1000px; margin-inline: auto; }
.ba__stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  box-shadow: 0 40px 70px -45px oklch(0 0 0 / 0.9);
  touch-action: pan-y;
  user-select: none;
}
@media (min-width: 720px) { .ba__stage { aspect-ratio: 16 / 10; } }

.ba__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba__divider {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos);
  width: 3px; margin-left: -1.5px;
  background: var(--brand);
  z-index: 3;
  pointer-events: none;
}
.ba__knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 50%;
  box-shadow: 0 6px 18px oklch(0 0 0 / 0.5);
}
.ba__tag {
  position: absolute; top: 14px; z-index: 3;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 74%, transparent);
  backdrop-filter: blur(6px);
  color: var(--text);
  border: 1px solid oklch(0.99 0 0 / 0.12);
}
.ba__tag--b { left: 14px; }
.ba__tag--a { right: 14px; }

.ba__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
  z-index: 4;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100%; cursor: ew-resize; }
.ba__range::-moz-range-thumb { width: 60px; height: 300px; border: 0; background: transparent; cursor: ew-resize; }

.ba__caption {
  margin: var(--space-lg) 0 var(--space-xl);
  color: var(--muted);
  font-size: 1.02rem;
  text-align: center;
  min-height: 3em;
}

.ba__tabs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}
.ba__tab {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.ba__tab:hover { border-color: var(--line); color: var(--text); transform: translateY(-2px); }
.ba__tab.is-active {
  border-color: var(--brand);
  color: var(--text);
  background: var(--brand-ink);
}
.ba__tab-no {
  font-family: "Saira Condensed", sans-serif; font-weight: 800;
  font-size: 0.85rem; color: var(--brand);
}

/* ============================= gallery ============================== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: var(--space-md);
}
.tile {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.tile:hover img { transform: scale(1.055); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 13px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text);
  background: linear-gradient(to top, oklch(0.12 0.01 266 / 0.9), transparent);
}
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }

/* ============================= reviews ============================== */
.reviews { background: var(--ink-2); }
.rev__score {
  display: inline-flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.rev__num {
  font-family: "Saira Condensed", sans-serif; font-weight: 800;
  font-size: 2.4rem; color: var(--text); line-height: 1; letter-spacing: -0.03em;
}
.rev__meta { color: var(--faint); font-size: 0.88rem; }

.rev__feature {
  margin: var(--space-2xl) 0;
  padding: clamp(var(--space-xl), 3vw, var(--space-3xl));
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  position: relative;
}
.rev__feature::before {
  content: "\201C";
  position: absolute; top: -0.35em; left: 0.3em;
  font-family: "Saira Condensed", sans-serif;
  font-size: 7rem; line-height: 1; color: var(--brand);
  opacity: 0.18;
}
.rev__feature blockquote {
  margin: 0; position: relative;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.65rem);
  line-height: 1.44;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 44rem;
}
.rev__feature figcaption {
  margin-top: var(--space-lg);
  display: flex; align-items: baseline; gap: var(--space-md); flex-wrap: wrap;
}
.rev__name { font-weight: 700; color: var(--text); }
.rev__ctx { color: var(--faint); font-size: 0.88rem; }

.rev__masonry { columns: 3; column-gap: var(--space-md); }
.quote {
  break-inside: avoid;
  margin: 0 0 var(--space-md);
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.quote .stars { margin-bottom: var(--space-sm); }
.quote blockquote {
  margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.55;
}
.quote figcaption { margin-top: var(--space-md); display: flex; flex-direction: column; gap: 2px; }

/* ============================== visit =============================== */
.visit__grid {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(var(--space-xl), 4vw, var(--space-3xl));
  align-items: center;
}
.visit__facts {
  margin: var(--space-2xl) 0 var(--space-xl);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-lg) var(--space-xl);
}
.fact dt {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 6px;
}
.fact dd { margin: 0; color: var(--text); font-weight: 500; line-height: 1.5; }
.fact dd a:hover { color: var(--brand); }
.visit__cta { display: flex; flex-wrap: wrap; gap: var(--space-md); }

.visit__media { display: grid; gap: var(--space-md); }
.visit__shot { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.visit__shot img { width: 100%; height: 100%; object-fit: cover; }
.visit__shot--main img { aspect-ratio: 21 / 9; }
.visit__shot:not(.visit__shot--main) img { aspect-ratio: 16 / 8; }
.visit__shot figcaption {
  position: absolute; left: 12px; bottom: 11px;
  font-size: 0.76rem; font-weight: 600; color: var(--text);
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 76%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid oklch(0.99 0 0 / 0.1);
}

/* ============================== footer ============================== */
.foot {
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
  padding-top: var(--space-3xl);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}
.brand--foot .brand__logo { height: 34px; }
.foot__blurb { margin: var(--space-md) 0 0; max-width: 30rem; color: var(--muted); font-size: 0.95rem; }
.foot__col h3 {
  font-family: "Barlow", sans-serif;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; margin-bottom: var(--space-md);
}
.foot__col a, .foot__col p { display: block; color: var(--muted); font-size: 0.95rem; margin: 0 0 9px; }
.foot__col a { transition: color 0.2s var(--ease); }
.foot__col a:hover { color: var(--brand); }
.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--line-soft);
  color: var(--faint); font-size: 0.85rem;
}
.foot__base p { margin: 0; }

/* ============================ reveal anim =========================== */
/* Progressive enhancement: content is visible by default. The hidden
   start-state only applies once JS adds .reveal-on to <html>, so a
   no-JS or stalled-observer visitor always sees the full page. */
.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal-on .reveal:not(.in) { opacity: 0; transform: translateY(22px); }

/* hero staggers its own children on load */
.hero .reveal { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal-on .reveal:not(.in) { opacity: 1; transform: none; }
  .reveal { transition: none; }
  .tile img, .btn, .nav__links a::after { transition: none; }
}

/* ============================ responsive ============================ */
@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__phone span { display: none; }
  .nav__phone { padding: 9px; border: 1px solid var(--line); border-radius: 9px; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile { display: none; }
  .nav__mobile.is-open { display: flex; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    min-height: 0;
    padding-block: clamp(var(--space-xl), 7vw, var(--space-3xl));
  }
  .hero__copy { order: 1; }
  .hero__media { order: 2; }

  .trust__row { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg) var(--space-md); }
  .trust__item:nth-child(4) { border-left: 0; padding-left: 0; }

  .svc__list { grid-template-columns: 1fr; }
  .rev__masonry { columns: 2; }
  .visit__grid { grid-template-columns: 1fr; }
  .visit__facts { max-width: 32rem; }
}

@media (max-width: 640px) {
  :root { --radius: 12px; }
  .nav__inner { height: 64px; }
  .brand__logo { height: 32px; }

  .hero__proof { gap: var(--space-md); }
  .hero__cta .btn { flex: 1 1 100%; }

  .trust__row { grid-template-columns: repeat(2, 1fr); }
  .trust__item { border-left: 0; padding-left: 0; }

  /* even, non-bento photo grid on phones */
  .grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .tile--wide { grid-column: auto; }
  .tile--tall { grid-row: auto; }

  .ba__tabs { grid-template-columns: 1fr 1fr; }
  .ba__caption { min-height: 4.2em; }

  .rev__masonry { columns: 1; }
  .head--split { align-items: flex-start; }
  .rev__score { padding: var(--space-sm) var(--space-md); }
  .rev__num { font-size: 2rem; }

  .visit__facts { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .visit__cta .btn, .hero__cta .btn { flex: 1 1 100%; }
}

@media (max-width: 340px) {
  .trust__row { grid-template-columns: 1fr; }
}
