/* ========================================
   TOTAL BUILDZ — Design System & Styles
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #1A1A1A;
  --accent: #C8965A;
  --accent-dark: #A67744;
  --accent-light: #E8C9A0;
  --white: #FFFFFF;
  --off-white: #F5F2ED;
  --gray-100: #E8E4DF;
  --gray-200: #D1CCC6;
  --gray-400: #9B9590;
  --gray-600: #6B6560;
  --gray-900: #2D2926;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max-width: 1200px;
  --header-height: 108px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Viewport scrollbar hidden — mouse wheel / trackpad / touch scroll unchanged */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  width: 0;
  height: 0;
}
/*
 * Homepage: GSAP scrub reads scroll progress. Root `scroll-behavior: smooth` fights that and feels like snapping
 * through sticky tracks and the CTA/footer block. Scoped override — other pages still use smooth on `html`.
 */
html:has(body.page-home) {
  scroll-behavior: auto;
}
body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { color: var(--gray-600); max-width: 680px; }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }

/* --- Layout --- */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.section { padding: 100px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: var(--gray-200); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header p { margin: 16px auto 0; font-size: 1.1rem; }
.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: 50px; font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.5px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--accent); color: var(--white);
  box-shadow: 0 4px 16px rgba(200,150,90,0.3);
}
.btn-primary:hover {
  background: var(--accent-dark); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,150,90,0.4);
}
.btn-outline {
  border: 2px solid var(--white); color: var(--white);
}
.btn-outline:hover {
  background: var(--white); color: var(--primary);
}
.btn-dark {
  border: 2px solid var(--primary); color: var(--primary);
}
.btn-dark:hover {
  background: var(--primary); color: var(--white);
}
.btn-sm { padding: 12px 28px; font-size: 0.875rem; }

/* --- Header --- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition:
    background-color 0.85s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.85s cubic-bezier(0.25, 0.1, 0.25, 1),
    backdrop-filter 0.85s cubic-bezier(0.25, 0.1, 0.25, 1),
    -webkit-backdrop-filter 0.85s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.site-header.scrolled {
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height); padding: 0 5%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo img {
  height: 72px;
  width: auto;
  display: block;
}
.logo span {
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.logo span b {
  color: var(--accent);
}
.site-footer .logo img {
  height: 120px;
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.5px; transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone {
  color: var(--white); font-weight: 600; font-size: 0.9rem;
  display: flex; align-items: center; gap: 6px;
}
.phone-link-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.mobile-nav .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.mobile-nav .btn-primary .phone-link-icon {
  width: 1.15em;
  height: 1.15em;
}
.footer-phone-link,
.footer-mail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Beat `.footer-col a { display: block }` so icon + label stay one row */
.footer-col a.footer-phone-link,
.footer-col a.footer-mail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
}
.footer-phone-link .phone-link-icon,
.footer-mail-link .phone-link-icon {
  width: 24px;
  height: 24px;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; cursor: pointer; z-index: 1001;
}
.hamburger span {
  display: block; height: 2px; width: 100%; background: var(--white);
  transition: all var(--transition); border-radius: 2px;
}
/* Index cinematic hero: hide nav chrome & hero copy until scroll-reveal phase (JS + GSAP take over). */
body.home-hero-cinematic .site-header .nav-links,
body.home-hero-cinematic .site-header .header-cta,
body.home-hero-cinematic .site-header .hamburger {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.home-hero-cinematic #hero .hero-content > * {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Mobile Nav --- */
.mobile-nav {
  position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
  background: rgba(26,26,26,0.98); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 32px; transition: right 0.4s ease;
  z-index: 999;
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  color: var(--white); font-size: 1.5rem; font-family: var(--font-heading);
  font-weight: 500; transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--accent); }

/* --- Hero --- */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
/*
 * Hero scroll track:
 * - first segment scrubs the frame sequence (data-hero-sequence-ratio)
 * - second segment reveals overlay/header/content
 * Keep this compact to avoid dead scroll after hero reveal completes.
 */
.hero-scroll-container { position: relative; height: 560vh; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.hero-sequence {
  position: absolute; inset: 0; z-index: 1; background: #1a1a1a;
}
.hero-sequence-fallback,
.hero-sequence-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-sequence-canvas {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.hero-scroll-container.hero-sequence-ready .hero-sequence-canvas { opacity: 1; }
.hero-scroll-container.hero-sequence-ready .hero-sequence-fallback {
  visibility: hidden; pointer-events: none;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  /* Extra darken before scroll (typing); JS clears toward 0 as sequence scrub advances. */
  --hero-overlay-readability: 0.32;
  --hero-overlay-extra: 0;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 25%, rgba(0,0,0,0.4) 100%),
    linear-gradient(to bottom, rgba(0,0,0,var(--hero-overlay-readability)) 0%, rgba(0,0,0,var(--hero-overlay-readability)) 100%),
    linear-gradient(to bottom, rgba(0,0,0,var(--hero-overlay-extra)) 0%, rgba(0,0,0,var(--hero-overlay-extra)) 100%);
  z-index: 3;
}
/* Opening title + scroll hint stacked (typing + scrub fade in main.js). */
.hero-intro-stack {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.5vh, 48px);
  padding: clamp(72px, 12vh, 120px) clamp(14px, 4vw, 28px);
  pointer-events: none;
}
.hero-typing-headline {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  flex-shrink: 0;
}
.hero-typing-headline__inner {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(0.875rem, 2.15vw + 0.55rem, 2.875rem);
  line-height: 1.15;
  white-space: nowrap;
  max-width: 100%;
  color: var(--white);
  letter-spacing: 0.01em;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.5);
}
.hero-typing-headline__text {
  display: inline;
  vertical-align: baseline;
}
.hero-typing-headline__caret {
  display: inline-block;
  vertical-align: -0.05em;
  width: 0.07em;
  min-width: 2px;
  height: 0.85em;
  margin-left: 0.08em;
  background: var(--accent-light);
  animation: heroTypingCaret 0.95s steps(1, end) infinite;
}
.hero-typing-headline__caret.hero-typing-headline__caret--hide {
  animation: none;
  opacity: 0;
}
@keyframes heroTypingCaret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-typing-headline__caret { animation: none; opacity: 1; }
}
@media (max-width: 520px) {
  .hero-typing-headline__inner {
    font-size: clamp(0.58rem, 2.8vw + 0.42rem, 1.35rem);
    letter-spacing: 0;
  }
}
.hero-content {
  position: relative; z-index: 4; text-align: center;
  max-width: 800px; padding: 0 20px;
}
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content p {
  color: rgba(255,255,255,0.9); font-size: 1.2rem;
  max-width: 600px; margin: 0 auto 36px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center;
  gap: 8px; color: rgba(255,255,255,0.7); font-size: 0.75rem;
  letter-spacing: 2px; text-transform: uppercase;
}
.hero-intro-stack .scroll-indicator {
  position: relative;
  inset: auto;
  bottom: auto;
  left: auto;
  transform: none;
  flex-shrink: 0;
  /* Visible before main.js hides it (preload runs before gsap.set in async path). GSAP overrides when revealing. */
  opacity: 0;
  visibility: hidden;
}
/* --- Page Hero (inner pages) --- */
.page-hero {
  position: relative; height: 45vh; min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
  /* scroll avoids fixed-bg compositor seams / hairlines above dark footers (Win/Chrome) */
  background-attachment: scroll;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  /* Vertical blend avoids a diagonal band that can read as a seam/debug line next to dark sections */
  background: linear-gradient(to bottom, rgba(26,26,26,0.82), rgba(45,41,38,0.72));
}
.page-hero-content {
  position: relative; z-index: 2; text-align: center;
}
.page-hero-content h1 { color: var(--white); margin-bottom: 12px; }
.page-hero-content p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin: 0 auto; }

/* --- Trust Strip --- */
.trust-strip {
  background: var(--primary); padding: 28px 0;
  border-bottom: 3px solid var(--accent);
}
.trust-items {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-size: 0.9rem; font-weight: 500;
  white-space: nowrap;
}
.trust-item .icon { font-size: 1.3rem; }

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* --- Service Cards --- */
.service-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
  transition: all var(--transition); cursor: pointer;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card-img {
  height: 220px; overflow: hidden;
}
.service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.08); }
.service-card-body { padding: 24px; }
.service-card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service-card-body p { font-size: 0.9rem; line-height: 1.6; }

/* --- All services (homepage: sticky full-viewport, one step per viewport) --- */
.allservices-sticky-scroll {
  margin: 0;
  padding: 0;
  background: var(--off-white);
  position: relative;
  z-index: 11;
  scroll-margin-top: var(--header-height);
}
.allservices-scroll-track {
  position: relative;
  height: calc(var(--allservices-step-count, 13) * 100vh);
  height: calc(var(--allservices-step-count, 13) * 100dvh);
}
.allservices-sticky-panel {
  position: sticky;
  top: 0;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: var(--header-height) clamp(20px, 5vw, 72px) clamp(28px, 4vh, 48px);
  background: var(--off-white);
}
.allservices-media {
  position: relative;
  width: 100%;
  max-width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  max-height: min(60vh, 580px);
  margin-inline: auto;
  justify-self: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gray-100);
}
.allservices-media-static,
.allservices-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.allservices-media-static {
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}
.allservices-media-video {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
  z-index: 1;
}
.allservices-media--is-video .allservices-media-video {
  opacity: 1;
  visibility: visible;
}
.allservices-media--is-video .allservices-media-static {
  opacity: 0;
  visibility: hidden;
}
.allservices-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 20px);
  max-width: 44ch;
}
/* Fixed vertical band so headline + description swap without shifting layout */
.allservices-copy-main {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(10px, 1.75vw, 16px);
  min-height: clamp(13.5rem, 34vmin, 17.5rem);
  justify-content: flex-start;
}
.allservices-copy-main .allservices-description {
  flex: 0 1 auto;
  max-width: none;
}
.allservices-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.allservices-copy .allservices-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  line-height: 1.18;
  color: var(--primary);
}
.allservices-description {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--gray-600);
  max-width: 52ch;
}
.allservices-scroll-hint {
  margin: clamp(16px, 3vh, 28px) 0 0;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
}
.allservices-scroll-hint.allservices-scroll-hint--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  margin: 0;
  overflow: hidden;
}
@media (max-width: 900px) {
  .allservices-sticky-panel {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: calc(var(--header-height) + 16px);
  }
  .allservices-copy {
    text-align: center;
    align-items: center;
    margin-inline: auto;
    max-width: 52ch;
  }
  .allservices-copy-main {
    align-items: center;
  }
  .allservices-description {
    text-align: center;
  }
}

/* --- Services (home: sticky full-viewport, scroll-driven steps) --- */
.services-sticky-scroll {
  margin: 0;
  padding: 0;
  background: var(--white);
  position: relative;
  z-index: 12;
  scroll-margin-top: var(--header-height);
}
.services-scroll-track {
  position: relative;
  /* steps * 100dvh + optional end hold (fractional viewports); JS sets --services-end-hold-vh */
  height: calc((var(--services-step-count, 13) + var(--services-end-hold-vh, 0)) * 100vh);
  height: calc((var(--services-step-count, 13) + var(--services-end-hold-vh, 0)) * 100dvh);
}
.services-sticky-panel {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  padding: var(--header-height) clamp(20px, 5vw, 72px) clamp(28px, 4vh, 48px);
  box-sizing: border-box;
  background: var(--white);
}
.services-visual-col {
  min-width: 0;
  align-self: center;
}
.services-visual-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - var(--header-height) - 72px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.services-visual-stack.services-visual-sequence {
  width: 90%;
  max-width: 90%;
  margin-inline: auto;
}
.services-visual-sequence .services-sequence-fallback,
.services-visual-sequence .services-sequence-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.services-visual-sequence .services-sequence-fallback {
  object-fit: cover;
  object-position: center;
}
.services-visual-sequence .services-sequence-canvas {
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}
.services-visual-sequence.services-visual-sequence-ready .services-sequence-canvas {
  opacity: 1;
}
.services-visual-sequence.services-visual-sequence-ready .services-sequence-fallback {
  visibility: hidden;
  pointer-events: none;
}
.services-visual-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  will-change: opacity;
  background: var(--white);
}
.services-visual-slide.is-active {
  z-index: 2;
  pointer-events: auto;
}
.services-visual-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.services-visual-slide--intro img {
  object-position: center 42%;
  filter: saturate(0.88) brightness(0.96);
}
.services-copy-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  min-height: 0;
  flex: 1;
  min-width: 0;
  align-self: stretch;
}
.services-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  flex: 0 0 auto;
}
.services-copy-stack {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: 16rem;
  overflow: hidden;
  isolation: isolate;
}
.services-copy-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  will-change: opacity;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--white);
  box-sizing: border-box;
  padding-right: 6px;
}
.services-copy-slide.is-active {
  pointer-events: auto;
  z-index: 2;
}
.services-copy-slide h2 {
  margin-bottom: 14px;
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
}
.services-copy-slide p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 48ch;
  color: var(--gray-600);
}
.services-hint {
  margin: 0px 0 0;
  flex: 0 0 auto;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
}
@media (max-width: 900px) {
  .services-sticky-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 24px;
    padding-top: calc(var(--header-height) + 12px);
  }
  .services-visual-stack {
    max-height: 36vh;
    aspect-ratio: 16 / 9;
  }
  .services-copy-stack {
    min-height: 14rem;
  }
}

/* --- Project Cards --- */
.project-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; aspect-ratio: 4/3;
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover img { transform: scale(1.08); }
.project-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.85) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; transition: all var(--transition);
}
.project-card:hover .project-card-overlay {
  background: linear-gradient(to top, rgba(200,150,90,0.85) 0%, rgba(200,150,90,0.2) 100%);
}
.project-card-overlay h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 4px; }
.project-card-overlay span { color: rgba(255,255,255,0.8); font-size: 0.85rem; font-weight: 500; }

/* --- Why Choose Us — sticky fullscreen (Services-style scroll track) --- */
.why-choose-sticky-scroll {
  margin: 0;
  padding: 0;
  background: var(--white);
  position: relative;
  z-index: 4;
  scroll-margin-top: var(--header-height);
}
.why-choose-scroll-track {
  position: relative;
  height: calc(var(--why-choose-step-count, 2) * 100vh);
  height: calc(var(--why-choose-step-count, 2) * 100dvh);
}
.why-choose-sticky-panel {
  position: sticky;
  top: 0;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--header-height) clamp(20px, 5vw, 72px) clamp(28px, 4vh, 48px);
  background: var(--white);
}
.why-choose-panel-inner {
  width: 100%;
}
.why-choose-sticky-scroll .section-header {
  margin-bottom: clamp(36px, 5vh, 56px);
}
@media (max-width: 900px) {
  .why-choose-sticky-panel {
    align-items: start;
    padding-top: calc(var(--header-height) + 16px);
  }
}

/* --- Why Choose / Feature Cards --- */
.feature-card {
  text-align: center; padding: 40px 28px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
  transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 1.8rem; color: var(--white);
}
.feature-icon--svg {
  background: transparent;
  border-radius: 0;
}
.feature-icon--svg img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}
.feature-card h3 { margin-bottom: 12px; font-size: 1.15rem; }
.feature-card p { font-size: 0.9rem; margin: 0 auto; }

/* --- Why Choose — one centered stack (z-order only) → spreads horizontally --- */
/* Self-contained grid (no .grid-4): avoids a frame of 4-column layout before stacked rules apply */
.why-choose-cards.wc-cards {
  position: relative;
  isolation: isolate;
  --wc-card-gap: 28px;
  display: grid;
  gap: var(--wc-card-gap);
}
/* Equal card height: shared floor for stacked deck; revealed rows stretch to tallest in row */
.why-choose-cards.wc-cards > .feature-card {
  min-height: clamp(268px, 32vmin, 340px);
  box-sizing: border-box;
}
/* Stacked: single column deck centered on section width */
.why-choose-cards.wc-cards:not(.wc-revealed) {
  grid-template-columns: 1fr;
  justify-items: center;
  width: 100%;
}
/* Avoid transition:all animating grid placement into the deck before first reveal */
.why-choose-cards.wc-cards:not(.wc-revealed) > .feature-card {
  transition: box-shadow var(--transition), transform var(--transition);
}
/* Stacked deck: each card’s width = one column of the eventual revealed row (FLIP stays size-consistent) */
.why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-1,
.why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-2,
.why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-3,
.why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-4,
.why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-5 {
  grid-column: 1;
  grid-row: 1;
  width: calc((100% - 4 * var(--wc-card-gap)) / 5);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  justify-self: center;
}
@media (max-width: 1200px) {
  .why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-1,
  .why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-2,
  .why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-3,
  .why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-4,
  .why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-5 {
    width: calc((100% - 2 * var(--wc-card-gap)) / 3);
  }
}
@media (max-width: 768px) {
  .why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-1,
  .why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-2,
  .why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-3,
  .why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-4,
  .why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-5 {
    width: 100%;
  }
}
.why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-2,
.why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-3,
.why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-4,
.why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-5 {
  transform-origin: center center;
  pointer-events: none;
}
.why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-1 {
  position: relative;
  z-index: 5;
}
.why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-2 {
  z-index: 4;
}
.why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-3 {
  z-index: 3;
}
.why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-4 {
  z-index: 2;
}
.why-choose-cards.wc-cards:not(.wc-revealed) .why-cc-5 {
  z-index: 1;
}
.why-choose-cards.wc-cards.wc-revealed .why-cc-1,
.why-choose-cards.wc-cards.wc-revealed .why-cc-2,
.why-choose-cards.wc-cards.wc-revealed .why-cc-3,
.why-choose-cards.wc-cards.wc-revealed .why-cc-4,
.why-choose-cards.wc-cards.wc-revealed .why-cc-5 {
  grid-column: auto;
  grid-row: auto;
  width: auto;
  justify-self: stretch;
  transform: none;
  pointer-events: auto;
}
/* Five cards in a row when expanded; tighten on smaller viewports */
.why-choose-cards.wc-cards.wc-revealed {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--wc-card-gap);
  align-items: stretch;
}
@media (max-width: 1200px) {
  .why-choose-cards.wc-cards.wc-revealed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .why-choose-cards.wc-cards.wc-revealed {
    grid-template-columns: 1fr;
  }
}

/* --- Our Process — sticky fullscreen (Why Choose Us scroll-track pattern) --- */
.process-sticky-scroll,
.testimonials-sticky-scroll {
  margin: 0;
  padding: 0;
  background: var(--off-white);
  position: relative;
  z-index: 4;
  scroll-margin-top: var(--header-height);
}
.process-scroll-track {
  position: relative;
  height: calc(var(--process-step-count, 2) * 100vh);
  height: calc(var(--process-step-count, 2) * 100dvh);
}
.testimonials-scroll-track {
  position: relative;
  height: calc(var(--testimonials-step-count, 2) * 100vh);
  height: calc(var(--testimonials-step-count, 2) * 100dvh);
}
.process-sticky-panel,
.testimonials-sticky-panel {
  position: sticky;
  top: 0;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--header-height) clamp(20px, 5vw, 72px) clamp(28px, 4vh, 48px);
  background: var(--off-white);
}
.process-panel-inner,
.testimonials-panel-inner {
  width: 100%;
}
.process-sticky-scroll .section-header,
.testimonials-sticky-scroll .section-header {
  margin-bottom: clamp(36px, 5vh, 56px);
}
@media (max-width: 900px) {
  .process-sticky-panel,
  .testimonials-sticky-panel {
    align-items: start;
    padding-top: calc(var(--header-height) + 16px);
  }
  .cta-footer-sticky-panel {
    padding-top: calc(var(--header-height) + 12px);
  }
}

/* --- Final CTA + Footer — sticky fullscreen (Testimonials scroll-track pattern) --- */
.cta-footer-sticky-scroll {
  margin: 0;
  padding: 0;
  background: var(--primary);
  position: relative;
  z-index: 4;
  scroll-margin-top: var(--header-height);
  /* Reduces rubber-band / chained repaints at section bounds while scrolling (Win/Chrome glitches) */
  overscroll-behavior-y: contain;
}
/* Homepage: sticky CTA/footer track + nested stack — contain on the wrapper trapped momentum at viewport handoffs */
body.page-home .cta-footer-sticky-scroll {
  overscroll-behavior-y: auto;
}
.cta-footer-scroll-track {
  position: relative;
  height: calc(var(--cta-footer-step-count, 2) * 100vh);
  height: calc(var(--cta-footer-step-count, 2) * 100dvh);
}
.cta-footer-sticky-panel {
  position: sticky;
  top: 0;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: var(--header-height) clamp(20px, 5vw, 72px) env(safe-area-inset-bottom, 0);
  background: var(--primary);
}
.cta-footer-panel-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.cta-footer-stack {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  /* One scroll surface for CTA + footer — nested overflow (stack clip + footer scroll) caused diagonal compositor seams while scrolling */
  overflow-x: hidden;
  overflow-y: auto;
  /* `contain` trapped wheel at max inner scroll / empty scrollport: first nudge did nothing, second reached document */
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(255, 255, 255, 0.28) var(--primary);
}
.cta-footer-stack::-webkit-scrollbar {
  width: 10px;
}

/*
 * Homepage mobile: tall sticky tracks + pinned panels confuse touch scrolling.
 * Lay these sections out in normal flow (desktop unchanged).
 */
@media (max-width: 768px) {
  /* Touch momentum + `scroll-behavior: smooth` on html often feels like snapping */
  html {
    scroll-behavior: auto;
  }

  body.page-home .why-choose-scroll-track,
  body.page-home .process-scroll-track,
  body.page-home .testimonials-scroll-track,
  body.page-home .cta-footer-scroll-track {
    height: auto;
    min-height: 0;
  }

  /* Services keeps full sticky scroll track on mobile — main homepage feature */
  /* Avoid scroll chaining traps between homepage sections on touch */
  body.page-home .services-sticky-scroll,
  body.page-home .allservices-sticky-scroll,
  body.page-home .why-choose-sticky-scroll,
  body.page-home .process-sticky-scroll,
  body.page-home .testimonials-sticky-scroll,
  body.page-home .cta-footer-sticky-scroll {
    overscroll-behavior-y: auto;
  }

  body.page-home .why-choose-sticky-panel,
  body.page-home .process-sticky-panel,
  body.page-home .testimonials-sticky-panel {
    position: relative;
    top: auto;
    min-height: 0;
  }

  body.page-home .cta-footer-sticky-panel {
    position: relative;
    top: auto;
    min-height: 0;
  }
  body.page-home .cta-footer-stack {
    overflow-x: hidden;
    overflow-y: visible;
    -webkit-overflow-scrolling: auto;
  }
}
.cta-footer-stack::-webkit-scrollbar-track {
  background: var(--primary);
}
.cta-footer-stack::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  border: 2px solid var(--primary);
}
.cta-footer-stack .cta-section {
  flex: 1 1 auto;
  min-height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vh, 40px) 0;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}
.cta-footer-stack .cta-content p {
  margin-bottom: clamp(20px, 3vh, 36px);
}
.cta-footer-stack .site-footer {
  flex: 0 0 auto;
  min-width: 0;
  overflow: visible;
  padding: clamp(16px, 2.5vh, 28px) 0 0;
}
.cta-footer-stack .footer-grid {
  column-gap: clamp(10px, 1.5vw, 18px);
  row-gap: clamp(20px, 3vh, 32px);
  margin-bottom: clamp(20px, 3vh, 40px);
}
.cta-footer-stack .footer-grid > .footer-brand {
  padding-right: clamp(12px, 2.5vw, 32px);
}
.cta-footer-stack .footer-col h4 {
  margin-bottom: 12px;
}
.cta-footer-stack .footer-col a {
  margin-bottom: 6px;
}
.cta-footer-stack .footer-bottom {
  padding: clamp(10px, 1.5vh, 16px) 0 clamp(6px, 1vh, 10px);
}

/* --- Process --- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.process-grid::before {
  content: ''; position: absolute; top: 44px;
  left: 12.5%; width: 75%; height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
}
.process-sticky-scroll .process-grid::before {
  display: none;
}
.process-sticky-scroll .process-connectors {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  height: 2px;
  pointer-events: none;
  z-index: 0;
}
.process-sticky-scroll .process-connector-segment {
  position: absolute;
  top: 0;
  height: 2px;
  border-radius: 1px;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.55s cubic-bezier(0.33, 0.94, 0.32, 1), transform 0.55s cubic-bezier(0.33, 0.94, 0.32, 1);
  background: linear-gradient(to right, var(--accent), var(--accent-light));
}
/* Centers of four equal columns: 12.5%, 37.5%, 62.5%, 87.5% — segments sit between adjacent centers.
   Length = 70% of center-to-center (25%) → 30% shorter; inset 3.75% each side to stay centered. */
.process-sticky-scroll .process-connector-segment:nth-child(1) {
  left: calc(12.5% + 3.75%);
  width: 17.5%;
  transform-origin: left center;
}
.process-sticky-scroll .process-connector-segment:nth-child(2) {
  left: calc(37.5% + 3.75%);
  width: 17.5%;
  transform-origin: left center;
}
.process-sticky-scroll .process-connector-segment:nth-child(3) {
  left: calc(62.5% + 3.75%);
  width: 17.5%;
  transform-origin: left center;
}
.process-sticky-scroll .process-connector-segment.process-connector-segment--visible {
  opacity: 1;
  transform: translateX(0);
}
.process-sticky-scroll .process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateX(-100px);
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.33, 0.94, 0.32, 1), transform 0.55s cubic-bezier(0.33, 0.94, 0.32, 1);
}
.process-sticky-scroll .process-step.process-step--visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .process-sticky-scroll .process-step {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
  }
  .process-sticky-scroll .process-connector-segment {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.process-step { text-align: center; position: relative; }
.process-number {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--primary); color: var(--accent);
  font-family: var(--font-heading); font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; position: relative; z-index: 2;
  border: 3px solid var(--accent);
}
.process-step h3 { margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; }

/* --- Testimonials --- */
.testimonial-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
  position: relative; transition: all var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card::before {
  content: '\201C'; position: absolute; top: 16px; left: 24px;
  font-size: 5rem; color: var(--accent-light); font-family: var(--font-heading);
  line-height: 1; opacity: 0.5;
}
.testimonial-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-style: italic; font-size: 0.95rem; margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-author { font-weight: 600; color: var(--primary); font-size: 0.95rem; }
.testimonial-location { font-size: 0.8rem; color: var(--gray-400); }

/* --- CTA Section --- */
.cta-section {
  position: relative; padding: 100px 0;
  background-size: cover; background-position: center;
  background-attachment: scroll;
  overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,26,0.92), rgba(45,41,38,0.86));
}
.cta-content {
  position: relative; z-index: 2; text-align: center;
}
.cta-content h2 { color: var(--white); margin-bottom: 16px; }
.cta-content p { color: var(--gray-200); font-size: 1.15rem; margin: 0 auto 36px; }

/* --- About Sections --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item h3 { font-size: 2.5rem; color: var(--accent); margin-bottom: 4px; font-family: var(--font-heading); }
.stat-item p { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; }
.contact-form { background: var(--white); border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block; margin-bottom: 8px; font-weight: 600;
  font-size: 0.9rem; color: var(--gray-900);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 14px 18px; border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm); font-size: 0.95rem;
  transition: border-color var(--transition); background: var(--off-white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--accent); background: var(--white);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-info-box {
  background: var(--primary); color: var(--white); border-radius: var(--radius);
  padding: 44px; box-shadow: var(--shadow-lg);
}
.contact-info-box h3 { color: var(--white); margin-bottom: 28px; }
.contact-info-item {
  display: flex; gap: 16px; margin-bottom: 28px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-info-item .ci-icon {
  width: 48px; height: 48px; min-width: 48px; border-radius: 50%;
  background: rgba(200,150,90,0.15); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--accent);
}
.contact-info-item .ci-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}
.contact-info-item h4 { color: var(--white); margin-bottom: 4px; font-family: var(--font-body); }
.contact-info-item p { color: var(--gray-200); font-size: 0.9rem; }
.contact-info-item a { color: var(--accent); transition: color var(--transition); }
.contact-info-item a:hover { color: var(--accent-light); }

/* --- Project Filters --- */
.filter-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-select {
  width: min(100%, 360px);
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(190, 139, 80, 0.22);
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 1;
  isolation: isolate;
  color-scheme: dark;
  background: var(--primary);
  color: var(--gray-200);
  padding: 80px 0 0;
}
/* Tighter footer rhythm (used site-wide with .site-footer--compact-top; default top padding is 80px) */
.site-footer.site-footer--compact-top {
  padding-top: clamp(28px, 4vh, 44px);
}
.site-footer.site-footer--compact-top .footer-grid {
  margin-bottom: clamp(18px, 2.5vh, 28px);
}
.site-footer.site-footer--compact-top .footer-bottom {
  padding: clamp(8px, 1.2vh, 12px) 0 clamp(6px, 1vh, 10px);
}
.site-footer .container {
  text-align: left;
  min-width: 0;
}
/* Overlap CTA/footer boundary by 1px to hide subpixel hairlines when scrolling (inner pages) */
.cta-section + .site-footer {
  margin-top: -1px;
}
/* Brand column: logo, title, and copy stack and align to the left edge */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  direction: ltr;
}
/* Direct child only — avoids affecting nested links; shrink-wrap row so it cannot span/center in column */
.footer-brand > .logo {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* Footer variant: services-style nav (use .site-footer--services-nav on <footer>; services & projects) */
.site-footer--services-nav .footer-grid > .footer-brand {
  min-width: 0;
  max-width: 100%;
  place-self: start;
}
.site-footer--services-nav .footer-brand > .logo {
  gap: clamp(0px, 0.35vw, 4px);
}
.site-footer--services-nav .logo img {
  height: clamp(56px, 14vw, 88px);
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
  display: block;
  /* logo.svg uses a wide viewBox — artwork sits mid-canvas; nudge so optical mass lines up with title text */
  margin-left: clamp(-22px, -4.2vw, -6px);
}
.site-footer--services-nav .footer-brand-title-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  line-height: 1.05;
  min-width: 0;
  font-size: clamp(1.2rem, 3.9vw, 1.85rem);
  letter-spacing: 0.5px;
}
.site-footer--services-nav .footer-brand-title-line {
  display: block;
  font-size: inherit;
}
.site-footer--services-nav .footer-brand p {
  max-width: 100%;
  text-align: left;
}
@media (min-width: 1025px) {
  /* Footer .site-footer--services-nav: brand 24% | center 56% | contact 20% (6+14+5 fr) */
  .site-footer--services-nav .footer-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 14fr) minmax(0, 5fr);
    column-gap: clamp(16px, 3vw, 40px);
    justify-items: stretch;
  }
  .site-footer--services-nav .footer-grid > .footer-brand {
    padding-right: clamp(8px, 1.5vw, 24px);
  }
  .site-footer--services-nav .footer-col-nav {
    min-width: 0;
  }
}

/* "Services" row over three service link columns */
.site-footer--services-nav .footer-nav-sublayout > .footer-nav-block {
  grid-column: 1;
  grid-row: 1 / -1;
}
.site-footer--services-nav .footer-nav-sublayout > .footer-services-heading-row {
  grid-column: 2 / 5;
  grid-row: 1;
  justify-self: stretch;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
  /* Nudge left without transform — translateX() promoted a GPU layer and caused diagonal compositor seams over the dark footer (Chrome/Edge) */
  margin-left: clamp(-28px, -1.4vw, -12px);
}
.site-footer--services-nav .footer-nav-sublayout > .footer-services-subcol:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}
.site-footer--services-nav .footer-nav-sublayout > .footer-services-subcol:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}
.site-footer--services-nav .footer-nav-sublayout > .footer-services-subcol:nth-child(5) {
  grid-column: 4;
  grid-row: 2;
}
.site-footer--services-nav .footer-services-subcol--continued {
  padding-top: 0;
}

.site-footer .footer-col-nav,
.site-footer .footer-col-nav .footer-services-subcol {
  text-align: left;
}
/* Contact column (last grid column): align copy and social icons to the end */
.site-footer .footer-col:not(.footer-col-nav) {
  text-align: right;
}
.site-footer .footer-col:not(.footer-col-nav) .footer-social {
  justify-content: flex-end;
}
.footer-nav-sublayout {
  display: grid;
  /* Quick Links + three service link columns */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
  align-items: start;
  width: 100%;
  min-width: 0;
  /* Same as footer bg so grid gap / subpixel seams never show lighter page background */
  background: var(--primary);
}
/* No vertical gap between Services heading row and service links */
.site-footer--services-nav .footer-nav-sublayout {
  grid-template-rows: auto auto;
  row-gap: 0;
  column-gap: clamp(12px, 2vw, 28px);
  /* Col1 Quick Links | narrower 1st Services (Decks…) | two wider link columns */
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr) minmax(0, 1.19fr) minmax(0, 1.19fr);
}
.footer-services-subcol {
  min-width: 0;
}
.footer-services-subcol > h4 {
  text-align: left;
}
.footer-services-subcol--continued {
  padding-top: 2.75rem;
}
.footer-grid {
  display: grid;
  /* Brand | merged Quick Links + Services | Contact */
  grid-template-columns: minmax(0, 1.65fr) max-content max-content;
  column-gap: clamp(10px, 1.5vw, 20px);
  row-gap: 36px;
  margin-bottom: 60px;
  align-items: start;
  justify-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--primary);
}
.footer-grid > .footer-brand {
  padding-right: clamp(16px, 3vw, 48px);
  min-width: 0;
  place-self: start;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 36rem;
  text-align: left;
}
.footer-col h4 {
  color: var(--white); font-family: var(--font-body); font-weight: 600;
  font-size: 1rem; margin-bottom: 20px; letter-spacing: 0.5px;
}
.footer-col a {
  display: block; color: var(--gray-200); font-size: 0.9rem;
  margin-bottom: 10px; transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 2px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  border-radius: 10px;
  color: var(--gray-200);
  background: rgba(255, 255, 255, 0.06);
  transition: color var(--transition), background var(--transition), transform var(--transition);
}
.footer-social a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.footer-social svg {
  display: block;
  width: 20px;
  height: 20px;
}
.footer-col-nav .footer-services-subcol a {
  white-space: nowrap;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-400);
}
.footer-bottom p {
  margin: 0;
  width: 100%;
  max-width: 100%;
  text-align: center;
}
.footer-credit {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--gray-400);
  text-align: center;
}

/* --- Scroll Animations --- */
.animate { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.animate.visible { opacity: 1; transform: translateY(0); }
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }
.animate-delay-6 { transition-delay: 0.6s; }
.animate-delay-7 { transition-delay: 0.7s; }
.animate-delay-8 { transition-delay: 0.8s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .process-sticky-scroll .process-connectors {
    display: none;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 28px;
  }
  .footer-grid > .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
  .footer-col-nav .footer-services-subcol a {
    white-space: normal;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .header-cta .btn { display: none; }
  .hamburger { display: flex; }
  .services-sticky-panel {
    gap: 4px;
    padding-top: calc(var(--header-height) + 120px);
  }
  .services-visual-col {
    margin-top: 30px;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .services-visual-stack {
    margin-bottom: 0;
  }
  .services-copy-col {
    align-items: center;
    text-align: center;
    padding-top: -20px;
  }
  .services-eyebrow,
  .services-copy-slide h2,
  .services-copy-slide p,
  .services-hint {
    text-align: center;
    margin-inline: auto;
  }
  .hero-typing-headline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-typing-headline__inner {
    font-size: clamp(1.6rem, 7.8vw + 0.25rem, 3.2rem);
    line-height: 1.2;
    white-space: normal;
    text-align: center;
    margin-inline: auto;
  }
  .hero-typing-headline__text {
    white-space: pre-line;
  }
  .hero-intro-stack .scroll-indicator {
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .hero-content h1 {
    font-size: clamp(3rem, 11vw, 4rem);
  }
  .hero-content p .hero-subtitle-tail {
    display: block;
  }
  .page-hero-content p .page-hero-subtitle-tail {
    display: block;
  }
  .section-header p .process-subtitle-tail,
  .process-step p .process-step-tail {
    display: block;
  }
  .section { padding: 70px 0; }
  .section-header { margin-bottom: 40px; }
  .grid-2, .grid-3, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  /* Services page: image above copy on mobile regardless of desktop column order */
  body.page-services .about-grid .about-image { order: 1; }
  body.page-services .about-grid .about-text { order: 2; }
  .grid-4, .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .footer-grid > .footer-brand {
    grid-column: auto;
  }
  .site-footer--services-nav .footer-grid > .footer-brand {
    text-align: center;
    justify-self: center;
    padding-right: 0;
  }
  .site-footer--services-nav .footer-brand > .logo {
    justify-content: center;
    margin-inline: auto;
  }
  .site-footer--services-nav .footer-brand-title-stack {
    align-items: center;
  }
  .site-footer--services-nav .footer-grid > .footer-brand {
    justify-self: center;
    text-align: center;
    padding-right: 0;
  }
  .site-footer--services-nav .footer-brand > .logo {
    justify-content: center;
  }
  .site-footer--services-nav .footer-brand p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .footer-nav-sublayout {
    grid-template-columns: 1fr;
  }
  .footer-services-subcol--continued {
    padding-top: 0;
  }
  .site-footer--services-nav .footer-nav-sublayout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    row-gap: 12px;
    column-gap: 10px;
  }
  .site-footer--services-nav .footer-nav-sublayout > .footer-nav-block {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }
  .site-footer--services-nav .footer-nav-sublayout > .footer-services-heading-row {
    grid-column: 1 / -1;
    grid-row: 2;
    display: block;
    justify-content: initial;
    align-items: initial;
    text-align: center;
    margin-left: 0;
  }
  .site-footer--services-nav .footer-nav-sublayout > .footer-services-subcol:nth-child(3),
  .site-footer--services-nav .footer-nav-sublayout > .footer-services-subcol:nth-child(4),
  .site-footer--services-nav .footer-nav-sublayout > .footer-services-subcol:nth-child(5) {
    grid-row: 3;
    text-align: center;
  }
  .site-footer--services-nav .footer-nav-sublayout > .footer-services-subcol:nth-child(3) {
    grid-column: 1;
  }
  .site-footer--services-nav .footer-nav-sublayout > .footer-services-subcol:nth-child(4) {
    grid-column: 2;
  }
  .site-footer--services-nav .footer-nav-sublayout > .footer-services-subcol:nth-child(5) {
    grid-column: 3;
  }
  .site-footer .footer-col:not(.footer-col-nav) {
    text-align: center;
  }
  .site-footer .footer-col:not(.footer-col-nav) a {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }
  .site-footer .footer-col:not(.footer-col-nav) .footer-social {
    justify-content: center;
    gap: 2px;
  }
  .site-footer .footer-col:not(.footer-col-nav) .footer-social a {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .site-footer .footer-col:not(.footer-col-nav) .footer-social svg {
    width: 20px;
    height: 20px;
  }
  .hero-content h1 { font-size: 2.2rem; }
  .trust-items { gap: 20px; }
  .trust-item { font-size: 0.8rem; }
  .page-hero { height: 35vh; min-height: 280px; }
  /* Inner pages (about, services, projects, contact): clear fixed header on small screens */
  .page-hero-content {
    padding-top: max(2.5rem, calc(var(--header-height) * 0.42 + env(safe-area-inset-top, 0px)));
  }
  .header-phone { display: none; }
}

@media (max-width: 480px) {
  .grid-4, .process-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .contact-form { padding: 28px 20px; }
  .contact-info-box { padding: 28px 20px; }
}
