/* ==========================================================================
   Hilliard Wallpaper Installer — styles.css
   Contemporary residential interiors: ivory, graphite, stone, restrained brass.
   Type: Noto Serif Display (editorial headings) + Red Hat Text (UI & body).
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Noto Serif Display";
  src: url("fonts/noto-serif-display-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif Display";
  src: url("fonts/noto-serif-display-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Text";
  src: url("fonts/red-hat-text-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* grounds */
  --ivory: #FAF6EF;
  --paper: #FFFDF9;
  --cream: #F3EDE2;
  --stone: #E7DFD2;
  --graphite: #262624;
  --soot: #181817;

  /* text on light */
  --ink: #1E1D1B;
  --body: #45423D;
  --muted: #5F5A52;
  --taupe: #6A6154;

  /* text on dark */
  --on-dark: #F2EDE4;
  --on-dark-muted: #B9B3A8;

  /* brass — split by job */
  --brass: #B39159;        /* decorative marks & rules only */
  --brass-text: #735A2B;   /* accent text on light grounds */
  --brass-light: #D6BC88;  /* accent text & fills on dark grounds */

  /* lines */
  --rule: #E2DACB;         /* decorative hairline, never text */
  --rule-dark: #3A3936;
  --line: #7D766B;         /* form control border (>=3:1) */
  --error: #A32B22;

  --serif: "Noto Serif Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Red Hat Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);
  --header-h: 76px;
  --radius: 2px;
  --radius-soft: 10px;
  --shadow: 0 1px 2px rgba(30, 29, 27, .05), 0 12px 32px -12px rgba(30, 29, 27, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--body);
  font-family: var(--sans);
  font-size: clamp(16px, .25vw + 15.2px, 18px);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
picture { display: block; }
img { height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }

h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 1px;
}
.section--dark :focus-visible, .footer :focus-visible, .cta :focus-visible, .lightbox :focus-visible {
  outline-color: var(--brass-light);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  background: var(--graphite);
  color: var(--on-dark);
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }

/* ---------- 4. Shared components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn--solid { background: var(--graphite); color: var(--ivory); }
.btn--solid:hover { background: var(--brass-text); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--ivory); }
.btn--brass { background: var(--brass-light); color: var(--graphite); }
.btn--brass:hover { background: var(--on-dark); }
.btn--block { width: 100%; }

.eyebrow, .index-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass-text);
}
.eyebrow__rule { flex: 0 0 36px; height: 1px; background: var(--brass); }
.index-label { margin-bottom: 22px; }
.index-label span {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--ink);
  padding-right: 14px;
  border-right: 1px solid var(--brass);
  line-height: 1;
}
.index-label--dark { color: var(--brass-light); }
.index-label--dark span { color: var(--on-dark); }

.section-title {
  font-size: clamp(2rem, 3.6vw + .6rem, 3.5rem);
  max-width: 17ch;
}
.section-intro { max-width: 46ch; color: var(--muted); }
.lead { font-size: 1.125em; color: var(--ink); line-height: 1.6; }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--split { display: grid; gap: 20px 64px; align-items: end; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.2fr 1fr; }
  .section-head--split .section-intro { padding-bottom: 8px; }
}

/* ---------- 5. Header ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, .97);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .35s var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .masthead { background: rgba(250, 246, 239, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.masthead.is-scrolled { box-shadow: 0 10px 30px -18px rgba(30, 29, 27, .35); }
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-width: 0;
}
.wordmark__mark { width: 36px; height: 36px; flex: 0 0 36px; }
.wordmark__text { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark__top {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: .01em;
}
.wordmark__bottom {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 3px;
  white-space: nowrap;
}

.nav__list { display: flex; gap: clamp(18px, 2vw, 34px); }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__drawer-extra { display: none; }

.masthead__actions { display: flex; align-items: center; gap: 18px; }
.masthead__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .9375rem;
  white-space: nowrap;
  min-height: 44px;
}
.masthead__phone svg { width: 18px; height: 18px; color: var(--brass-text); }
.masthead__phone:hover span { text-decoration: underline; text-underline-offset: 4px; }
.masthead__cta { min-height: 44px; padding: 10px 20px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  flex: 0 0 44px;
}
.burger__line {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.burger__line:first-child { top: 17px; }
.burger__line:last-child { top: 25px; }
.burger[aria-expanded="true"] .burger__line:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1139px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -24px rgba(30, 29, 27, .35);
    padding: 8px var(--gutter) 28px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--rule); }
  .nav__link { display: block; padding: 16px 0; font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0; }
  .nav__link::after { display: none; }
  .nav__drawer-extra { display: grid; gap: 14px; padding-top: 24px; max-width: 520px; }
  .nav__drawer-phone { font-weight: 600; color: var(--ink); font-size: 1.125rem; text-decoration: none; padding: 6px 0; }
  .nav__drawer-note { font-size: .875rem; color: var(--muted); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 859px) { .masthead__phone span { display: none; } .masthead__phone { width: 44px; justify-content: center; border: 1px solid var(--rule); border-radius: var(--radius); } }
@media (max-width: 559px) {
  :root { --header-h: 66px; }
  .masthead__cta, .masthead__phone { display: none; }
  .wordmark__mark { width: 32px; height: 32px; flex-basis: 32px; }
  .wordmark__top { font-size: 1.15rem; }
  .wordmark__bottom { font-size: .5625rem; letter-spacing: .18em; }
}

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding-bottom: clamp(56px, 7vw, 96px); }
.hero__cover {
  position: relative;
  height: clamp(420px, 68vh, 800px);
  overflow: hidden;
  background: var(--stone);
}
.hero__cover picture { height: 100%; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}
.hero__plate-wrap {
  position: relative;
  display: grid;
  align-items: end;
  margin-top: calc(-1 * clamp(200px, 26vh, 300px));
}
.hero__plate {
  position: relative;
  background: var(--ivory);
  padding: clamp(28px, 4.2vw, 60px) clamp(22px, 4.2vw, 64px) clamp(26px, 3.4vw, 48px);
  max-width: 700px;
  box-shadow: 0 30px 60px -40px rgba(30, 29, 27, .45);
}
.hero__plate::before {
  content: "";
  position: absolute;
  top: 0; left: clamp(22px, 4.2vw, 64px);
  width: 56px; height: 2px;
  background: var(--brass);
}
.hero__title {
  margin-top: 20px;
  font-size: clamp(2.3rem, 3.7vw + .6rem, 4.15rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  max-width: 14.5ch;
}
.hero__lead {
  margin-top: 22px;
  font-size: clamp(1.0625rem, .5vw + .95rem, 1.3rem);
  color: var(--ink);
  max-width: 34ch;
  line-height: 1.5;
}
.hero__support { margin-top: 14px; color: var(--muted); max-width: 52ch; font-size: .95em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--taupe);
}
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts li::before { content: ""; width: 5px; height: 5px; background: var(--brass); transform: rotate(45deg); }
.hero__note {
  display: none;
  align-items: center;
  gap: 12px;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 600;
  justify-self: end;
  padding-bottom: 10px;
}
.hero__note-rule { width: 40px; height: 1px; background: var(--brass); }
@media (min-width: 1100px) {
  .hero__plate-wrap { grid-template-columns: minmax(0, 700px) 1fr; }
  .hero__note { display: flex; }
}
@media (max-width: 799px) {
  .hero__cover { height: auto; aspect-ratio: 4 / 5; max-height: 78vh; width: 100%; }
  .hero__img { object-position: 50% 50%; }
  .hero__plate-wrap { margin-top: -72px; }
  .hero__plate { padding: 28px 22px 24px; }
  .hero__actions .btn { flex: 1 1 220px; }
}

/* ---------- 7. Services ---------- */
.services { background: var(--ivory); padding-top: clamp(24px, 4vw, 60px); }
.services__layout { display: grid; gap: 48px; }
.services__plate { align-self: start; }
.services__plate img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.services__plate figcaption {
  margin-top: 14px;
  font-size: .875rem;
  color: var(--muted);
  padding-left: 16px;
  border-left: 1px solid var(--brass);
  max-width: 40ch;
}
.service-list { border-top: 1px solid var(--rule); counter-reset: svc; }
.service {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  transition: background-color .4s var(--ease);
}
.service__num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--brass-text);
  line-height: 1.2;
  padding-top: 2px;
}
.service__title { font-size: clamp(1.4rem, 1vw + 1rem, 1.85rem); margin-bottom: 10px; }
.service__body p { max-width: 58ch; }
.service:hover .service__num { color: var(--ink); }
.services__cta {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding: 28px clamp(22px, 3vw, 40px);
  background: var(--cream);
  border: 1px solid var(--rule);
}
.services__cta p { font-family: var(--serif); font-size: clamp(1.2rem, 1vw + .9rem, 1.5rem); color: var(--ink); max-width: 44ch; line-height: 1.35; }
@media (min-width: 1000px) {
  .services__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 96px); }
  .services__plate { position: sticky; top: calc(var(--header-h) + 32px); }
  .service { grid-template-columns: 80px 1fr; padding: 34px 0; }
}
@media (min-width: 640px) and (max-width: 999px) {
  .services__plate { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
  .services__plate img { aspect-ratio: 4 / 5; }
}

/* ---------- 8. Craft / why it matters ---------- */
.craft { background: var(--cream); }
.craft__layout { display: grid; gap: 48px; align-items: start; }
.craft__figure { position: relative; }
.craft__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.craft__tag {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--graphite);
  color: var(--on-dark);
  padding: 10px 16px;
  font-size: .6875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
}
.craft__copy .section-title { max-width: 16ch; margin-bottom: 26px; }
.craft__copy > p + p { margin-top: 16px; }
.craft__copy > p:not(.lead):not(.index-label) { color: var(--body); max-width: 60ch; }
.spec { margin-top: 40px; border-top: 1px solid var(--ink); }
.spec__row {
  display: grid;
  gap: 4px 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.spec dt { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); line-height: 1.3; }
.spec dd { color: var(--body); font-size: .95em; }
@media (min-width: 600px) { .spec__row { grid-template-columns: 200px 1fr; } }
@media (min-width: 960px) {
  .craft__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 7vw, 110px); }
  .craft__figure { position: sticky; top: calc(var(--header-h) + 32px); }
  .craft__figure::after {
    content: "";
    position: absolute;
    inset: 24px -24px -24px 24px;
    border: 1px solid var(--brass);
    z-index: -1;
    pointer-events: none;
  }
  .craft__figure { z-index: 0; }
}

/* ---------- 9. Process (dark) ---------- */
.section--dark { background: var(--graphite); color: var(--on-dark-muted); }
.section--dark .section-title, .section--dark h3 { color: var(--on-dark); }
.section--dark .section-intro { color: var(--on-dark-muted); }
.steps { display: grid; gap: 0; border-top: 1px solid var(--rule-dark); }
.step {
  position: relative;
  padding: 32px 0 34px;
  border-bottom: 1px solid var(--rule-dark);
}
.step__num {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 5vw, 5rem);
  line-height: .9;
  color: var(--brass-light);
  margin-bottom: 22px;
}
.step__title { font-size: 1.6rem; margin-bottom: 12px; }
.step p { max-width: 42ch; }
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); column-gap: 0; border-top: 0; }
  .step { padding: 40px 32px 8px; border-bottom: 0; border-left: 1px solid var(--rule-dark); }
  .step:first-child { padding-left: 0; border-left: 0; }
  .step::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--rule-dark);
  }
  .step::after {
    content: "";
    position: absolute;
    top: -3px; left: 32px;
    width: 7px; height: 7px;
    background: var(--brass-light);
    transform: rotate(45deg);
  }
  .step:first-child::after { left: 0; }
}

/* ---------- 10. About ---------- */
.about { background: var(--ivory); }
.about__layout { display: grid; gap: 48px; align-items: center; }
.about__copy .section-title { margin-bottom: 26px; }
.about__copy > p + p { margin-top: 16px; max-width: 60ch; }
.values { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--rule); }
.values li {
  display: grid;
  align-content: start;
  grid-template-columns: 14px 1fr;
  column-gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: .95em;
}
.values strong { display: block; color: var(--ink); font-weight: 600; grid-column: 2; }
.values li > :not(.values__mark):not(strong) { grid-column: 2; }
.values__mark { grid-row: span 2; width: 7px; height: 7px; margin-top: .6em; background: var(--brass); transform: rotate(45deg); }
.signoff { margin-top: 36px; display: flex; flex-direction: column; gap: 2px; }
.signoff__name { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--ink); line-height: 1.1; }
.signoff__role { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--taupe); }
.about__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0 0 0 120px; }
@media (min-width: 640px) {
  .values { grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 0; }
  .values li:nth-child(-n+2) { border-top: 1px solid var(--rule); }
}
@media (min-width: 960px) {
  .about__layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(56px, 7vw, 110px); }
  .about__figure { margin-top: -40px; }
}

/* ---------- 11. Gallery ---------- */
.gallery { background: var(--stone); }
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.tile { display: flex; flex-direction: column; min-width: 0; }
.tile__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--cream);
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}
.tile--a .tile__btn, .tile--e .tile__btn, .tile--f .tile__btn { aspect-ratio: 3 / 2; }
.tile__btn picture, .tile__btn img { width: 100%; height: 100%; }
.tile__btn img { object-fit: cover; transition: transform 1.1s var(--ease); }
.tile__btn:hover img, .tile__btn:focus-visible img { transform: scale(1.035); }
.tile__caption {
  margin-top: 10px;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--taupe);
}
@media (min-width: 600px) and (max-width: 899px) {
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .tile--a { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .gallery__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 36px 24px;
    align-items: start;
  }
  .tile__btn { aspect-ratio: auto; }
  /* row 1: wide landscape + portrait */
  .tile--a { grid-column: 1 / 8; }
  .tile--b { grid-column: 8 / 13; }
  /* row 2: four portraits with an alternating offset */
  .tile--c { grid-column: 1 / 4; }
  .tile--d { grid-column: 4 / 7; margin-top: 56px; }
  .tile--g { grid-column: 7 / 10; }
  .tile--h { grid-column: 10 / 13; margin-top: 56px; }
  /* row 3: two landscapes */
  .tile--e { grid-column: 1 / 7; }
  .tile--f { grid-column: 7 / 13; margin-top: 56px; }
  .tile--a .tile__btn { aspect-ratio: 16 / 10.9; }
  .tile--b .tile__btn { aspect-ratio: 4 / 4.45; }
  .tile--c .tile__btn, .tile--d .tile__btn, .tile--g .tile__btn, .tile--h .tile__btn { aspect-ratio: 4 / 5; }
  .tile--e .tile__btn, .tile--f .tile__btn { aspect-ratio: 3 / 2; }
}

/* ---------- 12. CTA ---------- */
.cta { background: var(--ivory); padding-block: var(--section-y); }
.cta__layout { display: grid; align-items: stretch; }
.cta__panel {
  background: var(--graphite);
  color: var(--on-dark-muted);
  padding: clamp(36px, 5vw, 72px) clamp(24px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta__title { color: var(--on-dark); font-size: clamp(2.2rem, 3.8vw + .5rem, 3.9rem); max-width: 13ch; }
.cta__text { margin-top: 18px; font-size: 1.125em; max-width: 38ch; color: var(--on-dark); opacity: .88; }
.cta__actions { margin-top: 30px; }
.cta__contacts { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--rule-dark); display: grid; gap: 10px; }
.cta__contacts li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-width: 0; }
.cta__contacts a { color: var(--on-dark); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; padding: 4px 0; }
.cta__contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta__label { font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--brass-light); width: 56px; }
.cta__figure { min-height: 280px; }
.cta__figure picture, .cta__figure img { width: 100%; height: 100%; }
.cta__figure img { object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 960px) {
  .cta__layout { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); }
  .cta__figure img { aspect-ratio: auto; }
  .cta__panel { margin-block: 48px; position: relative; z-index: 1; margin-right: -72px; }
}

/* ---------- 13. Contact ---------- */
.contact { background: var(--cream); }
.contact__layout { display: grid; gap: 48px; align-items: start; }
.contact__aside .section-title { margin-bottom: 20px; }
.card-nap {
  margin-top: 32px;
  padding: 26px 0 4px;
  border-top: 1px solid var(--ink);
}
.card-nap__name { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); line-height: 1.2; }
.card-nap__owner { color: var(--taupe); font-size: .9rem; margin-top: 2px; }
.card-nap__list { margin-top: 18px; display: grid; }
.card-nap__list li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.card-nap__label { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--brass-text); }
.card-nap__list a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; font-weight: 500; }
.card-nap__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__hint { margin-top: 24px; font-size: .9rem; color: var(--muted); max-width: 46ch; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 52px);
  border-radius: var(--radius-soft);
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 22px 20px; }
@media (min-width: 600px) and (max-width: 959px), (min-width: 1140px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; min-width: 0; }
.field label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.req { color: var(--error); }
.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(115, 90, 43, .28);
}
.field__hint { margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.field--hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form__foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.form__submit { min-width: 200px; }
.form__note { font-size: .8125rem; color: var(--muted); flex: 1 1 220px; }

/* Supplied script: inline error colour is overridden for contrast (keeps script untouched) */
.error-message { color: var(--error) !important; font-weight: 500; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* #form-success visibility is toggled by the supplied script via inline style.display */
#form-success { display: none; }
.form-success { text-align: left; padding: 12px 0; }
.form-success__mark { display: block; width: 44px; height: 2px; background: var(--brass); margin-bottom: 22px; }
.form-success__title { font-family: var(--serif); font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem); color: var(--ink); line-height: 1.2; margin-bottom: 12px; }
.form-success a { color: var(--ink); font-weight: 600; }

@media (min-width: 960px) {
  .contact__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(56px, 6vw, 96px); }
  .contact__aside { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- 14. Location ---------- */
.location { background: var(--ivory); }
.location__layout { display: grid; gap: 40px; align-items: center; }
.location__address { font-family: var(--serif); font-size: clamp(1.5rem, 1.6vw + 1rem, 2.1rem); color: var(--ink); line-height: 1.3; margin-top: 8px; }
.location__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.location__link { margin-top: 22px; font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.location__link a { color: var(--ink); }
.map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--stone);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.map__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: var(--taupe);
  font-size: .9rem;
  background:
    linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--cream);
}
.map__pin { width: 16px; height: 16px; background: var(--graphite); transform: rotate(45deg); box-shadow: 0 0 0 6px rgba(179, 145, 89, .35); }
.map__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.02); }
@media (min-width: 700px) { .map { aspect-ratio: 16 / 10; } }
@media (min-width: 960px) {
  .location__layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 96px); }
}

/* ---------- 15. Footer ---------- */
.footer { background: var(--soot); color: var(--on-dark-muted); padding: clamp(64px, 8vw, 104px) 0 28px; font-size: .9375rem; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__top { display: grid; gap: 44px; }
.footer__name { font-family: var(--serif); color: var(--on-dark); font-size: clamp(1.7rem, 2vw + 1rem, 2.3rem); line-height: 1.1; }
.footer__tag { margin: 8px 0 26px; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--brass-light); }
.footer__heading { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 6px; }
.footer__col li { min-width: 0; }
.footer__col a { display: inline-block; padding: 3px 0; overflow-wrap: anywhere; }
.footer__label { color: var(--on-dark-muted); }
.footer__contact li { overflow-wrap: anywhere; }
.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: .875rem;
}
.privacy { margin-top: 28px; max-width: 72ch; font-size: .875rem; }
@media (min-width: 700px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .footer__top { grid-template-columns: 1.3fr .7fr 1fr 1.3fr; gap: 48px; }
}

/* ---------- 16. Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
  background: rgba(20, 20, 19, .94);
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.lightbox.is-open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease), visibility 0s; }
.lightbox__inner { max-width: min(1200px, 100%); display: flex; flex-direction: column; align-items: center; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; }
.lightbox__caption { margin-top: 14px; color: var(--on-dark); font-size: .9375rem; text-align: center; }
.lightbox__count { margin-top: 4px; color: var(--on-dark-muted); font-size: .8125rem; letter-spacing: .12em; }
.lightbox__btn {
  position: absolute;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(242, 237, 228, .35);
  background: rgba(24, 24, 23, .6);
  color: var(--on-dark);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.lightbox__btn:hover { background: var(--graphite); border-color: var(--brass-light); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 699px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}

/* ---------- 17. Mobile quick bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 559px) {
  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--graphite);
    border-top: 1px solid var(--rule-dark);
    padding-bottom: env(safe-area-inset-bottom, 0);
    transform: translateY(0);
    transition: transform .35s var(--ease);
  }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center;
    min-height: 54px;
    padding: 8px 10px;
    font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    text-decoration: none; text-align: center;
    color: var(--on-dark);
  }
  .mobile-bar__quote { background: var(--brass-light); color: var(--graphite) !important; }
  .footer { padding-bottom: calc(28px + 54px + env(safe-area-inset-bottom, 0px)); }
  body.nav-open .mobile-bar { transform: translateY(110%); }
}

/* ---------- 18. Reveal (progressive enhancement) ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--delay, 0s);
  }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }
  .hero__img { animation: heroSettle 1.8s var(--ease) both; }
  .hero__plate { animation: plateIn 1s .15s var(--ease) both; }
}
@keyframes heroSettle { from { transform: scale(1.04); } to { transform: scale(1); } }
@keyframes plateIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- 19. Print ---------- */
@media print {
  .masthead, .mobile-bar, .lightbox, .map, .burger, .skip-link { display: none !important; }
  .reveal, .js-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__img, .hero__plate { animation: none !important; }
  .section--dark, .cta__panel, .footer { background: #fff !important; color: #000 !important; }
  .section--dark *, .cta__panel *, .footer * { color: #000 !important; }
  body { padding-bottom: 0; }
}

/* Footer CTA keeps its own button colours (footer link rule would otherwise win) */
.footer .btn--brass { color: var(--graphite); text-decoration: none; }
.footer .btn--brass:hover { color: var(--graphite); text-decoration: none; }
