/* ===========================================================
   Metro Design & Build — Warm Editorial design system (v2)
   Flat colour only. No gradients. Source: .stitch/DESIGN.md
   =========================================================== */

:root {
  --canvas: #f4f1ea;
  --canvas-2: #ebe5da;
  --surface: #ffffff;
  --ink: #211e19;
  --muted: #6e665a;
  --clay: #9c6b43;
  --clay-soft: #b98a5f;
  --deep: #1c1916;
  --deep-text: #ede7dc;
  --deep-muted: #b3a896;
  --line: rgba(33, 30, 25, 0.14);
  --line-soft: rgba(33, 30, 25, 0.08);
  --line-deep: rgba(237, 231, 220, 0.16);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.4rem);
  --shadow: 0 18px 40px rgba(33, 30, 25, 0.10);
  --shadow-lift: 0 26px 60px rgba(33, 30, 25, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  color: inherit;
}

.container {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1.1rem;
}

.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

.sr-only {
  position: absolute; 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: 1rem; top: -3.5rem; z-index: 999;
  background: var(--ink); color: var(--canvas);
  padding: 0.7rem 1rem; border-radius: 999px;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 50px; padding: 0 1.5rem;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.02em;
  transition: transform 220ms var(--ease), background-color 220ms var(--ease),
    color 220ms var(--ease), border-color 220ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--canvas); }
.btn-primary:hover { background: var(--clay); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--canvas); }
.on-dark .btn-primary { background: var(--canvas); color: var(--ink); }
.on-dark .btn-primary:hover { background: var(--clay); color: var(--canvas); }
.on-dark .btn-outline { border-color: var(--deep-muted); color: var(--deep-text); }
.on-dark .btn-outline:hover { background: var(--deep-text); color: var(--deep); }

.btn-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform 220ms var(--ease), background-color 220ms var(--ease), color 220ms var(--ease);
}
.btn-arrow:hover { background: var(--ink); color: var(--canvas); transform: rotate(45deg); }

.textlink {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; color: var(--clay);
  border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease);
}
.textlink:hover { border-color: var(--clay); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color 280ms var(--ease), box-shadow 280ms var(--ease),
    border-color 280ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 84px;
}
.brand { display: grid; line-height: 1; }
.brand-mark {
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: 1.5rem; letter-spacing: 0.02em;
}
.brand-tag {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--muted); margin-top: 0.25rem;
}
/* light text variant when header sits over a dark hero */
.site-header:not(.is-scrolled) .over-hero .brand-mark { color: var(--canvas); }
.site-header:not(.is-scrolled) .over-hero .brand-tag { color: rgba(255,255,255,0.7); }
.site-header:not(.is-scrolled) .over-hero .nav a { color: rgba(255,255,255,0.86); }
.site-header:not(.is-scrolled) .over-hero .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.site-header:not(.is-scrolled) .over-hero .btn-outline:hover { background: #fff; color: var(--ink); }
.site-header:not(.is-scrolled) .over-hero .nav-toggle { color: #fff; border-color: rgba(255,255,255,0.5); }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  transition: color 200ms var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--clay); }
.header-actions { display: flex; align-items: center; gap: 0.8rem; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 7rem 0 2.5rem; overflow: hidden;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: rgba(20, 17, 14, 0.42);
}
.hero-inner {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 2rem; align-items: end; width: 100%;
}
.hero-title {
  font-size: clamp(3.2rem, 9vw, 7.5rem); font-weight: 500;
  letter-spacing: -0.02em; max-width: 12ch;
}
.hero-eyebrow { color: #fff; opacity: 0.85; }
.hero-sub { font-size: 1.12rem; max-width: 46ch; margin: 1.4rem 0 2rem; color: rgba(255,255,255,0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-aside { display: grid; gap: 1.2rem; justify-items: end; }
.hero-card {
  background: rgba(244, 241, 234, 0.94); color: var(--ink);
  border-radius: var(--radius); padding: 1.5rem; max-width: 320px;
  box-shadow: var(--shadow-lift);
}
.hero-card p { margin: 0 0 1rem; font-size: 0.98rem; color: var(--muted); }

/* circular stamp */
.stamp { width: 116px; height: 116px; position: relative; }
.stamp svg { width: 100%; height: 100%; }
.stamp text { fill: #fff; font-family: "Manrope", sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.stamp .stamp-rot { transform-origin: center; animation: spin 22s linear infinite; }
.stamp-dot {
  position: absolute; inset: 0; margin: auto; width: 12px; height: 12px;
  border-radius: 999px; background: var(--clay);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section--alt { background: var(--canvas-2); }
.section--deep { background: var(--deep); color: var(--deep-text); }
.section--deep .eyebrow { color: var(--clay-soft); }
.section--deep .lead, .section--deep .muted { color: var(--deep-muted); }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.section-head { max-width: 60ch; margin-bottom: 2.8rem; }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.section-head .lead { margin-top: 1.1rem; }
.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.8rem;
}
.head-row .section-head { margin-bottom: 0; }

/* ---------- Feature row (editorial 2-col image + text) ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.feature-row.reverse .feature-media { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.feature-media.wide { aspect-ratio: 5 / 4; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.feature-media:hover img { transform: scale(1.04); }
.feature-text h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1.1rem; }
.feature-text p { color: var(--muted); margin: 0 0 1.4rem; max-width: 52ch; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 2.5rem;
}
.stat .stat-value { font-family: "Fraunces", serif; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.stat .stat-label { display: block; margin-top: 0.6rem; color: var(--muted); font-size: 0.92rem; }
.section--deep .stats { border-top-color: var(--line-deep); }
.section--deep .stat .stat-label { color: var(--deep-muted); }

/* ---------- Services / cards grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc-card {
  display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.svc-card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.svc-card:hover .svc-card__media img { transform: scale(1.05); }
.svc-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.svc-card__body h3 { font-size: 1.5rem; }
.svc-card__body p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.svc-card__more { margin-top: auto; padding-top: 0.8rem; }

/* ---------- Work gallery tiles ---------- */
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.work-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 260px; display: flex; align-items: flex-end;
  color: #fff; grid-column: span 2;
}
.work-tile.tall { grid-row: span 2; min-height: 420px; }
.work-tile.big { grid-column: span 3; }
.work-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); z-index: -2; }
.work-tile::after { content: ""; position: absolute; inset: 0; background: rgba(20,17,14,0.34); z-index: -1; transition: background 320ms var(--ease); }
.work-tile:hover img { transform: scale(1.06); }
.work-tile:hover::after { background: rgba(20,17,14,0.5); }
.work-tile__label { padding: 1.4rem; display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; }
.work-tile__label h3 { font-size: 1.5rem; }
.work-tile .btn-arrow { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.4); color: #fff; flex: none; }
.work-tile:hover .btn-arrow { background: #fff; color: var(--ink); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.process-step { padding-top: 1.6rem; border-top: 2px solid var(--clay); }
.process-step .step-num { font-family: "Fraunces", serif; font-size: 1rem; color: var(--clay); letter-spacing: 0.1em; }
.process-step h3 { font-size: 1.8rem; margin: 0.6rem 0 0.7rem; }
.process-step p { color: var(--muted); margin: 0; }
.section--deep .process-step p { color: var(--deep-muted); }

/* ---------- Quote ---------- */
.quote-block { max-width: 22ch; }
.quote-block blockquote {
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1.06; margin: 0;
}
.quote-block cite { display: block; margin-top: 1.6rem; font-style: normal; color: var(--deep-muted); font-size: 0.95rem; }

/* ---------- CTA strip ---------- */
.cta {
  background: var(--deep); color: var(--deep-text); border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 4rem); display: grid;
  grid-template-columns: 1.4fr auto; gap: 1.6rem; align-items: center;
}
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18ch; }
.cta p { color: var(--deep-muted); margin: 0.9rem 0 0; max-width: 46ch; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 9rem 0 0; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin: 0 0 1.4rem; }
.breadcrumb a:hover { color: var(--clay); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); max-width: 16ch; }
.page-hero .lead { margin-top: 1.3rem; }
.page-hero__media { margin-top: 3rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Service page bits ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 2rem; }
.feature-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 0.7rem; align-items: baseline; }
.feature-list li::before { content: "—"; color: var(--clay); font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); }
.gallery .span2 { grid-column: span 2; aspect-ratio: 2 / 1; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.related-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 1.4rem; transition: transform 240ms var(--ease); }
.related-card:hover { transform: translateY(-4px); }
.related-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.related-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- Trust strip (short proof points under a hero) ---------- */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2.2rem;
  padding: 1.6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust-strip li { list-style: none; display: flex; align-items: baseline; gap: 0.55rem; font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.trust-strip li::before { content: "—"; color: var(--clay); font-weight: 700; }
.section--deep .trust-strip { border-color: var(--line-deep); }
.section--deep .trust-strip li { color: var(--deep-muted); }

/* ---------- Project meta (location/type tag under a page-hero title) ---------- */
.project-meta {
  display: inline-flex; gap: 0.6rem; align-items: center;
  font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-top: 0.6rem;
}
.project-meta .dot { color: var(--clay); }

/* ---------- Service tag chips (project detail "services used") ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag-chip {
  display: inline-flex; align-items: center; padding: 0.5rem 1rem;
  border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  background: var(--surface); transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.tag-chip:hover { border-color: var(--clay); color: var(--clay); }

/* ---------- Further-afield note (projects hub) ---------- */
.note-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.6rem clamp(1.6rem, 4vw, 2.4rem);
}
.note-card p { color: var(--muted); margin: 0; max-width: 70ch; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.8rem; max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.4rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  font-weight: 600; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--clay); transition: transform 240ms var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0.85rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(156, 107, 67, 0.18);
}
.details-panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.8rem; display: grid; gap: 1.3rem; }
.detail-item .detail-k { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.detail-item .detail-v { font-size: 1.1rem; font-weight: 600; }
.reassure { display: grid; gap: 0.6rem; margin-top: 0.4rem; }
.reassure li { list-style: none; display: flex; gap: 0.6rem; align-items: baseline; color: var(--muted); }
.reassure li::before { content: "✓"; color: var(--clay); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--deep-text); padding: clamp(3.5rem, 7vw, 6rem) 0 2rem; }
.footer-word { font-family: "Fraunces", serif; font-size: clamp(3rem, 12vw, 9rem); line-height: 0.9; letter-spacing: -0.02em; margin-bottom: 2.5rem; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-deep); }
.footer-cols h4 { font-family: "Manrope", sans-serif; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--deep-muted); margin: 0 0 1rem; font-weight: 600; }
.footer-cols p, .footer-cols li { color: var(--deep-muted); }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-cols a:hover { color: var(--deep-text); }
.footer-blurb { max-width: 38ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; font-size: 0.85rem; color: var(--deep-muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Mobile nav sheet ---------- */
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .header-cta-btn { display: none; }
  .nav {
    position: fixed; inset: 84px var(--gutter) auto var(--gutter);
    flex-direction: column; align-items: flex-start; gap: 0.4rem;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-lift);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0.4rem; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav a:last-child { border-bottom: none; }
  .site-header:not(.is-scrolled) .over-hero .nav a { color: var(--ink); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-aside { justify-items: start; flex-direction: row; }
  .cards, .work-grid, .process, .stats, .related-grid, .gallery { grid-template-columns: 1fr 1fr; }
  .work-tile, .work-tile.big { grid-column: span 1; }
  .work-tile.tall { grid-row: span 1; min-height: 280px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .footer-cols { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .feature-row, .feature-row.reverse .feature-media { grid-template-columns: 1fr; order: 0; }
  .cards, .work-grid, .process, .related-grid, .gallery, .feature-list, .field-row, .contact-grid, .stats { grid-template-columns: 1fr; }
  .gallery .span2 { grid-column: span 1; aspect-ratio: 3 / 2; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { display: grid; width: 100%; }
  .hero-card { max-width: none; }
  .head-row { align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .stamp .stamp-rot { animation: none; }
}
