/* K&M Commercial Holiday Lighting
   Built around the real project photos: winter-night navy (matches the photo skies),
   snow, ivory, and gold. The photography supplies the color; the interface stays quiet.

   Type: Newsreader (display cut) for headings, Hanken Grotesk for everything else.
   Headings are set at regular weight with tight tracking; the sans carries labels,
   navigation, buttons, and forms, often in small tracked capitals. */
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/Newsreader-Display.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/HankenGrotesk.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
/* Metric-matched fallbacks so text doesn't reflow when the web fonts arrive */
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); size-adjust: 102%; ascent-override: 72%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Hanken Fallback"; src: local("Arial"); size-adjust: 101.5%; ascent-override: 98.5%; descent-override: 29.8%; line-gap-override: 0%; }

:root {
  --night-950: #080d18;
  --night-900: #0d1526;
  --night-800: #15213a;
  --night-700: #22314f;
  --snow: #f7f6f1;
  --snow-line: #dedcd2;
  --ivory: #fbf6ea;
  --ivory-dim: #c6ccd8;
  --line-dark: rgba(198, 204, 216, .16);
  --gold: #d8b25e;
  --gold-deep: #9c7629;
  --glow: #ffd690;
  --ink: #141b2b;
  --ink-soft: #4d566a;
  --error: #b3363d;
  --success: #2f6b4f;

  --display: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --body: "Hanken Grotesk", "Hanken Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --track-caps: .14em;
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  --radius-sm: 2px;
  --radius-lg: 8px;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--night-900);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
img, svg { display: block; max-width: 100%; }
picture { display: block; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Small tracked capitals: eyebrows, captions-as-labels, step numbers */
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--body); font-size: .75rem; font-weight: 600; line-height: 1.2;
  letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--gold);
}
.section-light .eyebrow { color: var(--gold-deep); }
p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ivory); color: var(--ink);
  padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.section-light :focus-visible { outline-color: var(--gold-deep); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 32px;
  border-radius: 2px;
  font: 600 .8125rem/1 var(--body); letter-spacing: .11em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-small { min-height: 44px; padding: 0 20px; font-size: .75rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--night-950); }
.btn-gold:hover { background: #e6c374; }
.btn-ghost { border-color: rgba(251, 246, 234, .45); color: var(--ivory); background: rgba(8, 13, 24, .25); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--ivory); }

.text-link {
  display: inline-block; margin-top: 32px;
  color: var(--glow); font-size: .8125rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid rgba(255, 214, 144, .45); padding-bottom: 5px;
  transition: border-color .25s;
}
.text-link:hover { border-bottom-color: var(--glow); }

/* Wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; }
.logo-mark { width: 38px; height: 30px; flex: none; margin-top: -4px; }
.wordmark-mark { font-family: var(--display); font-size: 1.75rem; font-weight: 500; line-height: 1; letter-spacing: -.01em; color: var(--ivory); }
.wordmark-sub {
  font-size: .6875rem; font-weight: 600; line-height: 1.2; color: var(--ivory-dim);
  letter-spacing: var(--track-caps); text-transform: uppercase;
  padding-left: 12px; border-left: 1px solid rgba(198, 204, 216, .3);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s;
}
.site-header.is-solid {
  background: rgba(13, 21, 38, .92);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(216, 178, 94, .18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.site-nav { display: flex; gap: 28px; }
.site-nav a, .header-phone {
  position: relative; text-decoration: none; font-size: .875rem; font-weight: 500; letter-spacing: .02em; color: var(--ivory); opacity: .8;
  transition: opacity .2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { transform: scaleX(1); }
.header-phone:hover { opacity: 1; }
.site-nav .nav-quote, .site-nav .nav-phone { display: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: var(--hero-h, 100svh);
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--night-950);
}
.hero-media { position: absolute; inset: 0; }
.hero-media picture { width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* Deepen the sky behind the headline and the lawn behind the buttons; the house itself is untouched */
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 13, 24, .55) 0%, rgba(8, 13, 24, .18) 26%, rgba(8, 13, 24, 0) 40%),
    linear-gradient(0deg, rgba(8, 13, 24, .6) 0%, rgba(8, 13, 24, 0) 18%);
}
/* Centered over the symmetrical house: everything sits in the sky, nothing covers the lights */
.hero-copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: clamp(108px, 15vh, 162px);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -.028em;
  max-width: 17ch;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(8, 13, 24, .45);
}
.hero-lede {
  margin-top: 24px; max-width: 62ch;
  font-size: 1.0625rem; line-height: 1.6; color: #e3e7ef;
  text-shadow: 0 1px 16px rgba(8, 13, 24, .6); text-wrap: balance;
}
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (min-width: 701px) and (max-height: 820px) {
  .hero-copy { padding-top: 96px; }
  .hero h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); }
  .hero-lede { margin-top: 16px; font-size: 1rem; }
  .hero-actions { margin-top: 24px; }
}
.hero-credit { padding-top: 14px; font-size: .75rem; letter-spacing: .02em; color: rgba(198, 204, 216, .65); text-align: right; }

/* Hero entrance: the photo settles, then the copy follows. Under a second, then a slow ambient drift. */
.js .hero-media img { opacity: 0; transform: scale(1.05); }
.js .hero h1, .js .hero-lede, .js .hero-actions { opacity: 0; transform: translateY(14px); }
.hero.is-ready .hero-media img { opacity: 1; transform: none; transition: opacity 1s ease-out, transform 2.2s var(--ease-out); }
.hero.is-ready h1, .hero.is-ready .hero-lede, .hero.is-ready .hero-actions {
  opacity: 1; transform: none;
  transition: opacity .8s ease-out, transform .9s var(--ease-out);
}
.hero.is-ready h1 { transition-delay: .2s; }
.hero.is-ready .hero-lede { transition-delay: .38s; }
.hero.is-ready .hero-actions { transition-delay: .5s; }
.hero.is-ready .hero-media picture { animation: drift 26s ease-in-out 2.2s infinite alternate; }
@keyframes drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.035) translate3d(-.6%, -.4%, 0); }
}

/* ---------- Facts ---------- */
.facts { background: var(--night-950); border-top: 1px solid rgba(216, 178, 94, .28); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 36px; padding-bottom: 52px; }
.facts-grid > div { padding: 0 28px; border-left: 1px solid var(--line-dark); }
.facts-grid > div:first-child { border-left: 0; padding-left: 0; }
.facts-grid dt {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.875rem, 2.6vw, 2.375rem); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: lining-nums;
  color: var(--ivory);
}
.facts-grid dd { margin-top: 12px; font-size: .875rem; line-height: 1.55; color: var(--ivory-dim); max-width: 26ch; }

/* ---------- Shared section styles ---------- */
.section { position: relative; padding: clamp(88px, 10vw, 140px) 0; }
.section-light { background: var(--snow); color: var(--ink); }
.section-dark { background: var(--night-900); color: var(--ivory); }
/* Section headings: one size everywhere, kept to a short measure so they read as statements */
h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.022em;
  max-width: 18ch;
}
.section-lede { margin-top: 22px; font-size: 1.0625rem; line-height: 1.65; max-width: 46ch; }
.section-light .section-lede { color: var(--ink-soft); }
.section-dark .section-lede, .property .section-lede, .work .section-lede { color: var(--ivory-dim); }

/* Text rises in as its section arrives */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .9s ease-out, transform 1s var(--ease-out); }
.js .rise.is-visible { opacity: 1; transform: none; }

/* Parallax: the image is slightly oversized so it can drift inside its frame */
[data-parallax] { overflow: hidden; }
[data-parallax] img { transform: translate3d(0, var(--py, 0px), 0) scale(var(--ps, 1.1)); will-change: transform; transition: transform .9s var(--ease-out); }

/* Scroll reveal: photo uncovers from the bottom edge and settles */
.js .reveal .work-img, .js .reveal .work-feature-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-out); }
.js .reveal picture { transform: scale(1.08); transition: transform 1.8s var(--ease-out); }
.js .reveal.is-visible .work-img, .js .reveal.is-visible .work-feature-img { clip-path: inset(0 0 0 0); }
.js .reveal.is-visible picture { transform: none; }

/* ---------- Who we serve (split screen) ---------- */
.property {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--night-900);
  min-height: clamp(640px, 94vh, 960px);
}
.property-media { position: relative; height: 100%; min-height: 560px; }
.property-media picture, .property-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.property-media img { object-fit: cover; object-position: 50% 62%; }
.property-media figcaption { position: absolute; left: var(--gutter); bottom: 20px; font-size: .75rem; letter-spacing: .02em; color: rgba(251, 246, 234, .8); }
.property-copy { align-self: center; padding: clamp(64px, 8vw, 120px) clamp(24px, 7vw, 112px); max-width: 680px; }
.property-list-title { margin: 48px 0 0; }
.property-list {
  list-style: none; margin: 16px 0 0; padding: 0;
}
.property-list li {
  padding: 12px 0;
  font-family: var(--display); font-size: 1.3125rem; line-height: 1.3; letter-spacing: -.01em;
  border-top: 1px solid var(--line-dark);
}
.property-list li:last-child { border-bottom: 1px solid var(--line-dark); }

/* ---------- Our work ---------- */
.work { background: var(--night-950); padding: clamp(96px, 12vw, 160px) 0 clamp(96px, 11vw, 150px); }
.work-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px); }
.work-feature { position: relative; width: min(86vw, 1480px); }
.work-feature-img { aspect-ratio: 2 / 1; }
.work-feature-img picture, .work-img picture { height: 100%; }
.work-feature-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.work-feature-caption {
  position: absolute; right: -6vw; bottom: -56px;
  width: min(400px, 34vw);
  padding: 28px 30px;
  background: var(--night-800);
  border-top: 2px solid var(--gold);
}
.work-feature-caption h3 { font-family: var(--display); font-size: 1.5rem; line-height: 1.15; letter-spacing: -.015em; color: var(--ivory); }
.work-feature-caption p { margin-top: 10px; font-size: .875rem; line-height: 1.6; color: var(--ivory-dim); }
.work-pair {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  margin-top: clamp(120px, 14vw, 200px);
  align-items: start;
}
.work-wide { grid-column: 1 / span 7; }
.work-offset { grid-column: 8 / span 5; margin-top: clamp(96px, 14vw, 220px); }
.work-img { overflow: hidden; }
.work-wide .work-img { aspect-ratio: 1400 / 660; }
.work-offset .work-img { aspect-ratio: 1600 / 825; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.work-wide img { object-position: 50% 48%; }
.work figcaption:not(.work-feature-caption) { margin-top: 14px; font-size: .75rem; letter-spacing: .02em; color: var(--ivory-dim); }
.work-invite { margin-top: clamp(96px, 12vw, 170px); }
.work-invite-line {
  font-family: var(--display);
  font-size: clamp(2.25rem, 4.4vw, 3.75rem);
  line-height: 1.04; letter-spacing: -.026em;
  max-width: 15ch;
  margin-bottom: 40px;
}
/* Slight movement on hover (pointer devices only) */
@media (hover: hover) {
  .work-img:hover img { transform: scale(1.025); }
  .work-feature-img:hover { --ps: 1.125; }
}

/* ---------- Services ---------- */
.services-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.services-head .section-lede { margin-top: 0; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--snow-line);
}
.service {
  padding: 32px 32px 40px 0;
  border-bottom: 1px solid var(--snow-line);
}
.service:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--snow-line); }
.service h3 { font-family: var(--display); font-size: 1.4375rem; line-height: 1.18; letter-spacing: -.015em; }
.service p { margin-top: 12px; font-size: .9375rem; line-height: 1.65; color: var(--ink-soft); max-width: 40ch; }

.included {
  margin-top: clamp(48px, 6vw, 72px);
  padding: 40px 40px 44px;
  background: var(--night-900); color: var(--ivory);
  border-radius: var(--radius-lg);
}
.included h3 { margin: 0; color: var(--gold); }
.included ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.included li {
  position: relative; padding-top: 18px;
  font-size: .875rem; line-height: 1.5; color: #dfe3eb;
  border-top: 1px solid rgba(216, 178, 94, .35);
}
.included li::before {
  content: ""; position: absolute; left: 0; top: -4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 10px 3px rgba(255, 197, 107, .45);
}
.nowrap { white-space: nowrap; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 104px); }
.process-intro { position: sticky; top: 120px; align-self: start; }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.timeline li {
  counter-increment: step;
  display: grid; grid-template-columns: 64px 1fr; column-gap: 8px;
  padding: 28px 0; border-top: 1px solid var(--line-dark);
}
.timeline li:last-child { border-bottom: 1px solid var(--line-dark); }
.timeline li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font-size: .75rem; font-weight: 600; letter-spacing: var(--track-caps); line-height: 2.4; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.timeline h3 { font-family: var(--display); font-size: 1.4375rem; line-height: 1.25; letter-spacing: -.015em; }
.timeline p { margin-top: 8px; font-size: .9375rem; line-height: 1.65; color: var(--ivory-dim); max-width: 50ch; }

/* ---------- Ownership ---------- */
.own-head { max-width: 780px; }
.own-head h2 { max-width: 20ch; }
.own-compare { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.own-col { padding: 36px 40px 40px; background: #fff; border: 1px solid var(--snow-line); border-radius: var(--radius-lg); }
.own-col h3 { margin: 0; color: var(--gold-deep); }
.own-col-after h3 { color: var(--gold); }
.own-col-after { background: var(--night-900); color: var(--ivory); border-color: var(--night-900); }
.check-list { list-style: none; margin: 20px 0 0; padding: 0; }
.check-list li { position: relative; padding: 12px 0 12px 28px; font-size: .9375rem; border-top: 1px solid var(--snow-line); }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 11px; height: 6px;
  border-left: 1.5px solid var(--gold-deep); border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(-45deg);
}
.own-col-after .check-list li { border-color: var(--line-dark); }
.own-col-after .check-list li::before { border-color: var(--glow); }
.own-note { margin-top: 24px; font-family: var(--display); font-size: 1.75rem; line-height: 1; letter-spacing: -.02em; color: var(--glow); }

/* ---------- About ---------- */
.about {
  background:
    radial-gradient(ellipse 55% 90% at 0% 0%, rgba(216, 178, 94, .1), transparent 70%),
    var(--night-800);
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 7vw, 96px); align-items: end; }
.about-body p { color: var(--ivory-dim); font-size: 1.0625rem; line-height: 1.7; max-width: 46ch; }
.about-body p + p { margin-top: 16px; }

/* ---------- Service area + FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 104px); }
.area p + p { margin-top: 16px; color: var(--ink-soft); }
.area a { color: var(--ink); font-weight: 600; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--snow-line); }
.faq details:last-child { border-bottom: 1px solid var(--snow-line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 68px; padding: 18px 0;
  font-family: var(--display); font-size: 1.3125rem; font-weight: 400; line-height: 1.3; letter-spacing: -.012em;
  transition: color .2s;
}
.faq summary:hover { color: var(--gold-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 1.5px solid var(--gold-deep); border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { padding: 0 40px 24px 0; font-size: .9375rem; line-height: 1.7; color: var(--ink-soft); max-width: 60ch; }
.area .section-lede, .area p { max-width: 44ch; }

/* ---------- Quote ---------- */
.quote { background: linear-gradient(180deg, var(--night-900), var(--night-950)); }
.quote-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.next-steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: next; }
.next-steps li {
  counter-increment: next;
  display: flex; gap: 16px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--line-dark); font-size: .9375rem; color: var(--ivory);
}
.next-steps li:last-child { border-bottom: 1px solid var(--line-dark); }
.next-steps li::before { content: counter(next, decimal-leading-zero); font-size: .75rem; font-weight: 600; letter-spacing: var(--track-caps); color: var(--gold); min-width: 28px; }
.quote-alt { margin-top: 24px; color: var(--ivory-dim); }
.quote-alt a { color: var(--glow); font-weight: 600; }

.quote-form {
  background: var(--ivory); color: var(--ink);
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(216, 178, 94, .4), 0 40px 90px -40px rgba(255, 197, 107, .3);
}
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { display: block; font-weight: 600; font-size: .875rem; letter-spacing: .01em; margin-bottom: 8px; padding: 0; }
.optional { font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: #fff; border: 1px solid #c3c7cf; border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(216, 178, 94, .3); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .875rem; margin-top: 6px; }
.field-error:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 500; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid #c3c7cf; border-radius: 2px; background: #fff; font-size: .875rem; font-weight: 500;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chips label:hover span { border-color: var(--ink-soft); }
.chips input:checked + span { background: var(--night-900); border-color: var(--night-900); color: var(--ivory); }
.chips input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.field-org[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.field-label { display: block; font-weight: 600; font-size: .875rem; letter-spacing: .01em; margin-bottom: 8px; }
.field select {
  width: 100%; min-height: 50px; padding: 12px 40px 12px 14px;
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239c7629' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid #c3c7cf; border-radius: var(--radius-sm);
  -webkit-appearance: none; appearance: none;
}
.field select:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(216, 178, 94, .3); }
.field input::placeholder, .field textarea::placeholder { color: #8a8f9a; }
.field-address input[name="street"] { width: 100%; }
.address-row { display: grid; grid-template-columns: 1fr 84px 112px; gap: 10px; margin-top: 10px; }
.chips input[aria-invalid="true"] + span { border-color: var(--error); }

/* Photo upload */
.field .upload {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  margin: 0; font-weight: 400;
  padding: 18px 18px 18px 64px; min-height: 76px;
  border: 1px dashed #b5bac4; border-radius: var(--radius-sm); background: #fff;
  cursor: pointer; transition: border-color .2s, background-color .2s;
}
.upload::before {
  content: ""; position: absolute; left: 18px; top: 20px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--night-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23d8b25e' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat center;
}
.upload:hover { border-color: var(--gold-deep); background: #fffdf7; }
.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload:focus-within { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.upload-cta { font-weight: 600; }
.upload-hint { font-size: .875rem; color: var(--ink-soft); }
.upload-list { list-style: none; margin: 0; padding: 0; }
.upload-list:not(:empty) { margin-top: 10px; display: grid; gap: 8px; }
.upload-list li {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  padding: 6px 6px 6px 6px; background: #fff; border: 1px solid var(--snow-line); border-radius: var(--radius-sm);
}
.upload-list img, .upload-thumb-fallback { width: 44px; height: 44px; object-fit: cover; border-radius: 2px; background: var(--snow-line); }
.upload-thumb-fallback { display: grid; place-items: center; font-size: .6875rem; color: var(--ink-soft); }
.upload-name { font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-remove {
  min-height: 44px; padding: 0 12px; background: none; border: 0; cursor: pointer;
  font-size: .875rem; font-weight: 600; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px;
}
.upload-remove:hover { color: var(--error); }

.form-consent { margin-top: 12px; font-size: .8125rem; line-height: 1.5; color: var(--ink-soft); }
.quote-success {
  padding: clamp(28px, 4vw, 44px);
  background: var(--ivory); color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(216, 178, 94, .4), 0 40px 90px -40px rgba(255, 197, 107, .3);
}
.quote-success[hidden] { display: none; }
.quote-success:focus { outline: none; }
.quote-success h3 { font-family: var(--display); font-size: 2.25rem; line-height: 1.05; letter-spacing: -.022em; }
.quote-success p { margin-top: 12px; color: var(--ink-soft); }
.quote-success .quote-alt { color: var(--ink-soft); }
.quote-success .quote-alt a { color: var(--gold-deep); }
.hp { position: absolute; left: -9999px; font-size: 16px; }
.quote-form button { margin-top: 8px; }
.quote-form button[disabled] { opacity: .6; cursor: progress; }
.form-status { margin-top: 14px; font-size: .9375rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--success); font-weight: 600; }
.form-status a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-950); padding: 64px 0 32px; border-top: 1px solid rgba(216, 178, 94, .18); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer-area { margin-top: 12px; color: var(--ivory-dim); font-size: .9375rem; }
.footer-contact { display: flex; gap: 28px; }
.footer-contact a { color: var(--ivory); text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: var(--glow); }
.footer-legal { margin-top: 40px; color: #7c8496; font-size: .8125rem; }

.mobile-bar { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .header-phone { display: none; }
}
@media (max-width: 1024px) {
  /* Navigation moves into a full-width panel */
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 4px 0 12px;
    background: none; border: 0; cursor: pointer; font-weight: 600; font-size: .9375rem;
  }
  .menu-toggle-icon { position: relative; width: 20px; height: 12px; }
  .menu-toggle-icon::before, .menu-toggle-icon::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
    transition: transform .3s var(--ease-out), top .3s var(--ease-out);
  }
  .menu-toggle-icon::before { top: 2px; }
  .menu-toggle-icon::after { top: 9px; }
  .menu-open .menu-toggle-icon::before { top: 5px; transform: rotate(45deg); }
  .menu-open .menu-toggle-icon::after { top: 5px; transform: rotate(-45deg); }

  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; gap: 0;
    padding: 16px var(--gutter) 40px;
    background: var(--night-900);
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s ease-out, transform .35s var(--ease-out), visibility 0s .35s;
  }
  .menu-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s ease-out, transform .35s var(--ease-out); }
  .menu-open .site-header { background: var(--night-900); }
  .site-nav a { opacity: 1; padding: 16px 0; font-family: var(--display); font-size: 1.75rem; border-bottom: 1px solid var(--line-dark); }
  .site-nav a::after { display: none; }
  .site-nav .nav-quote { display: flex; justify-content: center; margin-top: 28px; padding: 16px; border: 0; border-radius: var(--radius-sm); background: var(--gold); color: var(--night-950); font-family: var(--body); font-size: 1rem; font-weight: 600; }
  .site-nav .nav-phone { display: block; text-align: center; border: 0; font-family: var(--body); font-size: 1rem; color: var(--ivory-dim); }

  .facts-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .facts-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .work-feature { width: 100%; }
  .work-feature-caption { right: var(--gutter); bottom: -64px; width: min(400px, 60vw); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .service:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--snow-line); }
  .included ul { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
}

@media (max-width: 900px) {
  .process-grid, .faq-grid, .quote-grid, .about-grid, .services-head { grid-template-columns: 1fr; }
  .services-head { row-gap: 0; }
  .services-head .section-lede { margin-top: 20px; }
  .about-grid { row-gap: 24px; }
  .process-intro { position: static; }
  .property { grid-template-columns: 1fr; min-height: 0; }
  .property-media { height: auto; min-height: 0; aspect-ratio: 4 / 5; max-height: 80svh; }
  .work-pair { grid-template-columns: 1fr; row-gap: 56px; }
  .work-wide, .work-offset { grid-column: auto; margin-top: 0; }
  .work-offset { width: 82%; justify-self: end; }
}

/* ---------- Phone ---------- */
@media (max-width: 700px) {
  :root { --header-h: 64px; --gutter: 20px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); font-size: 1rem; }
  .wordmark-sub { display: none; }
  .header-actions .btn { display: none; }
  .site-header { background: linear-gradient(180deg, rgba(8, 13, 24, .6), rgba(8, 13, 24, 0)); }
  .site-header.is-solid { background: rgba(13, 21, 38, .94); }

  /* Hero: copy sits in the evening sky, the house (square crop) rises from below */
  .hero { min-height: 0; background: linear-gradient(180deg, #050b1d 0%, #03133f 62%, #03133f 100%); }
  .hero-media { position: relative; order: 2; margin-top: -18vw; aspect-ratio: 1 / 1; inset: auto; }
  .hero-media picture { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%); mask-image: linear-gradient(180deg, transparent 0%, #000 34%); }
  .hero-media img { object-position: 50% 50%; }
  .hero-media::after { background: linear-gradient(0deg, rgba(8, 13, 24, .4) 0%, rgba(8, 13, 24, 0) 16%); }
  .hero-copy { order: 1; align-items: stretch; text-align: left; padding-top: 100px; }
  .hero h1, .hero-lede { text-wrap: pretty; }
  .hero-actions { justify-content: stretch; margin-top: 24px; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 2.9rem); line-height: 1.02; letter-spacing: -.025em; }
  h2 { font-size: clamp(1.875rem, 8vw, 2.25rem); }
  .section-lede { font-size: 1rem; }
  .hero-lede { margin-top: 18px; font-size: 1.0625rem; }
  .hero-actions .btn { flex: 1 1 100%; min-height: 54px; }
  .hero-credit { text-align: left; }

  .facts-grid { grid-template-columns: 1fr 1fr; column-gap: 0; row-gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .facts-grid > div { padding: 0 0 0 16px; }
  .facts-grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts-grid dt { font-size: 1.625rem; }
  .facts-grid dd { font-size: .875rem; }

  .property-list { grid-template-columns: 1fr; }
  .property-media { aspect-ratio: 5 / 6; }

  .work-feature-img { aspect-ratio: 16 / 10; }
  .work-feature-img img { object-position: 50% 74%; }
  .work-feature-caption { position: static; width: auto; margin: 0 var(--gutter); transform: translateY(-28px); padding: 24px; }
  .work-pair { margin-top: 32px; }
  .work-offset { width: 88%; }

  .services-grid { grid-template-columns: 1fr; }
  .service, .service:nth-child(2n) { padding: 26px 0 28px; border-left: 0; }
  .included { padding: 30px 24px 32px; }
  .included ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }

  .timeline li { grid-template-columns: 44px 1fr; padding: 22px 0; }
  .timeline h3 { font-size: 1.3125rem; }
  .faq summary { font-size: 1.1875rem; }
  .service h3 { font-size: 1.3125rem; }

  .own-compare { grid-template-columns: 1fr; }
  .own-col { padding: 26px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .quote-form { margin: 0 calc(var(--gutter) * -1 + 8px); }
  .field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea, .field select { font-size: 16px; }
  .address-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .address-row > div:first-child { grid-column: 1 / -1; }
  .quote-success { margin: 0 calc(var(--gutter) * -1 + 8px); }
  .footer-contact { flex-direction: column; gap: 0; }
  .footer-contact a, .area a, .quote-alt a { display: inline-block; padding: 10px 0; }
  .text-link { padding: 12px 0 6px; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(8, 13, 24, .96); backdrop-filter: blur(8px);
    border-top: 1px solid rgba(216, 178, 94, .28);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
    transform: translateY(110%); transition: transform .4s var(--ease-out);
  }
  .mobile-bar.is-shown { transform: none; }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 48px;
    text-decoration: none; font-weight: 600; color: var(--ivory);
    border: 1px solid rgba(251, 246, 234, .22); border-radius: var(--radius-sm);
  }
  .mobile-bar .mobile-bar-quote { background: var(--gold); color: var(--night-950); border-color: var(--gold); }
}

/* Preview captures (?fullpage=…): render everything in its final state */
.is-capture *, .is-capture *::before, .is-capture *::after { transition: none !important; animation: none !important; }
.is-capture .rise, .is-capture .hero h1, .is-capture .hero-lede, .is-capture .hero-actions, .is-capture .hero-media img { opacity: 1 !important; transform: none !important; }
.is-capture .reveal .work-img, .is-capture .reveal .work-feature-img { clip-path: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .hero-media img, .js .hero h1, .js .hero-lede, .js .hero-actions, .js .rise { opacity: 1; transform: none; }
  .js .reveal .work-img, .js .reveal .work-feature-img { clip-path: none; }
  .js .reveal picture, [data-parallax] img { transform: none; }
  .mobile-bar { transform: none; }
}
