/* Home page — editorial layout. Everything is scoped under main.home so the
   shared chrome (header, footer, floating buttons) and other pages are untouched. */

main.home {
  --h-ink: #111316;
  --h-muted: #6b7079;
  --h-line: #e4e6ea;
  --h-soft: #f4f5f7;
  --h-dark: #0e1013;
  --h-accent: #f4511e;
  --h-wa: #128c4a;
  --h-wa-hover: #0e703b;
  --h-ease: cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--h-ink);
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}

:where(main.home) :is(h1, h2, h3) {
  max-width: none;
  margin: 0;
  color: inherit;
  font-weight: 700;
  letter-spacing: -0.03em;
}

:where(main.home) p {
  margin: 0;
}

.h-wrap {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- type ---------- */

.h-display {
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em !important;
  font-weight: 760 !important;
}


.h-title {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.02;
  max-width: 20ch !important;
}

.h-title--xl {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em !important;
}

.h-lead,
.h-sub {
  max-width: 44ch;
  color: var(--h-muted);
  font-size: clamp(1.06rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}

.h-lead {
  margin-top: 28px !important;
}

.h-sub {
  margin-top: 20px !important;
}

/* ---------- buttons & links ---------- */

.h-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

main.home a.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--h-ease);
}

main.home a.h-btn:active {
  transform: scale(0.98);
}

main.home a.h-btn.contact-link .contact-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 0;
}

main.home a.h-btn--dark {
  background: var(--h-ink);
  color: #fff;
}

main.home a.h-btn--dark:hover {
  background: #2b2f36;
  color: #fff;
}

main.home a.h-btn--wa {
  background: var(--h-wa);
  color: #fff;
}

main.home a.h-btn--wa:hover {
  background: var(--h-wa-hover);
  color: #fff;
}

main.home a.h-btn--light {
  background: #fff;
  color: var(--h-ink);
}

main.home a.h-btn--light:hover {
  background: #e9eaec;
  color: var(--h-ink);
}

main.home a.h-btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
}

main.home a.h-btn--ghost:hover {
  border-color: #fff;
  color: #fff;
}

main.home a.h-btn--block {
  width: 100%;
}

.h-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--h-line);
  border-radius: 999px;
  color: var(--h-ink);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.h-link:hover {
  border-color: var(--h-ink);
  background: var(--h-soft);
}

/* ---------- hero ---------- */

/* Wide (2.5:1) banners run the full content width; heading and CTAs sit in a
   row underneath, heading left, lead and buttons right. */
.h-hero {
  padding: clamp(20px, 2.6vw, 36px) 0 0;
}

.h-hero-grid {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  gap: 20px clamp(32px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(32px, 4.4vw, 60px);
}

/* Hero contact buttons: icon disc + two-line label. The call disc rings —
   the handset rocks side to side and two sound arcs blink, then it rests. */
.h-hero-copy .h-actions {
  margin-top: 0;
}

:is(main.home, .package-dialog) a.h-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 8px 28px 8px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--h-ease);
}

/* the package dialog lives outside main.home but reuses the call button */
.package-dialog {
  --h-ink: #111316;
  --h-line: #e4e6ea;
  --h-accent: #f4511e;
  --h-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.package-dialog .package-dialog-foot a.h-cta {
  display: flex;
  width: 100%;
}

:is(main.home, .package-dialog) a.h-cta:active {
  transform: scale(0.98);
}

:is(main.home, .package-dialog) a.h-cta--call {
  background: var(--h-ink);
  color: #fff;
}

:is(main.home, .package-dialog) a.h-cta--call:hover {
  background: #2b2f36;
  color: #fff;
}

:is(main.home, .package-dialog) a.h-cta--wa {
  border-color: var(--h-line);
  background: #fff;
  color: var(--h-ink);
}

:is(main.home, .package-dialog) a.h-cta--wa:hover {
  border-color: var(--h-ink);
  color: var(--h-ink);
}

.h-cta-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
}

.h-cta--call .h-cta-icon {
  position: relative;
  background: var(--h-accent);
}

.h-cta--call .h-cta-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: h-ring-halo 2.6s ease-out infinite;
  pointer-events: none;
}

.h-cta--wa .h-cta-icon {
  background: #25d366;
}

.h-cta-icon svg {
  width: 24px;
  height: 24px;
}

.h-cta--wa .h-cta-icon svg {
  width: 26px;
  height: 26px;
}

.h-cta-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.h-cta-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.68;
}

.h-cta-value {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.h-ring-handset {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: h-ring 2.6s ease-in-out infinite;
}

.h-ring-wave {
  opacity: 0;
  animation: h-ring-wave 2.6s ease-out infinite;
}

.h-ring-wave--far {
  animation-delay: 0.12s;
}

@keyframes h-ring {
  0%, 34%, 100% { transform: rotate(0); }
  4% { transform: rotate(-14deg); }
  8% { transform: rotate(12deg); }
  12% { transform: rotate(-10deg); }
  16% { transform: rotate(8deg); }
  20% { transform: rotate(-5deg); }
  24% { transform: rotate(3deg); }
  28% { transform: rotate(0); }
}

@keyframes h-ring-halo {
  0% { box-shadow: 0 0 0 0 rgba(244, 81, 30, 0.5); }
  32%, 100% { box-shadow: 0 0 0 11px rgba(244, 81, 30, 0); }
}

@keyframes h-ring-wave {
  0%, 2% { opacity: 0; }
  7%, 26% { opacity: 1; }
  38%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .h-ring-handset,
  .h-ring-wave,
  .h-cta--call .h-cta-icon::after {
    animation: none;
  }

  .h-ring-wave {
    opacity: 1;
  }
}

/* Under the hero buttons: the week's hours like a door sign (today's row in ink,
   with a live "open now" note from home.js) and the three branches as plain links. */
.h-info {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 16px 40px;
  margin-top: 28px;
  font-size: 0.92rem;
  line-height: 1.5;
}

main.home .h-hours {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 2px 20px;
  margin: 0;
  color: var(--h-muted);
}

.h-hours > div {
  display: contents;
}

main.home .h-hours dt,
main.home .h-hours dd {
  margin: 0;
  font-weight: 400;
}

.h-hours dd {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.h-hours .is-today dt,
.h-hours .is-today dd {
  color: var(--h-ink);
  font-weight: 600;
}

.h-hours-now {
  margin-left: 8px;
  font-weight: 500;
}

[data-state="open"] .h-hours-now {
  color: #15803d;
}

[data-state="closed"] .h-hours-now {
  color: var(--h-muted);
}

main.home .h-info-title {
  margin-bottom: 2px;
  color: var(--h-ink);
  font-weight: 600;
}

/* branches read like the hours table: district on the left, its branches as ink links */
main.home .h-branch-list a {
  color: var(--h-ink);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

main.home .h-branch-list a:hover,
main.home .h-branch-list a:focus-visible {
  color: var(--h-accent);
}

@media (max-width: 1180px) {
  .h-info {
    grid-template-columns: 1fr;
  }
}

.h-hero-visual {
  min-width: 0;
}

main.home .hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--h-soft);
  box-shadow: none;
}

main.home .hero-carousel-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

main.home .hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
}

main.home .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1983 / 793;
}

/* bottom centre: the only strip that stays clear of copy on all three banners */
.h-hero-controls {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(17, 19, 22, 0.52);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

main.home .hero-carousel-control {
  position: static;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 0;
  transform: none;
  opacity: 1;
  transition: background-color 0.2s ease;
}

main.home .hero-carousel-control:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: none;
}

main.home .hero-slider-dots {
  display: flex;
  gap: 6px;
  margin: 0 4px;
}

main.home .hero-slider-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.45s var(--h-ease), background-color 0.3s ease;
}

main.home .hero-slider-dots button.active {
  width: 22px;
  background: #fff;
}

/* each fact on its own soft panel; space between them instead of rules */
.h-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(40px, 5vw, 64px) 0 0;
}

.h-facts > div {
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--h-soft);
}

.h-facts dt {
  color: var(--h-muted);
  font-size: 0.9rem;
}

.h-facts dd {
  margin: 6px 0 0;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ---------- services story (sticky media) ---------- */

.h-story {
  padding: clamp(96px, 12vw, 176px) 0 clamp(40px, 6vw, 80px);
}

/* partner logos: two identical sets slide left forever; hovering the strip stops it */
.h-partners {
  padding-top: clamp(64px, 8vw, 112px);
}

.h-partners-title {
  color: var(--h-muted);
  font-size: 0.98rem;
  font-weight: 500;
}

.h-partners-viewport {
  margin-top: 20px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.h-partners-track {
  display: flex;
  width: max-content;
  animation: h-partners-slide 48s linear infinite;
}

.h-partners-viewport:hover .h-partners-track {
  animation-play-state: paused;
}

.h-partners-set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  margin: 0;
  padding: 14px clamp(40px, 5vw, 72px) 14px 0;
  list-style: none;
}

.h-partners-set li {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  height: 48px;
}

.h-partners-set img {
  display: block;
  max-width: none;
}

@keyframes h-partners-slide {
  to {
    transform: translateX(-50%);
  }
}

.h-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(40px, 6vw, 80px);
}

.h-story-media {
  position: relative;
}

/* the pin spans the visible area under the fixed header and centres the image in it */
.h-story-pin {
  --h-header: 88px;
  position: sticky;
  top: var(--h-header);
  display: flex;
  align-items: center;
  height: calc(100vh - var(--h-header));
}

.h-story-stage {
  position: relative;
  height: min(calc(100vh - var(--h-header) - 64px), 80vh);
  max-width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  /* clip, unlike hidden, cannot be scrolled when something inside takes focus */
  overflow: clip;
  border-radius: 28px;
  background: var(--h-dark);
}

.h-story-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.9s ease, transform 1.6s var(--h-ease);
}

.h-story-frame.is-active {
  opacity: 1;
  transform: scale(1);
}

.h-story-frame picture,
.h-story-frame img {
  width: 100%;
  height: 100%;
}

.h-story-frame img {
  object-fit: cover;
}

/* idle frames sit on top of each other at opacity 0 — only the active one takes the pointer */
.h-story-frame {
  pointer-events: none;
}

.h-story-frame.is-active {
  pointer-events: auto;
}

/* ---------- UV torch on a car's rear quarter (second story frame) ----------
   A handheld UV-A torch throws a round beam on dark paint; home.js walks it over the
   panel (or follows the pointer). Inside the beam the refinish shows: a replaced door
   glowing up to its shut line, filler and the blended repaint round it, overspray on the
   lamp edge. Marks share the campaign page's white-lilac tone. */

.h-story-frame--uv {
  background: #141118;
}

.h-uv {
  --x: 70%;
  --y: 52%;
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
  isolation: isolate;
  background: #141118;
  cursor: crosshair;
  touch-action: pan-y;
}

.h-uv-car,
.h-uv-marks {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* the beam on the paint: purple wash, a hot core where the diodes reflect, and the
   faint rim a torch's reflector draws round its spot */
.h-uv-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle 5cqw at var(--x) var(--y), rgba(240, 226, 255, 0.3), rgba(240, 226, 255, 0) 100%),
    radial-gradient(circle 27cqw at var(--x) var(--y), rgba(0, 0, 0, 0) 94%, rgba(196, 150, 255, 0.2) 97.5%, rgba(0, 0, 0, 0) 100%),
    radial-gradient(circle 40cqw at var(--x) var(--y), rgba(150, 70, 235, 0.48), rgba(120, 50, 210, 0.17) 52%, rgba(0, 0, 0, 0) 100%);
}

.h-uv-marks {
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle 27cqw at var(--x) var(--y), #000 52%, transparent 100%);
  mask-image: radial-gradient(circle 27cqw at var(--x) var(--y), #000 52%, transparent 100%);
}

/* same box as the drawing's viewBox (always width-bound), so tags sit on their marks */
.h-uv-tags {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  width: 100%;
  aspect-ratio: 400 / 500;
  transform: translateY(-50%);
  pointer-events: none;
}

/* findings are marked the way an inspector notes them on a photo: a probe ring on the
   spot, a hairline leader, and a flat label with the reading */
.h-uv-tag {
  position: absolute;
  width: 0;
  height: 0;
  opacity: var(--o, 0);
}

.h-uv-tag::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -0.5px;
  width: 1px;
  height: 26px;
  background: rgba(243, 238, 252, 0.75);
}

.h-uv-tag::after {
  content: "";
  position: absolute;
  top: -3.5px;
  left: -3.5px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(243, 238, 252, 0.9);
  border-radius: 50%;
}

.h-uv-tag-text {
  position: absolute;
  bottom: 26px;
  left: -0.5px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 4px 7px;
  background: #0b0a0e;
  color: #f4f0fb;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  transform: translateY(calc((1 - var(--o, 0)) * 3px));
}

.h-uv-tag-val {
  color: #aea6bd;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* near the right edge the label hangs to the left of its leader */
.h-uv-tag--end .h-uv-tag-text {
  right: -0.5px;
  left: auto;
}

/* leader running down, label underneath */
.h-uv-tag--below::before {
  top: 0;
  bottom: auto;
}

.h-uv-tag--below .h-uv-tag-text {
  top: 26px;
  bottom: auto;
  transform: translateY(calc((1 - var(--o, 0)) * -3px));
}


/* ---------- road test in cutaway (third story frame) ----------
   A silver sedan drives a rough road at night; home.js runs the wheels and a two-axle
   spring-damper model (the rear damper is worn) and a chart recorder below plots both axles.
   Phones see the road scene only (the drawing is top-anchored). */

.h-story-frame--road {
  background: #131117;
}

.h-road {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #131117;
}

.h-road-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}


/* ---------- ignition check and OBD scan (fourth story frame) ----------
   The cluster runs its bulb check and needle sweep and looks clean; the scan tool on the
   OBD port then finds a stored airbag deployment and a mileage mismatch (home.js). */

.h-story-frame--obd {
  background: #0e0d10;
}

.h-obd {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0e0d10;
}

.h-obd-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* dial graphics are unlit until the ignition comes on */
.h-obd-dial {
  color: #34333a;
  transition: color 0.35s ease;
}

.h-obd.is-lit .h-obd-dial {
  color: #ecebf0;
}

.h-obd-lamp {
  color: #1f1e23;
}

.h-obd-lamp--red.is-on {
  color: #ff3d2e;
}

.h-obd-lamp--amber.is-on {
  color: #ffab12;
}

/* the scan tool's colour TFT */
.h-obd-lcd {
  color: #8796a5;
  fill: #e6edf3;
}

.h-obd-bar {
  fill: #172330;
}

.h-obd-rule {
  stroke: #1d2a37;
  stroke-width: 1;
}

.h-obd-inv {
  fill: #213d5c;
}

.h-obd-head,
.h-obd-on {
  fill: #ffffff;
}

.h-obd-ok {
  fill: #3ddc84;
}

.h-obd-bad {
  fill: #ff5a46;
}

.h-obd-dim {
  fill: #8796a5;
}

/* ---------- sample report on a clipboard (first story frame) ----------
   The report hangs on a clipboard. On hover the board straightens and comes
   closer; pages lift from the bottom edge and turn over the clip (home.js).
   Without JS it is simply the board with page one. */

.h-story-frame--report {
  background: #dfe1e4;
}

.h-report {
  position: absolute;
  inset: 0;
  container-type: size;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.h-report:focus-visible {
  box-shadow: inset 0 0 0 3px var(--h-accent);
}

.h-report-board {
  --pw: min(55cqh, 80cqw);
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--pw) * 1.08);
  height: calc(var(--pw) * 1.6506);
  margin: calc(var(--pw) * -0.8253) 0 0 calc(var(--pw) * -0.54);
  border-radius: calc(var(--pw) * 0.03);
  background: #222428;
  /* hairline rim, a lit top edge, the board's thickness and its shadow on the surface */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 0 1px #141518,
    0 3px 0 #131416,
    0 4px 3px rgba(0, 0, 0, 0.22),
    0 38px 64px -34px rgba(0, 0, 0, 0.5);
  transform: rotate(-3.5deg) scale(0.78);
  transition: transform 1.1s var(--h-ease);
}

.h-report.is-focus .h-report-board {
  transform: translateY(calc(var(--pw) * -0.0275)) rotate(0deg) scale(1);
}

.h-report-pages {
  position: absolute;
  /* above the brand pressed into the board, so a sheet being torn away passes over it */
  z-index: 1;
  top: calc(var(--pw) * 0.145);
  left: calc(var(--pw) * 0.04);
  width: var(--pw);
  height: calc(var(--pw) * 1.4156);
  perspective: 1700px;
  perspective-origin: 50% 0;
}

.h-report-page {
  position: absolute;
  inset: 0;
  transition: transform 0.5s var(--h-ease);
}

.h-report-sheet {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

/* what a torn page leaves under the jaw: its ragged edge throws a hairline shadow.
   Its box still spans the whole sheet, so it must not catch clicks meant for the page below. */
.h-report-page.is-torn {
  filter: drop-shadow(0 1px 0.6px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.h-report.is-focus .h-report-page.is-current {
  cursor: zoom-in;
}

.h-report.is-zoomed .h-report-page.is-current {
  cursor: zoom-out;
}

.h-report.is-zoomed {
  touch-action: none;
}

.h-report.is-zoomed .h-report-page.is-current img {
  transform: scale(2.4);
}

.h-report.is-panning .h-report-page.is-current img {
  transition: none;
}

/* ---- tearing a page off (home.js) ----
   Torn pages keep a ragged stub under the jaw (a clip-path set from JS); the rest of the
   sheet is drawn by .h-report-tear: strips bent like paper, clipped to the same ragged
   line, carried off as one piece with a soft shadow on the board below it. */
.h-report-tear {
  position: absolute;
  inset: 0;
  z-index: 200;
  perspective: 1500px;
  perspective-origin: 50% 0;
  pointer-events: none;
}

.h-report-tear-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  background: #fff;
  transform-origin: 50% 0;
}

.h-report-tear-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--shade, 0);
}

.h-story-frame .h-report-tear-strip img {
  position: absolute;
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: fill;
}

.h-report-tear-shadow {
  position: absolute;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.32);
  filter: blur(14px);
  transform-origin: 0 2.2%;
  pointer-events: none;
}

.h-story-frame .h-report-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  transform-origin: 50% 50%;
  transition: transform 0.6s var(--h-ease);
}

.h-report-clip {
  position: absolute;
  top: calc(var(--pw) * 0.006);
  left: 50%;
  z-index: 300;
  width: calc(var(--pw) * 0.46);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, 0.3)) drop-shadow(0 6px 6px rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

/* the dealer's name pressed into the board below the paper */
.h-report-brand {
  position: absolute;
  right: 0;
  bottom: calc(var(--pw) * 0.03);
  left: 0;
  color: #2c2f34;
  font-size: calc(var(--pw) * 0.036);
  font-weight: 800;
  letter-spacing: 0.32em;
  line-height: 1;
  text-align: center;
  text-indent: 0.32em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 -1px 0 rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.h-report:not(.is-ready) .h-report-page:nth-child(n + 2) {
  display: none;
}

.h-report-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 400;
  color: rgba(17, 19, 22, 0.62);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.h-report:not(.is-ready) .h-report-hint,
.h-report.is-focus .h-report-hint {
  opacity: 0;
}

.h-report-hint-touch {
  display: none;
}

@media (hover: none) {
  .h-report-hint-pointer {
    display: none;
  }

  .h-report-hint-touch {
    display: inline;
  }
}

/* the pager stands in the free space right of the board, clear of the paper */
.h-report-ui {
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(14, 16, 19, 0.86);
  color: #fff;
  opacity: 0;
  transform: translate(14px, -50%);
  transition: opacity 0.4s ease, transform 0.6s var(--h-ease);
  pointer-events: none;
}

.h-report.is-focus .h-report-ui {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
}

.h-report-nav,
.h-report-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.h-report-nav:hover,
.h-report-nav:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.h-report-nav:disabled {
  opacity: 0.3;
  cursor: default;
  background: transparent;
}

.h-report-count {
  padding: 6px 0;
  font-size: 0.76rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-align: center;
}

.h-report-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 400;
  background: rgba(14, 16, 19, 0.86);
  color: #fff;
  opacity: 0;
  pointer-events: none;
}

@media (hover: none) {
  .h-report.is-focus .h-report-close {
    opacity: 1;
    pointer-events: auto;
  }
}

/* wide, short stage (phones) */
@container (orientation: landscape) {
  .h-report-board {
    --pw: min(54cqh, 80cqw);
  }
}

.h-story-steps {
  display: grid;
}

.h-story-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72vh;
  opacity: 0.22;
  transition: opacity 0.6s ease;
}

/* the active step's copy settles in with a short lift; idle steps wait slightly lower */
.h-story-step > * {
  transform: translateY(10px);
  transition: transform 0.8s var(--h-ease);
}

.h-story-step.is-active > * {
  transform: none;
}

.h-story-step:first-child {
  min-height: 56vh;
  justify-content: flex-start;
  padding-top: 8vh;
}

.h-story-step.is-active {
  opacity: 1;
}

.h-story-step h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem) !important;
  line-height: 1.05 !important;
}

.h-story-step p {
  max-width: 38ch;
  margin-top: 18px;
  color: var(--h-muted);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.6;
}

/* ---------- statement with a workshop dialogue ----------
   A dark workshop like the story frames: the inspector's torch finds the weld on a
   cut-and-shut car, then the buyer and the inspector speak in turn (home.js). Lines are
   flat dark labels, the same voice as the inspection callouts. */

.h-statement {
  padding: clamp(80px, 10vw, 150px) 0;
}

.h-statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.h-statement .h-title {
  max-width: 13ch !important;
}

.h-talk {
  position: relative;
  aspect-ratio: 520 / 300;
  overflow: hidden;
  border-radius: 28px;
  background: #141217;
  container-type: inline-size;
}

.h-talk-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.h-talk-bubble {
  position: absolute;
  bottom: 67%;
  max-width: 46%;
  margin: 0;
  padding: 0.62em 0.85em;
  border: 1px solid rgba(243, 238, 252, 0.14);
  border-radius: 6px;
  background: #0b0a0e;
  color: #f4f0fb;
  font-size: clamp(0.74rem, 2.4cqi, 1.02rem);
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.5s var(--h-ease);
}

.h-talk-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  border: 8px solid transparent;
  border-top-color: #0b0a0e;
  border-bottom: 0;
}

.h-talk-bubble--buyer {
  left: 3%;
  transform-origin: 14% 100%;
}

.h-talk-bubble--buyer::after {
  left: 12%;
  border-left-width: 2px;
}

.h-talk-bubble--usta {
  right: 3%;
  transform-origin: 52% 100%;
}

.h-talk-bubble--usta::after {
  right: 48%;
  border-right-width: 2px;
}

.h-talk-bubble.is-on {
  opacity: 1;
  transform: none;
}

/* words appear as they are said */
.h-talk-bubble .w {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.h-talk-bubble .w.is-on {
  opacity: 1;
}

/* ---------- packages ---------- */

/* softer than pure black on white: slate instead of black, warm white instead of white */
.h-packs {
  --pk-slate: #26313e;
  --pk-paper: #fbfaf8;
  padding: clamp(88px, 11vw, 150px) 0;
  background: #f2f1ee;
  color: #262a30;
}

.h-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.h-pack-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 10px;
  border-radius: 32px;
  background: var(--pk-paper);
}

.h-pack {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  border-radius: 24px;
}

.h-pack + .h-pack:not(.h-pack--pro)::before,
.h-pack--pro + .h-pack::before {
  content: none;
}

.h-pack:not(.h-pack--pro) + .h-pack:not(.h-pack--pro) {
  box-shadow: inset 1px 0 0 var(--h-line);
  border-radius: 0;
}

.h-pack--pro {
  background: var(--pk-slate);
  color: #f3f1ed;
}

.h-pack h3 {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
}

.h-pack-flag {
  position: absolute;
  top: 26px;
  right: 22px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
}

.h-pack .package-price {
  margin-top: 18px !important;
  font-size: clamp(2.1rem, 2.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.h-pack .package-desc {
  min-height: 4.8em;
  margin-top: 14px !important;
  color: var(--h-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

main.home .h-pack .package-price {
  color: inherit;
}

main.home .h-pack .feature-list li {
  color: inherit;
}

.h-pack--pro .package-desc {
  color: rgba(255, 255, 255, 0.64);
}

main.home .h-pack .feature-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

main.home .h-pack .feature-list li {
  padding: 0;
  border: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

main.home .h-pack .feature-list li::before {
  content: none;
  display: none;
}


/* the card's only action now (calls live once, under the rail) */
main.home .h-pack .package-details {
  margin: auto 0 0;
  padding: 26px 0 0;
  border: 0;
  background: none;
}

main.home .h-pack .package-details summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--h-line);
  border-radius: 999px;
  background: none;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

main.home .h-pack .package-details summary:hover {
  border-color: var(--h-ink);
}

main.home .h-pack--pro .package-details summary {
  border-color: rgba(255, 255, 255, 0.24);
}

main.home .h-pack--pro .package-details summary:hover {
  border-color: #fff;
}

main.home .h-pack .package-details summary::-webkit-details-marker,
main.home .h-pack .package-details summary::before,
main.home .h-pack .package-details summary::after {
  display: none;
  content: none;
}

.h-pack-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: clamp(32px, 4vw, 48px);
}

.h-pack-contact p {
  max-width: 34ch;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

main.home .h-pack-actions {
  margin-top: 0;
}

main.home .h-packs a.h-cta--call,
.package-dialog .package-dialog-foot a.h-cta--call {
  background: #26313e;
}

main.home .h-packs a.h-cta--call:hover,
.package-dialog .package-dialog-foot a.h-cta--call:hover {
  background: #33414f;
}

/* ---------- process ---------- */

.h-process {
  padding: clamp(88px, 11vw, 150px) 0;
}

.h-timeline {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 44px 0 0;
  list-style: none;
}

.h-timeline::before,
.h-timeline::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  height: 1px;
  background: var(--h-line);
}

.h-timeline::before {
  right: 0;
}

.h-timeline::after {
  width: 100%;
  height: 2px;
  top: 4.5px;
  background: var(--h-accent);
  transform: scaleX(var(--p));
  transform-origin: 0 50%;
}

.h-timeline li {
  position: relative;
  opacity: 0.35;
  transition: opacity 0.5s ease;
}

.h-timeline li::before {
  content: "";
  position: absolute;
  top: -44px;
  left: 0;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 1px solid #c7cbd1;
  border-radius: 999px;
  background: #fff;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.h-timeline li.is-on {
  opacity: 1;
}

.h-timeline li.is-on::before {
  border-color: var(--h-accent);
  background: var(--h-accent);
}

.h-timeline h3 {
  font-size: clamp(1.3rem, 1.9vw, 1.65rem) !important;
  line-height: 1.1 !important;
}

.h-timeline p {
  max-width: 28ch;
  margin-top: 12px;
  color: var(--h-muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* ---------- branches ---------- */

.h-local {
  padding: clamp(88px, 11vw, 150px) 0;
  background: var(--h-soft);
}

.h-local-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
}

.h-local-copy {
  display: grid;
  gap: 16px;
  color: var(--h-muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.h-local-copy a {
  color: var(--h-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.h-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}

.h-tile {
  display: grid;
  gap: 16px;
  color: var(--h-ink);
}

/* every branch photo is a landscape shot of the storefront, so the frame is landscape too */
.h-tile picture {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  background: var(--h-line);
}

.h-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--h-ease);
}

.h-tile:hover img {
  transform: scale(1.04);
}

.h-tile-text {
  display: grid;
  gap: 4px;
  padding: 0 4px;
}

.h-tile-text strong {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.h-tile:hover .h-tile-text strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.h-tile-text span {
  color: var(--h-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* ---------- faq ---------- */

.h-faq {
  padding: clamp(88px, 11vw, 150px) 0;
}

.h-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.h-faq-grid > .h-title {
  position: sticky;
  top: 120px;
  max-width: 12ch !important;
}

/* each question on its own soft panel, no rules between them */
.h-faq-list {
  display: grid;
  gap: 10px;
}

.h-faq-list details {
  padding: 0 26px;
  border-radius: 20px;
  background: var(--h-soft);
  transition: background-color 0.25s ease;
}

.h-faq-list details[open] {
  background: #eef0f3;
}

.h-faq-list details::details-content {
  height: 0;
  overflow: hidden;
  transition: height 0.45s var(--h-ease), content-visibility 0.45s allow-discrete;
}

.h-faq-list details[open]::details-content {
  height: auto;
}

.h-faq-list summary {
  position: relative;
  display: block;
  padding: 22px 40px 22px 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.h-faq-list summary::-webkit-details-marker {
  display: none;
}

.h-faq-list summary::before,
.h-faq-list summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 16px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--h-ease);
}

.h-faq-list summary::after {
  transform: rotate(90deg);
}

.h-faq-list details[open] summary::after {
  transform: rotate(0deg);
}

.h-faq-list details p {
  max-width: 58ch;
  padding: 0 40px 24px 0;
  color: var(--h-muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.h-faq-list details p a {
  color: var(--h-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- contact (dark) ---------- */

.h-contact {
  padding: clamp(88px, 11vw, 150px) 0 clamp(64px, 8vw, 110px);
  background: var(--h-dark);
  color: #fff;
}

.h-contact .h-title {
  max-width: 22ch !important;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

main.home a.h-bignum {
  display: inline-block;
  margin-top: clamp(20px, 3vw, 32px);
  color: #fff;
  font-size: clamp(2.4rem, 6.2vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

main.home a.h-bignum:hover {
  color: var(--h-accent);
}

.h-facts--contact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.h-facts--contact > div {
  background: rgba(255, 255, 255, 0.07);
}

.h-facts--contact dt {
  color: rgba(255, 255, 255, 0.5);
}

.h-facts--contact dd {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.h-facts--contact a {
  color: #fff;
}

/* ---------- motion ---------- */

.js-motion main.home [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 1s ease, transform 1.2s var(--h-ease), filter 1s ease;
}

.js-motion main.home [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}


@media (prefers-reduced-motion: reduce) {
  main.home *:not(.h-story-frame, .h-story-frame *, [data-talk], [data-talk] *),
  main.home *:not(.h-story-frame, .h-story-frame *, [data-talk], [data-talk] *)::before,
  main.home *:not(.h-story-frame, .h-story-frame *, [data-talk], [data-talk] *)::after {
    animation: none !important;
    transition: none !important;
  }

  .js-motion main.home [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .h-story-step > * {
    transform: none;
  }

  /* no sliding: one set of logos that can be swiped through instead */
  .h-partners-viewport {
    overflow-x: auto;
  }

  .h-partners-set[aria-hidden] {
    display: none;
  }

}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .h-pack-rail {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 42%);
    gap: 12px;
    margin-inline: calc((100vw - 100%) / -2);
    padding: 0 calc((100vw - 100%) / 2) 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    /* snap each card to the page gutter, not to the screen edge (a % here would
       resolve against the rail itself and come out as zero) */
    scroll-padding-inline: 24px;
    scrollbar-width: none;
    background: none;
    border-radius: 0;
  }

  .h-pack-rail::-webkit-scrollbar {
    display: none;
  }

  .h-pack,
  .h-pack:not(.h-pack--pro) + .h-pack:not(.h-pack--pro) {
    border-radius: 24px;
    box-shadow: none;
    background: var(--pk-paper);
    scroll-snap-align: start;
  }

  .h-pack--pro {
    background: var(--pk-slate);
  }
}

@media (max-width: 900px) {
  .h-statement-grid {
    grid-template-columns: 1fr;
  }

  .h-statement .h-title {
    max-width: 18ch !important;
  }

  .h-talk {
    border-radius: 20px;
  }

  .h-wrap {
    width: calc(100% - 32px);
  }

  .h-pack-rail {
    scroll-padding-inline: 16px;
  }

  .h-hero-grid,
  .h-local-head,
  .h-faq-grid {
    grid-template-columns: 1fr;
  }

  .h-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .h-facts > div {
    padding: 18px 20px;
  }

  .h-facts--contact {
    grid-template-columns: 1fr;
  }

  /* story: media pins under the header, steps scroll beneath it */
  .h-story-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .h-story-media {
    position: sticky;
    top: 72px;
    z-index: 2;
    padding-bottom: 8px;
    background: #fff;
  }

  .h-story-pin {
    position: static;
    display: block;
    height: auto;
  }

  .h-story-stage {
    position: relative;
    top: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 40vh;
    width: 100%;
    border-radius: 20px;
  }

  .h-story-step,
  .h-story-step:first-child {
    min-height: 46vh;
    justify-content: center;
    padding-top: 0;
  }

  .h-timeline {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 0 0 36px;
  }

  .h-timeline::before,
  .h-timeline::after {
    top: 0;
    bottom: 0;
    left: 5px;
    width: 1px;
    height: auto;
  }

  .h-timeline::after {
    left: 4.5px;
    width: 2px;
    transform: scaleY(var(--p));
    transform-origin: 50% 0;
  }

  .h-timeline li::before {
    top: 4px;
    left: -36px;
  }

  .h-faq-grid > .h-title {
    position: static;
  }

  .h-tiles {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 76%;
    gap: 12px;
    margin-inline: -16px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }

  .h-tiles::-webkit-scrollbar {
    display: none;
  }

  .h-tiles li {
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  .h-hero {
    padding-top: 0;
  }

  .h-faq-list details {
    padding: 0 20px;
  }

  .h-partners-set {
    zoom: 0.8;
  }

  /* edge to edge on phones so the banner text stays as large as possible */
  main.home .hero-carousel {
    margin-inline: -16px;
    border-radius: 0;
  }

  .h-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  /* phone: the call and WhatsApp buttons sit side by side, compact */
  .h-hero .h-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  main.home .h-hero a.h-cta {
    gap: 8px;
    min-height: 48px;
    padding: 5px 10px 5px 5px;
  }

  .h-hero .h-cta-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .h-hero .h-cta-icon svg {
    width: 19px;
    height: 19px;
  }

  .h-hero .h-cta--wa .h-cta-icon svg {
    width: 21px;
    height: 21px;
  }

  .h-hero .h-cta-text {
    gap: 2px;
  }

  .h-hero .h-cta-label {
    font-size: 0.7rem;
  }

  .h-hero .h-cta-value {
    font-size: 0.86rem;
  }

  .h-pack-actions {
    width: 100%;
  }

  main.home a.h-btn {
    padding: 0 18px;
  }

  .h-pack-rail {
    grid-auto-columns: 84%;
  }

}

main.home .h-pack .package-desc {
  padding-bottom: 0;
  border: 0;
}

main.home .h-contact a.h-bignum.contact-link {
  color: #fff;
}

main.home .h-contact a.h-bignum.contact-link:hover {
  color: var(--h-accent);
}

@media (max-width: 640px) {
  /* the banner copy reaches the bottom edge at this size, so the dots move under it */
  main.home .h-hero-controls {
    position: static;
    justify-content: center;
    padding: 12px 0 0;
    transform: none;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  main.home .hero-carousel {
    background: none;
  }

  main.home .hero-slider-dots button {
    background: #c9ccd2;
  }

  main.home .hero-slider-dots button.active {
    background: var(--h-ink);
  }

  main.home .h-hero-controls .hero-carousel-control {
    display: none;
  }
}

/* Native #fragment jumps land the section heading just under the sticky header
   (header ≈ 86px + 24px), cancelling each section's top padding. */
main.home #hizmetler {
  scroll-margin-top: calc(110px - clamp(96px, 12vw, 176px));
}

main.home #paketler,
main.home #surec,
main.home #iletisim {
  scroll-margin-top: calc(110px - clamp(88px, 11vw, 150px));
}

/* too narrow for two side by side: one under the other, still compact */
@media (max-width: 359px) {
  .h-hero .h-actions {
    grid-template-columns: 1fr;
  }
}
