/* ==========================================================================
   LRM Masonry LLC — styles
   Direction: heavy, grounded, permanent. Masonry, not tech.
   Shared across index.html, services.html, work.html, contact.html.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts — self-hosted OFL subsets. No CDN link, no external request.
   Barlow / Barlow Condensed, SIL Open Font License 1.1 (see fonts/OFL.txt).
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* :where() keeps this at zero specificity. As a bare `ul[class]` it scored
   0-1-1 and quietly beat every later `.trades`/`.gallery` margin-top. */
:where(ul[class]) {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand primitives — sampled/derived from assets/originals/LRMtransparency.png
     (2026-08-16). --lrm-black, --lrm-red, and --lrm-white are pixel samples off
     the logo itself, not approximations. --concrete and --charcoal are the two
     supporting neutrals: everything text- and background-heavy runs through
     them so the black and red stay accents instead of covering the page. */
  --lrm-black: #000000;   /* sampled — logo's dominant fill                 */
  --lrm-red: #be1d2c;     /* sampled — the brick shadow red                 */
  --lrm-red-deep: #8e1621;/* derived — red mixed 25% toward black           */
  --lrm-white: #ffffff;   /* sampled — highlight facets / outline           */
  --concrete: #e9e6e0;    /* supporting neutral — page background           */
  --charcoal: #221f1d;    /* supporting neutral — body text, interior dark  */

  /* Palette (semantic slots — everything below reads through these) */
  --ink: var(--charcoal);       /* primary text, interior dark grounds      */
  --ground: var(--concrete);    /* page background                         */
  --stone: #948f86;             /* warm stone grey — RULES AND BORDERS ONLY */
  --stone-ink: #282320;         /* secondary text on light — near-black warm grey,
                                   darkened hard from #5b564e so body copy reads
                                   solid over the brick coursing, not grey */
  --stone-mute: #c7c1b6;        /* secondary text on dark — ~8:1 on --ink, ~7:1 on
                                   the dark brick wall (lightened from #a39d92 for
                                   the same reason) */
  --accent: var(--lrm-red);     /* CTA fills and small signals only         */
  --accent-ink: var(--lrm-red-deep); /* small red text on light — 7.7:1     */
  --on-accent: var(--lrm-white);     /* text on a red fill — 6.2:1          */
  /* --accent itself is ~2.7:1 on charcoal and ~3.4:1 on true black — fine as
     a fill or a border, not enough for small red TEXT on a dark band. This
     is that case: red lightened toward white until it clears 4.5:1 on
     charcoal (~5.3:1) — small red text on dark. */
  --accent-bright: color-mix(in srgb, var(--lrm-red) 60%, white 40%);
  --hairline: color-mix(in srgb, var(--ground) 12%, transparent);
  /* Context-flipped like --fg/--bg below: the safe "small red" variant for
     whichever background is actually behind it. Light bands get the 7.7:1
     ink, dark bands get the bright tint — see .band--dark. */
  --link-accent: var(--accent-ink);

  /* Masonry coursing texture. Seamless brick-wall photographs (client-supplied)
     processed by tools/make-brick-textures.py — a warm whitish-grey wall for
     the light bands, a charcoal-slate wall for the dark bands. Both tiles are
     resampled to the same on-screen course height (~44px) so the two variants
     read at one pattern scale, and edge-blended so they repeat with no seam.
     Drop-in replacements for the old inline line pattern: same --texture /
     --brick-panel slots, same .band::before plumbing, no layout change. The
     band colours (--concrete / --charcoal) still sit behind them and are close
     to the brick-face tone, so body-text contrast stays AA. Regenerate the
     .webp files from the masters, don't hand-edit them. */
  --brick-on-dark: url("../assets/web/brick-wall-dark.webp");
  --brick-on-light: url("../assets/web/brick-wall-light.webp");
  /* The empty-slot artwork uses the same light wall — as a real brick photo it
     reads as a cut masonry panel, not the grey void the old grain gave. */
  --brick-panel: url("../assets/web/brick-wall-light.webp");

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.8125rem, 0.79rem + 0.12vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.07rem + 0.28vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.55rem + 1vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.75rem + 2.4vw, 3.5rem);
  --display: clamp(3.25rem, 1.2rem + 10.5vw, 8rem);

  /* Space */
  --s-1: 0.5rem;
  --s-2: 0.75rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 3rem;

  /* Section rhythm — tightened for v2. Generous but firm: 64px phone,
     96px desktop. v1 ran half again as tall and read as an endless scroll. */
  --section-y: 4rem;

  /* Layout */
  --wrap: 74rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --measure: 60ch;
  --header-h: 1rem;   /* header is not sticky on phones — see .site-header */

  /* Default (light) theme slots — flipped by .band--dark. --fg is pushed a
     little past --ink (which is also a background colour and can't move) so
     body copy stays crisp over the brick coursing. */
  --fg: #17140f;
  --bg: var(--ground);
  --fg-mute: var(--stone-ink);
  --rule: color-mix(in srgb, var(--stone) 55%, transparent);
  --texture: var(--brick-on-light);
  --focus: var(--accent-ink);
}

@media (min-width: 48em) {
  :root {
    --section-y: 6rem;
  }
}

@media (min-width: 52em) {
  :root {
    --header-h: 6.25rem;
  }
}

.band--dark {
  --fg: #f6f4ef;
  --bg: var(--ink);
  --fg-mute: var(--stone-mute);
  --rule: color-mix(in srgb, var(--stone) 45%, transparent);
  --texture: var(--brick-on-dark);
  --focus: var(--ground);
  --link-accent: var(--accent-bright);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  scroll-margin-top: var(--header-h);
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--texture);
  pointer-events: none;
}

/* Lifts real content above the ::before texture and the hero's ::after wash —
   pseudo-elements paint last otherwise. */
.band > * {
  position: relative;
  z-index: 1;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band__inner {
  padding-block: var(--section-y);
}

.skip-link {
  position: absolute;
  left: var(--s-3);
  top: 0;
  z-index: 100;
  transform: translateY(-120%);
  padding: var(--s-2) var(--s-4);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Present for assistive tech, never visible — for content whose meaning is
   otherwise carried by an icon alone. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  color: var(--fg-mute);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.section-title,
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.section-title {
  max-width: 18ch;
  font-size: var(--step-3);
}

.page-title {
  max-width: 16ch;
  font-size: var(--step-4);
}

/* The one place body copy carries weight 500 — enough presence to read as an
   intro without reaching for the display face. */
.lede {
  max-width: var(--measure);
  margin-top: var(--s-3);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--fg-mute);
}

.link-on {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--link-accent);
  padding-bottom: 2px;
}

.link-on:hover {
  border-bottom-color: currentColor;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 3.25rem;
  padding: var(--s-2) var(--s-5);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-ink);
}

/* Signature motif — the charcoal brick wall, drifting slowly behind the CTA
   label on hover/focus. Overlay blend with the dark tile: brick faces read as
   a deeper red, mortar lines stay near the base red, so the coursing is
   clearly legible without flooding the button dark. Primary button only. */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--brick-on-dark);
  background-repeat: repeat;
  /* fixed tile width so the drift keyframe below wraps seamlessly */
  background-size: 32rem auto;
  /* push the tile's contrast and lift the mid-grey mortar toward white so,
     under the overlay blend, the joints clearly lighten the red (bright
     coursing lines) while the brick faces still read as a deeper red. */
  filter: brightness(1.55) contrast(1.6);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn--primary:hover::before,
.btn--primary:focus-visible::before {
  opacity: 0.5;
  animation: btn-brick-drift 5s linear infinite;
}

@keyframes btn-brick-drift {
  from { background-position: 0 0; }
  to   { background-position: -32rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary:hover::before,
  .btn--primary:focus-visible::before {
    animation: none;
  }
}

.btn--ghost {
  border-color: var(--rule);
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: var(--fg);
}

.btn--lg {
  min-height: 4rem;
  padding: var(--s-3) var(--s-6);
  font-size: var(--step-2);
}

.btn__icon {
  width: 1.3em;
  height: 1.3em;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   The image system — the v2 fix.
   The container owns the geometry; the image never derives height from its
   own intrinsic dimensions. --focal is set per image in the markup, chosen by
   looking at the photograph; it only bites once a max-height cap makes the
   box wider than its aspect ratio, which is exactly when it matters.
   -------------------------------------------------------------------------- */
/* width:100% is load-bearing, not decoration. With an auto width, a box that
   has both aspect-ratio and max-height shrinks its WIDTH to keep the ratio —
   the image then under-fills its column and the height cap never crops, so
   --focal does nothing. A definite width makes max-height clamp the height
   instead, which is what hands the framing decision to object-position. */
.shot {
  display: block;
  width: 100%;
  overflow: hidden;
  background: color-mix(in srgb, var(--stone) 30%, var(--bg));
  border: 1px solid var(--rule);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
}

.shot--3x2 {
  aspect-ratio: 3 / 2;
  max-height: 260px;
}

@media (min-width: 48em) {
  .shot--3x2 {
    max-height: 440px;
  }
}

.shot--1x1 {
  aspect-ratio: 1 / 1;
}

/* Honest empty state for a trade with no qualifying photograph. Mixed toward
   the page ground rather than dimmed, so it reads as a cut stone panel
   instead of a failed image. */
.shot--empty {
  background-color: color-mix(in srgb, var(--stone) 45%, var(--ground));
  background-image: var(--brick-panel);
}

figure {
  margin: 0;
}

figcaption {
  margin-top: var(--s-2);
  color: var(--fg-mute);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   Header — two rows on a phone (wordmark + CTA, then nav), one row from 52em.
   Not sticky on phones: a two-row sticky bar eats too much of a small screen
   and the fixed call bar already keeps the primary action in reach.
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 50;
  /* The logo's master file ships on a flat white background, not a
     transparent one — white chrome is what lets it sit at full color
     fidelity instead of the black fill dropping out. */
  background: var(--lrm-white);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--s-2);
  min-height: 5rem;
}

/* The logo is the brand anchor, not a badge next to the nav — sized to fill
   most of the header's height rather than a modest text-sized mark. */
.wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.wordmark img {
  height: 3.25rem;
  width: auto;
}

/* Hover-only signature: the trailing motion lines already drawn into the
   brick stack (and echoed sitewide as .motion-mark) extend further out to
   the left, as if the mark just picked up speed. Absolutely positioned so
   it never nudges the logo's own layout — a pure transform/opacity reveal,
   not a scale or tilt on the mark itself. */
.logo-motion {
  position: absolute;
  right: 100%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 3px;
  transform: translate(8px, -50%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo-motion span {
  display: block;
  height: 3px;
  flex-shrink: 0;
  background: var(--accent);
}

.logo-motion span:nth-child(1) { width: 22px; opacity: 0.9; }
.logo-motion span:nth-child(2) { width: 14px; opacity: 0.6; }
.logo-motion span:nth-child(3) { width: 8px;  opacity: 0.35; }

@media (hover: hover) {
  .wordmark:hover .logo-motion,
  .wordmark:focus-visible .logo-motion,
  .footer-mark-wrap:hover .logo-motion {
    transform: translate(-6px, -50%);
    opacity: 1;
  }
}

/* No real hover on touch — a brief version on tap instead, via :active,
   rather than a sticky effect with no way to dismiss it. */
@media (hover: none) {
  .wordmark:active .logo-motion,
  .footer-mark-wrap:active .logo-motion {
    transform: translate(-6px, -50%);
    opacity: 1;
  }
}

.footer-mark-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Desktop nav — hidden below 52em entirely now; the mobile menu panel
   further down carries the same links at narrow widths instead of letting
   this wrap onto its own row. */
.site-nav {
  display: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--stone-ink);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* The desktop Contact button and full phone-link are direct children of
   .site-header__inner — targeted by that direct-child combinator so they
   don't also match the separate Contact button living inside the mobile
   menu panel below. */
.site-header__inner > .btn {
  display: none;
}

.site-header .btn {
  min-height: 2.75rem;
  padding: var(--s-1) var(--s-4);
  font-size: var(--step-0);
}

/* The number beside the header's Contact button, desktop only — the number
   next to a compact icon carries the same job at mobile widths instead
   (.phone-icon-link, below). */
.phone-link {
  display: none;
  align-items: center;
  gap: var(--s-2);
  color: var(--stone-ink);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.phone-link:hover,
.phone-link:focus-visible {
  color: var(--ink);
}

.phone-link__icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  color: var(--accent-ink);
}

.phone-link__cta {
  font-weight: 400;
  font-size: 0.8em;
  color: var(--stone-ink);
}

/* --------------------------------------------------------------------------
   Mobile header — a compact call icon plus a hamburger that opens a real
   <details>/<summary> disclosure panel, not a JS-dependent one. Works with
   no JavaScript at all (native browser behaviour); js/mobile-menu.js only
   adds Escape-to-close and auto-close when resizing past the breakpoint.
   -------------------------------------------------------------------------- */
.phone-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  color: var(--accent-ink);
  text-decoration: none;
}

.phone-icon-link__icon {
  width: 1.4rem;
  height: 1.4rem;
}

.mobile-menu {
  flex-shrink: 0;
  margin-left: var(--s-1);
}

.mobile-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  list-style: none;
  cursor: pointer;
}

.mobile-menu__toggle::-webkit-details-marker {
  display: none;
}

.mobile-menu__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
}

.mobile-menu__bars span {
  display: block;
  height: 3px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu[open] .mobile-menu__bars span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu[open] .mobile-menu__bars span:nth-child(2) {
  opacity: 0;
}

.mobile-menu[open] .mobile-menu__bars span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Positioned relative to .site-header (the nearest ancestor that actually
   spans full width) rather than to .mobile-menu itself, so the panel
   reaches edge to edge instead of being boxed into the hamburger button's
   own narrow width. */
.mobile-menu__panel {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  padding: var(--s-5) var(--gutter);
  background: var(--ink);
  border-top: 1px solid var(--rule);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--lrm-black) 25%, transparent);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  color: var(--stone-mute);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a:focus-visible {
  color: var(--ground);
}

.mobile-menu__nav a[aria-current="page"] {
  color: var(--ground);
}

.mobile-menu__panel .btn {
  width: 100%;
  margin-top: var(--s-4);
}

@media (min-width: 52em) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .site-header__inner {
    min-height: 6.25rem;
    gap: var(--s-5);
  }

  .site-nav {
    display: flex;
    gap: var(--s-4);
  }

  .wordmark img {
    height: 4.5rem;
  }

  .site-header__inner > .btn {
    display: inline-flex;
  }

  .site-header .btn {
    min-height: 3rem;
    padding: var(--s-2) var(--s-5);
  }

  .phone-link {
    display: inline-flex;
    font-size: var(--step-1);
  }

  .phone-icon-link,
  .mobile-menu {
    display: none;
  }
}

/* The fixed call bar carries the call action on phones once PHONE is
   confirmed set — drop the header's own compact call icon there to avoid
   saying it twice in the same viewport. The hamburger/menu stays; it's
   navigation, not a duplicate of the call bar's job. */
@media (max-width: 51.999em) {
  body.has-call-bar .phone-icon-link {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu__bars span {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Hero (home only) — a looping crossfade slideshow of four real jobsite
   photos as the full-bleed background, each a stacked, absolutely
   positioned layer so the crossfade is a pure opacity animation (cheap,
   GPU-composited, no layout cost). Sharp files this time, not pre-blurred —
   legibility comes from the scrim below instead, checked against all four
   images rather than tuned for just one.

   Timing: each image holds fully visible for 2s, then crossfades to the
   next over 1s — a 3s share of a 12s loop (4 images × 3s). Implemented as
   one shared keyframe (visible 0–2s, faded out by 3s, i.e. 0–16.67% then
   25% of the 12s cycle) applied to all four layers, each phase-shifted by
   a negative animation-delay so they land at the right point in the cycle
   without four separate keyframe blocks.
   -------------------------------------------------------------------------- */
.hero {
  overflow: hidden;
  position: relative;
  /* z-index:0 (not just position:relative) is what actually establishes a
     new stacking context here — without it, .hero__bg's z-index:-1 isn't
     contained to .hero at all; it escapes and paints behind unrelated
     ancestor-level content instead of just behind .hero's own scrim/text. */
  z-index: 0;
  background-color: var(--bg);
}

/* The hero's background IS the photo slideshow — it was never a brick section.
   The old .band::before line pattern was invisible here (5% opacity over
   photos); the new opaque brick wall would not be, so drop the pseudo on the
   hero specifically. Nothing else about the hero changes. */
.hero::before {
  content: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* .band > * already lifts .wrap to z-index:1 — the same value .hero::after
   now uses explicitly, which is an ambiguous tie between a pseudo-element
   and a real sibling. This wins on specificity and settles it: text above
   scrim, unconditionally. */
.hero > .wrap {
  z-index: 2;
}

.hero__bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 55%;
  opacity: 0;
  animation: hero-crossfade 12s infinite;
}

.hero__bg-layer--1 {
  background-image: url("../assets/web/hero-bg1-960.jpg");
  animation-delay: 0s;
}

.hero__bg-layer--2 {
  background-image: url("../assets/web/hero-stone-garden-wall-960.jpg");
  animation-delay: -3s;
}

.hero__bg-layer--3 {
  background-image: url("../assets/web/hero-stamped-pavilion-slab-960.jpg");
  animation-delay: -6s;
}

.hero__bg-layer--4 {
  background-image: url("../assets/web/hero-log-home-foundation-960.jpg");
  animation-delay: -9s;
}

@media (min-width: 60em) {
  .hero__bg-layer--1 { background-image: url("../assets/web/hero-bg1-1920.jpg"); }
  .hero__bg-layer--2 { background-image: url("../assets/web/hero-stone-garden-wall-1920.jpg"); }
  .hero__bg-layer--3 { background-image: url("../assets/web/hero-stamped-pavilion-slab-1920.jpg"); }
  .hero__bg-layer--4 { background-image: url("../assets/web/hero-log-home-foundation-1920.jpg"); }
}

/* 0–16.67% (0–2s of this layer's own 12s clock): held fully visible.
   16.67–25% (2–3s): fades OUT — and thanks to the negative animation-delay
   staggering below, the NEXT layer is simultaneously fading IN over that
   same real-time window (its own 91.67–100%/0% span), which is what makes
   this an actual overlapping crossfade instead of a fade-to-black between
   independent fade-outs. */
@keyframes hero-crossfade {
  0% { opacity: 1; }
  16.67% { opacity: 1; }
  25% { opacity: 0; }
  91.67% { opacity: 0; }
  100% { opacity: 1; }
}

/* Slightly darker than a single-photo scrim needs, since this now has to
   hold contrast against four different images (some much brighter than the
   original bg1.jpg) rather than one tuned photo. Still a left-to-right
   fade, not a flat wash — strong behind the text, cleared out toward the
   right so whichever photo is showing stays visible there. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--ink) 94%, transparent) 0%,
    color-mix(in srgb, var(--ink) 88%, transparent) 32%,
    color-mix(in srgb, var(--ink) 50%, transparent) 62%,
    color-mix(in srgb, var(--ink) 15%, transparent) 100%
  );
  pointer-events: none;
}

/* prefers-reduced-motion: freeze on the first slide, no animation at all —
   simpler and safer than slowing a four-way crossfade down. */
@media (prefers-reduced-motion: reduce) {
  .hero__bg-layer {
    animation: none;
    opacity: 0;
  }

  .hero__bg-layer--1 {
    opacity: 1;
  }
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--display);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-shadow: 0 3px 20px color-mix(in srgb, var(--lrm-black) 55%, transparent);
}

/* A plain, solid rule — not a decorative flourish — is what carries the
   brand red in the hero now. Grounded to the headline it sits above,
   rather than an ornament with no clear anchor. */
.hero__accent {
  width: 4rem;
  height: 4px;
  margin-bottom: var(--s-3);
  background: var(--accent);
}

/* Signature element: a tapering motion-line cluster echoing the lines
   trailing the logo's brick stack. Used sparingly as a section-divider
   mark next to eyebrow labels and closing CTAs — never as a floating
   ornament with nothing to anchor it to. */
.motion-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
}

.motion-mark span {
  display: block;
  height: 3px;
  background: currentColor;
}

.motion-mark span:nth-child(1) { width: 30px; opacity: 0.9; }
.motion-mark span:nth-child(2) { width: 20px; opacity: 0.6; }
.motion-mark span:nth-child(3) { width: 11px; opacity: 0.35; }

.hero__sub {
  max-width: 34ch;
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-size: var(--step-2);
  color: var(--stone-mute);
  text-shadow: 0 2px 14px color-mix(in srgb, var(--lrm-black) 55%, transparent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-5);
}

/* The verified service list, restated as a masthead rule. */
.trades {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  color: var(--stone-mute);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px color-mix(in srgb, var(--lrm-black) 40%, transparent);
}

/* Each trade is a real link straight to its section on services.html, not
   just a restated list of words. */
.trades a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.trades a:hover,
.trades a:focus-visible {
  color: var(--fg);
  border-bottom-color: currentColor;
}

/* .trades is styled for the dark hero masthead (light ink + a dark glow).
   On a light band — the "Where we work" list on contact.html — that ink is
   the same value as the background; give it a dark ink and drop the glow. */
.band:not(.band--dark) .trades {
  color: var(--stone-ink);
  text-shadow: none;
}

/* --------------------------------------------------------------------------
   Interior page head
   -------------------------------------------------------------------------- */
.page-head__inner {
  padding-block: calc(var(--section-y) * 0.75);
}

/* --------------------------------------------------------------------------
   Home — compact services overview. Small square thumbnails in a ruled list.
   This is the pitch; services.html is the detail.
   -------------------------------------------------------------------------- */
.overview {
  margin-top: var(--s-5);
  border-top: 1px solid var(--rule);
}

.ov {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--s-3) var(--s-4);
  align-items: center;
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.2s ease;
}

.ov__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.ov__name a {
  text-decoration: none;
}

/* Stretches the title link over the whole card so the entire row is a
   click target, not just the two words of the heading — the photo and
   description read as part of the same clickable unit. */
.ov__name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.ov__name a:hover {
  color: var(--accent-ink);
}

.ov:has(.ov__name a:hover),
.ov:has(.ov__name a:focus-visible) {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.ov .shot img {
  transition: transform 0.3s ease;
}

.ov:has(.ov__name a:hover) .shot img,
.ov:has(.ov__name a:focus-visible) .shot img {
  transform: scale(1.05);
}

.ov p {
  grid-column: 2;
  max-width: 52ch;
  margin-top: var(--s-1);
  color: var(--fg-mute);
  font-weight: 500;
}

@media (min-width: 40em) {
  .ov {
    grid-template-columns: 7rem 14rem 1fr;
    gap: var(--s-5);
  }

  .ov p {
    grid-column: 3;
    margin-top: 0;
  }
}

.overview__more {
  margin-top: var(--s-5);
}

/* Home "What we do" — this section is the pitch and carries more of the page
   than the shared section defaults assume, so every part of it steps up one
   size: heading, eyebrow, trade names, copy, the thumbnails, and the tail
   link. Scoped to #what-we-do so no other section moves. */
#what-we-do .eyebrow {
  font-size: var(--step-0);
}

#what-we-do .section-title {
  font-size: var(--step-4);
  max-width: 20ch;
}

#what-we-do .ov {
  grid-template-columns: 6rem 1fr;
}

#what-we-do .ov__name {
  font-size: var(--step-3);
  /* last-resort break so a single long trade name ("COMMERCIAL") can never
     push the grid wider than a ~320px phone; a no-op at every real width. */
  overflow-wrap: break-word;
}

#what-we-do .ov p {
  font-size: var(--step-1);
}

#what-we-do .overview__more .link-on {
  font-size: var(--step-1);
}

@media (min-width: 40em) {
  #what-we-do .ov {
    grid-template-columns: 9rem 16rem 1fr;
  }
}

/* --------------------------------------------------------------------------
   Services detail rows (services.html)
   -------------------------------------------------------------------------- */
.trades-list {
  counter-reset: trade;
  margin-top: var(--s-4);
}

.trade {
  counter-increment: trade;
  display: grid;
  gap: var(--s-4);
  align-items: center;
  padding-block: var(--s-6);
  border-top: 1px solid var(--rule);
  scroll-margin-top: var(--header-h);
}

.trade:first-of-type {
  border-top: none;
  padding-top: var(--s-5);
}

@media (min-width: 60em) {
  .trade {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
  }

  /* The side-flip echoes a running bond and keeps five rows from marching. */
  .trade:nth-of-type(even) .trade__fig {
    order: 2;
  }
}

.trade__body h2 {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.trade__body h2::before {
  content: counter(trade, decimal-leading-zero);
  color: var(--accent-ink);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.trade__body p {
  max-width: 46ch;
  margin-top: var(--s-3);
  color: var(--fg-mute);
  font-size: var(--step-1);
  font-weight: 500;
}

/* Ties the row's photo to its own "ask about this" link — hovering or
   focusing the link (not just the image) gives the whole row a response,
   the same connective trick as the homepage overview cards. */
.trade__fig .shot img {
  transition: transform 0.3s ease;
}

.trade:has(.trade__body .link-on:hover) .trade__fig .shot img,
.trade:has(.trade__body .link-on:focus-visible) .trade__fig .shot img {
  transform: scale(1.04);
}

/* One or two labelled groups per trade — the structural/finish split reads
   naturally for some trades (masonry, water) and not others (excavation),
   so this stays a flexible wrap rather than a fixed two-column grid. */
.trade__specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3) var(--s-5);
  max-width: 46ch;
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
}

/* auto-fit + minmax below this width demanded two 11rem tracks (~384px)
   inside a column narrower than that, and grid doesn't shrink a track
   below its minmax floor — it overflows instead. Explicit breakpoint
   instead, same fix pattern as .form__row--2up and .detail-list. */
@media (min-width: 30em) {
  .trade__specs {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  }
}

.trade__specs dt {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.trade__specs dd {
  margin-top: 0.25rem;
  color: var(--fg-mute);
}

/* --------------------------------------------------------------------------
   Commercial callouts (services.html: snow removal, land mowing) — pulled
   out of the numbered trades-list on purpose; a different band and a
   different audience line is how they read as "not the same pitch as the
   project trades" rather than just saying so. Used on both dark and light
   bands, so colors go through the band-aware --fg-mute.
   -------------------------------------------------------------------------- */
.commercial {
  max-width: 52rem;
}

.commercial__audience {
  max-width: 46ch;
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  color: var(--fg-mute);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------------------
   Story section (services.html #story) — text and a photo side by side from
   60em, matching the .trade row pattern without borrowing its numbered-list
   coupling (no .trade__body, so no counter markup renders here).
   -------------------------------------------------------------------------- */
.story__grid {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-5);
}

@media (min-width: 60em) {
  .story__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   Showroom (work.html) — the photos in a dark gallery room. Tabs pick a
   trade. The photos sit side by side at their real proportions, never
   cropped: the current one bright in the centre, its neighbours dimmed at
   the edges so it's obvious there's more. Swipe, drag, arrow or tap a
   thumbnail to move; tap the photo for full screen with zoom. "All photos"
   lays the whole trade out at once.

   CSS first. With JavaScript off, every trade is stacked: a heading, a
   scroll-snap row of photos (native swipe, trackpad or shift-wheel), and a
   strip of thumbnails that link to them. js/gallery.js adds .is-ready and
   everything interactive.
   -------------------------------------------------------------------------- */
.showroom-band {
  --stage-bg: #141210;
  --bg: var(--stage-bg);
  /* 100cqi below is the band's width: the viewport minus any scrollbar,
     which 100vw would overshoot on Windows. */
  container-type: inline-size;
}

.showroom-band::before {
  display: none;
}

.showroom {
  /* The tab bar, caption row and strip take ~21rem under the sticky header;
     the stage gets what's left, so the viewer fits one screen. */
  --stage-h: clamp(16rem, 100svh - 21rem, 44rem);
  --slide-gap: clamp(0.75rem, 2.5cqi, 2rem);
  padding-block: var(--s-4) calc(var(--section-y) * 0.6);
  /* Clear of the sticky header when a #trade link scrolls it into view. */
  scroll-margin-top: calc(var(--header-h) - var(--s-4) + var(--s-2));
}

@media (max-width: 51.99em) {
  .showroom {
    /* No sticky header on phones; cap by width so a portrait photo fills
       the screen without towering over it. */
    --stage-h: clamp(15rem, min(122cqi, 100svh - 14rem), 34rem);
  }
}

/* --- Bar: trade tabs, and the All photos switch ------------------------- */
.showroom__tabs {
  display: flex;
  align-items: stretch;
  gap: var(--s-3);
  border-bottom: 1px solid var(--rule);
}

.showroom__tablist {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: var(--s-5);
  overflow-x: auto;
  scrollbar-width: none;
  /* Fades the end of the row on a phone, where it scrolls sideways. */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
  padding-right: 2rem;
}

.showroom__tablist::-webkit-scrollbar {
  display: none;
}

/* Wide enough for every tab: no fade, and a tighter gap so the row and the
   All photos switch share one line. */
@media (min-width: 64em) {
  .showroom__tablist {
    gap: var(--s-4);
    padding-right: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.showroom__tablist > li {
  flex: none;
}

.showroom__tab {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  padding-block: var(--s-2) 0.85rem;
  color: var(--fg-mute);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

/* Inset: the tab row is a scroll box and would clip an outer outline. */
.showroom__tab:focus-visible {
  outline-offset: -3px;
}

.showroom__tab::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.showroom__tab:hover,
.showroom__tab[aria-selected="true"] {
  color: var(--fg);
}

.showroom__tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.showroom__tab-count {
  color: var(--fg-mute);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.showroom__view {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  align-self: center;
  min-height: 2.5rem;
  margin-bottom: 0.35rem;
  padding: 0 var(--s-2);
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.showroom__view svg {
  width: 1.1rem;
  height: 1.1rem;
}

.showroom__view:hover,
.showroom__view:focus-visible {
  border-color: var(--fg);
}

.showroom__view[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
}

@media (max-width: 39.99em) {
  /* Icon only on a phone; the label stays for screen readers. */
  .showroom__view-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .showroom__view {
    width: 2.75rem;
    justify-content: center;
    padding: 0;
  }
}

/* --- Panels ------------------------------------------------------------- */
.showroom__panel + .showroom__panel {
  margin-top: var(--s-6);
}

.showroom.is-ready .showroom__panel + .showroom__panel {
  margin-top: 0;
}

.showroom__title {
  margin-block: var(--s-5) var(--s-3);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

/* With JS the tab names the trade and the row under the stage carries the
   caption; both stay in the markup for screen readers. */
.showroom.is-ready .showroom__title,
.showroom.is-ready .showroom__slide figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* --- Stage: full-bleed row of photos ------------------------------------- */
.showroom__stage {
  position: relative;
  margin-top: var(--s-4);
  margin-inline: calc(50% - 50cqi);
}

.showroom__track {
  position: relative;      /* offsetParent for the slides; js/gallery.js */
  display: flex;
  align-items: center;
  gap: var(--slide-gap);
  height: var(--stage-h);
  /* Half the width on each side, so the first and last photo can still
     come to rest in the centre. */
  padding-inline: 50%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}

.showroom__track:focus-visible {
  outline-offset: -3px;
}

.showroom.is-ready .showroom__track {
  scrollbar-width: none;
  cursor: grab;
}

.showroom.is-ready .showroom__track::-webkit-scrollbar {
  display: none;
}

.showroom__track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.showroom__slide {
  flex: none;
  scroll-snap-align: center;
}

.showroom__slide figure {
  margin: 0;
}

.showroom__slide .gallery__link {
  display: block;
}

.showroom__slide .gallery__link:focus-visible {
  outline-color: var(--lrm-white);
  outline-offset: 4px;
}

/* Sized from the photo's own ratio (--ar, set per slide) so the row never
   shifts as photos load: as tall as the stage, narrower than the screen,
   and never past the photo's real height (--nh), so the few small older
   photos aren't stretched soft. */
.showroom__slide img {
  display: block;
  width: auto;
  height: min(var(--stage-h), calc((100cqi - 3rem) / var(--ar)), var(--nh));
  aspect-ratio: var(--ar);
  background: #221f1d;
  -webkit-user-drag: none;
  user-select: none;
}

/* No JS: the caption sits under its photo, so leave it room. */
.showroom:not(.is-ready) .showroom__slide img {
  height: min(var(--stage-h) - 3rem, calc((100cqi - 3rem) / var(--ar)), var(--nh));
}

.showroom__slide figcaption {
  padding-top: var(--s-1);
  color: var(--fg-mute);
  font-size: var(--step--1);
}

.showroom.is-ready .showroom__slide {
  opacity: 0.28;
  transform: scale(0.92);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.showroom.is-ready .showroom__slide:not(.is-active) {
  cursor: pointer;
}

.showroom.is-ready .showroom__slide:not(.is-active):hover {
  opacity: 0.5;
}

.showroom.is-ready .showroom__slide.is-active {
  opacity: 1;
  transform: none;
}

/* Photos fade in as they arrive instead of popping in. */
.showroom.is-ready .showroom__slide img {
  transition: opacity 0.35s ease;
}

.showroom.is-ready .showroom__slide img:not(.is-loaded) {
  opacity: 0;
}

/* Full-screen cue on the current photo's corner. */
.showroom.is-ready .showroom__slide.is-active .gallery__link::after {
  content: "";
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  width: 2.25rem;
  height: 2.25rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E")
    center / 1.1rem no-repeat,
    color-mix(in srgb, var(--lrm-black) 60%, transparent);
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.showroom.is-ready .showroom__slide.is-active .gallery__link:hover::after {
  opacity: 1;
}

.showroom__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid color-mix(in srgb, var(--lrm-white) 28%, transparent);
  background: color-mix(in srgb, var(--stage-bg) 72%, transparent);
  color: var(--lrm-white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.showroom__arrow--prev {
  left: max(var(--s-2), var(--gutter) - 1rem);
}

.showroom__arrow--next {
  right: max(var(--s-2), var(--gutter) - 1rem);
}

.showroom__arrow:hover:not([aria-disabled="true"]),
.showroom__arrow:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
}

.showroom__arrow:focus-visible {
  outline-color: var(--lrm-white);
  outline-offset: -6px;
}

/* aria-disabled rather than disabled, so focus isn't dropped to <body>
   at the first or last photo. */
.showroom__arrow[aria-disabled="true"] {
  opacity: 0;
  pointer-events: none;
}

.showroom__arrow[hidden] {
  display: none;
}

/* On a touch screen the row is swiped; the arrows would only sit on the
   photo. */
@media (hover: none) and (max-width: 51.99em) {
  .showroom__arrow {
    display: none;
  }
}

/* --- Caption + counter -------------------------------------------------- */
.showroom__meta {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  padding-block: var(--s-3);
}

.showroom__caption {
  flex: 1;
  min-width: 0;
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1.35;
}

@media (max-width: 39.99em) {
  /* Two lines held open, so a long caption doesn't nudge the strip. */
  .showroom__caption {
    min-height: 2.7em;
  }
}

.showroom__counter {
  flex: none;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.showroom__counter-total {
  color: var(--fg-mute);
  font-size: var(--step-0);
  font-weight: 500;
}

/* --- Strip: every photo in the trade ------------------------------------ */
.showroom__strip {
  display: flex;
  gap: 0.375rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--stone) transparent;
}

.showroom__stage + .showroom__strip {
  margin-top: var(--s-3);
}

.showroom__strip > li {
  flex: none;
}

.showroom__thumb {
  position: relative;
  display: block;
  width: 4.5rem;
  aspect-ratio: 1;
  background: #221f1d;
}

@media (max-width: 39.99em) {
  .showroom__thumb {
    width: 3.75rem;
  }
}

.showroom__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.showroom.is-ready .showroom__thumb img {
  opacity: 0.45;
}

.showroom.is-ready .showroom__thumb:hover img,
.showroom.is-ready .showroom__thumb:focus-visible img,
.showroom.is-ready .showroom__thumb[aria-current="true"] img {
  opacity: 1;
}

.showroom__thumb[aria-current="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--accent);
}

.showroom__thumb:focus-visible {
  outline-offset: -3px;
}

/* A trade with one photo has nothing to pick between. */
.showroom.is-ready .showroom__strip:has(> li:only-child) {
  display: none;
}

.showroom__more {
  margin-top: var(--s-4);
}

/* --- All photos: the whole trade, rows of equal height ------------------ */
.showroom__grid {
  --row: 12rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--s-4);
}

@media (max-width: 39.99em) {
  .showroom__grid {
    --row: 7rem;
    gap: 0.375rem;
  }
}

/* Stops the last row stretching to fill the width. */
.showroom__grid::after {
  content: "";
  flex: 1e4 1 0;
}

/* Each cell grows in proportion to its photo's ratio, so every row comes
   out the same height with nothing cropped. */
.showroom__cell {
  position: relative;
  flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--row));
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #221f1d;
  color: var(--lrm-white);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.showroom__cell img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar);
  object-fit: cover;
  transition: transform 0.4s ease;
}

.showroom__cell:hover img,
.showroom__cell:focus-visible img {
  transform: scale(1.04);
}

.showroom__cell:focus-visible {
  outline-color: var(--lrm-white);
  outline-offset: 2px;
}

.showroom__cell-cap {
  position: absolute;
  inset: auto 0 0;
  padding: var(--s-4) var(--s-2) var(--s-2);
  background: linear-gradient(to top,
    color-mix(in srgb, var(--lrm-black) 80%, transparent), transparent);
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1.3;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.showroom__cell:hover .showroom__cell-cap,
.showroom__cell:focus-visible .showroom__cell-cap {
  opacity: 1;
}

/* Grid view swaps the viewer out for the grid. */
.showroom.is-grid .showroom__stage,
.showroom.is-grid .showroom__meta,
.showroom.is-grid .showroom__strip {
  display: none;
}

.showroom:not(.is-grid) .showroom__grid {
  display: none;
}

.gallery__link {
  display: block;
  position: relative;
  cursor: zoom-in;
}

/* --------------------------------------------------------------------------
   Lightbox (work.html) — a real overlay, not a new tab. The opening sweep
   reuses the same motion-line device as the CTA button hover, here as a
   one-shot transition instead of a hover loop.
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--s-4);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--lrm-black) 90%, transparent);
}

.lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(90vw, 68rem);
}

.lightbox__img {
  display: block;
  max-width: min(90vw, 68rem);
  max-height: 78vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  border: 1px solid var(--hairline);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lightbox.is-open .lightbox__img {
  opacity: 1;
  transform: scale(1);
}

.lightbox__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    var(--lrm-white) 0 6px,
    transparent 6px 16px
  );
  opacity: 0;
  transform: translateX(-40%);
  pointer-events: none;
}

.lightbox.is-open .lightbox__figure::after {
  animation: lightbox-sweep 0.55s ease-out;
}

@keyframes lightbox-sweep {
  0% { opacity: 0.4; transform: translateX(-40%); }
  55% { opacity: 0.22; }
  100% { opacity: 0; transform: translateX(15%); }
}

.lightbox__caption {
  margin-top: var(--s-2);
  color: var(--stone-mute);
  font-size: var(--step--1);
  text-align: center;
}

/* Zoom (js/gallery.js): the photo scales and pans under the pointer. The
   browser's own pinch-zoom and scrolling are switched off over it so the
   gestures reach the script. */
.lightbox {
  overflow: hidden;
}

.lightbox__figure {
  touch-action: none;
}

.lightbox__img {
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox.is-zoomed .lightbox__img {
  cursor: grab;
}

.lightbox.is-zoomed .lightbox__caption {
  opacity: 0;
}

.lightbox__hint {
  display: block;
  margin-top: 0.35rem;
  opacity: 0.7;
  font-size: 0.8125rem;
}

.lightbox__count {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--lrm-white);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox__count:empty {
  display: none;
}

.lightbox__nav[hidden] {
  display: none;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid transparent;
  background: var(--lrm-black);
  color: var(--lrm-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close {
  top: var(--s-4);
  right: var(--s-4);
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: var(--s-4);
}

.lightbox__nav--next {
  right: var(--s-4);
}

.lightbox__close:hover,
.lightbox__nav:hover,
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  background: var(--lrm-red);
}

@media (max-width: 40em) {
  .lightbox__nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }

  .lightbox__nav--prev { left: var(--s-2); }
  .lightbox__nav--next { right: var(--s-2); }
  .lightbox__close { top: var(--s-2); right: var(--s-2); }
}

/* --------------------------------------------------------------------------
   Service area + contact detail
   -------------------------------------------------------------------------- */
.detail-list {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-5);
}

@media (min-width: 48em) {
  .detail-list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6);
  }

  .detail-list--2up {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Padding balanced by an equal negative margin — the text sits exactly
   where it did before, but hovering gives the panel a surface to respond
   with, instead of two blocks of copy that never react to anything. */
.detail {
  padding: var(--s-3);
  margin: calc(var(--s-3) * -1);
  transition: background-color 0.2s ease;
}

.detail:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.detail h2,
.detail h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.detail p {
  margin-top: var(--s-2);
  max-width: 42ch;
  color: var(--fg-mute);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-5);
}

.contact__alt {
  color: var(--fg-mute);
  font-size: var(--step-1);
}

.contact__alt a {
  color: var(--fg);
  text-underline-offset: 0.25em;
}

/* --------------------------------------------------------------------------
   Quote form (contact.html) — dark-band, hard-edged inputs on purpose;
   a white card with grey borders would read as a generic form builder
   dropped onto the site rather than the site's own conversion point.
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--s-4);
  max-width: 42rem;
  margin-top: var(--s-5);
}

.form__row {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 40em) {
  .form__row--2up {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: var(--s-2);
  border: none;
  padding: 0;
  margin: 0;
}

.field label,
.field legend {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 0;
}

.field__required {
  /* On the form's dark band, plain --accent is ~2.7:1 against the charcoal
     label text sits on — too low for small text. --accent-bright clears
     4.5:1 here. */
  color: var(--accent-bright);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: var(--s-3);
  background: var(--lrm-black);
  border: 2px solid var(--rule);
  color: var(--ground);
  font-family: var(--font-body);
  font-size: var(--step-0);
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field__checks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.field__check {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border: 2px solid var(--rule);
  color: var(--fg-mute);
  font-size: var(--step--1);
  cursor: pointer;
}

.field__check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

.field__check:has(input:checked) {
  border-color: var(--accent-bright);
  color: var(--fg);
}

.form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
}

.form__note {
  color: var(--fg-mute);
  font-size: var(--step--1);
}

.form__note a {
  color: var(--fg);
  text-underline-offset: 0.25em;
}

.form__status {
  padding: var(--s-3);
  border: 2px solid var(--rule);
  font-size: var(--step-0);
}

.form__status[data-state="success"] {
  border-color: var(--lrm-white);
  color: var(--fg);
}

.form__status[data-state="error"] {
  border-color: var(--accent-bright);
  color: var(--fg);
}

/* --------------------------------------------------------------------------
   Closing CTA band
   -------------------------------------------------------------------------- */
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: calc(var(--section-y) * 0.8);
}

.cta__title {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

/* The brand mark at the conversion moment — the same stacked-brick glyph
   used for the favicon, not another decorative rule. */
.cta__mark {
  height: 3.75rem;
  width: auto;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  /* Same reasoning as .site-header — matches the logo's own white so the
     mark and the footer-mark icon show at full color, not outline-only.
     No .band--dark class on this element (see the HTML) — --fg/--fg-mute/
     --rule below are the ordinary light-context values. */
  background: var(--lrm-white);
  border-top: 1px solid var(--rule);
}

/* The footer is deliberately flat white (above); the brick wall would cover
   that. It's not one of the textured content sections, so drop the pseudo
   here the same way the hero does. */
.site-footer::before {
  content: none;
}

.site-footer__inner {
  display: grid;
  gap: var(--s-4);
  padding-block: var(--s-5);
  color: var(--fg-mute);
  font-size: var(--step--1);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--fg);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--link-accent);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
}

.footer-mark {
  height: 2.75rem;
  width: auto;
}

.site-footer__inner a {
  text-underline-offset: 0.25em;
}

.footer-meta .credit {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

/* No background plate — the mark sits directly on the footer, transparent,
   as supplied (assets/web/vertex-ops-logo.png is an untouched crop of
   assets/originals/Logo banner.png, original pale colors). Legibility on
   white comes from a dark drop-shadow stacked twice to build a soft halo
   behind and around the artwork, plus a hover/focus scale as the "yes,
   this is a real link" cue a flat logo otherwise lacks. */
.credit__logo {
  display: inline-flex;
  align-items: center;
}

.credit__logo img {
  display: block;
  height: 1.75rem;
  width: auto;
  filter:
    drop-shadow(0 0 3px color-mix(in srgb, var(--lrm-black) 85%, transparent))
    drop-shadow(0 0 6px color-mix(in srgb, var(--lrm-black) 65%, transparent));
  transition: transform 0.2s ease;
}

.credit__logo:hover img,
.credit__logo:focus-visible img {
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   Fixed mobile call bar — only ever shown once PHONE is set (js/main.js
   un-hides it). Ships hidden so a no-JS visitor never meets a dead button.
   -------------------------------------------------------------------------- */
.call-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  padding: var(--s-2);
  padding-bottom: max(var(--s-2), env(safe-area-inset-bottom));
  background: var(--lrm-white);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -2px 12px color-mix(in srgb, var(--ink) 15%, transparent);
}

.call-bar .btn {
  width: 100%;
}

.call-bar[hidden] {
  display: none;
}

/* Keeps the fixed bar off the footer's last line. */
body.has-call-bar {
  padding-bottom: 5rem;
}

@media (min-width: 52em) {
  .call-bar {
    display: none;
  }

  body.has-call-bar {
    padding-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
/* Smooth anchor scrolling and the CTA sweep's slide are the only actual
   motion on the site, so those are the only things switched off.
   Deliberately NOT the blanket `* { 0.01ms }` kill: the remaining
   transitions are colour/opacity changes, which carry no vestibular risk
   and are useful feedback. Removing motion should not mean removing the
   interface's ability to respond. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn--primary::before {
    transition: opacity 0.15s ease;
    transform: none;
  }

  .ov .shot img,
  .trade__fig .shot img,
  .showroom__tab::after,
  .showroom__slide,
  .showroom__slide img,
  .showroom__cell img {
    transition: none;
  }

  .gallery__link:hover .shot img,
  .gallery__link:focus-visible .shot img,
  .ov:has(.ov__name a:hover) .shot img,
  .ov:has(.ov__name a:focus-visible) .shot img,
  .trade:has(.trade__body .link-on:hover) .trade__fig .shot img,
  .trade:has(.trade__body .link-on:focus-visible) .trade__fig .shot img {
    transform: none;
  }

  .lightbox__img {
    transition: opacity 0.15s ease;
    transform: none;
  }

  .credit__logo img {
    transition: none;
  }

  .credit__logo:hover img,
  .credit__logo:focus-visible img {
    transform: none;
  }

  .lightbox.is-open .lightbox__figure::after {
    animation: none;
  }

  .logo-motion {
    transition: none;
  }

  .wordmark:hover .logo-motion,
  .wordmark:focus-visible .logo-motion,
  .footer-mark-wrap:hover .logo-motion,
  .wordmark:active .logo-motion,
  .footer-mark-wrap:active .logo-motion {
    transform: translate(8px, -50%);
    opacity: 0;
  }
}
