/* ==========================================================================
   NEXTA Studio — site styles
   Palette: Drafting Ink #0E2235 · Cyanotype #1F4E79 · Deep Blueprint #143A5E
            Pale Blueprint #DCE6EF · Warm Paper #F8F6F2 · Limestone #EEE9E1
   Type:    Cormorant Garamond (display) · Manrope (text)
   ========================================================================== */

:root {
  --ink: #0E2235;
  --ink-2: #44566A;
  --blue: #1F4E79;
  --blue-deep: #143A5E;
  --blue-line: #9DB7CF;
  --blue-soft: #DCE6EF;
  --copper: #96622A;
  --copper-dark: #7C4F1F;
  --paper: #F8F6F2;
  --stone: #EEE9E1;
  --white: #FFFFFF;
  --rule: rgba(14, 34, 53, .14);
  --rule-light: rgba(255, 255, 255, .22);
  --focus: #3B82C4;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 11vw, 160px);
  --header-h: 92px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.01em; }
h1 { font-size: clamp(2.9rem, 6.4vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.9rem); }
h3 { font-size: clamp(1.55rem, 2.1vw, 2rem); line-height: 1.12; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; }
em { font-style: italic; }
::selection { background: var(--blue); color: var(--white); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--stone { background: var(--stone); }
.section--ink { background: var(--ink); color: var(--white); }
.lede { font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.section--ink .lede, .blueprint .lede, .cta-band .lede { color: rgba(255, 255, 255, .78); }
.muted { color: var(--ink-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .85rem 1.45rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: 2px;
  font: 600 .95rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { --btn-bg: #96622A; --btn-fg: var(--white); --btn-bd: #96622A; }
.btn-primary:hover { --btn-bg: #7C4F1F; --btn-bd: #7C4F1F; }
.btn-outline { --btn-fg: var(--ink); --btn-bd: rgba(14, 34, 53, .35); }
.btn-outline:hover { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); }
.btn-light { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.btn-light:hover { --btn-bg: var(--blue-soft); --btn-bd: var(--blue-soft); }
.btn-outline-light { --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.text-link {
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size .45s var(--ease);
}
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 246, 242, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; color: var(--ink); flex: none; }
.brand .logo { width: 260px; max-width: calc(100vw - 2 * var(--gutter) - 60px); height: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav a {
  position: relative; display: inline-block; padding: 6px 0;
  font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--ink);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: flex; gap: 10px; }
.header-cta .btn { min-height: 44px; padding: .65rem 1.1rem; font-size: .9rem; }

.menu-toggle {
  display: none; margin-left: auto; flex: none;
  width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease), opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--paper); padding: 24px var(--gutter) 120px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu nav a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--serif); font-size: 2rem; line-height: 1.1; text-decoration: none;
}
.mobile-menu .btn-row { margin-top: 28px; }
.mobile-menu .btn { flex: 1 1 100%; }
.mobile-menu-contact { margin-top: 28px; color: var(--ink-2); font-size: .95rem; }
.mobile-menu-contact a { display: block; color: var(--ink); font-weight: 600; text-decoration: none; padding: 4px 0; }
.menu-open { overflow: hidden; }

.nav a { white-space: nowrap; }

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .brand .logo { width: 210px; }
}

/* Mobile action bar */
.action-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--ink); color: var(--white);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(100%); transition: transform .5s var(--ease);
}
.action-bar.is-visible { transform: none; }
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 62px; color: var(--white); text-decoration: none; font-size: .8rem; font-weight: 600;
}
.action-bar a + a { border-left: 1px solid var(--rule-light); }
.action-bar a.is-primary { background: #96622A; }
.action-bar svg { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .action-bar { display: grid; }
  body { padding-bottom: 62px; }
}

/* ---------- Hero (home): text left, photo right ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 100px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px clamp(16px, 2vw, 32px); align-items: center; }
.hero-copy { grid-column: 1 / span 6; }
.hero h1 { margin-bottom: .45em; font-size: clamp(2.8rem, 5.1vw, 5.4rem); }
.hero h1 em { color: var(--copper); }
.hero .lede { margin-bottom: 2rem; }
.hero-media { grid-column: 7 / -1; }
.hero-photo { position: relative; aspect-ratio: 4 / 5; max-height: min(80vh, 800px); width: 100%; overflow: hidden; background: var(--stone); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) {
  .hero-copy, .hero-media { grid-column: 1 / -1; }
  .hero-photo { aspect-ratio: 4 / 3.2; }
}
@media (max-width: 560px) {
  .hero .btn-row .btn { flex: 1 1 100%; }
}
/* Blueprint drawing primitives */
.bp-grid { background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px; }
.drawing { width: 100%; height: auto; }
.drawing .w { stroke: #fff; stroke-width: 2.6; fill: none; }
.drawing .l { stroke: rgba(255,255,255,.85); stroke-width: 1.1; fill: none; }
.drawing .f { stroke: rgba(255,255,255,.5); stroke-width: .8; fill: none; }
.drawing .d { stroke: rgba(255,255,255,.4); stroke-width: .8; fill: none; stroke-dasharray: 4 4; }
.drawing text { fill: rgba(255,255,255,.82); font-family: var(--sans); font-size: 9.5px; letter-spacing: .04em; }
.drawing text.dim { fill: rgba(255,255,255,.6); font-size: 8.5px; }
.drawing .r { stroke: #F4B9A3; stroke-width: 1.4; fill: none; }
.drawing text.rt { fill: #F4B9A3; font-size: 9px; font-weight: 600; }
.svc-media.blueprint { display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); }

/* ---------- Section heading ---------- */
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px clamp(16px, 2vw, 32px); margin-bottom: clamp(40px, 6vw, 80px); align-items: end; }
.section-head h2 { grid-column: 1 / span 7; }
.section-head .lede, .section-head > p { grid-column: 8 / -1; margin: 0; }
.section-head .head-action { grid-column: 8 / -1; }
@media (max-width: 960px) {
  .section-head h2, .section-head .lede, .section-head > p, .section-head .head-action { grid-column: 1 / -1; }
}

/* ---------- Need finder (home) ---------- */
.needs { border-top: 1px solid var(--rule); }
.need {
  position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr) 40px; gap: 24px; align-items: center;
  padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--ink);
}
.need-q { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.15; transition: transform .6s var(--ease), color .4s; }
.need-a { font-size: .98rem; color: var(--ink-2); }
.need-a strong { display: block; color: var(--ink); font-weight: 700; }
.need-go {
  width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: 50%;
  display: grid; place-items: center; transition: background-color .4s var(--ease), border-color .4s, color .4s;
}
.need-go svg { width: 16px; height: 16px; }
.need:hover .need-q, .need:focus-visible .need-q { transform: translateX(10px); color: var(--copper); }
.need:hover .need-go, .need:focus-visible .need-go { background: var(--copper); border-color: var(--copper); color: var(--white); }
@media (max-width: 720px) {
  .need { grid-template-columns: 1fr 40px; gap: 8px 16px; }
  .need-q { grid-column: 1; }
  .need-a { grid-column: 1; grid-row: 2; }
  .need-go { grid-column: 2; grid-row: 1 / span 2; }
}
/* Floating preview image that follows the pointer */
.need-preview {
  position: fixed; top: 0; left: 0; z-index: 50; width: 300px; aspect-ratio: 4 / 3; pointer-events: none;
  overflow: hidden; opacity: 0; will-change: transform;
  transition: opacity .35s var(--ease);
  box-shadow: 0 30px 60px -25px rgba(14, 34, 53, .5);
}
.need-preview.is-on { opacity: 1; }
.need-preview img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.need-preview img.is-current { opacity: 1; }
@media (hover: none), (max-width: 960px) { .need-preview { display: none; } }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; }
.process::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: rgba(255,255,255,.25);
}
.process::after { content: ""; position: absolute; left: 0; top: 23px; height: 1px; width: 100%; background: var(--white); transform-origin: left; transition: transform 2.4s var(--ease-in-out); }
.js .process::after { transform: scaleX(0); }
.js .process.is-in::after { transform: scaleX(1); }
.step { position: relative; padding-right: clamp(12px, 2vw, 28px); }
.step-num {
  position: relative; z-index: 1; width: 47px; height: 47px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 26px;
  background: var(--ink); border: 1px solid rgba(255,255,255,.5);
  font-family: var(--serif); font-size: 1.25rem;
}
.step h3 { font-size: clamp(1.35rem, 1.7vw, 1.6rem); margin-bottom: .5em; }
.step p { font-size: .95rem; color: rgba(255,255,255,.72); margin: 0; }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before, .process::after { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: 100%; }
  .process::after { transform-origin: top; }
  .js .process::after { transform: scaleY(0); }
  .js .process.is-in::after { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 47px 1fr; gap: 0 20px; padding: 0 0 36px; }
  .step-num { margin: 0; grid-row: 1 / span 2; }
  .step h3 { padding-top: 8px; }
}

/* ---------- Sector split (home) ---------- */
.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 32px); }
.sector { position: relative; display: block; color: var(--white); text-decoration: none; overflow: hidden; min-height: clamp(460px, 62vw, 720px); }
.sector img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.sector::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,34,53,0) 30%, rgba(14,34,53,.88) 100%); }
.sector:hover img { transform: scale(1.04); }
.sector-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(24px, 3.4vw, 48px); }
.sector h3 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); margin-bottom: .35em; }
.sector ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.sector li { padding: 5px 12px; border: 1px solid rgba(255,255,255,.4); border-radius: 100px; font-size: .85rem; }
.sector .text-link { color: var(--white); }
@media (max-width: 860px) { .sectors { grid-template-columns: 1fr; } }

/* ---------- Blueprint band ---------- */
.blueprint { position: relative; background-color: var(--blue-deep); color: var(--white); overflow: hidden; }
.blueprint-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px clamp(16px, 2vw, 32px); align-items: center; }
.blueprint-copy { grid-column: 1 / span 6; }
.blueprint-copy h2 { margin-bottom: .45em; }
.blueprint-copy ul { margin: 0 0 2rem; display: grid; gap: 10px; }
.blueprint-copy li { position: relative; padding-left: 28px; color: rgba(255,255,255,.86); }
.blueprint-copy li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 1px; background: var(--blue-line); }
.blueprint-art { grid-column: 8 / -1; }
@media (max-width: 960px) {
  .blueprint-copy, .blueprint-art { grid-column: 1 / -1; }
}

/* ---------- Areas ---------- */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.area { padding: 32px clamp(12px, 2vw, 28px) 24px 0; }
.area + .area { padding-left: clamp(12px, 2vw, 28px); border-left: 1px solid var(--rule); }
/* second row: clear left-border on first col, add top-border on all */
.area:nth-child(4n+1):not(:first-child) { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
.area:nth-child(n+5) { border-top: 1px solid var(--rule); }
.area h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: .5em; }
.area p { font-size: .95rem; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) {
  .areas { grid-template-columns: 1fr 1fr; }
  .area:nth-child(odd) { border-left: 0; padding-left: 0; }
  .area:nth-child(even) { border-left: 1px solid var(--rule); padding-left: clamp(12px, 2vw, 28px); }
  .area:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .area:nth-child(n+5) { border-top: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .areas { grid-template-columns: 1fr; }
  .area, .area + .area { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); border-bottom: 0; padding-bottom: 24px; }
  .area:first-child { border-top: 0; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px clamp(16px, 2vw, 32px); }
.faq-grid > header { grid-column: 1 / span 4; }
.faq-grid > header .lede { margin-top: 1.2rem; }
.faq-list { grid-column: 6 / -1; border-top: 1px solid var(--rule); }
@media (max-width: 960px) { .faq-grid > header, .faq-list { grid-column: 1 / -1; } }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 48px 24px 0; font-family: var(--serif); font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.25;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: var(--ink);
  transition: transform .45s var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); }
.faq-answer { overflow: hidden; }
.faq-answer > div { padding: 0 48px 26px 0; color: var(--ink-2); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--white); padding: clamp(72px, 10vw, 140px) 0; position: relative; overflow: hidden; }
.cta-band h2 { max-width: 16ch; margin-bottom: .5em; }
.cta-band .lede { margin-bottom: 2.2rem; }
.cta-band .bp-grid { position: absolute; inset: 0; opacity: .6; pointer-events: none; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta-band .wrap { position: relative; }
.cta-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px clamp(16px, 2vw, 32px); align-items: start; }
.cta-copy { grid-column: 1 / span 5; }
.form--dark .form-submit { margin-top: 24px; }
.cta-grid .form { grid-column: 7 / -1; }
@media (max-width: 960px) {
  .cta-copy, .cta-grid .form { grid-column: 1 / -1; position: static; }
}

/* Forms on dark backgrounds */
.form--dark .field label, .form--dark .field .label { color: var(--white); }
.form--dark .field .req { color: var(--blue-line); }
.form--dark .field .opt, .form--dark .form-submit p { color: rgba(255, 255, 255, .65); }
.form--dark .field input, .form--dark .field select, .form--dark .field textarea { border-color: transparent; }
.form--dark .field input:focus, .form--dark .field select:focus, .form--dark .field textarea:focus { box-shadow: 0 0 0 3px rgba(157, 183, 207, .55); }
.form--dark .field .error { color: #FFB4A8; }
.form--dark .field input[aria-invalid="true"], .form--dark .field select[aria-invalid="true"], .form--dark .field textarea[aria-invalid="true"] { border-color: #FFB4A8; box-shadow: 0 0 0 1px #FFB4A8; }
.form--dark .form-status { color: var(--ink); }
.form--dark .field textarea { min-height: 120px; }

/* ---------- Footer ---------- */
.site-footer { background: #0A1A29; color: rgba(255,255,255,.78); padding: clamp(64px, 8vw, 100px) 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { width: 210px; color: var(--white); margin-bottom: 22px; }
.footer-brand p { max-width: 34ch; }
.site-footer h4 { color: var(--white); margin-bottom: 14px; font-size: .95rem; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-contact a { color: var(--white); font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.page-hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px clamp(16px, 2vw, 32px); align-items: end; }
.page-hero h1 { grid-column: 1 / span 8; font-size: clamp(2.7rem, 5.6vw, 5.2rem); }
.page-hero .lede { grid-column: 1 / span 7; margin: 0; }
.page-hero .btn-row { grid-column: 1 / -1; }
.crumbs { grid-column: 1 / -1; font-size: .88rem; color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 .5em; }
@media (max-width: 960px) { .page-hero h1, .page-hero .lede { grid-column: 1 / -1; } }

.banner { position: relative; overflow: hidden; aspect-ratio: 21 / 8; background: var(--stone); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .banner { aspect-ratio: 4 / 3; } }

/* ---------- Services page ---------- */
.svc-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.svc-nav { position: sticky; top: calc(var(--header-h) + 32px); }
.svc-nav p { font-weight: 700; font-size: .95rem; margin-bottom: 10px; }
.svc-nav a:not(.btn) {
  display: block; padding: 9px 0 9px 16px; border-left: 1px solid var(--rule);
  font-size: .95rem; text-decoration: none; color: var(--ink-2);
  transition: color .3s, border-color .3s;
}
.svc-nav a:not(.btn):hover { color: var(--ink); }
.svc-nav a.is-active { color: var(--ink); border-left: 2px solid var(--copper); padding-left: 15px; font-weight: 600; }
.svc-nav .btn { margin-top: 24px; width: 100%; }
@media (max-width: 1000px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-nav { position: static; display: none; }
}

.svc { padding: 0 0 clamp(72px, 9vw, 120px); margin-bottom: clamp(72px, 9vw, 120px); border-bottom: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 24px); }
.svc:last-child { border-bottom: 0; margin-bottom: 0; }
.svc-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: clamp(28px, 4vw, 48px); background: var(--stone); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-bottom: 36px; }
.svc-head h2 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); }
.svc-head p { margin: 0; color: var(--ink-2); font-size: 1.08rem; }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.svc-cols h4 { margin-bottom: 12px; }
.checks li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--rule); font-size: .98rem; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 1.05em; width: 12px; height: 6px;
  border-left: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: rotate(-45deg);
}
.svc .btn-row { margin-top: 36px; }
@media (max-width: 720px) { .svc-head, .svc-cols { grid-template-columns: 1fr; } }

/* ---------- Project type gallery (residential/commercial) ---------- */
.types { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 32px); }
.type { grid-column: span 4; }
.type--wide { grid-column: span 8; }
.type-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 20px; background: var(--stone); }
.type--wide .type-media { aspect-ratio: 16 / 9.2; }
.type-media.type--tall { aspect-ratio: 4 / 5; }
.type-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.type:hover .type-media img { transform: scale(1.035); }
.type h3 { margin-bottom: .35em; }
.type p { color: var(--ink-2); font-size: .98rem; }
.type-plain { grid-column: span 4; padding: 28px 0; border-top: 1px solid var(--rule); }
@media (max-width: 960px) { .type, .type--wide, .type-plain { grid-column: span 6; } }
@media (max-width: 620px) { .type, .type--wide, .type-plain { grid-column: 1 / -1; } }

.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px clamp(16px, 2vw, 32px); align-items: center; }
.split-media { grid-column: 1 / span 6; position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy { grid-column: 8 / -1; }
.split--flip .split-media { grid-column: 7 / -1; grid-row: 1; }
.split--flip .split-copy { grid-column: 1 / span 5; grid-row: 1; }
.split-copy h2 { margin-bottom: .5em; }
@media (max-width: 960px) {
  .split-media, .split-copy, .split--flip .split-media, .split--flip .split-copy { grid-column: 1 / -1; grid-row: auto; }
  .split-media { aspect-ratio: 4 / 3; }
}

/* ---------- About ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(16px, 3vw, 48px); }
.value { padding-top: 28px; border-top: 1px solid var(--ink); }
.value h3 { margin-bottom: .5em; }
.value p { color: var(--ink-2); }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; gap: 36px; } }

.process-list { border-top: 1px solid var(--rule); }
.process-item { display: grid; grid-template-columns: 80px 1fr 1.2fr; gap: 20px 40px; padding: 36px 0; border-bottom: 1px solid var(--rule); }
.process-item .n { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--blue); }
.process-item p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .process-item { grid-template-columns: 56px 1fr; } .process-item p { grid-column: 2; } }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px clamp(16px, 2vw, 32px); align-items: start; }
.form-aside { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 32px); }
.form-main { grid-column: 6 / -1; }
@media (max-width: 960px) { .form-aside, .form-main { grid-column: 1 / -1; position: static; } .form-aside { order: 2; } }

.aside-card { padding-top: 24px; border-top: 1px solid var(--ink); }
.aside-card + .aside-card { margin-top: 36px; }
.aside-card h3 { font-size: 1.6rem; margin-bottom: .5em; }
.aside-card p { color: var(--ink-2); font-size: .98rem; }
.aside-card a.big { display: block; font-family: var(--serif); font-size: 1.8rem; line-height: 1.2; text-decoration: none; color: var(--ink); }
.aside-card a.big:hover { color: var(--blue); }

.form fieldset { border: 0; padding: 0; margin: 0 0 48px; }
.form legend { font-family: var(--serif); font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.15; padding: 0; margin-bottom: 8px; }
.form .legend-note { color: var(--ink-2); font-size: .95rem; margin-bottom: 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field-row { display: grid; grid-template-columns: minmax(150px, 200px) 1fr; gap: 0 12px; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
.field label, .field .label { font-size: .92rem; font-weight: 600; }
.field .req { color: var(--blue); }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 15px;
  background: var(--white); color: var(--ink);
  border: 1px solid rgba(14, 34, 53, .22); border-radius: 2px;
  font: 400 1rem/1.4 var(--sans);
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230E2235' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(14, 34, 53, .45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 78, 121, .18); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B3261E; }
.field .error { color: #B3261E; font-size: .85rem; }
.field .hint { color: var(--ink-2); font-size: .85rem; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices--3 { grid-template-columns: repeat(3, 1fr); }
.choice small { display: block; color: var(--ink-2); font-size: .82rem; }

.next-steps { counter-reset: next; }
.next-steps li { position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--rule); font-size: .98rem; }
.next-steps li::before {
  counter-increment: next; content: counter(next);
  position: absolute; left: 0; top: 10px; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--blue); color: var(--blue);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.05rem;
}
.next-steps strong { display: block; }
.next-steps span { color: var(--ink-2); font-size: .92rem; }
@media (max-width: 620px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice input + span {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px;
  background: var(--white); border: 1px solid rgba(14, 34, 53, .22); border-radius: 2px;
  font-size: .95rem; cursor: pointer; transition: border-color .3s, background-color .3s;
}
.choice input + span::before {
  content: ""; flex: none; width: 18px; height: 18px; border: 1.5px solid rgba(14, 34, 53, .45); border-radius: 2px;
  transition: background-color .25s, border-color .25s;
  background-position: center; background-repeat: no-repeat;
}
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input:checked + span { border-color: var(--blue); background: #F1F5F9; }
.choice input:checked + span::before {
  background-color: var(--blue); border-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5'/%3E%3C/svg%3E");
}
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  padding: 44px 24px; border: 1.5px dashed rgba(31, 78, 121, .5); border-radius: 2px;
  background: linear-gradient(rgba(31,78,121,.05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(31,78,121,.05) 1px, transparent 1px) 0 0 / 24px 24px, var(--white);
  transition: border-color .3s, background-color .3s;
  scroll-margin-top: calc(var(--header-h) + 40px);
}
.dropzone.is-over { border-color: var(--blue); background-color: #EEF3F8; }
.dropzone svg { width: 40px; height: 40px; color: var(--blue); }
.dropzone strong { font-size: 1.05rem; }
.dropzone p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.file-list { margin-top: 14px; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--white); border: 1px solid var(--rule); font-size: .92rem; }
.file-list .size { color: var(--ink-2); white-space: nowrap; }
.file-list button { border: 0; background: none; color: var(--ink-2); cursor: pointer; padding: 4px 8px; font: inherit; text-decoration: underline; }
.file-list button:hover { color: #B3261E; }
.file-summary { margin-top: 8px; font-size: .85rem; color: var(--ink-2); }
.file-summary.is-error { color: #B3261E; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-submit p { margin: 0; font-size: .88rem; color: var(--ink-2); max-width: 46ch; }
.form-status { margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--blue); background: var(--white); display: none; }
.form-status.is-shown { display: block; }
.form-status.is-error { border-left-color: #B3261E; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Thank you / 404 ---------- */
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.center-page h1 { margin-bottom: .4em; }
.center-page .lede { margin: 0 auto 2rem; }
.center-page .btn-row { justify-content: center; }

/* ==========================================================================
   Motion — only applied when JS is running (.js on <html>)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

.js .img-reveal { clip-path: inset(14% 0 0 0); transition: clip-path 1.5s var(--ease); transition-delay: var(--d, 0s); }
.js .img-reveal img { transform: scale(1.14); transition: transform 2s var(--ease); transition-delay: var(--d, 0s); }
.js .img-reveal.is-in { clip-path: inset(0 0 0 0); }
.js .img-reveal.is-in img { transform: scale(1); }

.js .lines .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js .lines .line > span { display: inline-block; transform: translate3d(0, 108%, 0); transition: transform 1.2s var(--ease); }
.js .lines .line:nth-child(2) > span { transition-delay: .09s; }
.js .lines .line:nth-child(3) > span { transition-delay: .18s; }
.js .lines .line:nth-child(4) > span { transition-delay: .27s; }
.js .is-loaded .lines .line > span, .js .lines.is-in .line > span { transform: none; }

.js .draw :is(path, circle) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .draw.is-in :is(path, circle) { animation: line-draw 2.2s var(--ease-in-out) var(--d, 0s) both; }
@keyframes line-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.js .draw text { opacity: 0; transition: opacity 1s var(--ease); transition-delay: calc(var(--d, 0s) + 1.4s); }
.js .draw.is-in text { opacity: 1; }

/* Logo draws itself on first load */
.js .logo-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: logo-draw 1.6s var(--ease-in-out) .1s forwards; }
.js .logo-draw g:nth-of-type(2) path { animation-delay: .45s; }
.js .logo-draw text { opacity: 0; animation: fade-in .8s var(--ease) 1.2s forwards; }
@keyframes logo-draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* Hero load sequence */
.js .hero-photo { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-in-out) .15s; }
.js .hero-photo img { transform: scale(1.18); transition: transform 2.6s var(--ease) .15s; }
.js .is-loaded .hero-photo { clip-path: inset(0 0 0 0); }
.js .is-loaded .hero-photo img { transform: scale(1); }
.js .hero-fade { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 1s var(--ease) .55s, transform 1s var(--ease) .55s; }
.js .is-loaded .hero-fade { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero-fade { opacity: 1; transform: none; }
  .js .img-reveal, .js .hero-photo { clip-path: none; }
  .js .img-reveal img, .js .hero-photo img { transform: none; }
  .js .lines .line > span { transform: none; }
  .js .draw :is(path, circle), .js .logo-draw path { stroke-dashoffset: 0; animation: none !important; }
  .js .draw text, .js .logo-draw text { opacity: 1; }
  .process::after { transform: none !important; }
}

/* ==========================================================================
   Home page (v2): hero with plans over the house, quote card, service cards
   ========================================================================== */

/* Header extras */
.brand { flex-direction: column; align-items: flex-start; gap: 4px; text-decoration: none; }
.brand-tag { font-size: .72rem; font-weight: 500; color: var(--ink-2); letter-spacing: .01em; white-space: nowrap; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .98rem; color: var(--ink); text-decoration: none; white-space: nowrap; margin-right: 8px; }
.header-phone svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.header-phone:hover { color: var(--blue); }
.header-cta { align-items: center; }
@media (max-width: 1240px) { .brand-tag { display: none; } }
@media (max-width: 1120px) { .header-phone { display: none; } }

/* Hero */
.hx { position: relative; overflow: hidden; isolation: isolate; }
.hx-media { position: absolute; top: 0; left: calc(50% - min(48vw, 690px)); width: min(70vw, 1060px); aspect-ratio: 2400 / 1867; z-index: -1; }
.hx-media img, .hx-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hx-media img { object-fit: cover; object-position: 50% 0; }
.hx-media::before { /* keeps the text side clean at every width */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--paper) 0%, var(--paper) 28%, rgba(248,246,242,.88) 38%, rgba(248,246,242,.5) 48%, rgba(248,246,242,.15) 56%, rgba(248,246,242,0) 62%),
    linear-gradient(270deg, var(--paper) 0%, rgba(248,246,242,.6) 6%, rgba(248,246,242,0) 16%),
    linear-gradient(180deg, rgba(248,246,242,.7) 0%, rgba(248,246,242,0) 14%);
}
.hx-media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, var(--paper), rgba(248,246,242,0));
}
.hx-lines { z-index: 2; pointer-events: none; }
.hx-lines path, .hx-lines circle { fill: none; stroke: url(#hx-ink); stroke-width: 2.6; }
.hx-lines .thin { stroke-width: 1.6; }
.hx-lines .bold { stroke-width: 3.4; }
.hx-plan path, .hx-plan circle { stroke: var(--blue); opacity: .4; }
.hx-plan text { fill: var(--blue); opacity: .6; font-family: var(--sans); font-size: 24px; font-weight: 700; }
.hx-plan text.small { font-size: 19px; font-weight: 600; letter-spacing: .06em; }
.hx-trace text.light { fill: #fff; opacity: .85; font-family: var(--sans); font-size: 26px; font-weight: 600; }

.hx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; padding-top: clamp(40px, 6vh, 72px); padding-bottom: clamp(48px, 7vh, 80px); }
.hx-copy { max-width: 660px; }
.hx-eyebrow, .eyebrow { margin: 0 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.hx h1 { font-size: clamp(3rem, 5.4vw, 5.4rem); line-height: .98; margin-bottom: .35em; }
.hx h1 em { color: var(--copper); }
.hx .lede { color: var(--ink); max-width: 25em; margin-bottom: 1.8rem; }
.btn-paper { background: rgba(255,255,255,.75); }
.hx-icons { display: flex; flex-wrap: wrap; gap: 16px 20px; margin-top: clamp(28px, 5vh, 48px); }
.hx-icons li { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.hx-icons small { display: block; font-weight: 500; color: var(--ink-2); font-size: .76rem; }
.hx-icons svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.hx-form {
  position: relative; z-index: 2; background: var(--white); padding: 26px 26px 22px;
  border-radius: 6px; box-shadow: 0 30px 70px -30px rgba(14, 34, 53, .45), 0 2px 8px rgba(14, 34, 53, .06);
  display: grid; gap: 12px;
}
.hx-form h2 { font-family: var(--serif); font-size: 2rem; line-height: 1.05; }
.hx-form-note { margin: -6px 0 4px; font-size: .9rem; color: var(--ink-2); }
.hx-form .field { gap: 5px; }
.hx-form .field label { font-size: .84rem; }
.hx-form .field input, .hx-form .field select { min-height: 42px; padding: 9px 12px; font-size: .92rem; border-radius: 4px; }
.hx-form .field select { padding-right: 36px; background-position: right 12px center; }
.hx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hx-submit { width: 100%; margin-top: 4px; border-radius: 4px; }
.hx-form .file-list, .hx-form .file-summary { margin: 0; }
.hx-form .file-summary:empty, .hx-form .file-list:empty { display: none; }

.dropzone--sm { flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; padding: 12px 14px; border-radius: 4px; }
.dropzone--sm svg { width: 28px; height: 28px; }
.dropzone--sm strong { display: block; font-size: .86rem; }
.dropzone--sm small { display: block; font-size: .78rem; color: var(--ink-2); }

@media (max-width: 1100px) {
  .hx-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 960px) {
  .hx-media { position: relative; left: 0; width: 100%; height: auto; aspect-ratio: 2400 / 1867; order: 2; margin-top: 8px; }
  .hx { display: flex; flex-direction: column; }
  .hx-grid { display: contents; }
  .hx-copy { order: 1; padding: 36px var(--gutter) 0; max-width: none; }
  .hx-form { order: 3; margin: -24px var(--gutter) 40px; }
  .hx-media::before { background: linear-gradient(90deg, rgba(248,246,242,.6), rgba(248,246,242,0) 40%); }
  .hx-media::after { top: 0; bottom: auto; height: 30%; background: linear-gradient(180deg, var(--paper), rgba(248,246,242,0)); }
  .hx-icons { gap: 14px 20px; }
}
@media (max-width: 560px) {
  .hx .btn-row .btn { flex: 1 1 100%; }
  .hx-icons { display: grid; grid-template-columns: 1fr 1fr; }
  .hx-form-row { grid-template-columns: 1fr; }
}

/* Section head with eyebrow */
.head-left { grid-column: 1 / span 7; }
.head-left h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
@media (max-width: 960px) { .head-left { grid-column: 1 / -1; } }

/* Service cards */
.svc-home { padding-top: clamp(56px, 7vw, 96px); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  display: flex; flex-direction: column; background: var(--white); color: var(--ink); text-decoration: none;
  border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(14, 34, 53, .4); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.card h3 svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.5; flex: 1; }
.card-more { font-size: .88rem; font-weight: 700; color: var(--copper); }
.card--cta { background: var(--blue-deep); color: var(--white); border-color: var(--blue-deep); }
.card--cta .card-body { justify-content: center; padding: 28px; }
.card--cta h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.card--cta p { color: rgba(255,255,255,.8); flex: 0; margin-bottom: 10px; }
.card--cta .btn { align-self: flex-start; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; } .card-body { padding: 14px; } }
@media (max-width: 480px) { .cards { grid-template-columns: 1fr; } }

/* County comments + How it works */
.duo { padding: clamp(48px, 6vw, 80px) 0; }
.duo-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; }
.comments, .how { background: var(--white); border-radius: 6px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--rule); }
.comments { display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: center; }
.comments-art { width: 110px; height: 110px; }
.comments h2, .how h2 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin-bottom: .4em; }
.comments p { color: var(--ink-2); font-size: .95rem; }
.how-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.how-steps li { display: flex; flex-direction: column; gap: 10px; }
.how-n { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.how-steps strong { display: block; font-size: .92rem; margin-bottom: 4px; }
.how-steps span:not(.how-n) { display: block; font-size: .84rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 1100px) { .duo-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .how-steps { grid-template-columns: 1fr; }
  .how-steps li { flex-direction: row; align-items: flex-start; gap: 14px; }
  .how-n { flex: none; }
  .comments { grid-template-columns: 1fr; }
  .comments-art { width: 80px; height: 80px; }
}

/* Project types + 3D banner */
.work { padding-top: clamp(48px, 6vw, 80px); }
.work-grid { display: grid; grid-template-columns: 8fr 4fr; gap: 24px; align-items: stretch; }
.work-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.work-head h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.thumb { text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 700; }
.thumb-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; margin-bottom: 8px; background: var(--stone); }
.thumb-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.thumb:hover .thumb-img img { transform: scale(1.05); }
.viz { position: relative; display: flex; align-items: flex-end; min-height: 360px; border-radius: 6px; overflow: hidden; color: var(--white); text-decoration: none; background: var(--blue-deep); }
.viz img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.viz::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,58,94,.15) 20%, rgba(20,58,94,.92) 100%); }
.viz:hover img { transform: scale(1.04); }
.viz-body { position: relative; z-index: 2; padding: 28px; }
.viz h2 { font-size: 2rem; margin-bottom: .3em; }
.viz p { color: rgba(255,255,255,.85); font-size: .95rem; }
@media (max-width: 960px) { .work-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .thumbs { grid-template-columns: 1fr 1fr; } }

/* Feature strip above the footer */
.strip { background: var(--blue-deep); color: var(--white); padding: 28px 0; margin-top: clamp(48px, 6vw, 80px); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.strip-grid > div { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 600; font-size: .95rem; }
.strip svg { width: 28px; height: 28px; fill: none; stroke: var(--blue-line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .strip-grid { grid-template-columns: 1fr 1fr; } .strip-grid > div { justify-content: flex-start; } }

/* Hero load motion */
.js .hx-media img { opacity: 0; transform: scale(1.05); transition: opacity 1.6s var(--ease), transform 3s var(--ease); }
.js .is-loaded .hx-media img { opacity: 1; transform: none; }
.js .hx-lines.draw.is-in :is(path, circle) { animation-duration: 2.4s; animation-delay: calc(var(--d, 0s) + .5s); }
.js .hx-lines.draw text { transition-delay: calc(var(--d, 0s) + 1.8s); }
@media (prefers-reduced-motion: reduce) {
  .js .hx-media img { opacity: 1; transform: none; }
}

/* Home hero (simple): text left, faded house with plan lines on the right */
.hx--simple .hx-media { left: auto; right: 0; width: min(66vw, 1000px); }
.hx--simple .hx-grid { grid-template-columns: 1fr; align-items: center; min-height: calc(min(66vw, 1000px) * 1867 / 2400); padding-top: 24px; padding-bottom: 24px; }
.hx--simple .hx-copy { max-width: 560px; }
.hx--simple h1 { font-size: clamp(2.8rem, 5.1vw, 5.2rem); line-height: 1.04; }
@media (min-width: 1500px) { .hx--simple .hx-media { right: calc(50% - 750px); } }

/* Three-word summary under the hero */
.hero-points { border-bottom: 1px solid var(--rule); }
.hero-points-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-points-grid > div { padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 40px) clamp(28px, 4vw, 48px) 0; }
.hero-points-grid > div + div { padding-left: clamp(16px, 3vw, 40px); border-left: 1px solid var(--rule); }
.hero-points h2 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin-bottom: .35em; }
.hero-points p { margin: 0; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 760px) {
  .hero-points-grid { grid-template-columns: 1fr; }
  .hero-points-grid > div, .hero-points-grid > div + div { padding: 24px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .hero-points-grid > div:first-child { border-top: 0; }
}
@media (max-width: 960px) {
  .hx--simple .hx-media { right: auto; width: 100%; }
  .hx--simple .hx-grid { min-height: 0; }
  .hx--simple .hx-copy { padding-bottom: 8px; }
}

/* Professional drafting overlay on the home hero */
.hx-lines .bp, .hx-lines .bp-t, .hx-lines .wt, .hx-lines .wt-t { fill: none; stroke-linecap: square; }
.hx-lines .bp { stroke: #1F4E79; stroke-width: 2.4; opacity: .62; }
.hx-lines .bp-t { stroke: #1F4E79; stroke-width: 1.3; opacity: .38; }
.hx-lines .wt { stroke: #FFFFFF; stroke-width: 2.4; opacity: .8; }
.hx-lines .wt-t { stroke: #FFFFFF; stroke-width: 1.4; opacity: .5; }
.hx-lines .bp-f { fill: #1F4E79; opacity: .7; font-family: var(--sans); font-size: 22px; font-weight: 700; letter-spacing: .06em; }
.hx-lines .bp-f.sm { font-size: 17px; font-weight: 600; letter-spacing: .1em; opacity: .6; }
.hx-lines .wt-f { fill: #FFFFFF; opacity: .9; font-family: var(--sans); font-size: 22px; font-weight: 600; letter-spacing: .06em; }

/* Footer: contact icons and social links */
.site-footer .ci { display: inline-flex; align-items: center; gap: 10px; }
.site-footer .ci svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--blue-line); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px 18px; margin-top: 40px; }
.footer-social > span { color: rgba(255, 255, 255, .78); font-weight: 400; font-size: .95rem; }
.social { display: flex; gap: 12px; }
.social a {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .85); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
/* Soft fill that rises from the bottom on hover */
.social a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper); transform: translateY(101%); transition: transform .55s var(--ease); }
.social a:hover, .social a:focus-visible { color: var(--ink); border-color: var(--paper); transform: translateY(-2px); text-decoration: none; }
.social a:hover::before, .social a:focus-visible::before { transform: none; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 900px) { .footer-social { justify-content: flex-start; } }

/* Elegant serif carried into navigation, buttons and small headings */
.nav a { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; letter-spacing: .01em; }
.btn { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; letter-spacing: .01em; }
.header-cta .btn { font-size: 1.06rem; }
h4, .site-footer h4 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; letter-spacing: 0; }
.need-a strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.text-link { font-family: var(--serif); font-size: 1.12rem; }
.crumbs { font-family: var(--serif); font-size: 1rem; }
.svc-nav a:not(.btn), .svc-nav p { font-family: var(--serif); font-size: 1.08rem; }
.svc-nav a.is-active { font-weight: 600; }
.sector li { font-family: var(--serif); font-size: .98rem; }
.site-footer li a { font-family: var(--serif); font-size: 1.05rem; }
.footer-social > span { font-family: var(--serif); font-size: 1.15rem; }
.action-bar a { font-family: var(--serif); font-size: .95rem; }
.hero-points h2 { font-weight: 600; }

/* ---------- Home page: calm, centered, lots of space ---------- */
.h-intro { padding: clamp(56px, 9vw, 120px) 0 0; text-align: center; }
.h-eyebrow { margin: 0 auto 22px; font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--copper); }
.h-intro .h-display { margin: 0 auto; max-width: none; font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: 1.04; letter-spacing: -.01em; color: var(--ink); }
.h-display em { color: var(--copper); white-space: nowrap; }
.h-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; margin: 28px auto 0; padding: 0; list-style: none; font-size: .86rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.h-trust li { display: inline-flex; align-items: center; }
.h-trust li + li::before { content: ""; width: 1px; height: 14px; margin: 0 22px; background: var(--rule); }
@media (max-width: 760px) { .h-trust { flex-direction: column; align-items: center; gap: 8px; font-size: .8rem; } .h-trust li + li::before { display: none; } }
.h-intro .line { display: block; }
.h-lede { margin: 26px auto 0; max-width: 32em; font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.65; color: var(--ink-2); }
.h-photo { margin: clamp(48px, 7vw, 88px) auto 0; max-width: 1120px; }
.h-photo img, .h-photo video { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.h-section { padding: clamp(88px, 11vw, 150px) 0; }
.h-section--stone { background: var(--stone); }
.h-narrow { max-width: 1120px; }
.h-head { margin-bottom: clamp(40px, 6vw, 72px); }
.h-head--center { text-align: center; }
.h-head--center .h-eyebrow { margin-left: auto; margin-right: auto; }
.h-head .h-eyebrow { margin: 0 0 18px; }
.h-head h2 { font-size: clamp(2.1rem, 3.8vw, 3.4rem); line-height: 1.08; }
.h-head h2 em, .h-quote h2 em { color: var(--copper); }

/* Hero photo: slow depth on scroll */
.h-photo { overflow: hidden; }
.h-photo img, .h-photo video { transform: translate3d(0, var(--py, 0px), 0) scale(1.06); will-change: transform; }

/* What we do: numbered rows */
.h-list { counter-reset: none; border-bottom: 1px solid transparent; }
.h-list li { position: relative; }
.h-list li::before, .h-list li:last-child::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--rule);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-in-out);
}
.h-list li::before { top: 0; }
.h-list li:last-child::after { bottom: 0; }
.h-list li:nth-child(2)::before { transition-delay: .12s; }
.h-list li:nth-child(3)::before { transition-delay: .24s; }
.h-list li:last-child::after { transition-delay: .36s; }
.h-list.is-in li::before, .h-list.is-in li:last-child::after { transform: scaleX(1); }
.h-list a {
  position: relative; display: grid; grid-template-columns: 90px minmax(160px, 1fr) 1.6fr 48px; align-items: center; gap: 24px;
  padding: clamp(26px, 3.4vw, 40px) 20px; color: var(--ink); text-decoration: none; isolation: isolate;
}
.h-list a::before {
  content: ""; position: absolute; inset: 1px 0; z-index: -1; background: var(--stone);
  clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease);
}
.h-n { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; color: var(--blue-line); transition: color .5s var(--ease); }
.h-t { font-family: var(--serif); font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.1; transition: transform .7s var(--ease); }
.h-d { color: var(--ink-2); font-size: 1rem; line-height: 1.6; max-width: 34em; }
.h-go { justify-self: end; width: 40px; color: var(--ink); overflow: hidden; }
.h-go svg { width: 40px; height: 12px; transform: translateX(-14px); opacity: .35; transition: transform .7s var(--ease), opacity .5s; }
.h-list a:hover::before, .h-list a:focus-visible::before { clip-path: inset(0 0 0 0); }
.h-list a:hover .h-n, .h-list a:focus-visible .h-n { color: var(--blue); }
.h-list a:hover .h-t, .h-list a:focus-visible .h-t { transform: translateX(8px); }
.h-list a:hover .h-go svg, .h-list a:focus-visible .h-go svg { transform: none; opacity: 1; }
.js .h-list li { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .h-list.is-in li { opacity: 1; transform: none; }
.js .h-list.is-in li:nth-child(2) { transition-delay: .1s; }
.js .h-list.is-in li:nth-child(3) { transition-delay: .2s; }

/* Residential / Commercial */
.h-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 44px); max-width: 1120px; margin: 0 auto; }
.h-card { position: relative; display: block; text-decoration: none; color: var(--ink); }
.h-card-img { overflow: hidden; }
.h-card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.h-card .h-card-img.is-in img { transition: transform 1.6s var(--ease); }
.h-card:hover .h-card-img.is-in img { transform: scale(1.035); }
.h-card-cap { position: relative; padding-top: 22px; }
.h-card-cap::after { content: ""; position: absolute; left: 0; bottom: -14px; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.h-card:hover .h-card-cap::after, .h-card:focus-visible .h-card-cap::after { transform: scaleX(1); }
.h-card h3 { margin: 0 0 8px; }
.h-card p { margin: 0; color: var(--ink-2); }
/* Small round "View" label that follows the mouse over a card */
.h-view {
  position: fixed; left: 0; top: 0; z-index: 50; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: .04em; pointer-events: none;
  box-shadow: 0 10px 30px rgba(14, 34, 53, .12);
  opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.4); transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.h-view.is-on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1); }
.h-card[data-view].has-view { cursor: none; }

/* Closing words */
.h-quote { max-width: 860px; text-align: center; }
.h-quote h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.12; }
.h-quote p { margin: 28px auto 0; max-width: 36em; color: var(--ink-2); font-size: 1.1rem; }
.h-rule { display: block; width: 64px; height: 1px; margin: 40px auto 28px; background: var(--copper); transform: scaleX(0); transition: transform 1.2s var(--ease-in-out) .2s; }
.h-rule.is-in { transform: scaleX(1); }
.h-areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-family: var(--serif); font-size: 1.3rem; color: var(--copper); }
.h-areas li { display: inline-flex; align-items: center; }
.h-areas a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.h-areas a:hover, .h-areas a:focus-visible { background-size: 100% 1px; }
.h-areas li + li::before { content: ""; width: 4px; height: 4px; margin: 0 16px; border-radius: 50%; background: var(--blue-line); }
.js .h-areas li { opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .h-areas.is-in li { opacity: 1; transform: none; }
.js .h-areas.is-in li:nth-child(1) { transition-delay: .5s; }
.js .h-areas.is-in li:nth-child(2) { transition-delay: .62s; }
.js .h-areas.is-in li:nth-child(3) { transition-delay: .74s; }
.js .h-areas.is-in li:nth-child(4) { transition-delay: .86s; }

@media (max-width: 760px) {
  .h-two { grid-template-columns: 1fr; }
  .h-photo img, .h-photo video { aspect-ratio: 4 / 3; }
  .h-list a { grid-template-columns: 52px 1fr 28px; gap: 6px 14px; padding: 24px 4px; }
  .h-n { grid-row: span 2; align-self: start; font-size: 2rem; }
  .h-d { grid-column: 2; grid-row: 2; font-size: .95rem; }
  .h-go { grid-column: 3; grid-row: 1; width: 28px; }
  .h-go svg { width: 28px; transform: none; opacity: .6; }
  .h-areas li + li::before { margin: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .h-photo img, .h-photo video { transform: none; }
  .js .h-list li, .js .h-areas li { opacity: 1; transform: none; }
  .h-list li::before, .h-list li:last-child::after, .h-rule { transform: none; }
}
/* Gallery */
.gallery { columns: 3 300px; column-gap: clamp(16px, 2vw, 28px); }
.gallery figure { break-inside: avoid; margin: 0 0 clamp(16px, 2vw, 28px); }
.gallery img { width: 100%; height: auto; display: block; }
.gallery figcaption { padding-top: 10px; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.gallery-cta { margin-top: clamp(24px, 4vw, 48px); justify-content: center; }

/* ---------- Phones: designed, not just shrunk ---------- */
@media (max-width: 760px) {
  /* Comfortable tap areas (at least 44px tall) */
  .site-footer li { padding: 0; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer .ci { min-height: 44px; }
  .text-link { display: inline-flex; align-items: center; min-height: 44px; }
  .btn { min-height: 52px; }
  .form-submit .btn, .form-submit button { width: 100%; }

  /* Calmer type on small screens */
  .h-eyebrow { font-size: .8rem; letter-spacing: .18em; }
  .h-head h2, .h-quote h2 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .h-section { padding: 72px 0; }
  /* Let section headlines wrap naturally instead of keeping the desktop line breaks */
  .js .h-head .lines .line, .js .h-quote .lines .line { display: inline; overflow: visible; }
  .js .h-head .lines .line > span, .js .h-quote .lines .line > span { display: inline; transform: none; }
  .h-head .lines .line + .line::before, .h-quote .lines .line + .line::before { content: " "; }

  /* Hero headline: smaller font, allow em to wrap, reflow lines */
  .h-intro .h-display { font-size: clamp(2rem, 9.5vw, 2.6rem); }
  .h-display em { white-space: normal; }
  .js .h-intro .lines .line { display: inline; overflow: visible; }
  .js .h-intro .lines .line > span { display: inline; transform: none; }
  .h-intro .lines .line + .line::before { content: " "; }
  /* Hero lede and intro padding */
  .h-intro { padding-top: clamp(40px, 7vw, 72px); }
  .h-lede { font-size: 1rem; margin-top: 16px; }
  .h-hero-cta { margin-top: 24px; gap: 10px; }
  .h-hero-cta .btn { flex: 1 1 100%; }

  /* Areas: a neat 2 x 2 grid instead of a wrapped line with stray dots */
  .h-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; max-width: 320px; margin: 0 auto; }
  .h-areas li { justify-content: center; }
  .h-areas li + li::before { display: none; }

  /* About: step number sits above its title, text uses the full width */
  .process-item { grid-template-columns: 1fr; gap: 6px; padding: 28px 0; }
  .process-item p { grid-column: 1; }
  .process-item .n { font-size: 2rem; }

  /* Services: the "on this page" list becomes a sticky row of chips under the header */
  .svc-nav {
    display: flex; position: sticky; top: var(--header-h); z-index: 20; gap: 8px; margin: 0 calc(-1 * var(--gutter)) 8px;
    padding: 10px var(--gutter); overflow-x: auto; scrollbar-width: none; background: var(--paper); border-bottom: 1px solid var(--rule);
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .svc-nav::-webkit-scrollbar { display: none; }
  .svc-nav p, .svc-nav .btn { display: none; }
  .svc-nav a:not(.btn) {
    flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px;
    font-size: .98rem; white-space: nowrap; color: var(--ink-2); text-decoration: none;
  }
  .svc-nav a.is-active { border: 1px solid var(--ink); padding-left: 16px; background: var(--ink); color: var(--white); }
}

/* ---------- Location pages (Washington DC, Maryland, Virginia) ---------- */
.loc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.loc-list li { border-top: 1px solid var(--rule); }
.loc-list a { display: block; padding: 22px 0 24px; color: var(--ink); text-decoration: none; }
.loc-list strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.2; margin-bottom: 6px; transition: color .4s var(--ease), transform .6s var(--ease); }
.loc-list span { display: block; color: var(--ink-2); font-size: .98rem; line-height: 1.6; }
.loc-list a:hover strong, .loc-list a:focus-visible strong { color: var(--blue); transform: translateX(6px); }
.loc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.loc-cols h3 { margin-bottom: 14px; }
.loc-cols p { color: var(--ink-2); margin: 0; }
.loc-note { margin: clamp(32px, 4vw, 48px) 0 0; max-width: 62em; color: var(--ink-2); }
.loc-areas { margin-bottom: 0; }
.loc-links { display: flex; justify-content: center; gap: 28px; margin-top: 24px; }
@media (max-width: 760px) {
  .loc-list, .loc-cols { grid-template-columns: 1fr; }
}

/* ---------- Guide articles ---------- */
.guide-meta { margin-bottom: 14px; }
.guide-body { max-width: 76ch; }
.guide-body .lede { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; color: var(--ink); margin-bottom: 2rem; }
.guide-body h3 { font-size: 1.2rem; font-weight: 700; margin: 2.4rem 0 .6rem; }
.guide-body h4 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .5rem; }
.guide-body p { margin: 0 0 1rem; }
.guide-body ul.checks { margin: 1rem 0 1.6rem; }
.guide-body .loc-cols p { color: var(--ink); }
@media (max-width: 760px) {
  .guide-body .loc-cols { gap: 24px; }
}

/* ---------- Home: "Tell us what you need" picker ---------- */
.h-section--tight { padding-bottom: clamp(24px, 4vw, 48px); }
.h-head .h-lede { margin: 18px auto 0; max-width: 34em; }
.h-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 4vw, 56px); max-width: 1080px; margin: 0 auto; }
.h-pick li { border-top: 1px solid var(--rule); }
.h-pick li:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
.h-pick a {
  position: relative; display: grid; grid-template-columns: 1fr 44px; grid-template-areas: "who go" "q go" "svc go"; align-items: center; column-gap: 16px;
  padding: 24px 18px; color: var(--ink); text-decoration: none; isolation: isolate;
}
.h-pick a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--stone); clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease); }
.h-pick-who { grid-area: who; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); margin-bottom: 6px; }
.h-pick-q { grid-area: q; font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.18; transition: transform .7s var(--ease), color .4s var(--ease); }
.h-pick-svc { grid-area: svc; margin-top: 8px; font-size: .9rem; color: var(--ink-2); }
.h-pick .h-go { grid-area: go; }
.h-pick a:hover::before, .h-pick a:focus-visible::before { clip-path: inset(0 0 0 0); }
.h-pick a:hover .h-pick-q, .h-pick a:focus-visible .h-pick-q { transform: translateX(6px); color: var(--copper); }
.h-pick a:hover .h-go svg, .h-pick a:focus-visible .h-go svg { transform: none; opacity: 1; }
@media (max-width: 760px) {
  .h-pick { grid-template-columns: 1fr; }
  .h-pick li:nth-last-child(2) { border-bottom: 0; }
  .h-pick a { padding: 22px 4px; }
  .h-pick .h-go svg { transform: none; opacity: .6; }
}

/* Simplified 3-row picker */
.h-pick--simple { grid-template-columns: 1fr; max-width: 700px; }
.h-pick--simple li:last-child { border-bottom: 1px solid var(--rule); }
.h-pick--simple a { grid-template-areas: "who go" "q go"; }
.h-pick--simple .h-pick-svc { display: none; }

/* Hero two-button row */
.h-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
@media (max-width: 600px) { .h-hero-cta .btn { flex: 1 1 100%; } }

/* ---------- Home hero: every service in one calm row ---------- */
.h-photo { margin-top: clamp(32px, 4.5vw, 56px); }
.h-services { margin: 36px auto 0; max-width: 940px; }
.h-services-label { margin: 0 auto 16px; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.h-services ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.h-services ul a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--blue-line); border-radius: 999px;
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600; letter-spacing: .01em; color: var(--ink); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.h-services ul a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); transform: translateY(101%); transition: transform .55s var(--ease); }
.h-services ul a:hover, .h-services ul a:focus-visible { color: var(--white); border-color: var(--blue); transform: translateY(-2px); }
.h-services ul a:hover::before, .h-services ul a:focus-visible::before { transform: none; }
.h-trust { margin-top: 26px; }
@media (max-width: 760px) {
  .h-photo img, .h-photo video { aspect-ratio: 4 / 3; }
  .h-services { margin-top: 30px; }
  .h-services ul { gap: 8px; }
  .h-services ul a { min-height: 42px; padding: 0 16px; font-size: 1.02rem; }
}

/* Centered section heads and the "not sure yet" link */
.h-head--center .h-eyebrow { margin: 0 auto 18px; text-align: center; max-width: none; }
.h-more { margin: clamp(32px, 4vw, 48px) auto 0; text-align: center; max-width: none; }

/* Home: three plain steps above the picker */
.h-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin: 22px auto 0; padding: 0; list-style: none; font-size: 1.05rem; color: var(--ink); }
.h-steps li { display: inline-flex; align-items: center; gap: 10px; }
.h-steps b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: var(--white); font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
@media (max-width: 760px) { .h-steps { flex-direction: column; align-items: flex-start; width: max-content; max-width: 100%; gap: 10px; } }

/* Warm copper button: stands out from the blue and cream, used once under "Choose your service" */
.btn-copper { --btn-bg: #96622A; --btn-fg: var(--white); --btn-bd: #96622A; }
.btn-copper:hover { --btn-bg: #7C4F1F; --btn-bd: #7C4F1F; }
.h-services-cta { margin: 28px auto 0; max-width: none; }
@media (max-width: 760px) { .h-services-cta .btn { width: 100%; } }

/* ---------- Services dropdown in the top bar ---------- */
.nav .has-sub { position: relative; }
.nav .has-sub::after { content: ""; position: absolute; left: -20px; right: -20px; top: 100%; height: 18px; }
.nav .sub {
  position: absolute; top: calc(100% + 14px); left: -22px; min-width: 250px; display: flex; flex-direction: column; gap: 0; padding: 10px 0;
  background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 18px 40px rgba(14, 34, 53, .12);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub li { margin: 0; }
.nav .sub a { display: block; padding: 11px 24px; white-space: nowrap; }
.nav .sub a::after { display: none; }
.nav .sub a:hover, .nav .sub a:focus-visible { background: var(--stone); color: var(--blue); }
.mobile-menu nav a.sub-link { font-size: 1.35rem; padding-left: 22px; opacity: .85; }

/* ---------- Home: three main service cards ---------- */
.h-split-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.h-split-head h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.08; }
.h-split-head h2 em { color: var(--copper); }
.h-split-head .h-eyebrow { margin: 0 0 18px; }
.h-split-side p { margin: 0 0 20px; color: var(--ink-2); max-width: 34em; }
.h-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.h-card3 { display: flex; flex-direction: column; padding: 10px 10px 26px; background: var(--white); color: var(--ink); text-decoration: none; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.h-card3:hover, .h-card3:focus-visible { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(14, 34, 53, .1); }
.h-card3-img { overflow: hidden; margin-bottom: 20px; }
.h-card3-img img { width: 100%; aspect-ratio: 7 / 4; object-fit: cover; transition: transform 1.4s var(--ease); }
.h-card3:hover .h-card3-img img { transform: scale(1.04); }
.h-card3 h3 { margin: 0 14px 10px; font-size: clamp(1.6rem, 2vw, 1.9rem); }
.h-card3 p { margin: 0 14px 24px; color: var(--ink-2); font-size: 1rem; flex: 1; }
.h-card3-more { display: flex; align-items: center; justify-content: space-between; margin: 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.h-card3-more svg { width: 34px; height: 10px; transition: transform .6s var(--ease); }
.h-card3:hover .h-card3-more svg { transform: translateX(6px); }

/* Two buttons under "Choose your service" */
.h-services-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Footer: five columns */
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr .8fr 1.15fr; }

@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .h-split-head { grid-template-columns: 1fr; align-items: start; }
  .h-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .h-services-cta .btn { flex: 1 1 100%; } }

/* ---------- "Need a builder?" band ---------- */
.h-builder { background: var(--stone); }
.h-builder-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.h-builder .h-eyebrow { margin: 0 0 14px; }
.h-builder h2 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); line-height: 1.05; }
.h-builder p { color: var(--ink-2); max-width: 34em; margin: 0 0 24px; }
@media (max-width: 760px) { .h-builder-grid { grid-template-columns: 1fr; } .h-builder .btn { width: 100%; } }
