/* Page styles on top of the kit (assets/system.css). Dark theme. */

/* ---------- shared bits ---------- */
.stars { color: #f5c451; letter-spacing: 1px; }
.stars--sm { font-size: 14px; letter-spacing: 1px; }
.tag-pop { display: inline-block; margin-left: 10px; padding: 3px 9px; border-radius: 999px; font: 500 12px/1.4 var(--font-text); background: var(--accent); color: var(--accent-ink); vertical-align: 2px; }
.split-photo { margin: 0; border-radius: var(--r-lg); overflow: clip; height: 100%; min-height: 360px; background: var(--surface); }
.split-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms var(--ease); }
.split-photo:hover > img { transform: scale(1.025); }
.nav__phone { font: 500 15px/1 var(--font-text); color: var(--ink); text-decoration: none; margin-right: var(--s-5); white-space: nowrap; }
.nav__phone:hover { color: var(--accent); }
@media (max-width: 1279px) { .nav__phone { display: none; } }
.nav__logo .nav__logo-img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; display: block; flex: none; }
.nav__logo:has(.nav__logo-img) { gap: 12px; }

/* ---------- hero: words straight on the dark side of the photograph ---------- */
.hero--photo::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 6, 8, .82) 0%, rgba(5, 6, 8, .55) 38%, rgba(5, 6, 8, 0) 70%),
              linear-gradient(0deg, rgba(5, 6, 8, .7) 0%, rgba(5, 6, 8, 0) 32%); }
.hero--photo > .wrap { position: relative; z-index: 1; }
.hero__kicker { display: block; font: 500 15px/1.3 var(--font-text); color: #f1eee8; margin-bottom: var(--s-4); }
.hero--photo h1, .hero--photo .hero__lead, .hero--photo .hero__facts { color: #f7f5f0; }
.hero--photo .hero__facts dt { color: rgba(247, 245, 240, .72); }
@media (max-width: 1023px) {
  .hero--photo::after { display: none; }
  .hero__kicker { color: var(--ink); }
  .hero--photo h1, .hero--photo .hero__lead { color: var(--ink); }
}

/* ---------- stats strip under the convenience section ---------- */
.stats { margin-top: var(--s-8); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats > li { display: grid; gap: var(--s-2); padding: var(--s-5) var(--s-5) 0 0; }
.stats > li + li { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.stat__fig { font: 400 clamp(28px, 2.4vw, 38px)/1.1 var(--font-display); letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.stat__label { color: var(--muted); font-size: var(--t-small); }
@media (max-width: 1023px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-5); } .stats > li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 639px) { .stats { margin-top: var(--s-6); } .stats > li { padding: var(--s-4) var(--s-3) 0 0; } .stats > li + li { padding-left: var(--s-3); } }

/* ---------- services and prices ---------- */
#services .frame { --ratio: 0; height: 100%; min-height: 420px; }
.price-list > li { cursor: pointer; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: var(--s-6); row-gap: var(--s-1); padding-block: var(--s-4); }
.price-list > li:first-child { padding-top: 0; }
.price-list > li > .rows__name { grid-column: 1; grid-row: 1; font-size: var(--t-card); }
.price-list > li > p { grid-column: 1; grid-row: 2; color: var(--muted); }
.price-list .rows__value { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: grid; justify-items: end; gap: 2px; text-align: right; }
.price { font: 400 28px/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.price small { font: 400 14px/1 var(--font-text); letter-spacing: 0; color: var(--muted); margin-right: 2px; }
.price__time { font-size: 13px; color: var(--muted); }
.book-link { font: 500 14px/1 var(--font-text); color: var(--accent); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
.book-link::after { content: "\2192"; transition: transform 200ms var(--ease); }
.book-link:hover::after { transform: translateX(3px); }
.price-list > li.is-on .rows__name { color: var(--ink); }
.price-list > li:hover .price { color: var(--accent); }
.price-list .price { transition: color 200ms var(--ease); }
@media (max-width: 1023px) { #services .frame { min-height: 0; height: auto; aspect-ratio: 16 / 9; margin-top: var(--s-6); } #services .fill { flex: 1 0 auto; } }
@media (max-width: 639px) { .price { font-size: 24px; } .price-list > li { column-gap: var(--s-4); } }

/* ---------- results: before/after slider ---------- */
.results { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap, 24px); height: min(560px, 60svh); }
.ba { grid-column: span 8; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); --pos: 50%; touch-action: pan-y; user-select: none; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: #0b0c0e; display: grid; place-items: center; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); transition: transform 160ms var(--ease); }
.ba:active .ba__knob { transform: scale(.94); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba:has(.ba__range:focus-visible) .ba__knob { outline: 2px solid var(--accent); outline-offset: 3px; }
.ba__tag { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; font: 500 13px/1 var(--font-text); background: rgba(5, 6, 8, .7); color: #fff; pointer-events: none; }
.ba__tag--l { left: 16px; } .ba__tag--r { right: 16px; }
.results__side { grid-column: span 4; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--gap, 24px); }
.results__side figure { margin: 0; border-radius: var(--r-lg); overflow: clip; background: var(--surface); }
.results__side figure:first-child { grid-column: 1 / -1; }
.results__side img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms var(--ease); }
.results__side figure:hover img { transform: scale(1.03); }
@media (max-width: 1023px) { .results { height: auto; } .ba { grid-column: 1 / -1; aspect-ratio: 16 / 10; } .results__side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 200px; } .results__side figure:first-child { grid-column: auto; } }
@media (max-width: 639px) { .results { gap: 12px; } .ba { aspect-ratio: 4 / 3; } .results__side { gap: 12px; grid-template-rows: 110px; } }

/* ---------- reviews ---------- */
.rating-line { font-size: var(--t-lead); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.review { margin: 0; padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: var(--s-4); align-content: start; transition: transform 200ms var(--ease), border-color 200ms var(--ease); }
.review:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.review blockquote { margin: 0; font: 400 var(--t-lead)/1.5 var(--font-text); color: var(--ink); }
.review figcaption { display: flex; align-items: center; gap: var(--s-3); margin-top: auto; }
.review figcaption strong { display: block; font-weight: 500; }
.review__area { display: block; color: var(--muted); font-size: var(--t-small); }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 22%, var(--surface)); color: var(--ink); font-weight: 500; flex: none; }
.reviews-foot { margin-top: var(--s-7); }
.review-photo { margin: 0; height: 200px; border-radius: var(--r-lg); overflow: clip; }
.review-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
@media (max-width: 1023px) { .reviews { grid-template-columns: 1fr; } .review-photo { height: 160px; } }
@media (max-width: 639px) { .review { padding: var(--s-5); } .review-photo { display: none; } }

/* ---------- why: numbered reasons ---------- */
.reasons { counter-reset: r; }
.reasons > li { counter-increment: r; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-1) var(--s-4); padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.reasons > li:first-child { padding-top: 0; }
.reasons > li::before { content: counter(r, decimal-leading-zero); grid-row: span 2; font: 400 var(--t-small)/1.9 var(--font-text); color: var(--accent); font-variant-numeric: tabular-nums; }
.reasons h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.reasons p { color: var(--muted); max-width: 52ch; }
.develop { margin: 0; }

/* ---------- service area ---------- */
.zip { display: flex; gap: var(--s-3); align-items: end; flex-wrap: wrap; margin-top: var(--s-6); }
.zip .field { flex: 0 1 220px; }
.zip__result { min-height: 52px; margin-top: var(--s-4); display: flex; gap: var(--s-3); align-items: flex-start; max-width: 46ch; }
.zip__result:empty { visibility: hidden; }
.zip__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--muted); }
.zip__result[data-state="yes"] .zip__dot { background: #4ccf7a; box-shadow: 0 0 0 4px rgba(76, 207, 122, .15); }
.zip__result[data-state="no"] .zip__dot { background: #f0a050; }
.zip__result.is-new { animation: rise 260ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.areas { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: 8px; }
.areas li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: var(--t-small); transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease); }
.areas li.is-hit { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 639px) { .zip .field { flex: 1 1 100%; } .zip .btn { width: 100%; } }

/* ---------- FAQ accordion ---------- */
.faq-photo { margin-top: var(--s-6); height: 260px; min-height: 0; }
.qa { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); min-height: 64px; padding-block: var(--s-4); font: 500 var(--t-lead)/1.35 var(--font-text); transition: color 160ms var(--ease); }
.qa summary:hover { color: var(--accent); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.qa__icon { flex: none; width: 20px; height: 20px; position: relative; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; inset: 9px 2px; background: currentColor; border-radius: 1px; transition: transform 220ms var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa details[open] .qa__icon::after { transform: rotate(0deg); }
.qa details::details-content { block-size: 0; overflow: clip; transition: block-size 260ms var(--ease), content-visibility 260ms allow-discrete; }
.qa details[open]::details-content { block-size: auto; }
.qa details p { padding-bottom: var(--s-5); max-width: 60ch; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .qa details::details-content, .qa__icon::before, .qa__icon::after { transition: none; } }
@media (max-width: 1023px) { .faq-photo { display: none; } }

/* ---------- booking ---------- */
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23f1eee8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form select option { background: #141619; color: #f1eee8; }
.demo-done { grid-column: 1 / -1; padding: var(--s-5); border-radius: var(--r-md); background: color-mix(in oklab, var(--accent) 14%, var(--bg)); border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); display: grid; gap: var(--s-2); }
.demo-done strong { font-weight: 500; font-size: var(--t-card); }
.demo-done[hidden] { display: none; }
.demo-done.is-new { animation: rise 300ms var(--ease) both; }
.quote-side { display: flex; flex-direction: column; align-self: stretch; }
.summary { flex: 1; padding: var(--s-7); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s-3); }
.summary .call { margin-top: auto; padding-top: var(--s-6); border-top: 1px solid var(--line); }
.summary__name { font: 400 var(--t-h3, 28px)/1.2 var(--font-display); letter-spacing: -0.02em; }
.summary__price { font: 400 clamp(40px, 4vw, 56px)/1 var(--font-display); letter-spacing: -0.04em; color: var(--accent); }
.summary__price.is-new { animation: rise 260ms var(--ease) both; }
.summary__meta { color: var(--muted); }
.call { display: grid; gap: var(--s-2); }
.summary__meta { margin-bottom: var(--s-6); }
.call a { font: 400 var(--t-h3, 28px)/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; justify-self: start; min-height: 44px; display: inline-flex; align-items: center; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 92%; transition: background-size 260ms var(--ease); }
.call a:hover { background-size: 100% 1px; }
@media (max-width: 1023px) { .quote-side { margin-top: var(--s-7); } .summary { padding: var(--s-5); } }

/* ---------- footer ---------- */
.socials { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink); transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.socials a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hours-list li { display: grid; gap: 2px; padding-bottom: var(--s-2); }
.hours-list li span:first-child { color: var(--muted); font-size: var(--t-small); }
.concept { color: var(--muted); }
.actionbar .btn { padding-inline: 12px; gap: 6px; }

/* ---------- screens: every section one or two whole screens ---------- */
@media (min-width: 1280px) { main > section:not(.hero):not([data-moment]) { height: auto; min-height: calc(var(--h, 1) * 100svh); } }
@media (max-width: 1279px) { #services { --h: 2; } }
@media (min-width: 640px) and (max-width: 1023px) {

  .split-photo { min-height: 0; height: auto; aspect-ratio: 21 / 9; margin-top: var(--s-6); }
}
@media (max-width: 639px) { .split-photo { min-height: 240px; margin-top: var(--s-6); } }

footer.closing { height: auto; min-height: 100svh; }
footer.closing .close__media { min-height: 240px; flex: none; height: 240px; }
.socials svg { width: 20px !important; height: 20px !important; }

/* booking: the form and the summary are two equal cards, side by side, same top, same height */
.booking { align-items: stretch; }
.booking__card { padding: var(--s-7); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.booking .quote-side { margin: 0; }
.booking .summary { height: 100%; }
.booking .form input, .booking .form select { background-color: var(--bg); }
@media (max-width: 1023px) { .booking { row-gap: var(--s-5); } .booking__card { padding: var(--s-5); } }

/* services: no rule under the last row */
.price-list > li:last-child { border-bottom: 0; padding-bottom: 0; }

/* a section that holds more than its screen grows with it (a short laptop screen), so its ground always
   runs past the content: the kit's .fill starts at 0 and would let the content spill out of the band */
main > section:not(.hero) > .wrap > .fill { flex: 1 0 auto; }
#services .frame { height: auto; min-height: 420px; align-self: stretch; }
/* the gallery keeps its set height: photos never stretch the row past it */
@media (min-width: 1024px) {
  .results { grid-template-rows: minmax(0, 1fr); }
  .results__side { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; }
  .results__side figure, .ba { min-height: 0; }
}
#services .frame { min-width: 0; }
#services .frame > img { max-width: 100%; }
@media (max-width: 1023px) { #services .frame { min-height: 0; height: auto; width: 100%; aspect-ratio: 16 / 9; } }
/* the stats rows fill their width whatever the count (a prospect may hide one) */
@media (min-width: 1024px) {
  .stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .hero__facts { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}

/* business mode: mobile (default) or shop. Each spot carries both wordings; the mode shows one */
[data-s] { display: none !important; }
html[data-mode="shop"] [data-m] { display: none !important; }
html[data-mode="shop"] [data-s] { display: revert !important; }
html[data-mode="shop"] .visit[data-s] { display: grid !important; }
.visit { gap: var(--s-5); margin-top: var(--s-6); justify-items: start; }
.visit__addr { font: 400 var(--t-h3, 28px)/1.25 var(--font-display); letter-spacing: -0.02em; max-width: 22ch; }
.visit__hours li { display: flex; justify-content: space-between; gap: var(--s-6); min-width: min(100%, 360px); padding-block: var(--s-2); border-bottom: 1px solid var(--line); }


/* ---------- hero proof line (below the actions, all sizes) ---------- */
.hero__proof { display: flex; align-items: center; gap: 10px; margin-top: var(--s-5); font-size: 15px; color: rgba(247, 245, 240, .86); }
.hero__proof strong { color: #fff; font-weight: 500; }
.stars-svg { display: inline-flex; gap: 2px; }
.stars-svg svg { width: 15px; height: 15px; fill: #f5c451; }

/* ---------- header call button (phones and tablets) ---------- */
.nav__call { display: none; width: 44px; height: 44px; border-radius: var(--r-btn, 8px); border: 1px solid var(--line-strong); color: var(--ink);
  place-items: center; flex: none; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.nav__call:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.nav__call:active { transform: scale(.96); }

/* ---------- phones and tablets: text first, the photo as a full-car card under it ---------- */
@media (max-width: 1023px) {
  .nav__call { display: grid; margin-left: auto; }
  .nav__bar { gap: var(--s-3); }
  /* a logo that already carries the name stands alone; without a logo the name stays, trimmed if long */
  .nav__logo:has(.nav__logo-img) > span:last-child { display: none; }
  .nav__logo .nav__logo-img { width: 40px; height: 40px; }
  .nav__logo > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav__logo { min-width: 0; font-size: 17px; }

  main > section.hero.hero--photo, main > section.hero.hero--photo[data-tone] {
    display: flex; flex-direction: column; height: auto; min-height: 0;
    padding: calc(var(--nav) + var(--s-6)) 0 var(--s-7); background: var(--bg); color: var(--p-ink); --ink: var(--p-ink); --muted: var(--p-muted); }
  .hero--photo::after { display: none; }
  .hero--photo > .wrap { order: 1; height: auto; }
  .hero--photo > .wrap > .hero-text, .hero--photo[data-calm] > .wrap > .hero-text { justify-content: flex-start; }
  .hero--photo > .hero__bg { order: 2; position: relative; inset: auto; top: auto; width: min(100% - 2 * var(--gut), 1280px); height: auto;
    aspect-ratio: 4 / 3; margin: var(--s-7) auto 0; border-radius: 16px; object-fit: cover; object-position: 60% 55%; }
  .hero--photo h1 { font-size: clamp(36px, 9.6vw, 52px); line-height: 1.04; letter-spacing: -0.03em; max-width: 13ch; color: var(--ink); }
  .hero--photo .hero__lead { font-size: 17px; line-height: 1.55; margin-top: var(--s-4); max-width: 40ch; color: var(--muted); }
  .hero--photo .btn-row { margin-top: var(--s-6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .hero--photo .btn-row .btn { width: 100%; justify-content: center; }
  html:is([data-buttons="arrow"], [data-buttons="block"]) .hero--photo .btn--secondary { border: 1px solid var(--line-strong); border-radius: var(--r-btn, 8px); text-decoration: none; color: var(--ink); min-height: 48px; }
  .hero__proof { color: var(--muted); }
  .hero__proof strong { color: var(--ink); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .hero--photo > .hero__bg { aspect-ratio: 16 / 9; }
}
@media (max-width: 1023px) {
  .nav__bar { display: flex; align-items: center; justify-content: flex-start; }
  .nav__logo { margin-right: auto; }
  .nav__call { margin-left: 0; }
  .hero--photo .btn-row { align-items: stretch; }
  .hero--photo .btn-row .btn { min-height: 48px; height: 48px; }
}
/* call + menu sit together at the right edge: the logo takes the free space, nothing else pushes */
@media (max-width: 1023px) {
  :root .nav:not(.is-open) .nav__actions, :root .nav:not(.is-open) .nav__actions + .nav__call,
  :root:has(> body > nav.actionbar) .nav:not(.is-open) .nav__call + .nav__toggle, :root .nav .nav__call + .nav__toggle { margin-left: 0; }
}

/* ---------- phones: sections take their content's height, with one even gap between them ---------- */
@media (max-width: 767px) {
  main > section:not(.hero), main > section:not(.hero)[style] {
    height: auto !important; min-height: 0 !important; --h: 1; --hm: 1;
    padding-top: 64px !important; padding-bottom: 48px !important; }
  main > section:not(.hero) > .wrap { height: auto !important; }
  footer.closing { height: auto !important; min-height: 0 !important; padding-top: 64px !important; padding-bottom: calc(40px + var(--bar, 0px)) !important; }
  .section-head { margin-bottom: 28px; }
  .split-photo { margin-top: 28px; }
  .stats { margin-top: 32px; }
  .reviews-foot { margin-top: 20px; }
}

/* =====================  HERO OPTIONS  (html[data-hero]: a | b | c)  ===================== */
.hero__alt { display: none; }

/* ---- A: clean split. Desktop: words left on the dark ground, the photo as a rounded panel right ---- */
@media (min-width: 1024px) {
  html[data-hero="a"] .hero--photo, html[data-hero="a"] .hero--photo[data-tone] { background: var(--p-bg); }
  html[data-hero="a"] .hero--photo::after { display: none; }
  html[data-hero="a"] .hero--photo > .hero__bg { left: auto; right: max(var(--gut), (100% - 1280px) / 2); top: calc(var(--nav) + 40px); bottom: 40px;
    width: calc((min(100% - 2 * var(--gut), 1280px) - 24px) / 2); height: auto; border-radius: 20px; object-position: 55% 50%; }
  html[data-hero="a"] .hero--photo .hero__facts { display: none; }
  html[data-hero="a"] .hero--photo > .wrap > .hero-text { justify-content: center; }
  html[data-hero="a"] .hero--photo h1 { font-size: clamp(48px, 4.6vw, 68px); }
}

/* ---- B: photo banner. Phone: the photo edge to edge under the header, the words beneath. Desktop: full-bleed photo, words left ---- */
@media (max-width: 1023px) {
  html[data-hero="b"] main > section.hero.hero--photo { padding-top: var(--nav); }
  html[data-hero="b"] .hero--photo > .hero__bg { order: 0; width: 100%; margin: 0; border-radius: 0; aspect-ratio: 4 / 3; }
  html[data-hero="b"] .hero--photo > .wrap { order: 1; padding-top: var(--s-6); }
}
@media (min-width: 640px) and (max-width: 1023px) { html[data-hero="b"] .hero--photo > .hero__bg { aspect-ratio: 16 / 8; } }

/* ---- C: full screen. Phone: a tall photograph fills the screen, the words sit on its dark foot. Desktop: words centred ---- */
@media (max-width: 1023px) {
  html[data-hero="c"] main > section.hero.hero--photo, html[data-hero="c"] main > section.hero.hero--photo[data-tone] {
    min-height: 100svh; justify-content: flex-end; padding: var(--nav) 0 var(--s-7); background: #05060a; --ink: #fff; --muted: rgba(255, 255, 255, .82); color: #fff; }
  html[data-hero="c"] .hero--photo > .hero__bg { display: none; }
  html[data-hero="c"] .hero--photo > .hero__alt { display: block; position: absolute; inset: var(--nav) 0 0 0; width: 100%; height: calc(100% - var(--nav)); object-fit: cover; object-position: 50% 30%; z-index: 0; }
  html[data-hero="c"] .hero--photo::after { display: block; top: var(--nav); z-index: 0;
    background: linear-gradient(180deg, rgba(5, 6, 10, 0) 0%, rgba(5, 6, 10, .15) 35%, rgba(5, 6, 10, .82) 62%, #05060a 92%); }
  html[data-hero="c"] .hero--photo > .wrap { position: relative; z-index: 1; }
  html[data-hero="c"] .hero--photo h1 { color: #fff; font-size: clamp(34px, 9vw, 48px); }
  html[data-hero="c"] .hero--photo .hero__lead { color: rgba(255, 255, 255, .85); }
  html[data-hero="c"] .hero__proof strong { color: #fff; }
}
@media (min-width: 1024px) {
  html[data-hero="c"] .hero--photo::after { background: linear-gradient(0deg, rgba(5, 6, 8, .92) 0%, rgba(5, 6, 8, .6) 38%, rgba(5, 6, 8, .15) 70%, rgba(5, 6, 8, .05) 100%); }
  html[data-hero="c"] .hero--photo > .wrap > .hero-text { justify-content: flex-end; align-items: center; text-align: center; padding-bottom: var(--s-7); }
  html[data-hero="c"] .hero--photo .hero__text { width: min(820px, 100%); margin: 0 auto; display: grid; justify-items: center; }
  html[data-hero="c"] .hero--photo h1 { max-width: 18ch; margin-inline: auto; font-size: clamp(52px, 5vw, 76px); }
  html[data-hero="c"] .hero--photo .hero__lead { margin-inline: auto; max-width: 56ch; }
  html[data-hero="c"] .hero--photo .btn-row, html[data-hero="c"] .hero__proof { justify-content: center; }
  html[data-hero="c"] .hero--photo .hero__facts { display: none; }
}
@media (min-width: 1024px) {
  html[data-hero="a"] .hero--photo > .hero__bg { height: calc(100% - var(--nav) - 80px); bottom: auto; }
}
@media (max-width: 1023px) {
  /* C: the photograph fills the top of the screen, the words take the dark foot below the car */
  html[data-hero="c"] .hero--photo > .hero__alt { height: 62svh; bottom: auto; object-position: 50% 62%; }
  html[data-hero="c"] .hero--photo::after { top: calc(var(--nav) + 30svh); height: calc(32svh + 4px); bottom: auto;
    background: linear-gradient(180deg, rgba(5, 6, 10, 0) 0%, rgba(5, 6, 10, .7) 60%, #05060a 100%); }
  html[data-hero="c"] .hero--photo > .wrap { margin-top: auto; }
}
/* footer on phones and tablets: the close and the links follow each other with one normal gap,
   never stretched to fill two screens */
@media (max-width: 1023px) {
  footer.closing, footer.closing:has(> .wrap > .closing__cta > .close__media) { --hm: 1; height: auto !important; min-height: 0 !important; }
  footer.closing > .wrap, footer.closing:has(> .wrap > .closing__cta > .close__media) > .wrap {
    display: flex !important; flex-direction: column; gap: 48px; row-gap: 48px; grid-template-rows: none; height: auto !important; }
  footer.closing .closing__cta > .close__media { flex: none; height: 220px; min-height: 0; }
  .socials { margin-top: var(--s-4); }
}

/* ---- C, refined (phones and tablets): one immersive photograph behind everything, the words on its dark foot ---- */
@media (max-width: 1023px) {
  html[data-hero="c"] main > section.hero.hero--photo, html[data-hero="c"] main > section.hero.hero--photo[data-tone] {
    /* tall enough to feel immersive, never taller than the screen, never stretched on large phones */
    min-height: clamp(600px, 100svh, 860px);
    justify-content: flex-end;
    padding: var(--nav) 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
  /* the photograph fills the hero behind the words */
  html[data-hero="c"] .hero--photo > .hero__alt { inset: var(--nav) 0 0 0; height: calc(100% - var(--nav)); object-position: 50% 34%; }
  /* the overlay: clear over the car, then a smooth, darker fall behind the words */
  html[data-hero="c"] .hero--photo::after { top: var(--nav); bottom: 0; height: auto;
    background: linear-gradient(180deg,
      rgba(5, 6, 10, .10) 0%, rgba(5, 6, 10, 0) 18%, rgba(5, 6, 10, .08) 38%,
      rgba(5, 6, 10, .55) 54%, rgba(5, 6, 10, .86) 68%, rgba(5, 6, 10, .96) 84%, #05060a 100%); }
  html[data-hero="c"] .hero--photo > .wrap { margin-top: 0; }
  /* type and rhythm: headline, then a close description, a clear step to the buttons, the rating under them */
  html[data-hero="c"] .hero--photo h1 { font-size: clamp(34px, 9.2vw, 46px); line-height: 1.05; text-shadow: 0 1px 24px rgba(0, 0, 0, .35); }
  html[data-hero="c"] .hero--photo .hero__lead { margin-top: 12px; font-size: 16.5px; line-height: 1.5; max-width: 36ch; color: rgba(255, 255, 255, .86); }
  html[data-hero="c"] .hero--photo .btn-row { margin-top: 26px; gap: 12px; }
  html[data-hero="c"] .hero--photo .btn-row .btn { min-width: 0; white-space: nowrap; }
  html[data-hero="c"] .hero--photo .btn--secondary { background: rgba(5, 6, 10, .35); border-color: rgba(255, 255, 255, .32) !important; color: #fff !important; }
  html[data-hero="c"] .hero__proof { margin-top: 20px; color: rgba(255, 255, 255, .78); }
}
/* small phones (375 and below): the same layout, the buttons a touch tighter so both fit on one row */
@media (max-width: 380px) {
  html[data-hero="c"] .hero--photo .btn-row .btn { padding-inline: 12px; font-size: 15px; gap: 6px; }
  html[data-hero="c"] .hero--photo .hero__lead { font-size: 16px; }
}
/* short phones (landscape, small screens): let the hero grow with its content instead of squeezing it */
@media (max-width: 1023px) and (max-height: 640px) {
  html[data-hero="c"] main > section.hero.hero--photo { min-height: 0; padding-top: calc(var(--nav) + 180px); }
}
/* short phones (SE-size, under 720px tall): the words start higher, so the dark fall starts higher too */
@media (max-width: 1023px) and (max-height: 720px) {
  html[data-hero="c"] .hero--photo::after {
    background: linear-gradient(180deg, rgba(5, 6, 10, .10) 0%, rgba(5, 6, 10, 0) 14%, rgba(5, 6, 10, .18) 30%,
      rgba(5, 6, 10, .66) 44%, rgba(5, 6, 10, .9) 60%, rgba(5, 6, 10, .97) 80%, #05060a 100%); }
  html[data-hero="c"] .hero--photo > .hero__alt { object-position: 50% 24%; }
}

/* ---------- stats strip: sized for the screen it's on ---------- */
@media (max-width: 1023px) {
  .stats { margin-top: 40px !important; padding-top: 4px; }
  .stats > li { padding: 20px 16px 0 0; gap: 4px; }
  .stats > li + li { padding-left: 16px; }
  .stat__fig { font-size: clamp(24px, 6.6vw, 30px); gap: 8px; letter-spacing: -0.02em; }
  .stat__fig .stars { font-size: 12px; }
  .stat__label { font-size: 14px; line-height: 1.4; }
  #mobile .split-photo { margin-top: 32px; }
}
@media (max-width: 380px) {
  .stats > li { padding-right: 12px; }
  .stats > li + li { padding-left: 12px; }
  .stat__fig { font-size: 24px; }
}

/* ---------- section entrance: once, as it scrolls into view ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.reveal-ready .reveal-item { opacity: 0; transform: translateY(18px); }
  html.reveal-ready :is(.split-photo, .ba, #services .frame, .results__side figure).reveal-item { transform: translateY(18px) scale(.98); }
  html.reveal-ready .reveal-item.is-in {
    opacity: 1; transform: none;
    transition: opacity 500ms cubic-bezier(.2, .7, .2, 1), transform 700ms cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--d, 0ms); }
}
/* phones: a split photo keeps a 4:3 shape inside its row instead of 100% height plus a margin (which spilled out) */
@media (max-width: 767px) {
  .split-photo { height: auto !important; min-height: 0 !important; aspect-ratio: 4 / 3; }
  .faq-photo { aspect-ratio: auto; }
}
