/* =========================================================
   AutoCar Apex — Design tokens
   ========================================================= */
:root {
  --bg: #0a0b0d;
  --bg-2: #0f1013;
  --surface: #15161a;
  --surface-2: #1b1c21;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.22);

  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #8a8a93;

  --accent: #f5a524;
  --accent-hi: #ffb845;
  --accent-ink: #17110a;
  --accent-soft: rgba(245, 165, 36, 0.12);
  --danger: #f87171;

  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 160ms;
  --med: 300ms;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 68px;
  --section-y: clamp(88px, 11vw, 148px);

  color-scheme: dark;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  transition: top var(--med) var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* =========================================================
   Typography
   ========================================================= */
.display, h2, h3 { font-family: var(--font-display); font-stretch: 112%; }

.display {
  font-size: clamp(2.6rem, 1.2rem + 5.2vw, 5.4rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.display .tone { color: var(--muted); }

h2 {
  font-size: clamp(2rem, 1.25rem + 2.8vw, 3.35rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.7; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }

/* =========================================================
   Buttons + Stripe-style growing arrow
   ========================================================= */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 0.95rem; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--med) var(--ease), border-color var(--med) var(--ease),
              color var(--med) var(--ease), transform 200ms var(--ease), box-shadow var(--med) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 80ms; }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px -14px rgba(245, 165, 36, 0.7);
}
.btn--primary:hover { background: var(--accent-hi); }

.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--line-3); }

.arrow { overflow: visible; flex: none; }
.arrow path { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.arrow__shaft { opacity: 0; transform: scaleX(0); transform-box: fill-box; transform-origin: left center; transition: transform var(--med) var(--ease), opacity var(--fast) var(--ease); }
.arrow__head { transform: translateX(-3px); transition: transform var(--med) var(--ease); }
a:hover > .arrow .arrow__shaft, button:hover > .arrow .arrow__shaft,
a:focus-visible > .arrow .arrow__shaft, button:focus-visible > .arrow .arrow__shaft { opacity: 1; transform: scaleX(1); }
a:hover > .arrow .arrow__head, button:hover > .arrow .arrow__head,
a:focus-visible > .arrow .arrow__head, button:focus-visible > .arrow .arrow__head { transform: translateX(0); }

/* =========================================================
   Navigation (Apple-style glass on scroll)
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--med) var(--ease), border-color var(--med) var(--ease), backdrop-filter var(--med) var(--ease);
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(10, 11, 13, 0.74);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__mark rect { fill: none; stroke: var(--line-3); stroke-width: 1.5; }
.brand__mark path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.brand__mark circle { fill: var(--text); }
.brand__word { font-family: var(--font-display); font-stretch: 118%; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand__word b { font-weight: 800; }

.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a {
  position: relative; padding: 8px 12px; border-radius: 999px;
  font-size: 0.9rem; color: var(--muted);
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__links a[aria-current="true"] { color: var(--text); }
.nav__links a[aria-current="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent);
}

.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); transition: color var(--fast) var(--ease); }
.nav__phone:hover { color: var(--text); }
.nav__phone svg, .contact-list svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.nav__toggle {
  display: none; position: relative; width: 42px; height: 42px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); cursor: pointer;
}
.nav__toggle span { position: absolute; left: 13px; width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform var(--med) var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 49;
  background: rgba(10, 11, 13, 0.97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--med) var(--ease), visibility 0s linear var(--med);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity var(--med) var(--ease); }
.mobile-menu__inner { display: flex; flex-direction: column; padding-top: 24px; padding-bottom: 40px; }
.mobile-menu__inner > a {
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-stretch: 112%; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em;
  transform: translateY(10px); opacity: 0;
  transition: transform 500ms var(--ease-out), opacity 500ms var(--ease-out), color var(--fast);
}
.mobile-menu.is-open .mobile-menu__inner > a { transform: none; opacity: 1; }
.mobile-menu.is-open .mobile-menu__inner > a:nth-child(2) { transition-delay: 40ms; }
.mobile-menu.is-open .mobile-menu__inner > a:nth-child(3) { transition-delay: 80ms; }
.mobile-menu.is-open .mobile-menu__inner > a:nth-child(4) { transition-delay: 120ms; }
.mobile-menu.is-open .mobile-menu__inner > a:nth-child(5) { transition-delay: 160ms; }
.mobile-menu__inner > a:hover { color: var(--accent); }
.mobile-menu__cta { display: grid; gap: 12px; margin-top: 32px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 960px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 56px);
}
.hero__media { position: absolute; inset: 0 0 0 34%; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  animation: hero-in 1.8s var(--ease-out) both;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10, 11, 13, 0.7) 18%, rgba(10, 11, 13, 0.1) 50%, rgba(10, 11, 13, 0.35) 100%),
    linear-gradient(180deg, rgba(10, 11, 13, 0.55) 0%, transparent 22%, transparent 62%, var(--bg) 100%);
}
@keyframes hero-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

/* Signature apex line */
.apex-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.apex-line path { fill: none; stroke: var(--accent); stroke-width: 1.25; stroke-linecap: round; opacity: 0.55; vector-effect: non-scaling-stroke; }
.hero__line { z-index: -1; }
.hero__line path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.4s var(--ease-out) 0.5s forwards; }
.apex-line__dot { fill: var(--accent); opacity: 0; animation: fade 0.6s var(--ease) 1.5s forwards; }
.apex-line__ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ring 2.6s var(--ease-out) 1.6s 2; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes ring { 0% { opacity: 0.7; transform: scale(0.4); } 100% { opacity: 0; transform: scale(1.6); } }

.hero__content { padding-bottom: clamp(40px, 6vw, 72px); }
.hero__content > * { max-width: 760px; }
.hero__content .eyebrow { margin-bottom: 24px; }
.hero__lede { margin-top: 24px; max-width: 560px; font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.2rem); color: var(--muted); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__trust {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.hero__trust > div { padding: 22px 24px 0 0; }
.hero__trust > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero__trust dt { font-size: 0.8rem; color: var(--dim); margin-bottom: 6px; }
.hero__trust dd { font-family: var(--font-display); font-stretch: 112%; font-weight: 600; font-size: 1.05rem; color: var(--text); }

/* load-in choreography (Linear-like fade up) */
.js .rise { opacity: 0; transform: translateY(16px); animation: rise 0.9s var(--ease-out) forwards; animation-delay: calc(150ms + var(--i, 0) * 90ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* =========================================================
   Sections
   ========================================================= */
.section { position: relative; padding-block: var(--section-y); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.section-head--left { margin-inline: 0; text-align: left; align-items: flex-start; }
.section-head__lede { color: var(--muted); font-size: 1.08rem; max-width: 580px; }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Images settle in as they decode (never a hard pop).
   Scoped to a class script.js sets itself, so a failed script can never hide the photos. */
.imgfx img { opacity: 0; transition: opacity 0.6s var(--ease-out); }
.imgfx img.is-loaded { opacity: 1; }

/* =========================================================
   Service cards (Linear-style cursor spotlight)
   ========================================================= */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--med) var(--ease), transform var(--med) var(--ease), opacity 0.9s var(--ease-out);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(245, 165, 36, 0.10), transparent 45%);
  opacity: 0; transition: opacity var(--med) var(--ease);
}
.card:hover, .card:focus-within { border-color: var(--line-3); }
.card:hover::before, .card:focus-within::before { opacity: 1; }

.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.75) brightness(0.82);
  transition: transform 900ms var(--ease-out), filter 600ms var(--ease);
}
.card:hover .card__media img, .card:focus-within .card__media img { transform: scale(1.05); filter: saturate(1) brightness(0.95); }

.card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 26px; flex: 1; }
.card__num { font-size: 0.78rem; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.card__body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  transition: color var(--fast) var(--ease);
}
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; } /* stretched link: whole card is clickable */
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.card:hover .card__link { color: var(--accent); }
.card:hover .card__link .arrow__shaft { opacity: 1; transform: scaleX(1); }
.card:hover .card__link .arrow__head { transform: none; }

/* =========================================================
   Why choose
   ========================================================= */
.why { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.why__aside { position: sticky; top: calc(var(--nav-h) + 40px); }
.why__aside .section-head { margin-bottom: 36px; }
.why__figure { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 10 / 11; }
.why__figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) brightness(0.85); }

.why__list li {
  position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 8px;
  padding: 36px 0; border-top: 1px solid var(--line);
}
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__list li::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 700ms var(--ease-out);
}
.why__list li:hover::before { transform: scaleX(1); }
.why__num { font-family: var(--font-display); font-stretch: 112%; font-weight: 600; color: var(--accent); font-size: 0.95rem; padding-top: 4px; }
.why__list h3 { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); margin-bottom: 10px; }
.why__list p { color: var(--muted); max-width: 520px; }

/* =========================================================
   Showcase bento
   ========================================================= */
.showcase {
  display: grid; gap: 16px;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 300px 300px auto;
  grid-template-areas:
    "a a a a a a a b b b b b"
    "a a a a a a a c c c c c"
    "d d d d d d d d d d d d";
}
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.tile--a { grid-area: a; }
.tile--b { grid-area: b; }
.tile--c { grid-area: c; }
.tile--d { grid-area: d; aspect-ratio: 21 / 8; }
.tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) brightness(0.8); transition: transform 1.1s var(--ease-out), filter 700ms var(--ease); }
.tile:hover img { transform: scale(1.04); filter: saturate(1) brightness(0.92); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 11, 13, 0.85) 100%); pointer-events: none; }
.tile figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1;
  font-size: 0.9rem; color: var(--muted);
  display: flex; flex-direction: column; gap: 2px;
  transform: translateY(6px); transition: transform 600ms var(--ease-out);
}
.tile figcaption span { font-family: var(--font-display); font-stretch: 112%; font-size: 1.15rem; font-weight: 600; color: var(--text); }
.tile:hover figcaption { transform: none; }

/* =========================================================
   Process (apex track)
   ========================================================= */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 40px; }
.process::before, .process::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; }
.process::before { background: var(--line-2); }
.process::after { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-out) 0.2s; }
.process.is-active::after { transform: scaleX(1); }

.process__step { position: relative; }
.process__node {
  position: absolute; top: -40px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-2); border: 1.5px solid var(--line-3);
  transition: background-color 400ms var(--ease), border-color 400ms var(--ease), box-shadow 400ms var(--ease);
}
.process.is-active .process__node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.process.is-active .process__step:nth-child(1) .process__node { transition-delay: 0.25s; }
.process.is-active .process__step:nth-child(2) .process__node { transition-delay: 0.7s; }
.process.is-active .process__step:nth-child(3) .process__node { transition-delay: 1.15s; }
.process.is-active .process__step:nth-child(4) .process__node { transition-delay: 1.6s; }
.process__num { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.process__step h3 { font-size: 1.45rem; margin-bottom: 10px; }
.process__step p { color: var(--muted); font-size: 0.97rem; max-width: 260px; }
.process__cta { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 72px); }

/* =========================================================
   Reviews
   ========================================================= */
.rating {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 24px 28px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--accent-soft), transparent 55%), var(--surface);
}
.rating__score { display: flex; align-items: center; gap: 16px; }
.rating__value { font-family: var(--font-display); font-stretch: 112%; font-size: 2.6rem; font-weight: 700; line-height: 1; }
.stars { display: flex; gap: 4px; }
.stars svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
.rating__text { color: var(--muted); flex: 1; min-width: 220px; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  transition: border-color var(--med) var(--ease), transform var(--med) var(--ease), opacity 0.9s var(--ease-out);
}
.review:hover { border-color: var(--line-2); }
.review blockquote p { font-size: 1.05rem; line-height: 1.6; color: var(--text); }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption > span:last-child { display: flex; flex-direction: column; }
.review figcaption b { font-weight: 600; font-size: 0.95rem; }
.review figcaption small { color: var(--dim); font-size: 0.82rem; }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--dim); }

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq__head .btn { margin-top: 8px; }

.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__item:first-child { border-top: 1px solid var(--line); }
.accordion__item h3 { font-family: var(--font-body); font-stretch: normal; }
.accordion__item button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 1.08rem; font-weight: 500; color: var(--text);
  transition: color var(--fast) var(--ease);
}
.accordion__item button:hover { color: var(--accent); }
.accordion__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform var(--med) var(--ease), border-color var(--med) var(--ease), background-color var(--med) var(--ease); }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -0.75px 0 0 -5px; background: currentColor; border-radius: 2px; }
.accordion__icon::after { transform: rotate(90deg); }
.accordion__item button[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 400ms var(--ease); }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { padding: 0 48px 26px 0; color: var(--muted); }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }

/* =========================================================
   Final CTA + form
   ========================================================= */
.cta-panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  background:
    radial-gradient(80% 90% at 0% 0%, rgba(245, 165, 36, 0.14), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
}
.cta-panel__line { z-index: -1; }
.cta-panel__line path { opacity: 0.28; }
.cta-panel__intro { display: flex; flex-direction: column; gap: 18px; }

.contact-list { display: grid; gap: 18px; margin-top: 16px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-list svg { margin-top: 3px; color: var(--accent); }
.contact-list li > span { display: flex; flex-direction: column; }
.contact-list small { font-size: 0.78rem; color: var(--dim); }
.contact-list a { transition: color var(--fast) var(--ease); }
.contact-list a:hover { color: var(--accent); }

.quote-form {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: rgba(10, 11, 13, 0.6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.quote-form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.field__hint { color: var(--dim); font-weight: 400; }

.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-size: 0.98rem; color: var(--text);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #6b6b74; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: rgba(255, 255, 255, 0.05); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { min-height: 0; font-size: 0.8rem; color: #fca5a5; }
.field__error:empty { display: none; }

.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select select option { background: var(--surface); color: var(--text); }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }

.quote-form__fine { margin-top: 14px; font-size: 0.8rem; color: var(--dim); text-align: center; }

.quote-form__success {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  padding: 32px; border-radius: inherit; background: var(--surface);
  animation: fade-in 500ms var(--ease-out);
}
.quote-form__success[hidden] { display: none; }
.quote-form__success:focus { outline: none; }
.quote-form__success h3 { font-size: 1.6rem; }
.quote-form__success p { color: var(--muted); max-width: 320px; margin-bottom: 8px; }
.success-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(245, 165, 36, 0.4); }
.success-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 600ms var(--ease-out) 200ms forwards; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Footer
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer__brand p { margin-top: 18px; color: var(--muted); max-width: 320px; font-size: 0.95rem; }
.footer h3 { font-family: var(--font-body); font-stretch: normal; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer ul { display: grid; gap: 12px; font-size: 0.95rem; color: var(--muted); }
.footer ul a { transition: color var(--fast) var(--ease); }
.footer ul a:hover { color: var(--text); }
.footer__cta { margin-top: 24px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 24px 0 32px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--dim); }
.footer__credits { max-width: 720px; }
.footer__credits a { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: color var(--fast); }
.footer__credits a:hover { color: var(--text); }

/* =========================================================
   Content review mode (placeholders flagged for confirmation)
   ========================================================= */
.review-note { display: none; }
[data-review="on"] .review-note {
  display: inline-flex; align-items: flex-start; gap: 8px;
  max-width: 560px; margin-top: 4px; padding: 8px 12px;
  border: 1px dashed rgba(245, 165, 36, 0.45); border-radius: 8px;
  background: rgba(245, 165, 36, 0.06);
  font-size: 0.8rem; line-height: 1.45; color: #f8c46e; text-align: left;
}
[data-review="on"] .review-note::before { content: "⚑"; }
[data-review="on"] .tbc { text-decoration: underline dashed rgba(245, 165, 36, 0.75); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.quote-form .review-note { margin-top: 12px; }

.review-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(21, 22, 26, 0.9); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 0.78rem; font-weight: 500; color: var(--muted); cursor: pointer;
  transition: border-color var(--fast), color var(--fast);
}
.review-toggle:hover { color: var(--text); border-color: var(--line-3); }
.review-toggle__switch { position: relative; width: 30px; height: 18px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); transition: background-color var(--med) var(--ease); }
.review-toggle__switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform var(--med) var(--ease), background-color var(--med); }
.review-toggle[aria-pressed="true"] .review-toggle__switch { background: var(--accent-soft); border-color: rgba(245, 165, 36, 0.5); }
.review-toggle[aria-pressed="true"] .review-toggle__switch::after { transform: translateX(12px); background: var(--accent); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-block; }
  .nav__actions { margin-left: auto; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .reviews .review:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav__phone { display: none; }
  .hero__trust { grid-template-columns: 1fr 1fr; }
  .hero__trust > div { padding: 18px 16px 18px 0; }
  .hero__trust > div + div { padding-left: 0; border-left: 0; }
  .hero__trust > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .hero__trust > div:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .why, .faq, .cta-panel { grid-template-columns: 1fr; }
  .why__aside, .faq__head { position: static; }
  .why__figure { aspect-ratio: 16 / 10; }

  .showcase {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas: "a a" "b c" "d d";
  }
  .tile--a { aspect-ratio: 16 / 11; }
  .tile--b, .tile--c { aspect-ratio: 4 / 3; }
  .tile--d { aspect-ratio: 16 / 8; }

  .process { grid-template-columns: 1fr 1fr; gap: 48px 32px; padding-top: 0; padding-left: 32px; }
  .process::before, .process::after { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process::after { transform: scaleY(0); transform-origin: top; }
  .process.is-active::after { transform: scaleY(1); }
  .process__node { top: 6px; left: -32px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 62px; }
  .nav__cta { display: none; }
  .hero { min-height: 100svh; }
  .hero__media { inset: 0; }
  .hero__media img { object-position: 50% 38%; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(10, 11, 13, 0.55) 0%, rgba(10, 11, 13, 0.35) 30%, rgba(10, 11, 13, 0.85) 62%, var(--bg) 100%);
  }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero .eyebrow { white-space: nowrap; font-size: 0.72rem; letter-spacing: 0.12em; gap: 10px; }
  .hero .eyebrow::before { display: none; }
  .hero__trust dd { font-size: 0.95rem; }

  .services, .reviews { grid-template-columns: 1fr; }
  .reviews .review:last-child { grid-column: auto; }
  .showcase { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d"; }
  .tile--a, .tile--b, .tile--c, .tile--d { aspect-ratio: 4 / 3; }
  .tile figcaption { transform: none; }

  .process { grid-template-columns: 1fr; }
  .why__list li { grid-template-columns: 52px 1fr; padding: 28px 0; }
  .quote-form__fields { grid-template-columns: 1fr; }
  .accordion__panel p { padding-right: 0; }
  .rating { padding: 22px; gap: 18px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .review-toggle { bottom: 12px; left: 12px; }
}

/* Touch devices: no hover, so keep key affordances visible */
@media (hover: none) {
  .card .card__link { color: var(--accent); }
  .card .arrow__shaft { opacity: 1; transform: scaleX(1); }
  .card .arrow__head { transform: none; }
  .card__media img, .tile img { filter: saturate(0.95) brightness(0.9); }
  .tile figcaption { transform: none; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js .rise, .js [data-reveal], .imgfx img { opacity: 1; transform: none; }
  .hero__line path { stroke-dashoffset: 0; }
  .apex-line__dot { opacity: 1; }
  .apex-line__ring { display: none; }
}
