:root {
  --ink: #282827;
  --ink-soft: #55534f;
  --muted: #8a8780;
  --paper: #f6f3ef;
  --white: #ffffff;
  --light: #ece7e0;
  --dark: #262625;
  --footer: #2a2a28;
  --line: #ddd6cc;
  --accent: #b08d6a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.label {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

/* Header: menu button left, wordmark centred, enquire right.
   Transparent over the hero, solid once scrolled. */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: var(--paper);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.solid {
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: var(--line);
}

.site-header .inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
  padding: 0 clamp(16px, 2.6vw, 36px);
}

.menu-btn {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  color: inherit;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

.burger {
  position: relative;
  width: 26px;
  height: 1px;
  background: currentColor;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 1px;
  background: currentColor;
}

.burger::before {
  top: -8px;
}

.burger::after {
  top: 8px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}

.wordmark-main {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  margin-right: -0.14em;
}

.wordmark-sub {
  font-family: var(--sans);
  font-size: 0.5rem;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  margin-top: 0.45rem;
}

.header-cta {
  justify-self: end;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
}

/* Slide-in menu */

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20, 20, 19, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.menu-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  padding: 1.6rem clamp(24px, 4vw, 56px) 2.5rem;
  overflow-y: auto;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.4s ease, visibility 0.4s;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  visibility: visible;
}

body.menu-open .menu-panel {
  transform: none;
  visibility: visible;
}

.menu-close {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-close .x {
  position: relative;
  width: 22px;
  height: 22px;
}

.menu-close .x::before,
.menu-close .x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -2px;
  width: 26px;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

.menu-close .x::after {
  transform: rotate(-45deg);
}

.menu-links {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
}

.menu-links a {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.menu-links a:hover,
.menu-links a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.menu-foot {
  margin-top: auto;
  padding-top: 3rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-foot .label {
  margin-bottom: 0.7rem;
  color: var(--ink);
}

.menu-foot a {
  display: table;
  margin-bottom: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Links and buttons */

.more {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 1rem 1.3rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-light {
  color: var(--paper);
  border-color: var(--paper);
}

.btn-light:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

/* Hero: a wall under raking light */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(76vh, 720px);
  padding: 6rem 0;
  color: var(--paper);
  background:
    radial-gradient(ellipse 70% 90% at 50% -20%, rgba(255, 255, 255, 0.42), transparent 70%),
    radial-gradient(ellipse 40% 60% at 8% 0%, rgba(255, 248, 238, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 60% at 92% 0%, rgba(255, 248, 238, 0.22), transparent 70%),
    linear-gradient(180deg, #7b7872 0%, #4a4845 55%, #2e2d2b 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

/* Photo heroes: image fills the section, darkened so white text stays legible. */

.hero-photo {
  background: #2e2d2b;
}

.hero-photo::after {
  background-image: none;
  background: linear-gradient(180deg, rgba(20, 20, 19, 0.55) 0%, rgba(20, 20, 19, 0.35) 45%, rgba(20, 20, 19, 0.55) 100%);
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
}

.hero-photo .wrap {
  z-index: 2;
}

.page-hero.hero-photo {
  min-height: min(62vh, 580px);
  padding-top: 7rem;
}

.page-hero.hero-photo::after {
  background: linear-gradient(180deg, rgba(20, 20, 19, 0.65) 0%, rgba(20, 20, 19, 0.5) 50%, rgba(20, 20, 19, 0.65) 100%);
}

/* Heading at the foot of the photo, leaving the subject clear. */

.page-hero.hero-photo.hero-bottom {
  align-items: flex-end;
  text-align: left;
  min-height: min(82vh, 760px);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.page-hero.hero-bottom::after {
  background: linear-gradient(180deg, rgba(20, 20, 19, 0.45) 0%, rgba(20, 20, 19, 0) 22%, rgba(20, 20, 19, 0) 45%, rgba(20, 20, 19, 0.82) 100%);
}

.hero-bottom .wrap {
  width: 100%;
}

.hero.hero-bottom h1,
.hero.hero-bottom p {
  margin-left: 0;
  margin-right: 0;
}

.hero.hero-bottom h1 {
  max-width: 16em;
}

.hero-photo h1,
.hero-photo p,
.hero-photo .label {
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.hero .label {
  color: rgba(255, 255, 255, 0.8);
}

.hero h1 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.6vw, 3rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 auto;
  max-width: 22em;
}

.hero p {
  max-width: 34rem;
  margin: 1.6rem auto 0;
  color: rgba(255, 255, 255, 0.86);
}

.hero .btn-row {
  justify-content: center;
}

.page-hero {
  min-height: 0;
  padding: clamp(5rem, 11vw, 8rem) 0;
}

/* Sections */

.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.section-light {
  background: var(--light);
}

.section-dark {
  background: var(--dark);
  color: var(--paper);
}

.section-dark .label {
  color: #a9a6a0;
}

.section-dark p,
.section-dark .lede {
  color: #e6e4df;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.split-top {
  align-items: start;
}

.split p {
  color: var(--ink-soft);
}

.section-dark .split p {
  color: #e6e4df;
}

.intro {
  max-width: 34rem;
}

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

/* Display heading and service index (rule lines with arrows) */

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 2.5rem;
}

.index-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.index-list a,
.index-list span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.index-list a::after {
  content: "\2192";
  font-size: 0.85rem;
  letter-spacing: 0;
  transition: transform 0.2s;
}

.index-list a:hover::after {
  transform: translateX(4px);
}

/* In-page photographs */

.photo {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--light);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-wide {
  aspect-ratio: 4 / 3;
}

/* Four-column service cards */

.cols-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.cols-4 h3 {
  margin: 1.4rem 0 0.6rem;
}

.cols-4 p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

/* Spec grid (dark section) */

.spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  padding: 2rem 0;
  margin: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.spec .label {
  margin-bottom: 0.5rem;
}

.spec p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0;
}

/* Process */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

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

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.steps p {
  font-size: 1rem;
  color: var(--ink-soft);
}

/* Lists */

.rule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.rule-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

/* FAQ */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 300;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
}

/* Estimate band */

.estimate h2 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  max-width: 11em;
}

.estimate .contact-lines {
  font-size: 1.3rem;
  margin: 1.5rem 0 0;
}

.contact-lines a {
  text-decoration: none;
}

.contact-lines a:hover {
  color: var(--accent);
}

/* Contact page */

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  border-top: 1px solid var(--line);
}

.contact-details li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-details .label {
  margin-bottom: 0.3rem;
}

.contact-details a {
  font-size: 1.3rem;
  text-decoration: none;
}

/* Footer */

.site-footer {
  background: var(--footer);
  color: #e6e4df;
  padding: 5rem 0 2.2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 300;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 1fr;
  gap: 1.5rem 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-mark {
  font-family: var(--serif);
  font-size: 3.6rem;
  font-weight: 500;
  line-height: 0.9;
  color: #f1efea;
}

.footer-grid h4 {
  margin: 0 0 1.2rem;
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a9a6a0;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.7rem;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.6rem;
  font-size: 0.75rem;
  color: #c9c6bf;
}

/* Responsive */

@media (max-width: 980px) {
  .cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-mark {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .split,
  .spec {
    grid-template-columns: 1fr;
  }

  .photo {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 19px;
  }

  .menu-btn .menu-word,
  .header-cta {
    display: none;
  }

  .site-header .inner {
    min-height: 72px;
  }

  .wordmark-main {
    font-size: 1.55rem;
  }

  .cols-4,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .btn-row .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
