/* ==========================================================================
   Plymouth Wallpaper Installation — High-Contrast Editorial
   Palette (brief): charcoal #171717 · ivory #F7F4EE · white #FFFFFF ·
   terracotta #A84D37 · soft gray #777777
   Derived AA tints: muted #5E5E5E (on light), #A6A6A6 (on dark),
   terracotta-on-dark #D4927B, error #B3261E.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #171717;
  --ink-2: #202020;
  --paper: #F7F4EE;
  --white: #FFFFFF;
  --clay: #A84D37;
  --clay-deep: #8F3F2C;
  --clay-soft: #D4927B;
  --gray: #777777;
  --text-2: #3A3A3A;
  --muted: #5E5E5E;
  --muted-d: #A6A6A6;
  --error: #B3261E;
  --line: rgba(23, 23, 23, 0.14);
  --line-strong: rgba(23, 23, 23, 0.32);
  --line-d: rgba(247, 244, 238, 0.16);
  --focus: var(--clay);

  --f-display: "Playfair Display", "Playfair", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --header-h: 72px;
  --section-y: clamp(72px, 9vw, 140px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (max-width: 767px) {
  :root { --header-h: 64px; }
}

/* ---------- 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(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

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

a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul,
ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.on-dark { --focus: var(--clay-soft); }

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  background: var(--white);
  color: var(--ink);
  padding: 12px 18px;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 2px solid var(--ink);
}
.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.on-dark { background: var(--ink); color: var(--paper); }

/* ---------- Editorial furniture ---------- */
.eyebrow,
.mono {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
}
.eyebrow { color: var(--muted); }
.on-dark .eyebrow { color: var(--muted-d); }

/* running head at the top of every section, like a magazine folio */
.runhead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  margin-bottom: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.on-dark .runhead { border-top-color: var(--line-d); color: var(--muted-d); }
.runhead .rh-num { color: var(--ink); font-weight: 700; }
.on-dark .runhead .rh-num { color: var(--paper); }
.runhead .rh-fill { flex: 1; height: 1px; }
.runhead .rh-meta { text-align: right; }
@media (max-width: 559px) {
  .runhead .rh-meta { display: none; }
}

.h2 {
  font-size: clamp(2.25rem, 1.35rem + 3vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.lede {
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 34em;
}
.on-dark .lede { color: #D9D5CD; }

.text-link {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.text-link:hover { color: var(--clay); }
.on-dark .text-link:hover { color: var(--clay-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 50px;
  padding: 0 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--clay); color: var(--white); }
.btn--primary:hover { background: var(--clay-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { border-color: rgba(247, 244, 238, 0.55); color: var(--paper); background: transparent; }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--sm { min-height: 42px; padding: 0 1.15rem; font-size: 0.7rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-d);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-mark .bm-tile { fill: var(--paper); transition: fill 0.3s var(--ease); }
.brand-mark .bm-ink { fill: var(--ink); transition: fill 0.3s var(--ease); }
.brand-mark .bm-seam { stroke: var(--ink); stroke-opacity: 0.25; }
.site-header.is-scrolled .brand-mark .bm-tile { fill: var(--ink); }
.site-header.is-scrolled .brand-mark .bm-ink { fill: var(--paper); }
.site-header.is-scrolled .brand-mark .bm-seam { stroke: var(--paper); }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name {
  font-family: var(--f-display);
  font-size: 1.42rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-sub {
  margin-top: 5px;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 30px); }
.nav-desktop a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-desktop a:hover::after,
.nav-desktop a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone {
  display: none;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { text-decoration: underline; text-underline-offset: 4px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle .bars { position: relative; width: 18px; height: 10px; }
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 4.25px; transform: rotate(-45deg); }

@media (max-width: 1099px) {
  .header-cta { display: none; }
}
@media (min-width: 1100px) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }
}
@media (min-width: 1360px) {
  .header-phone { display: inline-block; }
}
@media (max-width: 419px) {
  .menu-toggle .mt-label { display: none; }
  .menu-toggle { padding: 0 12px; }
  .brand-sub { letter-spacing: 0.14em; }
}
@media (max-width: 359px) {
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 1.22rem; }
  .brand-sub { font-size: 0.54rem; letter-spacing: 0.1em; }
}

/* Mobile menu panel (sibling of the header, so position:fixed is viewport-based) */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px var(--gutter) 40px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav ol { counter-reset: mm; border-top: 1px solid var(--line-d); }
.mobile-menu nav li { counter-increment: mm; border-bottom: 1px solid var(--line-d); }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 1.2rem + 3vw, 2.6rem);
  line-height: 1.1;
  text-decoration: none;
}
.mobile-menu nav a::before {
  content: counter(mm, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted-d);
  min-width: 2.2em;
}
.mobile-menu .mm-foot { margin-top: 32px; display: grid; gap: 18px; }
.mobile-menu .mm-contact { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.06em; line-height: 1.9; color: #D9D5CD; }
.mobile-menu .mm-contact a { text-decoration: none; border-bottom: 1px solid var(--line-d); }
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) { animation: mmIn 0.35s var(--ease); }
}
@keyframes mmIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: clamp(36px, 7vw, 56px) var(--gutter) clamp(40px, 7vw, 64px);
}
.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--muted-d);
}
.hero-kicker .dot { width: 6px; height: 6px; background: var(--clay-soft); border-radius: 50%; flex: none; }
.hero-kicker strong { color: var(--paper); font-weight: 600; }

.hero h1 {
  font-size: clamp(2.7rem, 1.25rem + 4.6vw, 6.1rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero h1 .l2 { display: block; font-style: italic; color: #E9E3D8; }
.hero-lede {
  margin-top: 26px;
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.6;
  color: #D9D5CD;
  max-width: 31em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-d);
}
.hero-index a {
  display: block;
  padding: 14px 12px 0 0;
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-d);
  line-height: 1.5;
  transition: color 0.2s var(--ease);
}
.hero-index a span { display: block; color: var(--paper); font-weight: 700; margin-bottom: 4px; }
.hero-index a:hover { color: var(--paper); }

.hero-media {
  position: relative;
  overflow: hidden;
  background: #2a2928;
  aspect-ratio: 4 / 5;
  max-height: 82svh;
  width: 100%;
}
.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}
.hero-media img {
  object-fit: cover;
  object-position: 50% 55%;
}
.hero-media figcaption {
  position: absolute;
  left: 0; bottom: 0;
  max-width: calc(100% - 24px);
  padding: 10px 14px;
  background: rgba(23, 23, 23, 0.86);
  color: #E9E3D8;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}
.hero-media figcaption b { color: var(--paper); font-weight: 700; }

@media (min-width: 600px) and (max-width: 1023px) {
  .hero-media { aspect-ratio: 16 / 11; }
  .hero-media img { object-position: 40% 55%; }
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    min-height: clamp(640px, calc(100svh - var(--header-h)), 1000px);
  }
  .hero-content {
    justify-content: space-between;
    padding: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 64px) 40px max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  }
  .hero-media { aspect-ratio: auto; max-height: none; height: 100%; }
  .hero-media img { object-position: 36% 60%; }
}

/* Hero entrance — progressive, motion-safe */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .l1,
  .hero h1 .l2,
  .hero-lede,
  .hero-actions { animation: rise 0.9s var(--ease) both; }
  .hero h1 .l2 { animation-delay: 0.08s; }
  .hero-lede { animation-delay: 0.16s; }
  .hero-actions { animation-delay: 0.24s; }
  .hero-media img { animation: settle 1.6s var(--ease) both; }
}
.hero h1 .l1 { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.04); } to { transform: scale(1); } }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.services-grid { display: grid; gap: 48px; }
.services-intro .h2 { margin-top: 18px; }
.services-intro .lede { margin-top: 22px; }
.services-intro .intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 32px; }
.svc-list { border-top: 1px solid var(--line-strong); }
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line-strong);
}
.svc-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #E7E2D8;
}
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.svc:hover .svc-media img { transform: scale(1.035); }
.svc-num {
  display: block;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--gray);
}
.svc h3 {
  margin-top: 10px;
  font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.15rem);
  line-height: 1.08;
}
.svc p { margin-top: 12px; color: var(--text-2); max-width: 36em; }
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.svc-tags li { position: relative; padding-left: 12px; }
.svc-tags li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 1px;
  background: var(--clay);
}

@media (min-width: 640px) {
  .svc { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 32px; align-items: start; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); }
  .services-intro { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}

/* ---------- About / craft ---------- */
.about-quote {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.85rem, 1rem + 2.8vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 21ch;
  margin: 0;
  text-wrap: balance;
}
.about-quote::before {
  content: "";
  display: block;
  width: 56px; height: 3px;
  background: var(--clay-soft);
  margin-bottom: 28px;
}
.about-grid {
  display: grid;
  gap: 48px;
  margin-top: clamp(48px, 7vw, 96px);
}
.about-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-figure figcaption {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-d);
  line-height: 1.6;
}
.about-copy .h2 { font-size: clamp(1.9rem, 1.3rem + 1.9vw, 3rem); }
.about-copy > p { margin-top: 20px; color: #D9D5CD; max-width: 38em; }
.principles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 36px;
  border-top: 1px solid var(--line-d);
}
.principles li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-d);
}
.principles .p-num {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--clay-soft);
}
.principles h3 {
  margin-top: 8px;
  font-family: var(--f-body);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}
.principles p { margin-top: 6px; font-size: 0.96rem; color: var(--muted-d); }
@media (min-width: 640px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .about-figure { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* ---------- Gallery ---------- */
.gallery { background: var(--white); }
.gallery-head { display: grid; gap: 22px; margin-bottom: clamp(36px, 5vw, 64px); }
.gallery-head .h2 { max-width: 14ch; }
.gallery-head .note { color: var(--muted); max-width: 30em; font-size: 0.98rem; }
@media (min-width: 900px) {
  .gallery-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end; }
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 20px;
}
.g-item { display: flex; flex-direction: column; min-width: 0; }
.g-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #E7E2D8;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.g-open picture,
.g-open img { width: 100%; height: 100%; }
.g-open img { object-fit: cover; transition: transform 0.8s var(--ease), filter 0.4s var(--ease); }
.g-open:hover img { transform: scale(1.03); }
.g-open::after {
  content: "View";
  position: absolute;
  right: 12px; top: 12px;
  padding: 6px 10px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.g-open:hover::after,
.g-open:focus-visible::after { opacity: 1; transform: none; }
.g-item figcaption {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
.g-item figcaption .fig { color: var(--ink); font-weight: 700; white-space: nowrap; }

@media (min-width: 600px) and (max-width: 1023px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-item.g-1, .g-item.g-8 { grid-column: 1 / -1; }
  .g-item.g-1 .g-open, .g-item.g-8 .g-open { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: clamp(92px, 8.4vw, 124px);
    gap: 34px 22px;
  }
  .g-item .g-open { aspect-ratio: auto; flex: 1; }
  .g-1 { grid-column: 1 / 8;  grid-row: span 5; }
  .g-2 { grid-column: 8 / 13; grid-row: span 3; }
  .g-3 { grid-column: 8 / 13; grid-row: span 2; }
  .g-4 { grid-column: 1 / 5;  grid-row: span 3; }
  .g-5 { grid-column: 5 / 9;  grid-row: span 3; }
  .g-6 { grid-column: 9 / 13; grid-row: span 3; }
  .g-7 { grid-column: 1 / 6;  grid-row: span 3; }
  .g-8 { grid-column: 6 / 13; grid-row: span 3; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(17, 17, 17, 0.96);
  color: var(--paper);
  --focus: var(--clay-soft);
}
.lightbox[hidden] { display: none; }
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-d);
}
.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(8px, 6vw, 96px);
  min-height: 0;
}
.lb-stage picture { max-width: 100%; max-height: 100%; display: flex; }
.lb-stage img { max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; }
.lb-caption {
  padding: 14px var(--gutter) 22px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D9D5CD;
}
.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(247, 244, 238, 0.4);
  border-radius: 50%;
  background: rgba(23, 23, 23, 0.6);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lb-btn:hover { background: var(--paper); color: var(--ink); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: clamp(8px, 2vw, 28px); }
.lb-next { right: clamp(8px, 2vw, 28px); }

/* ---------- Process ---------- */
.process { background: var(--paper); }
.process-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 80px); }
.process-head .h2 { max-width: 15ch; }
@media (min-width: 900px) {
  .process-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end; }
}
.steps { display: grid; grid-template-columns: minmax(0, 1fr); }
.step {
  position: relative;
  padding: 0 0 36px 34px;
}
/* measuring-tape rule, vertical on small screens */
.step::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 12px;
  border-left: 1px solid var(--ink);
  background:
    repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 12px) left top / 6px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 60px) left top / 12px 100% no-repeat;
}
.step::after {
  content: "";
  position: absolute;
  left: -5px; top: 6px;
  width: 11px; height: 11px;
  background: var(--clay);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--paper);
}
.step-num {
  font-family: var(--f-display);
  font-size: clamp(3rem, 2rem + 3vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.step h3 { margin-top: 16px; font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.8rem); }
.step p { margin-top: 10px; color: var(--text-2); max-width: 28em; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; padding-top: 46px; position: relative; }
  .steps::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 18px;
    border-top: 1px solid var(--ink);
    background:
      repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 12px) left top / 100% 7px no-repeat,
      repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 96px) left top / 100% 16px no-repeat;
  }
  .step { padding: 0; }
  .step::before { display: none; }
  .step::after { left: 0; top: -52px; box-shadow: 0 0 0 4px var(--paper); }
}

/* ---------- Service area ---------- */
.area-grid { display: grid; gap: 48px; }
.area-title {
  font-size: clamp(2.6rem, 1.3rem + 5vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.area-title em { display: block; color: #E9E3D8; }
.area-copy { margin-top: 30px; display: grid; gap: 18px; color: #D9D5CD; max-width: 36em; }
.area-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.plate {
  border: 1px solid var(--line-d);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.plate-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-d);
}
.plate-row + .plate-row { border-top: 1px solid var(--line-d); }
.plate-row b { color: var(--paper); font-weight: 600; text-align: right; }
.plate-field {
  position: relative;
  min-height: 300px;
  border-top: 1px solid var(--line-d);
  border-bottom: 1px solid var(--line-d);
  background:
    linear-gradient(var(--line-d), var(--line-d)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--line-d), var(--line-d)) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(to right, rgba(247, 244, 238, 0.06) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, rgba(247, 244, 238, 0.06) 0 1px, transparent 1px 40px);
  overflow: hidden;
}
.plate-field .ring {
  position: absolute;
  left: 50%; top: 50%;
  border: 1px solid rgba(212, 146, 123, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.plate-field .ring-1 { width: 90px; height: 90px; }
.plate-field .ring-2 { width: 200px; height: 200px; border-color: rgba(247, 244, 238, 0.18); }
.plate-field .ring-3 { width: 340px; height: 340px; border-color: rgba(247, 244, 238, 0.1); }
.plate-field .pin {
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  background: var(--clay);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(168, 77, 55, 0.25);
}
.plate-field .pin-label {
  position: absolute;
  left: calc(50% + 18px); top: calc(50% + 12px);
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 4px 6px;
  white-space: nowrap;
}
.plate-field .compass {
  position: absolute;
  right: 16px; top: 14px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--muted-d);
}
@media (min-width: 1024px) {
  .area-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
}

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-grid { display: grid; gap: 48px; }
.contact-intro .h2 { margin-top: 0; }
.contact-intro .lede { margin-top: 22px; }
.contact-list { margin-top: 36px; border-top: 1px solid var(--line-strong); }
.contact-list > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-strong);
}
.contact-list dt {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.contact-list dd { margin: 0; font-size: 1.02rem; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.contact-list a:hover { color: var(--clay); border-color: var(--clay); }
.contact-list .big { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.2; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(22px, 4vw, 44px);
  position: relative;
}
.form-card::before {
  content: "";
  position: absolute;
  left: -1px; top: -1px;
  width: 72px; height: 3px;
  background: var(--clay);
}
.form-card .form-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.form-card .form-sub { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

#wallpaperContactForm { display: block; margin-top: 26px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .field--full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; min-width: 0; }
.field label {
  margin-bottom: 8px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.field label .opt { color: var(--muted); font-weight: 500; letter-spacing: 0.08em; }
.field label .req { color: var(--clay); }
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid var(--gray);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6B6B6B; opacity: 1; }
.field input:hover,
.field textarea:hover { border-color: var(--ink); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(168, 77, 55, 0.35);
}
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; }
.field .hint { margin-top: 6px; font-size: 0.82rem; color: var(--muted); }

/* Messages injected by the supplied form-validation.js (class .error-message).
   The script sets an inline #ff6b6b colour; lift it to an AA red on white. */
.error-message {
  color: var(--error) !important;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.86rem !important;
  line-height: 1.4;
}
.field input[style*="255, 107, 107"],
.field textarea[style*="255, 107, 107"],
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error) !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-foot { margin-top: 24px; display: grid; gap: 14px; }
.form-note { font-size: 0.84rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-error {
  padding: 12px 14px;
  border-left: 3px solid var(--error);
  background: #FBEDEB;
  color: #7A1A14;
}
.form-status.is-info {
  padding: 12px 14px;
  border-left: 3px solid var(--gray);
  background: #F2F0EB;
  color: var(--text-2);
}

#form-success {
  display: none;
  margin-top: 26px;
  padding: 28px;
  border: 1px solid var(--ink);
  background: var(--paper);
}
#form-success:focus { outline: 2px solid var(--clay); outline-offset: 3px; }
#form-success h3 { font-size: 1.8rem; }
#form-success p { margin-top: 10px; color: var(--text-2); }
#form-success .tick {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 16px;
}

/* No-JS fallback notices (send.php redirects to #form-sent / #form-error) */
.nojs-notice { display: none; margin-top: 18px; padding: 14px 16px; font-size: 0.95rem; }
.nojs-notice:target { display: block; }
#form-sent { border-left: 3px solid var(--ink); background: #F2F0EB; }
#form-error { border-left: 3px solid var(--error); background: #FBEDEB; color: #7A1A14; }

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
}

/* ---------- Location / map ---------- */
.location { background: var(--white); }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--ink); }
.map-frame {
  position: relative;
  height: clamp(340px, 52vw, 460px);
  background:
    repeating-linear-gradient(45deg, #EFEBE3 0 10px, #F7F4EE 10px 20px);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-frame .map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.map-card { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.map-card h3 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem); }
.map-card address { font-size: 1.1rem; line-height: 1.5; }
.map-card .map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.map-card .map-meta { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; line-height: 1.9; color: var(--muted-d); }
.map-card .map-meta a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line-d); }
@media (min-width: 1024px) {
  .map-wrap { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .map-frame { height: 520px; }
  .map-card { justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(64px, 8vw, 110px); }
.footer-wordmark {
  font-family: var(--f-display);
  font-size: clamp(3rem, 1rem + 9vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
}
.footer-wordmark em { color: #E9E3D8; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line-d);
}
.footer-grid h2 {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-d);
  margin-bottom: 16px;
}
.footer-grid p,
.footer-grid li,
.footer-grid address { font-size: 0.95rem; line-height: 1.8; color: #D9D5CD; }
.footer-grid a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.footer-grid a:hover { color: var(--paper); border-bottom-color: currentColor; }
.footer-colophon { font-family: var(--f-mono); font-size: 0.74rem !important; letter-spacing: 0.04em; color: var(--muted-d) !important; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-block: 22px 28px;
  border-top: 1px solid var(--line-d);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-d);
}
.footer-bottom a { text-decoration: none; color: var(--paper); }
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr); }
}

/* ---------- Scroll reveal (progressive enhancement) ----------
   Content is visible by default. main.js adds .js-reveal to <html> only when
   IntersectionObserver exists and motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-menu, .lightbox, .hero-actions, .map-frame, #wallpaperContactForm, .skip-link { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .on-dark, .hero, .site-footer { background: #fff !important; color: #000 !important; }
  body { background: #fff; }
}

/* ---------- Small-screen refinements ---------- */
@media (max-width: 599px) {
  .hero-kicker .dot { display: none; }
  .hero-kicker { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero-index { grid-template-columns: minmax(0, 1fr); }
  .hero-index a { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-d); }
  .hero-index a span { margin: 0; min-width: 9.5em; }
}
@media (max-width: 899px) {
  .step:last-child { padding-bottom: 0; }
}
