/* ============================================================
   SCORPION RENOVATION GROUP — styles
   Palette: cream #F3EDE2 / ivory #FAF7F0 / olive #6B7248
            olive-dark #4F5535 / charcoal #23231D / stone #A89F8D
   Type:    Fraunces (display) + Jost (body)
   Corners: square everywhere (editorial finish)
   ============================================================ */

:root {
  --cream: #F3EDE2;
  --ivory: #FAF7F0;
  --olive: #6B7248;
  --olive-dark: #4F5535;
  --charcoal: #23231D;
  --charcoal-2: #2E2D25;
  --stone: #A89F8D;
  --ink: #26241E;
  --ink-soft: #5C584C;
  --line: rgba(38, 36, 30, 0.16);
  --line-light: rgba(243, 237, 226, 0.22);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { width: min(1240px, 92%); margin: 0 auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: 0.01em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; color: var(--olive); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--olive);
  margin-bottom: 1.2rem;
}
.eyebrow-light { color: var(--stone); }

.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-soft); max-width: 34em; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  padding: 1.05rem 2.2rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn-solid { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.btn-solid:hover { background: var(--olive-dark); border-color: var(--olive-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(243, 237, 226, 0.55); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(243, 237, 226, 0.12); transform: translateY(-2px); }
.btn-ghost-light { color: var(--cream); border-color: rgba(243,237,226,0.5); }
.btn-ghost-light:hover { background: var(--cream); color: var(--charcoal); border-color: var(--cream); }

.link-btn {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--olive);
  cursor: pointer;
  padding: 0;
  border-bottom: 1px solid var(--olive);
  padding-bottom: 3px;
  transition: color 0.3s, border-color 0.3s;
}
.link-btn:hover { color: var(--olive-dark); border-color: var(--olive-dark); }

/* ---------- Loader ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--charcoal);
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.done { opacity: 0; visibility: hidden; }
.loader-mark { animation: loaderPulse 1.4s ease-in-out infinite; }
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  width: min(1360px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
}
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: var(--cream);
  transition: color 0.4s ease;
}
.brand-sub {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--stone);
  transition: color 0.4s ease;
}
.site-header.scrolled .brand-name { color: var(--ink); }
.site-header.scrolled .brand-sub { color: var(--olive); }

.desktop-nav { display: flex; gap: 2.2rem; margin-left: auto; }
.desktop-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--cream);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.desktop-nav a:hover { color: var(--cream); border-color: var(--stone); }
.site-header.scrolled .desktop-nav a { color: var(--ink); }
.site-header.scrolled .desktop-nav a:hover { color: var(--olive); border-color: var(--olive); }

.header-cta { flex-shrink: 0; padding: 0.8rem 1.6rem; }
.site-header.scrolled .header-cta { background: var(--olive); border-color: var(--olive); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 120;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  margin: 0 auto;
  transition: transform 0.35s var(--ease), opacity 0.35s, background 0.35s;
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 6.5rem 8% 3rem;
  background: var(--cream);
  box-shadow: 0 30px 60px rgba(35, 35, 29, 0.25);
  flex-direction: column;
  gap: 0.4rem;
  transform: translateY(-110%);
  transition: transform 0.5s var(--ease);
  z-index: 110;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.mobile-cta {
  margin-top: 1.4rem;
  border: none;
  background: var(--olive);
  color: var(--cream);
  text-align: center;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  padding: 1.1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(35, 35, 29, 0.62) 0%, rgba(35, 35, 29, 0.38) 45%, rgba(35, 35, 29, 0.72) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, 92%);
  margin: 0 auto;
  color: var(--cream);
  padding-top: 4rem;
}
.hero-eyebrow { color: var(--stone); }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 400;
  max-width: 12em;
  text-shadow: 0 2px 30px rgba(35, 35, 29, 0.35);
}
.hero h1 em { color: var(--cream); }
.hero-sub {
  margin-top: 1.6rem;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(243, 237, 226, 0.92);
  max-width: 36em;
}
.hero-actions { display: flex; gap: 1rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-foot {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero-foot-line { width: 1px; height: 34px; background: rgba(243, 237, 226, 0.5); }
.hero-foot-label { font-size: 0.6rem; letter-spacing: 0.4em; color: rgba(243, 237, 226, 0.7); }

/* ---------- Intro / trust ---------- */
.intro { padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem); background: var(--cream); }
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.trust-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.trust-row li {
  padding: 1.8rem 1.6rem 0.4rem 0;
  border-right: 1px solid var(--line);
}
.trust-row li:last-child { border-right: none; }
.trust-title {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.trust-sub { display: block; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Services ---------- */
.services { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--ivory); }
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 70px 1.1fr 1.3fr 220px 60px;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.service-row:hover { background: rgba(107, 114, 72, 0.06); padding-left: 1.2rem; }
.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--stone);
}
.service-name {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.service-row:hover .service-name { color: var(--olive); }
.service-desc { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }
.service-thumb {
  width: 220px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  flex-shrink: 0;
}
.service-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.service-row:hover .service-thumb img { transform: scale(1.08); }
.service-arrow {
  font-size: 1.3rem;
  color: var(--stone);
  transition: transform 0.4s var(--ease), color 0.3s;
}
.service-row:hover .service-arrow { transform: translateX(6px); color: var(--olive); }

/* ---------- Projects ---------- */
.projects { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--cream); }

/* Before/after featured slider */
.ba-feature { margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.ba-feature-head { display: flex; align-items: baseline; gap: 1.6rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.ba-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--olive);
  border: 1px solid var(--olive);
  padding: 0.45rem 0.9rem;
}
.ba-feature-head h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
.ba-slider {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(35, 35, 29, 0.18);
  user-select: none;
}
.ba-after, .ba-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-before-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}
.ba-label {
  position: absolute;
  bottom: 1.2rem;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--cream);
  background: rgba(35, 35, 29, 0.72);
  padding: 0.45rem 0.9rem;
  pointer-events: none;
}
.ba-label-before { left: 1.2rem; }
.ba-label-after { right: 1.2rem; }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--cream);
  z-index: 3;
  pointer-events: none;
  transform: translateX(-1px);
}
.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(35, 35, 29, 0.35);
}
.ba-handle-knob img { width: 30px; height: 30px; }
.ba-caption { margin-top: 1.2rem; font-size: 0.9rem; color: var(--ink-soft); }
.ba-caption .link-btn { margin-left: 0.6rem; }

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.project-card-offset { margin-top: clamp(2rem, 4vw, 4rem); }
.project-media {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: none;
  aspect-ratio: 3 / 2;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project-media:hover img { transform: scale(1.06); }
.project-hover-tag {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(to top, rgba(35, 35, 29, 0.85), transparent);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.project-media:hover .project-hover-tag { opacity: 1; transform: translateY(0); }
.project-meta { padding-top: 1.3rem; }
.project-type {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--olive);
  margin-bottom: 0.6rem;
}
.project-meta h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.project-meta p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 1rem; }

/* ---------- Process ---------- */
.process { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--olive-dark); color: var(--cream); }
.process h2 { color: var(--cream); }
.process h2 em { color: var(--stone); }
.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.process-steps li {
  border-top: 1px solid var(--line-light);
  padding-top: 1.6rem;
}
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--stone);
  display: block;
  margin-bottom: 0.8rem;
}
.process-steps h3 {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  margin-bottom: 0.8rem;
}
.process-steps p { font-size: 0.94rem; color: rgba(243, 237, 226, 0.82); line-height: 1.6; }

/* ---------- About ---------- */
.about { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--ivory); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-media { position: relative; }
.about-media img { width: 100%; box-shadow: 0 24px 60px rgba(35, 35, 29, 0.16); }
.about-list { list-style: none; margin-top: 2rem; }
.about-list li {
  position: relative;
  padding: 0.9rem 0 0.9rem 2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 9px;
  height: 9px;
  background: var(--olive);
  transform: rotate(45deg);
}
.about-list span { font-weight: 500; color: var(--ink); }

/* ---------- Estimate ---------- */
.estimate { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--cream); }
.estimate-panel {
  width: min(1240px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--charcoal);
  box-shadow: 0 30px 80px rgba(35, 35, 29, 0.25);
}
.estimate-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}
.estimate-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.estimate-media-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(to top, rgba(35, 35, 29, 0.92) 20%, rgba(35, 35, 29, 0.35));
  color: var(--cream);
}
.estimate-mark { width: 56px; height: 56px; margin-bottom: auto; opacity: 0.95; }
.estimate-media-overlay h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--cream); }
.estimate-media-overlay h2 em { color: var(--stone); }
.estimate-media-overlay p { margin-top: 1rem; font-size: 0.98rem; color: rgba(243, 237, 226, 0.85); }
.estimate-form-wrap { padding: clamp(2rem, 4.5vw, 4rem); color: var(--cream); }
.estimate-form-wrap .eyebrow { color: var(--stone); }
.estimate-form-wrap h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 2rem;
  color: var(--cream);
}
.estimate-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.estimate-form .field { margin-bottom: 1.2rem; }
.estimate-form label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--stone);
  margin-bottom: 0.5rem;
}
.label-optional { letter-spacing: 0.06em; text-transform: none; color: rgba(168, 159, 141, 0.75); font-weight: 300; }
.estimate-form input[type="text"],
.estimate-form input[type="tel"],
.estimate-form input[type="email"],
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  background: var(--charcoal-2);
  border: 1px solid rgba(243, 237, 226, 0.18);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.98rem;
  padding: 0.9rem 1rem;
  transition: border-color 0.3s;
}
.estimate-form input:focus, .estimate-form select:focus, .estimate-form textarea:focus {
  outline: none;
  border-color: var(--olive);
}
.estimate-form input::placeholder, .estimate-form textarea::placeholder { color: rgba(243, 237, 226, 0.35); }
.estimate-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--stone) 50%), linear-gradient(135deg, var(--stone) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.estimate-form select:invalid { color: rgba(243, 237, 226, 0.4); }
.estimate-form input[type="file"] {
  width: 100%;
  color: rgba(243, 237, 226, 0.7);
  font-size: 0.88rem;
  padding: 0.7rem 0;
}
.estimate-form input[type="file"]::file-selector-button {
  background: transparent;
  border: 1px solid var(--stone);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  padding: 0.6rem 1.1rem;
  margin-right: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.estimate-form input[type="file"]::file-selector-button:hover { background: rgba(243, 237, 226, 0.12); }
.btn-submit { width: 100%; margin-top: 0.6rem; background: var(--olive); border-color: var(--olive); color: var(--cream); }
.btn-submit:hover { background: var(--olive-dark); border-color: var(--olive-dark); }
#formStatus { font-size: 0.92rem; }
#formStatus p { color: var(--cream); }

/* ---------- Contact ---------- */
.contact { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--charcoal); color: var(--cream); }
.contact h2 { color: var(--cream); }
.contact h2 em { color: var(--stone); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line-light);
  padding-top: 2.5rem;
}
.contact-item { text-decoration: none; display: block; color: inherit; }
.contact-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--stone);
  margin-bottom: 0.6rem;
}
.contact-value {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.4;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
a.contact-item:hover .contact-value { color: var(--cream); border-color: var(--stone); }
.contact-cta { margin-top: 3.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: #1B1A15; color: var(--cream); padding: 3.5rem 0 2.5rem; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(243, 237, 226, 0.12);
}
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 54px; height: 54px; }
.brand-word-light .brand-name { color: var(--cream); }
.brand-word-light .brand-sub { color: var(--stone); }
.footer-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-nav a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: rgba(243, 237, 226, 0.75);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--cream); }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  font-size: 0.78rem;
  color: rgba(243, 237, 226, 0.55);
}

.footer-credit a {
  color: rgba(243, 237, 226, 0.75);
  text-decoration: underline;
}
.footer-credit a:hover { color: var(--cream); }

/* ---------- Sticky mobile CTA bar ---------- */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
  box-shadow: 0 -8px 30px rgba(35, 35, 29, 0.3);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-cta,
.sticky-call {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  padding: 1.05rem;
  text-decoration: none;
}
.sticky-cta { background: var(--olive); color: var(--cream); }
.sticky-call { background: var(--charcoal); color: var(--cream); }

/* ---------- Stats bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2.4rem;
  margin-top: 1rem;
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  color: var(--olive);
}
.stat-label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.testimonials h2 { color: var(--cream); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.testimonial {
  background: var(--charcoal-2);
  border: 1px solid var(--line-light);
  padding: 2.2rem 1.8rem;
}
.stars {
  color: var(--stone);
  font-size: 1rem;
  letter-spacing: 0.25em;
  margin-bottom: 1.2rem;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(243, 237, 226, 0.92);
}
.testimonial figcaption {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
}

/* ---------- Case study modals ---------- */
.case-modal { position: fixed; inset: 0; z-index: 150; display: flex; }
.case-modal[hidden] { display: none; }
.case-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 26, 21, 0.85);
  backdrop-filter: blur(4px);
}
.case-panel {
  position: relative;
  margin: auto;
  width: min(960px, 94vw);
  max-height: 92vh;
  background: var(--ivory);
  animation: modalIn 0.5s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.case-close {
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  z-index: 5;
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s;
}
.case-close:hover { background: var(--olive); }
.case-scroll { padding: clamp(1.6rem, 4vw, 3.2rem); max-height: 92vh; overflow-y: auto; }
.case-panel .project-type { display: inline-block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.3em; color: var(--olive); margin-bottom: 1rem; }
.case-panel h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1.2rem; }
.case-desc { font-size: 0.98rem; color: var(--ink-soft); max-width: 42em; margin-bottom: 1.8rem; }
.case-scope {
  border: 1px solid var(--line);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.2rem;
}
.case-scope-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--olive);
  margin-bottom: 0.8rem;
}
.case-scope ul { list-style: none; }
.case-scope li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
}
.case-scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 7px;
  height: 7px;
  background: var(--olive);
  transform: rotate(45deg);
}
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}
.ba-pair figure { position: relative; margin: 0; }
.ba-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba-pair figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: rgba(35, 35, 29, 0.75);
  color: var(--cream);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  padding: 0.35rem 0.7rem;
}
.case-gallery-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--olive);
  margin-bottom: 1rem;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .service-row { grid-template-columns: 50px 1fr 180px 40px; }
  .service-desc { display: none; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-row li { border-bottom: 1px solid var(--line); padding-bottom: 1.4rem; }
  .trust-row li:nth-child(2n) { border-right: none; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .desktop-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .intro-grid, .about-grid, .estimate-panel { grid-template-columns: 1fr; }
  .estimate-media { min-height: 340px; }
  .estimate-media-overlay { min-height: 340px; }
  .project-grid { grid-template-columns: 1fr; gap: 3rem; }
  .project-card-offset { margin-top: 0; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .brand-name { font-size: 0.95rem; }
  .brand-sub { font-size: 0.5rem; letter-spacing: 0.28em; }
  .brand-mark { width: 36px; height: 36px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .service-row { grid-template-columns: 44px 1fr 120px 30px; gap: 0.9rem; padding: 1.3rem 0; }
  .service-thumb { width: 120px; }
  .service-arrow { display: none; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-row li { border-right: none; }
  .process-steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .estimate-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .ba-pair { grid-template-columns: 1fr; }
  .ba-slider { aspect-ratio: 4 / 3; }
  .ba-handle-knob { width: 50px; height: 50px; }
  .sticky-bar { display: flex; }
  body { padding-bottom: 0; }
}

@media (min-width: 641px) {
  .sticky-bar { display: none; }
}
