/* KM Home Improvement — shared styles */
:root {
  --ink: #1b1d1c;
  --ink-2: #2a2d2b;
  --charcoal: #141615;
  --cream: #f3f0e9;
  --cream-2: #e9e4d9;
  --paper: #fbfaf6;
  --red: #b3262b;
  --red-dark: #8f1d21;
  --steel: #6e7976;
  --muted: #5d625f;
  --line: rgba(27, 29, 28, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -18px rgba(20, 22, 21, 0.35);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section { padding: 112px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(36px, 5vw, 60px); margin-top: 14px; max-width: 14ch; }
.section-head p { max-width: 42ch; color: var(--muted); }
.accent { color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: 0.02em; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.site-header.solid, .site-header.always-solid {
  background: rgba(20, 22, 21, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-dark);
  padding: 10px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(255,255,255,.82); text-decoration: none; font-size: 14px; font-weight: 500;
  letter-spacing: .04em; transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.nav-phone svg { width: 16px; height: 16px; color: var(--red); }
.nav-cta .btn { padding: 11px 20px; font-size: 14px; }
.menu-toggle {
  display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer;
}
.menu-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero {
  position: relative; min-height: clamp(640px, 56.25vw, 100svh); display: flex; align-items: flex-end;
  color: #fff; background: var(--charcoal); overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg { background: #000 url(/images/film-poster.jpg) center / cover no-repeat; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; filter: brightness(.82) saturate(.85); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,15,15,.9) 0%, rgba(14,15,15,.72) 40%, rgba(14,15,15,.25) 75%, rgba(14,15,15,.15) 100%),
    linear-gradient(0deg, rgba(14,15,15,.9) 0%, rgba(14,15,15,0) 45%),
    linear-gradient(180deg, rgba(14,15,15,.6) 0%, rgba(14,15,15,0) 20%),
    rgba(14,15,15,.25);
  pointer-events: none;
}
.hero-inner { padding-top: 160px; padding-bottom: 56px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(44px, 7vw, 100px); max-width: 12.5ch; margin: 22px 0 26px; letter-spacing: -0.04em; }
.hero-lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 46ch; color: rgba(255,255,255,.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-license {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 22px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(14,15,15,.42); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 12.5px; letter-spacing: .05em; color: rgba(255,255,255,.72);
}
.hero-license svg { width: 17px; height: 17px; color: #fff; background: var(--red); border-radius: 50%; padding: 3px; box-sizing: content-box; flex-shrink: 0; }
.hero-license .hl-title { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; color: #fff; }
.hero-license .hl-nums { display: inline-flex; flex-wrap: wrap; gap: 2px 0; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.22); }
.hero-license .hl-nums span + span::before { content: "\00b7"; margin: 0 7px; color: rgba(255,255,255,.4); }
.hero-strip {
  margin-top: 72px; padding-top: 26px; border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.hero-strip span { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 10px; }
.hero-strip span::before { content: ""; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); flex-shrink: 0; }

/* Services */
.services { background: var(--cream); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink);
  color: #fff; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none; isolation: isolate;
}
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.service::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,15,15,.92) 0%, rgba(14,15,15,.35) 55%, rgba(14,15,15,.05) 100%); }
.service:hover img { transform: scale(1.06); }
.service-body { padding: 28px; }
.service-num { font-family: var(--display); font-size: 13px; color: #fff; font-weight: 700; letter-spacing: .12em; display: inline-flex; align-items: center; gap: 8px; }
.service-num::before { content: ""; width: 18px; height: 2px; background: var(--red); }
.service h3 { font-size: 28px; margin: 8px 0 10px; }
.service p { color: rgba(255,255,255,.78); font-size: 15.5px; max-width: 34ch; }
.service-noimg { background: var(--ink-2); }
.service-noimg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 22px);
}
.service-noimg .service-icon { position: absolute; top: 28px; left: 28px; width: 52px; height: 52px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.service-noimg .service-icon svg { width: 24px; height: 24px; }

/* Before / after */
.transform { background: var(--charcoal); color: #fff; }
.transform .section-head p { color: rgba(255,255,255,.7); }
.ba-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.ba {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  user-select: none; -webkit-user-select: none; touch-action: pan-y; background: #000;
  --pos: 50%;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff;
  transform: translateX(-1px); pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--red); display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.4);
}
.ba-knob svg { width: 24px; height: 24px; color: #fff; }
.ba-label {
  position: absolute; top: 18px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; background: rgba(14,15,15,.7); color: #fff; pointer-events: none;
}
.ba-label.before { left: 18px; }
.ba-label.after { right: 18px; background: var(--red); }
.ba input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-copy h3 { font-size: clamp(30px, 3.4vw, 44px); margin: 16px 0 18px; }
.ba-copy p { color: rgba(255,255,255,.72); margin-bottom: 28px; }
.ba-copy ul { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 12px; }
.ba-copy li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.88); }
.ba-copy li svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; margin-top: 3px; }

/* Process */
.process { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 34px 28px 10px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { font-family: var(--display); font-size: 64px; font-weight: 700; color: var(--cream-2); line-height: 1; letter-spacing: -0.04em; }
.step h3 { font-size: 22px; margin: 18px 0 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Work strip */
.work-strip { background: var(--cream); }
.work-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 16px; }
.work-grid a { position: relative; border-radius: var(--radius); overflow: hidden; display: block; }
.work-grid a:first-child { grid-row: span 2; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.work-grid a:hover img { transform: scale(1.05); }
.work-grid span {
  position: absolute; left: 14px; bottom: 14px; padding: 7px 13px; border-radius: 999px;
  background: rgba(251,250,246,.94); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* Quote */
.quote { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.quote::before {
  content: ""; position: absolute; right: -180px; top: -180px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(179,38,43,.35), transparent 65%);
}
.quote-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; position: relative; }
.quote h2 { font-size: clamp(40px, 5.4vw, 68px); margin: 16px 0 22px; max-width: 12ch; }
.quote-lede { color: rgba(255,255,255,.72); max-width: 40ch; margin-bottom: 40px; }
.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--line-dark); text-decoration: none; transition: border-color .2s, background .2s;
}
a.contact-item:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); }
.contact-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.contact-icon svg { width: 20px; height: 20px; }
.contact-item small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 600; }
.contact-item strong { font-size: 19px; font-weight: 600; }

.form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 26px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); width: 100%; transition: border-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.form-card .btn { width: 100%; margin-top: 6px; padding: 17px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-status { margin-top: 14px; padding: 14px; border-radius: 10px; background: var(--cream); font-size: 15px; display: none; }
.form-status.show { display: block; }

/* Footer */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.7); padding: 72px 0 34px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer-grid img { height: 72px; width: auto; margin-bottom: 20px; }
.footer-grid h4 { font-family: var(--body); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; letter-spacing: .06em; }

/* Sticky mobile call bar */
.mobile-bar { display: none; }

/* Page hero (gallery) */
.page-hero { background: var(--charcoal); color: #fff; padding: 170px 0 80px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(179,38,43,.3), transparent 65%);
}
.page-hero h1 { font-size: clamp(48px, 7vw, 96px); margin: 18px 0 22px; letter-spacing: -0.04em; }
.page-hero p { color: rgba(255,255,255,.72); max-width: 52ch; font-size: 18px; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  border: 1.5px solid var(--line); background: transparent; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); transition: all .2s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter .count { opacity: .55; margin-left: 4px; font-weight: 500; }
.gallery-grid { columns: 3 320px; column-gap: 18px; }
.g-item {
  break-inside: avoid; margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--ink); cursor: zoom-in; display: block; width: 100%; border: 0; padding: 0; text-align: left;
}
.g-item img { width: 100%; height: auto; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.g-item:hover img { transform: scale(1.04); opacity: .9; }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff;
  background: linear-gradient(0deg, rgba(14,15,15,.85), transparent);
}
.g-cap small { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); font-weight: 700; }
.g-cap strong { display: block; font-family: var(--display); font-size: 20px; letter-spacing: -0.01em; margin-top: 2px; }
.g-empty {
  break-inside: avoid; margin: 0 0 18px; border-radius: var(--radius); border: 1.5px dashed rgba(27,29,28,.25);
  padding: 44px 26px; text-align: center; color: var(--muted); background: var(--paper);
}
.g-empty strong { display: block; font-family: var(--display); color: var(--ink); font-size: 22px; margin-bottom: 6px; }
.g-empty svg { width: 36px; height: 36px; color: var(--red); margin: 0 auto 14px; }
.ba-section { background: var(--paper); }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ba-pair h3 { font-size: 22px; margin-top: 16px; }
.ba-feature { grid-column: 1 / -1; }
.ba-feature .ba { aspect-ratio: 16 / 10; }
@media (max-width: 860px) { .ba-feature .ba { aspect-ratio: 4 / 3; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,11,11,.94); display: none;
  align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: #fff; margin-top: 16px; text-align: center; }
.lightbox figcaption small { display: block; color: rgba(255,255,255,.6); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 50px; height: 50px;
  border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.lb-btn:hover { background: var(--red); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1020px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .ba-grid, .quote-grid { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-strip { grid-template-columns: repeat(3, 1fr); }
  .nav-phone span { display: none; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn, .nav-phone { display: none; }
  .menu-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--charcoal);
    padding: 8px 24px 24px; border-bottom: 1px solid var(--line-dark);
  }
  .nav.open .nav-links li { width: 100%; }
  .nav.open .nav-links a { display: block; padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line-dark); }
  .site-header.menu-open { background: var(--charcoal); }
  .work-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 200px 200px; }
  .work-grid a:first-child { grid-column: span 2; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .ba-pair { grid-template-columns: 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(20,22,21,.96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line-dark);
  }
  .mobile-bar .btn { padding: 13px 10px; font-size: 14.5px; }
  body { padding-bottom: 76px; }
  .lightbox { padding: 70px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 36px; }
  .service-grid { grid-template-columns: 1fr; }
  .service { min-height: 340px; }
  .hero-inner { padding-top: 120px; padding-bottom: 40px; }
  .hero h1 { font-size: 40px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-strip { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .steps { border-top: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 26px 20px; }
  .brand img { height: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .page-hero { padding: 130px 0 60px; }
  .work-grid { grid-template-rows: 240px 160px 160px; gap: 10px; }
}

/* Gallery before/after list */
.ba-wrap { margin-bottom: 56px; }
.ba-wrap-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ba-wrap-head p { color: var(--muted); font-size: 15px; }
.ba-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ba-item h3 { font-size: 22px; margin-top: 14px; }
.ba-item h3 small { display: block; font-family: var(--body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 4px; }
.ba-list .ba-feature { grid-column: 1 / -1; }
.ba-list .ba-feature .ba { aspect-ratio: 16 / 10; }
@media (max-width: 860px) { .ba-list { grid-template-columns: 1fr; } .ba-list .ba-feature .ba { aspect-ratio: 4 / 3; } }

/* Hero video controls */
.film-toggle {
  position: absolute; right: 24px; bottom: 24px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(14,15,15,.5); color: #fff; display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, opacity .3s; opacity: .7;
}
.film-toggle:hover, .film-toggle:focus-visible { background: var(--red); opacity: 1; }
.film-toggle svg { width: 18px; height: 18px; }
.film-toggle .i-play, .film-frame.paused .film-toggle .i-pause { display: none; }
.film-frame.paused .film-toggle .i-play { display: block; }

/* Phones & small tablets: show the whole video uncropped, text underneath */
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; }
  .hero::before { display: none; }
  .hero-bg { position: relative; inset: auto; z-index: 0; margin-top: 64px; aspect-ratio: 16 / 9; }
  .hero-bg::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(0deg, var(--charcoal), transparent); pointer-events: none; }
  .hero-video { object-fit: contain; }
  .hero-inner { padding-top: 28px; padding-bottom: 48px; }
  .film-toggle { right: 12px; bottom: auto; top: calc(64px + 12px); width: 36px; height: 36px; }
  .site-header:not(.solid) { background: var(--charcoal); }
}

/* Licenses */
.license-badge { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: rgba(255,255,255,.85); }
.license-icon { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); display: grid; place-items: center; flex-shrink: 0; color: var(--red); }
.license-icon svg { width: 22px; height: 22px; }
.license-badge strong { display: block; font-size: 15.5px; font-weight: 600; color: #fff; }
.license-badge small { display: block; font-size: 13.5px; color: rgba(255,255,255,.6); letter-spacing: .02em; margin-top: 2px; }
.footer-licenses { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; letter-spacing: .04em; color: rgba(255,255,255,.62); }
.footer-licenses strong { color: #fff; font-weight: 600; }
.footer-licenses + .footer-bottom { margin-top: 18px; }
.license-badge small span + span::before { content: "\00b7"; margin: 0 7px; }
@media (max-width: 860px) {
  .license-badge { align-items: flex-start; }
  .license-badge small span { display: block; }
  .license-badge small span + span::before { content: none; }
}

/* ===== Phone-only layout ===== */
.phone-only { display: none; }
video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
video::-webkit-media-controls { display: none !important; }
@media (max-width: 860px) {
  .desk-only { display: none !important; }
  .phone-only { display: block; }

  /* Header a fixed 64px tall so the video sits right under it */
  .site-header, .site-header.solid { padding: 10px 0; }
  .nav { height: 44px; }
  .menu-toggle svg { display: block; }
  .brand img { height: 44px; }
  .film-toggle { top: calc(64px + 56.25vw - 46px); right: 10px; width: 36px; height: 36px; }

  /* Services: compact tappable list */
  .services.section { padding: 64px 0; }
  .services .section-head { margin-bottom: 20px; }
  .service-grid { display: block; border-top: 1px solid var(--line); }
  .service {
    min-height: 0; background: none; color: var(--ink); border-radius: 0; overflow: visible;
    border-bottom: 1px solid var(--line); flex-direction: row; justify-content: flex-start;
  }
  .service img, .service p, .service-noimg .service-icon, .service-noimg::before { display: none; }
  .service::after {
    content: ""; position: static; inset: auto; z-index: auto; background: none;
    width: 9px; height: 9px; border-top: 2px solid var(--red); border-right: 2px solid var(--red);
    transform: rotate(45deg); margin: auto 6px auto auto; flex-shrink: 0;
  }
  .service-body { padding: 17px 0; display: flex; align-items: center; gap: 14px; }
  .service-num { color: var(--red); font-size: 13px; }
  .service-num::before { display: none; }
  .service h3 { font-size: 19px; margin: 0; letter-spacing: -0.01em; }
  .service:active { background: var(--cream-2); }

  /* Before/after: tighter copy */
  .transform.section { padding: 56px 0 64px; }
  .ba-grid { gap: 26px; }
  .ba-copy h3 { font-size: 30px; margin: 10px 0 8px; }
  .ba-copy p { margin-bottom: 20px; font-size: 16px; }

  /* How we work: compact numbered list */
  .process.section { padding: 64px 0; }
  .process .section-head { margin-bottom: 18px; }
  .steps { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
  .step, .step + .step, .step:nth-child(3), .step:nth-child(n+3) {
    padding: 14px 0; border-left: 0; border-top: 0; border-bottom: 1px solid var(--line);
    display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; align-items: baseline;
  }
  .step-num { font-size: 15px; color: var(--red); letter-spacing: 0; grid-row: span 2; }
  .step h3 { font-size: 18px; margin: 0 0 2px; }
  .step p { font-size: 14.5px; grid-column: 2; }
}

[hidden] { display: none !important; }

/* Hero license line — phone */
@media (max-width: 860px) {
  .hero-license { border-radius: 14px; padding: 10px 14px; gap: 6px 10px; margin-top: 18px; }
  .hero-license .hl-nums { flex-basis: 100%; flex-wrap: nowrap; white-space: nowrap; padding-left: 0; border-left: 0; font-size: 11.5px; letter-spacing: .01em; }
  .hero-license .hl-nums span + span::before { margin: 0 5px; }
}
