/* ============================================================
   Home page — 2026-10-31, from Jason's call: hero, category, scale,
   brand, Instagram, reviews, contact. Plain layout, no scroll effects.
   ============================================================ */

/* ---------- hero banner ----------
   Back to the rounded banner on 2026-11-01: Jason found the full-screen
   version "too much on the face", especially on a PC. */
.home-hero { padding-top: clamp(1rem, 2.5vw, 1.75rem); }

.banner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: var(--s8);
  padding: clamp(1.75rem, 4.5vw, 4rem);
  border-radius: calc(var(--radius) + 6px);
  background: #0d0d0d;
  overflow: hidden;
}
.banner__where { display: inline-flex; align-items: center; gap: var(--s2); }
.banner__where svg { width: 15px; height: 15px; }
.banner__title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: var(--s4) 0;
}
.banner__title em { font-style: normal; color: var(--amber); display: block; }
.banner__lede { color: var(--ink-2); max-width: 44ch; margin: 0 0 var(--s8); }
.banner__cta { display: flex; flex-wrap: wrap; gap: var(--s3); }

.banner__stage { margin: 0; position: relative; z-index: 0; }
.banner__car {
  width: 112%;
  max-width: none;
  margin-left: -4%;
  height: auto;
  filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.55));
}
.banner__tag {
  display: inline-flex; gap: var(--s2); align-items: baseline;
  margin-top: var(--s2);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.banner__tag b { font-family: var(--mono); color: var(--amber); }

/* Instagram / YouTube, pinned to the banner's bottom-right corner */
.banner { position: relative; }
.banner__social {
  position: absolute; right: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(1rem, 2.5vw, 1.75rem);
  display: flex; gap: var(--s2); z-index: 2;
  animation: riseIn 600ms var(--ease) 1000ms both;
}
.banner__social a {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 40px; padding: 0 14px 0 10px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06); color: #fff;
  font-size: 0.875rem; font-weight: 600;
  transition: background var(--d-micro) var(--ease), border-color var(--d-micro) var(--ease), color var(--d-micro) var(--ease), transform var(--d-micro) var(--ease);
}
.banner__social svg { width: 18px; height: 18px; }
.banner__social a:hover { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.banner__social a:active { transform: scale(0.97); }
.banner .banner__social a[href] { line-height: 1; }

/* ---------- the entrance: once, on load ----------
   A one-time first impression: ~1.2s end to end, CSS keyframes only (off the
   main thread while the page loads), transform / opacity only, the site's
   own --ease. The car drives in and settles on its suspension as the glow
   behind it lights, the headline lines rise out of their masks, and the
   rest follows in reading order. `both` holds each start state from the
   first frame, so nothing flashes in finished and then restarts. */
@keyframes carIn {
  0% { opacity: 0; transform: translate3d(22%, 0, 0); }
  55% { opacity: 1; transform: translate3d(-1.2%, 0, 0); }
  75% { transform: translate3d(0, 1.4%, 0); }
  100% { opacity: 1; transform: none; }
}
/* `backwards`, not `both`: the start state holds from the first frame, and
   once the drive-in ends the transform is released to the cursor-follow */
.banner__car {
  animation: carIn 1100ms var(--ease) 150ms backwards;
  transition: transform 700ms var(--ease);
}
.banner__stage.is-pulled .banner__car { transition-duration: 160ms; }

.banner__stage::before {
  content: ''; position: absolute; inset: -14% -10% -6%;
  background: radial-gradient(50% 50% at 55% 55%, rgba(255, 212, 0, 0.2), transparent 70%);
  z-index: -1;
  translate: var(--gx, 0) var(--gy, 0);
  transition: translate 700ms var(--ease);
  animation: glowIn 900ms var(--ease) 500ms both;
}
.banner__stage.is-pulled::before { transition-duration: 160ms; }
@keyframes glowIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: none; }
}

.banner__title .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.banner__title .ln > span { display: block; animation: lineUp 800ms var(--ease) both; }
.banner__title .ln:nth-child(1) > span { animation-delay: 300ms; }
.banner__title .ln:nth-child(2) > span { animation-delay: 400ms; }
@keyframes lineUp {
  from { transform: translate3d(0, 105%, 0); }
  to { transform: none; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: none; }
}
.banner__copy .banner__where { animation: riseIn 600ms var(--ease) 220ms both; }
.banner__lede { animation: riseIn 700ms var(--ease) 540ms both; }
.banner__cta { animation: riseIn 700ms var(--ease) 640ms both; }
.banner__tag { animation: riseIn 600ms var(--ease) 900ms both; }

/* less motion: a short fade only, nothing travels */
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .banner__car, .banner__stage::before, .banner__title .ln > span,
  .banner__copy .banner__where, .banner__lede, .banner__cta, .banner__tag, .banner__social {
    animation: fadeOnly 200ms ease-out both !important;
    animation-delay: 0ms !important;
  }
}

@media (max-width: 900px) {
  .banner__social { position: static; justify-content: flex-start; }
  .banner { grid-template-columns: 1fr; gap: var(--s4); }
  .banner__stage { order: -1; }
  .banner__car { width: 100%; margin-left: 0; }
}

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); }
.cat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--s3) var(--s3) var(--s4);
  background: #fff;
  border: 1px solid var(--line-grid);
  border-radius: var(--radius);
  transition: box-shadow var(--d-ui) var(--ease), border-color var(--d-ui) var(--ease);
}
.cat:hover { box-shadow: var(--shadow); border-color: var(--line); }
.cat__img {
  width: 100%; aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  background: var(--plate);
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  margin-bottom: var(--s3);
  isolation: isolate;
}
.cat__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform var(--slow) var(--ease); }
.cat:hover .cat__img img { transform: scale(1.05); }
/* a real photo fills the tile; only catalogue shots on white are blended */
.cat__img--photo img { object-fit: cover; mix-blend-mode: normal; }
.cat__soon { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.cat__name { font-weight: 700; font-size: 1rem; }
.cat__n { font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- scale: one timeline, biggest cars to smallest ----------
   Each stop draws its own half of the line either side of its dot, so the
   line always runs exactly through the dots whatever the count. */
.scaleline__ends {
  display: flex; justify-content: space-between;
  max-width: none;
  margin: 0 0 var(--s4);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.scaleline__track {
  list-style: none; margin: 0; padding: 0;
  display: flex;
}
.stop { flex: 1 1 0; min-width: 0; }
.stop__link {
  display: grid; justify-items: center; gap: var(--s3);
  padding: var(--s3) 0 var(--s4);
  border-radius: var(--radius);
  text-align: center;
}
.stop__v {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.25rem, 2.1vw, 1.875rem); letter-spacing: -0.03em; line-height: 1;
  transition: color var(--d-micro) var(--ease), transform var(--d-ui) var(--ease);
}
.stop__rail { position: relative; width: 100%; height: 30px; display: grid; place-items: center; }
.stop__rail::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; margin-top: -1px; background: var(--ink);
}
.stop:first-child .stop__rail::before { left: 50%; }
.stop:last-child .stop__rail::before { right: 50%; }
.stop__dot {
  position: relative;
  width: var(--dot, 16px); height: var(--dot, 16px);
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  transition: background var(--d-micro) var(--ease), transform var(--d-ui) var(--ease), box-shadow var(--d-ui) var(--ease);
}
.stop__n { font-size: 0.8125rem; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) {
  .stop__link:hover .stop__dot { background: var(--amber); transform: scale(1.18); box-shadow: 0 0 0 6px var(--amber-glow); }
  .stop__link:hover .stop__v { transform: translateY(-3px); }
}
.stop__link:focus-visible .stop__dot { background: var(--amber); }
.stop__link:active .stop__dot { transform: scale(0.92); transition-duration: var(--d-micro); }

/* a phone can't fit ten stops: the line scrolls sideways under a finger */
@media (max-width: 900px) {
  .scaleline__track {
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  }
  .scaleline__track::-webkit-scrollbar { display: none; }
  .stop { flex: 0 0 92px; scroll-snap-align: start; }
}

/* ---------- brand: every brand at once, with a sticky hover ----------
   home.js pulls a tile toward the cursor (and its name a little further);
   while pulled it follows quickly, and on leaving it eases home slowly,
   which is what reads as "sticky". */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s4); }
.brand {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 112px; padding: var(--s4);
  background: #fff;
  border: 1px solid var(--line-grid);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 520ms var(--ease), box-shadow var(--d-ui) var(--ease),
              border-color var(--d-ui) var(--ease), background var(--d-micro) var(--ease);
}
.brand > :first-child { transition: transform 520ms var(--ease); }
.brand.is-pulled, .brand.is-pulled > :first-child { transition-duration: 120ms, var(--d-ui), var(--d-ui), var(--d-micro); }
@media (hover: hover) and (pointer: fine) {
  .brand:hover { box-shadow: var(--shadow); border-color: var(--ink); background: var(--amber); }
  .brand:hover .brand__n { color: var(--on-amber); }
}
.brand:active { transform: scale(0.97); }
.brand img { max-width: 120px; max-height: 44px; object-fit: contain; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; }
.brand__n { font-size: 0.8125rem; color: var(--ink-3); }

.sec__note { font-family: var(--body); font-size: 0.5em; font-weight: 500; letter-spacing: 0; color: var(--ink-3); white-space: nowrap; }

/* ---------- Instagram reels and YouTube playlists ---------- */
.social__head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: var(--s4) var(--s8);
  margin-bottom: var(--s6);
}
.social__lede { color: var(--ink-2); margin: var(--s2) 0 0; max-width: 46ch; }

.btn--yt { background: #ff0033; border-color: #ff0033; color: #fff; font-weight: 700; }
.btn--yt:hover { background: #d9002b; border-color: #d9002b; }
.playlists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); }
.playlist { margin: 0; }
.playlist__frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.playlist__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.playlist figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3);
  margin-top: var(--s3); font-size: 0.9375rem;
}
.playlist figcaption a { color: var(--ink-2); font-size: 0.875rem; }
.playlist figcaption a:hover { color: var(--ink); }

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

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.review {
  margin: 0;
  padding: var(--s6);
  background: #fff;
  border: 1px solid var(--line-grid);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: var(--s4);
}
.review__stars { display: flex; gap: 2px; color: #e0b400; }
.review__stars svg { width: 18px; height: 18px; fill: currentColor; }
.review__stars svg.is-off { color: var(--line); fill: none; }
.review__text {
  margin: 0; color: var(--ink-2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 10; -webkit-box-orient: vertical; overflow: hidden;
}
.review__top { display: flex; align-items: center; gap: var(--s3); }
.review__top figcaption { display: grid; line-height: 1.3; }
.review__photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.review__photo--blank {
  display: grid; place-items: center;
  background: var(--amber); color: var(--on-amber); font-weight: 700;
}
.review__name { font-weight: 700; }
a.review__name:hover { text-decoration: underline; }
.review__when { font-size: 0.8125rem; color: var(--ink-3); }
.review-src { margin: 0; font-size: 0.8125rem; color: var(--ink-3); }
.rev-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s6); }

/* rating summary under the heading: 4.9 ★★★★★ 37 Google reviews */
.gsum { display: flex; align-items: center; gap: var(--s2); margin: var(--s2) 0 0; color: var(--ink-2); font-size: 0.9375rem; }
.gsum b { font-family: var(--display); font-size: 1.25rem; color: var(--ink); }

/* the Google card shown until the live reviews are connected */
.gcard {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: var(--s4) var(--s6);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--line-grid);
  border-radius: var(--radius);
  transition: box-shadow var(--d-ui) var(--ease), border-color var(--d-ui) var(--ease);
}
.gcard[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .gcard:hover { box-shadow: var(--shadow); border-color: var(--line); } }
.gcard__g {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.75rem;
  color: #4285f4; background: #f1f3f4;
}
.gcard__body { display: grid; gap: 2px; }
.gcard__score { display: flex; align-items: center; gap: var(--s2); }
.gcard__score b { font-family: var(--display); font-size: 1.75rem; line-height: 1; }
.gcard__stars { color: #fbbc04; font-size: 1.125rem; letter-spacing: 2px; }
.gcard__t { font-weight: 700; }
.gcard__d { color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 620px) {
  .gcard { grid-template-columns: auto minmax(0, 1fr); }
  .gcard__btn { grid-column: 1 / -1; justify-self: start; }
}

.review-ask {
  display: grid; justify-items: start; gap: var(--s2);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line-grid);
  border-radius: var(--radius);
}
.review-ask__t { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin: 0; }
.review-ask__d { color: var(--ink-2); margin: 0 0 var(--s4); max-width: 52ch; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .brand { min-height: 84px; }
  .brand__name { font-size: 1.125rem; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
}
@media (max-width: 620px) {
  /* two per row, all on the page; an odd last tile sits centred */
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat:last-child:nth-child(odd) {
    grid-column: 1 / -1; justify-self: center;
    width: calc((100% - var(--s3)) / 2);
  }
  .reviews { grid-template-columns: 1fr; }
}

/* ---------- tiles arrive once, as each group scrolls into view ----------
   .home-anim is set by home.js only when IntersectionObserver works and the
   visitor hasn't asked for less motion, so without it everything is simply
   there. */
@keyframes tileIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.home-anim .rv:not(.is-in) { opacity: 0; }
.home-anim .rv.is-in { animation: tileIn var(--d-section) var(--ease) backwards; animation-delay: var(--d, 0ms); }
.cat { transition-property: box-shadow, border-color, background, transform; }
.cat:active { transform: scale(0.97); transition-duration: var(--d-micro); }

/* ---------- reviews: the reveal (masked-reveal skill, CSS + IO) ----------
   .rev-anim is set by home.js only when it will also add .is-in, so with no
   JS or reduced motion nothing is ever hidden. Transitions, not keyframes:
   the class lands once. transform / opacity only; the site's --ease. */
.rev-anim #reviews .word-mask {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: 0.1em; margin-bottom: -0.1em;
}
.rev-anim #reviews .word {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform 800ms var(--ease);
  transition-delay: calc(var(--i, 0) * 35ms);
}
.rev-anim #reviews.is-in .word { transform: none; }

/* summary stars light up one by one */
.rev-anim #reviews .gsum > b,
.rev-anim #reviews .gsum > span:last-child {
  opacity: 0; transition: opacity 500ms var(--ease) 250ms;
}
.rev-anim #reviews .review__stars svg {
  opacity: 0; transform: scale(0.6);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}
.rev-anim #reviews .gsum .review__stars svg { transition-delay: calc(300ms + var(--i, 0) * 60ms); }
.rev-anim #reviews.is-in .gsum > b,
.rev-anim #reviews.is-in .gsum > span:last-child,
.rev-anim #reviews.is-in .review__stars svg { opacity: 1; transform: none; }

/* cards rise in turn; each fills its own stars once it has landed */
.rev-anim #reviews .review {
  opacity: 0; transform: translate3d(0, 18px, 0);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease),
              box-shadow var(--d-ui) var(--ease), border-color var(--d-ui) var(--ease);
  transition-delay: calc(380ms + var(--c, 0) * 90ms), calc(380ms + var(--c, 0) * 90ms), 0ms, 0ms;
}
.rev-anim #reviews .review .review__stars svg {
  transition-delay: calc(620ms + var(--c, 0) * 90ms + var(--i, 0) * 50ms);
}
.rev-anim #reviews.is-in .review { opacity: 1; transform: none; }

.rev-anim #reviews .rev-foot {
  opacity: 0; transform: translate3d(0, 10px, 0);
  transition: opacity 600ms var(--ease) 760ms, transform 600ms var(--ease) 760ms;
}
.rev-anim #reviews.is-in .rev-foot { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .review:hover { box-shadow: var(--shadow); border-color: var(--line); }
}


/* Shop now and WhatsApp us are the same size on a phone: two equal halves */
@media (max-width: 900px) {
  .banner__cta { flex-wrap: nowrap; }
  .banner__cta .btn {
    flex: 1 1 0; min-width: 0;
    justify-content: center;
    gap: 6px;
    padding-inline: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
  }
  .banner__cta .btn [data-icon] { flex: none; }
}


/* ==========================================================================
   PHONE AUDIT — 2026-11-11
   ========================================================================== */
@media (max-width: 620px) {
  /* the hero keeps one sentence of intro, so Shop now lands above the fold */
  .hide-sm { display: none; }
  .banner__lede { margin-bottom: var(--s6); }

  /* brands: two swipeable rows instead of twelve stacked tiles */
  .brands {
    grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, auto);
    grid-auto-columns: minmax(148px, 42%);
    overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter); padding-bottom: 6px;
    scrollbar-width: none;
  }
  .brands::-webkit-scrollbar { display: none; }
  .brand { scroll-snap-align: start; }

  /* reviews: a swipeable row, like the reels */
  .reviews:not([hidden]) {
    display: flex; gap: var(--s3);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter); padding-bottom: 6px;
    scrollbar-width: none;
  }
  .reviews::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 84%; scroll-snap-align: start; }
  .review__text { -webkit-line-clamp: 7; }
}
@media (max-width: 760px) {
  .banner .banner__social a[href] { min-height: 44px; }
}
