/* Connections Truck Accessories & Supply.
   The window never scrolls: the bar is fixed at the top and one region under
   it holds the view. Every colour is a token; dark is the same tokens again. */

:root {
  /* Jon, 2026-11-27: no green anywhere. Black, the logo's grey and white, and
     true neutral greys between them (no tint in any of them). */
  --bg: #f4f4f4;
  --surface: #ffffff;
  --stage: #e7e7e7;
  --ink: #141414;
  --muted: #5c5c5c;
  --line: #d9d9d9;
  --accent: #141414;          /* black: the filled buttons and every picked state */
  --accent-ink: #141414;      /* black used as text on the page ground */
  --accent-bright: #141414;   /* marks, rings and focus */
  --accent-tint: #e6e6e6;     /* a pale grey behind a hinted item (never the picked one) */
  --mark: #141414;            /* the truck's part markers: black in both themes, so they show on a white truck */
  --on-photo: #ffffff;        /* words and lines laid over the landing photo */
  --on-photo-tint: rgba(255, 255, 255, .16);
  --bar-scrim: rgba(10, 10, 10, .55);   /* the shade at the photo's top edge, so white words read on a pale sky */
  --knock-depth: .44;         /* how dark the shade is where the call button sits, for its see-through hover */
  --on-mark: #ffffff;         /* the ring round a marker */
  --on-accent: #ffffff;
  --tile: #ffffff;            /* brand logos are drawn for a white ground, in both themes */
  --danger: #a3261d;          /* an error line, and the closed dot */
  --shadow: 0 10px 30px rgba(0, 0, 0, .10);
  --mark-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  --scrim: rgba(10, 10, 10, .66);
  --scrim-deep: rgba(10, 10, 10, .8);
  --opaque: #000;             /* mask alpha only: the part of a faded strip that shows */
  --bar-h: 80px;              /* the old site's taller header: room round the oval */
  --gut: 24px;
  --r: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121212;
  --surface: #1a1a1a;
  --stage: #1f1f1f;
  --ink: #f2f2f2;
  --muted: #a8a8a8;
  --line: #303030;
  --accent: #cccccc;          /* the logo's grey: the filled buttons and every picked state, black on them */
  --accent-ink: #e6e6e6;
  --accent-bright: #cccccc;
  --accent-tint: #2a2a2a;
  --on-accent: #141414;
  --tile: #ffffff;            /* white as in light: some logos carry their own white box */
  --danger: #f28b82;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  height: 100dvh; overflow: hidden; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation; overscroll-behavior: none;
}
.sel, .prose { user-select: text; -webkit-user-select: text; }
a { color: var(--accent-ink); text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; }
.m-only { display: none; }

/* ---------- the bar ---------- */
.bar {
  flex: none; height: var(--bar-h); padding: 0 var(--gut);
  display: flex; align-items: center; gap: 28px;
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: relative; z-index: 60;
}
.brand { flex: none; display: block; }
.brand img { height: 58px; width: auto; }   /* Jon's oval, 2026-11-27: it fills the bar so CONNECTIONS reads */
/* the page you are on is a solid pill that slides to the next one; a hover is a pale one */
.nav { margin-left: auto; display: flex; gap: 2px; position: relative; align-self: stretch; align-items: center; }
.nav a { color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap; padding: 7px 12px; border-radius: 999px; position: relative; z-index: 1; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); }
/* Michael, 2026-11-27: no pill on hover. A line grows out from the middle of the word, on the same
   line as the page-you-are-on underline, and draws back when the pointer leaves. */
.nav a::after { content: ""; position: absolute; left: 12px; right: calc(12px + .14em); bottom: 1px; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .32s cubic-bezier(.22,.75,.2,1); }
.nav a:not([aria-current="page"]):hover::after, .nav a:not([aria-current="page"]):focus-visible::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: transparent; }
.nav a[aria-current="page"]:hover { background: transparent; }
/* the page you are on is underlined, like the old site; the line slides to the next page */
.nav-mark { position: absolute; left: 0; top: 50%; height: 2px; margin-top: 14px; width: var(--mw, 0px); transform: translateX(var(--mx, 0px)); background: var(--accent-bright); opacity: 0; }
.nav-mark.ready { opacity: 1; transition: transform .3s cubic-bezier(.22,.75,.2,1), width .3s cubic-bezier(.22,.75,.2,1); }
.burger { display: none; }
.menu { display: none; }

/* ---------- the bar over the landing photo (Michael, 2026-11-27: "similar to the old site, the header
   row sits on top, real clean"). On the home page the bar lies on the photo, white words, an outlined
   call button; once the photo has scrolled under it, the bar turns back to its solid self. ---------- */
.nav a { text-transform: uppercase; letter-spacing: .14em; font-size: 13.5px; font-weight: 600; }
body[data-view="home"] .bar { position: absolute; top: 0; left: 0; right: 0; transition: background-color .25s ease, border-color .25s ease; }
body[data-view="home"]:not(.menu-open) .bar:not(.solid) { background: transparent; border-bottom-color: transparent; }
/* the shade is longer than the bar and fades out, so it never shows an edge */
body[data-view="home"] .bar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--bar-h) * 2.2);
  background: var(--bar-scrim); pointer-events: none; z-index: -1; transition: opacity .25s ease;
  -webkit-mask-image: linear-gradient(var(--opaque), transparent); mask-image: linear-gradient(var(--opaque), transparent);
}
body[data-view="home"] .bar.solid::before, body.menu-open .bar::before { opacity: 0; }
body[data-view="home"]:not(.menu-open) .bar:not(.solid) .nav a { color: var(--on-photo); }
body[data-view="home"]:not(.menu-open) .bar:not(.solid) .bar-call { background: transparent; border-color: var(--on-photo); box-shadow: inset 0 0 0 1px var(--on-photo); color: var(--on-photo); }   /* a 2px outline drawn inside, so nothing moves when the bar turns solid */
/* On the photo, a hover turns the call button over: it fills white and the number and icon go see-through
   to the sky behind. Screen blending does it: white stays white, and black lets the photo through. */
/* On the photo, a hover turns the call button over: it fills white, and the number and the phone icon go
   see-through to the sky behind them (the landing photo, pinned where it sits, darkened to the shade there). */
body[data-view="home"]:not(.menu-open) .bar:not(.solid) .bar-call { transition: background-color .3s ease, color .3s ease, transform .15s ease, box-shadow .15s ease; }
body[data-view="home"]:not(.menu-open) .bar:not(.solid) .bar-call:hover,
body[data-view="home"]:not(.menu-open) .bar:not(.solid) .bar-call:focus-visible { background-color: var(--on-photo); }
body[data-view="home"]:not(.menu-open) .bar:not(.solid) .bar-call:hover .sel,
body[data-view="home"]:not(.menu-open) .bar:not(.solid) .bar-call:focus-visible .sel,
body[data-view="home"]:not(.menu-open) .bar:not(.solid) .bar-call:hover .ic,
body[data-view="home"]:not(.menu-open) .bar:not(.solid) .bar-call:focus-visible .ic {
  background-image: var(--kimg); background-repeat: no-repeat;
  background-size: var(--kw) var(--kh); background-position: var(--kx) var(--ky);
  filter: brightness(var(--knock-depth));   /* the photo as dark as the shade over it here */
}
body[data-view="home"]:not(.menu-open) .bar:not(.solid) .bar-call:hover .sel,
body[data-view="home"]:not(.menu-open) .bar:not(.solid) .bar-call:focus-visible .sel { color: transparent; -webkit-background-clip: text; background-clip: text; }
body[data-view="home"]:not(.menu-open) .bar:not(.solid) .bar-call:hover .ic,
body[data-view="home"]:not(.menu-open) .bar:not(.solid) .bar-call:focus-visible .ic {
  stroke: transparent; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5v2.25Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5v2.25Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
body[data-view="home"]:not(.menu-open) .bar:not(.solid) .burger span { background: var(--on-photo); }
body[data-view="home"] .home-hero { height: 100dvh; }
/* Michael, 2026-11-27: on the photo the logo is half again as big; it eases back to its bar size
   once the photo has scrolled under the bar. A scale from its top-left corner, so nothing else moves. */
.brand img { transform-origin: left top; transition: transform .35s cubic-bezier(.22,.75,.2,1); }
body[data-view="home"]:not(.menu-open) .bar:not(.solid) .brand img { transform: scale(2.025); }   /* Michael, 2026-11-27: 1.5x, then 1.5x again, then 10% smaller */
@media (prefers-reduced-motion: reduce) { .brand img { transition: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 12px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 15px; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent .sel { color: inherit; }
.about-one { align-self: flex-start; }   /* booking off: About's one button stands alone at its own width */
.icon-btn { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
@media (hover: hover) {
  .btn:hover, .icon-btn:hover, .area:hover, .brand-tile:hover, .shot:hover, .fact:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .btn:active, .icon-btn:active { transform: none; box-shadow: none; }
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }

/* ---------- views ---------- */
#views { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0; animation: view-in .35s ease backwards; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
.scroller { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--gut); scrollbar-gutter: stable; }
.legal { margin-top: 28px; font-size: 13px; color: var(--muted); }
.legal a { color: var(--muted); text-decoration: underline; }

/* ---------- galleries (Michael, 2026-11-29) ----------
   Pictures: a tile per gallery, its first photo, name and count. On the truck:
   the 3D truck, its markers and the truck galleries beside it, the rest under
   them as More galleries. Open: the gallery's photos, then its brands. */
.gal-head { flex: none; display: flex; align-items: center; min-height: 40px; padding: var(--gut) var(--gut) 14px; position: relative; z-index: 2; }
.gal-switch { flex: none; overflow: visible; padding-right: 0; -webkit-mask-image: none; mask-image: none; }
.gal-switch .chip { padding: 0 16px; }
.gal-open-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gal-open-head h1 { font-size: 20px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-gal[data-mode="open"] .gal-switch, .v-gal:not([data-mode="open"]) .gal-open-head { display: none; }
.v-gal .gal-pictures, .v-gal .gal-truck, .v-gal .gal-open { display: none; }
.v-gal[data-mode="pictures"] .gal-pictures, .v-gal[data-mode="open"] .gal-open { display: block; }
.v-gal[data-mode="truck"] .gal-truck { display: flex; flex: 1; min-height: 0; }
.gal-pictures, .gal-open { padding-top: 6px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 14px; }
.gal { display: flex; flex-direction: column; gap: 10px; min-width: 0; color: var(--ink); }
.gal-img { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--stage); transition: transform .15s ease, box-shadow .15s ease; }
.gal-img img { width: 100%; height: 100%; object-fit: cover; }
.gal-say { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.gal-name { font-weight: 600; font-size: 16px; line-height: 1.3; min-width: 0; text-wrap: balance; }
.gal-count { flex: none; color: var(--muted); font-size: 14px; white-space: nowrap; }
@media (hover: hover) { .gal:hover .gal-img { transform: translateY(-2px); box-shadow: var(--shadow); } }
.gal-more { margin: 14px 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.gal-grid-more { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.gal-grid-more .gal-say { flex-direction: column; gap: 2px; }
.gal-grid-more .gal-name { font-size: 14.5px; }
.gal-grid-more .gal-count { font-size: 13px; }
.gal-brands { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.gal-brands h2 { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.gal-truck { flex-direction: row; }
.stage { position: relative; flex: 1; min-width: 0; background: var(--stage); overflow: hidden; touch-action: none; }
#truck-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s ease; cursor: grab; }
#truck-canvas.ready { opacity: 1; }
#truck-canvas:active { cursor: grabbing; }
.stage-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .3s; }
.stage-load.done { opacity: 0; pointer-events: none; }
.stage-load i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); animation: dot 1.1s ease-in-out infinite; }
.stage-load i:nth-child(2) { animation-delay: .15s; }
.stage-load i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

.hotspots { position: absolute; inset: 0; pointer-events: none; }
.hs {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: flex; align-items: center; justify-content: center; pointer-events: auto;
  opacity: 0; transition: opacity .3s ease; will-change: transform;
}
.hotspots.ready .hs { opacity: 1; }
.hotspots.ready .hs.far { opacity: .55; }   /* the far side recedes but still shows on a white truck */
.hs-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--mark); border: 3px solid var(--on-mark); box-shadow: var(--mark-shadow); position: relative; transition: transform .2s ease; }
.hs-dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--mark); opacity: 0; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.25); opacity: 0; } }
.hs-label {
  position: absolute; left: 38px; top: 50%; transform: translate(-6px, -50%); white-space: nowrap;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.hs.flip .hs-label { left: auto; right: 38px; transform: translate(6px, -50%); }
.hs:hover, .hs.on, .hs.hint { z-index: 3; }
.hs:hover .hs-label, .hs:focus-visible .hs-label, .hs.on .hs-label, .hs.hint .hs-label { opacity: 1; transform: translate(0, -50%); }
.hs:hover .hs-dot, .hs.hint .hs-dot { transform: scale(1.2); }
.hs.on .hs-dot { transform: scale(1.4); background: var(--mark); border-color: var(--on-mark); box-shadow: 0 0 0 3px var(--mark), var(--mark-shadow); }   /* picked: solid, ringed, the biggest */
.hs.on .hs-dot::after { animation: none; }
.hs.on .hs-label { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }


.panel { flex: none; width: clamp(360px, 30vw, 460px); background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.areas { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--gut); display: flex; flex-direction: column; gap: 8px; }
.area { flex: none; height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease; }
.area-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.area-count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.area.hint { border-color: var(--accent-bright); background: var(--accent-tint); }

.brand-tile { display: block; position: relative; aspect-ratio: 3 / 2; background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); transition: transform .15s ease, box-shadow .15s ease; }
.brand-tile img { position: absolute; left: 8%; top: 10%; width: 84%; height: 80%; object-fit: contain; }
.shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .15s ease, box-shadow .15s ease; }
.shot img { width: 100%; height: auto; }

/* ---------- brands and galleries ---------- */
.filters { flex: none; display: flex; align-items: flex-start; gap: 14px; padding: var(--gut) var(--gut) 14px; position: relative; z-index: 2; }
.search { flex: none; width: 210px; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; user-select: text; -webkit-user-select: text; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search:focus-within { border-color: var(--accent-bright); }
.chips { flex: 1; min-width: 0; display: flex; gap: 8px; position: relative; overflow-x: auto; scrollbar-width: none; padding-right: 30px; -webkit-mask-image: linear-gradient(to right, var(--opaque) calc(100% - 30px), transparent); mask-image: linear-gradient(to right, var(--opaque) calc(100% - 30px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 500; font-size: 13.5px; white-space: nowrap; position: relative; z-index: 1; transition: color .2s; }
.chip[aria-selected="true"] { color: var(--on-accent); font-weight: 600; background: transparent; border-color: transparent; }
.chips:not(.ready) .chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); }
.chip-mark { position: absolute; top: 0; left: 0; height: 40px; width: var(--gw, 0px); transform: translate(var(--gx, 0px), var(--gy, 0px)); border-radius: 999px; background: var(--accent); border: 1px solid var(--accent); opacity: 0; pointer-events: none; }
.chips.ready .chip-mark { opacity: 1; transition: transform .3s cubic-bezier(.22,.75,.2,1), width .3s cubic-bezier(.22,.75,.2,1); }
.v-list .scroller { padding-top: 6px; }
/* on a computer every gallery's chip shows: they wrap rather than run off the edge */
@media (min-width: 821px) {
  #brand-chips { flex-wrap: wrap; overflow: visible; padding-right: 0; -webkit-mask-image: none; mask-image: none; }
}
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ---------- home ----------
   The shop's own hero photo fills the screen edge to edge; who they are and
   the two ways in sit on a plain card over its lower left. */
.v-home .scroller { padding: 0; scrollbar-gutter: auto; }
.home { display: flex; flex-direction: column; }
/* the hero fills the first screen, edge to edge, as it did on the shop's own site */
.home-hero { display: block; width: 100%; height: calc(100dvh - var(--bar-h)); object-fit: cover; object-position: center 45%; }
.home-brands { display: block; overflow: hidden; padding: 34px 0; background: var(--tile); border-bottom: 1px solid var(--line); }
/* Every brand, twice over, sliding left forever: margin, not gap, so the second set
   starts exactly half way and the loop never jumps. Logos load at once (not lazy),
   since a lazy one inside a moving strip loads late or never (#9). */
.home-brands-track { display: flex; align-items: center; width: max-content; animation: brands 94s linear infinite; }
.home-brands-track img { height: 54px; width: auto; max-width: 170px; object-fit: contain; flex: none; margin-right: 64px; }
@keyframes brands { to { transform: translateX(-50%); } }
/* a pointer resting on it pauses it; a phone's tap leaves hover on, so a phone never pauses */
@media (hover: hover) and (pointer: fine) { .home-brands:hover .home-brands-track { animation-play-state: paused; } }
.home-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 64px var(--gut) 0; }
.home-block img { width: 100%; height: auto; border-radius: 6px; }
.home-block.flip img { order: 2; }
.home-say { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.home-say h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); }
.home-say p { font-size: clamp(18px, 1.5vw, 23px); line-height: 1.5; max-width: 30ch; }
.home .legal { padding: 48px var(--gut) var(--gut); margin: 0; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; min-height: calc(100% - 60px); }
.about-words { display: flex; flex-direction: column; gap: 16px; }
.about-words p:not(.lead) { color: var(--muted); font-size: 17px; }
.about-words .pair { margin-top: 8px; }
/* the big picture, then two whole pictures sharing a row at one height: each
   takes width in proportion to its own shape (--ar), so their bottoms meet */
.about-shots { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.about-shots .shot { flex-grow: var(--ar, 1.33); flex-shrink: 1; flex-basis: 0; min-width: 0; }

/* ---------- book install ----------
   The picker is Kuper Plumbing's: day circles, solid when a day has room and
   hatched when it has none, a dot on today, a ring on the pick. */
.book { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 40px; align-items: start; }
.book-when, .book-who { min-width: 0; }
/* the details are asked for once there is a time to hold, not before */
.book[data-step="when"] { display: block; }
.book[data-step="when"] .book-who { display: none; }
.book[data-step="done"] { display: block; }
.book[data-step="done"] .book-when, .book[data-step="done"] .book-who { display: none; }
.book-done { display: none; flex-direction: column; gap: 18px; }
.book-done .lead span { display: block; white-space: nowrap; }
.book-done .mock-note { align-self: flex-start; }
.book[data-step="done"] .book-done { display: flex; }
.mock-note { padding: 10px 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; }
.cal-strip { display: flex; align-items: flex-start; gap: 8px; }
.cal-scroll { position: relative; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 12px 6px 6px; margin-left: -6px; scrollbar-width: none; flex: 1; min-width: 0; scroll-padding: 0 12px 0 6px; }
.cal-scroll::-webkit-scrollbar { display: none; }
.dc-cell { display: grid; justify-items: center; gap: 6px; scroll-snap-align: start; flex: none; }
.dc { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 15.5px; font-weight: 600; display: grid; place-items: center; padding: 0; }
.dc-open { background: var(--surface); color: var(--ink); border: 2px solid var(--ink); }   /* open: an outlined day */
.dc-off { color: var(--muted); background: repeating-linear-gradient(135deg, var(--line) 0 3px, var(--surface) 3px 8px); /* hatch: a day with nothing open */ }
.dc-today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.dc-on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-bright); }
.dc.dc-on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }   /* picked: the one solid day, full or not */
.dc-wd { font-size: 12.5px; color: var(--muted); }
.dc-cell:has(.dc-on) .dc-wd { color: var(--accent-ink); font-weight: 600; }
.dc-toggle, .cal-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; flex: none; padding: 0; margin-top: 8px; }
.dc-toggle.on svg { transform: rotate(180deg); }
.cal-arrow, .cal-tools .dc-toggle { margin-top: 0; }
.cal-arrow[disabled] { opacity: .35; cursor: default; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-title { font-size: 17px; font-weight: 700; }
.cal-tools { display: flex; align-items: center; gap: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px 0; justify-items: center; }
.cal-wd { font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 0 2px; }
.cal-far, .cal-blank { width: 44px; height: 44px; display: grid; place-items: center; color: var(--muted); opacity: .55; font-size: 14px; }
.cal-day { font-size: 17px; font-weight: 700; margin: 18px 0 10px; }
.when-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.when-opt { height: 52px; font-weight: 500; }
.when-opt.picked { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 600; }
.book-note { color: var(--muted); font-size: 14px; margin: 12px 0; }
.book-who { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
/* the time being held; on a phone it is the press that goes back to the calendar */
.book-picked { align-self: flex-start; height: 46px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15.5px; white-space: nowrap; pointer-events: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; font-weight: 500; color: var(--muted); }
.field input { height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; min-width: 0; width: 100%; user-select: text; -webkit-user-select: text; }
.field input:focus { border-color: var(--accent-bright); outline: none; }
.book-area { flex-wrap: wrap; overflow: visible; padding: 0; -webkit-mask-image: none; mask-image: none; }
.book-area .chip[aria-pressed="true"] { color: var(--on-accent); font-weight: 600; background: var(--accent); border-color: var(--accent); }
.book-bar { display: grid; gap: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.book-err { display: none; color: var(--danger); font-size: 14.5px; font-weight: 500; }
.book-err.show { display: block; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; box-shadow: none; }

/* ---------- get in touch ---------- */
.contact { display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: 32px; min-height: calc(100% - 60px); }
.contact-facts { display: flex; flex-direction: column; gap: 12px; align-self: start; }
.fact { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 17px; line-height: 1.35; transition: transform .15s ease, box-shadow .15s ease; }
.fact .ic { color: var(--accent-ink); }
.fact-long { overflow-wrap: anywhere; }
.hours { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.hours div { display: flex; justify-content: space-between; gap: 16px; }
.hours dt { font-weight: 600; white-space: nowrap; }
.hours dd { color: var(--muted); white-space: nowrap; }
.open-now { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--surface); }
.open-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.open-now.is-open::before { background: var(--accent-bright); }
.contact-map { min-height: 320px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--stage); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; opacity: 0; transition: opacity .3s ease; }
.contact-map iframe.ready { opacity: 1; }   /* never a white block while it loads */
/* Jon: no colour but black, grey and white, the map included; dark turns it over */
.contact-map iframe { filter: grayscale(1); }
:root[data-theme="dark"] .contact-map iframe { filter: grayscale(1) invert(.9); }
/* the contact form: the old site's fields, the map under it filling what is left */
.contact-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contact-side .contact-map { flex: 1; min-height: 260px; }
.contact-form, .cf-done { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.cf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field textarea { width: 100%; min-height: 120px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; user-select: text; -webkit-user-select: text; }
.field textarea:focus { border-color: var(--accent-bright); outline: none; }
/* Jon: black, gray and white only, so a field to fix is drawn in ink, a ring round its whole box */
.field [aria-invalid="true"], .field [aria-invalid="true"]:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cf-bar { display: flex; align-items: center; gap: 16px; }
.cf-err { flex: 1; min-width: 0; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.cf-bar .btn { margin-left: auto; min-width: 140px; }
.cf-note { color: var(--muted); font-size: 13px; }
.cf-done { align-items: flex-start; justify-content: center; }   /* held at the form's height, so the map stays put */

/* ---------- the one overlay ---------- */
.ov { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.ov-back { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .25s ease; }
.ov-box { position: relative; opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease; }
.ov.in .ov-back { opacity: 1; }
.ov.in .ov-box { opacity: 1; transform: none; }
.ov-card { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.ov-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ov-head h2 { font-size: 20px; font-weight: 700; line-height: 1.2; }
/* the mark stands on its own, big; only the dark theme gives it the white ground it was drawn for */
.ov-logo { display: flex; justify-content: center; padding: 8px 0 12px; }
:root[data-theme="dark"] .ov-logo { background: var(--tile); border-radius: var(--r); padding: 20px; }
.ov-logo img { max-height: 150px; max-width: 86%; width: auto; object-fit: contain; }
.ov-cats { display: flex; flex-wrap: wrap; gap: 8px; }
/* the photo viewer (Michael: "amazing keep that"): the area's name and Close
   across the top, the whole photo, then the arrows with the count between */
.ov-shot { width: fit-content; max-width: calc(100vw - 32px); padding: 16px; gap: 14px; overflow: hidden; }
.ov-shot img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 240px); border-radius: 10px; align-self: center; }
.ov-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ov-step span { font-size: 15px; color: var(--muted); white-space: nowrap; }
.ov-step .icon-btn, .ov-shot .ov-head .icon-btn { width: 44px; height: 44px; }
.ov.photo .ov-back { background: var(--scrim-deep); }

/* ---------- page not found ---------- */
.lost-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: var(--gut); }
.lost-main .pair { width: 100%; }
.lead { font-size: clamp(19px, 1.5vw, 24px); line-height: 1.4; font-weight: 600; color: var(--ink); }

/* ================= the phone: its own layout ================= */
@media (max-width: 820px) {
  :root { --bar-h: 62px; --gut: 16px; }
  .d-only { display: none; }
  .m-only { display: block; }
  .bar { gap: 8px; }
  .brand img { height: 46px; }
  .nav { display: none; }
  .bar-call { margin-left: auto; width: 40px; height: 40px; padding: 0; border-radius: 10px; }
  .bar-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .burger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; flex: none; }
  .burger span { width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s cubic-bezier(.22,.75,.2,1), opacity .2s ease; }
  .menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
  .menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .menu { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; top: var(--bar-h); bottom: 0; z-index: 55; background: var(--surface); padding: 8px calc(var(--gut) - 12px); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease, visibility 0s .25s; }
  .menu-open .menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .menu a { display: flex; align-items: center; height: 60px; padding: 0 12px; font-size: 21px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); white-space: nowrap; }
  /* the page you are on is the one filled row */
  .menu a[aria-current="page"] { border-radius: 12px; border-bottom-color: transparent; background: var(--accent); color: var(--on-accent); }

  /* galleries: two tiles across; on the truck, the truck on top and its
     galleries listed under it, one to a row so every name reads whole */
  .gal-head { padding-bottom: 10px; }
  .gal-switch { margin: 0; padding: 0; }
  .gal-switch .chip { height: 44px; }
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .gal { gap: 8px; }
  .gal-say { flex-direction: column; gap: 2px; }
  .gal-name { font-size: 15px; }
  .gal-count { font-size: 13px; }
  .gal-truck { flex-direction: column; }
  .stage { flex: 0 0 46%; }
  .panel { flex: 1; width: auto; border-left: 0; border-top: 1px solid var(--line); }
  .areas { padding: 12px var(--gut) var(--gut); }
  .area { height: 48px; }
  .gal-brands { margin-top: 24px; }
  .hs-label { font-size: 12px; padding: 5px 10px; }
  .hs:hover .hs-label { opacity: 0; }
  .hs.hint .hs-label { opacity: 1; }

  .filters { flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 10px; }
  .search { width: auto; }
  .chips { margin: 0 calc(-1 * var(--gut)); padding: 0 calc(var(--gut) + 20px) 0 var(--gut); flex: none; }
  .chip { height: 44px; }
  .chip-mark { height: 44px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

  /* a phone held upright: the photo whole across the top on its own dark
     ground, the words and the two presses under it */
  .home-hero { height: 58dvh; object-position: center; }
  body[data-view="home"] .home-hero { height: 58dvh; }   /* the phone keeps its own tall frame under the bar */
  .home-brands { padding: 22px 0; }
  .home-brands-track img { height: 40px; margin-right: 40px; }
  .home-block { grid-template-columns: 1fr; gap: 20px; padding-top: 36px; }
  .home-block.flip img { order: 0; }
  .home-say p { font-size: 17px; }
  .home-say .btn { align-self: stretch; }
  .home .legal { padding-top: 32px; }
  .about { display: flex; flex-direction: column; gap: 18px; min-height: 0; align-items: stretch; }
  .about-shots { order: -1; display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); scrollbar-width: none; scroll-snap-type: x proximity; }
  .about-shots::-webkit-scrollbar { display: none; }
  .about-shots { flex-wrap: nowrap; }
  .about-shots .shot { flex: none; height: 168px; scroll-snap-align: center; }
  .about-shots .shot img { height: 100%; width: auto; }
  .about-words { gap: 12px; }
  .about-words p:not(.lead) { font-size: 15.5px; }
  .lead { font-size: 18px; }
  .pair { max-width: none; }
  /* the two presses stay in reach while the words scroll */
  .about-words .pair { position: sticky; bottom: calc(-1 * var(--gut)); margin: 0 calc(-1 * var(--gut)); padding: 10px var(--gut); background: var(--bg); border-top: 1px solid var(--line); z-index: 1; }
  .v-about .legal { margin-top: 10px; }

  /* book install on a phone: one question per screen. The calendar first; a
     tap on a time is the way on to the few details the shop needs. */
  .book { display: block; }
  .book[data-step="who"] .book-when { display: none; }
  .book-who { padding: 0; border: 0; background: none; }
  .book-picked { pointer-events: auto; align-self: stretch; }
  /* the press that books stays in reach while the fields scroll */
  .book-bar { position: sticky; bottom: calc(-1 * var(--gut)); margin: 0 calc(-1 * var(--gut)); padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); z-index: 1; }
  .when-opts { grid-template-columns: 1fr; }
  .book-area { flex-wrap: wrap; margin: 0; padding: 0; }
  .book-area .chip { height: 40px; }
  .book-done .lead span { white-space: normal; }
  .contact { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
  .contact-facts { gap: 10px; align-self: stretch; }
  .fact { font-size: 16px; padding: 12px 14px; }
  .contact-map { min-height: 200px; height: 200px; flex: none; }
  .contact-side .contact-map { flex: none; }
  .contact-form, .cf-done { padding: 16px; }
  .cf-row { gap: 10px; }
  .cf-row.cf-stack { grid-template-columns: 1fr; gap: 14px; }
  .cf-bar { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .cf-bar .btn { margin-left: 0; width: 100%; }
  .cf-err:empty { display: none; }
  /* a refusal takes the privacy note's place, over it, so nothing under the form moves */
  .contact-form { position: relative; }
  .cf-err { position: absolute; left: 16px; right: 16px; bottom: 16px; min-height: 2.9em; margin: 0; background: var(--surface); font-size: 13.5px; line-height: 1.45; }
  .legal { margin-top: 18px; font-size: 12px; }

  /* an overlay on a phone is a sheet that reaches both sides */
  .ov { align-items: flex-end; }
  .ov .ov-box { width: 100%; transform: translateY(40px); }
  .ov.in .ov-box { transform: none; }
  .ov-card { width: 100%; max-height: 82dvh; border-radius: 20px 20px 0 0; border-width: 1px 0 0; padding: 18px var(--gut) calc(18px + env(safe-area-inset-bottom)); }
  .ov-logo img { max-height: 90px; }
  .ov-shot { width: 100%; max-width: none; padding: 14px var(--gut) calc(14px + env(safe-area-inset-bottom)); }
  .ov-shot img { max-height: calc(82dvh - 170px); }
}
@media (max-width: 820px) and (max-height: 640px) {
  .stage { flex-basis: 40%; }
  .area { height: 44px; }
}
@media (max-width: 340px) {
  .brand img { height: 44px; }
  .fact { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
