/* ============================================================
   David Painting & Remodeling — Kansas City
   Cinematic design system
   ============================================================ */

:root {
  --ink: #12100d;
  --coal: #1a1712;
  --coal-2: #211d17;
  --paper: #f6f2ea;
  --cream: #fbf9f4;
  --ivory: #efe9dd;
  --brass: #b98a44;
  --brass-2: #d8b06a;
  --stone: #8f887c;
  --line: rgba(18, 16, 13, 0.12);
  --line-light: rgba(246, 242, 234, 0.16);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, canvas { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--brass); color: var(--cream); }

/* ---------- Film grain overlay ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(2) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(1.5%, -1%); }
  100% { transform: translate(-1%, 1.5%); }
}

/* ---------- Preloader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  transition: opacity 0.7s var(--ease-smooth), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader .loader-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: 0.02em;
}
.loader .loader-mark em { font-style: italic; color: var(--brass-2); }
.loader .loader-bar {
  width: min(220px, 50vw);
  height: 1px;
  background: rgba(246, 242, 234, 0.18);
  overflow: hidden;
}
.loader .loader-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--brass-2);
  transition: width 0.3s ease;
}
.loader .loader-pct {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 480;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 em, h2 em, h3 em, .em-brass {
  font-style: italic;
  color: var(--brass);
}
.section-dark h1 em, .section-dark h2 em, .section-dark h3 em { color: var(--brass-2); }

.h-display { font-size: clamp(2.6rem, 7.2vw, 6.4rem); }
.h-xl { font-size: clamp(2.2rem, 5.4vw, 4.6rem); }
.h-lg { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.h-md { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  color: rgba(18, 16, 13, 0.72);
  max-width: 56ch;
}
.section-dark .lead, .section-coal .lead, .page-hero .lead { color: rgba(246, 242, 234, 0.72); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.6rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ---------- Layout ---------- */
.container {
  width: min(1240px, 100% - clamp(2.4rem, 6vw, 6rem));
  margin-inline: auto;
}
.container-wide { width: min(1520px, 100% - clamp(2rem, 4vw, 4rem)); margin-inline: auto; }

.section { padding-block: clamp(5rem, 11vw, 9.5rem); position: relative; }
.section-dark { background: var(--ink); color: var(--ivory); }
.section-coal { background: var(--coal); color: var(--ivory); }
.section-cream { background: var(--cream); }
.section-ivory { background: var(--ivory); }

.section-head { max-width: 720px; margin-bottom: clamp(2.6rem, 5vw, 4.4rem); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.02rem 2.1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.45s;
  will-change: transform;
}
.btn .btn-arrow { transition: transform 0.45s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn-gold {
  background: linear-gradient(120deg, var(--brass) 0%, var(--brass-2) 100%);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px rgba(185, 138, 68, 0.55);
}
.btn-gold:hover { box-shadow: 0 16px 40px -12px rgba(185, 138, 68, 0.7); }
.btn-ghost {
  border-color: rgba(18, 16, 13, 0.28);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); }
.section-dark .btn-ghost, .section-coal .btn-ghost, .hero-chapter .btn-ghost {
  border-color: rgba(246, 242, 234, 0.35);
  color: var(--ivory);
}
.section-dark .btn-ghost:hover, .section-coal .btn-ghost:hover, .hero-chapter .btn-ghost:hover { border-color: var(--ivory); }

.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  padding-bottom: 4px;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.link-underline:hover::after { transform: scaleX(0.35); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.45s ease, box-shadow 0.45s ease, transform 0.45s var(--ease-out);
}
.site-header .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-header.is-scrolled {
  background: rgba(18, 16, 13, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(246, 242, 234, 0.08);
}
.site-header.is-hidden { transform: translateY(-100%); }

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  color: var(--ivory);
  z-index: 1102;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--brass-2);
  line-height: 1;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-text em { font-style: italic; color: var(--brass-2); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
}
.site-nav a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.78);
  padding: 0.4rem 0;
  transition: color 0.3s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brass-2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ivory); }
.site-nav a:hover::after, .site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header-cta { padding: 0.78rem 1.6rem; font-size: 0.76rem; }

.nav-toggle {
  display: none;
  z-index: 1102;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 1.6px;
  background: var(--ivory);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(4.3px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-4.3px) rotate(-45deg); }

/* Mobile overlay nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 8vw, 5rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-smooth), visibility 0.5s;
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.4rem);
  color: var(--ivory);
  padding: 0.35rem 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out), color 0.3s;
}
.mobile-nav a:hover { color: var(--brass-2); }
.nav-open .mobile-nav a { opacity: 1; transform: none; }
.mobile-nav .mobile-nav-meta {
  margin-top: 2.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: 0;
  transition: opacity 0.6s 0.4s;
}
.nav-open .mobile-nav .mobile-nav-meta { opacity: 1; }

/* ---------- Hero scrub stage ---------- */
.scrub-stage {
  position: relative;
  height: 560vh;
  background: var(--ink);
}
.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.scrub-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scrub-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(10, 9, 7, 0.55) 100%),
    linear-gradient(180deg, rgba(10, 9, 7, 0.5) 0%, transparent 22%, transparent 72%, rgba(10, 9, 7, 0.6) 100%);
}

.hero-chapter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.hero-chapter .container { width: min(1240px, 100% - clamp(2.4rem, 6vw, 6rem)); }
.hero-chapter .chapter-inner { max-width: 780px; }
.hero-chapter.align-center { text-align: center; }
.hero-chapter.align-center .chapter-inner { margin-inline: auto; }
.hero-chapter.align-right .chapter-inner { margin-left: auto; text-align: right; }
.hero-chapter.align-right .eyebrow { flex-direction: row-reverse; }
.hero-chapter h1, .hero-chapter h2 {
  color: var(--ivory);
  text-shadow: 0 2px 40px rgba(10, 9, 7, 0.5);
}
.hero-chapter p {
  color: rgba(246, 242, 234, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  max-width: 52ch;
  text-shadow: 0 1px 20px rgba(10, 9, 7, 0.6);
}
.hero-chapter.align-center p { margin-inline: auto; }
.hero-chapter.align-right p { margin-left: auto; }
.hero-chapter .eyebrow { color: var(--brass-2); }
.hero-chapter .btn, .hero-chapter a { pointer-events: auto; }

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: rgba(246, 242, 234, 0.65);
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  z-index: 5;
  transition: opacity 0.5s;
}
.hero-scroll-cue .cue-line {
  width: 1px;
  height: 52px;
  background: rgba(246, 242, 234, 0.25);
  position: relative;
  overflow: hidden;
}
.hero-scroll-cue .cue-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--brass-2);
  animation: cue-drop 1.8s var(--ease-smooth) infinite;
}
@keyframes cue-drop {
  0% { top: -50%; }
  100% { top: 110%; }
}

/* Chapter progress rail */
.scrub-rail {
  position: absolute;
  right: clamp(1.2rem, 3vw, 2.6rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 6;
}
.scrub-rail i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(246, 242, 234, 0.3);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.scrub-rail i.is-active {
  background: var(--brass-2);
  transform: scale(1.5);
  box-shadow: 0 0 12px rgba(216, 176, 106, 0.8);
}

/* ---------- Manifesto ---------- */
.manifesto .words span {
  display: inline-block;
  opacity: 0.12;
  transition: opacity 0.5s ease;
}
.manifesto .words span.is-lit { opacity: 1; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.section-dark .stats-row, .section-coal .stats-row, .page-hero .stats-row { border-top-color: var(--line-light); }
.stat .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1;
  color: var(--ink);
}
.section-dark .stat .stat-num, .section-coal .stat .stat-num, .page-hero .stat .stat-num { color: var(--ivory); }
.stat .stat-num sup { font-size: 0.45em; color: var(--brass); top: -0.8em; }
.stat .stat-label {
  margin-top: 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.8vw, 1.6rem);
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--coal);
  color: var(--ivory);
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.service-card:hover {
  box-shadow: 0 30px 60px -30px rgba(18, 16, 13, 0.55);
}
.service-card .card-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.service-card .card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter 0.8s;
  filter: saturate(0.92) brightness(0.82);
}
.service-card:hover .card-media img { transform: scale(1.07); filter: saturate(1.05) brightness(0.9); }
.service-card .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(18, 16, 13, 0.05) 30%, rgba(18, 16, 13, 0.88) 100%);
}
.service-card .card-body {
  position: relative;
  padding: 1.6rem 1.6rem 1.5rem;
}
.service-card .card-index {
  position: absolute;
  top: 1.3rem; left: 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(246, 242, 234, 0.55);
}
.service-card h3 { font-size: 1.42rem; margin-bottom: 0.4rem; }
.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(246, 242, 234, 0.68);
  line-height: 1.5;
}
.service-card .card-cta {
  margin-top: 1rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.service-card:hover .card-cta { opacity: 1; transform: none; }

/* ---------- Split media sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.4rem, 6vw, 6rem);
  align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1.15fr; }
.split.reverse .split-media { order: 2; }
.split-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 40px 80px -40px rgba(10, 9, 7, 0.7);
}
.split-media video, .split-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.split-media .media-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(246, 242, 234, 0.22);
  border-radius: 12px;
  pointer-events: none;
}
.split-copy .feature-list {
  list-style: none;
  margin: 1.8rem 0 2.2rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.split-copy .feature-list li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  font-size: 0.98rem;
  color: rgba(246, 242, 234, 0.78);
}
.split-copy .feature-list li::before {
  content: "—";
  color: var(--brass-2);
  flex-shrink: 0;
}
.section:not(.section-dark):not(.section-coal) .split-copy .feature-list li { color: rgba(18, 16, 13, 0.72); }

/* ---------- Before / After ---------- */
.ba-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  box-shadow: 0 40px 90px -40px rgba(10, 9, 7, 0.75);
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-slider .ba-after { clip-path: inset(0 0 0 50%); }
.ba-slider .ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(246, 242, 234, 0.9);
  pointer-events: none;
}
.ba-slider .ba-handle::after {
  content: "↔";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(18, 16, 13, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(246, 242, 234, 0.4);
  color: var(--ivory);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-slider .ba-tag {
  position: absolute;
  bottom: 1.1rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(18, 16, 13, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ivory);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-slider .ba-tag.tag-before { left: 1.1rem; }
.ba-slider .ba-tag.tag-after { right: 1.1rem; color: var(--brass-2); }

/* ---------- Reviews ---------- */
.review-stars {
  display: inline-flex;
  gap: 0.25rem;
  color: var(--brass-2);
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.reviews-carousel {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  min-height: 340px;
}
.review-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  pointer-events: none;
}
.review-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.review-slide blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 420;
  line-height: 1.35;
  color: var(--ivory);
}
.review-slide blockquote::before { content: "“"; color: var(--brass-2); }
.review-slide blockquote::after { content: "”"; color: var(--brass-2); }
.review-slide cite {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}
.review-slide cite b { color: var(--ivory); font-weight: 600; }
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}
.carousel-nav button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(246, 242, 234, 0.25);
  background: transparent;
  color: var(--ivory);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.carousel-nav button:hover { border-color: var(--brass-2); color: var(--brass-2); transform: scale(1.05); }
.carousel-dots { display: flex; justify-content: center; gap: 0.55rem; margin-top: 1.4rem; }
.carousel-dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(246, 242, 234, 0.25);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.carousel-dots i.is-active { background: var(--brass-2); transform: scale(1.3); }

.review-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -30px rgba(18, 16, 13, 0.25);
}
.review-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(18, 16, 13, 0.78);
}
.review-card .review-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.review-card .review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brass) 0%, var(--brass-2) 100%);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-card .review-name { font-weight: 600; font-size: 0.92rem; }
.review-card .review-loc { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  counter-reset: step;
}
.process-step {
  position: relative;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.section-dark .process-step, .section-coal .process-step { border-top-color: var(--line-light); }
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -0.85rem;
  left: 0;
  background: inherit;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--brass);
  padding-right: 0.9rem;
  background: var(--paper);
}
.section-dark .process-step::before { background: var(--ink); color: var(--brass-2); }
.section-cream .process-step::before { background: var(--cream); }
.process-step h3 { font-size: 1.25rem; margin: 0.4rem 0 0.6rem; }
.process-step p { margin: 0; font-size: 0.92rem; color: rgba(18, 16, 13, 0.68); line-height: 1.65; }
.section-dark .process-step p { color: rgba(246, 242, 234, 0.66); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding-block: clamp(1.6rem, 3vw, 2.6rem);
  border-block: 1px solid var(--line-light);
  position: relative;
}
.marquee .marquee-track {
  display: inline-flex;
  align-items: baseline;
  gap: 3.4rem;
  padding-right: 3.4rem;
  animation: marquee-scroll 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .m-city {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  color: var(--ivory);
}
.marquee .m-sep {
  color: var(--brass-2);
  font-size: 1rem;
}
@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

.city-chips { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.city-chip {
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.35s;
}
.city-chip:hover {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.section-dark .city-chip, .section-coal .city-chip { border-color: var(--line-light); color: var(--ivory); }
.section-dark .city-chip:hover, .section-coal .city-chip:hover { background: var(--brass-2); color: var(--ink); border-color: var(--brass-2); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ivory);
  text-align: center;
  padding-block: clamp(7rem, 16vw, 13rem);
}
.cta-banner .cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta-banner .cta-bg img, .cta-banner .cta-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 90% at 50% 100%, rgba(10, 9, 7, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10, 9, 7, 0.72) 0%, rgba(10, 9, 7, 0.45) 45%, rgba(10, 9, 7, 0.78) 100%);
}
.cta-banner .h-display { color: var(--ivory); }
.cta-banner .cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.4rem;
}
.cta-banner .cta-phone {
  margin-top: 1.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.66);
}
.cta-banner .cta-phone a { color: var(--brass-2); font-weight: 600; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--ivory);
  padding-top: calc(var(--header-h) + clamp(4.5rem, 10vw, 8rem));
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.page-hero .page-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}
.page-hero .page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero .page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 16, 13, 0.4) 0%, var(--ink) 100%);
}
.page-hero .container { position: relative; }
.page-hero .breadcrumb {
  display: flex;
  gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.8rem;
}
.page-hero .breadcrumb a:hover { color: var(--brass-2); }

/* ---------- Gallery ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter-btn {
  padding: 0.68rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.8vw, 1.5rem);
}
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  isolation: isolate;
}
.gallery-item.is-hiding { display: none; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .g-tag {
  position: absolute;
  left: 1rem; bottom: 1rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  background: rgba(18, 16, 13, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ivory);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.gallery-item:hover .g-tag { opacity: 1; transform: none; }
.gallery-item.span-2 { grid-column: span 2; aspect-ratio: auto; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(10, 9, 7, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 4rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.lightbox .lightbox-close {
  position: absolute;
  top: 1.4rem; right: 1.6rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(246, 242, 234, 0.3);
  background: transparent;
  color: var(--ivory);
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
}
.lightbox .lightbox-close:hover { border-color: var(--brass-2); transform: rotate(90deg); }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(185, 138, 68, 0.18);
}
.form-note { font-size: 0.82rem; color: var(--stone); margin-top: 1rem; }
.form-success {
  display: none;
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  background: rgba(185, 138, 68, 0.12);
  border: 1px solid rgba(185, 138, 68, 0.4);
  color: var(--ink);
  font-size: 0.95rem;
  margin-top: 1.4rem;
}
.form-success.is-visible { display: block; }

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.contact-block {
  padding: 1.7rem 1.7rem 1.6rem;
  border-radius: 16px;
  background: var(--ink);
  color: var(--ivory);
}
.contact-block h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.contact-block p { margin: 0; font-size: 0.92rem; color: rgba(246, 242, 234, 0.7); line-height: 1.7; }
.contact-block a { color: var(--brass-2); font-weight: 500; }
.contact-block a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0c0b09;
  color: var(--ivory);
  padding: clamp(4rem, 8vw, 6.5rem) 0 2.4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.6rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-light);
}
.footer-brand .brand { margin-bottom: 1.2rem; }
.footer-brand p {
  font-size: 0.92rem;
  color: rgba(246, 242, 234, 0.6);
  max-width: 34ch;
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.3rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-col a {
  font-size: 0.92rem;
  color: rgba(246, 242, 234, 0.75);
  transition: color 0.3s, padding-left 0.3s;
}
.footer-col a:hover { color: var(--brass-2); padding-left: 4px; }
.footer-col .footer-contact-line { font-size: 0.92rem; color: rgba(246, 242, 234, 0.75); }
.footer-col .footer-contact-line a { color: var(--brass-2); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--stone);
}
.footer-bottom .badge-line { display: flex; gap: 1.4rem; }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal].is-inview { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="left"].is-inview, [data-reveal="right"].is-inview { transform: none; }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="scale"].is-inview { transform: none; }

/* ---------- Cursor glow (desktop) ---------- */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--brass-2);
  pointer-events: none;
  z-index: 4000;
  mix-blend-mode: difference;
  transition: transform 0.25s var(--ease-out), opacity 0.3s;
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot { opacity: 0.9; }
}
.cursor-dot.is-grown { transform: scale(3.4); }

/* ---------- Utility ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.text-center { text-align: center; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .scrub-stage { height: 480vh; }
  .scrub-rail { display: none; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 300px; }
  .process-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.span-2 { grid-column: span 1; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text { font-size: 0.95rem; }
  .hero-chapter .chapter-inner { max-width: 100%; }
  .stats-row { gap: 1.6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .grain { display: none; }
}
