:root {
  --ink: #18222b;
  --ink-2: #24313b;
  --paper: #f7f4ef;
  --card: #ffffff;
  --tint: #efe9df;
  --line: #e2dacd;
  --text: #1f2a33;
  --muted: #5c6670;
  --accent: #c58436;
  --accent-hover: #a96d26;
  --accent-ink: #1a1206;
  --before: #8a5a44;
  --progress: #4d6b80;
  --rough: #7a5c8f;
  --build: #8a6a2c;
  --after: #3f7a5a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(24, 34, 43, .12);
  --head: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow {
  font: 700 .78rem/1 var(--head);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .6rem 1rem; font-size: .92rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-outline { color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24, 34, 43, .94);
  backdrop-filter: blur(10px);
  color: #fff;
}
.header-row { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 44px; height: 44px; flex: none; box-shadow: 0 0 0 1px rgba(211, 154, 79, .35); border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; font-family: var(--head); line-height: 1.05; white-space: nowrap; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; color: #fff; }
.brand-name b { font-weight: 900; color: #d39a4f; }
.brand-sub { font-weight: 700; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: #d39a4f; margin-top: .3rem; }
.nav { display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--accent); }

.menu-btn {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .08); cursor: pointer;
  place-items: center;
}
.menu-btn svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.menu-btn .menu-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-close { display: inline; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 20, 26, .85) 0%, rgba(14, 20, 26, .55) 45%, rgba(14, 20, 26, .1) 80%),
    linear-gradient(0deg, rgba(14, 20, 26, .6) 0%, transparent 40%);
}
.hero-content { position: relative; padding-block: 120px 72px; }
.hero h1 { max-width: 13ch; }
.hero .lede { max-width: 34rem; font-size: 1.15rem; color: rgba(255, 255, 255, .88); }
.hero .eyebrow { color: #e3ab64; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Trust strip */
.strip { background: var(--ink); color: #fff; border-top: 1px solid rgba(255, 255, 255, .08); }
.strip-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-item { display: flex; align-items: center; gap: .9rem; padding: 1.5rem 1.2rem; }
.strip-item + .strip-item { border-left: 1px solid rgba(255, 255, 255, .1); }
.strip-item svg { width: 40px; height: 40px; flex: none; padding: 9px; border-radius: 50%; background: rgba(227, 171, 100, .14); fill: none; stroke: #e3ab64; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.strip-item strong { display: block; font: 700 1rem/1.3 var(--head); }
.strip-item span { display: block; font-size: .88rem; color: rgba(255, 255, 255, .65); line-height: 1.4; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .eyebrow { color: #e3ab64; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }

/* Before / after slider */
.ba {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #222;
  user-select: none;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px;
  background: #fff;
  pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%;
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
  display: grid; place-items: center;
}
.ba-knob svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 52px; height: 100vh; }
.ba:has(.ba-range:focus-visible) .ba-knob { outline: 3px solid var(--accent); outline-offset: 3px; }
.ba-tag {
  position: absolute; top: 16px;
  padding: .4rem .8rem;
  border-radius: 999px;
  font: 700 .75rem/1 var(--head);
  letter-spacing: .12em; text-transform: uppercase;
  color: #fff;
  background: rgba(14, 20, 26, .72);
  pointer-events: none;
}
.ba-tag-before { left: 16px; }
.ba-tag-after { right: 16px; }

.ba-extra { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; margin-top: 2rem; }
.ba-extra figure { margin: 0; }
.ba-extra figure img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ba-extra figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.ba-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ba-list li { position: relative; padding-left: 1.9rem; font-weight: 500; }
.ba-list li::before {
  content: ""; position: absolute; left: 0; top: .32em;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%231a1206' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service svg {
  width: 44px; height: 44px; padding: 10px;
  border-radius: 12px;
  background: var(--ink);
  fill: none; stroke: #e3ab64; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 1rem;
}
.service p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Photo buttons shared by the slider extra, stages and project cards */
.zoom, .stage, .project-media button {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: #d9d3c9;
  border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in;
}
.zoom img, .stage img, .project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.zoom:hover img, .stage:hover img, .project-media button:hover img,
.zoom:focus-visible img, .stage:focus-visible img, .project-media button:focus-visible img { transform: scale(1.04); }

.tag {
  display: inline-block;
  padding: .35rem .6rem; border-radius: 6px;
  font: 700 .66rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.tag-before { background: var(--before); }
.tag-demo { background: var(--progress); }
.tag-rough { background: var(--rough); }
.tag-build { background: var(--build); }
.tag-after { background: var(--after); }

/* Bathroom stages */
.stages { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: stage; }
.stages li { position: relative; }
.stages li:not(:last-child)::after {
  content: ""; position: absolute; top: calc(50% - 60px); right: -15px; z-index: 2;
  width: 12px; height: 12px;
  border-top: 3px solid var(--accent); border-right: 3px solid var(--accent);
  transform: rotate(45deg);
}
.stage { aspect-ratio: 3 / 4; box-shadow: var(--shadow); }
.stage .tag { position: absolute; top: 12px; left: 12px; }
.stages h3 { margin: 1rem 0 .3rem; }
.stages p { color: var(--muted); font-size: .95rem; margin: 0; }
.stages-all { display: flex; width: fit-content; margin-inline: auto; }

/* Project filter pills */
.pills {
  display: inline-flex; gap: .3rem; padding: .3rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  margin-bottom: 1.8rem;
  max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  border: 0; background: transparent; cursor: pointer;
  padding: .6rem 1.1rem; border-radius: 999px;
  font: 600 .92rem/1 var(--body); color: var(--muted);
  white-space: nowrap;
}
.pill:hover { color: var(--ink); }
.pill.is-active { background: var(--ink); color: #fff; }
.pill .count { font-weight: 500; opacity: .55; margin-left: .15rem; }
.pill .count:empty { display: none; }

/* Project cards */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 10px;
  transition: box-shadow .25s, transform .25s;
  animation: tile-in .45s ease both;
}
.project:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.project[hidden] { display: none; }
@keyframes tile-in { from { opacity: 0; transform: translateY(12px); } }

.project-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.project-media .cover { grid-column: 1 / -1; aspect-ratio: 4 / 3; border-radius: 10px; }
.project-media .thumb { aspect-ratio: 1; border-radius: 8px; }
.project-media .thumb-wide { aspect-ratio: auto; }
.project-media .thumb-wide img { position: absolute; inset: 0; } /* row height comes from the square thumb beside it */.project-media .cover .tag { position: absolute; top: 10px; left: 10px; }
.project-media .more {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(14, 20, 26, .6);
  color: #fff; font: 700 1.05rem/1 var(--head);
}
.project-body { padding: 1rem .5rem .4rem; display: flex; flex-direction: column; flex: 1; }
/* Wide cards: two columns, photos left and text right. With 7 projects, two wide cards fill a 3 x 3 grid. */
.project-featured { grid-column: span 2; flex-direction: row; gap: 10px; }
.project-featured .project-media { flex: 1 1 50%; grid-template-rows: 1fr auto; }
.project-featured .cover { aspect-ratio: auto; min-height: 240px; }
.project-featured .cover img { position: absolute; inset: 0; } /* fills whatever height the row gives it */
.project-featured .project-body { flex: 1 1 50%; padding: 1.4rem 1.2rem .6rem; }
.project-featured h3 { font-size: 1.5rem; }
.project-body p { color: var(--muted); font-size: .95rem; }
.project-featured .project-body p { font-size: 1.02rem; }
.project-meta { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.project-meta .count { font-size: .85rem; font-weight: 600; color: var(--text); margin-right: .25rem; }
.project-meta .tag { box-shadow: none; font-size: .6rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.steps li {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .08);
}
.steps p { color: rgba(255, 255, 255, .72); margin: 0; font-size: .97rem; }
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font: 800 1.05rem/1 var(--head);
  margin-bottom: 1rem;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.regions { list-style: none; padding: 0; margin: 1.6rem 0 1.4rem; border-top: 1px solid var(--line); }
.regions li {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; align-items: baseline;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
}
.regions h3 {
  display: flex; align-items: center; gap: .55rem;
  margin: 0; font-size: 1.02rem;
}
.regions h3::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(197, 132, 54, .18);
}
.regions p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.contact-card {
  background: var(--ink); color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
}
.contact-card .eyebrow { color: #e3ab64; }
.contact-name { font: 700 1.2rem/1.3 var(--head); margin-bottom: 1rem; }
.contact-name span { display: block; font: 400 .92rem/1.4 var(--body); color: rgba(255, 255, 255, .65); }
.contact-phone {
  display: block;
  font: 800 clamp(1.7rem, 3.2vw, 2.6rem)/1 var(--head);
  white-space: nowrap;
  color: #e3ab64; text-decoration: none;
  margin-bottom: 1.5rem;
}
.contact-phone:hover { color: #fff; }
.contact-email {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: -.6rem 0 1.5rem; max-width: 100%;
  color: rgba(255, 255, 255, .85); text-decoration: none;
  font-size: .98rem; font-weight: 500; overflow-wrap: anywhere;
}
.contact-email svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #e3ab64; stroke-width: 1.8; stroke-linejoin: round; }
.contact-email:hover { color: #e3ab64; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.2rem; }
.contact-card .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .6); }
.contact-card .btn-outline:hover { background: #fff; color: var(--ink); }
.contact-card .muted { color: rgba(255, 255, 255, .6); margin: 0; }

.estimate { display: grid; gap: .8rem; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.estimate-title { font: 700 1rem/1.3 var(--head); margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.estimate label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .8); }
.estimate input, .estimate select, .estimate textarea {
  width: 100%;
  padding: .75rem .85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: 400 1rem/1.4 var(--body);
}
.estimate textarea { resize: vertical; }
.estimate select option { color: var(--text); }
.estimate input::placeholder, .estimate textarea::placeholder { color: rgba(255, 255, 255, .4); }
.estimate input:focus, .estimate select:focus, .estimate textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.estimate-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .2rem; }
.estimate-actions .btn { flex: 1 1 auto; }

/* Footer */
.site-footer { background: #0f171d; color: rgba(255, 255, 255, .7); padding-block: 2.4rem; font-size: .92rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer p { margin: 0 0 .3rem; }
.footer-brand { font: 700 1.05rem/1.3 var(--head); color: #fff; }
.footer-meta { text-align: right; }
.site-footer a { color: #e3ab64; text-decoration: none; }

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

/* Slideshow: a centered card, not full screen. The stage has a fixed height so the card
   doesn't jump between tall and wide photos; each photo is letterboxed inside it. */
.lightbox {
  width: min(980px, 100vw - 32px);
  max-width: none; max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0;
  border-radius: 18px; overflow: hidden;
  background: #121a20; color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox[open] { display: block; animation: lb-in .3s ease; }
.lightbox::backdrop { background: rgba(8, 11, 14, .78); backdrop-filter: blur(4px); }
@keyframes lb-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.lb-top { display: flex; align-items: center; gap: .6rem; padding: 12px 12px 12px 20px; }
.lb-title { flex: 1; margin: 0; font: 700 1.05rem/1.3 var(--head); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-count { margin: 0 .4rem 0 0; font: 600 .85rem/1 var(--body); opacity: .65; }

.lb-stage { position: relative; height: min(58vh, 560px); overflow: hidden; background: #0a0f13; touch-action: pan-y; }
.lb-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.22, .61, .36, 1); }
.lb-track.no-anim { transition: none; }
.lb-slide { flex: 0 0 100%; height: 100%; }
.lb-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }

.lb-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .1); }
.lb-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.lb-progress span.run { animation: lb-progress var(--slide-time, 4s) linear forwards; }
.lb-stage:hover .lb-progress span.run { animation-play-state: paused; }
@keyframes lb-progress { to { width: 100%; } }

.lightbox-caption { margin: 0; padding: 14px 20px 0; text-align: center; font-size: .95rem; display: flex; justify-content: center; align-items: center; gap: .6rem; flex-wrap: wrap; min-height: 2.6rem; }
.lightbox-caption .tag { box-shadow: none; }
.lb-rail {
  display: flex; gap: 6px; justify-content: safe center;
  padding: 12px 16px 16px;
  overflow-x: auto; scrollbar-width: none;
}
.lb-rail::-webkit-scrollbar { display: none; }
.lb-rail button {
  flex: none; width: 60px; height: 44px; padding: 0;
  border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  background: #222; cursor: pointer;
  opacity: .45; transition: opacity .2s, border-color .2s;
}
.lb-rail button:hover { opacity: .85; }
.lb-rail button.is-current { opacity: 1; border-color: var(--accent); }
.lb-rail img { width: 100%; height: 100%; object-fit: cover; }

.lb-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .1);
  display: grid; place-items: center;
  flex: none;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-play .icon-play { display: none; fill: #fff; stroke: none; }
.lb-play.is-paused .icon-play { display: inline; }
.lb-play.is-paused .icon-pause { display: none; }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -22px; background: rgba(10, 15, 19, .55); }
.lb-prev:hover, .lb-next:hover { background: rgba(10, 15, 19, .8); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

/* Responsive */
@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: .5rem 16px 1rem;
    background: rgba(24, 34, 43, .98);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .95rem .25rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .08); opacity: 1; }
  .nav a:last-child { border-bottom: 0; }
  .header-row { gap: .75rem; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .strip-item { padding: 1.2rem .8rem; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stages li:nth-child(2)::after { display: none; }
}

@media (min-width: 721px) and (max-width: 980px) {
  /* Two-column grid: an odd last card spans both columns instead of sitting alone */
  .services .service:last-child:nth-child(odd) { grid-column: span 2; }
  /* Only one wide project card here: 1 wide + 6 normal fills four rows of two */
  .project-featured:last-child { grid-column: auto; flex-direction: column; gap: 0; }
  .project-featured:last-child .cover { aspect-ratio: 4 / 3; min-height: 0; }
  .project-featured:last-child .project-body { padding: 1rem .5rem .4rem; }
  .project-featured:last-child h3 { font-size: 1.15rem; }
}

@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .header-row { height: 60px; }
  .header-call span { display: none; }
  .header-call { padding: .6rem; }
  .brand-name { font-size: .98rem; }
  .brand-sub { font-size: .55rem; }
  .brand-mark { width: 38px; height: 38px; }
  .hero { min-height: 82vh; }
  .hero-content { padding-block: 100px 48px; }
  .hero-shade { background: linear-gradient(0deg, rgba(14, 20, 26, .92) 0%, rgba(14, 20, 26, .6) 55%, rgba(14, 20, 26, .25) 100%); }
  .hero-actions .btn { flex: 1 1 100%; }
  .ba { aspect-ratio: 4 / 3; }
  .ba-extra { grid-template-columns: 1fr; }
  .services, .steps { grid-template-columns: 1fr; }
  .strip-row { grid-template-columns: 1fr; }
  .strip-item { padding: 1rem 0; }
  .strip-item + .strip-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .pills { display: flex; flex-wrap: wrap; gap: .1rem; padding: .25rem; border-radius: 22px; }
  .pill { flex: 1 1 auto; padding: .6rem .3rem; font-size: .76rem; }
  .pill .count { display: none; }
  .projects { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; flex-direction: column; gap: 0; }
  .project-featured .cover { aspect-ratio: 4 / 3; min-height: 0; }
  .project-featured .project-body { padding: 1rem .5rem .4rem; }
  .project-featured h3 { font-size: 1.15rem; }
  .stages { gap: 22px 12px; }
  .stages li::after { display: none; }
  .stages h3 { font-size: 1rem; margin-top: .7rem; }
  .stages p { font-size: .85rem; }
  .stage .tag { top: 8px; left: 8px; font-size: .58rem; padding: .3rem .45rem; }
  .lightbox { width: calc(100vw - 16px); border-radius: 14px; }
  .lb-top { padding: 8px 8px 8px 14px; }
  .lb-title { font-size: .95rem; }
  .lb-stage { height: min(52vh, 460px); }
  .lb-prev, .lb-next { width: 36px; height: 36px; margin-top: -18px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lightbox-caption { font-size: .88rem; padding: 12px 14px 0; }
  .lb-rail button { width: 48px; height: 36px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .regions li { grid-template-columns: 1fr; gap: .3rem; padding: .9rem 0; }
  .regions p { padding-left: 1.2rem; }
  .contact-actions .btn { flex: 1; }
  .contact-email { font-size: .86rem; gap: .4rem; }
  .contact-email svg { width: 18px; height: 18px; }
  .footer-meta { text-align: left; }
  .call-bar {
    display: flex; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(24, 34, 43, .97);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .2);
  }
  .call-bar .btn { flex: 1; }
  .call-bar .btn-accent { flex: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .lb-progress span.run { animation: lb-progress var(--slide-time, 4s) linear forwards !important; } /* a slow bar, not motion */
}
