/* Mobile first: base styles are the phone layout; (min-width: 768px) adds the desktop one. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #f6f3ee;
  --stone: #ebe5dc;
  --ink: #1d1c1a;
  --muted: #5f5a53;
  --bronze: #8a6a45;
  --line: rgb(29 28 26 / 12%);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 1.25rem;
  --section: 4.5rem;
  --header: 4.5rem;
  --radius: 4px;
}

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

/* `hidden` wins over component display rules. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

html[data-menu-open] body { overflow: hidden; }

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

a { color: inherit; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.6rem, 9vw, 5.25rem); }

h2 { font-size: clamp(2rem, 6vw, 3.25rem); }

h3 { font-size: 1.5rem; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.container { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 0.75rem 1rem; background: var(--ink); color: var(--paper); }

.skip:focus { left: 0.5rem; top: 0.5rem; }

.eyebrow {
  margin-bottom: 1rem;
  color: var(--bronze);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow--light { color: rgb(255 255 255 / 85%); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.button--small { min-height: 2.75rem; padding: 0.5rem 1.125rem; font-size: 0.875rem; }

.button--ghost { border-color: rgb(255 255 255 / 70%); background: transparent; color: #fff; }

.button--light { border-color: var(--paper); background: var(--paper); color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentcolor;
  align-self: flex-start;
}

.link-arrow::after { content: "→"; transition: transform 0.2s; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

/* The blur sits on a pseudo-element: on the header itself it would trap the fixed phone menu inside the bar. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(246 243 238 / 92%);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}

.header[data-scrolled] { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.header__logo { display: block; position: relative; z-index: 2; }

.header__logo img { width: auto; height: 2.5rem; }

.menu-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin-right: -0.5rem;
  padding: 0 0.5rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 0.875rem var(--sans);
  cursor: pointer;
}

.menu-button__bars, .menu-button__bars::before { display: block; width: 1.25rem; height: 1px; background: currentcolor; transition: transform 0.25s; }

.menu-button__bars { position: relative; transform: translateY(-3px); }

.menu-button__bars::before { content: ""; position: absolute; top: 6px; }

[aria-expanded="true"] .menu-button__bars { transform: rotate(45deg); }

[aria-expanded="true"] .menu-button__bars::before { transform: translateY(-6px) rotate(-90deg); }

/* Phone menu: a full-screen sheet under the header bar. */
.nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: calc(var(--header) + 2rem) max(var(--gutter), env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: var(--paper);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s, visibility 0s 0.25s;
}

html[data-menu-open] .nav { visibility: visible; opacity: 1; transition: opacity 0.25s; }

.nav__links a { display: block; padding: 0.5rem 0; font: 500 2.25rem/1.2 var(--serif); text-decoration: none; }

.nav__cta { align-self: flex-start; }

.nav__contact { margin-top: auto; color: var(--muted); line-height: 2; }

.nav__contact a { text-decoration: none; }

/* Hero */
.hero { position: relative; display: grid; min-height: min(88svh, 52rem); color: #fff; isolation: isolate; }

.hero__image, .hero__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero__image { z-index: -1; }

.hero__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 10%) 20%, rgb(0 0 0 / 70%) 100%); }

.hero__content {
  align-self: end;
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding: 6rem max(var(--gutter), env(safe-area-inset-right)) 3rem max(var(--gutter), env(safe-area-inset-left));
}

.hero__lead { max-width: 34rem; margin-top: 1.25rem; font-size: 1.0625rem; color: rgb(255 255 255 / 88%); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Facts */
.facts { border-bottom: 1px solid var(--line); }

.facts__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; padding-block: 2.5rem; }

.facts strong { display: block; font: 500 1.5rem/1.2 var(--serif); }

.facts span { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }

/* Text beside a photo */
.split { display: grid; gap: 2.5rem; padding-block: var(--section); }

.split + .split { padding-top: 0; }

.split__image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.split__text { display: flex; flex-direction: column; gap: 1.25rem; }

.split__text p:not(.eyebrow) { color: var(--muted); }

.split__text .eyebrow { margin-bottom: -0.25rem; }

/* Top of inner pages */
.page-hero { display: grid; gap: 2.5rem; padding-block: 3rem var(--section); }

.page-hero__text { display: flex; flex-direction: column; gap: 1.25rem; align-self: center; }

.page-hero__text .eyebrow { margin-bottom: -0.25rem; }

.page-hero h1, .page-intro h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); }

.page-hero__lead { display: flex; flex-direction: column; gap: 1rem; color: var(--muted); font-size: 1.0625rem; }

.page-hero__image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.page-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; padding-block: 3rem var(--section); }

.page-intro h1 { max-width: 52rem; }

.page-intro .eyebrow { margin-bottom: -0.25rem; }

.page-intro__lead { max-width: 40rem; color: var(--muted); font-size: 1.0625rem; }

/* Short points side by side */
.features { padding-block: var(--section); }

.features--stone { background: var(--stone); }

.feature-list { display: grid; gap: 2rem; }

.feature-list li { padding-top: 1.25rem; border-top: 1px solid var(--line); }

.feature-list p { margin-top: 0.5rem; color: var(--muted); }

/* What a service includes */
.checklist { padding-block: var(--section); background: var(--stone); }

.features--stone + .checklist, .checklist + .features--stone { padding-top: 0; }

.checklist__inner { display: grid; gap: 2rem; }

.checklist__intro { margin-top: 1.25rem; max-width: 30rem; color: var(--muted); }

.checklist__items { display: grid; gap: 0.75rem; }

.checklist__items li { position: relative; padding-left: 1.75rem; }

.checklist__items li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.75rem; height: 0.4rem; border-left: 1.5px solid var(--bronze); border-bottom: 1.5px solid var(--bronze); transform: rotate(-45deg); }

.checklist__note { margin-top: 1.5rem; color: var(--muted); font-size: 0.875rem; }

/* Contact */
.contact { display: grid; gap: 3rem; padding-bottom: var(--section); }

.contact__ways { display: flex; flex-direction: column; gap: 1rem; }

.contact__way { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }

.contact__way span { color: var(--muted); font-size: 0.875rem; }

.contact__way strong { font: 500 1.25rem/1.3 var(--sans); overflow-wrap: anywhere; }

.contact__facts { display: grid; gap: 1.25rem; margin: 1rem 0 0; }

.contact__facts dt { color: var(--bronze); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }

.contact__facts dd { margin: 0.25rem 0 0; }

.contact__enquiry { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; padding: 2rem 1.5rem; background: var(--stone); border-radius: var(--radius); }

.contact__enquiry p { color: var(--muted); }

.contact__enquiry .button { margin-top: 0.5rem; }

/* Enquiry form */
.enquiry { display: grid; gap: 1.25rem; width: 100%; }

.field { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }

.field label { font-size: 0.875rem; font-weight: 500; }

.field__optional { color: var(--muted); font-weight: 400; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid rgb(29 28 26 / 22%);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
}

.field textarea { resize: vertical; min-height: 8rem; }

.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--bronze); outline-offset: 0; border-color: transparent; }

.field [aria-invalid] { border-color: #a3402d; }

.field__error { min-height: 0; color: #a3402d; font-size: 0.8125rem; }

.field__error:empty { display: none; }

.enquiry__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.enquiry__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.enquiry__actions .button { margin-top: 0; }

.enquiry__actions .button:disabled { opacity: 0.6; cursor: progress; }

.enquiry__status { color: #a3402d; font-size: 0.875rem; }

.enquiry__note { font-size: 0.875rem; }

.enquiry__sent { display: flex; flex-direction: column; gap: 0.75rem; }

.enquiry__sent h3 { font-size: 1.75rem; }

/* Section headings */
.section-head { margin-bottom: 2.5rem; }

.section-head--row { display: flex; flex-direction: column; gap: 1rem; }

/* Services */
.services { padding-block: var(--section); background: var(--stone); }

.cards { display: grid; gap: 2.5rem; }

.card { position: relative; display: flex; flex-direction: column; gap: 0.625rem; }

.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 0.625rem; }

.card h3 a { text-decoration: none; }

/* The whole card is the link's target. */
.card h3 a::after { content: ""; position: absolute; inset: 0; }

.card p { color: var(--muted); }

/* Process */
.process { padding-block: var(--section); }

.steps { display: grid; gap: 2rem; counter-reset: step; }

.steps li { padding-top: 1.25rem; border-top: 1px solid var(--line); counter-increment: step; }

.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 0.75rem; color: var(--bronze); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; }

.steps p { margin-top: 0.5rem; color: var(--muted); }

/* Recent work */
.work { padding-bottom: var(--section); }

.work + .work { margin-top: calc(var(--section) * -0.4); }

.section-head__text { max-width: 36rem; margin-top: 1rem; color: var(--muted); }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.gallery li:first-child, .gallery--4 li:last-child { grid-column: 1 / -1; }

.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

.gallery li:first-child img, .gallery--4 li:last-child img { aspect-ratio: 4 / 3; }

/* Call to action */
.cta { padding-block: var(--section); background: var(--ink); color: var(--paper); }

.cta__inner { display: flex; flex-direction: column; gap: 1.25rem; }

.cta p { max-width: 34rem; color: rgb(246 243 238 / 75%); }

.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.75rem; }

.cta__phone { display: inline-flex; align-items: center; min-height: 2.75rem; color: rgb(246 243 238 / 85%); }

/* Footer */
.footer { padding-block: 3.5rem max(2rem, env(safe-area-inset-bottom)); background: #141311; color: rgb(246 243 238 / 70%); font-size: 0.9375rem; }

.footer__grid { display: grid; gap: 2rem; }

.footer__logo { width: auto; height: 3.5rem; margin-bottom: 1rem; filter: invert(1); opacity: 0.9; }

.footer a { display: inline-block; padding-block: 0.375rem; text-decoration: none; color: var(--paper); }

.footer__links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }

.nav__links a[aria-current] { color: var(--bronze); }

.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(246 243 238 / 12%); font-size: 0.8125rem; }

.footer__legal a { padding-block: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(246 243 238 / 35%); }

/* Pointer devices get hover feedback; touch never depends on it. */
@media (hover: hover) {
  .button:hover { background: transparent; color: var(--ink); }
  .button--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
  .button--light:hover { background: transparent; color: var(--paper); }
  .link-arrow:hover::after { transform: translateX(4px); }
  .card img { transition: opacity 0.3s; }
  .card:hover img { opacity: 0.88; }
  .nav__links a:hover, .footer a:hover { color: var(--bronze); }
}

@media (min-width: 768px) {
  :root { --gutter: 2.5rem; --section: 7rem; --header: 5.5rem; }

  .header__logo img { height: 3rem; }

  .menu-button { display: none; }

  .nav { position: static; flex-direction: row; align-items: center; gap: 2.5rem; padding: 0; background: none; visibility: visible; opacity: 1; transition: none; }

  .nav__links { display: flex; gap: 2rem; }

  .nav__links a { padding: 0.5rem 0; font: 500 0.9375rem var(--sans); }

  .nav__contact { display: none; }

  .hero { min-height: min(86vh, 56rem); }

  .hero__content { padding-bottom: 5rem; }

  .hero__image::after { background: linear-gradient(90deg, rgb(0 0 0 / 60%) 0%, rgb(0 0 0 / 15%) 60%, transparent 100%), linear-gradient(180deg, transparent 50%, rgb(0 0 0 / 35%) 100%); }

  .hero__lead { font-size: 1.1875rem; }

  .facts__list { grid-template-columns: repeat(4, 1fr); padding-block: 3rem; }

  .split { grid-template-columns: 5fr 6fr; align-items: center; gap: 6rem; }

  .split--reverse { grid-template-columns: 6fr 5fr; }

  .split__image { aspect-ratio: 4 / 5; }

  .split--reverse .split__image { order: 2; }

  .page-hero { grid-template-columns: 1fr 1fr; gap: 4rem; padding-top: 4rem; }

  .page-hero + .features:not(.features--stone), .page-hero + .split { padding-top: calc(var(--section) * 0.5); }

  .page-intro { padding-top: 5rem; }

  .feature-list { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.5rem; }

  .checklist__inner { grid-template-columns: 5fr 6fr; gap: 6rem; }

  .checklist__items { grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }

  .contact { grid-template-columns: 2fr 3fr; gap: 4rem; }

  .contact__enquiry { padding: 3rem; }

  .enquiry { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }

  .field--wide { grid-column: 1 / -1; }

  .section-head { margin-bottom: 3.5rem; }

  .section-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 3.5rem 2rem; }

  .card img { aspect-ratio: 4 / 3; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }

  .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; }

  .gallery li:first-child { grid-column: 1; grid-row: 1 / span 2; }

  .gallery li:first-child img { aspect-ratio: auto; }

  .gallery--4 li:last-child { grid-column: 2 / span 2; }

  .gallery--4 li:last-child img { aspect-ratio: 2 / 1; }

  .gallery--3 { grid-template-columns: 2fr 1fr; }

  /* The large photo sets the height; the two beside it fill their half. */
  .gallery--3 li:first-child img { aspect-ratio: 4 / 3; }

  .gallery--3 li:not(:first-child) { position: relative; }

  .gallery--3 li:not(:first-child) img { position: absolute; inset: 0; aspect-ratio: auto; }

  .cta__inner { align-items: center; text-align: center; }

  .cta__actions { justify-content: center; }

  .footer__grid { grid-template-columns: 2fr 1.5fr 1fr 1fr; gap: 3rem; }

  .footer__links { flex-direction: column; }
}

@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
