/* ==========================================================================
   Covington Wallpaper Hanger — "Luxury Walls, Precisely Installed."
   Design system: warm ivory / stone / charcoal with a dark bronze accent.
   Display: Bodoni Moda VF (editorial didone) · Text: Archivo VF (grotesque)
   All colour pairs used for text were verified with a WCAG contrast check.
   ========================================================================== */

:root {
  /* Surfaces */
  --ivory:        #F7F2E9;
  --cream:        #FFFCF6;
  --stone:        #EDE5D8;
  --stone-deep:   #E2D7C5;
  --charcoal:     #211E19;
  --charcoal-deep:#1A1814;

  /* Text */
  --ink:          #1C1A16;   /* 15.58:1 on ivory */
  --taupe:        #6A6054;   /* 5.52:1 on ivory  */
  --bronze:       #7A5C32;   /* 5.53:1 on ivory, 4.93:1 on stone */
  --champagne:    #B08D55;   /* decorative only — rules, numerals, borders */
  --gold:         #C9A86A;   /* 7.35:1 on charcoal */
  --on-dark:      #EFE8DB;   /* 13.63:1 on charcoal */
  --on-dark-mute: #B8AE9D;   /* 7.58:1 on charcoal */
  --on-dark-foot: #A89C88;   /* 6.56:1 on charcoal-deep */
  --danger:       #9E2B20;   /* 7.27:1 on cream */

  /* Lines */
  --rule:         rgba(28,26,22,.14);
  --rule-strong:  rgba(28,26,22,.26);
  --rule-light:   rgba(239,232,219,.20);

  /* Type */
  --display: 'Bodoni Moda VF', 'Bodoni MT', Didot, 'Playfair Display', Georgia, 'Times New Roman', serif;
  --text:    'Archivo VF', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;

  /* Rhythm */
  --shell:      1280px;
  --gutter:     clamp(1rem, 4.2vw, 3.25rem);
  --section-y:  clamp(4.5rem, 9vw, 8.5rem);
  --radius:     2px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1rem, .96rem + .22vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { max-width: 100%; }
img { display: block; height: auto; border: 0; }
svg { display: block; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
dl, dd { margin: 0; }

a { color: var(--bronze); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

button { font: inherit; color: inherit; }

::selection { background: var(--champagne); color: #fff; }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 1px;
}
.section--dark :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.lightbox :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 200;
  background: var(--charcoal); color: var(--on-dark);
  padding: .7rem 1.1rem; font-size: .9rem; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: .5rem; color: var(--on-dark); }

/* ---------- Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--stone { background: var(--stone); }
.section--cream { background: var(--cream); }
.section--dark  { background: var(--charcoal); color: var(--on-dark); }

/* ---------- Type scale ---------- */
.h2 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 72;
  font-size: clamp(2rem, 1.35rem + 2.75vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  max-width: 19ch;
}
.h2--light { color: var(--on-dark); }

.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 1.35rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.eyebrow::after {
  content: "";
  flex: 0 0 auto;
  width: clamp(28px, 5vw, 64px);
  height: 1px;
  background: var(--champagne);
}
.eyebrow--light { color: var(--gold); }
.eyebrow--light::after { background: rgba(201,168,106,.7); }

.lede {
  font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
}

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4.25rem); }
.section-head__lede { color: var(--taupe); font-size: 1.05rem; margin-bottom: 0; }
.section-head__lede--light { color: var(--on-dark-mute); }
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before {
  content: "";
  width: clamp(28px, 5vw, 64px); height: 1px;
  background: rgba(201,168,106,.7);
}
.section-head--center .h2 { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95em 1.7em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 1.05em 2.1em; }
.btn--block { width: 100%; }

.btn--solid { --btn-bg: var(--bronze); --btn-fg: #fff; --btn-bd: var(--bronze); }
.btn--solid:hover { --btn-bg: var(--charcoal); --btn-bd: var(--charcoal); color: #fff; }

.btn--outline { --btn-fg: var(--ink); --btn-bd: var(--rule-strong); }
.btn--outline:hover { --btn-bg: var(--charcoal); --btn-fg: var(--on-dark); --btn-bd: var(--charcoal); }

.btn--outline-light { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.btn--outline-light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--charcoal); --btn-bd: var(--gold); }
.btn--gold:hover { --btn-bg: transparent; --btn-fg: var(--gold); }

.btn--ghost {
  --btn-fg: var(--ink); --btn-bd: transparent;
  padding: .8em .6em; letter-spacing: .08em;
}
.btn--ghost:hover { --btn-fg: var(--bronze); transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--bronze);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--champagne);
  padding-bottom: .3rem;
  transition: color .22s var(--ease), border-color .22s var(--ease);
}
.link-arrow span { transition: transform .25s var(--ease); display: inline-block; }
.link-arrow:hover { color: var(--ink); border-color: var(--ink); }
.link-arrow:hover span { transform: translateX(5px); }
.link-arrow--lg { font-size: .9rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(247,242,233,0);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
}
.site-header.is-stuck {
  background: rgba(247,242,233,.94);
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 24px rgba(28,26,22,.06);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-stuck { background: rgba(247,242,233,.82); backdrop-filter: blur(10px); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: #fff;
  transition: color .3s var(--ease);
}
.site-header.is-stuck .brand,
.site-header.is-open .brand { color: var(--ink); }

/* display:block matters — as an inline <span> outside the flex header the
   width/height would be ignored and the SVG would fill its container. */
.brand__mark { display: block; width: 30px; height: 30px; flex: 0 0 auto; color: var(--gold); }
.site-header.is-stuck .brand__mark,
.site-header.is-open .brand__mark { color: var(--bronze); }
.brand__mark--footer { width: 34px; height: 34px; color: var(--gold); margin-bottom: 1rem; }

.brand__text { display: block; line-height: 1.1; }
.brand__name {
  display: block;
  font-family: var(--display);
  font-variation-settings: 'opsz' 40;
  font-size: 1.32rem;
  letter-spacing: .02em;
}
.brand__sub {
  display: block;
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .78;
  margin-top: .22rem;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.5rem); }
.nav__list { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.9rem); }
.nav__link {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .4rem 0;
  transition: color .25s var(--ease);
}
.site-header.is-stuck .nav__link { color: var(--ink); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link:hover { color: var(--gold); }
.site-header.is-stuck .nav__link:hover { color: var(--bronze); }

.nav__cta { display: flex; align-items: center; gap: .75rem; }
.nav__phone { color: #fff; }
.site-header.is-stuck .nav__phone { color: var(--ink); }
.nav__phone:hover { color: var(--gold); }
.site-header.is-stuck .nav__phone:hover { color: var(--bronze); }

.hamburger {
  display: none;
  width: 46px; height: 46px;
  background: none;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  position: relative;
  /* must stay above the open drawer (.nav, z-index 95) so the button that
     opened the menu is still the button that closes it */
  z-index: 96;
}
.site-header.is-stuck .hamburger,
.site-header.is-open .hamburger { border-color: var(--rule-strong); }
.hamburger__bar {
  position: absolute;
  left: 50%; width: 20px; height: 1.5px;
  background: #fff;
  transform: translateX(-50%);
  transition: transform .28s var(--ease), opacity .2s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck .hamburger__bar,
.site-header.is-open .hamburger__bar { background: var(--ink); }
.hamburger__bar:nth-child(1) { top: 16px; }
.hamburger__bar:nth-child(2) { top: 22px; }
.hamburger__bar:nth-child(3) { top: 28px; }
.site-header.is-open .hamburger__bar:nth-child(1) { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.site-header.is-open .hamburger__bar:nth-child(2) { opacity: 0; }
.site-header.is-open .hamburger__bar:nth-child(3) { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(26,24,20,.45);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.nav-backdrop.is-shown { opacity: 1; }

@media (max-width: 960px) {
  .hamburger { display: block; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    z-index: 95;
    width: min(380px, 86vw);
    height: 100%;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 6.5rem var(--gutter) 2.5rem;
    background: var(--cream);
    border-left: 1px solid var(--rule);
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform .36s var(--ease);
    visibility: hidden;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--rule); }
  .nav__link {
    display: block;
    color: var(--ink);
    font-family: var(--display);
    font-variation-settings: 'opsz' 28;
    font-size: 1.45rem;
    letter-spacing: .01em;
    text-transform: none;
    padding: 1rem 0;
  }
  .nav__link::after { display: none; }
  .nav__cta { flex-direction: column; align-items: stretch; gap: .9rem; margin-top: 2rem; }
  .nav__phone { color: var(--ink); border: 1px solid var(--rule-strong); }
  .site-header.is-stuck .nav__link { color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(104vh, 980px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(9rem, 16vw, 12rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  background: var(--charcoal);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(20,18,14,.90) 0%, rgba(20,18,14,.78) 34%, rgba(20,18,14,.34) 62%, rgba(20,18,14,.18) 100%),
    linear-gradient(to top, rgba(20,18,14,.72) 0%, rgba(20,18,14,0) 42%);
}
.hero__inner { position: relative; width: 100%; }
.hero__content { max-width: min(760px, 94%); }

.hero__title {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 96;
  /* sized so "Beautiful Walls." and "Expertly Installed." each hold one
     line inside .hero__content from 360px up */
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -.018em;
  color: #fff;
  margin: 0 0 1.1rem;
  text-shadow: 0 2px 28px rgba(16,14,11,.4);
}
.hero__title em { font-style: italic; color: var(--gold); }

.hero__lede {
  font-size: clamp(1.02rem, .95rem + .45vw, 1.24rem);
  line-height: 1.62;
  color: rgba(255,255,255,.93);
  max-width: 46ch;
  margin-bottom: 2.1rem;
  text-shadow: 0 1px 14px rgba(16,14,11,.5);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
@media (max-width: 560px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
}

.hero__meta {
  display: flex; align-items: center; gap: .7rem;
  font-size: .74rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.88);
  margin: 0;
}
.hero__dot {
  width: 6px; height: 6px; flex: 0 0 auto;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero__tagline {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3.5rem, 7vw, 6rem);
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: 'opsz' 40;
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  letter-spacing: .01em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
@media (max-width: 1100px) { .hero__tagline { display: none; } }

/* ---------- Intro ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.intro__text .h2 { max-width: 17ch; }
.intro__text .lede { margin-bottom: 1.5rem; }
.intro__text p:not(.lede):not(.eyebrow) { color: var(--taupe); }

.intro__points {
  margin-top: 2.2rem;
  border-top: 1px solid var(--rule);
}
.intro__points li {
  position: relative;
  padding: .85rem 0 .85rem 2.1rem;
  border-bottom: 1px solid var(--rule);
  font-size: .96rem;
  letter-spacing: .01em;
}
.intro__points li::before {
  content: "";
  position: absolute;
  left: .35rem; top: 1.5rem;
  width: 7px; height: 7px;
  border: 1px solid var(--champagne);
  transform: rotate(45deg);
}

.intro__figure { margin: 0; position: relative; }
.intro__figure img { width: 100%; }
.intro__figure::before {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 46%; height: 42%;
  border-top: 1px solid var(--champagne);
  border-right: 1px solid var(--champagne);
  pointer-events: none;
}
.intro__figure figcaption {
  margin-top: 1rem;
  font-size: .84rem;
  color: var(--taupe);
  font-style: italic;
  font-family: var(--display);
  font-variation-settings: 'opsz' 18;
}

@media (max-width: 860px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__figure { order: -1; }
  .intro__figure img { max-height: 62vh; object-fit: cover; }
}

/* ---------- Services ---------- */
.services__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5.5vw, 4.5rem);
  align-items: start;
}
.service {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.1rem, 2.6vw, 2.4rem);
  padding: clamp(1.5rem, 2.8vw, 2.2rem) 0;
  border-top: 1px solid var(--rule);
  transition: padding-left .3s var(--ease);
}
.service:last-child { border-bottom: 1px solid var(--rule); }
.service:hover { padding-left: .6rem; }
.service__num {
  font-family: var(--display);
  font-variation-settings: 'opsz' 40;
  font-size: clamp(1.4rem, 1.1rem + .9vw, 2rem);
  line-height: 1;
  color: var(--champagne);
  padding-top: .18rem;
  min-width: 2.4ch;
}
.service__title {
  font-family: var(--display);
  font-variation-settings: 'opsz' 30;
  font-size: clamp(1.28rem, 1.1rem + .7vw, 1.72rem);
  line-height: 1.22;
  letter-spacing: -.005em;
  margin-bottom: .5rem;
}
.service__body p { color: var(--taupe); font-size: .99rem; margin: 0; }

.services__aside { position: sticky; top: 108px; }
.services__figure { margin: 0 0 1.75rem; position: relative; }
.services__figure img { width: 100%; }
.services__note {
  border-left: 1px solid var(--champagne);
  padding-left: 1.4rem;
}
.services__note-title {
  font-family: var(--display);
  font-variation-settings: 'opsz' 30;
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: .6rem;
}
.services__note p:not(.services__note-title) {
  color: var(--taupe); font-size: .95rem; margin-bottom: 1.3rem;
}

@media (max-width: 900px) {
  .services__layout { grid-template-columns: 1fr; }
  .services__aside { position: static; }
  .services__figure img { max-height: 55vh; object-fit: cover; }
}

/* ---------- Why us ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule-light);
  border: 1px solid var(--rule-light);
}
.why__item {
  background: var(--charcoal);
  padding: clamp(1.8rem, 3.2vw, 2.9rem);
  transition: background-color .3s var(--ease);
}
.why__item:hover { background: #262219; }
.why__title {
  font-family: var(--display);
  font-variation-settings: 'opsz' 30;
  font-size: clamp(1.18rem, 1.05rem + .5vw, 1.5rem);
  line-height: 1.25;
  color: var(--on-dark);
  margin-bottom: .7rem;
  padding-top: 1.5rem;
  position: relative;
}
.why__title::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 26px; height: 1px;
  background: var(--gold);
}
.why__item p { color: var(--on-dark-mute); font-size: .96rem; margin: 0; }
.why__cta { text-align: center; margin: clamp(2.75rem, 5vw, 4rem) 0 0; }

@media (max-width: 900px) { .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why__grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { padding-top: 0; }
.process__band {
  position: relative;
  height: clamp(180px, 26vw, 320px);
  overflow: hidden;
  margin-bottom: var(--section-y);
}
.process__band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.process__band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(247,242,233,.25), rgba(247,242,233,1));
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.step { border-top: 1px solid var(--rule-strong); padding-top: 1.5rem; }
.step__num {
  font-family: var(--display);
  font-variation-settings: 'opsz' 96;
  font-size: clamp(2.6rem, 2rem + 2.2vw, 4rem);
  line-height: .9;
  color: var(--champagne);
  margin: 0 0 1rem;
  letter-spacing: -.02em;
}
.step__title {
  font-family: var(--display);
  font-variation-settings: 'opsz' 30;
  font-size: clamp(1.15rem, 1rem + .55vw, 1.45rem);
  line-height: 1.25;
  margin-bottom: .55rem;
}
.step__text { color: var(--taupe); font-size: .95rem; margin: 0; }
.process__cta { margin: clamp(2.75rem, 5vw, 4rem) 0 0; }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.masonry { columns: 3 280px; column-gap: clamp(.9rem, 1.8vw, 1.5rem); }
.masonry__item { margin: 0 0 clamp(.9rem, 1.8vw, 1.5rem); break-inside: avoid; page-break-inside: avoid; }
.masonry__btn {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--stone);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}
.masonry__btn img {
  width: 100%;
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.masonry__btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,18,14,.72) 0%, rgba(20,18,14,0) 48%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.masonry__btn:hover img, .masonry__btn:focus-visible img { transform: scale(1.035); }
.masonry__btn:hover::after, .masonry__btn:focus-visible::after { opacity: 1; }
.masonry__caption {
  position: absolute;
  left: 1.1rem; right: 1.1rem; bottom: 1rem;
  z-index: 2;
  color: #fff;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.masonry__btn:hover .masonry__caption,
.masonry__btn:focus-visible .masonry__caption { opacity: 1; transform: translateY(0); }
.gallery__cta { text-align: center; margin: clamp(2.5rem, 5vw, 3.75rem) 0 0; }

/* ---------- Local ---------- */
.local__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.local__figure { margin: 0; position: relative; }
.local__figure img { width: 100%; }
.local__figure::after {
  content: "";
  position: absolute;
  inset: auto auto -14px -14px;
  width: 42%; height: 40%;
  border-bottom: 1px solid var(--champagne);
  border-left: 1px solid var(--champagne);
  pointer-events: none;
}
.local__text .lede { margin-bottom: 1.4rem; }
.local__text p:not(.lede):not(.eyebrow) { color: var(--taupe); }
@media (max-width: 860px) { .local__grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: start;
}
.contact__formwrap {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3.6vw, 3rem);
}

.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { margin-bottom: 1.35rem; min-width: 0; }
.field__label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: .55rem;
}
.req { color: var(--bronze); }
.field__input {
  display: block;
  width: 100%;
  padding: .92rem 1rem;
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.field__input::placeholder { color: #9A9081; opacity: 1; }
.field__input:hover { border-color: var(--taupe); }
.field__input:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(122,92,50,.16);
}
.field__input--area { resize: vertical; min-height: 7.5rem; }
.field__help { font-size: .8rem; color: var(--taupe); margin: .45rem 0 0; }

/* honeypot — visually hidden but still a real field for bots */
.field--hp {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__fineprint { font-size: .8rem; color: var(--taupe); margin: 1rem 0 0; }

/* error styling that matches the field design; the client script also sets
   its own inline colour on .error-message, which simply wins over this. */
.error-message { color: var(--danger); font-size: .85rem; margin-top: .4rem; }
.field__input[aria-invalid="true"] { border-color: var(--danger); }

.form-success {
  background: var(--charcoal);
  color: var(--on-dark);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.form-success__title {
  font-family: var(--display);
  font-variation-settings: 'opsz' 30;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: .5rem;
}
.form-success p:not(.form-success__title) { color: var(--on-dark-mute); font-size: .95rem; margin: 0; }
.form-success a { color: var(--gold); }

.contact__aside { display: grid; gap: 1.25rem; }
.card {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: clamp(1.4rem, 2.8vw, 2rem);
}
.card__title {
  font-family: var(--display);
  font-variation-settings: 'opsz' 30;
  font-size: 1.32rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.details__row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: .75rem;
  padding: .72rem 0;
  border-top: 1px solid var(--rule);
  font-size: .94rem;
}
.details__row:first-child { border-top: 0; padding-top: 0; }
.details dt {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--taupe);
  padding-top: .22rem;
}
.details dd a { word-break: break-word; }

/* ---------- Location band + embedded map ---------- */
.locate {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3.25rem);
}
/* padding-bottom ratio box rather than aspect-ratio: this one holds an
   <iframe>, and the older technique works in every engine without caveats. */
.locate__map {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 42%;
  min-height: 320px;
  background: var(--stone);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.locate__plate,
.locate__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.locate__plate { z-index: 0; }
.locate__embed { z-index: 1; }

.locate__card {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.locate__title {
  font-family: var(--display);
  font-variation-settings: 'opsz' 40;
  font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: .8rem;
}
.locate__note { color: var(--taupe); font-size: .94rem; margin-bottom: 1.4rem; }

/* From 901px up the card floats over the map, inset from its lower-right —
   the right side keeps it clear of Google's own info window, which the embed
   anchors to the top-left of the frame. */
@media (min-width: 901px) {
  .locate__map { padding-bottom: 40%; min-height: 420px; }
  .locate__card {
    position: absolute;
    right: clamp(1.5rem, 3vw, 2.5rem);
    bottom: clamp(1.5rem, 3vw, 2.5rem);
    z-index: 2;
    width: min(380px, 38%);
    box-shadow: 0 18px 48px rgba(28, 26, 22, .18);
  }
}
@media (max-width: 900px) {
  .locate__map { padding-bottom: 60%; min-height: 280px; border-bottom: 0; }
  .locate__card { border-top: 0; }
}

.card--call { background: var(--charcoal); border-color: var(--charcoal); text-align: center; }
.card__kicker {
  font-size: .7rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--on-dark-mute); margin-bottom: .7rem;
}
.card__phone {
  display: block;
  font-family: var(--display);
  font-variation-settings: 'opsz' 60;
  font-size: clamp(1.7rem, 1.4rem + 1.1vw, 2.3rem);
  color: var(--gold);
  text-decoration: none;
  letter-spacing: .01em;
  margin-bottom: .6rem;
  transition: color .22s var(--ease);
}
.card__phone:hover { color: #fff; }
.card__note { font-size: .88rem; color: var(--on-dark-mute); margin: 0; }

@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal-deep);
  color: var(--on-dark);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule-light);
}
.footer__name {
  font-family: var(--display);
  font-variation-settings: 'opsz' 48;
  font-size: 1.55rem;
  color: #fff;
  margin-bottom: .35rem;
}
.footer__tag { color: var(--on-dark-foot); font-size: .88rem; margin-bottom: .25rem; }
.footer__tag--motto {
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: 'opsz' 24;
  color: var(--gold);
  font-size: 1rem;
  margin-top: .9rem;
}
.footer__h {
  font-size: .7rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem;
}
.footer__nav li, .footer__contact li { margin-bottom: .7rem; font-size: .92rem; color: var(--on-dark-foot); }
.footer__nav a, .footer__contact a { color: var(--on-dark); text-decoration: none; word-break: break-word; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold); text-decoration: underline; }
.footer__k {
  display: block;
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-dark-foot); margin-bottom: .15rem;
}
.footer__contact address { color: var(--on-dark); }
.footer__map { display: inline-block; margin-top: .4rem; border-bottom: 1px solid var(--gold); }
.footer__legal {
  margin: 1.75rem 0 0;
  font-size: .82rem;
  color: var(--on-dark-foot);
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16,14,11,.94);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
/* `display:flex` above would otherwise beat the [hidden] attribute's
   display:none and leave an invisible overlay eating every click. */
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__inner {
  position: relative;
  display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.5rem);
  max-width: 100%; max-height: 100%;
}
.lightbox__figure { margin: 0; max-height: 100%; min-width: 0; }
.lightbox__img {
  max-width: 100%;
  max-height: min(78vh, 900px);
  width: auto;
  object-fit: contain;
}
.lightbox__cap {
  margin-top: 1rem;
  color: rgba(255,255,255,.82);
  font-size: .86rem;
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
}
.lightbox__close {
  position: absolute;
  top: clamp(-2.6rem, -5vw, -3rem); right: 0;
  width: 44px; height: 44px;
  background: none; border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer; border-radius: var(--radius);
  transition: background-color .22s var(--ease);
}
.lightbox__close:hover { background: rgba(255,255,255,.14); }
.lightbox__nav {
  flex: 0 0 auto;
  width: 48px; height: 64px;
  background: none; border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 1.9rem; line-height: 1;
  cursor: pointer; border-radius: var(--radius);
  transition: background-color .22s var(--ease);
}
.lightbox__nav:hover { background: rgba(255,255,255,.14); }
@media (max-width: 640px) {
  .lightbox__nav { width: 40px; height: 52px; font-size: 1.5rem; }
  .lightbox__close { top: -3.2rem; }
}
body.is-locked { overflow: hidden; }

/* ==========================================================================
   Scroll reveal — progressive enhancement.
   Content is VISIBLE BY DEFAULT. Only when JS has confirmed IntersectionObserver
   support does it add .enhance to <html>, which switches the start state on.
   No JS, an old browser, reduced motion or print => everything just shows.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .enhance .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .enhance .reveal.is-visible { opacity: 1; transform: none; }
  .enhance .reveal:nth-child(2) { transition-delay: .06s; }
  .enhance .reveal:nth-child(3) { transition-delay: .12s; }
  .enhance .reveal:nth-child(4) { transition-delay: .18s; }
  .enhance .reveal:nth-child(5) { transition-delay: .24s; }
  .enhance .reveal:nth-child(6) { transition-delay: .30s; }
}

@media print {
  .enhance .reveal, .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .hamburger, .nav, .lightbox, .nav-backdrop { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; }
}
