/* ==========================================================
   HP DETAILING — style.css
   Premium detailing studio + electric blue technology aesthetic
   ========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --c-black: #000000;
  --c-void: #06070a;
  --c-graphite: #111419;
  --c-steel: #1a1e25;
  --c-line: #262b34;
  --c-line-soft: rgba(255, 255, 255, 0.08);
  --c-white: #f4f7fb;
  --c-text: #c9d0da;
  --c-muted: #8a93a1;
  --c-blue: #1f7aff;
  --c-blue-bright: #4c95ff;
  --c-blue-deep: #0d4fc4;
  --c-blue-glow: rgba(31, 122, 255, 0.28);

  --f-display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-h3: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-h2: clamp(2.5rem, 1.6rem + 4vw, 5rem);
  --fs-hero: clamp(3rem, 1.4rem + 7.6vw, 8.75rem);

  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 9vw, 9.5rem);
  --header-h: 76px;

  --r-sm: 4px;
  --r-md: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  background: var(--c-void);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
button { font: inherit; color: inherit; }
address { font-style: normal; }

/* Headings: never break inside a word */
h1, h2, h3, h4,
.section-title, .hero-title, .statement-title, .case-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--c-white);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

:focus-visible {
  outline: 2px solid var(--c-blue-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--c-blue);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--c-muted); }
.accent { color: var(--c-blue); }

/* ---------- 3. Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-primary {
  background: var(--c-blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-blue-bright);
  box-shadow: 0 8px 30px -10px var(--c-blue-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover {
  border-color: var(--c-blue);
  color: #fff;
  background: rgba(31, 122, 255, 0.08);
}

.btn-block { width: 100%; }

.text-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--c-white);
  font-weight: 500;
  border-bottom: 1px solid var(--c-blue);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.text-link:hover { color: var(--c-blue-bright); }

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(6, 7, 10, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--c-line-soft);
}

.header-inner {
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--r-sm);
}
.brand-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-white);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.main-nav ul {
  display: flex;
  gap: 1.9rem;
}
.main-nav ul a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text);
  padding-block: 0.4rem;
  transition: color 0.2s;
}
.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--c-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav ul a:hover,
.main-nav ul a.is-active { color: #fff; }
.main-nav ul a:hover::after,
.main-nav ul a.is-active::after { transform: scaleX(1); }

.nav-cta { min-height: 44px; padding: 0.6rem 1.2rem; font-size: 0.98rem; }

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--c-white);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--c-black);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-media { z-index: -2; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.62) 42%, rgba(0,0,0,0.15) 75%, rgba(0,0,0,0.25) 100%),
    linear-gradient(0deg, rgba(6,7,10,1) 0%, rgba(6,7,10,0.2) 35%, rgba(0,0,0,0.35) 100%);
}

.hero-content {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(3.5rem, 8vh, 6.5rem);
}

.hero-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: var(--r-sm);
  margin-bottom: 2rem;
  border: 1px solid var(--c-line-soft);
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.005em;
}
.hero-title .line { display: block; }
.hero-title .accent {
  color: var(--c-blue);
  text-shadow: 0 0 42px rgba(31, 122, 255, 0.22);
}

/* The one signature motion: a paint-inspection light line */
.beam {
  display: block;
  width: min(520px, 70%);
  height: 1px;
  margin: 2rem 0 1.75rem;
  background: linear-gradient(90deg, var(--c-blue) 0%, rgba(31,122,255,0.35) 60%, transparent 100%);
  box-shadow: 0 0 12px rgba(31, 122, 255, 0.45);
  transform-origin: left;
  animation: beam-in 1.4s 0.35s var(--ease) both;
}
@keyframes beam-in {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.hero-sub {
  max-width: 34ch;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--c-white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.hero-info {
  margin-top: 2rem;
  font-size: var(--fs-small);
  color: var(--c-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}
.hero-info a { color: var(--c-text); border-bottom: 1px solid var(--c-line); }
.hero-info a:hover { color: #fff; border-color: var(--c-blue); }
.hero-info .sep { color: var(--c-blue); }

/* ---------- 6. Trust strip ---------- */
.trust {
  border-top: 1px solid var(--c-line-soft);
  border-bottom: 1px solid var(--c-line-soft);
  background: var(--c-void);
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.6rem 1.25rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-white);
  border-left: 1px solid var(--c-line-soft);
}
.trust-list li:first-child { border-left: 0; padding-left: 0; }
.trust-list svg {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--c-blue);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 7. Section scaffolding ---------- */
.section { padding-block: var(--section-y); }

.section-head { max-width: 760px; margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
}
.section-intro {
  margin-top: 1.4rem;
  max-width: 52ch;
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  color: var(--c-text);
}
.section-head.center .section-intro { margin-inline: auto; }

/* ---------- 8. Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.services-head {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
}

.service {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding-block: 2.1rem;
  border-top: 1px solid var(--c-line);
  transition: border-color 0.3s;
}
.service:last-child { border-bottom: 1px solid var(--c-line); }
.service:hover { border-top-color: var(--c-blue); }

.service-num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--c-blue);
  padding-top: 0.3rem;
}

.service h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.05;
}
.service-body ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1.75rem;
}
.service-body li {
  position: relative;
  padding-left: 1.1rem;
  font-size: var(--fs-small);
}
.service-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--c-blue);
}
.service-body p + p { margin-top: 0.35rem; }

.service-mobile {
  background: linear-gradient(90deg, rgba(31,122,255,0.07), transparent 70%);
}

/* correction meters */
.meter {
  position: relative;
  margin-top: 1.25rem;
  height: 2px;
  max-width: 320px;
  background: var(--c-line);
  overflow: hidden;
}
.meter span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill);
  background: var(--c-blue);
  transform-origin: left;
}
.meter-range span {
  left: var(--from);
  width: calc(var(--fill) - var(--from));
}
.meter-range::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--from, 70%);
  background: rgba(31, 122, 255, 0.35);
}
.meter-range { --from: 70%; }
.js .meter span { transform: scaleX(0); transition: transform 1.2s var(--ease) 0.2s; }
.js .is-visible .meter span { transform: scaleX(1); }

/* ---------- 9. Packages ---------- */
.packages {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(31, 122, 255, 0.10), transparent 70%),
    var(--c-graphite);
  border-top: 1px solid var(--c-line-soft);
  border-bottom: 1px solid var(--c-line-soft);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--c-void);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: border-color 0.3s var(--ease);
}
.package:hover { border-color: #39404c; }

.package-featured {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 1px var(--c-blue), 0 30px 80px -40px var(--c-blue-glow);
  transform: translateY(-14px);
}
.package-featured:hover { border-color: var(--c-blue-bright); }

.badge {
  position: absolute;
  top: -0.8rem;
  left: clamp(1.75rem, 3vw, 2.5rem);
  padding: 0.25rem 0.75rem;
  background: var(--c-blue);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}
.badge-outline {
  background: var(--c-void);
  color: var(--c-blue-bright);
  border: 1px solid var(--c-blue);
}

.package-top {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 1.5rem;
}
.package h3 {
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  font-weight: 700;
}
.package-lead {
  margin-top: 0.6rem;
  color: var(--c-muted);
  font-size: var(--fs-small);
}

.package-features {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.package-features li {
  position: relative;
  padding-left: 1.6rem;
  font-size: var(--fs-small);
}
.package-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--c-blue);
  border-bottom: 1.5px solid var(--c-blue);
  transform: rotate(-45deg);
}
.package-features strong { color: var(--c-white); font-weight: 600; }

.package-prices {
  margin: auto 0 1.75rem;
  border-top: 1px solid var(--c-line);
}
.package-prices div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--c-line);
}
.package-prices dt { color: var(--c-muted); font-size: var(--fs-small); }
.package-prices dd {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--c-white);
}
.package-featured .package-prices dd { color: #fff; }

.mobile-addon {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border: 1px dashed rgba(31, 122, 255, 0.5);
  border-radius: var(--r-md);
  max-width: 640px;
  margin-inline: auto;
}
.mobile-addon svg {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--c-blue);
  stroke-width: 1.4;
}
.mobile-addon h3 {
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
}
.addon-price { color: var(--c-blue-bright); }
.mobile-addon p { font-size: var(--fs-small); color: var(--c-muted); margin-top: 0.25rem; }

/* ---------- 10. Price list ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.price-card {
  background: var(--c-void);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.price-card-wide { grid-column: 1 / -1; }

.price-card h3 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  font-weight: 700;
}
.price-sub {
  margin-top: 0.4rem;
  margin-bottom: 1.5rem;
  color: var(--c-blue-bright);
  font-size: var(--fs-small);
}

.price-rows div {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.65rem;
}
.price-rows dt { color: var(--c-text); white-space: nowrap; }
.price-rows div::after {
  content: "";
  order: 1;
  flex: 1;
  border-bottom: 1px dotted #3a404b;
  transform: translateY(-4px);
}
.price-rows dd {
  order: 2;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--c-white);
  white-space: nowrap;
  line-height: 1;
}
.price-extra-title {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line);
  font-weight: 600;
  color: var(--c-white);
  font-size: var(--fs-small);
}
.price-rows-small dt { font-size: var(--fs-small); color: var(--c-muted); }
.price-rows-small dd { font-size: 1.15rem; color: var(--c-blue-bright); }

.ceramic-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.tier {
  padding: 1.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  position: relative;
}
.tier-top { border-color: rgba(31, 122, 255, 0.6); }
.tier-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--c-white);
}
.tier-desc { color: var(--c-muted); font-size: var(--fs-small); }
.tier-price {
  margin-top: 1rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--c-white);
}
.tier-top .tier-price { color: var(--c-blue-bright); }

.original-pricelist {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}
.original-pricelist > p { color: var(--c-muted); font-size: var(--fs-small); }
.original-thumbs { display: flex; gap: 1rem; flex-wrap: wrap; }
.original-thumb {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 1.1rem 0.5rem 0.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  transition: border-color 0.25s;
}
.original-thumb:hover { border-color: var(--c-blue); }
.original-thumb img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 2px;
}
.original-thumb span { color: var(--c-white); font-weight: 500; font-size: var(--fs-small); }

/* ---------- 11. Statement ---------- */
/* Source photos are low resolution, so they are never stretched full-bleed.
   A heavily blurred copy creates the atmosphere; the sharp photo sits in a
   frame close to its native size. */
.statement {
  position: relative;
  padding-block: clamp(5rem, 9vw, 8rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--c-black);
}
.statement-ambient {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  z-index: -2;
  filter: blur(48px) saturate(120%) brightness(0.32);
  transform: scale(1.05);
}
.statement-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--c-void) 0%, rgba(6,7,10,0) 25%, rgba(6,7,10,0) 75%, var(--c-void) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
}
.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.statement-media {
  margin: 0;
  position: relative;
  max-width: 560px;
  justify-self: end;
  width: 100%;
}
.statement-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.statement-media::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 12%;
  bottom: 12%;
  width: 2px;
  background: var(--c-blue);
  box-shadow: 0 0 14px rgba(31, 122, 255, 0.55);
  z-index: 1;
}
.statement-title {
  font-size: clamp(2.75rem, 1.4rem + 4.6vw, 6.25rem);
  font-weight: 800;
  line-height: 0.9;
}
.statement-title span { display: block; }
.statement-content p {
  max-width: 46ch;
  margin-top: 2rem;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  color: var(--c-white);
}

/* ---------- 12. Works / case studies ---------- */
.works { padding-bottom: calc(var(--section-y) * 0.6); }

.case + .case { margin-top: clamp(5rem, 10vw, 9rem); }

.case-hero {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
}
.case-reverse .case-hero { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.case-reverse .case-main { order: 2; }
.case-main {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 640px;
  background: var(--c-graphite);
  border-radius: 2px;
}
.case-main img,
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.case-main:hover img,
.mosaic a:hover img { transform: scale(1.03); }

.case-spec {
  padding: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  border-top: 2px solid var(--c-blue);
}

.case-index {
  font-family: var(--f-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--c-blue-bright);
  margin-bottom: 0.4rem;
}
.case-title {
  font-size: clamp(2.5rem, 1.8rem + 2.5vw, 4rem);
  font-weight: 800;
}
.case-summary {
  margin-top: 0.75rem;
  color: var(--c-white);
  font-weight: 500;
}
.case-label {
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--c-muted);
}
.case-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.6rem;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-small);
}
.case-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1em;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--c-blue);
  border-bottom: 1.5px solid var(--c-blue);
  transform: rotate(-45deg);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 14vw, 210px);
  gap: clamp(0.5rem, 1vw, 0.85rem);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}
.mosaic a {
  display: block;
  overflow: hidden;
  background: var(--c-graphite);
  border-radius: 2px;
}

/* Mercedes: 5 photos */
.mosaic-mercedes a:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.mosaic-mercedes a:nth-child(2) { grid-column: span 5; }
.mosaic-mercedes a:nth-child(3) { grid-column: span 5; }
.mosaic-mercedes a:nth-child(4) { grid-column: span 5; }
.mosaic-mercedes a:nth-child(5) { grid-column: span 7; }

/* Audi: 6 photos */
.mosaic-audi a:nth-child(1) { grid-column: span 4; }
.mosaic-audi a:nth-child(2) { grid-column: span 3; }
.mosaic-audi a:nth-child(3) { grid-column: span 5; grid-row: span 2; }
.mosaic-audi a:nth-child(4) { grid-column: span 7; }
.mosaic-audi a:nth-child(5) { grid-column: span 6; }
.mosaic-audi a:nth-child(6) { grid-column: span 6; }

/* ---------- 13. Mobile detailing ---------- */
.mobile-service {
  background: var(--c-graphite);
  border-top: 1px solid var(--c-line-soft);
  border-bottom: 1px solid var(--c-line-soft);
}
.mobile-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.mobile-fee {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 2.25rem 0 2.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.fee-value {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  line-height: 1;
  color: var(--c-blue-bright);
}
.fee-label { color: var(--c-muted); }

.route {
  position: relative;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-void);
  overflow: hidden;
}
.route-svg { display: block; width: 100%; height: auto; }
.grid-line { stroke: rgba(255, 255, 255, 0.045); stroke-width: 1; }
.route-base { fill: none; stroke: var(--c-line); stroke-width: 2; }
.route-path {
  fill: none;
  stroke: var(--c-blue);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  filter: drop-shadow(0 0 4px rgba(31, 122, 255, 0.5));
  animation: route-dash 2.8s linear infinite;
}
@keyframes route-dash { to { stroke-dashoffset: -56; } }
.route-start circle { fill: var(--c-white); }
.route-start .ring { fill: none; stroke: rgba(255,255,255,0.25); }
.route-pin path { fill: var(--c-blue); }
.route-pin circle { fill: var(--c-void); }
.route-label {
  fill: var(--c-muted);
  font-family: var(--f-body);
  font-size: 13px;
}
.route-stops {
  display: flex;
  border-top: 1px solid var(--c-line);
}
.route-stops li {
  flex: 1;
  text-align: center;
  padding: 0.9rem 0.5rem;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-white);
  border-left: 1px solid var(--c-line);
}
.route-stops li:first-child { border-left: 0; }

/* ---------- 14. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-logo {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: radial-gradient(circle at 50% 50%, rgba(31,122,255,0.12), transparent 65%), var(--c-black);
  padding: 15%;
}
.about-logo img { width: 100%; height: auto; object-fit: contain; }
.about-lead {
  margin-top: 1.5rem;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.5;
  color: var(--c-white);
  max-width: 42ch;
}
.about-facts {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 2rem 4rem;
}
.about-facts dt { color: var(--c-muted); font-size: 0.875rem; margin-bottom: 0.35rem; }
.about-facts dd { margin: 0; color: var(--c-white); font-weight: 500; font-size: 1.1rem; }
.about-facts a { border-bottom: 1px solid var(--c-blue); }
.about-facts a:hover { color: var(--c-blue-bright); }

/* ---------- 15. Contact ---------- */
.contact {
  background:
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(31,122,255,0.08), transparent 70%),
    var(--c-void);
  border-top: 1px solid var(--c-line-soft);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.location-card {
  margin-top: 2.75rem;
  padding: 1.75rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-graphite);
}
.location-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.9rem; }
.location-card address { color: var(--c-white); font-size: 1.15rem; line-height: 1.5; }
.location-phone { margin: 0.75rem 0 1.5rem; color: var(--c-white); }
.location-phone .muted { margin-right: 0.5rem; }

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-graphite);
}
.field { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--c-white); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--c-white);
  background: var(--c-void);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder,
.field textarea::placeholder { color: #5d6573; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(31, 122, 255, 0.18);
}
.field .is-invalid { border-color: #e5484d; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--c-blue);
  border-bottom: 1.5px solid var(--c-blue);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-wrap select { padding-right: 2.75rem; cursor: pointer; }
.select-wrap option { background: var(--c-graphite); color: var(--c-white); }

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}
.form-status { font-size: var(--fs-small); color: var(--c-text); }
.form-status.is-success {
  color: var(--c-white);
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--c-blue);
  background: rgba(31, 122, 255, 0.08);
}
.form-status.is-error { color: #ff8a8d; }

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--c-black);
  border-top: 1px solid var(--c-line-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 4rem 3rem;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; border-radius: var(--r-sm); }
.footer-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-white);
}
.footer-contact p { color: var(--c-text); }
.footer-contact p + p { margin-top: 0.35rem; }
.footer-contact a:hover { color: #fff; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.footer-nav a { color: var(--c-text); transition: color 0.2s; }
.footer-nav a:hover { color: var(--c-blue-bright); }

.disclaimer {
  border-top: 1px solid var(--c-line);
  background: var(--c-void);
}
.disclaimer p {
  padding-block: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--c-text);
  max-width: 80ch;
}

/* ---------- 17. Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.94);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lb-figure {
  margin: 0;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.lb-img {
  max-width: 100%;
  max-height: 82vh;
  max-height: 82svh;
  width: auto;
  object-fit: contain;
}
.lb-caption { color: var(--c-text); font-size: var(--fs-small); text-align: center; }

.lb-close,
.lb-prev,
.lb-next {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(20, 23, 28, 0.85);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { border-color: var(--c-blue); background: rgba(31, 122, 255, 0.15); }
.lb-close svg,
.lb-prev svg,
.lb-next svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--c-white);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lb-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 0px));
  right: 1rem;
  z-index: 2;
}
.lb-prev { grid-column: 1; justify-self: start; }
.lb-next { grid-column: 3; justify-self: end; }
.lightbox.is-single .lb-prev,
.lightbox.is-single .lb-next { visibility: hidden; }

body.no-scroll { overflow: hidden; }

/* ---------- 17b. High-quality downscaled photos (see script.js) ---------- */
.hq-wrap { position: relative; }
.hq-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: transform 0.9s var(--ease);
}
img.hq-ready { opacity: 0; }
.case-main:hover .hq-canvas,
.mosaic a:hover .hq-canvas { transform: scale(1.03); }
.statement-media .hq-canvas {
  border-radius: 2px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

/* ---------- 18. Reveal (text only, JS-enhanced) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero entrance (CSS only, ends visible) */
.hero-title .line,
.hero-sub,
.hero-actions,
.hero-info {
  animation: rise 0.9s var(--ease) both;
}
.hero-title .line:nth-child(2) { animation-delay: 0.12s; }
.hero-sub { animation-delay: 0.45s; }
.hero-actions { animation-delay: 0.55s; }
.hero-info { animation-delay: 0.65s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 1.5rem; }
  .main-nav ul { gap: 1.25rem; }
  .brand-name { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }

  .menu-toggle { display: block; }

  /* backdrop-filter would trap the fixed menu inside the header */
  .site-header.is-scrolled,
  .site-header.menu-open {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(6, 7, 10, 0.96);
  }

  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
    background: rgba(6, 7, 10, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a {
    display: block;
    padding: 1rem 0;
    font-family: var(--f-display);
    font-size: 1.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--c-white);
    border-bottom: 1px solid var(--c-line);
  }
  .main-nav ul a::after { display: none; }
  .main-nav ul a.is-active { color: var(--c-blue-bright); }
  .nav-cta { min-height: 56px; font-size: 1.1rem; }

  .brand-name { display: inline; }

  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .trust-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust-list li:nth-child(n + 3) { border-top: 1px solid var(--c-line-soft); }

  .services-grid { grid-template-columns: 1fr; }
  .services-head { position: static; }

  .package-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; gap: 2.25rem; }
  .package-featured { transform: none; }

  .case-hero,
  .case-reverse .case-hero { grid-template-columns: 1fr; }
  .case-reverse .case-main { order: 0; }
  .case-main { max-width: 760px; }

  .statement-grid { grid-template-columns: 1fr; }
  .statement-media { justify-self: start; max-width: 520px; }

  .mobile-grid,
  .contact-grid,
  .about-grid { grid-template-columns: 1fr; }
  .about-logo { max-width: 280px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --fs-body: 1rem; }

  .hero { min-height: 92vh; min-height: 92svh; }
  .hero-media img { object-position: 62% center; }
  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(6,7,10,1) 0%, rgba(6,7,10,0.75) 45%, rgba(0,0,0,0.35) 100%);
  }
  .hero-logo { width: 64px; height: 64px; margin-bottom: 1.5rem; }
  .hero-title { font-size: clamp(2.6rem, 12.5vw, 4.5rem); }
  .hero-actions .btn { flex: 1 1 100%; }

  .trust-list li { padding: 1.1rem 0.75rem; font-size: 0.92rem; gap: 0.65rem; }
  .trust-list svg { width: 26px; height: 26px; }

  .section-title { font-size: clamp(2.15rem, 10vw, 3rem); }

  .service { grid-template-columns: 1fr; gap: 0.5rem; padding-block: 1.75rem; }
  .service-body ul { grid-template-columns: 1fr; }

  .price-grid { grid-template-columns: 1fr; }
  .ceramic-tiers { grid-template-columns: 1fr; }
  .tier { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; padding: 1.1rem 1.25rem; }
  .tier-price { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; font-size: 1.6rem; }

  .original-pricelist { flex-direction: column; align-items: flex-start; }
  .original-thumbs { width: 100%; }
  .original-thumb { flex: 1 1 100%; }

  .statement-title { font-size: clamp(2.3rem, 11vw, 3.5rem); }

  .case-main { aspect-ratio: 4 / 3.4; }
  .statement-media img { aspect-ratio: 4 / 3.4; }

  .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 42vw;
    margin-top: 2.5rem;
  }
  .mosaic a,
  .mosaic-mercedes a:nth-child(n),
  .mosaic-audi a:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .mosaic-mercedes a:nth-child(1),
  .mosaic-audi a:nth-child(3),
  .mosaic-audi a:nth-child(6) { grid-column: span 2; grid-row: span 1; }

  .route-stops li { font-size: 0.95rem; }

  .about-facts { grid-template-columns: 1fr; gap: 1.5rem; }

  .contact-form { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; padding-block: 3rem 2.25rem; }

  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding-inline: 0.75rem; }
  .lb-figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { grid-column: 1; grid-row: 2; justify-self: end; margin-right: 0.5rem; }
  .lb-next { grid-column: 2; grid-row: 2; justify-self: start; margin-left: 0.5rem; }
  .lb-img { max-height: 72vh; max-height: 72svh; }
}

@media (max-width: 400px) {
  .brand-name { font-size: 1.05rem; }
  .brand img { width: 40px; height: 40px; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li,
  .trust-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .trust-list li + li { border-top: 1px solid var(--c-line-soft); }
  .mosaic { grid-auto-rows: 56vw; }
  .package-prices dd { font-size: 1.5rem; }
  .price-rows dd { font-size: 1.25rem; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .meter span { transform: none; }
  .case-main:hover img,
  .mosaic a:hover img,
  .case-main:hover .hq-canvas,
  .mosaic a:hover .hq-canvas { transform: none; }
}