/* ============================================================
   VIWANDA AUTOMOTIVE - garage.css
   The home page's set pieces: the intro, the bay hero, the turning
   wheel, under the bonnet, the job card, the rolling tread and the
   bay light at the close. Loads after pages.css.

   Everything that moves is transform or opacity. Everything that moves
   stops under prefers-reduced-motion and the page reads complete
   without it.
   ============================================================ */

/* ---------- on-ink: a workshop-dark band inside the white site ----------
   The dark theme's tokens, scoped. Every component inside keeps working
   through its tokens, so nothing needs a dark twin of its own. */
.on-ink {
  --bg:         #0B0A09;
  --bg-sunk:    #121010;
  --surface:    #1A1716;
  --surface-2:  #241F1D;
  --surface-3:  #322B27;
  --text:       #F2EEEB;
  --text-2:     var(--gr-400);
  --text-3:     var(--gr-500);
  --border:     #2B2522;
  --border-2:   #3D3531;
  --logo-ink:   brightness(0) invert(1);
  --accent:     var(--gold-500);
  --accent-2:   var(--gold-300);
  --accent-fill:var(--gold-500);
  --on-accent:  #0B0A09;
  --signal:     var(--red-400);
  --lamp:       var(--amb-300);
  --steel:      var(--st-400);
  --focus:      var(--gold-300);
  --shadow-1:   0 1px 2px rgba(0,0,0,.44);
  --shadow-2:   0 2px 4px rgba(0,0,0,.40), 0 10px 24px -12px rgba(0,0,0,.72);
  --shadow-3:   0 4px 8px rgba(0,0,0,.40), 0 22px 48px -22px rgba(0,0,0,.85);
  color-scheme: dark;
  background-color: var(--bg);
  color: var(--text);
}
.on-ink .btn--ghost { color: var(--text); border-color: var(--border-2); }
.on-ink .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* the hero's panel and buttons, under workshop light */
.on-ink .qs {
  background-image: linear-gradient(177deg, var(--surface-2) 0%, var(--surface) 100%);
  border-color: var(--border-2);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 9%, transparent),
    inset 0 -1px 0 color-mix(in srgb, black 40%, transparent),
    0 2px 4px color-mix(in srgb, black 40%, transparent),
    0 28px 60px -24px color-mix(in srgb, black 85%, transparent);
}
.on-ink .qs::after { opacity: .13; }
.on-ink .qs .field select,
.on-ink .qs .field input {
  background-color: color-mix(in srgb, black 22%, var(--surface));
  box-shadow:
    inset 0 2px 4px -1px color-mix(in srgb, black 55%, transparent),
    inset 0 -1px 0 color-mix(in srgb, white 7%, transparent);
}
.on-ink .hero__cta .btn--ghost {
  background-image: linear-gradient(180deg, color-mix(in srgb, white 7%, transparent) 0%, transparent 100%);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 10%, transparent),
    inset 0 -1px 0 color-mix(in srgb, black 35%, transparent),
    0 2px 6px -2px color-mix(in srgb, black 50%, transparent);
}

/* ---------- the header over the bay ---------- */
.site-header.is-over-ink {
  --bg: #0B0A09; --text: #F2EEEB; --text-2: var(--gr-400); --border: #2B2522;
  --accent: var(--gold-500); --focus: var(--gold-300);
  color-scheme: dark;
  background: transparent;
  border-bottom-color: transparent;
}
@supports (backdrop-filter: blur(8px)) { .site-header.is-over-ink { backdrop-filter: none; } }
.site-header.is-over-ink.is-stuck {
  background: color-mix(in srgb, #0B0A09 78%, transparent);
  border-bottom-color: color-mix(in srgb, white 7%, transparent);
}
@supports (backdrop-filter: blur(8px)) { .site-header.is-over-ink.is-stuck { backdrop-filter: blur(12px) saturate(1.1); } }
.site-header.is-over-ink .site-nav a,
.site-header.is-over-ink .icon-btn { color: var(--text); }
/* over a dark band the header takes the dark-ground artwork whatever the
   theme is — the compact lockup has to follow, or the phone header shows an
   ink wordmark on a black photograph */
.site-header.is-over-ink .brand__mark--light,
.site-header.is-over-ink .brand__name--light { display: none; }
.site-header.is-over-ink .brand__mark--dark,
.site-header.is-over-ink .brand__name--dark { display: block; }

/* ============================================================
   THE BAY - home hero
   Real jobs drift behind the headline, edge to edge, tilted a
   few degrees so the wall reads as a space and not a grid.
   ============================================================ */
.hero--bay {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 0;
  margin-top: -4.25rem;
  padding-top: calc(4.25rem + clamp(3.5rem, 11vh, 7.5rem));
  padding-bottom: clamp(3.5rem, 9vh, 6.5rem);
  min-height: min(100svh, 62rem);
  display: flex;
  align-items: center;
}
/* On a phone that top padding was buying 160px of empty photograph before
   the first word, and min-height was holding a floor the content had already
   passed. Both cost reading room on the only screen most visitors see. */
@media (max-width: 760px) {
  .hero--bay {
    padding-top: calc(4.25rem + 1.75rem);
    padding-bottom: 2.5rem;
    min-height: 0;
    align-items: flex-start;
  }
  .hero--bay .hero__lede {
    font-size: var(--step-0);
    line-height: 1.55;
    margin-top: 1.1rem;
    max-width: 38ch;
  }
  .hero--bay .hero__cta { margin-top: 1.6rem; }
  /* the card is the next step, not a separate thought */
  .hero--bay .qs { margin-top: 1.9rem; }
}
.hero--bay > .wrap { width: 100%; }
.hero--bay::before { display: none; }

/* ============================================================
   THE PHONE HERO - a stage, then the paperwork
   On a phone the first screen used to be a paragraph on a black wall:
   the photographs behind it were at .6 brightness under a 90% veil, so
   the one thing that proves this workshop - its own work - was the one
   thing nobody saw. Now the first screen is the work, moving, with the
   promise anchored at the foot of it. The quote card and the summary
   follow as the next thing a thumb reaches.
   ============================================================ */
.hero__lede--short, .hero__go { display: none; }

@media (max-width: 760px) {
  .hero--bay { padding-top: 0; padding-bottom: 2.25rem; }

  .hero--bay .hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100svh;
    padding-top: calc(4.25rem + 1.25rem);
    /* clear of the sticky Call / WhatsApp bar, which sits over this */
    padding-bottom: calc(53px + env(safe-area-inset-bottom, 0px) + 1.6rem);
  }
  /* Where we are, at the top of the stage; what we do, at its foot. The
     location rides up under the header (inside the header's own scrim, so
     it reads without darkening the photographs), and margin-bottom:auto
     leaves the whole middle of the first screen to the wall of work. */
  .hero--bay .hero__kicker {
    margin-bottom: auto;
    align-self: flex-start;
    gap: .6rem;
    padding: .5rem .85rem .5rem .75rem;
    border-radius: 999px;
    color: var(--text);
    background: rgba(11,10,9,.55);
    border: 1px solid rgba(255,248,232,.16);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
            backdrop-filter: blur(8px) saturate(1.2);
    box-shadow: 0 6px 18px rgba(0,0,0,.28);
  }
  .hero--bay .hero__kicker i { width: 1.4rem; }
  /* a pin, lit: the one moving thing in the tag */
  .hero--bay .hero__kicker::before {
    content: ""; flex: none;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent-fill);
    box-shadow: 0 0 0 0 rgba(219,168,80,.55);
    animation: pinPulse 2.6s ease-out infinite;
  }
  /* sized so "We don't just paint cars." holds one line at 390px */
  .hero--bay .hero__h { font-size: clamp(1.9rem, 8.55vw, 2.45rem); line-height: 1.05; }
  .hero__lede--full, .hero--bay .hero__tel { display: none; }
  .hero__lede--short { display: block; }
  .hero--bay .hero__lede--short { margin-top: .9rem; max-width: none; text-wrap: balance; }

  .hero__go { display: inline-flex; }
  .hero--bay .hero__cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    margin-top: 1.35rem;
  }
  .hero--bay .hero__cta .btn { width: 100%; justify-content: center; padding-inline: .6rem; }

  .hero--bay .qs { margin-top: .75rem; }

  /* the wall fills the stage, not the whole section: three rows across
     one screen read as a wall of work, three rows across two screens
     read as three enormous photographs */
  .hero--bay .hero__wall { inset: -3% -5% auto -5%; height: calc(100svh + 6%); }
  .hero--bay .wall-track img { filter: saturate(1.06) brightness(.9) contrast(1.06); }

  /* The scrim is anchored to the BOTTOM of the first screen, in pixels,
     not to a percentage of the section. The copy is a fixed height from
     the foot of the screen whatever the phone, so a percentage put text
     over clear photograph on a short phone and wasted the photograph on
     a tall one. The photographs show clearly above it; the header gets
     its own small scrim; below the first screen is solid ink. */
  .hero--bay .hero__veil {
    background:
      linear-gradient(180deg, rgba(11,10,9,.74), rgba(11,10,9,0)) 0 0 / 100% 132px no-repeat,
      linear-gradient(180deg,
        rgba(11,10,9,0) 0%,
        rgba(11,10,9,.58) 16%,
        rgba(11,10,9,.86) 30%,
        rgba(11,10,9,.94) 46%,
        rgba(11,10,9,.96) 100%) 0 calc(100svh - 580px) / 100% 580px no-repeat,
      linear-gradient(#0B0A09, #0B0A09) 0 100svh / 100% 100% no-repeat;
    background-color: rgba(11,10,9,.08);
  }

  /* life: a slow band of workshop light crossing the wall, the way a
     strip light catches fresh lacquer. It rides inside the wall, under
     the scrim, so it brightens the photographs and never the text. */
  .hero--bay .hero__wall::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    background: linear-gradient(102deg, transparent 38%, rgba(255,238,200,.22) 49%, rgba(255,250,235,.32) 50%, rgba(255,238,200,.22) 51%, transparent 62%) 0 0 / 320% 100% no-repeat;
    animation: heroSweep 7.5s cubic-bezier(.5,0,.25,1) 1.4s infinite;
  }
}
@keyframes heroSweep {
  0%        { background-position: 108% 0; opacity: 0; }
  6%        { opacity: 1; }
  48%       { background-position: -8% 0; opacity: 1; }
  54%, 100% { background-position: -8% 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--bay .hero__wall::after { animation: none; display: none; }
}
.hero__wall {
  position: absolute;
  inset: -6% -4%;
  z-index: -2;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
  transform:
    translate3d(calc(var(--mx, 0) * -16px), calc(var(--sy, 0px) + var(--my, 0) * -12px), 0)
    rotate(-4deg) scale(1.08);
  will-change: transform;
}
/* on a phone the tilt reads as skewed photographs, not as a set piece: run
   the rows level there, with only the scroll drift */
@media (max-width: 760px) {
  .hero__wall { transform: translate3d(0, var(--sy, 0px), 0) scale(1.04); }
}
.wall-row { min-height: 0; }
.wall-track {
  display: flex;
  gap: 10px;
  height: 100%;
  width: max-content;
  padding-right: 10px;
  animation: wallDrift var(--d, 70s) linear infinite;
  will-change: transform;
}
.wall-row--rev .wall-track { animation-direction: reverse; }
.wall-track img {
  height: 100%;
  width: auto;
  max-width: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  background: #1A1716;
  filter: grayscale(.35) brightness(.6) contrast(1.06);
}
/* On a phone the wall is the only glimpse of actual work on the first
   screen, and at .6 brightness under a 92% veil it was reading as a black
   box with seams. Lifted here, with the veil below re-measured against it
   so the headline still clears AA. */
@media (max-width: 760px) {
  .wall-track img { filter: grayscale(.16) brightness(.82) contrast(1.04); }
  /* Behind the hero the 10px grid gaps read as hard rectangular edges -
     a glitch, not a contact sheet - and lifting the brightness made them
     obvious. The hero wall is a backdrop, so it runs continuous. The
     intro keeps its gaps: there the grid IS the idea. */
  .hero__wall { gap: 0; }
  .hero__wall .wall-track { gap: 0; padding-right: 0; }
  .hero__wall .wall-track img { border-radius: 0; }
}
@keyframes wallDrift { to { transform: translate3d(-50%, 0, 0); } }
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,10,9,.95) 0%, rgba(11,10,9,.88) 34%, rgba(11,10,9,.58) 64%, rgba(11,10,9,.74) 100%),
    linear-gradient(180deg, rgba(11,10,9,.72) 0%, transparent 26%, transparent 70%, rgba(11,10,9,.96) 100%);
}
/* the gold light that the intro's strip light leaves behind */
.hero__lamp {
  position: absolute;
  z-index: -1;
  left: 50%; top: 0;
  width: min(1400px, 140vw); height: 70%;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse 40% 56% at 50% 0%, rgba(255,226,170,.10), transparent 72%);
}
/* Shaped, not flat, but dark from the very top: there is no empty space
   above the kicker on a phone, so a lighter band up there lands straight
   under text and measured 2.85:1. The wall is made visible by lifting the
   image filter instead, which does not sit between text and its backdrop.
   It eases open only from 46-82%, which is where the quote card floats on
   its own background. */
@media (max-width: 1079px) {
  .hero__veil {
    background:
      linear-gradient(180deg,
        rgba(11,10,9,.88) 0%,
        rgba(11,10,9,.88) 34%,
        rgba(11,10,9,.82) 46%,
        rgba(11,10,9,.78) 62%,
        rgba(11,10,9,.86) 82%,
        rgba(11,10,9,.94) 100%);
  }
}

/* ============================================================
   RESTORE / MAINTAIN / ENHANCE - the wheel turns as you pass
   ============================================================ */
.promise--wheel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 0;
  padding-block: clamp(6rem, 16vw, 12rem);
}
.promise__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.promise__bg picture { position: absolute; inset: -14%; display: block; }
.promise__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 52% 62%;
  transform-origin: 50% 64%;
  transform: rotate(calc(var(--p, .5) * 24deg - 12deg)) scale(calc(1.14 - var(--p, .5) * .08));
  filter: saturate(.92) contrast(1.06) brightness(.82);
  will-change: transform;
}
.promise--wheel::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11,10,9,.94) 0%, rgba(11,10,9,.8) 40%, rgba(11,10,9,.3) 74%, rgba(11,10,9,.12) 100%),
    linear-gradient(180deg, rgba(11,10,9,.7) 0%, transparent 24%, transparent 76%, rgba(11,10,9,.8) 100%);
}
.promise--wheel .promise__row { color: var(--text); }
.promise--wheel .promise__row--mid { color: var(--accent); }
.promise--wheel .promise__row span {
  display: inline-block;
  transform: translate3d(calc((1 - var(--p, 1)) * var(--dir, -1) * 9vw), 0, 0);
  will-change: transform;
}
.promise--wheel .promise__row:nth-child(2) span { --dir: 1; }
.promise--wheel .promise__sub { color: var(--text-2); }
.promise__tool {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--text-3);
}
/* a phone: the copy is one column over the whole band, so the veil covers
   all of it - but light enough that the tyre still visibly runs under it */
@media (max-width: 760px) {
  .promise--wheel::before {
    background: linear-gradient(180deg, rgba(11,10,9,.74), rgba(11,10,9,.42) 50%, rgba(11,10,9,.78));
  }
}

/* ============================================================
   UNDER THE BONNET
   Desktop: the stage pins while the camera pulls back from the crank
   to the whole engine, then the points to check light up.
   Phone: no pin; the same pull-back runs as the frame scrolls through.
   ============================================================ */
.engine { position: relative; }
.engine__track { position: relative; }
.engine__stage {
  position: relative;
  display: grid;
  gap: var(--sp-6);
  padding-block: var(--section-y);
}
.engine__copy { min-width: 0; }
.engine__copy .lede { margin-top: var(--sp-4); }
.engine__frame {
  position: relative;
  aspect-ratio: 1600 / 1680;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--r-md);
  background: #121010;
}
.engine__zoom {
  position: absolute; inset: 0;
  transform-origin: 49% 84%;
  transform: scale(calc(1 + (1 - var(--z, 1)) * .95));
  will-change: transform;
}
.engine__spots { position: absolute; inset: 0; }
.engine__zoom img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.04) saturate(1.02); }
.engine__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 55%, transparent 55%, rgba(11,10,9,.55) 100%);
}
.engine__list {
  list-style: none; margin: var(--sp-6) 0 0; padding: 0;
  display: grid; gap: 2px;
  counter-reset: chk;
}
.engine__list button {
  width: 100%;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: baseline;
  text-align: left;
  padding: var(--sp-3) var(--sp-3) var(--sp-3) 0;
  background: none;
  border: 0;
  border-top: var(--hairline) solid var(--border);
  color: var(--text-2);
  font: inherit;
  cursor: pointer;
  transition: color var(--dur-2) var(--ease);
}
.engine__list li:last-child button { border-bottom: var(--hairline) solid var(--border); }
.engine__list .n { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-3); letter-spacing: var(--tr-mono); }
.engine__list .t { font-size: var(--step-0); color: var(--text); font-weight: 500; }
.engine__list .d {
  grid-column: 2;
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--text-2);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--dur-4) var(--ease), opacity var(--dur-3) var(--ease);
}
.engine__list button[aria-expanded="true"] .n { color: var(--accent); }
.engine__list button[aria-expanded="true"] .d { max-height: 9rem; opacity: 1; }
.engine__list button:hover .t { color: var(--accent); }
.engine__list button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.spot {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 2.25rem; height: 2.25rem;
  margin: -1.125rem 0 0 -1.125rem;
  border-radius: 50%;
  border: 1.5px solid var(--accent-fill);
  background: color-mix(in srgb, #0B0A09 62%, transparent);
  color: var(--text);
  display: grid; place-items: center;
  font: 500 var(--step--2)/1 var(--font-mono);
  cursor: pointer;
  opacity: var(--show, 0);
  transform: scale(calc(.6 + var(--show, 0) * .4));
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.spot::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid var(--accent-fill);
  animation: spotPulse 2.6s var(--ease-out) infinite;
}
@keyframes spotPulse { from { opacity: .8; transform: scale(.8); } to { opacity: 0; transform: scale(1.6); } }
.spot[aria-expanded="true"] { background: var(--accent-fill); color: var(--on-accent); }
.spot:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.engine__tip {
  position: absolute;
  z-index: 3;
  width: min(17rem, 70%);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: color-mix(in srgb, #0B0A09 86%, transparent);
  border: var(--hairline) solid var(--border-2);
  box-shadow: var(--shadow-3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-3) var(--ease-out);
}
.engine__tip.is-on { opacity: 1; transform: none; }
.engine__tip b { display: block; font-weight: 500; color: var(--accent); font-size: var(--step--1); }
.engine__tip span { display: block; margin-top: 4px; font-size: var(--step--1); line-height: 1.5; color: var(--text-2); }

@media (min-width: 900px) {
  .engine__track { height: 250vh; }
  .engine__stage {
    position: sticky;
    top: 0;
    height: 100svh;
    padding-block: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
  }
  .engine__frame {
    height: min(84svh, 44vw * 1.05);
    width: auto;
    border-radius: var(--r-lg);
  }
  .engine__copy { max-width: 34rem; }
  .engine .sec__h { font-size: var(--step-4); }
  .engine__list { margin-top: var(--sp-5); }
  .engine__list button { padding-block: .6rem; }
}

/* ============================================================
   THE JOB CARD - the process fills in as you read down it
   ============================================================ */
.flow__rail {
  position: relative;
  height: 2px;
  margin-bottom: var(--sp-5);
  background: var(--border-2);
  overflow: hidden;
}
.flow__rail i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent-fill), var(--gold-300));
  transform-origin: left;
  transform: scaleX(var(--fill, 0));
}
.js-anim [data-jobcard] .flow__i { transition: border-color var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease), transform var(--dur-4) var(--ease-out); }
.js-anim [data-jobcard] .flow__i::before { opacity: .25; transition: opacity var(--dur-3) var(--ease); }
.js-anim [data-jobcard] .flow__i.is-on { border-color: color-mix(in srgb, var(--accent-fill) 55%, var(--border)); box-shadow: var(--shadow-2); }
.js-anim [data-jobcard] .flow__i.is-on::before { opacity: 1; }
.flow__stamp {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: var(--tr-label);
  text-transform: uppercase; color: var(--accent);
  border: 1px solid currentColor; border-radius: var(--r-sm);
  padding: 2px 6px;
  opacity: 0; transform: rotate(-8deg) scale(1.3);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-3) var(--ease-spring);
}
.flow__i.is-done .flow__stamp { opacity: .9; transform: rotate(-8deg) scale(1); }
@media (max-width: 760px) { .flow__rail { display: none; } }

/* ============================================================
   THE ROAD - tread rolls under the copy, faster when you scroll
   ============================================================ */
.road--tread {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 0;
}
.road__tread { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.road__tread i {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: calc(100% + var(--tw, 2400px));
  filter: brightness(.42) contrast(1.12) grayscale(.2);
  will-change: transform;
}
/* the texture is only fetched once the band is close, so it never weighs on first load */
.road__tread.is-near i { background: url("/images/garage/tread-tile.webp") repeat-x 0 50% / var(--tw, 2400px) 100%; }
/* Spann's running tread, behind Restore / Maintain / Enhance */
.road__tread--stomp.is-near i {
  background: url("/images/garage/spann/tread-stomp-900.webp") repeat-x 0 50% / var(--tw, 760px) auto;
  filter: brightness(.44) contrast(1.08) grayscale(.2);
}
@media (max-width: 760px) {
  .road__tread--stomp.is-near i { filter: brightness(.62) contrast(1.12) grayscale(.15); }
}
.road__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,10,9,.95) 0%, rgba(11,10,9,.86) 46%, rgba(11,10,9,.35) 80%, rgba(11,10,9,.5) 100%),
    linear-gradient(180deg, rgba(11,10,9,.6), transparent 22%, transparent 78%, rgba(11,10,9,.7));
}
.road--tread .road__in { grid-template-columns: minmax(0, 1fr); }
.road--tread .road__copy { max-width: 40rem; }
.road--tread .road__art { display: none; }
.road__models {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; margin: var(--sp-6) 0 0; padding: 0;
}
.road__models li {
  font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text-2);
  background: color-mix(in srgb, #0B0A09 50%, transparent);
}
@media (max-width: 760px) {
  .road__veil { background: linear-gradient(180deg, rgba(11,10,9,.88), rgba(11,10,9,.8) 50%, rgba(11,10,9,.92)); }
}

/* ============================================================
   THE CLOSE - the bay light comes on when you reach it
   ============================================================ */
.cta--bay {
  padding-block: clamp(7rem, 16vw, 12rem) clamp(5rem, 12vw, 9rem);
  border-top: 0;
}
.cta--bay .cta__glow { display: none; }
.cta__tube {
  position: absolute;
  left: 50%; top: clamp(2.5rem, 6vw, 4.5rem);
  width: min(62vw, 680px); height: 3px;
  border-radius: 3px;
  background: #FFF8E8;
  transform: translateX(-50%) scaleX(0);
  opacity: 0;
  box-shadow: 0 0 6px 1px rgba(255,238,196,.95), 0 0 26px 5px rgba(255,220,150,.3);
}
.cta__beam {
  position: absolute;
  left: 50%; top: clamp(2.5rem, 6vw, 4.5rem);
  width: min(170vw, 1900px); height: 110%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 34% 62% at 50% 0%, rgba(255,236,196,.17), rgba(255,226,170,.05) 46%, transparent 74%);
}
.cta--bay.is-lit .cta__tube { animation: tubeGrow .32s ease-out both, flicker 1s linear .3s both; }
.cta--bay.is-lit .cta__beam { animation: beamOn .6s ease-out .9s both; }
.cta--bay .cta__in > * { position: relative; }
.no-js .cta__tube, .no-js .cta__beam { opacity: 1; transform: translateX(-50%); }
@keyframes tubeGrow { from { transform: translateX(-50%) scaleX(0); } to { transform: translateX(-50%) scaleX(1); } }
@keyframes flicker { 0% { opacity: .16; } 6% { opacity: .95; } 9% { opacity: .08; } 16% { opacity: .8; } 20% { opacity: .04; } 30% { opacity: 1; } 33% { opacity: .55; } 38%, 100% { opacity: 1; } }
@keyframes beamOn { 0% { opacity: 0; } 18% { opacity: .85; } 30% { opacity: .35; } 100% { opacity: 1; } }

/* ============================================================
   SERVICE CARDS - lift and catch the light under a pointer
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  .svc { transform-style: preserve-3d; }
  .svc::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: radial-gradient(22rem 22rem at var(--gx, 50%) var(--gy, 0%), rgba(255,240,200,.16), transparent 60%);
    opacity: 0; transition: opacity var(--dur-3) var(--ease);
  }
  .svc:hover::after { opacity: 1; }
}

/* ============================================================
   THE INTRO - once a visit: real jobs spread across the screen and
   keep moving while the mark lands, then the rows fly apart.
   ============================================================ */
.intro-cover { display: none; }
.va-intro .intro-cover,
.va-bay-in .intro-cover {
  display: block;
  position: fixed; inset: 0; z-index: 900;
  background: #0B0A09;
  /* if the script never runs, the page is not held hostage */
  animation: coverFailsafe .5s ease 6s forwards;
}
.va-bay-in .intro-cover { animation-delay: 1.6s; }
@keyframes coverFailsafe { to { opacity: 0; visibility: hidden; } }
.va-intro body { overflow: hidden; }

.intro {
  position: fixed; inset: 0; z-index: 901;
  overflow: hidden;
  background: #0B0A09;
  --em: clamp(112px, 21vmin, 200px);
  cursor: pointer;
}
.intro__wall {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 1.1vmin;
  padding-block: 1.1vmin;
}
.intro__row { overflow: hidden; min-height: 0; --from: 16%; --to: -34%; }
.intro__row.wall-row--rev { --from: -16%; --to: 34%; }
.intro__wall .wall-track { gap: 1.1vmin; padding-right: 1.1vmin; }
.intro__wall .wall-track img { border-radius: 3px; filter: grayscale(.3) brightness(.5) contrast(1.06); }
.intro__veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 44% 48% at 50% 50%, rgba(11,10,9,.9) 0%, rgba(11,10,9,.62) 52%, rgba(11,10,9,.12) 100%);
}
/* Until .run the mark must not be on screen at all. Before .run the emblem
   carries no animation, so it sat there fully visible and then blinked out
   the instant .run applied introEm's `both` fill from opacity 0 - in the
   filmstrip, a logo that appeared at 350ms, vanished, and came back at
   1700ms. Invisible by default; .run is what brings it in. */
.intro__mark { opacity: 0; }
.intro.run .intro__mark { opacity: 1; }
.intro__mark {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: calc(var(--em) * .17);
  pointer-events: none;
}
/* the final emblem is a touch wider than tall (526 x 477) */
.intro__em { position: relative; width: var(--em); aspect-ratio: 526 / 477; }
.intro__em img { width: 100%; height: 100%; display: block; object-fit: contain; }
.intro__shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,247,222,.9) 50%, transparent 60%) 120% 0 / 260% 100% no-repeat;
  -webkit-mask: url("/images/logo/final/viwanda-emblem.svg") center / 100% 100% no-repeat;
  mask: url("/images/logo/final/viwanda-emblem.svg") center / 100% 100% no-repeat;
}
.intro__word { width: calc(var(--em) * 2.6); max-width: calc(100vw - 48px); }
.intro__word img, .intro__word svg { width: 100%; height: auto; display: block; overflow: visible; }
/* the name must read over whatever photograph is passing behind it: a soft
   dark halo hugs the letters, so ivory never sits straight on a bright panel */
.intro__word svg, .intro__word img {
  filter: drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 2px 10px rgba(0,0,0,.85)) drop-shadow(0 0 26px rgba(0,0,0,.65));
}
/* A phone is portrait, so the mark is wide against a narrow screen and the
   old oval of shadow ended inside the name - VIWANDA's first and last letters
   sat on bright car panels. Here the shadow is a band as wide as the screen,
   the photographs run a step darker, and the name is as large as it fits. */
@media (max-width: 760px) {
  .intro__wall .wall-track img { filter: grayscale(.35) brightness(.36) contrast(1.05); }
  .intro__veil {
    background:
      radial-gradient(ellipse 95% 30% at 50% 52%, rgba(11,10,9,.94) 0%, rgba(11,10,9,.86) 45%, rgba(11,10,9,.4) 80%, rgba(11,10,9,.15) 100%);
  }
  .intro__word { width: calc(100vw - 36px); max-width: 420px; }
}
.intro__word .vw-name { transform-box: fill-box; transform-origin: 50% 100%; }
.intro__skip {
  position: absolute; z-index: 8;
  right: calc(20px + env(safe-area-inset-right, 0px)); top: calc(18px + env(safe-area-inset-top, 0px));
  font: 500 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.55); background: none; border: 0; padding: 10px; cursor: pointer;
}
.intro__skip:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 2px; }

/* The rows ride on .wall-on, which is set on the first frame, NOT on .run,
   which waits for the logo assets. That split is what removes the black
   screen at the start. */
.intro.wall-on .intro__row { animation: introRowIn 1.3s cubic-bezier(.16,.84,.3,1) calc(var(--r) * .09s) both; }
.intro.run .intro__em { animation: introEm .95s cubic-bezier(.2,.9,.3,1.18) .5s both; }
.intro.run .vw-name { animation: introName .75s cubic-bezier(.2,.8,.2,1) .9s both; }
.intro.run .vw-tag { animation: introTag .95s cubic-bezier(.45,0,.2,1) 1.15s both; }
.intro.run .intro__word > img { animation: introName .75s cubic-bezier(.2,.8,.2,1) .9s both; }
.intro.run .intro__shine { animation: introShine 1.25s cubic-bezier(.45,0,.3,1) 1.7s both; }
@keyframes introRowIn { from { opacity: 0; transform: translateX(var(--from)); } to { opacity: 1; transform: none; } }
@keyframes introEm { from { opacity: 0; transform: scale(.78); } to { opacity: 1; transform: none; } }
@keyframes introName { from { opacity: 0; transform: translateY(26%); } to { opacity: 1; transform: none; } }
@keyframes introTag { from { opacity: 0; clip-path: inset(-20% 100% -20% 0); } to { opacity: 1; clip-path: inset(-20% 0 -20% 0); } }
@keyframes introShine { 0% { opacity: 1; background-position: 120% 0; } 100% { opacity: 1; background-position: -20% 0; } }

/* leaving: the rows fly apart and the page is underneath */
.intro.out { pointer-events: none; animation: introOut .55s ease .4s both; }
.intro.out .intro__row { animation: introRowOut .85s cubic-bezier(.7,0,.84,0) calc(var(--r) * .05s) both; }
.intro.out .intro__mark { transition: transform .8s cubic-bezier(.5,0,.2,1), opacity .6s ease .15s; transform: scale(1.04); opacity: 0; }
.intro.out .intro__skip { opacity: 0; }
@keyframes introRowOut { to { opacity: 0; transform: translateX(var(--to)); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

/* the hero copy rises as the intro hands over */
.hero--bay .hero__copy > *, .hero--bay .qs, .hero--bay .hero__meta {
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}
.intro-hold .hero--bay .hero__copy > *,
.intro-hold .hero--bay .qs,
.intro-hold .hero--bay .hero__meta { opacity: 0; transform: translateY(18px); }
.hero--bay .hero__copy > *:nth-child(2) { transition-delay: .06s; }
.hero--bay .hero__copy > *:nth-child(3) { transition-delay: .14s; }
.hero--bay .hero__copy > *:nth-child(4) { transition-delay: .22s; }
.hero--bay .qs { transition-delay: .18s; }
.hero--bay .hero__meta { transition-delay: .3s; }

/* ============================================================
   BAY LIGHT - between pages
   Leaving: the screen goes dark and the strip light strikes.
   Arriving: the page opens as the light floods out of it.
   ============================================================ */
.bay {
  position: fixed; inset: 0; z-index: 950;
  background: #0B0A09;
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility 0s linear .22s;
  /* the lockup: emblem, then VIWANDA / AUTOMOTIVE LIMITED under it.
     --mh is its whole height, so the strip light can hang above it. */
  --em: clamp(72px, 15vmin, 108px);
  --nw: min(70vw, 330px);
  --mh: calc(var(--em) + 16px + var(--nw) * .1935);
}
.bay.is-on, .bay.is-in { opacity: 1; visibility: visible; transition: opacity .22s ease; }
.bay__tube {
  position: absolute; z-index: 2;
  left: 50%; top: calc(50% - var(--mh) / 2 - var(--em) * .62);
  width: min(52vw, 560px); height: 3px;
  border-radius: 3px; background: #FFF8E8;
  transform: translateX(-50%) scaleX(0); opacity: 0;
  box-shadow: 0 0 6px 1px rgba(255,238,196,.95), 0 0 26px 5px rgba(255,220,150,.32);
}
.bay__beam {
  position: absolute; z-index: 1;
  left: 50%; top: calc(50% - var(--mh) / 2 - var(--em) * .62);
  width: min(170vw, 1900px); height: 120vh;
  transform: translateX(-50%); opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse 33% 60% at 50% 0%, rgba(255,236,196,.22), rgba(255,226,170,.07) 46%, transparent 74%);
}
.bay__em {
  position: absolute; z-index: 3;
  left: 50%; top: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.bay__em img { display: block; width: var(--em); height: var(--em); object-fit: contain; }
.bay__em img.bay__name { width: var(--nw); height: auto; aspect-ratio: 1173 / 227; }
/* Leaving. Retimed so the mark is FINISHED before the browser navigates.
   The strike used to run to 900ms against a 760ms navigation, so the
   emblem was still 30% short of lit when the screen was torn away - the
   logo was cut off mid-form every single time. Everything now lands by
   600ms (tube .16, flicker .54, beam .56, emblem .60) and garage.js holds
   the complete mark still before it leaves. Keep the two in step: BAY_OUT
   there must stay above the last number here. */
.bay.is-on .bay__tube { animation: tubeGrow .16s ease-out both, bayFlicker .4s linear .14s both; }
.bay.is-on .bay__beam { animation: beamOn .3s ease-out .26s both; }
.bay.is-on .bay__em { animation: bayLit .36s ease-out .24s both; }
@keyframes bayFlicker { 0% { opacity: .16; } 10% { opacity: .95; } 18% { opacity: .08; } 30% { opacity: .85; } 38% { opacity: .1; } 55%, 100% { opacity: 1; } }
@keyframes bayLit { from { opacity: 0; filter: brightness(.15); } to { opacity: 1; filter: none; } }

/* Arriving: the light is already struck, so the mark carries over whole
   from the page we just left - but only if it has actually decoded. The
   emblem waits on .is-lit, which garage.js sets once the image is ready,
   rather than being snapped to full and flooded out over an empty box. */
.bay.is-in .bay__tube { opacity: 1; transform: translateX(-50%) scaleX(1); }
.bay.is-in .bay__beam { opacity: 1; }
.bay.is-in .bay__em { opacity: 0; transition: opacity .2s ease; }
.bay.is-in.is-lit .bay__em { opacity: 1; }
.bay.is-in.is-leaving { opacity: 0; visibility: hidden; transition: opacity .6s ease .12s, visibility 0s linear .72s; }
.bay.is-in.is-leaving .bay__beam { transition: transform .7s cubic-bezier(.3,0,.2,1), opacity .7s ease; transform: translateX(-50%) scale(2.2); }
.bay.is-in.is-leaving .bay__em { transition: opacity .3s ease, transform .6s ease; opacity: 0; transform: translate(-50%, -50%) scale(1.08); }

@keyframes pinPulse {
  0% { box-shadow: 0 0 0 0 rgba(219,168,80,.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(219,168,80,0); }
}
@media (prefers-reduced-motion: reduce) { .hero--bay .hero__kicker::before { animation: none; } }

/* ---------- reduced motion: the page, complete and still ---------- */
@media (prefers-reduced-motion: reduce) {
  .wall-track, .road__tread i, .spot::before { animation: none !important; }
  .hero__wall { transform: rotate(-4deg) scale(1.08); }
  @media (max-width: 760px) { .hero__wall { transform: scale(1.04); } }
  .promise__bg img { transform: none; }
  .promise--wheel .promise__row span { transform: none; }
  .engine__zoom { transform: none; }
  .spot { opacity: 1; transform: none; }
  .cta__tube { opacity: 1; transform: translateX(-50%); animation: none !important; }
  .cta__beam { opacity: 1; animation: none !important; }
  .intro, .bay, .intro-cover { display: none !important; }
}


/* ============================================================
   SECTION TEXTURES - a surface, not a picture
   A photograph of tools or parts set so far back it reads as the grain
   of the section rather than as an image on it.

   The hard part is that this site has a light theme as well as a dark
   one. A dark photograph behind dark-on-light text wrecks the contrast
   the whole palette was measured for, so the veil is painted in the
   section's OWN background token and the image is pushed in opposite
   directions per theme: lifted and bleached under a light surface,
   darkened under an ink one. Every text block over these was measured
   against the composited result, not eyeballed.
   ============================================================ */
.has-tex { position: relative; isolation: isolate; overflow: hidden; }
.has-tex > .wrap { position: relative; z-index: 1; }

.sec-tex {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.sec-tex.is-in { opacity: 1; }

/* a slow drift as the section passes, driven by garage.js' one scroll
   loop rather than a second observer */
.sec-tex picture {
  position: absolute; inset: -12%;
  display: block;
  transform: translate3d(0, calc(var(--p, .5) * 46px - 23px), 0) scale(1.05);
  will-change: transform;
}
.sec-tex img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* blur is doing real work: these sources are 600-740px wide, and a
     section is wider than that on any desktop. Softening on purpose
     reads as depth; softening by accident reads as a low-res image. */
  filter: grayscale(.5) brightness(1.3) contrast(.88) blur(1.4px);
  /* Judged on screen, not guessed: at .09 the photograph may as well not
     have been there. Both themes carry far more than the first pass
     assumed, because the veil and the per-theme filter are doing the
     protective work, not the opacity. Every text block was measured
     against the composited result afterwards. */
  opacity: .6;
}
/* The veil has to be painted in the SECTION's own background, not a
   fixed token. Painting --bg-sunk behind a --bg section made the surface
   darker than the palette intends, and in light theme dark-on-light text
   loses contrast as the surface darkens - the tenets band measured
   3.56:1 that way. Each section now hands its own colour down. */
.sec-tex__veil {
  --tex-bg: var(--bg);
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    var(--tex-bg) 0%,
    color-mix(in srgb, var(--tex-bg) 84%, transparent) 22%,
    color-mix(in srgb, var(--tex-bg) 80%, transparent) 78%,
    var(--tex-bg) 100%);
}
.section--sunk .sec-tex__veil { --tex-bg: var(--bg-sunk); }
.on-ink .sec-tex__veil { --tex-bg: #0B0A09; }

/* under ink, the image goes the other way: darker, warmer, and allowed
   to show more, because there is more room above black than below white */
:root:not([data-theme="light"]) .sec-tex img,
.on-ink .sec-tex img {
  filter: grayscale(.32) brightness(.56) contrast(1.08) blur(1.4px);
  opacity: .85;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sec-tex img {
    filter: grayscale(.32) brightness(.56) contrast(1.08) blur(1.4px);
    opacity: .85;
  }
}
:root[data-theme="dark"] .sec-tex img {
  filter: grayscale(.32) brightness(.56) contrast(1.08) blur(1.4px);
  opacity: .85;
}

/* a phone shows less of the section at once, so the drift is smaller and
   the texture quieter - it is competing with the text for a narrow column */
@media (max-width: 760px) {
  .sec-tex picture { transform: translate3d(0, calc(var(--p, .5) * 24px - 12px), 0) scale(1.04); }
  .sec-tex img { opacity: .46; }
  :root:not([data-theme="light"]) .sec-tex img,
  :root[data-theme="dark"] .sec-tex img,
  .on-ink .sec-tex img { opacity: .7; }
}

@media (prefers-reduced-motion: reduce) {
  .sec-tex { transition: none; opacity: 1; }
  .sec-tex picture { transform: none; }
}

/* ============================================================
   PAGE HEADS - every inner page opens in the bay, each on its own
   backdrop: a photograph, the wall of work, the clients, the gear,
   the strip light, the tread, or a before/after that wipes itself.
   ============================================================ */
.pagehead--bay {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -4.25rem;
  padding-top: calc(4.25rem + clamp(4.5rem, 14vh, 9rem));
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
  min-height: min(74svh, 46rem);
  display: flex;
  align-items: flex-end;
  border-bottom: 0;
}
.pagehead--bay > .wrap { width: 100%; position: relative; }
.pagehead--bay .pagehead__h {
  font-size: var(--step-7);
  font-weight: 450;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 16ch;
  text-wrap: balance;
}
.pagehead--bay .lede { color: var(--text-2); max-width: 58ch; }
/* On a desktop the backdrop's subject sits right of centre - the gear, the
   lit cars of the wall - and a 58ch lede ran its line ends over it: the
   headings held 6:1 while the ledes fell to 2.9:1 (tools/qa/section-contrast.js).
   46ch keeps the words on the dark side of the veil. */
@media (min-width: 761px) { .pagehead--bay .lede { max-width: 46ch; } }
.pagehead--bay .pagehead__e { display: flex; align-items: center; gap: var(--sp-3); }
.pagehead--bay .pagehead__e::after { content: ""; width: 2.5rem; height: 1px; background: var(--accent-fill); }
.pagehead--bay .cluster .btn--ghost { color: var(--text); }

.backdrop { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.backdrop__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,10,9,.94) 0%, rgba(11,10,9,.8) 42%, rgba(11,10,9,.34) 78%, rgba(11,10,9,.46) 100%),
    linear-gradient(180deg, rgba(11,10,9,.72) 0%, transparent 30%, transparent 60%, rgba(11,10,9,.96) 100%);
}
/* ---------- page heads on a phone: a window, then the words ----------
   Every inner page has its own backdrop - the tool wall, the work wall,
   the before/after wipe, the client logos, the tread, the gear, the alloy,
   the strip light - and on a phone not one of them could be seen: a flat
   76-96% veil over them, and a text block tall enough to fill the head.

   Two moves. A window of backdrop ABOVE the words, so each page opens on
   its picture. And the scrim travels WITH the words, as a gradient on the
   copy block itself - so a six-line lede and a one-line lede each get
   exactly the protection they need, with nothing tuned per page. */
@media (max-width: 760px) {
  .pagehead--bay {
    min-height: 0;
    padding-top: calc(4.25rem + clamp(10.5rem, 30svh, 15rem));
    padding-bottom: 2.25rem;
  }
  .backdrop__veil {
    background: linear-gradient(180deg, rgba(11,10,9,.74) 0, rgba(11,10,9,.12) 128px, rgba(11,10,9,.06) 100%);
  }
  .pagehead--bay > .wrap::before {
    content: "";
    position: absolute; z-index: -1; pointer-events: none;
    left: 0; right: 0; top: -7.5rem; bottom: -4rem;
    background: linear-gradient(180deg,
      rgba(11,10,9,0) 0,
      rgba(11,10,9,.74) 5rem,
      rgba(11,10,9,.92) 8.5rem,
      rgba(11,10,9,.95) 100%);
  }
}

/* a photograph that breathes, and leans away from the pointer */
.backdrop--photo picture {
  position: absolute; inset: -8%; display: block;
  transform: translate3d(calc(var(--mx, 0) * -14px), calc(var(--sy, 0px) + var(--my, 0) * -10px), 0);
  will-change: transform;
}
.backdrop--photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.62) saturate(.92) contrast(1.05);
  animation: kenburns 30s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate3d(-2%, -1%, 0); } }

/* The pegboard is a high-key photograph - bright blue board, pale wood -
   where every other backdrop here is a dark one, and the shared
   brightness(.62) above was tuned for those. Dropped in unchanged it put
   the page head at 3.05:1 against a 4.5 need. Graded down on its own so
   the tools still read without the heading fighting them. */
.backdrop--tools img { filter: brightness(.3) saturate(.72) contrast(1.12); }

/* a wheel that keeps turning: a large square so the corners never show */
.backdrop--turn picture {
  position: absolute; display: block;
  width: 170vmax; height: 170vmax;
  left: calc(72% - 85vmax); top: calc(50% - 85vmax);
  transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--sy, 0px) + var(--my, 0) * -8px), 0);
}
.backdrop--turn img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%;
  filter: brightness(.6) contrast(1.06);
  animation: turn 140s linear infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }

/* the gear, turning with the page */
.backdrop--gear .gear {
  position: absolute;
  width: min(86vmin, 820px); aspect-ratio: 1;
  right: max(-14vmin, -160px); top: 50%;
  transform: translateY(-50%) rotate(var(--rot, 0deg));
  will-change: transform;
}
.backdrop--gear .gear img { width: 100%; height: 100%; display: block; animation: turn 160s linear infinite; }
.backdrop--gear .gear::after {
  content: ""; position: absolute; inset: 25%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,226,170,.10), transparent 70%);
}
@media (max-width: 760px) { .backdrop--gear .gear { width: 120vw; right: -50vw; opacity: .55; } }

/* On a phone every backdrop now shows through a clear window above the
   copy, with the copy carrying its own scrim. They were graded to survive
   a 90% veil; in the open they were simply too dark, so they come up here.
   None of this reaches the text - the scrim on the copy block does that. */
@media (max-width: 760px) {
  .backdrop--tools img { filter: brightness(.66) saturate(.9) contrast(1.06); }
  .backdrop--photo img { filter: brightness(.78) saturate(.95) contrast(1.04); }
  .backdrop--turn img  { filter: brightness(.78) contrast(1.06); }
  /* the gear turns in the window, not behind the words */
  .backdrop--gear .gear {
    width: 96vw; right: -24vw; top: 10.5rem; opacity: .92;
  }
  .backdrop--logos .logo-rows { inset: 3.5rem -10% auto -10%; height: 15rem; transform: rotate(-4deg); }
  .backdrop--logos .logo-track img { opacity: .62; height: 40px; }
  /* the alloy turns about the window's centre, not the section's: centred
     half way down a tall head, the window only ever showed its dark rim */
  .backdrop--turn picture {
    width: 150vw; height: 150vw;
    left: calc(50% - 75vw); top: calc(9.5rem - 75vw);
  }
}

/* the clients, drifting in rows */
.backdrop--logos .logo-rows {
  position: absolute; inset: -12% -6%;
  display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); align-items: center;
  transform: rotate(-4deg);
}
.logo-track {
  display: flex; align-items: center; gap: 7vw;
  width: max-content; padding-right: 7vw;
  animation: wallDrift var(--d, 60s) linear infinite;
}
.wall-row--rev .logo-track { animation-direction: reverse; }
.logo-track img { height: clamp(34px, 7vh, 70px); width: auto; max-width: none; opacity: .34; filter: var(--logo-ink); }

/* the strip light: struck on arrival (book) or failing (404) */
.bd-tube {
  position: absolute; left: 50%; top: clamp(5.75rem, 17vh, 9.5rem);
  width: min(70vw, 760px); height: 3px; border-radius: 3px;
  background: #FFF8E8; transform: translateX(-50%);
  box-shadow: 0 0 6px 1px rgba(255,238,196,.95), 0 0 26px 5px rgba(255,220,150,.32);
}
.bd-beam {
  position: absolute; left: 50%; top: clamp(5.75rem, 17vh, 9.5rem);
  width: min(170vw, 1900px); height: 120%; transform: translateX(-50%);
  background: radial-gradient(ellipse 34% 62% at 50% 0%, rgba(255,236,196,.2), rgba(255,226,170,.06) 46%, transparent 74%);
}
.backdrop--bay .bd-tube { animation: tubeGrow .32s ease-out .2s both, flicker 1.05s linear .5s both; }
.backdrop--bay .bd-beam { animation: beamOn .6s ease-out 1.15s both; }
.backdrop--flicker .bd-tube { animation: tubeGrow .32s ease-out .2s both, dying 6s linear .6s infinite; }
.backdrop--flicker .bd-beam { animation: dying 6s linear .6s infinite; }
@keyframes dying {
  0%, 50%, 66%, 100% { opacity: 1; }
  51% { opacity: .12; } 53% { opacity: .9; } 55% { opacity: .04; }
  58% { opacity: .8; } 60% { opacity: .2; } 62% { opacity: 1; }
}

/* before and after, wiping itself */
.bd-ba { position: absolute; inset: -3%; }
.bd-ba img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.55) saturate(.9) contrast(1.04);
}
.bd-ba img + img { animation: baWipe 9s ease-in-out infinite alternate; }
.bd-ba i {
  position: absolute; inset: 0;
  border-left: 2px solid var(--gold-500);
  box-shadow: -10px 0 24px -12px rgba(219,168,80,.9);
  animation: baLine 9s ease-in-out infinite alternate;
}
@keyframes baWipe { from { clip-path: inset(0 0 0 24%); } to { clip-path: inset(0 0 0 76%); } }
@keyframes baLine { from { transform: translateX(24%); } to { transform: translateX(76%); } }

/* jump straight to a service */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--sp-6) 0 0; padding: 0; list-style: none; }
.jump a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border-2); border-radius: var(--r-pill);
  font-size: var(--step--1); color: var(--text);
  /* 72%, not 55%: these chips sit on the tool wall, whose blue board is
     bright enough to wash a lighter chip out */
  background: color-mix(in srgb, #0B0A09 72%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.jump a:hover { border-color: var(--accent); color: var(--accent); }
/* --text-2: the ordinal is small mono text, and at --text-3 over the tool
   wall it measured 2.24:1 against the 4.5 it needs */
.jump .mono { color: var(--text-2); font-size: var(--step--2); }
/* On a phone the eight chips wrapped to four or five rows, and how many
   depended on the font: when the web fonts landed late on a slow
   connection the rows re-wrapped and the whole page head changed height -
   Services' largest layout shift (tools/qa/vitals.js). One swipeable row
   is the same height in any font, and leaves more of the tool wall to see. */
@media (max-width: 760px) {
  .jump {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 2.5rem), transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 2.5rem), transparent);
  }
  .jump::-webkit-scrollbar { display: none; }
  .jump li { flex: none; scroll-snap-align: start; }
  .jump a { white-space: nowrap; }
}

/* ---------- services: each photograph opens as it arrives ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band__media picture, .band__solo picture {
      animation: bandReveal linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 38%;
    }
    .band__media img, .band__solo img {
      animation: bandZoom linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes bandReveal { from { clip-path: inset(9% 12% 9% 12% round 6px); } to { clip-path: inset(0 0 0 0 round 3px); } }
    @keyframes bandZoom { from { transform: scale(1.14); } to { transform: scale(1); } }
  }
}

/* ---------- fleet: the four steps fill like a job card ---------- */
.steps[data-jobcard] { position: relative; }
.steps[data-jobcard]::before {
  content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--accent-fill), var(--gold-300));
  transform-origin: top; transform: scaleY(var(--fill, 0));
}
.steps[data-jobcard] .step { position: relative; transition: background var(--dur-3) var(--ease); }
.steps[data-jobcard] .step.is-on { background: color-mix(in srgb, var(--accent-fill) 6%, var(--surface)); }

/* ============================================================
   LIGHTBOX - every job photograph opens full screen
   ============================================================ */
.gi { cursor: zoom-in; }
.gi:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.lb {
  position: fixed; inset: 0; z-index: 800;
  display: grid; place-items: center;
  background: rgba(8,7,6,.94);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.lb__fig { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: min(92vw, 1200px); }
.lb__img {
  /* as large as the screen allows, in the photo's own proportions (--ar is
     set from the photo itself): never a fixed box the picture is pulled into */
  --ar: 1.3333; --room: calc(100svh - 170px);
  display: block;
  width: min(92vw, 1200px, calc(var(--room) * var(--ar)));
  height: auto;
  aspect-ratio: var(--ar);
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform-origin: 50% 50%;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
  touch-action: pan-y;
  user-select: none; -webkit-user-drag: none;
}
.lb__cap {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: center;
  color: #CFC7C1; font-size: var(--step--1); text-align: center; max-width: 60ch; padding-inline: 16px;
}
.lb__stage { color: var(--gold-500); }
.lb__n { color: #8F857E; font-size: var(--step--2); font-family: var(--font-mono); }
.lb__btn {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); background: rgba(20,18,16,.6); color: #F2EEEB;
  cursor: pointer; transition: border-color var(--dur-2) var(--ease);
}
.lb__btn:hover { border-color: var(--gold-500); }
.lb__btn:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 2px; }
.lb__x { top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
.lb__prev { left: calc(16px + env(safe-area-inset-left, 0px)); top: 50%; margin-top: -24px; }
.lb__next { right: calc(16px + env(safe-area-inset-right, 0px)); top: 50%; margin-top: -24px; }
.lb__prev svg { transform: rotate(180deg); }
@media (max-width: 640px) {
  .lb__prev, .lb__next { top: auto; margin-top: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .lb__prev { left: calc(50% - 60px); } .lb__next { right: calc(50% - 60px); }
  .lb__img { --room: calc(100svh - 220px); }
}
.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .backdrop--photo img, .backdrop--turn img, .backdrop--gear .gear img,
  .logo-track, .bd-tube, .bd-beam, .bd-ba img + img, .bd-ba i { animation: none !important; }
  .bd-ba img + img { clip-path: inset(0 0 0 50%); }
  .bd-ba i { transform: translateX(50%); }
  .lb__img { transition: none; }
}

/* ============================================================
   INTERLUDES - a tyre wall between sections, with the trade's own
   words sliding across it in opposite directions as you scroll
   ============================================================ */
.interlude {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(20rem, 64vh, 38rem);
  display: grid;
  align-content: center;
  gap: clamp(.25rem, 1vw, .75rem);
}
.interlude__bg { position: absolute; inset: -16% 0; z-index: -2; }
.interlude__bg picture { display: block; width: 100%; height: 100%; }
.interlude__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.05);
  filter: brightness(.48) contrast(1.12) saturate(.9);
  will-change: transform;
}
.interlude::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, rgba(11,10,9,.6) 100%),
    linear-gradient(180deg, rgba(11,10,9,.55), transparent 22%, transparent 78%, rgba(11,10,9,.55));
}
.interlude[data-interlude="tread-wall"] .interlude__bg img { filter: brightness(.78) contrast(1.15) saturate(.9); }
.interlude--warm .interlude__bg img { filter: brightness(.52) contrast(1.08) saturate(.85) sepia(.18); }
.interlude__row {
  display: flex;
  width: max-content;
  white-space: nowrap;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.25rem, 12vw, 10.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  transform: translate3d(var(--wx, 0px), 0, 0);
  will-change: transform;
}
.interlude__row span { padding-right: .32em; }
.interlude__row .o { color: transparent; -webkit-text-stroke: 1.25px rgba(242,238,235,.62); }
.interlude__row .g { color: var(--gold-500); }
.interlude__row .w { color: #F2EEEB; }
.interlude__row .dot { color: var(--gold-500); padding-right: .32em; }

/* ============================================================
   THE ROLLING WHEEL - a real wheel driven by your scroll: it turns
   by exactly the distance it travels and leaves its track behind
   ============================================================ */
.roll {
  position: relative;
  height: clamp(84px, 11vw, 140px);
  overflow: hidden;
  background: var(--bg);
}
.roll::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: var(--border-2);
}
.roll__track {
  position: absolute; left: 0; bottom: 0; height: 7px;
  width: var(--tx, 0px);
  /* a tread track, drawn rather than loaded */
  background:
    repeating-linear-gradient(90deg, var(--text-3) 0 3px, transparent 3px 9px) 0 0 / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 4px, var(--text-3) 4px 7px, transparent 7px 9px) 0 4px / 100% 3px no-repeat;
  opacity: .32;
}
.roll__wheel {
  position: absolute; left: 0; bottom: 4px;
  height: calc(100% - 10px); aspect-ratio: 1;
  transform: translate3d(var(--rx, -120%), 0, 0) rotate(var(--rr, 0deg));
  will-change: transform;
}
.roll__wheel img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 6px rgba(0,0,0,.28)); }
.roll__shadow {
  position: absolute; bottom: 2px; left: 0;
  width: calc(clamp(84px, 11vw, 140px) * .8); height: 10px;
  transform: translate3d(calc(var(--rx, -120%) + 10%), 0, 0);
  background: radial-gradient(closest-side, rgba(0,0,0,.28), transparent);
}

/* ============================================================
   THE GEAR WATERMARK - shaded sections carry the gear, turning
   slowly as the page moves, so no ground is ever flat
   ============================================================ */
.section--sunk { position: relative; isolation: isolate; overflow: clip; }
.section--sunk::after {
  content: "";
  position: absolute; z-index: -1; pointer-events: none;
  width: clamp(320px, 42vw, 620px); aspect-ratio: 1;
  right: clamp(-220px, -14vw, -120px); bottom: clamp(-220px, -14vw, -120px);
  background: url("/images/logo/v2/workshop-ring-mono-ink.svg") center / contain no-repeat;
  opacity: .045;
  transform: rotate(var(--page-rot, 0deg));
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section--sunk::after { filter: invert(1); opacity: .06; } }
:root[data-theme="dark"] .section--sunk::after { filter: invert(1); opacity: .06; }

@media (prefers-reduced-motion: reduce) {
  .interlude__bg img, .interlude__row, .roll__wheel, .section--sunk::after { transform: none !important; }
  .roll__wheel { left: 50%; margin-left: calc(clamp(84px, 11vw, 140px) / -2); }
  .roll__track { width: 50%; }
}

/* ============================================================
   THE TORCH - on a desktop, a warm work-lamp follows the pointer
   across every dark band
   ============================================================ */
.cta--bay, .engine { isolation: isolate; }
.torch {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(30rem 30rem at var(--tx, 50%) var(--ty, 50%), rgba(255,226,170,.09), transparent 62%);
  opacity: 0;
  transition: opacity .5s ease;
}
.torch.is-on { opacity: 1; }

/* ============================================================
   THE FOOTER - the workshop after dark, the name across the floor
   ============================================================ */
.site-footer.on-ink {
  margin-top: 0;
  border-top: 1px solid #1F1B19;
  background: #0B0A09;
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.site-footer.on-ink .foot__logo--light { display: none; }
.site-footer.on-ink .foot__logo--dark { display: block; }
.site-footer.on-ink::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: clamp(360px, 48vw, 720px); aspect-ratio: 1;
  right: clamp(-260px, -16vw, -140px); top: clamp(-260px, -16vw, -140px);
  background: url("/images/logo/v2/workshop-ring-mono-ink.svg") center / contain no-repeat;
  filter: invert(1);
  opacity: .05;
  transform: rotate(var(--page-rot, 0deg));
}
.foot__giant {
  margin-top: var(--sp-7);
  padding-inline: max(16px, 3vw);
  padding-bottom: var(--sp-4);
  line-height: 0;
  opacity: .1;
}
.foot__giant img { width: 100%; height: auto; display: block; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .foot__giant {
      animation: giantRise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    @keyframes giantRise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: .1; } }
  }
}

/* ============================================================
   HEADLINES THAT ARRIVE
   ============================================================ */
.hw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.hw > span { display: inline-block; }
.hw-ready .hw > span { transform: translateY(108%); transition: transform .95s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 55ms); }
.hw-ready.is-in .hw > span { transform: none; }

/* ============================================================
   SERVICES - the ghost word behind each band
   ============================================================ */
.band { position: relative; isolation: isolate; overflow: clip; }
.band__ghost {
  position: absolute; z-index: -1; pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(calc(-50% + var(--gx, 0vw)), -50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(6rem, 22vw, 20rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--border-2);
}

@media (prefers-reduced-motion: reduce) {
  .hw-ready .hw > span { transform: none; transition: none; }
  .band__ghost { transform: translate(-50%, -50%); }
  .foot__giant { transform: none; }
}

/* the job, start to finish, inside the viewer */
.lb__journey { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.lb__jh { width: 100%; text-align: center; color: #8F857E; margin: 0; }
.lb__journey button {
  display: grid; gap: 5px; justify-items: center;
  padding: 4px 4px 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 3px;
  background: none; color: #CFC7C1; cursor: pointer;
  font: 500 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  transition: border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.lb__journey img { width: 84px; height: 56px; object-fit: cover; border-radius: 2px; display: block; }
.lb__journey button[aria-pressed="true"] { border-color: var(--gold-500); color: var(--gold-500); }
.lb__journey button:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 2px; }

/* ============================================================
   THE QUOTE - a job card fills in beside the form as you answer
   ============================================================ */
.book__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) {
  .book__grid { grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem); }
  .jc { position: sticky; top: 6.5rem; }
}
.jc {
  /* Ruled like real job-card paper until November 2026, when the client
     read it as "a lot of lines running across the page" - eight full-width
     rules stacked under a form that already has its own. The paper now
     carries no rules at all; the rows are held apart by space, and only the
     header keeps its line. The card also sat at -1.2deg, which read as
     skewed rather than casual, so it hangs straight. */
  --paper: #FBF7EE; --ink: #2B241D; --faint: #9A8E80;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: 0 1px 2px rgba(23,19,15,.08), 0 18px 40px -18px rgba(23,19,15,.35);
  font-family: var(--font-mono);
}
.jc::before {
  /* the perforated edge it was torn from */
  content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 10px;
  background: radial-gradient(circle at 6px 5px, var(--bg) 3px, transparent 3.5px) 0 0 / 12px 10px repeat-x;
}
.jc__top { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding-bottom: .85rem; border-bottom: 1.5px solid var(--ink); }
.jc__top img { width: 48px; height: 44px; display: block; object-fit: contain; }
.jc__co { margin: 0; font: 500 .74rem/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.jc__ad { margin: .15rem 0 0; font-size: .68rem; color: var(--faint); letter-spacing: .06em; }
.jc__no { margin: 0; text-align: right; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); line-height: 1.5; }
.jc__no span { color: #B30000; }
.jc__dl { margin: .4rem 0 0; }
.jc__row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .5rem .75rem; min-height: 2.1rem; align-items: baseline; padding-bottom: .55rem; }
.jc__row dt { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.jc__row dd {
  margin: 0; font-size: .86rem; color: #1D2A55;
  font-family: "Segoe Print", "Bradley Hand", "Comic Neue", var(--font-body);
  overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.jc__row.is-ink dd { animation: ink .6s ease both; }
@keyframes ink { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.jc__stamp {
  position: absolute; right: 1.1rem; bottom: 3.5rem;
  padding: .35rem .7rem;
  border: 2.5px solid #B30000; border-radius: 4px;
  color: #B30000; font: 500 .8rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(-12deg) scale(1.25);
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity .25s ease, transform .4s var(--ease-spring);
}
.jc__stamp.is-on { opacity: .85; transform: rotate(-12deg) scale(1); }
@media (max-width: 999px) { .jc { transform: none; } }

/* ---------- makes: each badge opens a quote ---------- */
.make__a { display: grid; justify-items: center; gap: inherit; color: inherit; text-decoration: none; position: relative; padding-bottom: 1.1rem; }
.make__a .make__mark, .make__a .make__word { transition: transform var(--dur-3) var(--ease-spring); }
.make__a:hover .make__mark, .make__a:hover .make__word,
.make__a:focus-visible .make__mark, .make__a:focus-visible .make__word { transform: translateY(-4px) scale(1.06); }
.make__cue {
  position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 4px);
  font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: var(--tr-label); text-transform: uppercase;
  color: var(--accent); opacity: 0; transition: opacity var(--dur-2) var(--ease), transform var(--dur-3) var(--ease);
}
.make__a:hover .make__cue, .make__a:focus-visible .make__cue { opacity: 1; transform: translate(-50%, 0); }
.make__a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }

/* ---------- clients: their own colours under a pointer ---------- */
.logowall__i.is-colour img { filter: none !important; opacity: 1 !important; }

/* ============================================================
   BACKGROUNDS
   Shaded sections are the shadow board: pegboard, with each tool's
   silhouette painted where it hangs. White sections are a job sheet's
   engineering graph paper, fading out from the middle.
   ============================================================ */
.section--sunk {
  background: var(--bg-sunk) url("/images/garage/vec/shadowboard-light.svg") 0 0 / 1200px auto repeat;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section--sunk { background-image: url("/images/garage/vec/shadowboard-dark.svg"); }
}
:root[data-theme="dark"] .section--sunk { background-image: url("/images/garage/vec/shadowboard-dark.svg"); }
@media (max-width: 640px) { .section--sunk { background-size: 900px auto; } }

.section--ruled:not(.section--sunk):not(.on-ink):not(.band) {
  --grid-c: color-mix(in srgb, var(--text) 5.5%, transparent);
  --grid-f: color-mix(in srgb, var(--text) 2.6%, transparent);
  background-image:
    radial-gradient(ellipse 70% 75% at 50% 50%, transparent 35%, var(--bg) 92%),
    linear-gradient(var(--grid-c) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-c) 1px, transparent 1px),
    linear-gradient(var(--grid-f) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-f) 1px, transparent 1px);
  background-size: 100% 100%, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: 0 0, -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

/* ============================================================
   PHONES - every tap target at least 44px, nothing wider than the
   screen. Sizes only; the look does not change.
   ============================================================ */
.book__grid { overflow-x: clip; }
@media (max-width: 760px), (pointer: coarse) {
  .btn { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .brand { min-height: 44px; }
  .filt, .jump a { min-height: 44px; }
  .spot { width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem; }
  .hero__tel, .qs__alt, .foot__cta, .foot__list a, .foot__loc a, .drawer__line, .loc a:not(.btn) {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .faq__q { min-height: 44px; }
  .foot__list { gap: 0; }
  .foot__list a { min-width: 44px; }
}

/* service cards on a touch screen: the light runs down each card as it scrolls through */
@media (hover: none), (pointer: coarse) {
  .svc { position: relative; }
  .svc::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: radial-gradient(20rem 9rem at var(--gx, 50%) var(--gy, 0%), rgba(219,168,80,.16), transparent 70%);
    opacity: 0; transition: opacity .4s ease;
  }
  .svc.is-lit::after { opacity: 1; }
}

/* nothing loops while it is off screen: a phone's battery is not ours to spend */
.is-off .wall-track, .is-off .logo-track, .is-off img, .is-off .bd-ba i,
.is-off .bd-tube, .is-off .bd-beam, .is-off .spot::before { animation-play-state: paused !important; }

@media (max-width: 560px) {
  .pagehead--bay .pagehead__h { font-size: var(--step-6); }
}

/* ============================================================
   MAKES - the makers' own marks, in their own colours on white,
   white on a dark ground (several brand colours are near-black)
   ============================================================ */
.make__mark { color: var(--brand, currentColor); }
.make__mark--wide { width: 6.2rem; height: 3.4rem; }
.on-ink .make__mark { color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .make__mark { color: var(--text); } }
:root[data-theme="dark"] .make__mark { color: var(--text); }
.makes__tm { margin-top: var(--sp-3); font-size: var(--step--2); color: var(--text-3); max-width: 60ch; }

/* ============================================================
   THE MAKES STRIP - straight off the tread, a white belt of marks
   White in both themes: these are the makers' colours, and they
   are only right on white. So the band carries its own light ink.
   ============================================================ */
.marques {
  --text: #17130F; --text-2: #4E4642; --text-3: #786E68;
  --accent: var(--gold-700); --focus: var(--gold-700); --border: #E7E1DC;
  position: relative;
  background: #FFFFFF;
  color: var(--text);
  padding-block: var(--sp-6) var(--sp-5);
  border-bottom: 1px solid var(--border);
  /* the tread band above ends in shadow; the white starts from it */
  box-shadow: inset 0 10px 18px -14px rgba(11,10,9,.35);
}
.marques__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--sp-2) var(--sp-5);
  margin-bottom: var(--sp-4);
}
.marques__h {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 400;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--text-3);
}
.marques__h b { color: var(--accent); font-weight: 500; margin-right: .6em; }
.marques__note { margin: 0; font-size: var(--step--1); color: var(--text-2); }
.marques .makes__tm { margin-top: var(--sp-4); }

.belt {
  --s: 3.6rem;                      /* the side of a square mark; every mark gets that area */
  --cell: 10.5rem;                  /* every mark gets the same slot, so the spacing is even
                                       centre to centre, whatever the mark's own width */
  position: relative;
  overflow: hidden;
  /* the marks come out of white and go back into it.
     The fade is a percentage, so on a phone 7% is about 27px against a cell
     of 168px — not enough to soften anything, which left Nissan and
     Mitsubishi looking chopped rather than passing through. Below, the fade
     is given a real width instead. */
  --fade: 7%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
@media (max-width: 760px) { .belt { --fade: 18%; } }
.belt__track { position: relative; display: flex; width: max-content; will-change: transform; }
.belt__set {
  list-style: none; margin: 0;
  display: flex; align-items: center;
  padding: var(--sp-3) 0;            /* no gap between slots: two sets join with no seam */
}
.belt__i { flex: none; width: var(--cell); display: flex; justify-content: center; }
.belt .make__a.belt__a {
  display: grid; justify-items: center; align-content: end; gap: var(--sp-2);
  height: calc(var(--s) + 1.7rem);
  min-width: 44px;
  padding: 0;
  color: var(--text-3);
}
.marques .belt .make__mark {
  color: var(--brand);             /* always the maker's own colour here, dark theme too */
  height: calc(var(--s) * var(--k));
  width: calc(var(--s) * var(--k) * var(--r));
  align-self: center;
}
.belt__n {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3);
  transition: color var(--dur-2) var(--ease);
}
.belt .make__a:hover .belt__n, .belt .make__a:focus-visible .belt__n { color: var(--accent); }
.belt .make__a:hover .make__mark, .belt .make__a:focus-visible .make__mark { transform: translateY(-3px) scale(1.06); }

/* reduced motion: one still row you can swipe along */
.belt.is-still { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
.belt.is-still .belt__set[aria-hidden] { display: none; }
@media (max-width: 760px) {
  .belt { --s: 2.7rem; --cell: 7.75rem; }
  .marques { padding-block: var(--sp-5) var(--sp-4); }
  .marques__head { margin-bottom: var(--sp-2); }
  .marques__note { font-size: var(--step--2); }
  .marques .makes__tm { font-size: .75rem; }
}

/* ============================================================
   WE COME TO YOU - pick-up and drop-off, and the mobile service
   Two cards. A lane marking runs along the top of each: the road
   between the workshop and wherever the car is.
   ============================================================ */
.reach__lead {
  margin: var(--sp-9) 0 var(--sp-6);
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 400;
  letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--text-3);
}
.reach__lead b { color: var(--accent); font-weight: 500; margin-right: .6em; }

/* ============================================================
   REACH - one road, two stops
   Two tiles said "here are two services". A road says what the
   services actually are: a journey, in one direction or the other.
   The road is a real column down the left; the stops sit on it and
   the copy sits beside it, so on a phone the scroll IS the journey.
   ============================================================ */
.reach {
  --road-w: 46px;
  --road-x: 10px;
  position: relative;
  padding-left: calc(var(--road-x) + var(--road-w) + var(--sp-5));
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
  /* the headlight is wider than the road it sits on, by design — clip so its
     glow can never widen the page. `clip` rather than `hidden`: no scroll
     container, so nothing here can trap a swipe. */
  overflow-x: clip;
}

/* ---- the road itself ---- */
.reach__route {
  position: absolute;
  left: var(--road-x); top: 0; bottom: 0; width: var(--road-w);
  pointer-events: none;
}
.reach__asphalt {
  position: absolute; inset: 0;
  border-radius: calc(var(--road-w) / 2);
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.07) 0 2px, transparent 2px calc(100% - 2px),
      rgba(255,255,255,.07) calc(100% - 2px) 100%),
    linear-gradient(180deg, #23201E, #171513 55%, #1E1B19);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
/* the centre line, running */
.reach__dashes {
  position: absolute; left: 50%; top: 10px; bottom: 10px; width: 3px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    180deg, var(--accent-fill) 0 18px, transparent 18px 34px);
  background-size: 3px 34px;
  animation: reachLane 1.9s linear infinite;
  opacity: .85;
}
@keyframes reachLane { to { background-position: 0 34px; } }

/* a headlight travelling the road, driven by scroll (garage.js sets --p) */
.reach__beam {
  position: absolute; left: 50%; top: 0; width: calc(var(--road-w) * 2.4);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  top: calc(var(--p, 0) * 100%);
  background: radial-gradient(circle,
    color-mix(in srgb, var(--accent-fill) 55%, transparent) 0%,
    color-mix(in srgb, var(--accent-fill) 16%, transparent) 38%,
    transparent 68%);
  opacity: .9;
}

/* ---- the stops ---- */
.reach__stop { position: relative; }
.reach__pin {
  position: absolute;
  left: calc((var(--road-x) + var(--road-w) / 2) - (var(--road-x) + var(--road-w) + var(--sp-5)));
  top: 2px;
  width: 38px; height: 38px;
  transform: translateX(-50%);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-fill);
  color: var(--accent);
  box-shadow: 0 0 0 5px var(--bg), 0 0 22px -4px color-mix(in srgb, var(--accent-fill) 60%, transparent);
}
.reach__place {
  margin: 0; font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--text);
}
.reach__note { margin: .25rem 0 0; color: var(--text-3); font-size: var(--step--1); }

/* ---- a leg of the journey ---- */
.reach__leg {
  position: relative;
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding-left: var(--sp-1);
  min-width: 0;
}
.reach__dir {
  margin: 0 0 var(--sp-2);
  /* flex-start, not centre: the label wraps to two lines on a phone and a
     centred chevron stack then sits off the first word it belongs to */
  display: flex; align-items: flex-start; gap: .55rem;
  font-family: var(--font-mono); font-size: var(--step--2); line-height: 1.5;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
/* Three chevrons showing which way this leg runs. Sized to sit inside one
   line of the label rather than hanging below it — the label is a single
   line once there is width for it. */
.reach__arrow {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 0; flex: none; margin-top: 1px;
}
.reach__arrow i {
  display: block; width: 6px; height: 6px;
  margin-block: -1px;
  border-right: 2px solid var(--accent-fill);
  border-bottom: 2px solid var(--accent-fill);
  transform: rotate(45deg);
  animation: reachChev 1.5s ease-in-out infinite;
}
.reach__arrow--up { flex-direction: column-reverse; }
.reach__arrow--up i { transform: rotate(225deg); }
.reach__arrow i:nth-child(2) { animation-delay: .16s; }
.reach__arrow i:nth-child(3) { animation-delay: .32s; }
@keyframes reachChev { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.reach__h { margin: 0; font-size: var(--step-2); font-weight: 500; letter-spacing: var(--tr-tight); text-wrap: balance; }
.reach__short { margin: 0; font-weight: 500; color: var(--text); }
.reach__body { margin: 0; max-width: 46ch; }
.reach__a {
  margin-top: var(--sp-3);
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 44px; align-self: flex-start;
  color: var(--text); font-weight: 500; text-decoration: none;
}
.reach__a .icon:last-child { color: var(--accent); transition: transform var(--dur-2) var(--ease); }
.reach__a:hover .icon:last-child, .reach__a:focus-visible .icon:last-child { transform: translateX(4px); }
.reach__a:hover { color: var(--accent); }
.reach__a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* roomier once there is width for it */
@media (min-width: 900px) {
  .reach { --road-w: 54px; --road-x: 18px; gap: var(--sp-9); }
  .reach__leg { padding-left: var(--sp-3); }
}

@media (prefers-reduced-motion: reduce) {
  .reach__dashes, .reach__arrow i { animation: none; }
  .reach__arrow i { opacity: .8; }
  .reach__beam { display: none; }
}

/* ============================================================
   ANZA HAPA - the hero's quote card, made to be noticed
   Rounded panel with a gold edge and glow, a live pill, a heavy
   headline, three numbered steps, rounded fields and a pill button
   with a light running across it. Scoped to the home hero, and one
   step more specific than the panel rules in pages.css, whose dark-
   theme versions carry :root:not([data-theme]) and would win.
   ============================================================ */
:root .hero.hero--bay .qs {
  --qs-r: 26px;
  border-radius: var(--qs-r);
  border: 1.5px solid transparent;
  padding: clamp(1.5rem, 3.2vw, 2.25rem);
  background:
    linear-gradient(165deg, #23201c 0%, #171513 55%, #121110 100%) padding-box,
    linear-gradient(140deg, var(--gold-300) 0%, var(--gold-600) 28%,
      color-mix(in srgb, var(--gold-500) 22%, transparent) 55%, var(--gold-500) 100%) border-box;
  box-shadow:
    0 0 0 1px color-mix(in srgb, black 40%, transparent),
    0 30px 70px -28px color-mix(in srgb, black 90%, transparent),
    0 0 60px -18px color-mix(in srgb, var(--gold-500) 38%, transparent);
}
:root .hero.hero--bay .qs::before { display: none; }
:root .hero.hero--bay .qs::after {
  /* a warm pool of light from the top corner, instead of the old sheen */
  opacity: 1;
  background: radial-gradient(120% 70% at 100% 0%,
    color-mix(in srgb, var(--gold-500) 14%, transparent), transparent 60%);
}

:root .hero.hero--bay .qs__e { align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
:root .hero.hero--bay .qs__pill {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .45em 1em .45em .8em;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 55%, var(--gold-600));
  color: #17130F;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--gold-500) 80%, transparent),
              inset 0 1px 0 color-mix(in srgb, white 45%, transparent);
}
:root .hero.hero--bay .qs__pill i {
  width: .55em; height: .55em; border-radius: 50%;
  background: #17130F;
  box-shadow: 0 0 0 0 color-mix(in srgb, #17130F 55%, transparent);
  animation: qsPulse 2s ease-out infinite;
}
@keyframes qsPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, #17130F 55%, transparent); }
  80%, 100% { box-shadow: 0 0 0 .55em transparent; }
}
:root .hero.hero--bay .qs__e .label { color: var(--text-3); }

:root .hero.hero--bay .qs__h {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem);
  font-weight: 800;
  font-variation-settings: "wght" 800;
  letter-spacing: -.025em;
  line-height: 1.02;
  text-wrap: balance;
  color: #fff;
}
:root .hero.hero--bay .qs__h em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-300), var(--gold-500) 60%, var(--gold-600));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
:root .hero.hero--bay .qs__d { margin-top: var(--sp-3); font-size: var(--step-0); color: var(--text-2); }

/* three numbered steps as equal tiles in one row: number above, words below */
:root .hero.hero--bay .qs__steps {
  list-style: none; margin: var(--sp-5) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2);
}
:root .hero.hero--bay .qs__steps li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45em;
  padding: .8em .3em; text-align: center; line-height: 1.2;
  border-radius: 16px;
  background: color-mix(in srgb, white 5%, transparent);
  border: 1px solid color-mix(in srgb, white 10%, transparent);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text);
}
:root .hero.hero--bay .qs__steps b {
  display: grid; place-items: center;
  width: 1.7em; height: 1.7em; border-radius: 50%;
  background: color-mix(in srgb, var(--gold-500) 18%, transparent);
  color: var(--gold-300);
  font-weight: 800; font-size: max(.85em, 12px);
}

:root .hero.hero--bay .qs__f { gap: var(--sp-4); margin-top: var(--sp-6); }
:root .hero.hero--bay .qs .field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: .01em;
  color: var(--text);
}
:root .hero.hero--bay .qs .field select,
:root .hero.hero--bay .qs .field input {
  min-height: 3.35rem;
  border-radius: 14px;
  padding-inline: 1.1rem;
  font-weight: 500;
  border-color: color-mix(in srgb, white 12%, transparent);
  background-color: color-mix(in srgb, black 35%, #1c1a17);
}
:root .hero.hero--bay .qs .field select:focus-visible,
:root .hero.hero--bay .qs .field input:focus-visible {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-500) 25%, transparent);
}

/* the button: a pill, heavy type, a light that runs across it */
:root .hero.hero--bay .qs__f .btn--primary {
  position: relative; overflow: hidden;
  min-height: 3.75rem;
  margin-top: var(--sp-3);
  padding-inline: 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(.98rem, .92rem + .3vw, 1.1rem);
  font-weight: 800;
  letter-spacing: .005em;
  gap: .65em;
  background-color: var(--signal-fill);
  background-image: linear-gradient(180deg, color-mix(in srgb, white 18%, transparent), transparent 55%);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 35%, transparent),
    0 14px 30px -12px color-mix(in srgb, var(--signal-fill) 85%, transparent);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
:root .hero.hero--bay .qs__f .btn--primary .icon { width: 24px; height: 24px; }
:root .hero.hero--bay .qs__f .btn--primary::after {
  content: ""; position: absolute; inset: 0 auto 0 -40%; width: 30%;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, white 38%, transparent), transparent);
  transform: skewX(-20deg);
  animation: qsSweep 3.6s ease-in-out 2.4s infinite;
  pointer-events: none;
}
@keyframes qsSweep { 0% { left: -40%; } 45%, 100% { left: 120%; } }
:root .hero.hero--bay .qs__f .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 35%, transparent),
    0 20px 40px -14px color-mix(in srgb, var(--signal-fill) 95%, transparent);
}
:root .hero.hero--bay .qs__f .btn--primary:active { transform: translateY(1px); }
:root .hero.hero--bay .qs__alt { font-weight: 500; color: var(--text-2); }

@media (max-width: 560px) {
  :root .hero.hero--bay .qs { --qs-r: 22px; }
  :root .hero.hero--bay .qs__steps li { font-size: .8rem; padding-block: .75em; }
}
@media (prefers-reduced-motion: reduce) {
  :root .hero.hero--bay .qs__pill i, :root .hero.hero--bay .qs__f .btn--primary::after { animation: none; }
  :root .hero.hero--bay .qs__f .btn--primary::after { display: none; }
}
@media (forced-colors: active) {
  :root .hero.hero--bay .qs { border: 1px solid CanvasText; }
  :root .hero.hero--bay .qs__h em { color: CanvasText; background: none; }
}
/* ============================================================
   MOLTEN LIGHT, GRAIN, WIPES, METAL
   ============================================================ */

/* the colour shader: it can only add light (screen), never darken */
.has-shade { position: relative; isolation: isolate; }
.shade {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .9;
}
.hero--bay > .shade { opacity: .55; }
/* the closing words sit in the middle: the light stays round them, not behind them */
.cta--bay > .shade {
  opacity: .85;
  -webkit-mask-image: radial-gradient(ellipse 46% 40% at 50% 52%, rgba(0,0,0,.12) 0%, rgba(0,0,0,.45) 55%, #000 100%);
          mask-image: radial-gradient(ellipse 46% 40% at 50% 52%, rgba(0,0,0,.12) 0%, rgba(0,0,0,.45) 55%, #000 100%);
}
/* page heads set their copy on the left: the light gathers to the right.
   None of it reaches the copy column. The shade is a screen blend over the
   veil, so any light let through there undoes the veil under the words -
   at 25-50% it took five page heads below 4.5:1 on a desktop (measured
   with tools/qa/section-contrast.js). */
.pagehead--bay > .shade {
  opacity: .8;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 46%, rgba(0,0,0,.55) 66%, #000 88%);
          mask-image: linear-gradient(90deg, transparent 0%, transparent 46%, rgba(0,0,0,.55) 66%, #000 88%);
}

/* film grain: a tile of SVG noise, drawn once and repeated */
.has-grain { position: relative; }
.grain {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  opacity: .085;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.35 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 240px 240px repeat;
}
.site-footer > .grain { opacity: .06; }
/* the hero's grain moves like film, a few frames a second */
.hero--bay > .grain { inset: -120px; animation: grainShift 1.2s steps(6) infinite; }
@keyframes grainShift {
  0% { transform: translate3d(0, 0, 0); } 17% { transform: translate3d(-48px, 30px, 0); }
  33% { transform: translate3d(36px, -54px, 0); } 50% { transform: translate3d(-72px, -18px, 0); }
  67% { transform: translate3d(60px, 42px, 0); } 83% { transform: translate3d(-24px, 66px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.is-off > .grain { animation-play-state: paused; }
/* nothing moves under the loading screen: it is covered, and the opening needs the frames */
.intro-hold .hero--bay > .grain { animation-play-state: paused; }

/* photographs uncover behind a gold scan line as they arrive */
.wipe { position: relative; clip-path: inset(0 0 100% 0); }
.wipe.is-shown { clip-path: inset(0 0 0 0); transition: clip-path 1.15s cubic-bezier(.7, 0, .2, 1); }
.wipe::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3;
  pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--gold-300) 18%, #fff3cf 50%, var(--gold-300) 82%, transparent);
  box-shadow: 0 0 14px 2px color-mix(in srgb, var(--gold-500) 70%, transparent);
}
.wipe.is-shown::after { animation: wipeLine 1.15s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes wipeLine { 0% { top: 0; opacity: 1; } 92% { top: calc(100% - 2px); opacity: 1; } 100% { top: calc(100% - 2px); opacity: 0; } }

/* clear-coat gloss (garage.js gloss()): flat, then a strip light crosses
   the lacquer and the colour comes up. ::before, because the scan line
   above has ::after; where a photo has both, the gloss waits for the wipe. */
.gloss { position: relative; overflow: hidden; }
.gloss::before {
  content: ""; position: absolute; inset: -20% -60%; z-index: 2; pointer-events: none;
  mix-blend-mode: screen; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.07) 44%,
    rgba(255,250,235,.46) 50%, rgba(255,255,255,.07) 56%, transparent 62%);
  transform: translateX(-60%);
}
.gloss img { transition: filter 1.4s ease .1s, transform var(--dur-4) var(--ease); }   /* keeps the service cards' hover zoom */
.gloss:not(.is-glossed) img { filter: saturate(.8) brightness(.9); }
.gloss.is-glossed::before { animation: glossRun 1.5s cubic-bezier(.4, 0, .2, 1) .15s both; }
.wipe.gloss.is-glossed::before { animation-delay: .95s; }
@media (hover: hover) and (pointer: fine) {
  .gloss.is-glossed:hover::before { animation: glossAgain 1.1s cubic-bezier(.4, 0, .2, 1) both; }
}
@keyframes glossRun { 0% { opacity: 1; transform: translateX(-60%); } 100% { opacity: 1; transform: translateX(60%); } }
@keyframes glossAgain { 0% { opacity: 1; transform: translateX(-60%); } 100% { opacity: 1; transform: translateX(60%); } }
@media (prefers-reduced-motion: reduce) { .gloss::before { display: none; } .gloss img { filter: none; } }

/* brushed gold: the big gold words carry a metal gradient, and a slow light
   runs along them */
.hero__h:not(.hw-ready) em, .hero__h.hw-ready em .hw > span,
.promise--wheel .promise__row--mid span {
  background: linear-gradient(100deg,
    #b38224 0%, #f0bc65 16%, #fff0c2 26%, #dba850 38%, #9c6618 54%, #e9bd5a 70%, #fbe2a0 80%, #b38224 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: goldSheen 9s linear infinite;
}
@keyframes goldSheen { from { background-position: 0% 50%; } to { background-position: 260% 50%; } }
.is-off .hero__h em .hw > span { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .hero--bay > .grain, .hero__h em .hw > span, .hero__h em, .promise--wheel .promise__row--mid span { animation: none; }
}
@media (forced-colors: active) {
  .shade, .grain { display: none; }
  .hero__h em, .hero__h em .hw > span, .promise--wheel .promise__row--mid span {
    background: none; color: CanvasText; -webkit-text-fill-color: CanvasText;
  }
}

/* ============================================================
   THE NEON SIGN - the logo drawn in glass tubing, once

   The gear and the swoosh are drawn as thin tubes while the dial's
   ticks light one by one in the order the needle passes them; the
   needle settles, the seven letters draw themselves, and the whole
   sign fills with light at once. Then the gold edges and the
   strapline. 2.6 seconds, and it never repeats.

   Built from the client's own logo (tools/build_hero_logo.py), so
   the shapes are the printed ones, not a drawing of them.

   The timings below are the sequence; each piece is a plain delay
   off the same start, so the whole thing is CSS and the main thread
   is free for the wall of photographs behind it. pathLength="1" is
   on every drawn path, so a short letter and the long gear rim draw
   in the same time without a line of arithmetic.

   No filter animates: a drop-shadow over 70 traced paths costs real
   frames on a phone. The glow is a gradient behind the sign whose
   opacity rides along, and the settled sign gets its halo once, on
   .is-lit, when nothing else is moving.
   ============================================================ */
.nsign {
  --tube: #FFE7BA;          /* cold glass, before the gas lights */
  --lit: #F2EEEB;           /* the name, lit */
  --neon: #FFC35C;          /* the gear and dial, lit */
  position: relative;
  width: 25rem;
  max-width: min(100%, 78vw);
  aspect-ratio: 1559 / 490; /* reserved before the file lands, so nothing shifts */
  margin: 0 0 1.5rem;
}
.nsign__svg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }

/* The footer's sign. Smaller, and with no wall of photographs behind
   it, so it drops the shadow the hero's needs to hold its edges and
   keeps only the light it throws back. */
.nsign--foot {
  width: 14rem;
  max-width: 100%;
  margin: 0 0 var(--sp-4);
}
.nsign--foot::before { display: none; }
.nsign--foot::after { opacity: .3; }
/* the flat logo, when the drawing could not be fetched */
.nsign--foot img { width: 100%; height: auto; }

/* The wall of photographs drifts behind the sign, so what sits under the
   white of VIWANDA keeps changing - over a pale wing or a tyre wall it
   lost its edges. This is the shadow a real sign throws on the wall it is
   bolted to: enough to hold the letters, not enough to read as a box. */
.nsign::before {
  content: "";
  position: absolute;
  left: -14%; top: -34%; width: 128%; height: 168%;
  background: radial-gradient(ellipse 50% 50% at 44% 50%,
    rgba(8, 7, 6, .62), rgba(8, 7, 6, .34) 52%, transparent 76%);
  pointer-events: none;
}

/* the spill: the light the sign throws back onto that wall */
.nsign::after {
  content: "";
  position: absolute;
  left: -18%; top: -26%; width: 136%; height: 152%;
  background: radial-gradient(ellipse 54% 58% at 46% 50%,
    rgba(255, 195, 92, .3), rgba(255, 170, 60, .1) 46%, transparent 72%);
  opacity: .55;
  pointer-events: none;
}

/* The resting state is the finished sign: lit, still, whole. Anyone who
   never gets the animation - reduced motion, a repeat view, a browser
   that fails the fetch - sees the logo, which is the point of it. */
.nsign__k { fill: #0B0A09; }
.nsign__e { fill: var(--neon); }
.nsign__tick, .nsign__n { fill: var(--neon); }
.nsign__l { fill: var(--lit); }
.nsign__g { fill: var(--gold-500); }
.nsign__t { fill: var(--gold-300); }
.nsign__e, .nsign__l { stroke: var(--tube); stroke-width: 2.2; stroke-opacity: 0; }

.nsign.is-lit .nsign__svg {
  filter: drop-shadow(0 0 .012em rgba(255, 231, 186, .9))
          drop-shadow(0 0 .05em rgba(255, 170, 60, .45));
  transition: filter 600ms linear;
}

/* ---- the sequence ---- */
@keyframes nsignDraw   { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes nsignTube   { from { stroke-opacity: 1; } to { stroke-opacity: 0; } }
@keyframes nsignFill   { from { fill-opacity: 0; } to { fill-opacity: 1; } }
@keyframes nsignOn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes nsignSpill  {
  0%   { opacity: 0; }
  12%  { opacity: .22; }
  56%  { opacity: .34; }
  64%  { opacity: 1; }
  100% { opacity: .55; }
}

.nsign--play .nsign__e,
.nsign--play .nsign__l {
  stroke-dasharray: 1;
  animation:
    nsignDraw var(--draw, 900ms) cubic-bezier(.45, 0, .25, 1) var(--at, 0ms) both,
    nsignFill 200ms linear 1450ms both,
    nsignTube 350ms linear 1650ms both;
}
/* each letter starts after the one before it, so the name is written */
.nsign--play .nsign__l { --draw: 700ms; --at: calc(250ms + var(--i) * 80ms); }

.nsign--play .nsign__plate  { animation: nsignOn 260ms linear both; }
.nsign--play .nsign__tick   { animation: nsignOn 60ms linear calc(300ms + var(--i) * 40ms) both; }
.nsign--play .nsign__needle { animation: nsignOn 250ms linear 1200ms both; }
.nsign--play .nsign__gold   { animation: nsignOn 100ms linear 1700ms both; }
.nsign--play .nsign__tag    { animation: nsignOn 400ms linear 1800ms both; }
.nsign--play::after         { animation: nsignSpill 2600ms linear both; }

/* Held still for anyone who has asked for less motion, and for the
   second visit: the sign is a flourish, not a gate in front of the
   hero, so it is never worth making someone sit through twice. */
@media (prefers-reduced-motion: reduce) {
  .nsign--play .nsign__e, .nsign--play .nsign__l, .nsign--play .nsign__plate,
  .nsign--play .nsign__tick, .nsign--play .nsign__needle, .nsign--play .nsign__gold,
  .nsign--play .nsign__tag, .nsign--play::after { animation: none; }
}
@media (forced-colors: active) {
  .nsign::before, .nsign::after { display: none; }
  .nsign__k { fill: Canvas; }
  .nsign__e, .nsign__tick, .nsign__n, .nsign__l, .nsign__g, .nsign__t { fill: CanvasText; }
}

/* The header's own logo stands down while the sign is on screen: on a phone
   the two sat one above the other, the same mark twice. It comes back the
   moment the sign scrolls away, and a keyboard still finds it where it was,
   so the route home is never actually taken off the page. */
.nsign-up .site-header .brand {
  opacity: 0;
  transition: opacity 260ms linear;
}
.nsign-up .site-header .brand:focus-visible,
.nsign-up .site-header .brand:focus-within { opacity: 1; }

@media (max-width: 760px) {
  /* smaller, and the drawing is finer than a phone can show, so the
     sign leads and the copy follows closer behind it */
  .nsign { width: 17rem; margin-bottom: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nsign-up .site-header .brand { transition: none; }
}