/* ═══════════════════════════════════════════════════════
   Sharp Bricklaying — Styles
   ═══════════════════════════════════════════════════════ */

:root {
  --green: #1B4332;
  --green-light: #2d6a4f;
  --terracotta: #4A4F58;
  --terracotta-dark: #363A42;
  --sand: #F0EBE3;
  --charcoal: #1E1E1E;
  --mortar: #7A7670;
  --white: #F7F4F0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  background: var(--sand);
  color: var(--charcoal);
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.loading-active { overflow: hidden; }

/* ─── LOADING SCREEN ─── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #111214;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#loader.done { pointer-events: none; }

#brick-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loader-brand {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(860px, calc(100vw - 48px));
}

.loader-logo-backdrop {
  background: rgba(0,0,0,0.38);
  border-radius: 50%;
  padding: clamp(18px, 3vw, 32px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  width: clamp(160px, 26vw, 260px);
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4));
  display: block;
}

.loader-wordmark {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 52px;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.loader-sub {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: clamp(11px, 1.3vw, 15px);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.95);
  text-transform: none;
  text-wrap: balance;
  line-height: 1.45;
  text-shadow: 0 2px 14px rgba(0,0,0,0.85);
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}

.loader-pct {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 2.2vw, 24px);
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-top: 8px;
  background: rgba(0,0,0,0.68);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 6px 18px;
  min-width: 86px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.wall-panel {
  position: absolute;
  inset: 0;
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
  z-index: 3;
  transform: translateY(0);
  display: flex;
  align-items: center;
  justify-content: center;
}

#loader.reveal .wall-panel { transform: translateY(-100%); }

/* ─── NAV ─── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 52px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  background: linear-gradient(to bottom, rgba(10,22,14,0.72) 0%, rgba(10,22,14,0) 100%);
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: var(--white);
  border-bottom: 2px solid var(--green);
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 72px;
  width: auto;
  transition: opacity 0.2s;
}

.nav-logo:hover img { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links li { position: relative; }

.nav-links a {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  padding: 8px 16px;
  display: block;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 16px; right: 16px;
  height: 2px;
  background: rgba(255,255,255,0.75);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: #fff !important; }

#nav.scrolled .nav-links a { color: var(--charcoal); }
#nav.scrolled .nav-links a:hover { color: var(--green) !important; }

.nav-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.2);
  margin: 0 8px;
}

#nav.scrolled .nav-divider { background: rgba(0,0,0,0.15); }
#nav.scrolled .nav-links a::after { background: var(--green); }

.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 11px 24px;
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  font-weight: 700 !important;
  text-decoration: none;
  border: 2px solid var(--green);
  transition: background 0.2s, border-color 0.2s !important;
  margin-left: 8px;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--terracotta) !important;
  border-color: var(--terracotta) !important;
  color: #fff !important;
}

/* ─── HAMBURGER (MOBILE) ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

#nav.scrolled .nav-hamburger span { background: var(--charcoal); }

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU OVERLAY ─── */
.mobile-menu {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--green);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--terracotta); }

.mobile-menu .mobile-cta {
  margin-top: 24px;
  background: var(--terracotta);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 40px;
  text-decoration: none;
  border: 2px solid var(--terracotta);
  transition: background 0.2s;
}

.mobile-menu .mobile-cta:hover { background: var(--terracotta-dark); }

/* ─── HERO SLIDES ─── */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
  z-index: 1;
}

.hero-slide.active { opacity: 1; }

/* Stacking order: bg(0) → video(1) → gradient(2) → content(3) */
.hero-bg { z-index: 0; }
.hero-gradient { z-index: 2; }

/* ─── HERO ─── */
#hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,67,50,0.95) 0%, rgba(20,30,25,0.65) 45%, rgba(0,0,0,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 80px 100px;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: rgba(255,255,255,0.5);
}

.hero-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.92;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero-sub {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  text-decoration: none;
  border: 2px solid var(--green);
  transition: background 0.2s, border-color 0.2s;
}

.btn-primary:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.btn-outline {
  background: transparent;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.6);
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ─── TICKER ─── */
#ticker {
  background: var(--green);
  padding: 0;
  height: 52px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker-scroll 28s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.ticker-sep {
  width: 6px;
  height: 6px;
  background: var(--terracotta);
  transform: rotate(45deg);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── SECTION SHARED ─── */
section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

section.visible { opacity: 1; transform: translateY(0); }

section[id] { scroll-margin-top: 80px; }

.section-label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--terracotta);
}

.section-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 4vw, 56px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}

/* ─── SERVICES ─── */
#services {
  background: var(--sand);
  padding: 96px 80px;
}

.services-header { margin-bottom: 56px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--white);
  padding: 40px 36px;
  border-top: 3px solid var(--terracotta);
  position: relative;
  transition: box-shadow 0.3s;
}

.service-card:hover { box-shadow: 0 8px 32px rgba(27,67,50,0.12); }

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--green);
}

.service-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mortar);
  margin-bottom: 24px;
}

.service-link {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s, color 0.2s;
}

.service-link:hover { gap: 14px; color: var(--terracotta); }

/* ─── ABOUT ─── */
#about {
  padding: 96px 80px;
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-col { position: relative; isolation: isolate; }

.about-photo-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #d4c9b8;
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-brick-watermark {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 18px, var(--charcoal) 18px, var(--charcoal) 20px
  ),
  repeating-linear-gradient(
    90deg, transparent, transparent 38px, var(--charcoal) 38px, var(--charcoal) 40px
  );
  pointer-events: none;
}

.about-accent-block {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 120px;
  height: 120px;
  background: var(--terracotta);
  z-index: -1;
}

.about-years {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--green);
  color: #fff;
  padding: 20px 24px;
  text-align: center;
}

.about-years strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  color: #fff;
}

.about-years span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.about-text h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 3.5vw, 52px);
  text-transform: uppercase;
  color: var(--green);
  line-height: 1;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.8;
  color: #4a4540;
  margin-bottom: 16px;
}

.about-pullquote {
  border-left: 4px solid var(--green);
  padding: 16px 24px;
  margin: 32px 0;
  background: rgba(27,67,50,0.04);
}

.about-pullquote p {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  font-style: italic;
  color: var(--green);
  line-height: 1.4;
  margin: 0;
}

/* ─── PORTFOLIO ─── */
#portfolio {
  padding: 96px 80px;
  background: var(--sand);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 340px;
  gap: 3px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Layout variants */
.portfolio-item--tall { grid-row: span 2; }
.portfolio-item--wide { grid-column: span 3; }

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img { transform: scale(1.04); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,56,40,0.97) 0%, rgba(20,56,40,0.55) 35%, transparent 65%);
  transform: translateY(calc(100% - 88px));
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.portfolio-item:hover .portfolio-overlay { transform: translateY(0); }

.portfolio-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.portfolio-label h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.portfolio-label span {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
}

.portfolio-cta {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--mortar);
  padding: 24px 32px;
}

.portfolio-cta p {
  font-size: 13px;
  color: var(--mortar);
  letter-spacing: 0.05em;
}

.portfolio-cta a {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── BEFORE & AFTER ─── */
#before-after {
  padding: 96px 80px;
  background: var(--charcoal, #1a1a1a);
  color: #fff;
}

.ba-header {
  text-align: center;
  margin-bottom: 64px;
}

.ba-header .section-label {
  justify-content: center;
  color: rgba(255,255,255,0.5);
}
.ba-header .section-label::before { background: rgba(255,255,255,0.3); }

.ba-header .section-heading {
  color: #fff;
}

.ba-intro {
  max-width: 560px;
  margin: 16px auto 0;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.ba-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 20px auto 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 2px;
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.ba-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ba-img-wrap {
  position: relative;
  overflow: hidden;
}

.ba-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ba-card:hover .ba-img-wrap img { transform: scale(1.03); }

.ba-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.85);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 12px;
  backdrop-filter: blur(4px);
}

.ba-tag--after {
  background: var(--green);
  color: #fff;
}

.ba-caption {
  padding: 24px 0 0;
}

.ba-caption h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 8px;
}

.ba-caption p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.ba-divider-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  margin-top: -48px; /* visually align with image centre */
}

.ba-extra-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 3px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.ba-extra-item {
  overflow: hidden;
  height: 340px;
}

.ba-extra-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ba-extra-item:hover img { transform: scale(1.04); }

.ba-section-divider {
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 1100px;
  margin: 64px auto 48px;
}

/* ─── PRESS ─── */
#press {
  padding: 72px 80px;
  background: var(--white);
  text-align: center;
}

#press .section-label { justify-content: center; }
#press .section-label::before { display: none; }

.press-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  margin: 48px 0 40px;
}

.press-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  filter: grayscale(1);
  transition: opacity 0.2s;
}

.press-logo:hover { opacity: 0.7; }

.press-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
}

.press-logo small {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mortar);
}

.press-quote {
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--mortar);
  font-style: italic;
  line-height: 1.7;
  border-top: 1px solid #ddd;
  padding-top: 32px;
}

/* ─── CONTACT ─── */
#contact {
  background: var(--green);
  padding: 96px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 4.5vw, 64px);
  text-transform: uppercase;
  color: #fff;
  line-height: 0.95;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.contact-text p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-detail:hover { color: #fff; }

.contact-detail svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.social-btn:hover {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.form-group select { cursor: pointer; }
.form-group select option { background: var(--green); color: #fff; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* Form validation states */
.form-group input:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}

.form-group input:valid:not(:placeholder-shown) {
  border-color: rgba(255,255,255,0.4);
}

.form-status {
  font-size: 14px;
  padding: 12px 16px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-left: 3px solid #2ecc71;
}

.form-status.error {
  display: block;
  background: rgba(255,255,255,0.08);
  color: #e74c3c;
  border-left: 3px solid #e74c3c;
}

.btn-terracotta {
  background: var(--terracotta);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.btn-terracotta:hover { background: var(--terracotta-dark); }

.btn-terracotta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─── FOOTER ─── */
#footer {
  background: var(--charcoal);
  padding: 64px 80px 0;
  position: relative;
  overflow: hidden;
}

.footer-texture {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta) 0%, var(--terracotta) 60%, transparent 100%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 72px;
  padding: 64px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  text-align: center;
}

.footer-brand img {
  width: min(620px, 100%);
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.footer-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e8dcc5;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.footer-col ul a::before {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width 0.2s;
  flex-shrink: 0;
}

.footer-col ul a:hover { color: rgba(255,255,255,0.9); }
.footer-col ul a:hover::before { width: 12px; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer-social-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: all 0.2s;
}

.footer-social-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: rgba(193,68,14,0.08);
}

.footer-affiliates {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-affiliates h4 {
  margin-bottom: 16px;
}

.footer-affiliate-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-affiliate-link {
  width: min(104px, 100%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.footer-affiliate-link:hover {
  color: var(--terracotta);
  transform: translateY(-2px);
}

.footer-affiliate-link img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.12));
}

.sponsor-profile-btn {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 13px 8px 8px;
  border: 1px solid rgba(232,220,197,0.22);
  background:
    linear-gradient(135deg, rgba(232,220,197,0.12) 0%, rgba(232,220,197,0.02) 100%),
    rgba(8,20,16,0.38);
  color: rgba(245,237,220,0.84);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}

.sponsor-profile-btn::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--terracotta);
  opacity: 0.85;
}

.sponsor-profile-btn:hover,
.sponsor-profile-btn:focus-visible {
  border-color: rgba(193,68,14,0.7);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(193,68,14,0.2) 0%, rgba(232,220,197,0.04) 100%),
    rgba(8,20,16,0.58);
  transform: translateY(-2px);
  outline: none;
}

.sponsor-profile-btn__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  background: rgba(193,68,14,0.12);
}

.sponsor-profile-btn__text {
  transform: translateY(1px);
}

.footer-bottom {
  position: relative;
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
}

.footer-legal {
  text-align: right;
  line-height: 1.6;
}

.footer-bottom a {
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.5); }

.c4-footer-credit {
  min-width: 132px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  touch-action: manipulation;
}

.c4-footer-credit__fallback {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.34);
  white-space: nowrap;
}

.c4-footer-credit[data-c4-ready="true"] .c4-footer-credit__fallback {
  display: none;
}

/* Sponsor profile modal */
.sponsor-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.sponsor-profile-modal[hidden] {
  display: none;
}

.sponsor-profile-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,14,11,0.78) 0%, rgba(5,14,11,0.94) 100%),
    radial-gradient(circle at 72% 18%, rgba(193,68,14,0.22), transparent 36%);
  backdrop-filter: blur(10px);
}

.sponsor-profile-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 56px));
  max-height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
}

.sponsor-profile-modal__close {
  appearance: none;
  border: 1px solid rgba(232,220,197,0.24);
  background: rgba(12,29,22,0.88);
  color: #f5eddc;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-left: auto;
  margin-bottom: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.sponsor-profile-modal__close:hover,
.sponsor-profile-modal__close:focus-visible {
  background: rgba(20,46,35,0.96);
  border-color: rgba(232,220,197,0.44);
  transform: translateY(-1px);
  outline: none;
}

.sponsor-profile-modal__close kbd {
  border: 1px solid rgba(232,220,197,0.2);
  background: rgba(255,255,255,0.04);
  color: rgba(245,237,220,0.72);
  padding: 4px 7px;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.sponsor-profile-card {
  position: relative;
  overflow: auto;
  background: linear-gradient(180deg, rgba(255,250,240,0.98) 0%, rgba(238,229,213,0.98) 100%);
  border: 1px solid rgba(232,220,197,0.44);
  color: var(--charcoal);
  box-shadow: 0 34px 90px rgba(0,0,0,0.44), inset 0 0 0 1px rgba(255,255,255,0.56);
  padding: 34px 34px 30px 42px;
}

.sponsor-profile-card__rail {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 8px;
  background: repeating-linear-gradient(180deg, var(--terracotta) 0px, var(--terracotta) 42px, #eadcc5 42px, #eadcc5 48px);
}

.sponsor-profile-card__header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(27,67,50,0.14);
}

.sponsor-profile-card__header img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(27,67,50,0.14));
}

.sponsor-profile-card__label {
  margin-bottom: 6px;
  color: var(--terracotta);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.sponsor-profile-card h2 {
  color: var(--green);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

.sponsor-profile-card__body {
  display: grid;
  gap: 15px;
}

.sponsor-profile-card__body p {
  color: rgba(39,45,43,0.78);
  font-size: 15px;
  line-height: 1.75;
}

.sponsor-profile-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--green);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s, transform 0.2s;
}

.sponsor-profile-card__link:hover,
.sponsor-profile-card__link:focus-visible {
  color: var(--terracotta);
  transform: translateX(3px);
  outline: none;
}

body.sponsor-profile-open {
  overflow: hidden;
}

/* ─── DIVIDER ─── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,14,11,0.78) 0%, rgba(5,14,11,0.92) 100%),
    radial-gradient(circle at top, rgba(193,68,14,0.18), transparent 42%);
  backdrop-filter: blur(10px);
}

.gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 56px));
}

.gallery-lightbox__close {
  appearance: none;
  border: 1px solid rgba(232,220,197,0.24);
  background: rgba(12,29,22,0.88);
  color: #f5eddc;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-left: auto;
  margin-bottom: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.gallery-lightbox__close:hover {
  background: rgba(20,46,35,0.96);
  border-color: rgba(232,220,197,0.44);
  transform: translateY(-1px);
}

.gallery-lightbox__close kbd {
  border: 1px solid rgba(232,220,197,0.2);
  background: rgba(255,255,255,0.04);
  color: rgba(245,237,220,0.72);
  padding: 4px 7px;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.gallery-lightbox__frame {
  position: relative;
  background: linear-gradient(180deg, rgba(255,250,240,0.97) 0%, rgba(242,235,221,0.96) 100%);
  border: 1px solid rgba(232,220,197,0.26);
  box-shadow: 0 34px 90px rgba(0,0,0,0.44), inset 0 0 0 1px rgba(255,255,255,0.52);
  padding: 28px;
}

.gallery-lightbox__frame-accent {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--terracotta) 0px, var(--terracotta) 42px, #eadcc5 42px, #eadcc5 47px);
}

.gallery-lightbox__figure {
  margin: 22px 0 0;
  background: linear-gradient(180deg, rgba(27,67,50,0.03) 0%, rgba(27,67,50,0.08) 100%);
  min-height: min(72vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-lightbox__figure img {
  max-width: 100%;
  max-height: min(72vh, 760px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

#gallery img,
#before-after img {
  cursor: zoom-in;
}

body.lightbox-open {
  overflow: hidden;
}

.brick-divider {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--terracotta) 0px,
    var(--terracotta) 38px,
    var(--sand) 38px,
    var(--sand) 42px
  );
}

/* ─── TRUSTED BY ─── */
#trusted-by {
  background: var(--charcoal);
  padding: 56px 80px;
}

.trusted-label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-bottom: 40px;
}

.builders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.builder-card {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255,255,255,0.03);
  border-top: 2px solid var(--green);
  transition: background 0.3s;
}

.builder-card:hover { background: rgba(255,255,255,0.06); }

.builder-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.builder-type {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ─── SKIP TO CONTENT (A11Y) ─── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--green);
  color: #fff;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus { top: 16px; }

/* ─── ACTIVE NAV LINK ─── */
.nav-links a.active::after { transform: scaleX(1); }
#nav.scrolled .nav-links a.active { color: var(--green) !important; }

/* ─── BACK TO TOP BUTTON ─── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 48px;
  height: 48px;
  background: var(--green);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover { background: var(--terracotta); }

/* ─── SERVICE GALLERY ─── */
#gallery {
  padding: 96px 80px;
  background: var(--sand);
}

.gallery-header {
  margin-bottom: 72px;
}

.gallery-intro-text {
  margin-top: 18px;
  font-size: 15px;
  color: var(--mortar);
  line-height: 1.75;
  max-width: 620px;
}

.gallery-group {
  margin-bottom: 0;
}

.gallery-group-meta {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.gallery-group-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 72px;
  line-height: 0.85;
  color: rgba(27,67,50,0.1);
  flex-shrink: 0;
  letter-spacing: -0.03em;
  user-select: none;
  margin-top: 4px;
}

.gallery-group-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  margin-bottom: 6px;
  line-height: 1.1;
}

.gallery-group-desc {
  font-size: 13px;
  color: var(--mortar);
  line-height: 1.75;
  max-width: 540px;
}

.gallery-group-divider {
  border: none;
  border-top: 1px solid rgba(122,118,112,0.2);
  margin: 64px 0;
}

/* Progression strip — 3 images + arrows */
.gallery-progression {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: center;
  height: 400px;
}

.gallery-prog-step {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.gallery-prog-step img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-prog-step:hover img { transform: scale(1.04); }

.gallery-prog-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(27,67,50,0.95) 0%, transparent 100%);
  padding: 28px 16px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.gallery-prog-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  opacity: 0.4;
}

/* 2-column pair */
.gallery-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  height: 380px;
}

.gallery-2col .gallery-item {
  overflow: hidden;
}

.gallery-2col .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-2col .gallery-item:hover img { transform: scale(1.04); }

/* 3-column equal grid */
.gallery-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3px;
  height: 400px;
}

.gallery-3col .gallery-item {
  overflow: hidden;
}

.gallery-3col .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-3col .gallery-item:hover img { transform: scale(1.04); }

/* 5-image grid: 1 hero landscape + 4 thumbs below */
.gallery-5grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 360px 240px;
  gap: 3px;
}

.gallery-5grid .gallery-item {
  overflow: hidden;
}

.gallery-5grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-5grid .gallery-item:hover img { transform: scale(1.04); }

.gallery-5grid .gallery-item--feature {
  grid-column: span 2;
  grid-row: 1;
}

.gallery-5grid .gallery-item--side {
  grid-column: 3;
  grid-row: 1;
}

/* Stacked before/after image cards */
.ba-card--stacked {
  display: grid;
  grid-template-rows: none;
  grid-auto-rows: 280px;
  gap: 3px;
}

.ba-card--stacked .ba-img-wrap img {
  height: 100%;
}

.ba-card--contained .ba-img-wrap {
  background: rgba(255,255,255,0.05);
}

.ba-card--contained .ba-img-wrap img {
  object-fit: contain;
  object-position: center;
  background: rgba(19,32,27,0.28);
}

/* 2×2 service quad */
.gallery-4quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 40px;
}

.gallery-quad-label {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
}

.gallery-quad-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 48px;
  line-height: 0.85;
  color: rgba(27,67,50,0.1);
  flex-shrink: 0;
  letter-spacing: -0.03em;
  user-select: none;
  margin-top: 2px;
}

.gallery-item--sq {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.gallery-item--sq img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item--sq:hover img { transform: scale(1.04); }

.gallery-job-tabs {
  max-width: 1180px;
}

.gallery-tabs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.gallery-tabs-header .gallery-group-num {
  display: block;
  margin-bottom: 10px;
}

.gallery-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.gallery-tab {
  appearance: none;
  border: 1px solid rgba(27,67,50,0.2);
  background: rgba(255,255,255,0.38);
  color: var(--charcoal);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-height: 62px;
  padding: 11px 18px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.gallery-tab-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.05;
}

.gallery-tab-suburb {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
  line-height: 1;
  opacity: 0.62;
}

.gallery-tab:hover {
  border-color: rgba(27,67,50,0.48);
  transform: translateY(-1px);
}

.gallery-tab.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.gallery-tab.active .gallery-tab-suburb {
  opacity: 0.78;
}

.gallery-job-panel[hidden] {
  display: none;
}

.gallery-job-panel .gallery-group-meta {
  margin-bottom: 24px;
}

.job-media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 4px;
}

.job-media-item {
  overflow: hidden;
  background: rgba(27,67,50,0.08);
}

.job-media-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.job-media-item--panorama {
  grid-column: span 3;
}

.job-media-item img,
.job-media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.job-media-item--contain {
  background: rgba(27,67,50,0.04);
}

.job-media-item--contain img,
.job-media-item--contain video {
  object-fit: contain;
  object-position: center;
}

.job-media-item--portrait img {
  object-position: center top;
}

.job-media-item:hover img,
.job-media-item:hover video {
  transform: scale(1.04);
}

.job-footage-section {
  margin-top: 28px;
  border-top: 1px solid rgba(27,67,50,0.18);
  padding-top: 22px;
}

.job-footage-header {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.job-footage-header span {
  color: rgba(27,67,50,0.62);
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.job-footage-header h4 {
  color: var(--charcoal);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.job-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  max-width: 1040px;
}

.job-video-card {
  background: #10110f;
  border: 1px solid rgba(27,67,50,0.2);
  margin: 0;
  overflow: hidden;
}

.job-video-card video {
  aspect-ratio: 16 / 9;
  background: #10110f;
  display: block;
  width: 100%;
}

.gallery-item--single {
  max-width: 920px;
  height: 540px;
}

/* Mosaic grid — clean brickwork */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  grid-auto-rows: 220px;
}

.gallery-mosaic-item {
  overflow: hidden;
}

.gallery-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-mosaic-item:hover img { transform: scale(1.04); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .loader-brand {
    max-width: min(560px, calc(100vw - 36px));
    gap: 12px;
  }
  .loader-logo { width: clamp(140px, 36vw, 200px); }
  .loader-sub {
    letter-spacing: 0.04em;
    font-size: clamp(12px, 3.5vw, 14px);
    line-height: 1.35;
    padding: 7px 16px;
  }
  .loader-pct {
    font-size: clamp(15px, 4.2vw, 20px);
    padding: 6px 16px;
    min-width: 82px;
  }
  #nav {
    padding: 0 max(24px, env(safe-area-inset-left, 24px)) 0 max(24px, env(safe-area-inset-right, 24px));
  }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-content { padding: 0 24px calc(56px + env(safe-area-inset-bottom, 0px)); }
  #services { padding: 64px 32px; }
  .services-grid { grid-template-columns: 1fr; gap: 2px; }
  #about { padding: 64px 32px; grid-template-columns: 1fr; gap: 40px; }
  #portfolio { padding: 64px 32px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 280px; }
  .portfolio-item--tall { grid-row: span 1; }
  .portfolio-item--wide { grid-column: span 2; }
  #before-after { padding: 64px 32px; }
  .ba-grid { grid-template-columns: 1fr; gap: 0; }
  .ba-divider-arrow { transform: rotate(90deg); padding: 16px 0; margin-top: 0; }
  .ba-img-wrap img { height: 280px !important; }
  .ba-extra-photos { grid-template-columns: 1fr; }
  .ba-extra-item { height: 260px; }
  .ba-card--stacked {
    grid-auto-rows: 220px;
  }
  .ba-card--stacked .ba-img-wrap img {
    height: 100% !important;
  }
  .ba-card--contained .ba-img-wrap img {
    height: 100% !important;
  }
  #press { padding: 56px 32px; }
  .press-logos { gap: 32px; }
  #contact { padding: 64px 32px; grid-template-columns: 1fr; gap: 48px; }
  #footer { padding: 48px 32px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand img { width: min(260px, 100%); margin: 0 auto 20px; }
  .footer-affiliate-feature { gap: 14px; }
  #trusted-by { padding: 48px 32px; }
  .builders-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  #gallery { padding: 64px 24px; }
  .gallery-progression { grid-template-columns: 1fr; height: auto; }
  .gallery-prog-step { height: 280px; }
  .gallery-prog-arrow { transform: rotate(90deg); padding: 8px 0; }
  .gallery-2col { grid-template-columns: 1fr; height: auto; }
  .gallery-2col .gallery-item { height: 260px; }
  .gallery-3col { grid-template-columns: 1fr; height: auto; }
  .gallery-3col .gallery-item { height: 260px; }
  .gallery-5grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: 240px;
  }
  .gallery-5grid .gallery-item--feature,
  .gallery-5grid .gallery-item--side {
    grid-column: 1;
    grid-row: auto;
  }
  .ba-card--stacked .ba-img-wrap img { height: 220px; }
  .gallery-4quad { grid-template-columns: 1fr; gap: 40px; }
  .gallery-item--single {
    max-width: none;
    height: 320px;
  }
  .gallery-tabs-header {
    display: block;
  }
  .gallery-tab-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .gallery-tab {
    justify-content: center;
    width: 100%;
  }
  .job-media-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .job-footage-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .job-footage-header h4 {
    font-size: 23px;
  }
  .job-video-grid {
    grid-template-columns: 1fr;
  }
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  /* Prevent iOS auto-zoom on input focus (requires font-size >= 16px) */
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }
}

@media (max-width: 480px) {
  .hero-heading { font-size: clamp(40px, 12vw, 56px); }
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .ba-img-wrap img { height: 220px !important; }
  .builders-grid { grid-template-columns: 1fr 1fr; }
  .press-logos { flex-direction: column; gap: 24px; }
  .portfolio-cta { flex-direction: column; gap: 16px; text-align: center; }
  .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
  .gallery-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-item--sq { height: 220px; }
  .gallery-group-meta {
    gap: 14px;
  }
  .gallery-group-num {
    font-size: 56px;
  }
  .job-media-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .job-footage-section {
    margin-top: 22px;
  }
  .job-video-card video {
    aspect-ratio: 4 / 5;
  }
  .job-media-item:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }
  .job-media-item--panorama {
    grid-column: span 1;
  }
  .nav-logo img {
    height: 58px;
  }
  .footer-brand img {
    width: 160px;
    margin: 0 auto 20px;
  }
  .footer-affiliate-feature {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-affiliate-link {
    width: 118px;
  }
  .sponsor-profile-btn {
    width: min(100%, 190px);
    justify-content: flex-start;
  }
  .sponsor-profile-modal {
    padding: 18px;
  }
  .sponsor-profile-modal__dialog {
    width: min(100vw - 36px, 680px);
    max-height: 88vh;
  }
  .sponsor-profile-modal__close {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .sponsor-profile-card {
    padding: 26px 20px 24px 28px;
  }
  .sponsor-profile-card__header {
    align-items: flex-start;
    gap: 14px;
  }
  .sponsor-profile-card__header img {
    width: 58px;
    height: 58px;
  }
  .sponsor-profile-card__body p {
    font-size: 14px;
    line-height: 1.68;
  }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-legal {
    text-align: center;
  }
  .c4-footer-credit {
    min-width: 150px;
    min-height: 52px;
  }
  .gallery-lightbox {
    padding: 18px;
  }
  .gallery-lightbox__dialog {
    width: min(100vw - 36px, 760px);
  }
  .gallery-lightbox__frame {
    padding: 18px;
  }
  .gallery-lightbox__frame-accent {
    top: 14px;
    left: 14px;
    right: 14px;
  }
  .gallery-lightbox__close {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .gallery-lightbox__figure {
    min-height: 0;
  }
  .gallery-lightbox__figure img {
    max-height: min(64vh, 560px);
  }
  .footer-bottom p { font-size: 11px; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  section { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .hero-bg { will-change: auto; }
}

/* ─── PRINT STYLESHEET ─── */
@media print {
  /* Hide non-essential elements */
  #loader, #nav, #ticker, .brick-divider, .back-to-top,
  .mobile-menu, .hero-ctas, .contact-social,
  .portfolio-overlay, .footer-social, .footer-social-btn,
  .nav-hamburger { display: none !important; }

  /* Reset backgrounds and colors for print */
  body { background: #fff; color: #000; font-size: 12pt; }
  section { opacity: 1 !important; transform: none !important; }

  /* Hero adjustments */
  #hero { height: auto; min-height: auto; page-break-after: always; }
  .hero-bg, .hero-gradient { display: none; }
  .hero-content { position: static; padding: 32px 0; color: #000; }
  .hero-heading { color: #000; text-shadow: none; font-size: 36pt; }
  .hero-sub { color: #333; }
  .hero-eyebrow { color: #666; }

  /* Sections */
  #services, #about, #portfolio, #before-after, #press, #contact {
    padding: 24px 0;
    background: #fff;
    page-break-inside: avoid;
  }

  #contact { display: block; }
  .contact-form { display: none; }
  .contact-text h2 { color: #000; }
  .contact-text p { color: #333; }
  .contact-detail { color: #000; }

  /* Footer */
  #footer { background: #fff; padding: 16px 0; }
  .footer-grid { display: block; }
  .footer-bottom p { color: #666; }

  /* Stats/Builders */
  #trusted-by { background: #111; }
  .builder-name { color: #000; }
  .builder-type { color: #666; }
  .builder-card { border-top-color: #000; background: #fff; }

  /* Images */
  img { max-width: 100%; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Links */
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  a[href^="#"]::after { content: none; }
  a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
}
