/* ==========================================================================
   Knox County Wallpaper Contractor — style.css
   Direction: American Farmhouse + Contemporary Minimalism ("Gable & Batten")
   Type: Playfair Display (display) + DM Sans (text), self-hosted variable woff2
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brief palette */
  --ivory: #F7F5EF;
  --cream: #EEEAE0;
  --sand: #D8CCBA;
  --taupe: #A99A87;
  --charcoal: #292B28;
  --olive: #737966;
  --white: #FFFFFF;

  /* Derived (all text pairs checked for WCAG AA) */
  --ink: #292B28;
  --ink-2: #44463F;
  --muted: #5A5B53;
  --olive-ink: #545A47;
  --taupe-ink: #6B5F51;
  --charcoal-2: #1F211E;
  --on-dark: #F7F5EF;
  --on-dark-muted: #CDC7BA;
  --sand-light: #E4DACB;
  --line: rgba(41, 43, 40, 0.14);
  --line-strong: rgba(41, 43, 40, 0.28);
  --line-dark: rgba(247, 245, 239, 0.16);
  --field-border: #8A8274;
  --placeholder: #6E6F66;
  --error: #A3271F;
  --error-bg: #FBEDEA;

  --ff-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --section-y: clamp(72px, 9vw, 136px);
  --radius: 2px;
  --gable-h: clamp(22px, 3.6vw, 54px);
  --batten: 88px;
  --shadow-sm: 0 1px 2px rgba(41, 43, 40, 0.06);
  --shadow: 0 1px 2px rgba(41, 43, 40, 0.05), 0 18px 40px -22px rgba(41, 43, 40, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Small wallpaper "sprig" and diamond patterns (decorative) */
  --pattern-sprig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23737966' stroke-width='1.1' stroke-linecap='round' opacity='.55'%3E%3Cpath d='M14 20c0-5 1-8 3-11'/%3E%3Cpath d='M14.6 15.5c-2.6-.4-4.2-1.9-4.6-4.3 2.5.1 4.1 1.6 4.6 4.3zM15.6 12.3c1.9-1.8 4-2.3 6.1-1.6-1.3 2-3.4 2.5-6.1 1.6z'/%3E%3Cpath d='M42 48c0-5 1-8 3-11'/%3E%3Cpath d='M42.6 43.5c-2.6-.4-4.2-1.9-4.6-4.3 2.5.1 4.1 1.6 4.6 4.3zM43.6 40.3c1.9-1.8 4-2.3 6.1-1.6-1.3 2-3.4 2.5-6.1 1.6z'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='20' viewBox='0 0 24 20'%3E%3Cg fill='%23737966'%3E%3Cpath d='M6 3l2.4 2.8L6 8.6 3.6 5.8z'/%3E%3Cpath d='M18 13l2.4 2.8L18 18.6l-2.4-2.8z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; font-family: var(--ff-display); font-weight: 450; color: inherit; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.35rem + 2.3vw, 3.35rem); line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.45vw, 1.55rem); line-height: 1.22; letter-spacing: -0.005em; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--sand); color: var(--charcoal); }
:focus-visible { outline: 2px solid var(--olive-ink); outline-offset: 3px; }
.section--dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--sand); }
.break { overflow-wrap: anywhere; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--charcoal); color: var(--on-dark); padding: 12px 18px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Eyebrow with gable glyph ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  margin: 0 0 1.1rem; color: var(--olive-ink);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1.4;
}
.gable {
  flex: none; width: 18px; height: 10px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M1 9 9 1.6 17 9' fill='none' stroke='%23545A47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.eyebrow--light { color: var(--sand-light); }
.eyebrow--light .gable {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M1 9 9 1.6 17 9' fill='none' stroke='%23E4DACB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--charcoal); --btn-fg: var(--on-dark); --btn-bd: var(--charcoal);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.8rem 1.4rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  border-radius: var(--radius); font-family: var(--ff-body); font-size: 0.97rem; font-weight: 600;
  letter-spacing: 0.01em; line-height: 1.2; text-align: center; text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 56px; padding: 1rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary:hover { --btn-bg: #3B3D39; --btn-bd: #3B3D39; box-shadow: 0 10px 24px -14px rgba(41,43,40,.6); }
.btn--light { --btn-bg: var(--ivory); --btn-fg: var(--charcoal); --btn-bd: var(--ivory); }
.btn--light:hover { --btn-bg: var(--white); --btn-bd: var(--white); }
.btn--ghost-light { --btn-bg: rgba(31, 33, 30, 0.28); --btn-fg: var(--on-dark); --btn-bd: rgba(247, 245, 239, 0.7); }
.btn--ghost-light:hover { --btn-bg: rgba(247, 245, 239, 0.14); --btn-bd: var(--on-dark); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--charcoal); --btn-bd: var(--charcoal); }
.btn--outline:hover { --btn-bg: var(--charcoal); --btn-fg: var(--on-dark); }
.btn-arrow, .link-arrow {
  display: inline-block; width: 16px; height: 10px; flex: none;
  background: currentColor;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
  transition: transform .25s var(--ease);
}
.btn:hover .btn-arrow, .text-link:hover .link-arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-top: auto;
  color: var(--charcoal); font-weight: 600; font-size: 0.97rem; text-decoration: none;
  padding: 0.4rem 0; border-bottom: 1px solid var(--line-strong);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.text-link:hover { border-bottom-color: var(--charcoal); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  color: var(--on-dark);
  transition: color .3s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(247, 245, 239, 0.95);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .3s var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header::before { background: rgba(247, 245, 239, 0.88); -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1); }
}
.site-header::after { /* soft top shade so the transparent header stays legible on the photo */
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(25, 26, 24, 0.55), rgba(25, 26, 24, 0));
  transition: opacity .3s var(--ease);
}
.site-header.is-solid, .site-header.menu-open { color: var(--ink); }
.site-header.is-solid::before, .site-header.menu-open::before { opacity: 1; }
.site-header.is-solid::after, .site-header.menu-open::after { opacity: 0; }

.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; flex: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.bm-tile { fill: var(--charcoal); }
.bm-panel { fill: var(--sand); }
.bm-dots { fill: var(--olive); }
.bm-roof { fill: none; stroke: var(--ivory); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.bm-sill { stroke: var(--taupe); stroke-width: 2.4; stroke-linecap: round; }
.site-header:not(.is-solid):not(.menu-open) .bm-tile { fill: rgba(247, 245, 239, 0.16); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--ff-display); font-size: 1.32rem; font-weight: 500; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; margin-top: 3px; }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 1.75rem); }
.nav-list a {
  position: relative; display: inline-block; padding: 0.5rem 0; text-decoration: none;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.25rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
.nav-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 1rem; flex: none; }
.header-phone { display: none; font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.header-phone:hover { text-decoration: underline; }
.btn--header { --btn-bg: var(--ivory); --btn-fg: var(--charcoal); --btn-bd: var(--ivory); min-height: 44px; padding: 0.6rem 1.1rem; font-size: 0.92rem; white-space: nowrap; }
.site-header.is-solid .btn--header, .site-header.menu-open .btn--header { --btn-bg: var(--charcoal); --btn-fg: var(--on-dark); --btn-bd: var(--charcoal); }

.menu-toggle {
  display: none; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.5rem 0.75rem;
  background: transparent; border: 1px solid currentColor; border-radius: var(--radius); color: inherit;
  font-weight: 600; font-size: 0.92rem;
}
.menu-toggle__bars { position: relative; width: 20px; height: 14px; display: inline-block; }
.menu-toggle__bars span { position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 6px; }
.menu-toggle__bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-backdrop { position: fixed; inset: var(--header-h) 0 0 0; z-index: 55; background: rgba(25, 26, 24, 0.45); }
.nav-backdrop[hidden] { display: none; }

@media (min-width: 1380px) { .header-phone { display: inline; } }

@media (max-width: 1139px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; z-index: 58;
    width: min(420px, 100%); margin: 0; padding: 1.5rem var(--gutter) 2rem;
    background: var(--ivory); color: var(--ink); border-left: 1px solid var(--line);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
  }
  .primary-nav.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    display: block; padding: 0.95rem 0; border-bottom: 1px solid var(--line);
    font-family: var(--ff-display); font-size: 1.5rem; font-weight: 450;
  }
  .nav-list a::after { display: none; }
  .nav-extra { display: grid; gap: 0.9rem; margin-top: 1.75rem; }
  .nav-phone { font-weight: 600; font-size: 1.05rem; text-decoration: none; padding: 0.4rem 0; }
  .nav-address { margin: 0; color: var(--muted); font-size: 0.95rem; }
}
@media (max-width: 759px) {
  :root { --header-h: 68px; }
  .btn--header { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.16rem; }
  .brand-sub { font-size: 0.66rem; letter-spacing: 0.1em; }
  .menu-toggle__label { display: none; }
  .menu-toggle { padding: 0.5rem 0.7rem; min-width: 46px; justify-content: center; }
}
@media (max-width: 359px) {
  .brand-sub { letter-spacing: 0.04em; }
  .brand { gap: 0.55rem; }
}
/* Without JavaScript: navigation becomes a simple scrollable row */
@media (max-width: 1139px) {
  .no-js .site-header { position: absolute; height: auto; }
  .no-js .header-inner { flex-wrap: wrap; padding-top: 0.75rem; padding-bottom: 0.5rem; height: auto; }
  .no-js .menu-toggle { display: none; }
  .no-js .primary-nav {
    position: static; transform: none; visibility: visible; width: 100%; order: 3;
    background: transparent; color: inherit; border: 0; padding: 0; overflow-x: auto;
  }
  .no-js .nav-list { flex-direction: row; gap: 1.1rem; }
  .no-js .nav-list a { font-family: var(--ff-body); font-size: 0.95rem; border: 0; padding: 0.4rem 0; white-space: nowrap; }
  .no-js .nav-extra { display: none; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section--ivory { background: var(--ivory); }
.section--white { background: var(--white); }
.section--cream {
  background-color: var(--cream);
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(var(--batten) - 1px), rgba(41, 43, 40, 0.045) calc(var(--batten) - 1px) var(--batten));
}
.section--dark {
  background-color: var(--charcoal); color: var(--on-dark);
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(var(--batten) - 1px), rgba(247, 245, 239, 0.035) calc(var(--batten) - 1px) var(--batten));
}
/* Roofline: a low gable peak where a dark band meets the section above */
.section--dark::before, .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--gable-h) * -1 + 1px); height: var(--gable-h);
  background: inherit; background-color: var(--charcoal);
  -webkit-clip-path: polygon(0 100%, 50% 0, 100% 100%); clip-path: polygon(0 100%, 50% 0, 100% 100%);
  pointer-events: none;
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { max-width: 18ch; }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; }
.section-head--split .section-intro { margin: 0; }
.section-head--center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head--center h2 { margin-left: auto; margin-right: auto; }
.section-head--center .section-intro { margin: 1.25rem auto 0; }
.section-intro { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.section--dark .section-intro { color: var(--on-dark-muted); }
@media (max-width: 860px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, 100svh);
  display: flex; align-items: flex-end;
  color: var(--on-dark); background: #2D2A25;
}
@supports not (height: 100svh) { .hero { min-height: max(640px, 100vh); } }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 50% 55%; }
@media (max-width: 1100px) and (orientation: portrait) { .hero-media img { object-position: 55% 50%; } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(24, 25, 23, 0.9) 0%, rgba(24, 25, 23, 0.82) 30%, rgba(24, 25, 23, 0.55) 52%, rgba(24, 25, 23, 0.12) 74%, rgba(24, 25, 23, 0) 100%),
    linear-gradient(0deg, rgba(24, 25, 23, 0.6) 0%, rgba(24, 25, 23, 0) 38%);
}
.hero::after { /* roofline into the ivory section */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: var(--gable-h); z-index: 1;
  background: var(--ivory);
  -webkit-clip-path: polygon(0 100%, 50% 0, 100% 100%); clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 48px); padding-bottom: calc(var(--gable-h) + clamp(28px, 4vw, 48px)); }
.hero-copy { max-width: 690px; }
.hero-title {
  font-size: clamp(2.6rem, 1.45rem + 4.3vw, 5.25rem);
  line-height: 1.03; letter-spacing: -0.022em; font-weight: 450; margin-bottom: 1.4rem;
}
.hero-title em { display: block; font-style: italic; font-weight: 400; color: var(--sand-light); }
.hero-lede { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem); line-height: 1.6; color: #EDE8DE; max-width: 58ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin-top: clamp(2.5rem, 6vh, 4.5rem); max-width: 980px;
  border-top: 1px solid rgba(247, 245, 239, 0.32);
}
.hero-facts li { padding: 1.1rem 1.5rem 0 0; display: flex; flex-direction: column; gap: 0.2rem; }
.hero-facts li + li { padding-left: 1.5rem; border-left: 1px solid rgba(247, 245, 239, 0.22); }
.hf-label { font-family: var(--ff-display); font-size: 1.08rem; font-weight: 500; }
.hf-text { font-size: 0.92rem; color: #E2DCD0; line-height: 1.45; }

@media (max-width: 900px) {
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(24, 25, 23, 0.74) 0%, rgba(24, 25, 23, 0.5) 62%, rgba(24, 25, 23, 0.22) 100%),
      linear-gradient(0deg, rgba(24, 25, 23, 0.82) 0%, rgba(24, 25, 23, 0.2) 58%, rgba(24, 25, 23, 0.12) 100%);
  }
  .hero-facts { grid-template-columns: 1fr; border-top: 0; margin-top: 2.25rem; gap: 0.75rem; }
  .hero-facts li, .hero-facts li + li { padding: 0 0 0 0.9rem; border-left: 2px solid rgba(228, 218, 203, 0.55); }
  .hf-label { font-size: 1rem; }
}
@media (max-width: 700px) {
  .hero { min-height: auto; display: block; }
  .hero-media { position: relative; display: block; height: auto; aspect-ratio: 4 / 5; max-height: 72svh; }
  .hero-media img { position: absolute; }
  .hero-shade {
    inset: 0 0 auto 0; height: min(125vw, 72svh);
    background: linear-gradient(180deg, rgba(24, 25, 23, 0.55) 0%, rgba(24, 25, 23, 0) 17%, rgba(24, 25, 23, 0) 46%, rgba(41, 43, 40, 0.86) 68%, #292B28 84%);
  }
  .hero { background: #292B28; }
  .hero-inner { margin-top: clamp(-200px, -30vw, -100px); padding-top: 0; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.service-card {
  grid-column: span 4; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.service-card--feature { grid-column: span 7; }
.service-card--feature + .service-card { grid-column: span 5; }
.service-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--sand); }
.service-card--feature .service-media { aspect-ratio: 16 / 10; }
.service-card--feature + .service-card .service-media { aspect-ratio: 9 / 8; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-num {
  position: absolute; left: 0; top: 0; min-width: 52px; padding: 0.45rem 0.8rem;
  background: var(--ivory); color: var(--charcoal);
  font-family: var(--ff-display); font-style: italic; font-size: 1.05rem; line-height: 1.2; text-align: center;
}
.service-body { display: flex; flex-direction: column; flex: 1; gap: 0.75rem; padding: clamp(1.4rem, 2.4vw, 2rem); }
.service-body p { color: var(--muted); margin: 0; }
.service-body .text-link { align-self: flex-start; margin-top: auto; }
.service-body p + .text-link, .tag-list + .text-link { margin-top: auto; }
.service-body > :last-child { margin-top: auto; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.15rem 0 0.4rem; }
.tag-list li { font-size: 0.84rem; font-weight: 500; color: var(--taupe-ink); padding: 0.25rem 0.65rem; border: 1px solid var(--sand); border-radius: 999px; background: var(--ivory); }
.service-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--white); }
.service-card--wide .service-media { aspect-ratio: auto; min-height: 340px; }
.service-card--wide .service-media img { position: absolute; inset: 0; }
.service-card--wide .service-body {
  justify-content: center; padding: clamp(1.6rem, 3.6vw, 3.25rem);
  background-color: var(--cream);
  background-image: var(--pattern-diamond); background-size: 24px 20px; background-blend-mode: normal;
  position: relative;
}
.service-card--wide .service-body::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream) 0%, rgba(238, 234, 224, 0.94) 100%); }
.service-card--wide .service-body > * { position: relative; }
.service-card--wide .service-body h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.service-card--wide .service-body .text-link { margin-top: 0.6rem; }

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card, .service-card--feature + .service-card { grid-column: span 1; }
  .service-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .service-card--feature .service-media { aspect-ratio: auto; min-height: 320px; }
  .service-card--feature .service-media img { position: absolute; inset: 0; }
  .service-card--feature + .service-card .service-media { aspect-ratio: 3 / 2; }
  .service-card--wide { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card--feature, .service-card--wide { display: flex; flex-direction: column; }
  .service-card--feature .service-media, .service-card--wide .service-media { aspect-ratio: 3 / 2; min-height: 0; }
  .service-card--feature .service-media img, .service-card--wide .service-media img { position: static; }
}

/* ---------- Why choose us ---------- */
.why .section-head h2 { max-width: 16ch; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); }
.why-item { padding: 2rem 0 2.4rem; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 56px 1fr; column-gap: 1.1rem; align-content: start; }
.why-item h3 { font-size: 1.28rem; grid-column: 2; align-self: center; }
.why-item p { grid-column: 2; margin: 0.6rem 0 0; color: var(--on-dark-muted); font-size: 1rem; }
.why-icon {
  grid-row: 1 / span 2; width: 56px; height: 62px; display: grid; place-items: center; padding-top: 10px;
  background: rgba(216, 204, 186, 0.12);
  -webkit-clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%); clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%);
}
.why-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--sand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } .why-item { padding: 1.6rem 0 1.8rem; } }

/* ---------- Process (staircase) ---------- */
.steps {
  --rise: clamp(28px, 4.2vw, 64px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end;
  border-bottom: 1px solid var(--line-strong);
}
.step {
  position: relative; margin-bottom: calc(var(--i) * var(--rise));
  padding: 1.6rem clamp(1rem, 2vw, 1.75rem) 2rem;
  border-top: 2px solid var(--charcoal); border-left: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(247, 245, 239, 0.85), rgba(247, 245, 239, 0));
}
.step:first-child { border-left-color: transparent; }
.step-num { display: block; font-family: var(--ff-display); font-style: italic; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); line-height: 1; color: var(--olive-ink); margin-bottom: 1rem; font-variant-numeric: lining-nums; }
.step h3 { font-size: 1.32rem; margin-bottom: 0.6rem; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; padding-top: 0; border-bottom: 0; gap: 0; }
  .step { margin: 0; display: grid; grid-template-columns: 72px 1fr; column-gap: 1rem; padding: 1.5rem 0 1.6rem; border-left: 0; border-top: 1px solid var(--line-strong); background: none; }
  .step:first-child { border-top: 2px solid var(--charcoal); }
  .step-num { grid-row: 1 / span 2; font-size: 2.6rem; margin: 0; }
}

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.g-item { --h: clamp(220px, 23vw, 310px); grid-column: span 4; height: var(--h); position: relative; }
.g-d { grid-column: span 7; --h: clamp(260px, 31vw, 430px); }
.g-e { grid-column: span 5; --h: clamp(260px, 31vw, 430px); }
.g-link { position: absolute; inset: 0; display: block; overflow: hidden; background: var(--sand); border-radius: var(--radius); color: var(--charcoal); text-decoration: none; }
.g-link picture, .g-link img { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-link img { object-fit: cover; }
.g-caption {
  position: absolute; left: 12px; bottom: 12px; right: auto; max-width: calc(100% - 24px);
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.75rem; background: rgba(247, 245, 239, 0.94); color: var(--charcoal);
  font-size: 0.86rem; font-weight: 600; line-height: 1.3; border-radius: var(--radius);
}
.g-caption::after {
  content: ""; width: 14px; height: 14px; flex: none; background: currentColor; opacity: .75;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M8.5 1.5h4v4M12.5 1.5 8 6M5.5 12.5h-4v-4M1.5 12.5 6 8' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M8.5 1.5h4v4M12.5 1.5 8 6M5.5 12.5h-4v-4M1.5 12.5 6 8' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .g-item, .g-d, .g-e { grid-column: span 1; --h: clamp(200px, 34vw, 300px); }
  .g-d, .g-h { grid-column: 1 / -1; --h: clamp(220px, 46vw, 380px); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .g-item, .g-d, .g-e, .g-h { grid-column: auto; height: auto; aspect-ratio: 4 / 3; }
  .g-d { aspect-ratio: 16 / 10; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 6.5rem); align-items: center; }
.about-media { position: relative; }
.about-frame { position: relative; padding: 0 clamp(18px, 3vw, 36px) clamp(18px, 3vw, 36px) 0; }
.about-swatch {
  position: absolute; z-index: 0; right: 0; bottom: 0; top: 18%; left: 22%;
  background-color: var(--cream); background-image: var(--pattern-sprig); background-size: 56px 56px;
  border: 1px solid var(--sand);
}
.about-media picture { position: relative; z-index: 1; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-caption { position: relative; z-index: 1; margin: 0.9rem 0 0; font-size: 0.9rem; color: var(--taupe-ink); font-weight: 500; }
.about-copy h2 { max-width: 15ch; margin-bottom: 1.5rem; }
.about-copy .lead { font-family: var(--ff-display); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); line-height: 1.45; color: var(--ink); margin-bottom: 1.1rem; }
.about-copy p { color: var(--ink-2); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 2.25rem 0 2.5rem; }
.principles > div { border-top: 2px solid var(--olive); padding-top: 0.9rem; }
.principles dt { font-family: var(--ff-display); font-weight: 500; font-size: 1.12rem; margin-bottom: 0.35rem; }
.principles dd { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.55; }
.about-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
}
@media (max-width: 640px) {
  .principles { grid-template-columns: 1fr; gap: 1.1rem; }
  .about-actions .btn { width: 100%; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.contact-intro h2 { max-width: 13ch; margin-bottom: 1.25rem; }
.contact-list { display: grid; gap: 1.1rem; margin: 2rem 0 1.75rem; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; align-items: center; }
.ci-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--ivory); border: 1px solid var(--sand); border-radius: 50%; }
.ci-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--charcoal); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.ci-label { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--taupe-ink); }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-note { font-size: 0.92rem; color: var(--muted); max-width: 46ch; }

.form-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(1.4rem, 3.4vw, 2.75rem); padding-top: calc(clamp(1.4rem, 3.4vw, 2.75rem) + 14px);
}
.form-card::before { /* wallpaper sample strip */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background-color: var(--sand); background-image: var(--pattern-diamond); background-size: 24px 20px; background-position: 0 -3px;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.field { position: relative; display: flex; flex-direction: column; margin-bottom: 1.2rem; min-width: 0; }
.field label { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.45rem; color: var(--ink); }
.req { color: var(--error); margin-left: 2px; }
.opt { font-weight: 400; color: var(--muted); }
.field-hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0.8rem 0.95rem;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--field-border); border-radius: var(--radius);
  font-size: 1rem; line-height: 1.4;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--charcoal); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--charcoal); box-shadow: 0 0 0 3px rgba(115, 121, 102, 0.32); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); background: #FFFCFB; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 12px; height: 8px; margin-top: -4px; pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23292B28' stroke-width='1.6'/%3E%3C/svg%3E");
}
.field select { padding-right: 2.6rem; cursor: pointer; }
.error-message { color: var(--error) !important; font-size: 0.875rem !important; font-weight: 500; margin-top: 0.4rem !important; line-height: 1.4; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status:empty { display: none; }
.form-status {
  margin: 0.2rem 0 1.1rem; padding: 0.85rem 1rem; border-left: 3px solid var(--error);
  background: var(--error-bg); color: #7E1D17; font-size: 0.95rem; line-height: 1.5;
}
.form-status a { font-weight: 600; }
.form-noscript { font-size: 0.9rem; color: var(--muted); }
.form-submit { position: relative; margin-top: 0.4rem; }
.form-submit .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(247, 245, 239, 0.35); border-top-color: var(--on-dark); }
.form-submit[aria-busy="true"] { cursor: progress; opacity: 0.92; }
.form-submit[aria-busy="true"] .spinner { display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success, .form-error-panel { display: none; }
.form-success.is-visible, .form-success:target { display: block; text-align: center; padding: clamp(1rem, 3vw, 2rem) 0; }
.form-success:focus { outline: none; }
.success-mark { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--cream); border: 1px solid var(--sand); }
.success-mark svg { width: 38px; height: 38px; fill: none; stroke: var(--olive-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); margin-bottom: 0.75rem; }
.form-success p { color: var(--muted); max-width: 42ch; margin: 0 auto 1.5rem; }
.js .form-success__back, .no-js #formReset { display: none; }
.form-error-panel:target { display: block; margin-top: 1rem; padding: 0.9rem 1rem; border-left: 3px solid var(--error); background: var(--error-bg); color: #7E1D17; }
.form-error-panel p { margin: 0; }
.form-success:target ~ .form-error-panel { display: none; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Location ---------- */
.location-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(18px, 2.4vw, 32px); align-items: stretch; }
.map-frame {
  position: relative; min-height: 420px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background-color: var(--cream); background-image: var(--pattern-diamond); background-size: 24px 20px;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.address-card {
  position: relative; display: flex; flex-direction: column; gap: 0.6rem;
  padding: calc(var(--gable-h) + 1.75rem) clamp(1.4rem, 2.6vw, 2.1rem) clamp(1.5rem, 2.6vw, 2.1rem);
  background: var(--charcoal); color: var(--on-dark);
  -webkit-clip-path: polygon(0 var(--gable-h), 50% 0, 100% var(--gable-h), 100% 100%, 0 100%); clip-path: polygon(0 var(--gable-h), 50% 0, 100% var(--gable-h), 100% 100%, 0 100%);
}
.address-card h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.address-card address { font-size: 1.08rem; line-height: 1.55; color: var(--on-dark); margin-bottom: 0.4rem; }
.ac-line { margin: 0; }
.ac-line a { color: var(--on-dark); font-weight: 600; text-decoration: none; }
.ac-line a:hover { text-decoration: underline; }
.address-card .btn { margin-top: 1.1rem; --btn-bg: var(--ivory); --btn-fg: var(--charcoal); --btn-bd: var(--ivory); }
.address-card .btn:hover { --btn-bg: var(--white); --btn-bd: var(--white); }
.ac-areas { margin: 1.1rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line-dark); font-size: 0.92rem; color: var(--on-dark-muted); line-height: 1.6; }
.ac-areas__label { display: block; color: var(--sand-light); font-weight: 600; margin-bottom: 0.2rem; }
@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative; background: var(--charcoal); color: var(--on-dark-muted);
  padding: clamp(64px, 8vw, 104px) 0 2rem; margin-top: var(--gable-h);
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr); gap: clamp(1.75rem, 4vw, 3.5rem); }
.brand--footer { color: var(--on-dark); margin-bottom: 1.25rem; }
.brand--footer .bm-tile { fill: rgba(247, 245, 239, 0.1); }
.footer-brand p { max-width: 38ch; font-size: 0.98rem; }
.footer-title { font-family: var(--ff-body); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sand-light); margin-bottom: 1rem; }
.site-footer address, .site-footer p { font-size: 0.98rem; line-height: 1.6; }
.site-footer a:not(.btn) { color: var(--on-dark); text-decoration: none; }
.site-footer a:not(.btn):hover { text-decoration: underline; }
.footer-col p { margin-bottom: 0.55rem; }
.footer-col address { margin-bottom: 0.9rem; color: var(--on-dark-muted); }
.footer-links { display: grid; gap: 0.55rem; }
.footer-cta .btn { margin-top: 0.5rem; }
.footer-cta .btn:hover { text-decoration: none; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line-dark); }
.footer-bottom p { margin: 0; font-size: 0.9rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-cta .btn { width: 100%; } }

/* ---------- Mobile quick bar ---------- */
.quick-bar { display: none; }
@media (max-width: 759px) {
  .js .quick-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(247, 245, 239, 0.97); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -18px rgba(41, 43, 40, 0.45);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .js .quick-bar.is-visible { transform: none; }
  .quick-bar__btn {
    display: flex; align-items: center; justify-content: center; min-height: 48px;
    border: 1px solid var(--charcoal); border-radius: var(--radius);
    font-weight: 600; font-size: 0.97rem; text-decoration: none; color: var(--charcoal); background: transparent;
  }
  .quick-bar__btn--primary { background: var(--charcoal); color: var(--on-dark); }
  .js .site-footer { padding-bottom: calc(2rem + 72px); }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 64px 72px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(22, 23, 21, 0.94); }
.lightbox__figure { position: relative; margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__img { max-width: min(1600px, 100%); max-height: calc(100svh - 170px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.lightbox__caption { margin-top: 1rem; color: var(--on-dark); font-size: 0.98rem; text-align: center; }
.lightbox__count { color: var(--on-dark-muted); margin-left: 0.5rem; font-variant-numeric: tabular-nums; }
.lightbox__btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(247, 245, 239, 0.12); color: var(--on-dark); border: 1px solid rgba(247, 245, 239, 0.35); border-radius: 50%;
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(247, 245, 239, 0.24); }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 14px; top: 50%; margin-top: -24px; }
@media (max-width: 700px) {
  .lightbox { padding: 64px 12px 96px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 22px; margin: 0; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .lightbox__img { max-height: calc(100svh - 220px); }
}
body.is-locked { overflow: hidden; }

/* ---------- Privacy dialog ---------- */
.privacy { display: none; position: fixed; inset: 0; z-index: 130; align-items: center; justify-content: center; padding: 20px; }
.privacy:target, .privacy.is-open { display: flex; }
.privacy__backdrop { position: absolute; inset: 0; background: rgba(22, 23, 21, 0.7); }
.privacy__panel {
  position: relative; width: min(720px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--ivory); color: var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.55);
}
.privacy__panel h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); margin-bottom: 0.4rem; padding-right: 3rem; }
.privacy__panel h3 { font-size: 1.15rem; margin: 1.5rem 0 0.4rem; }
.privacy__panel p { color: var(--ink-2); font-size: 0.98rem; }
.privacy__meta { color: var(--muted) !important; font-size: 0.9rem !important; }
.privacy__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--charcoal); }
.privacy__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- Reveal-on-scroll (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
  .js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
  .js-reveal .step[data-reveal] { --delay: calc(var(--i, 0) * 0.12s); }
  .service-media img, .g-link img { transition: transform 1.1s var(--ease); }
  .service-card:hover .service-media img, .g-link:hover img, .g-link:focus-visible img { transform: scale(1.045); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .quick-bar, .lightbox, .map-frame, .nav-backdrop, .hero-media, .hero-shade, .skip-link { display: none !important; }
  .hero { min-height: 0; color: #000; background: none; }
  .hero-title em, .hero-lede, .hf-text { color: #000; }
  .section--dark, .site-footer { background: none; color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .section--dark::before, .site-footer::before, .hero::after { display: none; }
}
