/* ==========================================================================
   Mansfield Wallpaper Installer — design system
   Palette: New England heritage (ivory / oyster / charcoal / slate-navy / wheat)
   Type: Source Serif 4 (display, variable wght + opsz) + Plus Jakarta Sans (text)
   ========================================================================== */

@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4-var-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #F7F5F0;
  --paper: #FFFFFF;
  --oyster: #EEEAE2;
  --line: #DCD6CB;
  --ink: #1F2329;
  --muted: #555B63;
  --navy: #24405C;
  --navy-hover: #1B3048;
  --dark: #18273A;
  --dark-2: #151F2B;
  --on-dark: #EEF1F4;
  --on-dark-muted: #B3C1CF;
  --wheat: #D3BC8F;
  --brass: #765A30;
  --error: #B3261E;
  --input-border: #857E72;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(31, 35, 41, .06), 0 2px 8px rgba(31, 35, 41, .05);
  --shadow: 0 2px 6px rgba(31, 35, 41, .05), 0 14px 34px rgba(31, 35, 41, .09);
  --shadow-lg: 0 30px 60px rgba(21, 31, 43, .18);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 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);
  overflow-x: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-hover); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  color: var(--ink);
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.75rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 1.45rem + 2.3vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); line-height: 1.25; }
em { font-style: italic; }
ul { padding: 0; margin: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--wheat); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.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;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: var(--section) 0; position: relative; }

/* Eyebrow with "registration mark" — the signature motif (roll trim marks) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 14px; height: 14px;
  flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.on-dark .eyebrow { color: var(--wheat); }

.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--muted); line-height: 1.65; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(36, 64, 92, .22); }
.btn-primary:hover { background: var(--navy-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(36, 64, 92, .28); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.btn-light { background: var(--wheat); color: var(--ink); }
.btn-light:hover { background: #E2CFA8; color: var(--ink); transform: translateY(-2px); }
.btn-ghost-light { border-color: rgba(238, 241, 244, .7); color: var(--on-dark); background: rgba(20, 29, 40, .25); }
.btn-ghost-light:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, .97);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 22px rgba(31, 35, 41, .06); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em; }
.brand-sub { font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  display: inline-block;
  padding: 10px 12px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1.5px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); }
.nav-cta { min-height: 46px; padding: 11px 20px; font-size: .95rem; }
.nav-call-mobile { display: none; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
  position: relative;
  z-index: 102;
  flex: none;
}
.menu-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--ivory);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    padding: 20px var(--gutter) 32px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
    border-top: 1px solid var(--line);
  }
  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a {
    display: block;
    padding: 16px 2px;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
  }
  .nav-list a::after { display: none; }
  .nav-cta, .nav-call-mobile { width: 100%; min-height: 54px; font-size: 1rem; }
  .nav-call-mobile { display: inline-flex; }
  body.nav-locked { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.12rem; }
  .brand-sub { font-size: .58rem; letter-spacing: .16em; }
  .brand-mark { width: 34px; height: 34px; }
}

/* ---------- Hero (framed, layered) ---------- */
.hero { padding: 6px var(--gutter) 0; }
.hero-frame {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  min-height: 600px;
  height: calc(100vh - var(--header-h) - 28px);
  height: calc(100svh - var(--header-h) - 28px);
  max-height: 940px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  isolation: isolate;
}
.hero-media, .hero-media picture, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img { object-fit: cover; object-position: 30% 50%; }
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(270deg, rgba(20, 29, 40, .92) 0%, rgba(20, 29, 40, .86) 30%, rgba(20, 29, 40, .45) 55%, rgba(20, 29, 40, .05) 78%),
    linear-gradient(0deg, rgba(20, 29, 40, .45) 0%, rgba(20, 29, 40, 0) 35%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-left: auto;
  width: min(640px, 54%);
  padding: 64px clamp(28px, 5vw, 72px) 64px 0;
  color: var(--on-dark);
}
.hero .eyebrow { color: var(--wheat); }
.hero h1 { color: #fff; margin-bottom: 22px; font-size: clamp(2.35rem, 1.5rem + 2.9vw, 4.05rem); line-height: 1.06; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--wheat); }
.hero-text { color: #E3E8ED; font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem); max-width: 34em; margin-bottom: 34px; }
.hero-note {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: .9rem;
  color: var(--on-dark-muted);
}
.hero-note li { display: inline-flex; align-items: center; gap: 8px; }
.hero-note li::before { content: ""; width: 6px; height: 6px; border: 1.5px solid var(--wheat); transform: rotate(45deg); }
/* registration marks on the hero corners */
.hero-frame .reg {
  position: absolute;
  z-index: 2;
  width: 22px; height: 22px;
  border-color: rgba(211, 188, 143, .85);
  border-style: solid;
  border-width: 0;
}
.reg-tl { top: 22px; left: 22px; border-top-width: 1.5px !important; border-left-width: 1.5px !important; }
.reg-br { bottom: 22px; right: 22px; border-bottom-width: 1.5px !important; border-right-width: 1.5px !important; }

@media (max-width: 900px) {
  .hero-frame { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; justify-content: flex-end; min-height: 640px; }
  .hero-media img { object-position: 28% 40%; }
  .hero-frame::before {
    background: linear-gradient(0deg, rgba(20, 29, 40, .96) 0%, rgba(20, 29, 40, .9) 42%, rgba(20, 29, 40, .45) 68%, rgba(20, 29, 40, .1) 100%);
  }
  .hero-content { width: 100%; height: auto; margin: 0; padding: 220px 28px 36px; }
  .reg-br { display: none; }
}
@media (max-width: 480px) {
  .hero { padding: 4px 10px 0; }
  .hero-frame { border-radius: 16px; min-height: 600px; }
  .hero-content { padding: 200px 20px 28px; }
  .hero .btn-row .btn { width: 100%; }
}

/* ---------- Intro ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.framed {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.framed img { width: 100%; height: 100%; object-fit: cover; }
.marks { position: relative; padding: 14px; }
.marks::before, .marks::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 0 solid var(--brass);
  pointer-events: none;
}
.marks::before { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.marks::after { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.intro-caption {
  margin-top: 14px;
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif);
}
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.detail-list h3 { font-size: 1.2rem; margin-bottom: 6px; display: flex; align-items: baseline; gap: 10px; }
.detail-list h3 span { font-family: var(--sans); font-size: .75rem; font-weight: 700; color: var(--brass); letter-spacing: .1em; }
.detail-list p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-media { max-width: 520px; }
}
@media (max-width: 560px) {
  .detail-list { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Services (bento) ---------- */
.services { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; } }

.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 18px;
}
.bento-media {
  grid-row: 1 / span 2;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 420px;
  margin: 0;
}
.bento-media picture, .bento-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bento-media img { object-fit: cover; transition: transform 1.2s var(--ease); }
.bento-media:hover img { transform: scale(1.04); }
.bento-media figcaption {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  background: rgba(247, 245, 240, .96);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink);
}
.bento-media figcaption strong { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin-bottom: 2px; }

.service-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
  position: relative;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C9C1B3; background: var(--paper); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--navy);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.service-card:hover .service-icon { background: var(--navy); color: #fff; border-color: var(--navy); }
.service-icon svg { width: 26px; height: 26px; }
.service-num { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--brass); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.65; }
.services-foot {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 30px;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: var(--oyster);
}
.services-foot p { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); }
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-media { grid-row: auto; grid-column: 1 / -1; min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento-media { aspect-ratio: 4 / 3; }
  .services-foot { padding: 22px; }
  .services-foot .btn { width: 100%; }
}

/* ---------- Approach (dark band with ticking-stripe texture) ---------- */
.approach {
  background-color: var(--dark);
  background-image: repeating-linear-gradient(90deg, rgba(211, 188, 143, .045) 0 1px, transparent 1px 22px, rgba(211, 188, 143, .03) 22px 24px, transparent 24px 46px);
  color: var(--on-dark);
}
.approach h2 { color: #fff; }
.approach .lead { color: var(--on-dark-muted); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.step {
  position: relative;
  padding: 30px 26px 30px;
  border-radius: var(--radius);
  background: rgba(238, 241, 244, .04);
  border: 1px solid rgba(179, 193, 207, .22);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.step:hover { background: rgba(238, 241, 244, .07); border-color: rgba(211, 188, 143, .55); transform: translateY(-4px); }
.step-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 2.8rem + 2vw, 4.6rem);
  font-weight: 300;
  line-height: 1;
  color: var(--wheat);
  margin-bottom: 22px;
  letter-spacing: -.03em;
}
.step-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--wheat), rgba(211, 188, 143, 0));
  margin-bottom: 22px;
}
.step h3 { color: #fff; margin-bottom: 10px; }
.step p { margin: 0; color: var(--on-dark-muted); font-size: .98rem; }
.approach-cta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.approach-cta p { margin: 0 12px 0 0; color: var(--on-dark-muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: auto 1fr; gap: 0 18px; padding: 24px 20px; }
  .step-num { grid-row: 1 / span 3; margin: 0; font-size: 3rem; }
  .step-line { display: none; }
  .approach-cta .btn { width: 100%; }
}

/* ---------- Gallery (staggered columns) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.gallery-col { display: flex; flex-direction: column; gap: 18px; }
.gallery-col:nth-child(even) { margin-top: 56px; }
.g-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--oyster);
  cursor: zoom-in;
  text-align: left;
}
.g-item.tall { aspect-ratio: 4 / 5; }
.g-item.short { aspect-ratio: 4 / 3; }
@supports not (aspect-ratio: 1 / 1) {
  .g-item.tall { height: 0; padding-bottom: 125%; }
  .g-item.short { height: 0; padding-bottom: 75%; }
}
.g-item picture, .g-item img { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-item img { object-fit: cover; transition: transform 1s var(--ease); }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); }
.g-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 40px 16px 14px;
  background: linear-gradient(0deg, rgba(20, 29, 40, .85), rgba(20, 29, 40, 0));
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.35;
}
.g-cap small { display: block; font-family: var(--serif); font-style: italic; font-size: .82rem; font-weight: 400; color: #E6DBC5; margin-bottom: 2px; }
.gallery-foot { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.gallery-foot p { margin: 0; color: var(--muted); max-width: 46em; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .gallery-col { gap: 14px; }
  .gallery-col:nth-child(even) { margin-top: 36px; }
}
@media (max-width: 420px) {
  .gallery-grid { gap: 10px; }
  .gallery-col { gap: 10px; }
  .gallery-col:nth-child(even) { margin-top: 24px; }
  .g-cap { padding: 30px 10px 10px; font-size: .8rem; }
  .g-cap small { display: none; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(13, 19, 27, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 72px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #E3E8ED; margin-top: 14px; font-size: .95rem; text-align: center; }
.lb-btn {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(238, 241, 244, .4);
  background: rgba(20, 29, 40, .6);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.lb-btn:hover { background: var(--navy); border-color: var(--navy); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 28px; left: 24px; color: var(--on-dark-muted); font-size: .9rem; letter-spacing: .1em; }
@media (max-width: 640px) {
  .lightbox { padding: 72px 12px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

/* ---------- About ---------- */
.about { background: var(--oyster); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.about-media { position: relative; padding-bottom: 40px; }
.about-media .framed { aspect-ratio: 4 / 3; }
.about-tag {
  position: absolute;
  right: clamp(-10px, -1vw, 0px);
  bottom: 0;
  max-width: 300px;
  background: var(--paper);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--brass);
}
.about-tag strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.about-tag span { font-size: .88rem; color: var(--muted); }
.principles { margin-top: 30px; display: grid; gap: 0; border-top: 1px solid #D3CCBF; }
.principles li { padding: 18px 0; border-bottom: 1px solid #D3CCBF; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.principles svg { width: 26px; height: 26px; color: var(--navy); margin-top: 3px; }
.principles strong { display: block; font-weight: 600; margin-bottom: 2px; }
.principles span { color: var(--muted); font-size: .97rem; }
.signature { margin-top: 28px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 620px; }
  .about-tag { right: 16px; }
}
@media (max-width: 420px) {
  .about-tag { position: relative; right: auto; margin: -36px 14px 0; max-width: none; }
  .about-media { padding-bottom: 0; }
}

/* ---------- Service area ---------- */
.area {
  background-color: var(--ivory);
  background-image: repeating-linear-gradient(90deg, rgba(36, 64, 92, .035) 0 1px, transparent 1px 26px);
  text-align: center;
}
.area-inner { max-width: 860px; margin: 0 auto; }
.area h2 { margin-bottom: 20px; }
.area .lead { margin: 0 auto 32px; max-width: 40em; }
.area-address {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 500;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}
.area-address svg { width: 20px; height: 20px; color: var(--brass); flex: none; }
.area .btn-row { justify-content: center; }
@media (max-width: 520px) {
  .area-address { border-radius: 14px; text-align: left; }
  .area .btn-row .btn { width: 100%; }
}

/* ---------- Map ---------- */
.map-section { padding-top: 0; background: var(--ivory); }
.map-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map-card { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.map-card h2 { font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem); }
.map-facts { margin: 8px 0 30px; display: grid; gap: 16px; }
.map-facts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.map-facts svg { width: 20px; height: 20px; color: var(--brass); margin-top: 4px; }
.map-facts span { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.map-facts a, .map-facts address { font-style: normal; color: var(--ink); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.map-facts a:hover { color: var(--navy); text-decoration: underline; }
.map-coords { margin-top: 18px; font-size: .82rem; color: var(--muted); letter-spacing: .04em; }
.map-frame {
  position: relative;
  min-height: 460px;
  background:
    linear-gradient(rgba(36, 64, 92, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(36, 64, 92, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--oyster);
}
.map-frame .map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: .95rem;
  text-align: center;
  padding: 24px;
}
.map-frame .map-placeholder svg { width: 36px; height: 36px; color: var(--navy); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
@media (max-width: 900px) {
  .map-wrap { grid-template-columns: 1fr; }
  .map-frame { min-height: 380px; order: -1; }
}
@media (max-width: 520px) {
  .map-frame { min-height: 320px; }
  .map-card .btn { width: 100%; }
}

/* ---------- Contact ---------- */
.contact { background: var(--oyster); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.contact-list { margin: 32px 0; display: grid; gap: 14px; }
.contact-list a, .contact-list div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.contact-list a:hover { background: var(--paper); border-color: #C9C1B3; color: var(--ink); }
.contact-list .ci {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
}
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list strong { font-weight: 600; overflow-wrap: anywhere; }
.tips { border-top: 1px solid #D3CCBF; padding-top: 22px; }
.tips h3 { font-size: 1.15rem; margin-bottom: 10px; }
.tips li { position: relative; padding-left: 22px; color: var(--muted); font-size: .97rem; margin-bottom: 6px; }
.tips li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 1.5px; background: var(--brass); }

.form-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.form-card h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 26px; }
/* NOTE: the form element itself stays display:block — the supplied script
   resets it with style.display = 'block' after a successful send. */
#wallpaperContactForm { display: block; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field label .req { color: var(--error); }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6E747C; opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(36, 64, 92, .16); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
/* Supplied script colours errors #ff6b6b inline; lift to an AA-compliant red */
.error-message { color: var(--error) !important; font-size: .88rem !important; font-weight: 500; margin-top: 6px !important; }
.error-message::before { content: "! "; font-weight: 800; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-submit { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-submit .btn { min-width: 240px; }
.form-submit .btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.form-legal { margin: 0; font-size: .85rem; color: var(--muted); }
.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #FBEDEC;
  border: 1px solid #E8B4AF;
  color: #7A1E17;
  font-size: .95rem;
}
.form-status[hidden] { display: none; }
#form-success {
  display: none;
  text-align: center;
  padding: 36px 12px;
}
#form-success .ok-icon {
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
}
#form-success .ok-icon svg { width: 32px; height: 32px; }
#form-success h3 { margin-bottom: 8px; }
#form-success p { color: var(--muted); margin: 0 auto; max-width: 30em; }
.form-banner { margin-bottom: 20px; padding: 14px 16px; border-radius: 10px; font-size: .95rem; display: none; }
.form-banner.is-ok { background: #E9EFF5; border: 1px solid #B9C9D9; color: var(--navy-hover); }
.form-banner.is-err { background: #FBEDEC; border: 1px solid #E8B4AF; color: #7A1E17; }
.form-banner:target { display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form-fields { grid-template-columns: 1fr; }
  .form-submit .btn { width: 100%; min-width: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--dark-2);
  background-image: repeating-linear-gradient(90deg, rgba(211, 188, 143, .035) 0 1px, transparent 1px 22px);
  color: #C9D3DD;
  padding: clamp(56px, 8vw, 88px) 0 28px;
  font-size: .97rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 4fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(179, 193, 207, .2);
}
.site-footer .brand { color: #fff; }
.site-footer .brand-sub { color: var(--on-dark-muted); }
.footer-about { margin-top: 18px; max-width: 34em; color: #C9D3DD; }
.site-footer h3 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--wheat); margin-bottom: 16px; }
.footer-nav li, .footer-contact li { margin-bottom: 8px; }
.site-footer a { color: #E3E8ED; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact address { font-style: normal; }
.footer-contact span { color: var(--on-dark-muted); display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-contact a, .footer-contact address { overflow-wrap: anywhere; }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; color: var(--on-dark-muted); }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile call bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(247, 245, 240, .97);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform .3s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 48px; padding: 10px 12px; font-size: .95rem; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 92px; }
}

/* ---------- Reveal animation (progressive enhancement) ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .enhance .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .enhance .reveal.is-in { opacity: 1; transform: none; }
  /* clip the child, not the observed element: Chromium's IntersectionObserver
     honours the target's own clip-path, so a fully clipped target never intersects */
  .enhance .reveal-img img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
  .enhance .reveal-img.is-in img { clip-path: inset(0 0 0 0); }
  .hero-media img { animation: heroIn 1.6s var(--ease) both; }
  .hero-content > * { animation: fadeUp .9s var(--ease) both; }
  .hero-content > *:nth-child(2) { animation-delay: .1s; }
  .hero-content > *:nth-child(3) { animation-delay: .2s; }
  .hero-content > *:nth-child(4) { animation-delay: .3s; }
  .hero-content > *:nth-child(5) { animation-delay: .4s; }
}
@keyframes heroIn { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .mobile-bar, .lightbox, .map-frame iframe { display: none !important; }
  .reveal, .reveal-img, .reveal-img img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  body { background: #fff; }
}

@media (max-width: 560px) {
  .intro-media .framed { aspect-ratio: 1 / 1; }
}
