/* Self-hosted: latin subset only, variable weight ranges matching what
   the page actually uses (Besley 500-800, Cabin 400-700). */
@font-face {
  font-family: 'Besley';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/besley-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Cabin';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cabin-latin-variable.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Taken off the brick and mortar in Dan's own photographs */
  --brick:      #7B2E26;   /* fired brick, the brand colour */
  --brick-deep: #5C201A;   /* pressed state, deep shadow band */
  --brick-pale: #EBD9D5;   /* text on the brick band */
  --lime:       #F3F3F1;   /* lime mortar off-white, the page */
  --stone:      #E7E6E1;   /* the one supporting tone */
  --ink:        #1A1A18;   /* near black */
  --body:       #43413C;   /* running text */
  --muted:      #656259;   /* captions and meta */
  --rule:       #D8D6D0;
  --white:      #FFFFFF;

  --serif: 'Besley', Georgia, 'Times New Roman', serif;
  --sans:  'Cabin', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  background: var(--lime);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* ── TYPE SCALE. Each step at least 1.25x the one below it. ── */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5vw, 4rem);     font-weight: 700; line-height: 1.06; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.65rem); font-weight: 700; line-height: 1.14; }
h3 { font-size: 1.7rem;                         font-weight: 600; line-height: 1.25; }

p { max-width: 62ch; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--brick); }

/* ── FOCUS ── */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.reviews a:focus-visible,
.mobile-bar a:focus-visible,
footer a:focus-visible,
.btn:focus-visible {
  outline-color: var(--white);
}

/* ── REVEAL ON SCROLL: both classes are added by JavaScript only (see
   site.js), so with no JS every photo is simply there at full opacity;
   nothing is ever hidden by CSS alone. ── */
.reveal {
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(12px);
}

/* ── LAYOUT ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
section { scroll-margin-top: 5.5rem; }

/* ── BUTTONS: solid, square shouldered, no glow ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.95rem 1.75rem;
  border-radius: 2px;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-brick { background: var(--brick); color: var(--white); }
.btn-brick:hover { background: var(--brick-deep); }
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-line:hover { background: var(--ink); color: var(--lime); }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--lime);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
/* Past 40px of scroll the header pulls in a little and lifts off the
   page with a soft shadow, on top of the hairline border it always has. */
nav.scrolled {
  box-shadow: 0 1px 0 var(--rule), 0 6px 20px rgba(26, 26, 24, 0.06);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.nav-mark { flex: 0 0 auto; display: block; }
.nav-mark rect { fill: var(--brick); }
.nav-mark g { stroke: var(--lime); }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nav-logo-main {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}
.nav-logo-sub {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.35;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--brick); }
.nav-links a[aria-current="true"] { border-bottom-color: var(--brick); }
.nav-links .nav-cta {
  background: var(--brick);
  color: var(--white);
  padding: 0.6rem 1.15rem;
  border-radius: 2px;
  border-bottom: none;
}
.nav-links .nav-cta:hover { background: var(--brick-deep); border-bottom: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  /* A comfortable 44px thumb target, not just the width of the bars */
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
  margin-right: -6px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--ink);
  transition: transform 0.28s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── HERO: split. Words on solid mortar, photograph full bleed beside them. ── */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: stretch;
  background: var(--lime);
  border-bottom: 1px solid var(--rule);
  /* Percentage, not vw, so the headline lines up with the sections
     below it whether or not a scrollbar is taking up space. */
  padding-left: max(1.5rem, calc((100% - 1080px) / 2 + 1.5rem));
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.5rem 3.5rem 5.5rem 0;
  min-height: min(82svh, 720px);
}
.hero-text h1 { margin-bottom: 1.3rem; }
.hero-sub {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 2.2rem;
  max-width: 34ch;
}
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.hero-figure { margin: 0; position: relative; overflow: hidden; }
.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}
/* At this column's proportions the photo already fills the box almost
   exactly, leaving object-position nothing to crop. A slight zoom from
   the top gives it room to push the slab and scaffold pole along the
   bottom out of frame. */
@media (min-width: 1001px) {
  .hero-photo {
    transform: scale(1.25);
    transform-origin: 50% 0%;
  }
}
/* Motion move 1 of 2: the hero settles once, on load. No fill mode and
   no delay, so the resting state is the visible one. If the animation
   never runs, the words are simply there. */
@media (prefers-reduced-motion: no-preference) {
  .hero-text { animation: riseIn 0.75s cubic-bezier(0.2, 0.7, 0.3, 1); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ── TRUST STRIP ── */
.trust-band {
  background: var(--lime);
  border-bottom: 1px solid var(--rule);
}
.trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem 2rem;
  padding: 2.25rem 1.5rem;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
}
.trust li::before {
  content: '';
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  background: var(--brick);
}

/* ── REVIEW TICKER ── */
.ticker {
  position: relative;
  overflow: hidden;
  background: var(--brick);
  padding: 1.3rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 56px, black calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, transparent, black 56px, black calc(100% - 56px), transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 55s linear infinite;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.5rem;
  padding: 0 1.25rem;
}
.ticker-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}
.ticker-list li::before {
  content: '';
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--lime);
}
.ticker-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}
.ticker-list a:hover .ticker-quote,
.ticker-list a:focus-visible .ticker-quote {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ticker-quote {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--brick-pale);
}
.ticker-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}
/* Reduced motion: no scroll, no duplicate, and the fade (which only
   makes sense against moving content) goes too. The one real list
   wraps and centres like an ordinary line of chips. */
@media (prefers-reduced-motion: reduce) {
  .ticker {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .ticker-track { animation: none; width: auto; }
  .ticker-list[aria-hidden="true"] { display: none; }
  .ticker-list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.85rem;
  }
  .ticker-list a { white-space: normal; }
}

/* ── SIGNS ── */
.signs { padding: 5.5rem 0; }
.signs-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: start;
}
.signs h2 { margin-bottom: 1.6rem; }
.signs-list { list-style: none; }
.signs-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.8rem;
  color: var(--ink);
  line-height: 1.6;
}
.signs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 11px;
  height: 11px;
  background: var(--brick);
}
.signs-prose p { margin-bottom: 1.15rem; }
.signs-prose p:last-child { margin-bottom: 0; }

/* ── WHY THE MIX MATTERS: two photos, cement against lime ── */
.mix {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}
.mix h3 { margin-bottom: 1.75rem; }
.mix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.mix-panel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.mix-panel-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 1.25rem 0 0.6rem;
}
.mix-panel-notes { list-style: none; font-size: 1rem; color: var(--body); }
.mix-panel-notes li { position: relative; padding-left: 1.4rem; margin-bottom: 0.35rem; }
.mix-panel-notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--brick);
}
.mix figcaption {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 68ch;
}
@media (max-width: 720px) {
  .mix { padding-top: 2.25rem; }
  .mix-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── WHAT I TAKE ON ── */
.services { padding: 6.5rem 0; background: var(--stone); }
.services h2 { margin-bottom: 3.2rem; }
.job {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--rule);
  align-items: center;
}
.job:last-child { padding-bottom: 0; }
.job-media { margin: 0; }
.job-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.job-media-right .job-media { order: 2; }
.job-media-right .job-body { order: 1; }
/* order alone only flips which side each piece paints on; the grid
   tracks themselves are still 0.9fr/1.1fr in DOM order, so without
   this the reversed row's image lands in the wider 1.1fr track and
   comes out bigger than the other two. Mirror the column widths too. */
.job-media-right { grid-template-columns: 1.1fr 0.9fr; }
.job-body h3 { margin-bottom: 1rem; }
.job-body p { margin-bottom: 1rem; }
.job-body p:last-child { margin-bottom: 0; }

/* ── RECENT JOBS ── */
.work { padding: 5rem 0 5.5rem; }
.work h2 { margin-bottom: 2.4rem; }
/* The best photograph on the site, contained to the page width. */
.shot-wide { margin: 0 0 3rem; }
.shot-wide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 560px;
  object-fit: cover;
  display: block;
}
.shot-wide figcaption {
  margin: 0.9rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
/* Mobile-first: 2 columns, with the fifth tile spanning both so
   there is never an orphan or an empty half. The 6-column, 3-then-2
   layout only applies once there is room for it (see below). */
.grid-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.25rem;
}
.shot { margin: 0; overflow: hidden; }
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.shot figcaption {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 0.7rem;
}
.shot:nth-child(5) { grid-column: 1 / -1; }
@media (min-width: 1001px) {
  .grid-shots { grid-template-columns: repeat(6, 1fr); gap: 2rem 1.5rem; }
  .shot:nth-child(1), .shot:nth-child(2), .shot:nth-child(3) { grid-column: span 2; }
  .shot:nth-child(4), .shot:nth-child(5) { grid-column: span 3; }
}
/* Motion move 2 of 2: a photograph leans in slightly under the cursor. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .shot img, .shot-wide img { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1); }
  .shot:hover img { transform: scale(1.035); }
}
.work-more { margin-top: 2.6rem; color: var(--muted); }

/* ── LIGHTBOX TRIGGERS: every Recent jobs photo opens the lightbox ── */
.work-figure-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: left;
}
.work-figure-trigger picture,
.work-figure-trigger img { display: block; width: 100%; }

/* ── ABOUT ── */
.about { padding: 6rem 0; background: var(--stone); }
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.about-photo { width: 100%; height: auto; display: block; }
.about h2 { margin-bottom: 1.4rem; }
.about-lead { margin-bottom: 1.8rem; }
.about-facts { list-style: none; }
.about-facts li {
  padding: 0.85rem 0 0.85rem 1.9rem;
  border-top: 1px solid var(--rule);
  position: relative;
  color: var(--ink);
  line-height: 1.6;
  max-width: 58ch;
}
.about-facts li:last-child { border-bottom: 1px solid var(--rule); }
.about-facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.5em;
  width: 12px;
  height: 3px;
  background: var(--brick);
}

/* ── HOW A JOB GOES ── */
/* Bottom padding is about half the top: this section and Contact share
   the same background, so full padding on both sides left a large
   empty gap between them. The thin rule below marks the handover. */
.process { padding: 6.5rem 0 3.25rem; background: var(--lime); }
.process h2 { margin-bottom: 3rem; }
.section-rule {
  margin: 2.5rem 0 0;
  border: none;
  border-top: 1px solid var(--rule);
}
.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.process-step {
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.process-num {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brick);
  margin-bottom: 0.6rem;
}
.process-step h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: normal;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.process-step p { color: var(--body); margin: 0; }
@media (min-width: 721px) {
  .process-list { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
}
@media (min-width: 1001px) {
  .process-list { grid-template-columns: repeat(4, 1fr); gap: 2.5rem 2rem; }
}

/* ── REVIEWS: the one full bleed brick band ── */
.reviews {
  padding: 5.5rem 0;
  background: var(--brick);
  color: var(--brick-pale);
}
.reviews h2 { color: var(--white); margin-bottom: 3rem; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.review {
  border-top: 2px solid rgba(255,255,255,0.45);
  padding-top: 1.4rem;
  margin: 0;
}
.review p {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--brick-pale);
  margin-bottom: 1.2rem;
}
.review-who { font-weight: 700; color: var(--white); }
.review-where { font-size: 0.8125rem; color: var(--brick-pale); }
.reviews-foot {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.reviews-foot p {
  color: var(--white);
  font-size: 1.0625rem;
  max-width: none;
}
.reviews-foot a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ── CONTACT ── */
.contact { padding: 7rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact h2 { margin-bottom: 1.3rem; }
.contact-lead { margin-bottom: 1.6rem; }
.contact-note {
  color: var(--muted);
  font-size: 1rem;
  max-width: 46ch;
}
.contact-phone {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--brick);
  text-decoration: none;
}
.contact-phone:hover { color: var(--brick-deep); text-decoration: underline; text-underline-offset: 6px; }
.contact-or {
  margin: 1.6rem 0 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.contact-alts { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: var(--ink); color: #D6D4CE; padding: 2.5rem 0 2rem; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
}
.footer-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.footer-mark { flex: 0 0 auto; display: block; }
footer p { font-size: 0.9375rem; line-height: 1.5; color: #D6D4CE; }
/* Inline-block with padding so the contact links are a comfortable tap */
footer a { display: inline-block; padding: 0.3rem 0; color: #D6D4CE; text-decoration: none; }
footer a:hover { color: var(--white); text-decoration: underline; }
.footer-legal {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.8125rem;
  color: #B6B3AC;
  max-width: none;
}

/* ── STICKY CALL BAR, PHONES ONLY ── */
.mobile-bar {
  display: none;
  /* Stronger line and a soft shadow so the bar still reads as a bar over the brick reviews band */
  border-top: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── LIGHTBOX ── */
.lightbox {
  /* The sitewide reset zeroes every element's margin, which also wipes
     out the browser's own `margin: auto` centering for a modal dialog.
     Restore it explicitly or the dialog sits flush in the corner. */
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  max-width: 92vw;
  max-height: 90vh;
}
.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox::backdrop {
  background: rgba(15, 13, 11, 0.88);
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}
.lightbox.is-visible::backdrop {
  opacity: 1;
}
/* The fade and scale live on this inner wrapper, not on the dialog
   itself: a `transform` on the dialog would make it the containing
   block for its `position: fixed` children (the close/prev/next
   buttons), pinning them to the photo's own box instead of the
   viewport's corners. */
.lightbox-frame {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 90vh;
}
.lightbox.is-visible .lightbox-frame {
  opacity: 1;
  transform: scale(1);
}
.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 90vh;
}
.lightbox-img {
  display: block;
  max-width: 92vw;
  max-height: calc(90vh - 3.25rem);
  width: auto;
  height: auto;
}
.lightbox-caption {
  margin-top: 0.9rem;
  color: var(--white);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
  max-width: 60ch;
}
.lightbox-count {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8125rem;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  /* .lightbox-frame comes later in the DOM and forms its own stacking
     context (the fade/scale transform does that), so without this it
     paints over these buttons whenever the photo is wide enough to
     reach the corners. */
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: rgba(26, 26, 24, 0.55);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(26, 26, 24, 0.8);
}
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) {
  .lightbox-close { top: 0.6rem; right: 0.6rem; width: 40px; height: 40px; }
  .lightbox-prev { left: 0.4rem; width: 40px; height: 40px; }
  .lightbox-next { right: 0.4rem; width: 40px; height: 40px; }
}
/* The blanket reduced-motion rule further down covers real elements
   (the dialog itself) but not the ::backdrop pseudo-element, so it
   needs its own line here. */
@media (prefers-reduced-motion: reduce) {
  .lightbox::backdrop { transition-duration: 0.01ms !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-left: 0; }
  /* Photo first on phones and tablets: a short band above the words,
     cropped the same way as the desktop photo so the clutter at its
     foot never shows. `order` keeps the DOM (and reading order) with
     the words first, only the paint order moves. */
  .hero-figure { order: -1; }
  .hero-text {
    padding: 2.25rem 1.5rem 3.5rem;
    min-height: 0;
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-sub { max-width: 46ch; }
  .hero-photo { height: clamp(220px, 38svh, 420px); min-height: 0; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .signs-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .job { grid-template-columns: 1fr; gap: 1.2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
  .reviews-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  h3 { font-size: 1.4rem; }
  .signs   { padding: 2.75rem 0; }
  .services { padding: 3rem 0; }
  .work    { padding: 2.75rem 0 3rem; }
  .about   { padding: 3rem 0; }
  .reviews { padding: 3rem 0; }
  .process { padding: 3rem 0 1.5rem; }
  .contact { padding: 3rem 0; }
  .hero-text { padding: 2.25rem 1.5rem 2.5rem; }
  .hero-sub { font-size: 1.0625rem; margin-bottom: 1.6rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .services h2, .work h2, .reviews h2, .process h2 { margin-bottom: 1.6rem; }
  .process-list { gap: 1.75rem; }
  .signs h2 { margin-bottom: 1.2rem; }
  .signs-list li { margin-bottom: 0.6rem; }
  .signs-prose p { margin-bottom: 0.9rem; }
  .job { padding: 1.5rem 0; }
  /* Same specificity as the desktop alternating rule (two classes), so
     this later declaration wins: every row is image first on phones. */
  .job-media-right .job-media { order: -1; }
  .job-media-right .job-body { order: 0; }
  .about-facts li { padding: 0.7rem 0 0.7rem 1.9rem; }
  .about-lead { margin-bottom: 1.3rem; }
  .reviews-grid { gap: 1.5rem; }
  .reviews-foot { margin-top: 2rem; padding-top: 1.2rem; }
  .shot-wide { margin-bottom: 1.75rem; }
  .shot-wide img { height: 210px; }
  .grid-shots { gap: 1.15rem 0.85rem; }
  .work-more { margin-top: 1.8rem; }
  .shot figcaption { font-size: 0.8125rem; margin-top: 0.45rem; }
  .contact-alts .btn { flex: 1 1 100%; }

  /* The number should never be 9,000 pixels away on a phone */
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 120;
  }
  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--white);
  }
  .mb-call { background: var(--brick); }
  .mb-wa   { background: var(--ink); }
  body { padding-bottom: 3.5rem; }
}

/* ── NAV: menu button below 1100px, so the two-line lockup and five
   labels (plus Contact) always have room without wrapping. ── */
@media (max-width: 1099px) {
  /* A shorter, two-line lockup still needs less height than the old
     one-line name, but the 44px hamburger tap target is the tallest
     thing in the row: trim the row's own padding so the header still
     clears 64px on a small phone. */
  .nav-inner { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  nav.scrolled .nav-inner { padding-top: 0.35rem; padding-bottom: 0.35rem; }

  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--lime);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 1.5rem 1.25rem;
    /* Closed by default: off-screen and invisible to pointer and
       keyboard alike, not just painted transparent. */
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1),
                visibility 0s linear 0.3s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.25s cubic-bezier(0.23, 1, 0.32, 1),
                visibility 0s linear 0s;
  }
  .nav-links li { border-top: 1px solid var(--rule); }
  /* At least a 48px row, tap-target width, not just the text's own height. */
  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.6rem 0;
    border-bottom: none;
  }
  .nav-links .nav-cta { justify-content: center; margin-top: 0.85rem; padding: 0.85rem 1rem; }
  .nav-links li:has(.nav-cta) { border-top: none; }
  .hamburger { display: flex; }
}

/* While the menu is open, the sticky call bar would double up the
   phone button that is now sitting inside the panel: hide it. */
body.hide-mobile-bar .mobile-bar { transform: translateY(100%); }

/* Respect a request for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Belt and braces: site.js already skips the reveal-on-scroll effect
     under reduced motion, but a static override here means no photo is
     ever left mid-fade even if that check is somehow bypassed. */
  .reveal-pending {
    opacity: 1 !important;
    transform: none !important;
  }
}
