/* ==========================================================================
   MPD Painting Ltd. — site styles
   Plain CSS, mobile-first. No build step required.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-var.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-italic-var.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Light, premium palette: warm white / ivory / stone grounds, charcoal type, crimson accent, silver hairlines */
  --white: #ffffff;
  --ivory: #faf8f4;
  --stone: #f1ece4;
  --stone-2: #e6dfd3;
  --heading: #17171a;
  --charcoal: #1d1d21;
  --black: #121214;
  --line: rgba(23, 23, 26, 0.10);
  --line-strong: rgba(23, 23, 26, 0.18);
  --silver-line: #c6c9ce;

  --crimson: #8a0f24;
  --crimson-deep: #5e0716;
  --crimson-bright: #a3142c;

  --silver: #c8cacf;
  --silver-light: #eceef1;
  --silver-dim: #c3c5ca;
  --silver-gradient: linear-gradient(180deg, #f4f5f7 0%, #b9bcc2 48%, #8e9198 52%, #d7d9dd 100%);

  --bone: #f2eee7;
  --bone-2: #e8e2d8;
  --text: #222225;
  --text-muted: #45423d;
  --text-dark: #1a1a1c;
  --text-dark-muted: #45423d;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 2px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--ivory); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; text-wrap: balance; color: var(--heading); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }
::selection { background: var(--crimson); color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--crimson); color: #fff; padding: .7rem 1rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.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;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding: calc(var(--section) * .65) 0; }
.section--white { background: var(--white); }
.section--stone { background: var(--stone); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .85rem;
  font-family: var(--sans); font-size: .8125rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--crimson);
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--crimson); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 34px; height: 1px; background: var(--crimson); }

.display {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.06; letter-spacing: 0;
}
.h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.12; letter-spacing: 0;
  margin-bottom: 1.4rem;
}
.h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.45rem, 2.2vw, 1.8rem); line-height: 1.2; margin-bottom: .7rem; }
.display em, .h2 em { font-style: normal; font-weight: 600; color: var(--crimson); }
.lead { font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.65; color: var(--text-muted); max-width: 60ch; }
.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-center .lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.text-center { margin-left: auto; margin-right: auto; }

.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--silver-line), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--crimson); --fg: #fff; --bd: var(--crimson);
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 52px; padding: .9rem 1.8rem; border: 1px solid var(--bd); border-radius: var(--radius);
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: .875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn:hover { --bg: var(--crimson-bright); --bd: var(--crimson-bright); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --bg: rgba(255,255,255,.85); --fg: var(--heading); --bd: rgba(23,23,26,.4); }
.btn--ghost:hover { --bg: var(--heading); --bd: var(--heading); --fg: #fff; }
.btn--dark { --bg: var(--text-dark); --fg: #fff; --bd: var(--text-dark); }
.btn--dark:hover { --bg: var(--crimson); --bd: var(--crimson); }
.btn--sm { min-height: 44px; padding: .65rem 1.25rem; font-size: .8125rem; letter-spacing: .08em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--heading);
  padding-bottom: .35rem; border-bottom: 1px solid var(--crimson);
  transition: gap .3s var(--ease), color .3s;
}
.link-arrow svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform .3s var(--ease); }
.link-arrow { white-space: nowrap; }
.link-arrow:hover { gap: 1rem; color: var(--crimson); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .35s var(--ease);
}
.site-header.is-solid, .site-header--solid { box-shadow: 0 10px 30px -18px rgba(23, 23, 26, .35); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 58px; width: auto; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(1.2rem, 2.2vw, 2.2rem); }
.nav__link {
  position: relative; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #2a292d; padding: .5rem 0; transition: color .25s; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--crimson); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--heading); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
}
.menu-toggle__bars { position: relative; width: 20px; height: 12px; }
.menu-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--heading);
  transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease);
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 5.25px; }
.menu-toggle__bars span:nth-child(3) { top: 10.5px; }
.menu-open .menu-toggle__bars span:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle__bars span:nth-child(3) { top: 5.25px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--white);
  padding: 2rem var(--gutter) 3rem; display: flex; flex-direction: column; gap: 2rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: var(--white); box-shadow: none; }
.mobile-nav__list li { border-bottom: 1px solid var(--line); }
.mobile-nav__list a {
  display: flex; justify-content: space-between; align-items: center; padding: 1.15rem 0;
  font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--heading);
}
.mobile-nav__list a[aria-current="page"] { color: var(--crimson); }
.mobile-nav__list a[aria-current="page"]::after { content: ""; width: 8px; height: 8px; background: var(--crimson); transform: rotate(45deg); }
.mobile-nav__meta { color: var(--text-muted); font-size: 1rem; }
.mobile-nav__meta strong { color: var(--heading); font-weight: 600; }

@media (min-width: 1200px) {
  :root { --header-h: 100px; }
  .brand img { height: 80px; }
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 0; overflow: hidden; isolation: isolate; background: var(--ivory);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* gentle ivory wash: image stays visible at the top, text sits on a soft light ground */
  background: linear-gradient(180deg, rgba(250,248,244,.25) 0%, rgba(250,248,244,.84) 24%, rgba(250,248,244,.96) 38%, rgba(250,248,244,.98) 100%);
}
@media (min-width: 900px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(250,248,244,0) 62%, rgba(250,248,244,.9) 100%),
      linear-gradient(90deg, rgba(250,248,244,.97) 0%, rgba(250,248,244,.95) 46%, rgba(250,248,244,.86) 60%, rgba(250,248,244,.25) 82%, rgba(250,248,244,.08) 100%);
  }
}
.hero__content { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 820px; }
.hero__title { margin-bottom: 1.6rem; color: var(--heading); }
.hero__lead { font-size: clamp(1.125rem, 1.5vw, 1.25rem); color: #2f2d2a; max-width: 56ch; margin-bottom: 2.4rem; }
.hero__trust {
  border-top: 1px solid var(--line-strong);
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.hero__trust li {
  display: flex; align-items: center; gap: .8rem; padding: 1.25rem .5rem 1.25rem 0;
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #2a292d;
}
.hero__trust svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--crimson); }
@media (min-width: 900px) {
  .hero__trust { grid-template-columns: repeat(4, 1fr); }
  .hero__trust li { padding: 1.6rem .6rem 1.8rem 0; letter-spacing: .06em; }
  .hero__trust li + li { padding-left: 1.6rem; border-left: 1px solid var(--line); }
}

/* Inner page hero */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; background: var(--ivory);
  padding: calc(var(--header-h) + clamp(4rem, 10vw, 8rem)) 0 clamp(3.5rem, 8vw, 6rem);
  min-height: 62vh; display: flex; align-items: flex-end;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(250,248,244,.86) 0%, rgba(250,248,244,.93) 30%, rgba(250,248,244,.97) 55%, rgba(250,248,244,.98) 100%);
}
@media (min-width: 900px) {
  .page-hero::before {
    background: linear-gradient(90deg, rgba(250,248,244,.97) 0%, rgba(250,248,244,.95) 46%, rgba(250,248,244,.86) 60%, rgba(250,248,244,.2) 86%, rgba(250,248,244,.06) 100%);
  }
}
.page-hero .display { font-size: clamp(2.5rem, 5.6vw, 4.6rem); max-width: 16ch; color: var(--heading); margin-bottom: 1.3rem; }
.page-hero .lead { color: #2f2d2a; }
.breadcrumb { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #45423d; margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--crimson); }
.breadcrumb span { margin: 0 .6rem; color: var(--crimson); }

/* ---------- Craft / split sections ---------- */
.split { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-media { grid-template-columns: 1.15fr .85fr; }
  .split--reverse > :first-child { order: 2; }
}
.media-stack { position: relative; padding: 0 12% 14% 0; }
.media-stack__main { aspect-ratio: 4 / 5; overflow: hidden; }
.media-stack__main img, .media-stack__inset img { width: 100%; height: 100%; object-fit: cover; }
.media-stack__inset {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; overflow: hidden;
  border: 8px solid var(--ivory); box-shadow: 0 30px 60px -20px rgba(23,23,26,.35);
}
.section--white .media-stack__inset { border-color: var(--white); }
.media-stack__tag {
  position: absolute; left: -1px; top: 2rem; background: var(--crimson); color: #fff;
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .7rem 1rem;
}
.frame { position: relative; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame > picture, .service-card__img > picture, .gallery-preview picture { width: 100%; height: 100%; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 11; }
.frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.45); pointer-events: none; }

.craft-list { display: grid; gap: 1.6rem; margin-top: 2.4rem; }
@media (min-width: 600px) { .craft-list { grid-template-columns: 1fr 1fr; } }
.craft-list li { padding-top: 1.3rem; border-top: 1px solid var(--line-strong); }
.craft-list h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; margin-bottom: .4rem; }
.craft-list p { font-size: 1.0625rem; color: var(--text-muted); margin: 0; }

.signature {
  margin-top: 2.4rem; padding-left: 1.4rem; border-left: 2px solid var(--crimson);
  font-family: var(--serif); font-style: normal; font-weight: 600; font-size: 1.45rem; line-height: 1.45; color: #2a292d;
}

/* ---------- Services cards ---------- */
.services-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 680px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  position: relative; background: var(--white); display: flex; flex-direction: column; overflow: hidden;
  transition: background .4s var(--ease);
}
.section--white .service-card { background: var(--ivory); }
.service-card:hover { background: var(--white); box-shadow: 0 24px 50px -30px rgba(23,23,26,.4); z-index: 1; }
.service-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.9); }
.service-card:hover .service-card__img img { transform: scale(1.05); filter: saturate(1.05); }
.service-card__body { padding: 1.8rem 1.8rem 2.1rem; display: flex; flex-direction: column; flex: 1; }
.service-card__num { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; color: var(--crimson); margin-bottom: .9rem; }
.service-card h3 { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; margin-bottom: .6rem; }
.service-card p { color: var(--text-muted); font-size: 1.0625rem; margin-bottom: 1.5rem; }
.service-card .link-arrow { margin-top: auto; align-self: flex-start; }
.service-card--feature .service-card__label {
  position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,.94); border: 1px solid var(--line);
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .5rem .75rem; color: var(--crimson);
}

/* ---------- Statement band ---------- */
.statement {
  background: var(--black); color: #fff;
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(6rem, 14vw, 11rem) 0; text-align: center;
}
.statement__media { position: absolute; inset: 0; z-index: -2; }
.statement__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: brightness(2.1) contrast(1.05) saturate(.8); }
.statement::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(9,9,10,.72) 0%, rgba(9,9,10,.9) 85%); }
.statement blockquote { margin: 0 auto; max-width: 980px; }
.statement p {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.18; color: #fff; margin-bottom: 1.6rem;
}
.statement p em { color: var(--silver-light); font-style: normal; }
.statement p { color: #fff; }
.statement cite { font-style: normal; font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--silver-dim); }

/* ---------- Process ---------- */
.process { counter-reset: step; display: grid; gap: 0; }
.process__step {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; padding: 2rem 0; align-content: start; align-items: start;
  border-top: 1px solid rgba(26,26,28,.14);
}
.process__step:last-child { border-bottom: 1px solid rgba(26,26,28,.14); }
.process__num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--crimson); font-weight: 600; }
.process__step h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin-bottom: .5rem; color: var(--text-dark); }
.process__step p { margin: 0; color: var(--text-dark-muted); font-size: 1.0625rem; max-width: 62ch; }
@media (min-width: 1020px) {
  .process { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .process__step { grid-template-columns: 1fr; padding: 2.4rem 1.6rem 2.4rem 0; border-top: 0; border-bottom: 0 !important; }
  .process__step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(26,26,28,.18); }
  .process__step::after { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; background: var(--crimson); transform: rotate(45deg); }
  .process__num { margin-bottom: 1rem; }
  .process__step h3 { font-size: 1.45rem; }
  .process__step p { font-size: 1rem; }
}

/* ---------- Why MPD features ---------- */
.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--white); padding: 2.3rem 2rem 2.4rem; transition: background .35s var(--ease); }
.section--white .feature { background: var(--ivory); }
.feature:hover, .section--white .feature:hover { background: var(--stone); }
.feature__icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 1.5rem;
  border: 1px solid var(--silver-line); color: var(--heading); position: relative; background: var(--white);
}
.feature__icon::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 10px; height: 10px; background: var(--crimson); }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin-bottom: .6rem; }
.feature p { color: var(--text-muted); font-size: 1.0625rem; margin: 0; }

/* ---------- Commercial teaser ---------- */
.teaser { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--stone); overflow: hidden; }
@media (min-width: 960px) { .teaser { grid-template-columns: 1.1fr 1fr; min-height: 560px; } }
.teaser__media { position: relative; min-height: 320px; }
.teaser__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teaser__body { padding: clamp(2.5rem, 6vw, 5.5rem); display: flex; flex-direction: column; justify-content: center; }
.check-list { display: grid; gap: .85rem; margin: 1.6rem 0 2.4rem; }
.check-list li { display: flex; gap: .9rem; align-items: flex-start; color: var(--text); font-size: 1.0625rem; }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: .62em; background: var(--crimson); transform: rotate(45deg);
}
@media (min-width: 640px) { .check-list--2col { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }

/* ---------- Gallery ---------- */
.gallery-preview { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) {
  .gallery-preview { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 280px 280px; }
  .gallery-preview > :first-child { grid-row: span 2; grid-column: auto; aspect-ratio: auto; }
}
.gallery-preview a { position: relative; overflow: hidden; display: block; aspect-ratio: 1; }
@media (max-width: 899px) { .gallery-preview > :first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; } }
@media (min-width: 900px) { .gallery-preview a { aspect-ratio: auto; } }
.gallery-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery-preview a:hover img { transform: scale(1.05); }
.gallery-preview figcaption, .gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .9rem;
  background: linear-gradient(rgba(18,18,20,0), rgba(18,18,20,.82) 45%, rgba(18,18,20,.9));
  font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.4rem; }
.filter-btn {
  background: var(--white); border: 1px solid var(--line-strong); color: #2f2d2a;
  padding: .65rem 1.1rem; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: all .25s var(--ease);
}
.filter-btn:hover { color: var(--heading); border-color: var(--heading); }
.filter-btn[aria-pressed="true"] { background: var(--crimson); border-color: var(--crimson); color: #fff; }

.gallery-grid { columns: 1; column-gap: .9rem; }
@media (min-width: 620px) { .gallery-grid { columns: 2; } }
@media (min-width: 1020px) { .gallery-grid { columns: 3; } }
.gallery-item { break-inside: avoid; margin: 0 0 .9rem; position: relative; overflow: hidden; background: var(--stone); }
.gallery-item button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-item img { width: 100%; transition: transform 1s var(--ease), opacity .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item[hidden] { display: none; }
.placeholder-note {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem; margin-bottom: 2rem;
  border: 1px dashed rgba(23,23,26,.28); color: var(--text-muted); font-size: 1rem; background: rgba(255,255,255,.6);
}
.placeholder-note strong { color: var(--heading); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(5,5,6,.95); display: none;
  align-items: center; justify-content: center; padding: 4rem 1rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 82vh; max-width: min(1400px, 100%); width: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__caption { position: absolute; bottom: 1.2rem; left: 0; right: 0; text-align: center; font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--silver-light); }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); color: #fff; cursor: pointer; font-size: 1.4rem;
}
.lightbox__btn:hover { background: var(--crimson); border-color: var(--crimson); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  position: relative; margin: 0; padding: 2.4rem 2rem 2rem; background: #fff; border: 1px dashed rgba(26,26,28,.22);
  display: flex; flex-direction: column;
}
.testimonial__badge {
  position: absolute; top: -.75rem; left: 1.6rem; background: var(--text-dark); color: #fff;
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .7rem;
}
.testimonial__mark { font-family: var(--serif); font-size: 4rem; line-height: .6; color: var(--crimson); margin-bottom: .6rem; }
.testimonial blockquote { margin: 0 0 1.6rem; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: #45423d; font-style: normal; }
.testimonial figcaption { margin-top: auto; font-size: .875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dark-muted); }
.testimonial figcaption strong { display: block; color: var(--text-dark); font-weight: 700; letter-spacing: .06em; margin-bottom: .2rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--crimson-deep); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 85% 0%, rgba(176,25,47,.65), transparent 60%), linear-gradient(120deg, #3d0410 0%, #6c0a1b 55%, #8a0f24 100%);
}
.cta-band::after {
  content: ""; position: absolute; right: -6%; top: 50%; width: 520px; height: 520px; transform: translateY(-50%); z-index: -1;
  background: url("../images/brand/mpd-mark.png") center / contain no-repeat; opacity: .045; filter: grayscale(1) brightness(3);
}
.cta-band__inner { display: grid; gap: 2.4rem; align-items: center; padding-top: clamp(4rem, 8vw, 6.5rem); padding-bottom: clamp(4rem, 8vw, 6.5rem); }
@media (min-width: 960px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } }
.cta-band .h2 { color: #fff; margin-bottom: 1rem; }
.cta-band .lead { color: rgba(255,255,255,.92); }
.cta-band .eyebrow { color: rgba(255,255,255,.92); }
.cta-band .eyebrow::before { background: #fff; }
.cta-band__actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
@media (min-width: 960px) { .cta-band__actions { align-items: flex-end; } }
.cta-band .btn { --bg: #fff; --fg: var(--crimson-deep); --bd: #fff; }
.cta-band .btn:hover { --bg: var(--black); --fg: #fff; --bd: var(--black); }
.cta-band__contact { font-size: 1rem; color: rgba(255,255,255,.92); }
.cta-band__contact a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); }

/* ---------- Benjamin Moore block (text only, no third-party logo) ---------- */
.bm { background: var(--ivory); }
.bm__inner {
  position: relative; display: grid; gap: clamp(1.8rem, 4vw, 4rem); align-items: center;
  background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--crimson);
  padding: clamp(2rem, 5vw, 4rem); box-shadow: 0 30px 60px -45px rgba(23,23,26,.35);
}
@media (min-width: 960px) { .bm__inner { grid-template-columns: .9fr 1.1fr; } }
.bm__head .h2 { margin-bottom: 1.6rem; }
.bm__chips { display: flex; gap: 6px; }
.bm__chips span { width: 34px; height: 46px; border: 1px solid rgba(23,23,26,.08); box-shadow: 0 6px 14px -10px rgba(23,23,26,.5); }
.bm__chips span:nth-child(1) { background: #f3efe6; }
.bm__chips span:nth-child(2) { background: #d9d1c3; }
.bm__chips span:nth-child(3) { background: #9aa596; }
.bm__chips span:nth-child(4) { background: #5d6b73; }
.bm__chips span:nth-child(5) { background: #2c3440; }
.bm__chips span:nth-child(6) { background: var(--crimson); }
.bm__body .lead { margin-bottom: 1.8rem; max-width: 62ch; }
.bm__points { display: grid; gap: .9rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .bm__points { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
.bm__points li { display: flex; align-items: center; gap: .75rem; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #2a292d; line-height: 1.45; }
.bm__points svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--crimson); }

/* ---------- Industrial & commercial flooring (commercial.html#flooring) ---------- */
.flooring__intro { align-items: center; }
.jv-note {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: .4rem 0 0;
  padding: .85rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-left: 2px solid var(--crimson);
}
.jv-note__label { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--crimson); }
.jv-note__names { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--heading); }
.jv-note__names i { font-style: normal; font-weight: 600; color: var(--crimson); margin: 0 .2rem; }
.flooring__intro .check-list { margin: 1.6rem 0 2.2rem; }
.flooring__subhead {
  font-family: var(--sans); font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--heading); margin: clamp(3.5rem, 7vw, 5.5rem) 0 1.4rem; display: flex; align-items: center; gap: 1rem;
}
.flooring__subhead::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.sector-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 600px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .sector-grid { grid-template-columns: repeat(4, 1fr); } }
.sector { background: var(--white); padding: 2rem 1.7rem 2.1rem; transition: background .35s var(--ease); }
.sector:hover { background: var(--stone); }
.sector__icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 1.3rem; border: 1px solid var(--silver-line); color: var(--crimson); }
.sector__icon svg { width: 24px; height: 24px; }
.sector h4 { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.sector p { margin: 0; font-size: 1.0625rem; color: var(--text-muted); }
.partner { margin-top: 0; }
.partner__steps { display: grid; gap: 0; counter-reset: none; background: var(--stone); padding: .4rem clamp(1.4rem, 3.5vw, 2.6rem); }
@media (min-width: 900px) { .partner__steps { grid-template-columns: repeat(3, 1fr); gap: 2.4rem; padding: 2.4rem clamp(1.4rem, 3.5vw, 2.6rem); } }
.partner__steps li { padding: 1.6rem 0; border-top: 1px solid rgba(23,23,26,.12); }
.partner__steps li:first-child { border-top: 0; }
@media (min-width: 900px) { .partner__steps li { padding: 0; border-top: 0; } .partner__steps li + li { padding-left: 2.4rem; border-left: 1px solid rgba(23,23,26,.14); } }
.partner__num { display: block; font-family: var(--serif); font-size: 2.3rem; line-height: 1; color: var(--crimson); margin-bottom: .8rem; }
.partner__steps h4 { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.partner__steps p { margin: 0; font-size: 1.0625rem; color: var(--text-muted); }
.flooring__cta {
  margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem 2rem;
  padding: clamp(1.6rem, 3.5vw, 2.4rem) clamp(1.4rem, 3.5vw, 2.6rem); background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--crimson);
}
.flooring__cta-title { font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 700; color: var(--heading); margin: 0 0 .3rem; line-height: 1.2; }
.flooring__cta-text { margin: 0; color: var(--text-muted); }

/* ---------- Residential detail blocks ---------- */
.detail-block + .detail-block { margin-top: clamp(4.5rem, 9vw, 8rem); }
.detail-block .h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1.8rem; }
.tag-list li {
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .5rem .8rem; border: 1px solid var(--line-strong); color: var(--heading); background: rgba(255,255,255,.6);
}

.areas { display: grid; gap: 1px; background: rgba(26,26,28,.14); border: 1px solid rgba(26,26,28,.14); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .areas { grid-template-columns: repeat(4, 1fr); } }
.areas li { background: var(--ivory); padding: 1.6rem 1.4rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--text-dark); display: flex; flex-direction: column; gap: .2rem; }
.areas li span { font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--crimson); }

.standards { display: grid; gap: 1.2rem; counter-reset: std; }
@media (min-width: 760px) { .standards { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 3rem; } }
.standards li { counter-increment: std; display: grid; grid-template-columns: 46px 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line-strong); }
.standards li::before { content: counter(std, decimal-leading-zero); font-family: var(--serif); font-size: 1.5rem; color: var(--crimson); line-height: 1.2; }
.standards h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; margin-bottom: .3rem; }
.standards p { margin: 0; color: var(--text-muted); font-size: 1.0625rem; }

.stat-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 3rem; }
@media (min-width: 760px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-strip li { background: var(--white); padding: 1.6rem 1.4rem; }
.stat-strip strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--heading); margin-bottom: .3rem; }
.stat-strip span { font-size: 1rem; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 980px) { .contact-layout { grid-template-columns: .8fr 1.2fr; } }
.contact-card { padding: 2rem; border: 1px solid var(--line); border-top: 2px solid var(--crimson); background: var(--white); margin-top: 2rem; }
.contact-card dl { margin: 0; display: grid; gap: 1.2rem; }
.contact-card dt { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #45423d; margin-bottom: .2rem; }
.contact-card dd { margin: 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--heading); }
.contact-card dd small { display: block; font-family: var(--sans); font-weight: 400; font-size: .9375rem; color: var(--text-muted); }

.form { background: var(--white); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(23,23,26,.35); padding: clamp(1.6rem, 4vw, 3rem); }
.form__grid { display: grid; gap: 1.3rem; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #2a292d; margin-bottom: .55rem; }
.field label .req { color: var(--crimson); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .85rem 1rem; background: var(--ivory); border: 1px solid rgba(23,23,26,.22);
  border-radius: var(--radius); color: var(--text); font-size: 1.0625rem; transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235b5852' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem;
}
.field input::placeholder, .field textarea::placeholder { color: #6b6762; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--crimson); background: var(--white); box-shadow: 0 0 0 3px rgba(138,15,36,.14); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #b3263c; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; margin-top: 1.8rem; }
.form__note { font-size: .9375rem; color: var(--text-muted); margin: 0; max-width: 42ch; }
.form__status { margin-top: 1.2rem; padding: 1rem 1.2rem; font-size: 1rem; display: none; }
.form__status.is-visible { display: block; }
.form__status--ok { background: rgba(60,140,90,.08); border: 1px solid rgba(60,140,90,.4); color: #1f5c38; }
.form__status--err { background: rgba(138,15,36,.06); border: 1px solid rgba(138,15,36,.4); color: var(--crimson-deep); }
.hp-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); border-top: 3px solid var(--crimson); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; font-size: 1rem; line-height: 1.65; color: #dedcd7; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img { width: 220px; height: auto; margin-bottom: 1.2rem; }
.footer-brand p { max-width: 34ch; }
.footer-title { font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1.2rem; }
.footer-links li + li { margin-top: .55rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .875rem; color: #c9c7c2; }
.footer-bottom a:hover { color: var(--silver-light); }

/* ---------- Reveal animation ---------- */
/* Hidden only while JS has armed the observer (html.reveal-on). Without JS, or with reduced motion,
   everything is visible. The 3s animation is a CSS-only safety net in case the JS fallback never runs. */
.reveal-on .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); animation: revealFailsafe .6s ease 3s forwards; }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; animation: none; }
@keyframes revealFailsafe { to { opacity: 1; transform: none; } }
.reveal-delay-1 { transition-delay: .1s !important; }
.reveal-delay-2 { transition-delay: .2s !important; }
.reveal-delay-3 { transition-delay: .3s !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-on .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Small-screen refinements ---------- */
@media (max-width: 559px) {
  .btn { white-space: normal; text-align: center; }
  .btn-row .btn { width: 100%; }
  .hero__content { padding-bottom: 2rem; }
}
@media (min-width: 1240px) { .hero__trust li { white-space: nowrap; } }
.jv-note__names > span { white-space: nowrap; }
.flooring__cta > div { flex: 1 1 380px; max-width: 640px; }
/* Flooring before/after (side-by-side on desktop, stacked on mobile; works without JS) */
.flooring__intro { align-items: end; }
.ba { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.ba__grid { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); }
@media (min-width: 760px) { .ba__grid { grid-template-columns: 1fr 1fr; } }
.ba__item { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); }
.ba__item img { width: 100%; height: 100%; object-fit: cover; }
.ba__item > picture { width: 100%; height: 100%; }
.ba__item::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.45); pointer-events: none; }
.ba__label {
  position: absolute; left: 1rem; top: 1rem; z-index: 1; background: var(--crimson); color: #fff;
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .6rem .95rem;
}
.ba__caption {
  margin-top: 1rem; display: flex; align-items: flex-start; gap: .8rem;
  font-size: .9375rem; color: var(--text-muted); font-style: normal;
}
.ba__caption::before { content: ""; width: 26px; height: 1px; margin-top: .75em; background: var(--crimson); flex-shrink: 0; }
/* Before/after pair used as the media column of a split section (commercial corridor repaint) */
.ba--split { margin: 0; }
.ba--split .ba__item { aspect-ratio: 3 / 4; }
@media (min-width: 480px) { .ba--split .ba__grid { grid-template-columns: 1fr 1fr; } }
.page-hero__media > picture, .teaser__media > picture { width: 100%; height: 100%; }

/* ---------- Readability (larger body text on desktop; sans for body copy, serif only for headings) ---------- */
@media (min-width: 900px) {
  body { font-size: 1.125rem; }            /* 18px desktop body */
}
@media (max-width: 899px) {
  .hero .eyebrow { color: var(--crimson-deep); }   /* extra contrast where the photo sits closer behind the text */
  .hero .eyebrow::before { background: var(--crimson-deep); }
}
