/* =========================================================
   BKR General Construction — Site Styles
   Theme: minimal | Animation: slide
   ---------------------------------------------------------
   TABLE OF CONTENTS
   01. Design tokens
   02. Base / reset
   03. Layout helpers
   04. Buttons & links
   05. Header & navigation
   06. Hero
   07. Section headings
   08. Services (cards + detail)
   09. Features / process
   10. Testimonials
   11. Service area & CTA band
   12. About
   13. Contact & form
   14. Utility pages (404 / thank you)
   15. Footer
   16. Slide animations
   17. Responsive
   18. Photos (hero media, cards, framed photos)
   19. Portfolio (gallery, before/after, lightbox)
   20. Reviews carousel
   21. Home hero (scrolling photos behind a see-through header)
   22. Steps marquee (Design → Final Walkthrough strip, scrolls left)
   ========================================================= */

/* ---------- 01. Design tokens ---------- */
:root {
  --red: #ee3925;          /* Main brand color */
  --red-ink: #c42a17;      /* Darker red for small text on white (AA contrast) */
  --black: #0b0b0b;        /* Secondary brand color */
  --ink: #1b1b1b;          /* Body text */
  --muted: #595959;        /* Secondary text */
  --line: #e7e5e2;         /* Hairlines & borders */
  --soft: #f6f5f3;         /* Accent: warm off-white section background */
  --white: #ffffff;        /* Page background */

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --space: clamp(64px, 9vw, 120px);
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 02. Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: clip (not hidden) so nothing can be scrolled sideways and the sticky header keeps working */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip; /* also on body: mobile Chrome ignores the root's clip when sizing the page */
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--black);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); font-weight: 800; }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
a { color: inherit; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--black); color: var(--white);
  padding: 10px 16px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 03. Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--black); color: #d9d9d9; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 46ch; }

/* ---------- 04. Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1rem 1.6rem;
  font: 600 1rem/1 var(--font-sans);
  letter-spacing: .01em;
  text-decoration: none;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background: var(--black); color: var(--white);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--red); border-color: var(--red); color: var(--black); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--light:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; gap: .45em; align-items: center;
  color: var(--red-ink); font-weight: 600; text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 05. Header & navigation ---------- */
.topbar { background: var(--black); color: #cfcfcf; font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--red); }
.topbar__hours, .topbar__contact { margin: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; height: 46px; }

.nav ul { list-style: none; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav a {
  position: relative; text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--black);
  padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--red);
  transition: right .3s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .btn { padding: .8rem 1.2rem; font-size: .9375rem; color: var(--white); }
.nav .btn:hover { color: var(--black); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--black); margin: 6px 0; transition: transform .3s var(--ease), opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 06. Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--red); }
.hero h1 { margin-bottom: .35em; }
.hero h1 .accent { color: var(--red); }
.hero .lead { margin-bottom: 2rem; }



/* Page hero (inner pages) */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); max-width: 18ch; }
.breadcrumbs { font-size: .875rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #b5b5b5; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red-ink); }

/* ---------- 07. Section headings ---------- */
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.section--dark .section-head p, .section--dark .eyebrow { color: #bdbdbd; }

/* ---------- 08. Services ---------- */
.service-card {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px 28px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; left: -1px; top: -1px; height: 3px; width: 0; background: var(--red);
  transition: width .4s var(--ease);
}
.service-card:hover { border-color: #d6d3cf; transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.25); }
.service-card:hover::before { width: calc(100% + 2px); }
.service-card__icon { width: 44px; height: 44px; color: var(--red); margin-bottom: 22px; }
.service-card p { color: var(--muted); font-size: 1rem; flex: 1; }
.service-card .link-arrow { margin-top: 6px; }

.service-index { position: sticky; top: 80px; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.service-index ul { list-style: none; display: flex; gap: 28px; overflow-x: auto; padding: 16px 0; scrollbar-width: none; }
.service-index ul::-webkit-scrollbar { display: none; }
.service-index a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--muted); }
.service-index a:hover { color: var(--red-ink); }

.service-detail { scroll-margin-top: 150px; padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); }
.service-detail:last-of-type { border-bottom: 0; }
.service-detail .split { align-items: center; }
.service-detail__num { font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: .9375rem; letter-spacing: .14em; margin-bottom: 14px; display: block; }
.service-detail__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.service-detail__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-detail__media:hover img { transform: scale(1.04); }
.service-detail:nth-of-type(even) .service-detail__media { order: -1; }
.service-detail h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 28px; }
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-bottom: 28px; }
.checklist li { position: relative; padding-left: 22px; font-size: 1rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--red); }

/* ---------- 09. Features / process ---------- */
.feature { padding-top: 26px; border-top: 2px solid var(--black); }
.feature__num { font-family: var(--font-display); color: var(--red); font-weight: 800; font-size: .875rem; letter-spacing: .14em; margin-bottom: 12px; display: block; }
.feature p { color: var(--muted); }
.section--dark .feature { border-top-color: var(--red); }
.section--dark .feature p { color: #bdbdbd; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.steps li { padding: 28px 22px 8px 0; border-top: 1px solid var(--line); position: relative; }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-display); font-weight: 800; color: var(--red); letter-spacing: .1em; font-size: .875rem; margin-bottom: 10px;
}
.steps li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.steps h3 { font-size: 1.125rem; }
.steps p { color: var(--muted); font-size: .9875rem; }

/* ---------- 10. Testimonials ---------- */
.review {
  margin: 0; padding: clamp(28px, 3.4vw, 40px); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.review__stars { color: var(--red); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 18px; }
.review blockquote { margin: 0 0 14px; }
.review blockquote p {
  font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700;
  color: var(--black); line-height: 1.3; margin: 0; letter-spacing: -0.01em;
}
.review__context { color: var(--muted); font-size: 1rem; flex: 1; }
.review figcaption { font-size: .9375rem; font-weight: 600; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 8px; }
.review figcaption span { display: block; color: var(--muted); font-weight: 400; font-size: .875rem; }
.reviews-cta { margin-top: 36px; text-align: center; }

/* ---------- 11. Service area & CTA band ---------- */
.areas { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.areas li { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.areas strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--black); margin-bottom: 4px; }
.areas span { color: var(--muted); font-size: .9875rem; }

.cta-band { background: var(--red); color: var(--black); padding: clamp(56px, 7vw, 96px) 0; overflow: hidden; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--black); margin: 0 0 .25em; max-width: 20ch; }
.cta-band p { margin: 0; font-size: 1.125rem; color: var(--black); }
.cta-band .btn:hover { background: var(--white); border-color: var(--white); color: var(--black); }

/* ---------- 12. About ---------- */
.about-quote {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.25; font-weight: 700;
  color: var(--black); border-left: 3px solid var(--red); padding-left: clamp(20px, 3vw, 36px); margin: 0;
}
.stat-row { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.stat-row strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); color: var(--red); line-height: 1; margin-bottom: 8px; }
.stat-row span { color: var(--muted); font-size: .9375rem; }

/* ---------- 13. Contact & form ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; border-top: 1px solid var(--line); }
.contact-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-list .label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 6px; }
.contact-list a, .contact-list .value { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; color: var(--black); text-decoration: none; }
.contact-list a:hover { color: var(--red-ink); }

.form-card { scroll-margin-top: 104px; background: var(--soft); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); }
.form-card h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 600; color: var(--black); }
.field label .req { color: var(--red-ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #d4d1cc; border-radius: var(--radius);
  padding: 14px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(238, 57, 37, .25); }
.form .btn { justify-self: start; cursor: pointer; }
.form__intro { color: var(--muted); }
.form__intro .req { color: var(--red-ink); }
.social.social--light { margin-top: 28px; }
.social.social--light a { border-color: var(--line); }
.form__note { font-size: .875rem; color: var(--muted); margin: 0; align-self: center; }
.honeypot { display: none; }

/* ---------- 14. Utility pages (404 / thank you) ---------- */
.utility { min-height: 64vh; display: flex; align-items: center; padding: var(--space) 0; }
.utility__code {
  font-family: var(--font-display); font-weight: 800; line-height: .9; letter-spacing: -0.05em;
  font-size: clamp(6rem, 20vw, 13rem); color: var(--red); margin: 0 0 12px;
}
.utility__icon { width: 96px; height: 96px; color: var(--red); margin-bottom: 28px; }
.utility p { max-width: 52ch; color: var(--muted); font-size: 1.125rem; }
.utility .btn-row { margin-top: 28px; }

/* ---------- 15. Footer ---------- */
.site-footer { background: var(--black); color: #b9b9b9; padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { display: inline-block; margin-bottom: 20px; } /* white-text logo sits directly on the black footer */
.footer-logo img { height: 96px; width: auto; }
.site-footer h2 { color: var(--white); font-size: .8125rem; text-transform: uppercase; letter-spacing: .16em; font-family: var(--font-sans); font-weight: 700; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #e6e6e6; text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #3a3a3a; border-radius: 50%; transition: background .25s, border-color .25s;
}
.social a:hover { background: var(--red); border-color: var(--red); color: var(--black); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #262626; margin-top: 56px; padding-top: 24px; font-size: .8125rem; color: #8f8f8f; }
.footer-bottom p { margin: 0; }
.footer-credit a { color: #e6e6e6; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(238, 57, 37, .7); }
.footer-credit a:hover { color: var(--red); }

/* ---------- 16. Slide animations ---------- */
/* Page enter: content slides in from the right. Page exit: slides out to the left. */
@keyframes page-slide-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes page-slide-out { to { opacity: 0; transform: translateX(-40px); } }
main { animation: page-slide-in .6s var(--ease) both; }
.is-leaving main { animation: page-slide-out .28s ease-in forwards; }

/* Section reveal on scroll — only hidden when JS is running (html.js) */
.js [data-slide] { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: transform, opacity; }
.js [data-slide="up"] { transform: translateY(48px); }
.js [data-slide="left"] { transform: translateX(-64px); }
.js [data-slide="right"] { transform: translateX(64px); }
.js [data-slide].is-visible { opacity: 1; transform: none; }
.js [data-delay="1"] { transition-delay: .1s; }
.js [data-delay="2"] { transition-delay: .2s; }
.js [data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main, .is-leaving main { animation: none; }
  .js [data-slide] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  /* Menu panel hangs below the sticky header. The panel clips its sliding list,
     so the hidden menu never sticks out past the screen edge (which made phones widen the page). */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    overflow: hidden; visibility: hidden; transition: visibility 0s linear .4s;
  }
  .nav-open .nav { visibility: visible; transition-delay: 0s; }
  .nav ul {
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(0,0,0,.4);
    transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .nav-open .nav ul { transform: none; }
  .nav li a:not(.btn) { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
  .nav li a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; justify-content: center; }

  .split, .contact-grid { grid-template-columns: 1fr; }
  .service-detail:nth-of-type(even) .service-detail__media { order: 0; }
  .grid--2 { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .topbar__hours { display: none; }
}
@media (max-width: 600px) {
  .grid--3, .steps, .stat-row { grid-template-columns: 1fr; }
  .form, .checklist { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 40px; }
  .topbar .wrap { justify-content: center; }
  .topbar__email { display: none; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- 18. Photos (hero media, cards, framed photos) ---------- */
.page-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.page-hero__media { position: relative; padding: 0 20px 20px 0; }
.page-hero__media::after { content: ""; position: absolute; right: 0; bottom: 0; width: 45%; height: 55%; border: 2px solid var(--red); z-index: 0; }
.page-hero__media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }

.service-card--photo { padding-top: 0; overflow: hidden; }
.service-card__media { margin: 0 -28px 24px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card--photo:hover .service-card__media img { transform: scale(1.06); }
.service-card--photo::before { z-index: 2; }
.service-card__media { position: relative; }
.service-card__tag {
  position: absolute; z-index: 1; top: 14px; left: 14px; padding: 6px 10px;
  background: var(--red); color: var(--black); font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.service-card--all { background: var(--soft); }

.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row h2 { margin-bottom: 0; }
.work-strip { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(220px, 26vw, 340px); gap: clamp(12px, 1.6vw, 20px); }
.work-strip__item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--soft); color: var(--white); text-decoration: none; }
.work-strip__item--wide { grid-column: span 2; }
.work-strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.work-strip__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 45%); }
.work-strip__item span {
  position: absolute; z-index: 1; left: 20px; bottom: 18px; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
  display: inline-flex; align-items: center; gap: 10px;
}
.work-strip__item span::before { content: ""; width: 22px; height: 2px; background: var(--red); transition: width .35s var(--ease); }
.work-strip__item:hover img { transform: scale(1.05); }
.work-strip__item:hover span::before { width: 36px; }

.framed-photo { position: relative; padding: 20px 20px 0 0; margin: 0; }
.framed-photo::before { content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 60%; background: var(--red); }
.framed-photo img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.framed-photo figcaption { position: relative; margin-top: 14px; font-size: .9375rem; color: var(--muted); border-left: 3px solid var(--red); padding-left: 12px; }
/* Centered page hero (no photo) */
.page-hero--centered { text-align: center; }
.page-hero--centered h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.page-hero--centered .lead { margin-left: auto; margin-right: auto; max-width: 56ch; }
.page-hero--centered .eyebrow { justify-content: center; }
.page-hero--centered .eyebrow::after { content: ""; width: 32px; height: 2px; background: var(--red); }
.page-hero--centered .breadcrumbs ol { justify-content: center; }

.utility__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.utility__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border-bottom: 6px solid var(--red); }

/* ---------- 19. Portfolio (gallery, before/after, lightbox) ---------- */
.portfolio-section { scroll-margin-top: 140px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(14px, 2vw, 24px); }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery__item { margin: 0; }
.gallery__item a { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--line); cursor: zoom-in; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.gallery__item a::after {
  content: "+"; position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: var(--black); font: 700 1.5rem/40px var(--font-sans); text-align: center;
  transform: translateX(70px); transition: transform .4s var(--ease);
}
.gallery__item a:hover img, .gallery__item a:focus-visible img { transform: scale(1.04); }
.gallery__item a:hover::after, .gallery__item a:focus-visible::after { transform: none; }
.gallery__item figcaption { font-size: .9375rem; font-weight: 600; color: var(--black); padding-top: 10px; }

.compare-card { margin: 0; }
.compare { --pos: 50%; position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1920 / 790; background: var(--line); user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); pointer-events: none; }
.compare__handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--red); color: var(--black); font: 700 1.25rem/48px var(--font-sans); text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(.compare__range:focus-visible) .compare__handle::after { outline: 3px solid var(--white); outline-offset: 2px; }
.compare__tag {
  position: absolute; top: 16px; padding: 6px 12px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(11, 11, 11, .8); color: var(--white); pointer-events: none;
}
.compare__tag--before { left: 16px; }
.compare__tag--after { right: 16px; background: var(--red); color: var(--black); }
.compare-card figcaption { display: flex; gap: 8px 32px; flex-wrap: wrap; align-items: baseline; padding-top: 20px; }
.compare-card figcaption h3 { margin: 0; }
.compare-card figcaption p { margin: 0; color: var(--muted); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(8, 8, 8, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(1200px, 88vw); text-align: center; animation: page-slide-in .4s var(--ease); }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox figcaption { color: var(--white); padding-top: 14px; font-weight: 600; }
.lightbox button {
  position: absolute; border: 0; cursor: pointer; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--white); font-size: 1.5rem; line-height: 1; transition: background .25s;
}
.lightbox button:hover { background: var(--red); color: var(--black); }
.lightbox__close { top: 20px; right: 20px; font-size: 2rem !important; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .page-hero__grid, .utility__grid { grid-template-columns: 1fr; }
  .utility__media { display: none; }
  .work-strip { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .work-strip__item--wide { grid-column: span 2; }
  .compare { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .gallery, .gallery--2 { grid-template-columns: 1fr; }
  .work-strip { grid-template-columns: 1fr; }
  .work-strip__item--wide { grid-column: auto; }
  .lightbox__nav--prev, .lightbox__nav--next { top: auto; bottom: 20px; transform: none; }
}

/* ---------- 20. Reviews carousel ---------- */
/* Without JS: a horizontally scrollable row. With JS (html.js): an auto-scrolling loop. */
.carousel { position: relative; }
.carousel__viewport {
  overflow-x: auto; scrollbar-width: none; padding: 8px 0 12px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.js .carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; gap: clamp(16px, 2vw, 24px); width: max-content; padding: 0 var(--gutter); will-change: transform; }
.carousel .review { width: clamp(280px, 32vw, 420px); flex: 0 0 auto; }
.carousel__btn {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--black);
  background: var(--white); color: var(--black); font: 700 1.25rem/1 var(--font-sans); cursor: pointer;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.35);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.carousel__btn:hover { background: var(--red); border-color: var(--red); color: var(--black); }
.carousel__btn--prev { left: clamp(12px, 2vw, 32px); }
.carousel__btn--next { right: clamp(12px, 2vw, 32px); }
html:not(.js) .carousel__btn { display: none; }
@media (max-width: 600px) {
  .carousel__btn { width: 44px; height: 44px; top: auto; bottom: -56px; transform: none; }
  .carousel__btn--prev { left: calc(50% - 52px); }
  .carousel__btn--next { right: calc(50% - 52px); }
  .reviews-section .reviews-cta { margin-top: 84px; }
}

/* ---------- 21. Home hero (scrolling photos behind a see-through header) ---------- */
/* Header: see-through while over the hero, solid white once main.js adds .is-solid
   (scrolled past the hero, or the phone menu is open). */
.has-hero-bg .site-header { transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.has-hero-bg .site-header:not(.is-solid) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: rgba(255, 255, 255, .18); }
.has-hero-bg .site-header:not(.is-solid) .nav-toggle span { background: var(--white); }
.has-hero-bg .site-header.is-solid { box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .5); }
@media (min-width: 861px) {
  .has-hero-bg .site-header:not(.is-solid) .nav a:not(.btn) { color: var(--white); }
}

/* Hero pulls up under the sticky header (81px) so the photos show behind it */
.hero--bg {
  position: relative; isolation: isolate; overflow: hidden; background: var(--black);
  margin-top: -81px; min-height: min(88vh, 820px);
  display: flex; align-items: center; padding: 141px 0 72px;
}
.hero--bg > .wrap { display: flex; justify-content: center; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg__track { display: flex; height: 100%; width: max-content; animation: hero-pan 300s linear infinite; } /* one full loop of 12 photos = 5 minutes */
.hero-bg__track img { height: 100%; width: auto; max-width: none; aspect-ratio: 4 / 3; object-fit: cover; }
@keyframes hero-pan { from { transform: translateX(-50%); } to { transform: translateX(0); } } /* drifts right */
.hero-bg__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 22%, rgba(0,0,0,.2) 75%, rgba(0,0,0,.45) 100%),
              radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%, rgba(0,0,0,.1) 70%);
}

/* Centered call-to-action panel */
.hero-panel {
  width: 100%; max-width: 1120px; text-align: center;
  padding: clamp(32px, 4vw, 52px) clamp(24px, 5vw, 72px);
  background: rgba(11, 11, 11, .58); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-top: 4px solid var(--red);
}
.hero-panel .eyebrow { justify-content: center; color: #e0e0e0; }
.hero-panel .eyebrow::after { content: ""; width: 32px; height: 2px; background: var(--red); }
.hero-panel h1 { color: var(--white); font-size: clamp(2.5rem, 4.6vw, 4.25rem); margin-bottom: .3em; }
.hero-panel__where {
  display: block; white-space: normal; margin-top: .55em;
  font-family: var(--font-sans); font-size: clamp(1rem, 1.6vw, 1.375rem); font-weight: 600;
  line-height: 1.35; letter-spacing: 0; color: #f2f2f2;
}
.hero-panel .lead { color: #e6e6e6; max-width: 72ch; margin: 0 auto 2rem; }
.hero-panel .btn-row { justify-content: center; }
.btn--red { background: var(--red); border-color: var(--red); color: var(--black); }
.btn--red:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--outline-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline-light:hover { background: var(--white); border-color: var(--white); color: var(--black); }
@media (min-width: 1024px) { .hero-panel h1 { white-space: nowrap; } }
@media (max-width: 860px) {
  .hero--bg { min-height: 0; padding: 112px 0 40px; }
  .hero-panel { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg__track { animation: none; } /* shows a still photo */
}

/* ---------- 22. Steps marquee (Design → Final Walkthrough strip, scrolls left) ---------- */
.do-it-all { border-bottom: 1px solid var(--line); background: var(--white); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: steps-marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
/* Each copy is at least as wide as the screen, so the loop never shows a gap */
.marquee__list { list-style: none; display: flex; justify-content: space-around; min-width: 100vw; margin: 0; padding: 0; }
.marquee__list li {
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: clamp(18px, 2.4vw, 26px) clamp(24px, 3.4vw, 48px);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.0625rem, 1.6vw, 1.375rem); color: var(--black);
}
.marquee__list li span { color: var(--red-ink); font-family: var(--font-sans); font-size: .75rem; letter-spacing: .14em; }
.marquee__list li::after { content: ""; width: 7px; height: 7px; margin-left: clamp(24px, 3.4vw, 48px); background: var(--red); transform: rotate(45deg); }
@keyframes steps-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } } /* drifts left */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; width: auto; }
  .marquee__list { min-width: 0; width: 100%; flex-wrap: wrap; justify-content: center; }
  .marquee__list[aria-hidden="true"] { display: none; }
  .marquee__list li:last-child::after { display: none; }
}
