/* ==========================================================================
   Terra Alta Construction — Design System
   Palette: ink / cream / gold. Type: Archivo (display + body), Instrument Serif (accent italics)
   ========================================================================== */

:root {
  --ink: #0d0c0a;
  --ink-2: #11100c;
  --ink-3: #14120e;
  --ink-4: #1b1813;
  --cream: #f2efe8;
  --cream-2: #d8d2c6;
  --cream-3: #b3aa9a;
  --muted: #97907f;
  --muted-2: #6f6857;
  --gold: #c99f52;
  --gold-2: #e0b96c;
  --gold-3: #8a6a31;
  --line: rgba(242, 239, 232, 0.08);
  --line-2: rgba(242, 239, 232, 0.14);
  --gold-line: rgba(201, 159, 82, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 40px);
  --nav-h: 76px;
  --font: 'Archivo', system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', 'Source Serif 4', Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold-2); }
::selection { background: var(--gold); color: var(--ink); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Film grain overlay for depth */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
.display { font-size: clamp(44px, 7.5vw, 104px); line-height: .98; letter-spacing: -0.03em; }
.h2 { font-size: clamp(32px, 4.2vw, 56px); }
.h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ''; width: 28px; height: 1px; background: var(--gold); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--cream-3); }
.serif-accent { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold-2); letter-spacing: 0; }
.muted { color: var(--muted); }
p { margin: 0; }
.section-head { max-width: 680px; }
.section-head h2 { margin-top: 18px; }
.section-head .lead { margin-top: 18px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 8px; font-weight: 800; font-size: 15px; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; transition: transform .35s var(--ease), background .3s, border-color .3s, color .3s, box-shadow .35s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(201,159,82,.6); }
.btn--gold:hover { background: var(--gold-2); color: var(--ink); transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(201,159,82,.75); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(242,239,232,.28); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow .arrow { transition: transform .3s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000; background: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px;
  transition: opacity .7s var(--ease-io), visibility .7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark { width: 84px; height: 84px; }
.preloader__mark polygon { transform-origin: center; }
.preloader__bar { width: 160px; height: 2px; background: rgba(242,239,232,.1); overflow: hidden; border-radius: 2px; }
.preloader__bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .4s var(--ease); }
.preloader__text { font-size: 11px; letter-spacing: .3em; color: var(--muted); font-weight: 600; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background .4s, border-color .4s, transform .5s var(--ease), height .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(13,12,10,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__logo img { height: 56px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.nav__links a { color: var(--cream-2); position: relative; padding: 6px 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a:hover, .nav__links a.is-active { color: var(--cream); }
.nav__cta { display: flex; align-items: center; gap: 20px; }
.nav__phone { color: var(--cream); font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.nav__phone svg { width: 16px; height: 16px; color: var(--gold); }
.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); background: transparent; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav__burger span { width: 20px; height: 2px; background: var(--cream); transition: transform .3s, opacity .3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 890; background: var(--ink); padding: calc(var(--nav-h) + 24px) var(--pad) 40px;
  display: flex; flex-direction: column; gap: 6px; transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a { font-size: clamp(30px, 8vw, 44px); font-weight: 900; color: var(--cream); padding: 10px 0; border-bottom: 1px solid var(--line); letter-spacing: -.02em; }
.mobile-menu a:hover { color: var(--gold-2); }
.mobile-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 950; background: transparent; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-3), var(--gold), var(--gold-2)); transform: scaleX(0); transform-origin: left; }

/* ==========================================================================
   3D SCROLL PARALLAX HERO
   The hero is a tall scroll track. A sticky viewport inside holds a perspective
   "scene". Layers are positioned at different Z depths; as you scroll the camera
   flies forward through the scene, so near layers move faster than far ones.
   Swap images by editing the <img> tags in index.html. Depths via data-z.
   ========================================================================== */
.hero3d { position: relative; height: 260vh; background: var(--ink); z-index: 1; }
.hero3d__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero3d__scene { position: absolute; inset: 0; perspective: 1200px; perspective-origin: 50% 45%; }
.hero3d__world { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.hero3d__layer {
  position: absolute; left: 50%; top: 50%; width: 100vw; height: 100vh; height: 100svh;
  transform-style: preserve-3d; will-change: transform, opacity;
  backface-visibility: hidden;
}
.hero3d__layer img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero3d__layer--sky::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,12,10,.25) 0%, rgba(13,12,10,0) 40%, rgba(13,12,10,.1) 100%); }
.hero3d__layer--house {
  width: min(104vw, 190vh); height: auto; aspect-ratio: 21/9;
  border-radius: 0;
  -webkit-mask-image: radial-gradient(ellipse 68% 60% at 50% 60%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 68% 60% at 50% 60%, #000 50%, transparent 100%);
}
.hero3d__card {
  position: absolute; left: 50%; top: 50%;
  width: clamp(150px, 20vw, 300px); aspect-ratio: 4/3; overflow: hidden; border-radius: 10px;
  border: 1px solid rgba(242,239,232,.14); box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(201,159,82,.15);
  will-change: transform, opacity; backface-visibility: hidden;
}
.hero3d__card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero3d__card span {
  position: absolute; left: 12px; bottom: 10px; font-size: 10px; letter-spacing: .22em; font-weight: 700; color: var(--cream);
  background: rgba(13,12,10,.65); padding: 5px 9px; border-radius: 4px; backdrop-filter: blur(6px);
}
.hero3d__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, rgba(13,12,10,.75) 100%); }
.hero3d__fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(13,12,10,.2) 0%, rgba(13,12,10,0) 30%, rgba(13,12,10,0) 55%, var(--ink) 100%); }
.hero3d__dim { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; will-change: opacity; }
.hero3d__content {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--nav-h) + 20px) var(--pad) 12vh; will-change: transform, opacity; pointer-events: none;
}
.hero3d__content > * { pointer-events: auto; }
.hero3d__kicker { font-size: 12px; font-weight: 700; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; margin-bottom: 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero3d__kicker i { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
.hero3d__title { max-width: 14ch; text-shadow: 0 10px 60px rgba(0,0,0,.6); }
.hero3d__title .line { display: block; overflow: hidden; }
.hero3d__title .line > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.is-ready .hero3d__title .line:nth-child(1) > span { transform: none; transition-delay: .15s; }
.is-ready .hero3d__title .line:nth-child(2) > span { transform: none; transition-delay: .28s; }
.hero3d__sub { margin-top: 28px; max-width: 58ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--cream-2); text-shadow: 0 2px 20px rgba(0,0,0,.7); opacity: 0; transform: translateY(16px); transition: all .9s var(--ease) .5s; }
.hero3d__cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; justify-content: center; opacity: 0; transform: translateY(16px); transition: all .9s var(--ease) .65s; }
.hero3d__trust { margin-top: 32px; font-size: 13px; color: var(--cream-3); font-weight: 500; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; opacity: 0; transition: opacity 1s var(--ease) .9s; }
.hero3d__trust b { color: var(--gold); letter-spacing: .1em; }
.is-ready .hero3d__sub, .is-ready .hero3d__cta, .is-ready .hero3d__trust { opacity: 1; transform: none; }
.hero3d__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .3em; color: var(--muted); font-weight: 700; }
.hero3d__scroll i { width: 1px; height: 44px; background: linear-gradient(180deg, var(--gold), transparent); animation: scrollHint 2s var(--ease-io) infinite; }
@keyframes scrollHint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Stats bar ---------- */
.stats { position: relative; z-index: 2; background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; padding: 40px 0; }
.stat__num { font-size: clamp(34px, 3.6vw, 48px); font-weight: 900; letter-spacing: -.03em; color: var(--cream); line-height: 1; }
.stat__num.gold { color: var(--gold); }
.stat__num small { font-size: .5em; color: var(--muted); font-weight: 700; }
.stat__label { margin-top: 8px; font-size: 12px; letter-spacing: .16em; color: var(--muted); font-weight: 700; text-transform: uppercase; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--ink); padding: 18px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-size: clamp(16px, 1.8vw, 22px); font-weight: 900; letter-spacing: .12em; color: var(--cream-3); text-transform: uppercase; display: flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee__track span::after { content: '◆'; color: var(--gold); font-size: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 56px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
  color: var(--cream);
}
.svc-card:hover { transform: translateY(-6px); border-color: var(--gold-line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); color: var(--cream); }
.svc-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-card:hover .svc-card__media img { transform: scale(1.06); }
.svc-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20,18,14,.9) 100%); }
.svc-card__num { position: absolute; top: 16px; left: 16px; font-size: 11px; letter-spacing: .2em; font-weight: 800; color: var(--gold); background: rgba(13,12,10,.7); padding: 6px 10px; border-radius: 4px; backdrop-filter: blur(6px); z-index: 1; }
.svc-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-card__body h3 { font-size: 24px; display: flex; justify-content: space-between; align-items: center; }
.svc-card__body h3 .arrow { color: var(--gold); font-size: 20px; transition: transform .3s var(--ease); }
.svc-card:hover h3 .arrow { transform: translate(4px, -4px); }
.svc-card__body p { color: var(--cream-3); font-size: 15px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag { font-size: 12px; font-weight: 600; color: var(--cream-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; }

/* ==========================================================================
   PARALLAX SHOWCASE (second parallax section)
   Stacked sticky panels. Each panel's background image moves at a slower rate
   than the scroll, revealing depth. Add / swap images inside .showcase__panel.
   ========================================================================== */
.showcase { position: relative; }
.showcase__panel { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: flex-end; }
.showcase__bg { position: absolute; inset: -20% 0; will-change: transform; }
.showcase__bg img { width: 100%; height: 100%; object-fit: cover; }
.showcase__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,12,10,.35) 0%, rgba(13,12,10,.15) 40%, rgba(13,12,10,.85) 100%); }
.showcase__inner { position: relative; z-index: 2; width: 100%; padding: 0 0 clamp(56px, 8vw, 110px); }
.showcase__text {
  max-width: 640px; will-change: transform, opacity;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 44px);
  background: linear-gradient(160deg, rgba(13,12,10,.62), rgba(13,12,10,.42));
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(242,239,232,.14); border-top-color: rgba(242,239,232,.26);
  border-radius: 16px;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08);
}
.showcase__text h2 { margin-top: 18px; font-size: clamp(36px, 5vw, 72px); line-height: .98; }
.showcase__text p { margin-top: 20px; font-size: clamp(16px, 1.5vw, 19px); color: var(--cream-2); max-width: 52ch; }
.showcase__index { position: absolute; right: var(--pad); bottom: clamp(56px, 8vw, 110px); font-size: 12px; letter-spacing: .3em; font-weight: 700; color: var(--gold); z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.showcase__index b { font-size: clamp(40px, 6vw, 88px); line-height: 1; color: rgba(242,239,232,.15); letter-spacing: -.04em; font-weight: 900; }
.showcase__panel--last { box-shadow: 0 -40px 80px rgba(0,0,0,.5); }

/* ---------- Before / After ---------- */
.ba { position: relative; user-select: none; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; border: 1px solid var(--line); background: var(--ink-3); cursor: ew-resize; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--gold); transform: translateX(-50%); pointer-events: none; }
.ba__handle::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.ba__handle::after { content: '⟨ ⟩'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--ink); font-weight: 900; font-size: 14px; letter-spacing: 2px; }
.ba__label { position: absolute; top: 18px; font-size: 11px; letter-spacing: .22em; font-weight: 800; color: var(--cream); background: rgba(13,12,10,.7); padding: 8px 12px; border-radius: 4px; backdrop-filter: blur(6px); pointer-events: none; }
.ba__label--before { left: 18px; }
.ba__label--after { right: 18px; color: var(--gold); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ---------- Why / feature list ---------- */
.features { display: flex; flex-direction: column; gap: 26px; margin-top: 38px; }
.feature { display: flex; gap: 18px; }
.feature__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: rgba(201,159,82,.12); border: 1px solid var(--gold-line); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.feature__icon svg { width: 20px; height: 20px; }
.feature h4 { font-size: 18px; font-weight: 800; }
.feature p { color: var(--cream-3); font-size: 15px; margin-top: 4px; }
.photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame--tall { aspect-ratio: 3/4; }
.photo-frame__badge { position: absolute; left: 20px; bottom: 20px; background: rgba(13,12,10,.78); backdrop-filter: blur(10px); border: 1px solid var(--gold-line); border-radius: 10px; padding: 14px 18px; }
.photo-frame__badge b { display: block; font-size: 26px; color: var(--gold); letter-spacing: -.02em; }
.photo-frame__badge span { font-size: 12px; letter-spacing: .14em; color: var(--cream-2); font-weight: 700; text-transform: uppercase; }
.photo-frame--parallax img { height: 120%; transform: translateY(-8%); will-change: transform; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 56px; counter-reset: step; }
.step { position: relative; border-top: 2px solid rgba(201,159,82,.35); padding-top: 22px; transition: border-color .4s; }
.step:hover { border-color: var(--gold); }
.step__num { font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: .2em; }
.step h4 { font-size: 21px; margin-top: 10px; }
.step p { margin-top: 10px; color: var(--cream-3); font-size: 15px; }
.step__big { position: absolute; right: 0; top: 14px; font-size: 64px; font-weight: 900; color: rgba(242,239,232,.05); line-height: 1; letter-spacing: -.04em; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.filter { background: transparent; border: 1px solid var(--line-2); color: var(--cream-2); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .3s; }
.filter:hover { border-color: var(--gold-line); color: var(--cream); }
.filter.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 14px; margin-top: 28px; }
.gal { position: relative; overflow: hidden; border-radius: 10px; cursor: zoom-in; grid-column: span 4; background: var(--ink-3); transition: opacity .4s, transform .5s var(--ease); }
.gal--wide { grid-column: span 8; }
.gal--tall { grid-row: span 2; }
.gal--big { grid-column: span 8; grid-row: span 2; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gal:hover img { transform: scale(1.05); }
.gal__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(180deg, transparent, rgba(13,12,10,.85)); opacity: 0; transform: translateY(8px); transition: all .4s var(--ease); }
.gal:hover .gal__cap { opacity: 1; transform: none; }
.gal__cap b { display: block; font-size: 15px; }
.gal__cap span { font-size: 12px; color: var(--gold); letter-spacing: .14em; font-weight: 700; text-transform: uppercase; }
.gal.is-hidden { display: none; }
@media (max-width: 900px) { .gal, .gal--wide, .gal--big { grid-column: span 6; } .gallery { grid-auto-rows: 160px; } }
@media (max-width: 560px) { .gal, .gal--wide, .gal--big, .gal--tall { grid-column: span 12; grid-row: span 1; } .gallery { grid-auto-rows: 220px; } }

.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(13,12,10,.94); display: flex; align-items: center; justify-content: center; padding: 40px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; box-shadow: 0 40px 100px rgba(0,0,0,.8); transform: scale(.96); transition: transform .4s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__cap { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-size: 14px; color: var(--cream-2); text-align: center; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(242,239,232,.08); border: 1px solid var(--line-2); color: var(--cream); width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: background .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--ink); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Reviews ---------- */
.reviews { display: flex; gap: 20px; margin-top: 48px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review { flex: 0 0 min(420px, 85vw); scroll-snap-align: start; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 16px; transition: border-color .4s, transform .5s var(--ease); }
.review:hover { border-color: var(--gold-line); transform: translateY(-4px); }
.review__stars { color: var(--gold); letter-spacing: .12em; font-size: 15px; }
.review__quote { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.5; color: var(--cream-2); flex: 1; }
.review__name { font-weight: 800; font-size: 15px; }
.review__meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.reviews-nav { display: flex; gap: 10px; }
.reviews-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--cream); cursor: pointer; font-size: 18px; transition: all .3s; }
.reviews-nav button:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.rating-badge { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 18px; border: 1px solid var(--gold-line); border-radius: 999px; font-size: 14px; color: var(--cream-2); }
.rating-badge b { color: var(--gold); font-size: 18px; letter-spacing: .1em; }

/* ---------- Service area ---------- */
.area-map { position: relative; border-radius: var(--radius); overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #1a1712, var(--ink-2) 70%); border: 1px solid var(--line); }
.area-map svg { width: 100%; height: auto; display: block; }
.area-map .road { fill: none; stroke: rgba(242,239,232,.12); stroke-width: 2; stroke-linecap: round; }
.area-map .road--major { stroke: rgba(242,239,232,.2); stroke-width: 3; }
.area-map .river { fill: none; stroke: rgba(120,160,200,.35); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.area-map .stateline { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 6 6; opacity: .6; }
.area-map .zone { fill: rgba(201,159,82,.07); stroke: rgba(201,159,82,.35); stroke-width: 1.5; }
.area-map .zone--core { fill: rgba(201,159,82,.12); }
.area-map .city { cursor: pointer; }
.area-map .city circle { fill: var(--gold); stroke: var(--ink); stroke-width: 2; transition: r .3s, fill .3s; }
.area-map .city text { fill: var(--cream-2); font-family: var(--font); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; paint-order: stroke; stroke: var(--ink); stroke-width: 3px; stroke-linejoin: round; }
.area-map .city:hover circle, .area-map .city.is-active circle { r: 8; fill: var(--gold-2); }
.area-map .city--hq circle { fill: var(--cream); r: 7; }
.area-map .city--hq text { fill: var(--gold-2); font-weight: 800; }
.area-map .pulse { fill: none; stroke: var(--gold); stroke-width: 2; opacity: 0; animation: pulse 2.6s ease-out infinite; transform-origin: center; }
@keyframes pulse { 0% { opacity: .8; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.6); } }
.area-map__legend { position: absolute; left: 18px; bottom: 18px; display: flex; gap: 16px; font-size: 11px; letter-spacing: .12em; font-weight: 700; color: var(--cream-3); text-transform: uppercase; background: rgba(13,12,10,.7); padding: 10px 14px; border-radius: 8px; backdrop-filter: blur(6px); }
.area-map__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-right: 6px; vertical-align: middle; }
.area-map__legend i.hq { background: var(--cream); }
.area-map__legend i.river { background: rgba(120,160,200,.6); border-radius: 2px; height: 4px; }
.area-map__tip { position: absolute; top: 18px; right: 18px; background: rgba(13,12,10,.8); border: 1px solid var(--gold-line); border-radius: 8px; padding: 12px 16px; font-size: 14px; backdrop-filter: blur(8px); max-width: 240px; opacity: 0; transform: translateY(-4px); transition: all .3s var(--ease); pointer-events: none; }
.area-map__tip.is-visible { opacity: 1; transform: none; }
.area-map__tip b { display: block; color: var(--gold-2); font-size: 16px; }
.area-map__tip span { color: var(--cream-3); font-size: 13px; }
.city-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { font-size: 14px; font-weight: 600; color: var(--cream-2); border: 1px solid var(--gold-line); border-radius: 999px; padding: 8px 16px; transition: all .3s; cursor: default; }
.chip:hover, .chip.is-active { background: rgba(201,159,82,.12); color: var(--cream); border-color: var(--gold); }

.county-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; }
.county { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .4s, transform .5s var(--ease); }
.county:hover { border-color: var(--gold-line); transform: translateY(-4px); }
.county__state { font-size: 11px; letter-spacing: .24em; color: var(--gold); font-weight: 800; }
.county h3 { font-size: 22px; margin-top: 8px; }
.county ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.county li { font-size: 14px; color: var(--cream-2); background: rgba(242,239,232,.05); padding: 6px 12px; border-radius: 6px; }
.county__meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.county__meta b { color: var(--cream-2); }

/* ---------- Estimate form ---------- */
.contact-list { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 16px; color: var(--cream); }
.contact-item__icon { width: 48px; height: 48px; border-radius: 10px; background: rgba(201,159,82,.12); border: 1px solid var(--gold-line); display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item small { display: block; font-size: 11px; letter-spacing: .18em; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.contact-item b { font-size: 19px; font-weight: 800; }
.form { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; position: relative; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form select, .form textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; padding: 15px 16px; color: var(--cream);
  font-family: var(--font); font-size: 15px; min-width: 0; transition: border-color .3s, box-shadow .3s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,159,82,.15); }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c99f52' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form select option { background: var(--ink-3); }
.form textarea { resize: vertical; min-height: 110px; }
.form__services { display: flex; flex-wrap: wrap; gap: 8px; }
.form__services label { cursor: pointer; }
.form__services input { position: absolute; opacity: 0; width: 0; height: 0; }
.form__services span { display: inline-block; font-size: 13px; font-weight: 600; color: var(--cream-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; transition: all .25s; }
.form__services input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.form__services span:hover { border-color: var(--gold-line); }
.form__note { font-size: 12px; color: var(--muted-2); text-align: center; }
.form__success { position: absolute; inset: 0; background: var(--ink-3); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 40px; opacity: 0; visibility: hidden; transition: all .5s var(--ease); }
.form.is-sent .form__success { opacity: 1; visibility: visible; }
.form__success i { width: 60px; height: 60px; border-radius: 50%; background: rgba(201,159,82,.18); border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 26px; font-style: normal; }
.form__success b { font-size: 22px; }
.form__success p { color: var(--cream-3); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; }
.faq details { background: var(--ink-3); border: 1px solid var(--line); border-radius: 10px; padding: 0 24px; transition: border-color .3s; }
.faq details[open] { border-color: var(--gold-line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 22px; font-weight: 400; transition: transform .3s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 22px; color: var(--cream-3); font-size: 15px; max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta-band__bg { position: absolute; inset: -15% 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.cta-band__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,12,10,.95) 0%, rgba(13,12,10,.75) 50%, rgba(13,12,10,.5) 100%); }
.cta-band__inner { position: relative; z-index: 1; padding: clamp(80px, 10vw, 140px) 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { font-size: clamp(34px, 4.5vw, 64px); max-width: 16ch; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: #0a0908; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 70px 0 50px; }
.footer__brand img { max-width: 320px; border-radius: 6px; }
.footer__brand p { margin-top: 18px; color: var(--muted); font-size: 14px; max-width: 40ch; }
.footer__col h5 { margin: 0 0 18px; font-size: 12px; letter-spacing: .2em; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.footer__col a, .footer__col span { display: block; color: var(--cream-2); font-size: 15px; padding: 5px 0; }
.footer__col a:hover { color: var(--gold-2); }
.footer__phone { color: var(--gold) !important; font-weight: 800; font-size: 20px !important; }
.footer__bottom { border-top: 1px solid var(--line); padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-2); }
.footer__bottom a { color: var(--muted); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 880; display: none; gap: 10px; }
.mobile-cta a { flex: 1; text-align: center; padding: 15px; border-radius: 10px; font-weight: 800; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.mobile-cta__call { background: var(--ink-3); color: var(--cream); border: 1px solid var(--gold-line); }
.mobile-cta__est { background: var(--gold); color: var(--ink); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; min-height: 72vh; display: flex; align-items: flex-end; overflow: hidden; padding-top: var(--nav-h); }
.page-hero__bg { position: absolute; inset: -12% 0; will-change: transform; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,12,10,.5) 0%, rgba(13,12,10,.25) 40%, var(--ink) 100%); }
.page-hero__inner { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(48px, 6vw, 90px); }
.page-hero h1 { margin-top: 18px; font-size: clamp(42px, 6.5vw, 92px); max-width: 14ch; }
.page-hero .lead { margin-top: 22px; max-width: 60ch; }
.breadcrumb { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.breadcrumb a { color: var(--cream-3); }
.breadcrumb a:hover { color: var(--gold-2); }

/* ---------- Services page ---------- */
.subnav { position: sticky; top: var(--nav-h); z-index: 800; background: rgba(13,12,10,.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.subnav__inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--pad); }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--cream-3); padding: 10px 16px; border-radius: 999px; border: 1px solid transparent; letter-spacing: .02em; }
.subnav a:hover { color: var(--cream); border-color: var(--line-2); }
.subnav a.is-active { color: var(--ink); background: var(--gold); border-color: var(--gold); }

.service-block { padding: clamp(80px, 9vw, 130px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 60px); }
.service-block:nth-child(even) { background: var(--ink-2); }
.service-block__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.service-block:nth-child(even) .service-block__grid > .service-block__media { order: 2; }
.service-block__media { position: sticky; top: calc(var(--nav-h) + 80px); display: grid; gap: 14px; }
.service-block__media .photo-frame { aspect-ratio: 16/11; }
.service-block__media .photo-frame--second { aspect-ratio: 16/8; }
.service-block__num { font-size: 12px; letter-spacing: .3em; color: var(--gold); font-weight: 800; }
.service-block h2 { font-size: clamp(34px, 4vw, 54px); margin-top: 12px; }
.service-block .lead { margin-top: 18px; }
.checklist { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--cream-2); }
.checklist li::before { content: ''; width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; border-radius: 50%; background: rgba(201,159,82,.15); border: 1px solid var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.5l2.5 2.5 4.5-5' stroke='%23c99f52' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-size: 11px; background-position: center; background-repeat: no-repeat; }
.subhead { margin-top: 34px; font-size: 12px; letter-spacing: .22em; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.option { font-size: 13px; font-weight: 600; color: var(--cream-2); background: rgba(242,239,232,.05); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
.mini-faq { margin-top: 30px; border-top: 1px solid var(--line); }
.mini-faq details { border-bottom: 1px solid var(--line); }
.mini-faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 15px; padding: 16px 0; display: flex; justify-content: space-between; gap: 12px; }
.mini-faq summary::-webkit-details-marker { display: none; }
.mini-faq summary::after { content: '+'; color: var(--gold); font-size: 20px; }
.mini-faq details[open] summary::after { content: '–'; }
.mini-faq p { padding-bottom: 16px; font-size: 14px; color: var(--cream-3); }
.service-block__cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.service-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 40px; }
.service-index a { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; color: var(--cream); background: var(--ink-3); transition: all .35s var(--ease); }
.service-index a:hover { border-color: var(--gold-line); transform: translateY(-4px); color: var(--cream); }
.service-index a small { font-size: 11px; letter-spacing: .2em; color: var(--gold); font-weight: 800; }
.service-index a b { font-size: 18px; }
.service-index a span { font-size: 13px; color: var(--muted); }
.extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.extra { background: var(--ink-3); border: 1px solid var(--line); border-radius: 10px; padding: 24px; transition: border-color .3s; }
.extra:hover { border-color: var(--gold-line); }
.extra b { display: block; font-size: 17px; }
.extra p { margin-top: 6px; font-size: 14px; color: var(--cream-3); }
.compare { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 14px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-size: 11px; letter-spacing: .2em; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.compare td:first-child { font-weight: 800; color: var(--cream); }
.compare td { color: var(--cream-3); }
.table-wrap { overflow-x: auto; }
@media (max-width: 900px) { .service-block__grid { grid-template-columns: 1fr; } .service-block__media { position: static; grid-template-columns: 1fr 1fr; } .service-block:nth-child(even) .service-block__grid > .service-block__media { order: 0; } }
@media (max-width: 560px) { .service-block__media { grid-template-columns: 1fr; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }
.reveal--scale { transform: scale(.96) translateY(20px); }
/* Wipe reveal uses mask-size (not clip-path) so IntersectionObserver still sees the element's full box. */
.reveal--clip {
  transform: none;
  -webkit-mask-image: linear-gradient(#000, #000); mask-image: linear-gradient(#000, #000);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 0; mask-position: 0 0;
  -webkit-mask-size: 100% 0%; mask-size: 100% 0%;
  transition: -webkit-mask-size 1.1s var(--ease), mask-size 1.1s var(--ease), opacity .6s var(--ease);
}
.reveal--clip.is-in { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }

/* ---------- Cursor glow (desktop) ---------- */
.cursor-glow { position: fixed; top: 0; left: 0; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(201,159,82,.09), transparent 60%); transform: translate(-50%, -50%); will-change: transform; opacity: 0; transition: opacity .6s; }
body.has-mouse .cursor-glow { opacity: 1; }

/* ---------- Utilities ---------- */
.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.hide-mobile { display: initial; }
.gold { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__phone .num { display: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 66px; }
  .nav__logo img { height: 44px; }
  .mobile-cta { display: flex; }
  .footer { padding-bottom: 76px; }
  .form__row { grid-template-columns: 1fr; }
  .hero3d { height: 200vh; }
  .hero3d__card { width: 34vw; }
  .hero3d__layer--house { width: 170vw; }
  .hero3d__content { justify-content: flex-start; padding-top: calc(var(--nav-h) + 6vh); }
  .hero3d__kicker { display: none; }
  .hero3d__title { font-size: clamp(44px, 13vw, 72px); }
  .showcase__index { display: none; }
  .hide-mobile { display: none; }
  .nav__cta .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero3d { height: 100vh; }
}

/* ==========================================================================
   SCROLL-DRIVEN HOUSE TOUR HERO (.tour)
   A rendered camera move through the house is stored as a frame sequence and
   scrubbed with scroll on a canvas. Service callouts (.tour__stop) fade/pop in
   over the part of the house being shown. Timing is set per stop with
   data-start / data-end (0–1 of the scroll track); position with --x / --y.
   ========================================================================== */
.tour { position: relative; height: 620vh; background: var(--ink); z-index: 1; }
.tour__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.tour__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #1a1611; transform: translateZ(0); backface-visibility: hidden; }
.tour__shade { position: absolute; inset: 0; pointer-events: none; transform: translateZ(0); background: linear-gradient(180deg, rgba(13,12,10,.55) 0%, rgba(13,12,10,0) 32%, rgba(13,12,10,0) 62%, rgba(13,12,10,.75) 100%); }
.tour__vignette { position: absolute; inset: 0; pointer-events: none; transform: translateZ(0); background: radial-gradient(ellipse 85% 75% at 50% 50%, transparent 55%, rgba(13,12,10,.55) 100%); }

.tour__loader { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 120px; height: 2px; background: rgba(242,239,232,.12); border-radius: 2px; overflow: hidden; transition: opacity .6s; z-index: 5; }
.tour__loader i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.tour__loader.is-done { opacity: 0; }

/* Intro title (fades out during the first 12% of the scroll) */
.tour__intro {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) clamp(70px, 10vh, 120px); will-change: transform, opacity;
}
.tour__intro-inner { max-width: 1400px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.tour__kicker { font-size: 12px; font-weight: 700; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tour__kicker i { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
.tour__title { font-size: clamp(46px, 7.2vw, 108px); line-height: .95; letter-spacing: -.035em; max-width: 12ch; text-shadow: 0 14px 60px rgba(0,0,0,.6); }
.tour__title .line { display: block; overflow: hidden; }
.tour__title .line > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.is-ready .tour__title .line:nth-child(1) > span { transform: none; transition-delay: .15s; }
.is-ready .tour__title .line:nth-child(2) > span { transform: none; transition-delay: .28s; }
.tour__side { display: flex; flex-direction: column; gap: 22px; opacity: 0; transform: translateY(16px); transition: all .9s var(--ease) .5s; }
.is-ready .tour__side { opacity: 1; transform: none; }
.tour__side p { font-size: clamp(16px, 1.4vw, 19px); color: var(--cream-2); max-width: 46ch; text-shadow: 0 2px 20px rgba(0,0,0,.7); }
.tour__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.tour__trust { font-size: 13px; color: var(--cream-3); display: flex; gap: 14px; flex-wrap: wrap; }
.tour__trust b { color: var(--gold); letter-spacing: .1em; }
.tour__hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .3em; color: var(--cream-3); font-weight: 700; }
.tour__hint i { width: 36px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); animation: hintSlide 2s var(--ease-io) infinite; }
@keyframes hintSlide { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* Callout stops */
.tour__stop {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%); z-index: 3;
  width: min(380px, 78vw); opacity: 0; visibility: hidden; will-change: transform, opacity; transform-origin: 0 100%;
}
.tour__stop { translate: 0 -100%; }
.tour__stop--right { transform-origin: 100% 100%; translate: -100% -100%; }
.tour__stop__pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(201,159,82,.25), 0 0 0 1px var(--gold); left: -7px; bottom: -7px; }
.tour__stop--right .tour__stop__pin { left: auto; right: -7px; }
.tour__stop__pin::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; animation: pulse 2.4s ease-out infinite; }
.tour__stop__line { position: absolute; left: 0; bottom: 0; width: 1px; height: 54px; background: linear-gradient(0deg, var(--gold), rgba(201,159,82,0)); transform-origin: bottom; }
.tour__stop--right .tour__stop__line { left: auto; right: 0; }
.tour__card {
  margin: 0 0 62px 18px; background: rgba(13,12,10,.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201,159,82,.35); border-radius: 12px; padding: 20px 22px 20px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
}
.tour__stop--right .tour__card { margin: 0 18px 62px 0; }
.tour__card small { display: block; font-size: 11px; letter-spacing: .28em; color: var(--gold); font-weight: 800; }
.tour__card h3 { font-size: clamp(24px, 2.4vw, 32px); margin-top: 8px; letter-spacing: -.02em; }
.tour__card p { margin-top: 8px; font-size: 14px; color: var(--cream-2); line-height: 1.55; }
.tour__card a { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 800; }
.tour__card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tour__card .chips span { font-size: 11px; font-weight: 700; color: var(--cream-2); border: 1px solid rgba(242,239,232,.18); border-radius: 999px; padding: 4px 10px; }

/* Side navigation of stops */
.tour__nav { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 4; opacity: 0; transition: opacity .4s; display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.tour__nav a { display: flex; align-items: center; gap: 12px; color: var(--cream-3); font-size: 11px; letter-spacing: .22em; font-weight: 700; text-transform: uppercase; transition: color .3s; }
.tour__nav a::after { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--cream-3); transition: all .3s; }
.tour__nav a:hover, .tour__nav a.is-active { color: var(--cream); }
.tour__nav a.is-active::after { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,159,82,.25); }
.tour__bar { position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); width: 2px; opacity: 0; transition: opacity .4s; height: 160px; background: rgba(242,239,232,.12); z-index: 4; border-radius: 2px; overflow: hidden; }
.tour__bar i { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleY(0); transform-origin: top; }

@media (max-width: 760px) {
  .tour { height: 420vh; }
  .tour__intro { padding-bottom: 96px; }
  .tour__intro-inner { grid-template-columns: 1fr; gap: 18px; }
  .tour__kicker { display: none; }
  .tour__nav, .tour__bar { display: none; }
  .tour__stop, .tour__stop--right { width: calc(100vw - 40px); left: 20px !important; top: auto !important; bottom: 88px; translate: 0 0; transform-origin: 50% 100%; }
  .tour__stop__pin, .tour__stop__line { display: none; }
  .tour__card, .tour__stop--right .tour__card { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tour { height: 100vh; }
  .tour__stop { opacity: 1; visibility: visible; }
}
