/* ==========================================================================
   Buda Wallpaper Contractor — design system
   Black & Cream · Magazine Luxury
   Type: Noto Serif Display (variable wght + wdth) / Schibsted Grotesk (variable wght)
   Motif: wallpaper "selvage" — run numbers, match notes, pinhole strip
   ========================================================================== */

@font-face {
  font-family: "Noto Serif Display";
  src: url("../fonts/noto-serif-display-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif Display";
  src: url("../fonts/noto-serif-display-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0E0D0C;
  --carbon: #171513;
  --graphite: #23201C;
  --ivory: #FAF6EF;
  --cream: #F3ECE0;
  --beige: #E7DDCC;
  --ink: #1A1815;
  --text: #2C2823;
  --muted: #5E574E;          /* on ivory / cream / beige */
  --on-dark: #F3ECE0;
  --muted-dark: #B7AEA1;     /* on black / carbon */
  --brass: #A8875A;          /* decorative only */
  --brass-text: #6F5530;     /* brass text on light */
  --brass-dark: #CDB284;     /* brass text on dark, brass buttons */
  --line-light: #D6CAB6;
  --line-dark: rgba(243, 236, 224, .16);
  --field-border: #8C8173;
  --error: #9F2A1E;

  --serif: "Noto Serif Display", "Didot", "Bodoni MT", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 152px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); overflow-x: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(16px, 0.25vw + 15.2px, 17.5px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
[hidden] { display: none !important; }

.visually-hidden {
  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(--brass-dark); color: var(--black); padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.section-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .map-card :focus-visible { outline-color: var(--brass-dark); }

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

.section-light { background: var(--ivory); }
.section-cream { background: var(--cream); }
.section-beige { background: var(--beige); }
.section-dark { background: var(--black); color: var(--on-dark); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.9rem);
  line-height: 1.04;
  font-stretch: 82%;
  font-weight: 350;
  text-wrap: balance;
}
h3 { font-size: clamp(1.35rem, 1.6vw, 1.65rem); line-height: 1.2; font-weight: 450; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow span { color: var(--muted); font-weight: 500; }
.section-dark .eyebrow, .eyebrow-on-dark { color: var(--brass-dark); }
.section-dark .eyebrow span, .eyebrow-on-dark span { color: var(--muted-dark); }

.lede-serif {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.7vw, 1.65rem);
  line-height: 1.42;
  font-weight: 380;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: .74rem; }
.btn-brass { background: var(--brass-dark); color: var(--black); border-color: var(--brass-dark); }
.btn-brass:hover { background: var(--cream); border-color: var(--cream); }
.btn-ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(243, 236, 224, .45); }
.btn-ghost-light:hover { background: var(--on-dark); color: var(--black); border-color: var(--on-dark); }
.btn-black { background: var(--black); color: var(--on-dark); border-color: var(--black); }
.btn-black:hover { background: var(--graphite); }
.btn-black:disabled { opacity: .6; cursor: progress; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-col { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--ink);
  transition: gap .3s var(--ease), color .3s;
}
.text-link:hover { gap: 16px; color: var(--brass-text); border-color: var(--brass-text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black); color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--on-dark); flex: none; }
.brand-mark { width: 40px; height: 40px; outline: 1px solid rgba(243, 236, 224, .22); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-stretch: 75%; font-weight: 500; letter-spacing: .01em; }
.brand-sub { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-dark); margin-top: 5px; }

.primary-nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.primary-nav ul a {
  font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--on-dark); padding: 8px 0; position: relative;
}
.primary-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--brass-dark);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.primary-nav ul a:hover::after, .primary-nav ul a:focus-visible::after { transform: scaleX(1); }
.nav-drawer-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-size: .9rem; font-weight: 500; letter-spacing: .04em; color: var(--on-dark); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--brass-dark); }
.icon-btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(243, 236, 224, .3); color: var(--on-dark); cursor: pointer; text-decoration: none;
}
.icon-btn svg { width: 20px; height: 20px; }
.menu-lines { display: grid; gap: 7px; width: 20px; }
.menu-lines span { display: block; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-open .menu-lines span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-open .menu-lines span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 1180px) {
  .header-phone { display: none; }
}
@media (max-width: 960px) {
  .icon-btn { display: inline-flex; }
  .header-cta { display: none; }
  .header-actions { gap: 10px; }
  .primary-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    background: var(--black); padding: 32px var(--gutter) 40px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
    border-top: 1px solid var(--line-dark);
  }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul li { border-bottom: 1px solid var(--line-dark); }
  .primary-nav ul a {
    display: block; padding: 18px 0; font-family: var(--serif); font-size: 2rem; font-stretch: 80%;
    letter-spacing: 0; text-transform: none; font-weight: 400;
  }
  .primary-nav ul a::after { display: none; }
  .nav-drawer-extra { display: flex; flex-direction: column; gap: 14px; }
  .drawer-phone { color: var(--on-dark); text-align: center; padding: 12px; font-weight: 500; letter-spacing: .04em; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 380px) {
  .brand-sub { font-size: .55rem; letter-spacing: .18em; }
  .brand-mark { width: 34px; height: 34px; }
  .brand { gap: 10px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--black); color: var(--on-dark); padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 104px); overflow: hidden; }
.hero-kicker {
  display: flex; align-items: center; gap: 16px;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-dark); font-weight: 500;
}
.hero-kicker .rule { flex: 1; height: 1px; background: var(--line-dark); min-width: 24px; }
.hero-title { color: var(--on-dark); margin: clamp(22px, 3vw, 40px) 0 clamp(32px, 4vw, 56px); }
.hero-title-a {
  display: block;
  font-size: clamp(3.3rem, 11.2vw, 10.4rem);
  line-height: .9;
  font-weight: 300;
  font-stretch: 68%;
  letter-spacing: -0.025em;
}
.hero-title-b {
  display: block; margin-top: clamp(14px, 1.6vw, 22px);
  font-style: italic; font-weight: 300; font-stretch: 90%;
  font-size: clamp(1.45rem, 2.8vw, 2.6rem); line-height: 1.15; color: var(--brass-dark);
  max-width: 26ch;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.hero-copy { padding-bottom: 4px; }
.hero-lede { color: #E6DED1; font-size: clamp(1.02rem, 1.1vw, 1.12rem); margin-bottom: 30px; max-width: 42ch; }
.hero-meta { margin-top: 40px; border-top: 1px solid var(--line-dark); }
.hero-meta div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: .9rem; }
.hero-meta dt { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-dark); padding-top: 3px; }
.hero-meta dd { color: var(--on-dark); }
.hero-figure { position: relative; }
.hero-figure picture { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--graphite); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.cover-caption {
  display: flex; gap: 12px; align-items: baseline; margin-top: 14px;
  font-size: .78rem; color: var(--muted-dark); letter-spacing: .04em;
}
.cover-caption span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-dark); }

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure picture { aspect-ratio: 4 / 3; }
  .hero-copy { max-width: 640px; }
}
@media (max-width: 480px) {
  .btn-row .btn { flex: 1 1 100%; }
  .hero-meta div { grid-template-columns: 80px 1fr; }
}

/* ---------- Selvage motif ---------- */
.selvage {
  position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) * -1 + 10px);
  width: 18px; border-left: 1px solid var(--line-light); border-right: 1px solid var(--line-light);
  display: flex; justify-content: center; overflow: hidden;
  background-image: radial-gradient(circle, var(--line-light) 1.4px, transparent 1.6px);
  background-size: 18px 64px; background-position: center 20px; background-repeat: repeat-y;
}
.selvage span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  background: var(--ivory); padding: 12px 0; margin-top: 40px; white-space: nowrap; height: max-content;
}
@media (max-width: 1440px) { .selvage { display: none; } }

/* ---------- Intro ---------- */
.intro { padding: var(--section) 0; }
.intro-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(40px, 5vw, 72px);
}
.intro-head { grid-column: 1 / span 6; }
.intro-head h2 { max-width: 15ch; }
.intro-body { grid-column: 8 / span 5; align-self: end; display: grid; gap: 22px; }
.intro-body p:not(.lede-serif) { color: var(--muted); }
.values {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.values li { padding: 28px clamp(16px, 2vw, 28px) 8px; border-left: 1px solid var(--line-light); }
.values li:first-child { border-left: 0; padding-left: 0; }
.value-mark { display: block; font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--brass-text); line-height: 1; margin-bottom: 18px; }
.values h3 { font-size: 1.32rem; margin-bottom: 10px; }
.values p { color: var(--muted); font-size: .95rem; }
@media (max-width: 1023px) {
  .intro-head, .intro-body { grid-column: 1 / -1; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values li:nth-child(3) { border-left: 0; padding-left: 0; }
  .values li:nth-child(n+3) { border-top: 1px solid var(--line-light); }
}
@media (max-width: 600px) {
  .values { grid-template-columns: 1fr; }
  .values li { border-left: 0; padding-left: 0; padding-right: 0; }
  .values li + li { border-top: 1px solid var(--line-light); }
}

/* ---------- Section heads ---------- */
.section-head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head h2 { margin-bottom: 20px; }
.section-intro { color: var(--muted); max-width: 52ch; font-size: 1.04rem; }
.section-dark .section-intro { color: var(--muted-dark); }
.section-head-split { max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px; align-items: end; }
.section-head-split h2 { margin-bottom: 0; }
@media (max-width: 900px) { .section-head-split { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { padding: var(--section) 0; }
.spread {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 104px); align-items: center;
  padding: clamp(36px, 4vw, 56px) 0; border-top: 1px solid var(--line-light);
}
.spread-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.spread-rev .spread-figure { order: 2; }
.spread-figure picture { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--beige); }
.spread-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.spread-figure:hover img { transform: scale(1.03); }
.spread-figure figcaption, .feature-figure figcaption {
  margin-top: 12px; font-size: .78rem; color: var(--muted); font-style: italic; font-family: var(--serif); letter-spacing: .01em;
}
.spread-items { display: grid; gap: clamp(36px, 4vw, 56px); }
.service { display: grid; grid-template-columns: 76px 1fr; column-gap: 20px; }
.service-num {
  grid-row: span 2; font-family: var(--serif); font-size: 3.4rem; line-height: .82; font-weight: 250; font-stretch: 70%;
  color: var(--brass-text);
}
.service h3 { margin-bottom: 10px; font-size: clamp(1.5rem, 2vw, 2rem); font-stretch: 85%; }
.service p { color: var(--muted); max-width: 52ch; }
.spread-items .text-link { justify-self: start; margin-left: 96px; }
@media (max-width: 899px) {
  .spread, .spread-rev { grid-template-columns: 1fr; }
  .spread-rev .spread-figure { order: 0; }
  .spread-figure picture { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .service { grid-template-columns: 1fr; }
  .service-num { grid-row: auto; font-size: 2.6rem; margin-bottom: 10px; }
  .spread-items .text-link { margin-left: 0; }
}

/* ---------- Feature ---------- */
.feature { padding: 0 0 var(--section); }
.feature-figure picture { display: block; width: 100%; height: min(50vw, 78vh); overflow: hidden; background: var(--graphite); }
.feature-figure img { width: 100%; height: 100%; object-fit: cover; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.feature-aside { padding-top: clamp(40px, 5vw, 72px); color: var(--muted-dark); }
.feature-aside-label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-dark); margin-bottom: 10px; }
.feature-aside-title { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.6rem); font-stretch: 70%; font-weight: 300; color: var(--on-dark); line-height: 1; margin-bottom: 28px; }
.feature-aside ul { border-top: 1px solid var(--line-dark); }
.feature-aside li { padding: 13px 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); font-size: .95rem; }
.feature-aside-cap { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: .88rem; }
.feature-panel {
  position: relative; z-index: 2;
  background: var(--ivory); color: var(--text);
  margin-top: clamp(-180px, -12vw, -64px);
  padding: clamp(32px, 5vw, 72px);
}
@media (max-width: 1023px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-aside { order: 2; padding-top: 0; }
}
.feature-panel h2 { color: var(--ink); margin-bottom: 28px; }
.feature-panel h2 em { font-style: italic; font-weight: 300; color: var(--brass-text); }
.feature-panel .eyebrow { color: var(--brass-text); }
.feature-panel .eyebrow span { color: var(--muted); }
.feature-cols { columns: 2 260px; column-gap: 40px; column-rule: 1px solid var(--line-light); color: var(--muted); }
.feature-cols p { break-inside: avoid; margin-bottom: 16px; }
.pull-line { margin: 28px 0 32px; padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.pull-line p { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.2vw, 1.95rem); line-height: 1.25; font-weight: 340; color: var(--ink); }
.feature-panel .btn-brass { background: var(--black); color: var(--on-dark); border-color: var(--black); }
.feature-panel .btn-brass:hover { background: var(--graphite); }
@media (max-width: 700px) {
  .feature-figure picture { height: 75vw; }
  .feature-panel { margin-top: -40px; }
}

/* ---------- About ---------- */
.about { padding: var(--section) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 120px); align-items: center; }
.about-figure { position: relative; }
.about-figure::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--brass); z-index: 0;
}
.about-figure picture { position: relative; z-index: 1; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--beige); }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy h2 span { display: block; margin-top: 12px; font-family: var(--sans); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; font-stretch: 100%; }
.about-copy > p:not(.eyebrow):not(.lede-serif):not(.signature) { color: var(--muted); margin-top: 20px; max-width: 58ch; }
.about-points { margin-top: 28px; border-top: 1px solid var(--line-light); }
.about-points li { padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line-light); position: relative; }
.about-points li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--brass-text); }
.signature { margin-top: 32px; font-family: var(--serif); font-style: italic; font-size: 2.2rem; font-weight: 300; font-stretch: 75%; color: var(--brass-text); }
@media (max-width: 899px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 460px; margin-right: 22px; }
}

/* ---------- Why (glossary) ---------- */
.why { padding: var(--section) 0; position: relative; }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); border-top: 1px solid var(--line-dark); }
.entry { padding: 30px 0 32px; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.entry dt { display: flex; align-items: baseline; gap: 12px; }
.term { font-family: var(--serif); font-size: clamp(1.8rem, 2.6vw, 2.5rem); font-weight: 340; font-stretch: 78%; color: var(--on-dark); line-height: 1.05; }
.pos { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--brass-dark); }
.entry dd { color: var(--muted-dark); max-width: 50ch; }
.entry:last-child { grid-column: 1 / -1; }
.entry:last-child dd { max-width: 70ch; }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } }

/* ---------- Gallery (filmstrip) ---------- */
.gallery { padding: var(--section) 0; }
.gallery .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.gallery-controls { display: grid; gap: 16px; justify-items: end; }
.gallery-note { font-size: .86rem; color: var(--muted); font-style: italic; font-family: var(--serif); }
.film-nav { display: flex; align-items: center; gap: 10px; }
.film-count { font-family: var(--serif); font-size: 1.1rem; margin-right: 10px; color: var(--ink); font-variant-numeric: tabular-nums; }
.film-btn {
  width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink); background: transparent; cursor: pointer; transition: background .3s, color .3s;
}
.film-btn svg { width: 22px; height: 22px; }
.film-btn:hover:not(:disabled) { background: var(--ink); color: var(--ivory); }
.film-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 900px) { .gallery-controls { justify-items: start; } }

.film {
  --h: clamp(340px, 58vh, 600px);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
  padding-bottom: 18px;
}
.film:focus-visible { outline-offset: -2px; }
.film::-webkit-scrollbar { height: 4px; }
.film::-webkit-scrollbar-thumb { background: var(--ink); }
.film-track {
  display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content;
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.film-item { flex: none; scroll-snap-align: start; }
.film-link { display: block; height: var(--h); aspect-ratio: var(--ar); overflow: hidden; background: var(--beige); position: relative; }
.film-link picture, .film-link img { width: 100%; height: 100%; }
.film-link img { object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.film-link::after {
  content: "View"; position: absolute; right: 14px; bottom: 14px;
  background: var(--ivory); color: var(--ink); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  padding: 8px 12px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease);
}
.film-link:hover img, .film-link:focus-visible img { transform: scale(1.04); }
.film-link:hover::after, .film-link:focus-visible::after { opacity: 1; transform: none; }
.film-cap { margin-top: 12px; font-size: .86rem; color: var(--muted); display: flex; gap: 12px; max-width: 100%; }
.film-cap span { font-family: var(--serif); font-style: italic; color: var(--brass-text); }
@media (max-width: 600px) {
  .film { --h: clamp(300px, 62vh, 460px); }
  .film-item { max-width: 86vw; }
  .film-link { max-width: 86vw; }
}

/* ---------- Local ---------- */
.local { padding: var(--section) 0; overflow: hidden; }
.local-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.local-mark { font-family: var(--serif); color: var(--ink); line-height: .82; }
.local-city { display: block; font-size: clamp(5.5rem, 17vw, 15rem); font-weight: 250; font-stretch: 64%; letter-spacing: -0.03em; }
.local-zip { display: block; margin-top: 18px; font-family: var(--sans); font-size: clamp(.82rem, 1.2vw, 1rem); letter-spacing: .4em; text-transform: uppercase; color: var(--brass-text); padding-left: 6px; }
.local-copy h2 { margin-bottom: 24px; }
.local-copy p:not(.eyebrow) { color: var(--muted); margin-bottom: 16px; max-width: 56ch; }
.local-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.local-tags li { border: 1px solid var(--muted); padding: 7px 14px; font-size: .82rem; color: var(--ink); }
@media (max-width: 899px) { .local-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { padding: var(--section) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 104px); align-items: start; }
.contact-info h2 { margin-bottom: 22px; }
.contact-lede { color: var(--muted-dark); max-width: 44ch; margin-bottom: 40px; }
.contact-list { border-top: 1px solid var(--line-dark); }
.contact-list li { padding: 20px 0; border-bottom: 1px solid var(--line-dark); display: grid; gap: 6px; }
.contact-label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); }
.contact-list a, .contact-list li > span:last-child {
  font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 350; color: var(--on-dark); text-decoration: none;
  overflow-wrap: anywhere; line-height: 1.25;
}
.contact-list a:hover { color: var(--brass-dark); }

.form-card { background: var(--ivory); color: var(--text); padding: clamp(28px, 4vw, 56px); position: relative; }
.form-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line-light); pointer-events: none; }
.form-card > * { position: relative; }
.form-title { font-family: var(--serif); font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-stretch: 80%; font-weight: 380; color: var(--ink); line-height: 1.1; }
.form-hint { color: var(--muted); font-size: .88rem; margin: 6px 0 26px; }
.quote-form { display: block; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #FFFDF9; border: 1px solid var(--field-border); border-radius: 0;
  padding: 13px 14px; min-height: 50px; transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #6E665B; opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px rgba(26, 24, 21, .18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
/* The client script styles errors inline with #ff6b6b; the rule below keeps them readable (AA) without editing the script. */
.error-message { color: var(--error) !important; font-size: .86rem !important; margin-top: 6px !important; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: .92rem; min-height: 1px; }
.form-status.is-error { color: var(--error); }
.form-success { padding: 20px 0; }
.form-success p + p { margin-top: 14px; color: var(--muted); }
.form-success a { color: var(--ink); }
.noscript-notice { display: none; margin-top: 16px; padding: 16px; border: 1px solid var(--ink); }
.noscript-notice:target { display: block; }
.noscript-error { border-color: var(--error); color: var(--error); }
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Map ---------- */
.map { padding: var(--section) 0; }
.map-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0; align-items: stretch; }
.map-card { background: var(--black); color: var(--on-dark); padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.map-card h2 { color: var(--on-dark); font-size: clamp(1.9rem, 3vw, 2.8rem); margin-bottom: 18px; }
.map-card address { font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; color: var(--on-dark); }
.map-coords { margin: 14px 0 30px; font-size: .74rem; letter-spacing: .2em; color: var(--muted-dark); }
.map-frame { border: 1px solid var(--ink); border-left: 0; padding: 10px; background: var(--ivory); }
.map-ratio { position: relative; height: 0; padding-bottom: 62%; overflow: hidden; background: var(--beige); }
.map-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background-color: var(--beige);
  background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 48px 48px;
}
.map-placeholder span { background: var(--ivory); padding: 10px 16px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 899px) {
  .map-grid { grid-template-columns: 1fr; }
  .map-frame { border-left: 1px solid var(--ink); border-top: 0; }
  .map-ratio { padding-bottom: 80%; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--muted-dark); padding: clamp(64px, 8vw, 112px) 0 32px; font-size: .94rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line-dark); flex-wrap: wrap; }
.footer-word { font-family: var(--serif); font-weight: 280; font-stretch: 68%; font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: .92; color: var(--on-dark); letter-spacing: -0.02em; max-width: 11ch; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 44px 0; border-bottom: 1px solid var(--line-dark); }
.footer-label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-dark); margin-bottom: 12px; }
.site-footer p, .site-footer address { color: var(--on-dark); }
.site-footer .footer-label { color: var(--brass-dark); }
.site-footer a { color: var(--on-dark); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--brass-dark); }
.site-footer a.btn-brass { color: var(--black); }
.site-footer a.btn-brass:hover { color: var(--black); }
.footer-nav li { margin-bottom: 6px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; flex-wrap: wrap; font-size: .84rem; }
.footer-bottom p { color: var(--muted-dark); }
.site-footer .to-top { color: var(--muted-dark); }
@media (max-width: 899px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(10, 9, 8, .96);
  display: flex; align-items: center; justify-content: center; padding: 64px 72px;
}
.lb-figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-figure img { max-width: min(1200px, 100%); max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; }
.lb-figure figcaption { color: var(--muted-dark); font-size: .9rem; text-align: center; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(243, 236, 224, .35); background: rgba(14, 13, 12, .6); color: var(--on-dark); cursor: pointer;
}
.lb-btn svg { width: 22px; height: 22px; }
.lb-btn:hover { background: var(--on-dark); color: var(--black); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox { padding: 72px 12px 88px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* ---------- Reveal animation (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .enhance .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .enhance .reveal.is-in { opacity: 1; transform: none; }
  .enhance .reveal-img img { clip-path: inset(0 0 100% 0); transform: scale(1.06); transition: clip-path 1.3s var(--ease), transform 1.6s var(--ease); }
  .enhance .reveal-img.is-in img { clip-path: inset(0 0 0 0); transform: none; }
  .enhance .spread-figure.reveal-img.is-in:hover img { transform: scale(1.03); }
  .hero-title-a { animation: rise 1.1s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .reveal, .reveal-img img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .site-header, .lightbox, .film-nav { display: none !important; }
}

/* Hero kicker on small screens */
.hero-kicker span:not(.rule) { white-space: nowrap; }
@media (max-width: 600px) {
  .hero-kicker { letter-spacing: .14em; font-size: .68rem; gap: 10px; }
}

/* Light cards inside dark sections keep a dark focus ring */
.section-dark .feature-panel :focus-visible,
.section-dark .form-card :focus-visible { outline-color: var(--ink); }
