/* חשמל רכב חיים · shared stylesheet (see DESIGN.md) */
@layer reset, tokens, base, components, motion, utilities;

/* =========================================================
   RESET
   ========================================================= */
@layer reset {
  *, ::before, ::after { box-sizing: border-box; }
  html, body, h1, h2, h3, p, ul, ol, li, figure, dl, dt, dd { margin: 0; padding: 0; }
  ul, ol { list-style: none; }
  img, svg, iframe { display: block; }
  button { font: inherit; color: inherit; }
  a { color: inherit; }
}

/* =========================================================
   TOKENS
   ========================================================= */
@layer tokens {
  :root {
    /* Tier 1: the street */
    --concrete:         #E5E1D8;
    --concrete-deep:    #D5D0C5;
    --whitewash:        #F5F3EE;
    --whitewash-hi:     #FBFAF7;
    --asphalt:          #161616;
    --asphalt-soft:     #24231F;
    --asphalt-line:     #3A3934;
    --plate:            #FFC60B;
    --plate-deep:       #EBAF00;
    --galvanized:       #8F8E88;
    --galvanized-light: #B6B5AE;
    --galvanized-dark:  #6C6B65;
    --signal:           #BD2419;
    --ink-2:            #45433E;
    --ink-3:            #605D57;
    --chalk-2:          #B7B3A9;

    --asphalt-rgb:  22, 22, 22;
    --concrete-rgb: 229, 225, 216;
    --plate-rgb:    255, 198, 11;
    --lamp-rgb:     255, 214, 102;

    /* Tier 2: semantic */
    --bg:             var(--concrete);
    --surface:        var(--whitewash);
    --surface-alt:    var(--concrete-deep);
    --surface-hover:  var(--whitewash-hi);
    --border:         var(--asphalt);
    --border-soft:    rgba(var(--asphalt-rgb), .18);
    --text:           var(--asphalt);
    --text-secondary: var(--ink-2);
    --text-tertiary:  var(--ink-3);
    --accent:         var(--plate);
    --accent-hover:   var(--plate-deep);
    --focus:          var(--asphalt);
    --error:          var(--signal);

    /* Illustration */
    --ill-line:   var(--asphalt);
    --ill-fill:   var(--plate);
    --ill-stroke: 2.5px;

    /* Scrollbar */
    --scrollbar-thumb: var(--plate);
    --scrollbar-track: var(--asphalt);

    /* Material: concrete grain (static, tiled) */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.1'/%3E%3C/svg%3E");

    /* Type */
    --font-display: "Karantina", "Rubik", "Arial Hebrew", Arial, sans-serif;
    --font-body:    "Rubik", "Arial Hebrew", Arial, system-ui, sans-serif;
    --fs-hero:   clamp(5.5rem, 1.6rem + 17.4vw, 18.25rem);
    --fs-h2:     clamp(3.25rem, 2rem + 5.5vw, 7.5rem);
    --fs-cta:    clamp(3.75rem, 2rem + 8vw, 10rem);
    --fs-strip:  clamp(1.3125rem, 1.05rem + 1.3vw, 2.125rem);
    --fs-lead:   clamp(1.1875rem, 1.05rem + .55vw, 1.5rem);
    --fs-body:   clamp(1.0625rem, 1rem + .2vw, 1.125rem);
    --fs-button: 1.0625rem;
    --fs-label:  .9375rem;
    --fs-small:  .8125rem;
    --fs-plate:  clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
    --fs-logo:   1.875rem;

    /* Shape */
    --radius-s: 3px;
    --radius-plate: 7px;
    --radius-fab: 20px;
    --rule: 2px;
    --rule-heavy: 3px;
    --nav-h: 4.5rem;

    /* Layout */
    --container: 1320px;
    --gutter: clamp(1rem, .5rem + 2.5vw, 3rem);
    --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
    --col-gap: clamp(1rem, .5rem + 1.5vw, 2rem);
    --space-1: .25rem; --space-2: .5rem;  --space-3: .75rem;
    --space-4: 1rem;   --space-5: 1.5rem; --space-6: 2rem;
    --space-7: 3rem;   --space-8: 4rem;   --space-9: 6rem;

    /* Motion */
    --ease-out:     cubic-bezier(.2, .8, .2, 1);
    --ease-in-out:  cubic-bezier(.65, 0, .35, 1);
    --ease-shutter: cubic-bezier(.7, 0, .25, 1);
    --ease-snap:    cubic-bezier(.3, 1.35, .5, 1);
    --dur-micro:  140ms;
    --dur-ui:     220ms;
    --dur-reveal: 640ms;
    --dur-scene:  1100ms;
  }

  .surface-board {
    --bg: var(--asphalt);
    --text: var(--whitewash);
    --text-secondary: var(--chalk-2);
    --border-soft: var(--asphalt-line);
    --focus: var(--plate);
    --ill-line: var(--whitewash);
    background: var(--bg);
    color: var(--text);
  }
  .surface-plate {
    --bg: var(--plate);
    --text: var(--asphalt);
    --text-secondary: var(--asphalt);
    --focus: var(--asphalt);
    --ill-line: var(--asphalt);
    --ill-fill: var(--whitewash);
    background: var(--bg);
    color: var(--text);
  }
}

/* =========================================================
   BASE
   ========================================================= */
@layer base {
  :root {
    color-scheme: light;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    scrollbar-width: thin;
  }
  @supports not (scrollbar-color: auto) {
    ::-webkit-scrollbar       { width: 12px; height: 12px; background: var(--scrollbar-track); }
    ::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border: 3px solid var(--scrollbar-track); border-radius: 2px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--plate-deep); }
  }
  html {
    background-color: var(--bg);
    color: var(--text);
    font: 400 var(--fs-body)/1.7 var(--font-body);
    scroll-padding-top: calc(var(--nav-h) + 1rem);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }
  html:has(dialog[open]) { overflow: hidden; }
  body {
    min-block-size: 100svh;
    background-color: var(--bg);
    background-image: var(--grain);
    overflow-x: clip;
  }
  h1, h2, h3 { font-weight: 700; text-wrap: balance; }
  p, li, dd { text-wrap: pretty; }
  img { max-inline-size: 100%; block-size: auto; -webkit-user-drag: none; user-select: none; }
  :focus-visible { outline: var(--rule-heavy) solid var(--focus); outline-offset: 3px; }
  ::selection { background: var(--plate); color: var(--asphalt); }

  .wrap { inline-size: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
  .section { padding-block: var(--section-y); }
  .visually-hidden {
    position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}

/* =========================================================
   COMPONENTS
   ========================================================= */
@layer components {

  /* ---------- skip link ---------- */
  .skip-link {
    position: fixed;
    inset-block-start: .5rem;
    inset-inline-start: .5rem;
    z-index: 100;
    padding: .75rem 1rem;
    border-radius: var(--radius-s);
    background: var(--asphalt);
    color: var(--plate);
    font-weight: 500;
    text-decoration: none;
    translate: 0 -200%;
  }
  .skip-link:focus-visible { translate: 0 0; outline: var(--rule-heavy) solid var(--plate); outline-offset: 2px; }

  /* ---------- glyphs ---------- */
  .glyph { inline-size: 1.25em; block-size: 1.25em; flex: none; }

  /* ---------- buttons ---------- */
  .btn {
    --btn-bg: var(--asphalt);
    --btn-fg: var(--whitewash);
    --btn-border: var(--asphalt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    min-block-size: 3.25rem;
    padding-block: .75rem;
    padding-inline: 1.5rem;
    border: var(--rule) solid var(--btn-border);
    border-radius: var(--radius-s);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font: 500 var(--fs-button)/1.1 var(--font-body);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
      background-color var(--dur-ui) var(--ease-out),
      color var(--dur-ui) var(--ease-out),
      border-color var(--dur-ui) var(--ease-out),
      translate var(--dur-micro) var(--ease-out);
  }
  .btn:hover:not(:disabled, [aria-disabled="true"]) { --btn-bg: var(--plate); --btn-fg: var(--asphalt); }
  .btn:active:not(:disabled, [aria-disabled="true"]) { translate: 0 2px; }
  .btn:focus-visible { outline: var(--rule-heavy) solid var(--focus); outline-offset: 3px; }
  .btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

  .btn--outline { --btn-bg: transparent; --btn-fg: var(--text); --btn-border: currentColor; }
  .btn--outline:hover:not(:disabled, [aria-disabled="true"]) { --btn-bg: var(--asphalt); --btn-fg: var(--whitewash); }
  .surface-plate .btn:hover:not(:disabled, [aria-disabled="true"]) { --btn-bg: var(--whitewash); --btn-fg: var(--asphalt); }

  .btn--s { min-block-size: 2.75rem; padding-inline: 1.1rem; font-size: 1rem; }
  .btn--l { min-block-size: 3.75rem; padding-inline: 2rem; font-size: 1.1875rem; }

  /* ---------- license plate (phone) ---------- */
  .plate {
    --plate-h: 3.25rem;
    --band-w: 2.6rem;
    position: relative;
    display: inline-flex;
    align-items: stretch;
    min-block-size: var(--plate-h);
    border: var(--rule-heavy) solid var(--asphalt);
    border-radius: var(--radius-plate);
    background: var(--plate);
    color: var(--asphalt);
    text-decoration: none;
    box-shadow: 0 3px 0 var(--asphalt);
    overflow: clip;
    transition:
      translate var(--dur-micro) var(--ease-out),
      box-shadow var(--dur-micro) var(--ease-out),
      background-color var(--dur-ui) var(--ease-out);
  }
  .plate__num {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    padding-inline: 1.3rem 1.05rem;
    font: 700 var(--fs-plate)/1 var(--font-body);
    font-variant-numeric: tabular-nums;
    letter-spacing: .05em;
    white-space: nowrap;
  }
  .plate__band {
    display: grid;
    place-items: center;
    flex: none;
    inline-size: var(--band-w);
    background: var(--asphalt);
    color: var(--plate);
  }
  .plate__band .glyph { inline-size: 1.15rem; block-size: 1.15rem; }
  .plate::before,
  .plate::after {
    content: "";
    position: absolute;
    inset-block-start: 5px;
    inline-size: 5px;
    block-size: 5px;
    border-radius: 50%;
    background: rgba(var(--asphalt-rgb), .45);
  }
  .plate::before { right: 6px; }
  .plate::after  { left: calc(var(--band-w) + 6px); }
  .plate:hover  { translate: 0 -2px; box-shadow: 0 5px 0 var(--asphalt); }
  .plate:active { translate: 0 2px;  box-shadow: 0 1px 0 var(--asphalt); background: var(--plate-deep); }
  .plate:focus-visible { outline: var(--rule-heavy) solid var(--focus); outline-offset: 4px; }
  .plate[aria-disabled="true"] { opacity: .45; pointer-events: none; }

  .plate--s { --plate-h: 2.75rem; --band-w: 2.1rem; box-shadow: 0 2px 0 var(--asphalt); }
  .plate--s .plate__num { font-size: 1.0625rem; padding-inline: .95rem .8rem; }
  .plate--l { --plate-h: 3.75rem; --band-w: 3rem; }
  .plate--l .plate__num { font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); padding-inline: 1.6rem 1.25rem; }
  .plate--icon { --band-w: 0px; inline-size: 3rem; min-block-size: 3rem; box-shadow: 0 2px 0 var(--asphalt); }
  .plate--icon::before, .plate--icon::after { content: none; }
  .plate--icon .plate__num { padding: 0; }
  .plate--icon .glyph { inline-size: 1.3rem; block-size: 1.3rem; }
  .plate--block { display: flex; inline-size: 100%; }

  /* ---------- nav ---------- */
  .site-nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 50;
    block-size: var(--nav-h);
    border-block-end: var(--rule) solid transparent;
    background: transparent;
    transition:
      background-color var(--dur-ui) var(--ease-out),
      border-color var(--dur-ui) var(--ease-out),
      translate 320ms var(--ease-out);
  }
  .site-nav[data-scrolled="true"] { background: var(--whitewash); border-block-end-color: var(--asphalt); }
  .site-nav[data-hidden="true"]:not(:focus-within) { translate: 0 -100%; }
  .site-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); block-size: 100%; }

  .logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
  }
  .logo__name { font: 700 var(--fs-logo)/.85 var(--font-display); letter-spacing: .01em; }
  .logo__sep  { display: none; color: var(--galvanized); font: 400 1.25rem/1 var(--font-body); }
  .logo__city { font: 500 .8125rem/1.1 var(--font-body); color: var(--text-secondary); }
  .logo:hover .logo__name { text-decoration: underline var(--plate) .14em; text-underline-offset: .12em; text-decoration-skip-ink: none; }
  .logo:focus-visible { outline: var(--rule-heavy) solid var(--focus); outline-offset: 6px; }

  .nav-links { display: none; gap: 1.75rem; }
  .nav-links a {
    display: inline-block;
    white-space: nowrap;
    padding-block: .75rem;
    font: 500 1rem/1 var(--font-body);
    color: var(--text);
    text-decoration: underline transparent var(--rule);
    text-underline-offset: .45em;
    text-decoration-skip-ink: none;
    transition: text-decoration-color var(--dur-ui) var(--ease-out), text-decoration-thickness var(--dur-ui) var(--ease-out);
  }
  .nav-links a:hover { text-decoration-color: var(--plate); text-decoration-thickness: .3em; }
  .nav-links a[aria-current="true"] { text-decoration-color: var(--asphalt); }
  .nav-links a:focus-visible { outline: var(--rule-heavy) solid var(--focus); outline-offset: 4px; }

  .nav-actions { display: flex; align-items: center; gap: .6rem; }
  .nav-actions .plate--s, .nav-actions .btn { display: none; }

  .menu-btn {
    display: grid;
    place-items: center;
    inline-size: 3rem;
    block-size: 3rem;
    padding: 0;
    border: var(--rule) solid var(--asphalt);
    border-radius: var(--radius-s);
    background: transparent;
    color: var(--asphalt);
    cursor: pointer;
    transition: background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
  }
  .menu-btn__slats {
    inline-size: 1.25rem;
    block-size: .875rem;
    background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 0 6px);
  }
  .menu-btn:hover  { background: var(--asphalt); color: var(--plate); }
  .menu-btn:active { translate: 0 1px; }
  .menu-btn:focus-visible { outline: var(--rule-heavy) solid var(--focus); outline-offset: 3px; }

  /* ---------- mobile menu: a shutter that rolls down ---------- */
  .menu-shutter {
    position: fixed;
    inset: 0;
    inline-size: 100%;
    max-inline-size: none;
    block-size: 100dvh;
    max-block-size: none;
    margin: 0;
    padding: 0 0 calc(1.5rem + env(safe-area-inset-bottom));
    border: 0;
    color: var(--asphalt);
    background:
      repeating-linear-gradient(to bottom,
        var(--galvanized-light) 0 2px,
        var(--galvanized) 0 22px,
        var(--galvanized-dark) 0 24px);
    overflow-y: auto;
  }
  .menu-shutter[open] { display: flex; flex-direction: column; }
  .menu-shutter::backdrop { background: transparent; }
  .menu-shutter__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    block-size: var(--nav-h);
    flex: none;
  }
  .menu-shutter .logo, .menu-shutter .logo__city { color: var(--asphalt); }
  .menu-close { background: var(--asphalt); color: var(--plate); position: relative; }
  .menu-close::before, .menu-close::after {
    content: "";
    position: absolute;
    inline-size: 1.25rem;
    block-size: 2px;
    background: currentColor;
    rotate: 45deg;
  }
  .menu-close::after { rotate: -45deg; }
  .menu-close:hover { background: var(--plate); color: var(--asphalt); }
  .menu-nav { display: grid; gap: .25rem; padding-block: var(--space-6); flex: 1 0 auto; align-content: start; }
  .menu-link {
    display: block;
    inline-size: fit-content;
    padding-block: .3rem;
    font: 700 clamp(3.25rem, 2rem + 9vw, 4.75rem)/.95 var(--font-display);
    color: var(--asphalt);
    text-decoration: none;
  }
  .menu-link:hover, .menu-link:focus-visible {
    outline: none;
    text-decoration: underline var(--plate) .12em;
    text-underline-offset: .08em;
    text-decoration-skip-ink: none;
  }
  .menu-actions { display: grid; gap: var(--space-3); }
  .menu-actions .btn { inline-size: 100%; }

  /* ---------- tags ---------- */
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font: 500 var(--fs-label)/1.3 var(--font-body);
    letter-spacing: .04em;
    color: var(--text);
  }
  .eyebrow::before { content: ""; inline-size: 2.5rem; block-size: var(--rule-heavy); background: currentColor; flex: none; }

  .trust {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    justify-self: start;
    inline-size: fit-content;
    min-block-size: 2.75rem;
    padding-inline: .9rem;
    border-radius: var(--radius-s);
    background: var(--asphalt);
    color: var(--whitewash);
    font: 500 var(--fs-label)/1 var(--font-body);
    text-decoration: none;
    transition: background-color var(--dur-ui) var(--ease-out);
  }
  .trust__star { color: var(--plate); font-variant-emoji: text; font-size: 1.1em; }
  .trust:hover  { background: var(--asphalt-soft); }
  .trust:active { translate: 0 1px; }
  .trust:focus-visible { outline: var(--rule-heavy) solid var(--focus); outline-offset: 3px; }

  .closed-tag {
    display: inline-block;
    padding: .05em .55em .1em;
    border: var(--rule) solid currentColor;
    border-radius: var(--radius-s);
    color: var(--signal);
    font-weight: 700;
    line-height: 1.2;
    rotate: -2deg;
  }

  /* ---------- links ---------- */
  .link {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: var(--rule);
    text-underline-offset: .28em;
    text-decoration-skip-ink: none;
    transition:
      text-decoration-color var(--dur-ui) var(--ease-out),
      text-decoration-thickness var(--dur-ui) var(--ease-out),
      text-underline-offset var(--dur-ui) var(--ease-out);
  }
  .link:hover  { text-decoration-color: var(--plate); text-decoration-thickness: .42em; text-underline-offset: -.12em; }
  .link:active { text-decoration-color: var(--plate-deep); }
  .link:focus-visible { outline: var(--rule-heavy) solid var(--focus); outline-offset: 4px; border-radius: 2px; }

  /* ---------- section titles ---------- */
  .h2 {
    inline-size: fit-content;
    max-inline-size: 100%;
    font: 700 var(--fs-h2)/.9 var(--font-display);
    letter-spacing: .005em;
  }

  /* ---------- photos ---------- */
  .photo { position: relative; overflow: clip; background: var(--asphalt); }
  .photo img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    filter: saturate(.84) contrast(1.06);
  }
  .photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(var(--concrete-rgb), .10);
    mix-blend-mode: multiply;
    pointer-events: none;
  }

  /* ---------- illustration system ---------- */
  .sprite { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
  .ill {
    inline-size: var(--ill-size, 4rem);
    block-size: auto;
    overflow: visible;
    color: var(--ill-line);
  }
  .ill__line *, .ill .ill__stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: var(--ill-stroke);
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }
  .ill__fill * { fill: var(--ill-fill); stroke: none; }
  .ill__fill   { translate: -3.5px 3.5px; }
  .ill__hatch * { fill: url(#hatch-dark); stroke: none; }
  .surface-board .ill__hatch * { fill: url(#hatch-light); }
  .surface-plate .ill__hatch * { fill: url(#hatch-dark); }
  .ill__part, .ill__part * { transform-box: fill-box; }
  .ill .ill__dark  { fill: var(--asphalt); }
  .ill .ill__screen { fill: var(--concrete-deep); }
  .ill .ill__paper  { fill: var(--whitewash); }
  .ill .ill__solid { fill: currentColor; stroke: none; }
  .ill .ill__glass { fill: var(--galvanized-light); fill-opacity: .3; }

  .ill [data-part="mercury"] { fill: var(--ill-fill); transform-origin: 50% 100%; scale: 1 .4; }
  .ill [data-part="wind"] path,
  .ill [data-part="signal"] path {
    fill: none;
    stroke: currentColor;
    stroke-width: var(--ill-stroke);
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
  }
  .ill [data-part="lamp"] { opacity: 1; }
  .ill [data-part="charge"] rect { fill: var(--plate); transform-origin: 100% 50%; }
  .ill [data-part="spray"] circle { fill: currentColor; }

  /* ---------- hero ---------- */
  .hero {
    position: relative;
    padding-block: calc(var(--nav-h) + clamp(1.5rem, 1rem + 2vw, 3rem)) clamp(3rem, 2rem + 4vw, 5.5rem);
  }
  .hero__grid {
    --lamp-w: clamp(4.25rem, 2rem + 8vw, 10rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-5);
    position: relative;
  }
  .hero__eyebrow { grid-row: 1; justify-self: start; }

  /* sign lamps: mounted on the wall right above the letters, light falls on the sign */
  .hero__lamps {
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    block-size: calc(var(--lamp-w) * .72);
    margin-block-end: calc(var(--space-5) * -1);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;        /* the light tints the wall; black letters stay black */
  }
  .lamp {
    position: absolute;
    inset-block-start: 0;
    inline-size: var(--lamp-w);
    --ill-size: 100%;
  }
  .lamp--a { inset-inline-start: 34%; }
  .lamp--b { inset-inline-start: 72%; }
  .lamp .lamp__shade path { fill: var(--asphalt); stroke: var(--asphalt); stroke-width: var(--ill-stroke); stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .lamp .lamp__glow { fill: var(--plate); }
  .lamp__cone {                      /* flat, hard-edged beam: light as a print layer, not a blur */
    position: absolute;
    top: 74%;
    left: 81.7%;
    translate: -50% 0;
    inline-size: calc(var(--fs-hero) * 1.3);
    block-size: calc(var(--fs-hero) * .86);
    background: linear-gradient(to bottom, rgba(var(--lamp-rgb), .42), rgba(var(--lamp-rgb), .1));
    clip-path: polygon(43% 0, 57% 0, 100% 100%, 0 100%);
    pointer-events: none;
  }

  .sign {
    grid-row: 3;
    font: 700 var(--fs-hero)/.84 var(--font-display);
    letter-spacing: .005em;
    color: var(--asphalt);
    isolation: isolate;
    margin-block: .02em .06em;
  }
  .sign__word { position: relative; display: inline-block; }
  .sign__word::before {
    content: attr(data-text);
    content: attr(data-text) / "";
    position: absolute;
    inset: 0;
    z-index: -1;
    color: var(--plate);
    translate: -.035em .035em;
  }

  .hero__wall { grid-row: 4; display: grid; gap: var(--space-5); align-content: start; }
  .hero__lead { font: 400 var(--fs-lead)/1.55 var(--font-body); max-inline-size: 25em; text-wrap: wrap; }
  .hero__lead-do { display: block; font-weight: 500; }
  .hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
  .hero__ctas > * { flex: 1 1 100%; }

  .shutter { grid-row: 5; display: grid; align-self: start; }
  .shutter__box {
    position: relative;
    block-size: clamp(1.5rem, 1rem + 1.4vw, 2.5rem);
    border: var(--rule-heavy) solid var(--asphalt);
    border-block-end: 0;
    border-radius: 5px 5px 0 0;
    background: var(--galvanized-dark);
    box-shadow: inset 0 3px 0 var(--galvanized);
  }
  .shutter__box::before,
  .shutter__box::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    translate: 0 -50%;
    inline-size: 6px;
    block-size: 6px;
    border-radius: 50%;
    background: var(--asphalt);
  }
  .shutter__box::before { inset-inline-start: 10px; }
  .shutter__box::after  { inset-inline-end: 10px; }
  .shutter__opening {
    aspect-ratio: 16 / 10;
    border: var(--rule-heavy) solid var(--asphalt);
  }
  .shutter__opening img { position: absolute; inset: 0; object-position: 58% 50%; }
  .shutter__slats {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
      repeating-linear-gradient(to bottom,
        var(--galvanized-light) 0 2px,
        var(--galvanized) 0 16px,
        var(--galvanized-dark) 0 19px);
    translate: 0 -100%;
  }
  .shutter__slats::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    block-size: 12px;
    background: var(--asphalt);
  }

  /* ---------- directory board ---------- */
  .services { padding-block: var(--section-y); background-image: var(--grain); }
  .services .h2 { margin-block-end: var(--space-7); }
  .board-list { counter-reset: unit; }
  .strip {
    counter-increment: unit;
    position: relative;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) var(--ill-size, 3.5rem);
    align-items: center;
    column-gap: .85rem;
    min-block-size: 5.5rem;
    padding-block: 1rem;
    padding-inline: .75rem .25rem;
    border-block-start: 1px solid var(--border-soft);
    color: var(--text);
    transition: background-color var(--dur-ui) var(--ease-out);
  }
  .strip:nth-last-child(2) { border-block-end: 1px solid var(--border-soft); }
  .strip::before {
    content: counter(unit, decimal-leading-zero);
    content: counter(unit, decimal-leading-zero) / "";
    font: 700 1.625rem/1 var(--font-display);
    color: var(--plate);
  }
  .strip::after {
    content: "";
    position: absolute;
    inset-block: -1px;
    inset-inline-start: 0;
    inline-size: 5px;
    background: var(--plate);
    scale: 1 0;
    transform-origin: 50% 0;
    transition: scale 360ms var(--ease-out);
  }
  .strip.is-live::after { scale: 1 1; }
  .strip__text {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    font: 500 var(--fs-strip)/1.2 var(--font-body);
  }
  .strip__text::after {             /* directory-board leader dots, text to picture */
    content: "";
    flex: 1 1 2rem;
    min-inline-size: 1.5rem;
    border-block-end: 3px dotted var(--asphalt-line);
  }
  .strip--rescue .strip__text { display: block; }
  .strip--rescue .strip__text::after { content: none; }
  .nowrap { white-space: nowrap; }
  .strip .ill { justify-self: end; }
  @media (hover: hover) and (pointer: fine) {
    .strip:not(.strip--rescue):hover { background: var(--asphalt-soft); }
  }

  .strip--rescue {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-3);
    margin-block-start: var(--space-7);
    padding: var(--space-5) var(--space-5) var(--space-4);
    border: 0;
    border-radius: var(--radius-s);
    overflow: clip;
    background-image: var(--grain);
  }
  .strip--rescue::before, .strip--rescue::after { content: none; }
  .strip--rescue .strip__text { font-weight: 700; }
  .strip__lead { display: block; font: 700 1.9em/.95 var(--font-display); margin-block-end: .15em; }
  .truck-lane {
    position: relative;
    container-type: inline-size;
    block-size: clamp(5.25rem, 3.8rem + 5vw, 8.75rem);
    background:
      repeating-linear-gradient(to left, var(--asphalt) 0 22px, transparent 0 38px)
      bottom / 100% 3px no-repeat;
  }
  .truck {
    position: absolute;
    left: 0;
    bottom: 5px;
    inline-size: var(--ill-size-tow, 10rem);
    --ill-size: var(--ill-size-tow, 10rem);
  }
  .truck .truck__tyre { fill: var(--asphalt); stroke: var(--asphalt); stroke-width: var(--ill-stroke); vector-effect: non-scaling-stroke; }
  .truck .truck__rim { fill: var(--whitewash); stroke: var(--asphalt); stroke-width: 2px; vector-effect: non-scaling-stroke; }
  .truck .truck__spoke { stroke: var(--asphalt); stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  .truck__wheel { transform-box: fill-box; transform-origin: center; }

  /* ---------- photo band ---------- */
  .band { block-size: clamp(15rem, 8rem + 30vw, 38rem); border-block: var(--rule-heavy) solid var(--asphalt); }
  .band img { position: absolute; inset: 0; object-position: 40% 55%; }

  /* ---------- family ---------- */
  .family-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .family__text { font: 400 var(--fs-lead)/1.6 var(--font-body); max-inline-size: 23em; }
  .pegboard { inline-size: 100%; }
  .pegboard svg { inline-size: 100%; block-size: auto; overflow: visible; }
  .pegboard .pb-board { fill: var(--whitewash); stroke: var(--asphalt); stroke-width: var(--rule-heavy); vector-effect: non-scaling-stroke; }
  .pegboard .pb-peg { fill: var(--asphalt); }
  .pegboard .pb-old { opacity: .72; }
  .tool { transform-box: fill-box; transform-origin: 50% 0; }
  .tool [data-part="needle"] { transform-box: fill-box; transform-origin: 50% 100%; rotate: 28deg; }
  .tool [data-part="screen"] rect { fill: var(--plate); }
  .tool [data-part="screen"] path { fill: none; stroke: var(--asphalt); stroke-width: 2.5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  .tool [data-part="bulb"] { fill: var(--plate); }
  .family-photo {
    aspect-ratio: 4 / 5;
    border: var(--rule-heavy) solid var(--asphalt);
    max-inline-size: 30rem;
  }
  .family-photo img { position: absolute; inset: 0; object-position: 50% 40%; }

  /* ---------- reviews ---------- */
  .reviews { background-color: var(--whitewash); background-image: var(--grain); }
  .reviews-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .reviews__text { font: 400 var(--fs-lead)/1.6 var(--font-body); max-inline-size: 22em; }
  .reviews__link { justify-self: start; font: 500 var(--fs-lead)/1.4 var(--font-body); }
  .tally svg { inline-size: 100%; block-size: auto; overflow: visible; }
  .tally path { fill: none; stroke: var(--asphalt); stroke-linecap: round; }

  /* ---------- hours & map ---------- */
  .hours-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .hours-info { display: grid; gap: var(--space-6); align-content: start; }
  .address-sign {
    justify-self: start;
    inline-size: fit-content;
    padding: .5rem 1.1rem .6rem;
    border-radius: 5px;
    background: var(--asphalt);
    color: var(--whitewash);
    font: 700 clamp(2rem, 1.5rem + 2vw, 3rem)/1 var(--font-display);
    box-shadow: inset 0 0 0 4px var(--asphalt), inset 0 0 0 6px var(--whitewash);
  }
  .hours-plate {
    padding: 1.75rem 1.5rem;
    border: var(--rule-heavy) solid var(--asphalt);
    border-radius: 6px;
    background:
      radial-gradient(circle at 14px 14px, var(--galvanized-dark) 3.5px, transparent 4px),
      radial-gradient(circle at calc(100% - 14px) 14px, var(--galvanized-dark) 3.5px, transparent 4px),
      radial-gradient(circle at 14px calc(100% - 14px), var(--galvanized-dark) 3.5px, transparent 4px),
      radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), var(--galvanized-dark) 3.5px, transparent 4px),
      var(--whitewash);
    box-shadow: 0 4px 0 var(--asphalt);
  }
  .hours-row {
    position: relative;
    isolation: isolate;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    padding-block: .8rem;
    font: 500 var(--fs-lead)/1.3 var(--font-body);
  }
  .hours-row:not(:last-child) { border-block-end: var(--rule) dashed rgba(var(--asphalt-rgb), .3); }
  .hours-row .num { font-weight: 700; font-variant-numeric: tabular-nums; }
  .hours-row[data-today]::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-inline: -.5rem;
    inset-block: 22% 16%;
    border-radius: 3px;
    background: var(--plate);
    rotate: -.6deg;
    transform-origin: right center;
  }
  .nav-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .nav-buttons .btn { inline-size: 100%; }
  .map-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: clip;
    border: var(--rule-heavy) solid var(--asphalt);
    border-radius: 6px;
    background: var(--concrete-deep);
  }
  .map-frame iframe { inline-size: 100%; block-size: 100%; border: 0; filter: saturate(.85) contrast(1.02); }

  /* ---------- final panel ---------- */
  .contact { padding-block: var(--section-y); background-image: var(--grain); }
  .cta-title { font: 700 var(--fs-cta)/.86 var(--font-display); letter-spacing: .005em; }
  .cta-text { font: 500 var(--fs-lead)/1.5 var(--font-body); margin-block: var(--space-5) var(--space-6); max-inline-size: 26em; }
  .cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
  .cta-actions > * { flex: 1 1 100%; }
  .contact .plate { box-shadow: 0 4px 0 var(--asphalt); }

  /* ---------- footer: a short shutter (decoration only), text on solid asphalt ---------- */
  .site-footer {
    --focus: var(--plate);
    background: var(--asphalt);
    color: var(--whitewash);
  }
  .footer-shutter { overflow: clip; }
  .footer-box {
    block-size: clamp(1.25rem, 1rem + 1vw, 2rem);
    background: var(--galvanized-dark);
    border-block: var(--rule-heavy) solid var(--asphalt);
    box-shadow: inset 0 3px 0 var(--galvanized);
  }
  .footer-slats {
    block-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
    background:
      repeating-linear-gradient(to bottom,
        var(--galvanized-light) 0 2px,
        var(--galvanized) 0 16px,
        var(--galvanized-dark) 0 19px);
    border-block-end: 12px solid var(--asphalt);
  }
  .footer-floor {
    padding-block: var(--space-7) calc(var(--space-7) + env(safe-area-inset-bottom));
    border-block-start: var(--rule-heavy) solid var(--plate);
  }
  .footer-grid { display: grid; gap: var(--space-6); }
  .footer-line { font: 500 clamp(1.125rem, 1rem + .6vw, 1.4rem)/1.5 var(--font-body); }
  .footer-line a, .footer-legal a {
    color: var(--whitewash);
    text-decoration: underline var(--chalk-2) var(--rule);
    text-underline-offset: .25em;
    transition: text-decoration-color var(--dur-ui) var(--ease-out);
  }
  .footer-line a:hover, .footer-legal a:hover { text-decoration-color: var(--plate); text-decoration-thickness: 3px; }
  .footer-line a:focus-visible, .footer-legal a:focus-visible { outline: var(--rule-heavy) solid var(--plate); outline-offset: 3px; }
  .footer-legal ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
  .footer-legal a { display: inline-block; padding-block: .5rem; font: 400 1rem/1.4 var(--font-body); }
  .footer-legal a[aria-current="page"] { text-decoration-color: var(--plate); }
  .footer-note {
    justify-self: start;
    padding: .3rem .7rem .35rem;
    border-radius: 2px;
    background: var(--whitewash);
    color: var(--asphalt);
    font: 400 var(--fs-small)/1.4 var(--font-body);
  }
  @media (width >= 1024px) {
    .footer-grid { grid-template-columns: 1fr auto; align-items: end; }
    .footer-legal { justify-self: end; }
    .footer-note { grid-column: 1 / -1; }
  }

  /* ---------- WhatsApp FAB (mobile-first) ---------- */
  .wa-fab {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-inline-size: 60px;
    min-block-size: 60px;
    padding-inline: 16px;
    border: var(--rule) solid var(--asphalt);
    border-radius: var(--radius-fab);
    background: var(--asphalt);
    color: var(--plate);
    text-decoration: none;
    box-shadow: 0 2px 0 var(--asphalt), 0 10px 24px rgba(var(--asphalt-rgb), .28);
    translate: 0 calc(100% + 40px);
    transition:
      translate 460ms var(--ease-snap),
      background-color var(--dur-ui) var(--ease-out),
      color var(--dur-ui) var(--ease-out);
  }
  .wa-fab .glyph { inline-size: 26px; block-size: 26px; }
  .wa-fab[data-visible="true"] { translate: 0 0; }
  .wa-fab__label {
    max-inline-size: 0;
    overflow: clip;
    white-space: nowrap;
    opacity: 0;
    font: 500 1rem/1 var(--font-body);
    color: var(--whitewash);
    transition: max-inline-size 360ms var(--ease-out), opacity 200ms var(--ease-out);
  }
  .wa-fab[data-expanded="true"] .wa-fab__label { max-inline-size: 9em; opacity: 1; }
  .wa-fab:hover  { background: var(--plate); color: var(--asphalt); }
  .wa-fab:hover .wa-fab__label { color: var(--asphalt); }
  .wa-fab:active { translate: 0 2px; box-shadow: 0 0 0 var(--asphalt), 0 6px 14px rgba(var(--asphalt-rgb), .22); }
  .wa-fab:focus-visible { outline: var(--rule-heavy) solid var(--plate); outline-offset: 3px; }
}

/* =========================================================
   MOTION
   ========================================================= */
@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }

    /* --- hero: the sign paints right-to-left, its shade follows --- */
    .js .sign__word         { clip-path: inset(-.15em -.1em -.3em 100%); }
    .js .sign__word::before { clip-path: inset(0 0 0 100%); }
    .js .is-intro-run .sign__word {
      clip-path: inset(-.15em -.1em -.3em 0);
      transition: clip-path 520ms var(--ease-out) calc(var(--w) * 120ms);
    }
    .js .is-intro-run .sign__word::before {
      clip-path: inset(0);
      transition: clip-path 420ms var(--ease-out) calc(var(--w) * 120ms + 300ms);
    }

    .js .hero [data-rise] { opacity: 0; translate: 0 .6em; }
    .js .is-intro-run [data-rise] {
      opacity: 1;
      translate: 0 0;
      transition: opacity 500ms var(--ease-out), translate 600ms var(--ease-out);
      transition-delay: calc(350ms + var(--i, 0) * 100ms);
    }

    /* --- the shutter --- */
    .js .shutter__slats { translate: 0 0; }
    .js .is-intro-run .shutter.is-in .shutter__slats { translate: 0 -100%; animation: shutter-lift var(--dur-scene) var(--ease-shutter) 300ms both; }

    /* --- the lamps: fewer than 3 flashes per second --- */
    .js .lamp__glow, .js .lamp__cone { opacity: 0; }
    .js .is-intro-run .lamp__glow,
    .js .is-intro-run .lamp__cone { opacity: 1; animation: lamp-on 700ms linear 1150ms both; }
    .js .is-intro-run .lamp--b .lamp__glow,
    .js .is-intro-run .lamp--b .lamp__cone { animation-delay: 1330ms; }

    /* --- section titles paint in --- */
    .js .paint:not(.is-in) { clip-path: inset(-.15em -.1em -.3em 100%); }
    .js .paint { transition: clip-path 700ms var(--ease-out); }

    .js [data-reveal]:not(.is-in) { opacity: 0; translate: 0 24px; }
    .js [data-reveal] {
      transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out);
      transition-delay: calc(var(--i, 0) * 80ms);
    }

    /* --- strips slide into the board --- */
    .js .strip:not(.is-in) { opacity: 0; translate: 56px 0; }
    .js .strip {
      transition:
        opacity 500ms var(--ease-out),
        translate 620ms var(--ease-snap),
        background-color var(--dur-ui) var(--ease-out);
      transition-delay: calc(var(--i) * 70ms), calc(var(--i) * 70ms), 0ms;
    }

    /* illustrations: "the problem" until live, then "the repair" */
    .js .strip:not(.is-live) [data-part="mercury"]       { scale: 1 1; }
    .js .strip:not(.is-live) [data-part="wind"] path     { opacity: 0; }
    .js .strip:not(.is-live) [data-part="lamp"]          { opacity: 0; }
    .js .strip:not(.is-live) [data-part="charge"] rect   { scale: 0 1; }
    .js .strip:not(.is-live) [data-part="glass"]         { translate: 0 72%; }
    .js .strip:not(.is-live) [data-part="signal"] path   { opacity: 0; }
    .js .strip:not(.is-live) [data-part="spray"] circle  { opacity: 0; }

    .strip.is-live [data-part="mercury"]      { animation: mercury-drop 900ms var(--ease-out) 150ms both; }
    .strip.is-live [data-part="wind"] path    { animation: wind-out 600ms var(--ease-out) calc(550ms + var(--n) * 120ms) both; }
    .strip.is-live [data-part="lamp"]         { animation: lamp-on 800ms linear 150ms both; }
    .strip.is-live [data-part="charge"] rect  { animation: charge-fill 280ms var(--ease-out) calc(200ms + var(--n) * 180ms) both; }
    .strip.is-live [data-part="glass"]        { animation: glass-up 850ms var(--ease-in-out) 150ms both; }
    .strip.is-live [data-part="signal"] path  { animation: fade-in 400ms var(--ease-out) calc(150ms + var(--n) * 150ms) both; }
    .strip.is-live [data-part="spray"] circle { animation: spray-dot 240ms var(--ease-out) calc(150ms + var(--n) * 90ms) both; }

    /* --- pegboard: three generations hang on their hooks --- */
    .js .pegboard:not(.is-in) .tool { opacity: 0; translate: 0 -28px; }
    .js .pegboard.is-in .tool { opacity: 1; translate: 0 0; animation: tool-hang 950ms var(--ease-out) calc(var(--i) * 200ms) both; }
    .js .pegboard:not(.is-in) [data-part="needle"] { rotate: -50deg; }
    .js .pegboard.is-in [data-part="needle"] { rotate: 28deg; animation: needle-jump 900ms var(--ease-out) 1050ms both; }
    .js .pegboard:not(.is-in) [data-part="screen"],
    .js .pegboard:not(.is-in) [data-part="bulb"] { opacity: 0; }
    .js .pegboard.is-in [data-part="bulb"]   { opacity: 1; animation: lamp-on 700ms linear 800ms both; }
    .js .pegboard.is-in [data-part="screen"] { opacity: 1; animation: fade-in 300ms steps(3, end) 1350ms both; }

    /* --- 333 tally marks --- */
    /* dash sits fully outside the path until drawn, so round caps leave no stray dots */
    .js .tally path { stroke-dasharray: 1 1.5; stroke-dashoffset: 1.25; }
    .js .tally.is-in path {
      stroke-dashoffset: 0;
      transition: stroke-dashoffset 150ms linear calc(var(--g) * 16ms + var(--s) * 32ms);
    }

    /* --- today's marker --- */
    .js .hours-plate:not(.is-in) .hours-row[data-today]::after { scale: 0 1; }
    .js .hours-row[data-today]::after { transition: scale 600ms var(--ease-out) 350ms; }

    /* --- footer shutter comes down --- */
    .js .site-footer:not(.is-in) .footer-slats { translate: 0 -100%; }
    .js .site-footer.is-in .footer-slats { translate: 0 0; animation: shutter-down 950ms var(--ease-shutter) both; }

    /* --- mobile menu shutter --- */
    .menu-shutter {
      transition:
        translate 420ms var(--ease-shutter),
        overlay 420ms allow-discrete,
        display 420ms allow-discrete;
    }
    .menu-shutter:not([open]) { translate: 0 -100%; }
    @starting-style { .menu-shutter[open] { translate: 0 -100%; } }
  }

  /* scroll-driven (decorative, progressive enhancement: static where unsupported) */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @media (prefers-reduced-motion: no-preference) {
      .strip--rescue { view-timeline: --rescue block; }
      .strip--rescue .truck {
        animation: truck-drive linear both;
        animation-timeline: --rescue;
        animation-range: entry 20% cover 55%;
      }
      .strip--rescue .truck__wheel {
        animation: wheel-spin linear both;
        animation-timeline: --rescue;
        animation-range: entry 20% cover 55%;
      }
      .band { view-timeline: --band block; }
      .band img {
        scale: 1.16;
        animation: band-drift linear both;
        animation-timeline: --band;
      }
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .wa-fab, .site-nav, .plate, .btn, .strip, .strip::after, .wa-fab__label, .link, .trust { transition-duration: 1ms; }
  }

  @keyframes shutter-lift {
    0%   { translate: 0 0; }
    86%  { translate: 0 -101.5%; }
    93%  { translate: 0 -98.8%; }
    100% { translate: 0 -100%; }
  }
  @keyframes shutter-down {
    0%   { translate: 0 -100%; }
    82%  { translate: 0 1.5%; }
    91%  { translate: 0 -.8%; }
    100% { translate: 0 0; }
  }
  @keyframes lamp-on {
    0%       { opacity: 0; }
    16%      { opacity: 1; }
    28%      { opacity: .15; }
    50%      { opacity: 1; }
    62%      { opacity: .55; }
    76%,100% { opacity: 1; }
  }
  @keyframes mercury-drop { from { scale: 1 1; } to { scale: 1 .4; } }
  @keyframes wind-out     { from { opacity: 0; translate: 6px 0; } to { opacity: 1; translate: 0 0; } }
  @keyframes charge-fill  { from { scale: 0 1; } to { scale: 1 1; } }
  @keyframes glass-up     { from { translate: 0 72%; } to { translate: 0 0; } }
  @keyframes fade-in      { from { opacity: 0; } to { opacity: 1; } }
  @keyframes spray-dot    { from { opacity: 0; scale: .3; } to { opacity: 1; scale: 1; } }
  @keyframes tool-hang {
    0%   { opacity: 0; translate: 0 -28px; rotate: 0deg; }
    35%  { opacity: 1; translate: 0 0;     rotate: 7deg; }
    58%  { rotate: -4deg; }
    78%  { rotate: 1.5deg; }
    100% { opacity: 1; translate: 0 0;     rotate: 0deg; }
  }
  @keyframes needle-jump {
    0%   { rotate: -50deg; }
    55%  { rotate: 36deg; }
    75%  { rotate: 22deg; }
    100% { rotate: 28deg; }
  }
  @keyframes truck-drive { from { translate: calc(100cqi - 100%) 0; } to { translate: 0 0; } }
  @keyframes wheel-spin  { from { rotate: 0turn; } to { rotate: -9turn; } }
  @keyframes band-drift  { from { translate: 0 -6%; } to { translate: 0 6%; } }
}

/* =========================================================
   RESPONSIVE (mobile-first)
   ========================================================= */
@layer utilities {
  @media (width < 400px) {
    .strip:not(.strip--rescue) { --ill-size: 3.25rem; grid-template-columns: 1.75rem minmax(0, 1fr) var(--ill-size); column-gap: .7rem; }
  }
  @media (width < 600px) {
    .strip__text::after { content: none; }       /* leaders only where the line has room */
    .strip__text { display: block; text-wrap: balance; }
  }
  @media (width < 1024px) {
    .lamp--a { inset-inline-start: 8%; }
    .lamp--b { inset-inline-start: 46%; }
    .family-photo { aspect-ratio: 1; }
  }

  @media (width >= 600px) {
    .logo { flex-direction: row; align-items: baseline; gap: .55rem; }
    .logo__sep { display: inline; }
    .logo__city { font-size: var(--fs-label); }

    .hero__ctas > * { flex: 0 0 auto; }
    .cta-actions > * { flex: 0 0 auto; }

    .strip:not(.strip--rescue) { --ill-size: 5.5rem; grid-template-columns: 2.75rem minmax(0, 1fr) var(--ill-size); min-block-size: 6.75rem; column-gap: 1.25rem; }
    .strip::before { font-size: 2rem; }
    .strip--rescue { --ill-size-tow: 13rem; padding: var(--space-6) var(--space-6) var(--space-5); }
  }

  @media (width >= 1200px) {
    .nav-links { display: flex; }
    .nav-actions .plate--s, .nav-actions .btn { display: inline-flex; }
    .nav-actions .plate--icon, .menu-btn:not(.menu-close) { display: none; }
  }

  @media (width >= 1024px) {
    :root { --nav-h: 5rem; }

    .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-4); }
    /* eyebrow and lamps share the top row: eyebrow at the start, lamps over the sign */
    .hero__eyebrow { grid-column: 1 / -1; grid-row: 1; align-self: start; }
    .hero__lamps   { grid-row: 1; }
    .sign          { grid-column: 1 / -1; grid-row: 2; }
    .hero__wall    { grid-column: 1 / span 5; grid-row: 3; padding-block-start: var(--space-4); }
    .shutter       { grid-column: 6 / -1; grid-row: 3; }
    .lamp--a { inset-inline-start: 30%; }
    .lamp--b { inset-inline-start: 66%; }
    .shutter__opening { max-block-size: 62svh; inline-size: 100%; }
    .hero__ctas > * { flex: 0 0 auto; }

    .strip:not(.strip--rescue) { --ill-size: 7rem; grid-template-columns: 3.75rem minmax(0, 1fr) var(--ill-size); min-block-size: 8rem; padding-inline: 1.5rem .75rem; column-gap: 2rem; }
    .strip::before { font-size: 2.5rem; }
    .strip--rescue {
      --ill-size-tow: 19rem;
      grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
      align-items: end;
      column-gap: var(--space-7);
      padding: var(--space-7) var(--space-7) var(--space-5);
    }

    .family-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-6); }
    .family-layout > .h2       { grid-column: 1 / span 8; grid-row: 1; }
    .family-layout > .family__text { grid-column: 1 / span 4; grid-row: 2; }
    .family-layout > .family-photo { grid-column: 1 / span 4; grid-row: 3; max-inline-size: none; }
    .family-layout > .pegboard { grid-column: 5 / -1; grid-row: 2 / span 2; align-self: start; padding-inline-start: var(--space-6); }

    .reviews-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--space-5); }
    .reviews-layout > .h2 { grid-column: 1 / span 5; grid-row: 1; }
    .reviews-layout > .reviews__text { grid-column: 1 / span 5; grid-row: 2; }
    .reviews-layout > .reviews__link { grid-column: 1 / span 5; grid-row: 3; align-self: start; }
    .reviews-layout > .tally { grid-column: 6 / -1; grid-row: 1 / span 3; align-self: center; padding-inline-start: var(--space-7); }

    .hours-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
    .hours-layout > .hours-info { grid-column: 1 / span 5; }
    .hours-layout > .map-frame  { grid-column: 6 / -1; aspect-ratio: 5 / 4; margin-inline-start: var(--space-6); }

    .wa-fab { right: 24px; bottom: 24px; min-block-size: 56px; }
    .wa-fab .wa-fab__label { max-inline-size: 9em; opacity: 1; }
  }

  @media (pointer: coarse) {
    .nav-links a { padding-block: 1rem; }
  }
}

/* =========================================================
   LEGAL DOCUMENTS — the site's look, tuned for long reading
   ========================================================= */
@layer components {
  .doc { padding-block: calc(var(--nav-h) + clamp(2rem, 1rem + 4vw, 4.5rem)) var(--section-y); }
  .doc__head { margin-block-end: var(--space-7); }
  .doc__eyebrow { margin-block-end: var(--space-4); }
  .doc__title {
    font: 700 clamp(3.25rem, 2rem + 5.5vw, 6.5rem)/.9 var(--font-display);
    letter-spacing: .005em;
    text-wrap: balance;
  }
  .doc__meta { margin-block-start: var(--space-4); color: var(--text-secondary); font-size: 1rem; }

  .doc__layout { display: grid; gap: var(--space-6); align-items: start; }

  /* the sheet: whitewash paper, plate rim, screws — 16:1 text contrast */
  .doc__sheet {
    padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
    border: var(--rule-heavy) solid var(--asphalt);
    border-radius: 6px;
    background:
      radial-gradient(circle at 14px 14px, var(--galvanized-dark) 3.5px, transparent 4px),
      radial-gradient(circle at calc(100% - 14px) 14px, var(--galvanized-dark) 3.5px, transparent 4px),
      radial-gradient(circle at 14px calc(100% - 14px), var(--galvanized-dark) 3.5px, transparent 4px),
      radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), var(--galvanized-dark) 3.5px, transparent 4px),
      var(--whitewash);
    box-shadow: 0 4px 0 var(--asphalt);
  }
  .doc__body {
    max-inline-size: 42rem;
    font: 400 1.125rem/1.85 var(--font-body);
    color: var(--asphalt);
  }
  .doc__body > section { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
  .doc__body > section + section { margin-block-start: var(--space-7); }
  .doc__body h2 {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    margin-block-end: var(--space-3);
    padding-block-start: var(--space-4);
    border-block-start: var(--rule) solid var(--asphalt);
    font: 700 clamp(1.375rem, 1.2rem + .6vw, 1.625rem)/1.3 var(--font-body);
    text-wrap: balance;
  }
  .doc__num {
    flex: none;
    min-inline-size: 2.2rem;
    padding: .1rem .45rem;
    border: var(--rule) solid var(--asphalt);
    border-radius: 4px;
    background: var(--plate);
    font: 700 1.125rem/1.2 var(--font-body);
    text-align: center;
    font-variant-numeric: tabular-nums;
  }
  .doc__body h3 { margin-block: var(--space-5) var(--space-2); font: 700 1.1875rem/1.4 var(--font-body); }
  .doc__body p + p, .doc__body p + ul, .doc__body ul + p { margin-block-start: var(--space-3); }
  .doc__body ul { list-style: disc; padding-inline-start: 1.4rem; }
  .doc__body li + li { margin-block-start: .35rem; }
  .doc__body li::marker { color: var(--asphalt); }
  .doc__body strong { font-weight: 700; }
  .doc__body a:not(.btn, .plate) {
    color: var(--asphalt);
    text-decoration: underline var(--asphalt) var(--rule);
    text-underline-offset: .22em;
  }
  .doc__body a:not(.btn, .plate):hover { text-decoration-color: var(--plate); text-decoration-thickness: .35em; text-underline-offset: -.05em; }

  /* things the owner still has to fill in */
  .fill {
    padding: 0 .3em;
    border-radius: 3px;
    background: rgba(var(--plate-rgb), .45);
    border-block-end: var(--rule) dashed var(--asphalt);
  }
  .doc-note {
    margin-block-end: var(--space-6);
    padding: var(--space-4) var(--space-5);
    border: var(--rule) solid var(--asphalt);
    border-inline-start-width: 10px;
    border-inline-start-color: var(--plate);
    border-radius: 4px;
    background: var(--concrete);
    font-size: 1rem;
    line-height: 1.7;
  }
  .doc-contact {
    display: grid;
    gap: var(--space-3);
    margin-block-start: var(--space-4);
    padding: var(--space-5);
    border: var(--rule) solid var(--asphalt);
    border-radius: 4px;
    background: var(--concrete);
  }
  .doc-contact dl { display: grid; gap: .35rem; }
  .doc-contact dl div { display: flex; flex-wrap: wrap; gap: 0 .5rem; }
  .doc-contact dt { font-weight: 700; }
  .doc-contact .doc-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block-start: var(--space-2); }

  /* table of contents */
  .toc {
    padding: var(--space-5);
    border: var(--rule-heavy) solid var(--asphalt);
    border-radius: 6px;
    background: var(--asphalt);
    color: var(--whitewash);
    --focus: var(--plate);
  }
  .toc__title { font: 700 1.75rem/1 var(--font-display); color: var(--plate); margin-block-end: var(--space-3); }
  .toc ol { display: grid; gap: .15rem; counter-reset: toc; }
  .toc ol li { counter-increment: toc; }
  .toc a {
    display: flex;
    gap: .6rem;
    padding-block: .45rem;
    color: var(--whitewash);
    font: 400 1rem/1.4 var(--font-body);
    text-decoration: none;
  }
  .toc ol a::before { content: counter(toc) "."; content: counter(toc) "." / ""; color: var(--plate); font-weight: 700; font-variant-numeric: tabular-nums; min-inline-size: 1.4rem; }
  .toc a:hover { text-decoration: underline var(--plate) var(--rule); text-underline-offset: .25em; }
  .toc a:focus-visible { outline: var(--rule-heavy) solid var(--plate); outline-offset: 2px; }
  .doc-others { margin-block-start: var(--space-5); padding-block-start: var(--space-4); border-block-start: 1px solid var(--asphalt-line); }
  .doc-others p { font-size: .875rem; color: var(--chalk-2); margin-block-end: .25rem; }

  .nav-back {
    display: inline-flex;
    align-items: center;
    min-block-size: 2.75rem;
    font: 500 1rem/1 var(--font-body);
    color: var(--text);
    text-decoration: underline transparent var(--rule);
    text-underline-offset: .4em;
  }
  .nav-back:hover { text-decoration-color: var(--plate); text-decoration-thickness: .3em; }

  @media (width >= 1024px) {
    .doc__layout { grid-template-columns: 17rem minmax(0, 1fr); gap: var(--space-7); }
    .toc { position: sticky; inset-block-start: calc(var(--nav-h) + 1.5rem); }
  }
  @media print {
    .site-nav, .toc, .footer-shutter, .wa-fab, .skip-link { display: none !important; }
    .doc { padding-block-start: 0; }
    .doc__sheet { border: 0; box-shadow: none; background: none; padding: 0; }
    .doc__num { background: none; }
  }
}
