/* Phoenix AZ Epoxy Company — design system
   Warm ivory · sandstone · desert beige · terracotta · charcoal
   Display: Cormorant Garamond · Text: Manrope */

:root {
  --ivory: #f8f4ec;
  --ivory-2: #f2ebdf;
  --sand: #e9dcc8;
  --beige: #d6c2a3;
  --terra: #b4603f;
  --terra-deep: #8f4a2f;
  --terra-soft: #e8c8b6;
  --char: #2a2623;
  --ink: #3a3430;
  --muted: #6f655c;
  --line: #e0d3c0;
  --white: #fffdf9;
  --shadow: 0 30px 60px -30px rgba(58, 40, 25, .35);
  --shadow-sm: 0 12px 30px -18px rgba(58, 40, 25, .35);
  --radius: 4px;
  --arch: 999px 999px 0 0;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --text: "Manrope", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  overflow-x: clip;
  margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.72;
  color: var(--ink); background: var(--ivory);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--char); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.8rem, 6.2vw, 5.6rem); font-weight: 500; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.4rem); font-weight: 500; }
h3 { font-size: clamp(1.45rem, 2vw, 1.9rem); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .45em; }
strong { color: var(--char); font-weight: 700; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--char); color: #fff; padding: 10px 16px; z-index: 999; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Eyebrow & helpers */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 .74rem/1 var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--terra-deep); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--terra-soft); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.serif-quote { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.25; color: var(--char); font-style: italic; font-weight: 500; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Buttons */
.btn { --bg: var(--char); --fg: #fff; position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 16px 26px; border: 1px solid var(--bg); background: var(--bg); color: var(--fg); font: 600 .9rem/1 var(--text); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-radius: var(--radius); cursor: pointer; overflow: hidden; isolation: isolate; transition: color .4s var(--ease), border-color .4s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--terra); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; }
.btn:hover { color: #fff; border-color: var(--terra); }
.btn:hover::before { transform: none; }
.btn .arr { width: 18px; height: 1px; background: currentColor; position: relative; transition: width .35s var(--ease); }
.btn .arr::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arr { width: 28px; }
.btn.terra { --bg: var(--terra); }
.btn.terra::before { background: var(--terra-deep); }
.btn.ghost { --bg: transparent; --fg: var(--char); border-color: var(--char); }
.btn.ghost-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.7); }
.btn.full { width: 100%; justify-content: center; }
.textlink { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--char); text-decoration: none; border-bottom: 1px solid var(--terra); padding-bottom: 4px; }
.textlink:hover { color: var(--terra); }

/* Header */
.utility { background: var(--char); color: #d9cdbd; font-size: .8rem; letter-spacing: .04em; }
.utility .wrap { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; }
.utility a { color: #fff; text-decoration: none; font-weight: 600; }
.utility span + span::before { content: "·"; margin: 0 10px; color: var(--terra-soft); }
.site-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(248, 244, 236, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(0,0,0,.4); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 86px; transition: height .3s var(--ease); }
.scrolled .nav-row { height: 70px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--char); margin-right: auto; }
.logo-mark { width: 44px; height: 44px; border: 1px dashed var(--beige); border-radius: var(--arch); display: grid; place-items: center; font: 600 .55rem/1 var(--text); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.logo-text { font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.logo-text small { display: block; font: 600 .62rem/1.4 var(--text); letter-spacing: .26em; text-transform: uppercase; color: var(--terra-deep); margin-top: 4px; }
.main-nav > ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav li { margin: 0; position: relative; }
.main-nav a, .main-nav button.dd-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font: 600 .86rem/1 var(--text); letter-spacing: .04em; color: var(--char); text-decoration: none; background: none; border: 0; cursor: pointer; position: relative; }
.main-nav > ul > li > a::after, .main-nav button.dd-toggle::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav > ul > li > a:hover::after, .main-nav button.dd-toggle:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.dd-toggle svg { transition: transform .3s; }
.dropdown { position: absolute; top: calc(100% + 10px); left: -20px; width: 560px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.has-dd:hover .dropdown, .has-dd.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dd:hover .dd-toggle svg, .has-dd.open .dd-toggle svg { transform: rotate(180deg); }
.dropdown a { display: block; padding: 12px 12px; border-radius: 3px; font-weight: 600; font-size: .92rem; }
.dropdown a small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; letter-spacing: 0; margin-top: 3px; }
.dropdown a:hover { background: var(--ivory-2); color: var(--terra-deep); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.phone-link { display: flex; flex-direction: column; text-decoration: none; color: var(--char); font-weight: 700; font-size: .95rem; line-height: 1.2; }
.phone-link small { font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white); border-radius: 50%; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--char); transition: transform .3s, opacity .3s; }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 22px; } .menu-btn span:nth-child(3) { top: 27px; }
.nav-open .menu-btn span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav-open .menu-btn span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Header estimate drawer */
.quote-drawer { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: max-height .55s var(--ease); }
.quote-open .quote-drawer { max-height: 640px; }
.quote-drawer .wrap { display: grid; grid-template-columns: .8fr 2fr; gap: 40px; padding: 34px 0 38px; align-items: center; }
.quote-drawer h2 { font-size: 2.1rem; margin: 0 0 6px; }
.quote-drawer p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Forms */
.lead-form { display: grid; gap: 14px; }
.lead-form.inline { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font: 700 .7rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 500 1rem/1.3 var(--text); color: var(--char); background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px; transition: border-color .25s, background .25s, box-shadow .25s; appearance: none; -webkit-appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terra); background: var(--white); box-shadow: 0 0 0 3px rgba(180, 96, 63, .12); }
.field.invalid input, .field.invalid select { border-color: #b3261e; }
.field .err { font-size: .76rem; color: #a3271f; min-height: 0; display: none; }
.field.invalid .err { display: block; }
.hp { position: absolute !important; left: -9999px !important; }
.form-status { font-size: .9rem; margin: 0; min-height: 1em; }
.form-status.ok { color: #2f6b3a; }
.form-status.bad { color: #a3271f; }
.form-note { font-size: .78rem; color: var(--muted); margin: 0; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Reveal motion */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.img-reveal { overflow: hidden; }
.img-reveal img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.3s var(--ease), transform 1.8s var(--ease); }
.img-reveal.in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.no-js [data-reveal], .no-js .img-reveal img { opacity: 1; transform: none; clip-path: none; }

/* HERO (home) — architectural split */
.hero { position: relative; padding: 70px 0 0; overflow: hidden; background: radial-gradient(1200px 600px at 85% 10%, #f1e1cd 0%, transparent 60%), linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 119px, rgba(143, 74, 47, .06) 119px 120px); pointer-events: none; animation: drift 40s linear infinite; }
@keyframes drift { to { background-position: 120px 0; } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: end; }
.hero-copy { padding-bottom: 70px; }
.hero h1 em { font-style: italic; color: var(--terra-deep); }
.hero-meta { display: flex; gap: 36px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-meta div { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hero-meta strong { display: block; font-family: var(--display); font-size: 1.9rem; letter-spacing: 0; text-transform: none; color: var(--char); font-weight: 600; line-height: 1.1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-art { position: relative; height: 640px; }
.hero-arch { position: absolute; right: 0; bottom: 0; width: 78%; height: 100%; border-radius: var(--arch); overflow: hidden; box-shadow: var(--shadow); }
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(42, 38, 35, .35)); }
.hero-inset { position: absolute; left: 0; bottom: 70px; width: 40%; aspect-ratio: 3/4; border: 10px solid var(--ivory); box-shadow: var(--shadow); overflow: hidden; z-index: 2; }
.hero-inset img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; top: 40px; left: 6%; z-index: 3; width: 128px; height: 128px; border-radius: 50%; background: var(--terra); color: #fff; display: grid; place-items: center; text-align: center; font: 700 .66rem/1.4 var(--text); letter-spacing: .18em; text-transform: uppercase; padding: 18px; animation: spin 26s linear infinite; }
.hero-badge span { display: block; animation: spin 26s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.estimate-bar { position: relative; z-index: 5; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 30px 34px; margin-top: -10px; }
.estimate-bar header { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 18px; }
.estimate-bar h2 { font-size: 1.75rem; margin: 0; }
.estimate-bar header p { margin: 0; font-size: .88rem; color: var(--muted); }

/* Sections */
section { position: relative; }
.sec { padding: clamp(80px, 10vw, 140px) 0; }
.sec.tight { padding: clamp(60px, 7vw, 100px) 0; }
.sec.sand { background: var(--sand); }
.sec.ivory2 { background: var(--ivory-2); }
.sec.white { background: var(--white); }
.sec.dark { background: var(--char); color: #d8cfc4; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 64px; }
.sec-head p { margin: 0; color: var(--muted); }
.sec-head.stack { grid-template-columns: 1fr; gap: 10px; max-width: 760px; }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.intro-figure { position: sticky; top: 120px; }
.intro-figure .frame { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4/5; }
.intro-figure .frame img { width: 100%; height: 100%; object-fit: cover; }
.intro-figure figcaption { margin-top: 14px; font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.drop::first-letter { font-family: var(--display); float: left; font-size: 4.6rem; line-height: .8; padding: 8px 12px 0 0; color: var(--terra-deep); }

/* Service index list */
.svc-index { border-top: 1px solid var(--char); }
.svc-row { display: grid; grid-template-columns: 80px 1.1fr 1.4fr 60px; gap: 30px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative; transition: padding .4s var(--ease), background .4s; }
.svc-row .num { font-family: var(--display); font-size: 1.2rem; color: var(--terra-deep); }
.svc-row h3 { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2.3rem); transition: color .3s, transform .4s var(--ease); }
.svc-row p { margin: 0; color: var(--muted); font-size: .96rem; }
.svc-row .go { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: background .35s, border-color .35s, transform .35s var(--ease); }
.svc-row .go svg { stroke: var(--char); transition: stroke .3s; }
.svc-row:hover { background: var(--white); padding-left: 20px; padding-right: 20px; }
.svc-row:hover h3 { color: var(--terra-deep); transform: translateX(6px); }
.svc-row:hover .go { background: var(--terra); border-color: var(--terra); transform: rotate(-45deg); }
.svc-row:hover .go svg { stroke: #fff; }
.svc-peek { position: fixed; width: 260px; aspect-ratio: 4/3; pointer-events: none; z-index: 40; border-radius: 3px; overflow: hidden; opacity: 0; transform: scale(.85) rotate(-3deg); transition: opacity .3s, transform .4s var(--ease); box-shadow: var(--shadow); }
.svc-peek.show { opacity: 1; transform: scale(1) rotate(-3deg); }
.svc-peek img { width: 100%; height: 100%; object-fit: cover; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 38px 34px 10px 0; border-right: 1px solid var(--line); }
.pillar + .pillar { padding-left: 34px; }
.pillar:last-child { border-right: 0; }
.pillar .n { font-family: var(--display); font-size: 3.4rem; color: var(--terra-soft); line-height: 1; display: block; margin-bottom: 16px; }
.pillar h3 { font-size: 1.6rem; }
.pillar p { color: var(--muted); font-size: .98rem; }

/* Chapters (alternating image/text) */
.chapter { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; padding: 70px 0; border-bottom: 1px solid var(--line); }
.chapter:last-child { border-bottom: 0; }
.chapter.flip .chapter-media { order: 2; }
.chapter-media { position: relative; }
.chapter-media .main { aspect-ratio: 5/4; overflow: hidden; border-radius: 2px; }
.chapter h3 { font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 500; }
.chapter-media .main img { width: 100%; height: 100%; object-fit: cover; }
.chapter-media .tag { position: absolute; bottom: -18px; right: 24px; background: var(--ivory); padding: 12px 20px; font: 700 .7rem/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--terra-deep); box-shadow: var(--shadow-sm); }
.chapter.arch .chapter-media .main { border-radius: var(--arch); aspect-ratio: 4/5; max-width: 470px; margin-inline: auto; }
.chapter ul.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.chapter ul.ticks li { padding-left: 30px; position: relative; margin: 0; }
.chapter ul.ticks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 1px; background: var(--terra); }

/* Full-width band */
.band { position: relative; min-height: 88vh; display: grid; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.band-bg { position: absolute; inset: -12% 0; z-index: -2; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(42, 30, 22, .82) 0%, rgba(42, 30, 22, .45) 55%, rgba(42, 30, 22, .15) 100%); }
.band h2 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 5rem); max-width: 14ch; }
.band p { max-width: 54ch; color: #efe5d8; font-size: 1.12rem; }
.band .btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.band .stamp { position: absolute; right: 6%; bottom: 8%; font-family: var(--display); font-style: italic; font-size: 1.1rem; color: #f2e5d4; opacity: .85; }

/* Process timeline */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; position: relative; }
.timeline::before { content: ""; position: absolute; top: 28px; left: 0; right: 0; height: 1px; background: var(--beige); }
.tl-step { position: relative; padding: 0 22px 0 0; }
.tl-step .dot { width: 56px; height: 56px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--beige); display: grid; place-items: center; font-family: var(--display); font-size: 1.35rem; color: var(--terra-deep); position: relative; z-index: 1; margin-bottom: 26px; transition: background .4s, color .4s; }
.tl-step:hover .dot { background: var(--terra); color: #fff; border-color: var(--terra); }
.tl-step h3 { font-size: 1.45rem; }
.tl-step p { font-size: .94rem; color: var(--muted); }

/* Benefits grid */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.benefit { background: var(--white); padding: 34px 28px; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s; }
.benefit:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.benefit svg { width: 34px; height: 34px; stroke: var(--terra); margin-bottom: 20px; }
.benefit h3 { font-size: 1.4rem; }
.benefit p { font-size: .94rem; color: var(--muted); margin: 0; }

/* Climate */
.climate { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.climate-media { position: relative; }
.climate-media .frame { aspect-ratio: 4/5; overflow: hidden; }
.climate-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.climate-media .note { position: absolute; left: -30px; bottom: 40px; width: 270px; background: var(--terra); color: #fff; padding: 26px; font-size: .9rem; box-shadow: var(--shadow); }
.climate-media .note strong { color: #fff; display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 500; line-height: 1.1; margin-bottom: 8px; }
.climate-list { display: grid; gap: 0; margin-top: 30px; }
.climate-item { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid rgba(0,0,0,.09); }
.climate-item .ico { width: 54px; height: 54px; border-radius: 50%; background: var(--ivory); display: grid; place-items: center; }
.climate-item .ico svg { width: 24px; height: 24px; stroke: var(--terra-deep); }
.climate-item h3 { font-size: 1.35rem; margin-bottom: 6px; }
.climate-item p { margin: 0; font-size: .95rem; color: var(--muted); }

/* Counters */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
.stat { padding: 40px 28px; border-right: 1px solid rgba(255,255,255,.15); }
.stat:last-child { border-right: 0; }
.stat .val { font-family: var(--display); font-size: clamp(2.8rem, 4.6vw, 4.2rem); color: #fff; line-height: 1; }
.stat .val sup { font-size: .45em; color: var(--terra-soft); }
.stat p { margin: 10px 0 0; font-size: .86rem; color: #bfb3a5; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 14px; }
.g-item { position: relative; overflow: hidden; margin: 0; background: var(--sand); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; color: #fff; font-size: .8rem; letter-spacing: .06em; background: linear-gradient(transparent, rgba(30,20,14,.7)); opacity: 0; transform: translateY(10px); transition: .4s var(--ease); }
.g-item:hover figcaption { opacity: 1; transform: none; }
.g1 { grid-column: span 7; grid-row: span 4; } .g2 { grid-column: span 5; grid-row: span 2; } .g3 { grid-column: span 5; grid-row: span 2; }
.g4 { grid-column: span 4; grid-row: span 3; } .g5 { grid-column: span 4; grid-row: span 3; } .g6 { grid-column: span 4; grid-row: span 3; }

/* Areas */
.areas { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: center; }
.area-list { columns: 3; column-gap: 26px; list-style: none; padding: 0; margin: 26px 0; }
.area-list li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; font-weight: 600; font-size: .95rem; color: var(--char); }
.areas-media { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--arch); }
.areas-media img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.faq-wrap .sticky { position: sticky; top: 120px; }
.faq { border-top: 1px solid var(--char); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 30px; align-items: center; padding: 26px 0; font-family: var(--display); font-size: 1.45rem; font-weight: 600; color: var(--char); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .4s var(--ease), background .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--char); transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.faq details[open] summary .pm { background: var(--terra); border-color: var(--terra); }
.faq details[open] summary .pm::before, .faq details[open] summary .pm::after { background: #fff; }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans { padding: 0 60px 24px 0; color: var(--muted); }
.faq .ans p:last-child { margin: 0; }

/* Final CTA */
.final-cta { background: linear-gradient(135deg, var(--terra-deep), var(--terra) 60%, #c47a57); color: #fff; overflow: hidden; }
.final-cta::after { content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 120px rgba(255,255,255,.03); }
.final-cta .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #f8e5da; }
.final-cta .card { background: var(--white); color: var(--ink); padding: 38px; box-shadow: var(--shadow); }
.final-cta .card h3 { margin-bottom: 6px; }
.final-cta .card p.muted { color: var(--muted); }

/* Footer */
.site-footer { background: #221f1c; color: #bdb2a5; padding: 90px 0 0; font-size: .93rem; }
.site-footer a { color: #e9dfd2; text-decoration: none; }
.site-footer a:hover { color: var(--terra-soft); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 50px; }
.site-footer h3 { color: #fff; font-size: 1.3rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.foot-brand .logo { color: #fff; margin-bottom: 18px; }
.foot-brand .logo-mark { border-color: #5a5048; color: #8f8478; }
.map { position: relative; aspect-ratio: 4/3; border: 1px solid #3b3530; overflow: hidden; background: #2b2724; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.2) contrast(.95); }
.map-note { font-size: .78rem; color: #8f8478; margin-top: 10px; }
.foot-base { margin-top: 70px; border-top: 1px solid #3b3530; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; font-size: .8rem; color: #8f8478; flex-wrap: wrap; }

/* Inner page hero */
.page-hero { position: relative; padding: 60px 0 80px; background: linear-gradient(180deg, var(--ivory) 0%, var(--sand) 100%); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 119px, rgba(143, 74, 47, .05) 119px 120px); }
.crumbs { position: relative; font-size: .8rem; letter-spacing: .06em; color: var(--muted); margin-bottom: 30px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--terra-deep); }
.crumbs span { margin: 0 8px; }
.ph-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.ph-grid h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.ph-media { position: relative; }
.ph-media .frame { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.ph-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.ph-form { margin-top: -60px; position: relative; z-index: 3; }
.ph-form .card { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 30px 32px; }
.ph-form .card header { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.ph-form .card h2 { font-size: 1.6rem; margin: 0; }
.ph-form .card header p { margin: 0; font-size: .86rem; color: var(--muted); }

/* Article (service pages) */
.article-grid { display: grid; grid-template-columns: 250px 1fr; gap: 80px; align-items: start; }
.toc { position: sticky; top: 110px; font-size: .86rem; }
.toc p { font: 700 .7rem/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--terra-deep); margin-bottom: 16px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 8px 0 8px 18px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; margin-left: -1px; line-height: 1.4; transition: color .25s, border-color .25s; }
.toc a:hover, .toc a.active { color: var(--char); border-color: var(--terra); }
.toc .toc-cta { margin-top: 30px; padding: 22px; background: var(--white); border: 1px solid var(--line); }
.toc .toc-cta strong { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; line-height: 1.2; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); margin-top: 1.6em; padding-top: .3em; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose > p:first-of-type { font-size: 1.15rem; color: var(--char); }
.prose ul li::marker { color: var(--terra); }
.prose figure { margin: 46px 0; }
.prose figure .fr { overflow: hidden; aspect-ratio: 16/10; }
.prose figure img { width: 100%; height: 100%; object-fit: cover; }
.prose figcaption { font-size: .82rem; color: var(--muted); margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--terra); }
.prose table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 700 .72rem/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--terra-deep); background: var(--ivory-2); }
.prose blockquote { margin: 40px 0; padding: 0 0 0 28px; border-left: 2px solid var(--terra); font-family: var(--display); font-size: 1.6rem; line-height: 1.35; font-style: italic; color: var(--char); }
.prose .faq { margin-top: 20px; }

/* Related services */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rel-card { position: relative; display: block; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s; }
.rel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.rel-card .im { aspect-ratio: 16/10; overflow: hidden; }
.rel-card .im img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.rel-card:hover .im img { transform: scale(1.06); }
.rel-card .tx { padding: 24px 26px 28px; }
.rel-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.rel-card p { font-size: .92rem; color: var(--muted); margin: 0 0 14px; }

/* Simple page body */
.page-body { padding: 90px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.card-plain { background: var(--white); border: 1px solid var(--line); padding: 34px; }

/* Responsive */
@media (max-width: 1180px) {
  .main-nav > ul { gap: 0; }
  .main-nav a, .main-nav button.dd-toggle { padding: 10px 10px; }
  .phone-link { display: none; }
  .lead-form.inline { grid-template-columns: 1fr 1fr; }
  .lead-form.inline .submit-wrap { grid-column: 1 / -1; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 50px; }
  .timeline::before { display: none; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); height: 100vh; height: 100dvh; background: var(--ivory); padding: 100px 30px 40px; transform: translateX(100%); visibility: hidden; transition: transform .5s var(--ease), visibility .5s; overflow-y: auto; box-shadow: var(--shadow); z-index: 70; }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; }
  .main-nav a, .main-nav button.dd-toggle { font-size: 1.1rem; padding: 14px 0; width: 100%; justify-content: space-between; }
  .main-nav > ul > li > a::after, .main-nav button.dd-toggle::after { display: none; }
  .dropdown { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 10px; grid-template-columns: 1fr; display: none; background: transparent; }
  .has-dd.open .dropdown { display: grid; }
  .has-dd:hover .dropdown { opacity: 1; }
  .menu-btn { z-index: 80; }
  .header-actions .btn { padding: 13px 16px; font-size: .78rem; }
  .utility .hide-sm { display: none; }
  .hero-grid, .intro-grid, .climate, .areas, .faq-wrap, .final-cta .wrap, .ph-grid, .two-col, .quote-drawer .wrap { grid-template-columns: 1fr; }
  .hero-art { height: 520px; }
  .hero-copy { padding-bottom: 20px; }
  .intro-figure, .faq-wrap .sticky { position: static; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .svc-row { grid-template-columns: 50px 1fr 52px; }
  .svc-row p { grid-column: 2 / 3; }
  .svc-row .go { grid-row: 1; grid-column: 3; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .chapter { grid-template-columns: 1fr; gap: 40px; padding: 50px 0; }
  .chapter.flip .chapter-media { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.15); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery .g-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery .g1 { grid-column: span 2 !important; grid-row: span 2 !important; }
  .area-list { columns: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr; gap: 30px; }
  .toc { position: static; }
  .toc ol, .toc .toc-cta { display: none; }
  .toc p { display: none; }
  .related { grid-template-columns: 1fr; }
  .ph-media { display: none; }
  .ph-form { margin-top: 30px; }
  .climate-media .note { left: 16px; }
}
@media (max-width: 640px) {
  .wrap, .narrow { width: calc(100% - 36px); }
  .utility { display: none; }
  .nav-row { height: 72px; }
  .logo-text { font-size: 1.2rem; }
  .logo-mark { width: 36px; height: 36px; }
  .header-actions .btn { display: none; }
  .lead-form.inline { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-art { height: 420px; }
  .hero-inset { width: 46%; bottom: 30px; border-width: 6px; }
  .hero-badge { width: 96px; height: 96px; font-size: .52rem; top: 10px; }
  .hero-meta { gap: 18px; flex-wrap: wrap; }
  .estimate-bar { padding: 24px 20px; }
  .estimate-bar header { flex-direction: column; gap: 6px; }
  .timeline { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.15); }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery .g1 { grid-column: span 1 !important; grid-row: span 1 !important; }
  .area-list { columns: 1; }
  .foot-grid { grid-template-columns: 1fr; }
  .band { min-height: 76vh; }
  .faq summary { font-size: 1.22rem; }
  .faq .ans { padding-right: 0; }
  .final-cta .card, .ph-form .card { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .img-reveal img { clip-path: none; transform: none; }
}

/* Inline form status spans full row */
.lead-form.inline .form-status { grid-column: 1 / -1; margin-top: -4px; }
.lead-form.inline .form-status:empty { display: none; }
