/* ============================================================
   Halden & Vale — bespoke kitchens & joinery, Ludlow

   Design language follows the Minerva Design reference (see
   ../_reference-library/minerva-design/). Token values are the measured
   ones from that build: geometric sans caps at ~0.12em tracking, a
   four-surface near-monochrome palette, 2–6px radii, full-bleed
   photography carrying all the colour.

   Type substitution: futura-pt → Jost, Satoshi → Manrope. Both are
   metrically close and openly licensed; the originals are commercial.
   ============================================================ */
/* Self-hosted so the page makes no third-party request and the CSP can stay at
   default-src 'self'. font-display:swap gets the real face in front of the
   reader immediately; the metric-matched fallbacks below mean the swap does not
   move a line while doing it. */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/assets/fonts/jost.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/manrope.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost fallback';
  src: local('Futura'), local('Century Gothic'), local('Avenir Next'), local('Helvetica Neue');
  ascent-override: 96%;
  descent-override: 25%;
  line-gap-override: 0%;
  size-adjust: 97%;
}
@font-face {
  font-family: 'Manrope fallback';
  src: local('Helvetica Neue'), local('Arial');
  ascent-override: 105%;
  descent-override: 29%;
  line-gap-override: 0%;
  size-adjust: 96%;
}

:root {
  /* four surfaces, as measured — the restraint is the design */
  --paper: #ffffff;
  --shell: #faf7f2;
  --stone: #f7f7f5;
  --slate: #565555;   /* dark bands + body text */
  --ink: #1c1c1c;
  --line-light: #d0d0d0;
  --muted: #6b6b6b;   /* 5.33:1 on white — replaces opacity knock-backs */
  --on-slate: #faf7f2;

  --font-display: "Jost", "Jost fallback", "Futura", "Century Gothic", sans-serif;
  --font-body: "Manrope", "Manrope fallback", system-ui, -apple-system, sans-serif;

  /* measured: H1 46/5.53px, H2 37/4.45px, H3 24/2.88px ≈ 0.12em tracking */
  --track: 0.12em;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.45s;

  --r-sm: 2px;
  --r-md: 6px;

  --gutter: clamp(1.5rem, 5vw, 5rem);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--track);
  line-height: 1.25;
  margin: 0;
}
h1 { font-size: clamp(1.85rem, 3.2vw, 2.875rem); }   /* 46px */
h2 { font-size: clamp(1.55rem, 2.6vw, 2.3125rem); }  /* 37px */
h3 { font-size: clamp(1.05rem, 1.6vw, 1.5rem); }     /* 24px */
p { margin: 0 0 1.15rem; }
.lede { font-size: 1rem; }
.small { font-size: 0.8125rem; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
/* Chrome (header, footer, full-bleed bands) spans the page; only reading
   content is held to the 1180px column. */
.wrap--wide { max-width: none; margin-inline: 0; padding-inline: var(--gutter); }
.narrow { max-width: 42rem; margin-inline: auto; }

/* ---------- link + button ---------- */
.link-arrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: var(--track);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid currentColor;
  transition: gap var(--t) var(--ease);
}
.link-arrow:hover { gap: 1.1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: var(--track);
  text-decoration: none;
  padding: 0.9rem 1.35rem;
  border: 1px solid currentColor;
  border-radius: var(--r-sm);
  background: transparent;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.btn--light { color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--paper); }
.btn--ink { color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--paper); }

:where(a, button):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.on-dark :where(a, button):focus-visible { outline-color: var(--paper); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.8rem 1.25rem;
  font-family: var(--font-display); font-size: 0.75rem; letter-spacing: var(--track);
  text-transform: uppercase; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- header ----------
   Default is solid, for interior pages that open on a white page-head.
   Pages that open on full-bleed photography add .has-hero to <body>, which
   lifts the header out of flow and makes it translucent over the image. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
  color: var(--ink);
}
.has-hero .site-header {
  position: absolute;
  inset-inline: 0;
  background: rgba(28, 28, 28, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0;
  color: var(--paper);
}
/* the mark is dark ink artwork; invert it only where the bar is dark */
.has-hero .brand img, .site-footer .footer-brand img { filter: brightness(0) invert(1); }
.site-header .brand img { filter: none; }
.has-hero .site-header .brand img { filter: brightness(0) invert(1); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: none;
}
.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: var(--track);
  text-decoration: none;
  opacity: 0.88;
  transition: opacity var(--t) var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; color: inherit; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 1px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1px; background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; inset-inline: 0; top: 100%;
    display: none; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink); padding: 0.5rem var(--gutter) 1.25rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding-block: 0.95rem; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.14); }
}

/* ---------- hero: full-bleed photo, copy bottom-left ---------- */
/* Section heights below are the measured values from the reference build
   (hero 675 / intro 625 / split 670 / band 224 / collections 1191 /
   feature 560 / projects 1015 / footer 547). Matching them keeps the
   vertical rhythm identical rather than merely similar. */
.hero {
  position: relative;
  min-height: 675px;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  /* matched to the reference: strong at the gutter, fully clear by ~58%,
     so the photography still carries the right-hand two-fifths */
  background: linear-gradient(90deg, rgba(28,28,28,0.62) 0%, rgba(28,28,28,0.34) 30%, rgba(28,28,28,0) 58%);
}
/* Full-bleed, not the centred 1180px container: the reference sets its hero
   copy against the gutter (~69px at 1440), and the centred wrap pushed ours
   to ~202px, which read as centred rather than hard-left. */
.hero__inner {
  position: relative; z-index: 1;
  max-width: none;
  /* it is a flex item and also carries .wrap — without these the inherited
     margin-inline:auto centres it, which put the headline at x=459 instead
     of hard against the 72px gutter */
  margin-inline: 0;
  flex: 1 1 auto;
  padding-block: 0 clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { max-width: 14ch; }
.hero p { max-width: 38ch; margin-top: 1.25rem; font-size: 0.875rem; opacity: 0.92; }
.hero .btn { margin-top: 1.75rem; }
@media (max-width: 860px) { .hero { min-height: 78vh; } }

/* ---------- centred intro (~625px) ---------- */
.intro {
  min-height: 625px;
  display: grid;
  align-content: center;
  padding-block: clamp(3.5rem, 7vw, 5rem);
  text-align: center;
}
.intro__mark { width: 46px; margin: 0 auto 2.75rem; opacity: 0.9; }
.intro h2 { margin-bottom: 2.25rem; }
.intro p { max-width: 58ch; margin-inline: auto; font-size: 0.875rem; }

/* ---------- split band: copy left, photo bleeding right ---------- */
/* copy left, photo bleeding off the right edge (~670px) */
.split {
  background: var(--shell);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: 670px;
}
.split__copy { padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5rem) var(--gutter); max-width: 32rem; justify-self: end; min-width: 0; }
.split__copy h2 { margin-bottom: 1.75rem; }
.split__copy p { font-size: 0.875rem; }
.split__copy .link-arrow { margin-top: 1.25rem; }
.split__media { align-self: center; height: 460px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__copy { padding: clamp(2.5rem, 8vw, 4rem) var(--gutter); max-width: none; justify-self: stretch; }
  .split__media { min-height: 18rem; }
}

/* ---------- dark call-out band ---------- */
/* dark call-out band (~224px) */
.band {
  background: var(--slate);
  color: var(--on-slate);
  min-height: 224px;
  display: grid;
  align-content: center;
  padding-block: 2.5rem;
}
.band .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.band h2 { max-width: 12ch; }
.band__aside { justify-self: end; text-align: right; max-width: 26rem; }
.band__aside p { font-size: 0.875rem; margin-bottom: 1.1rem; }
@media (max-width: 780px) {
  .band .wrap { grid-template-columns: 1fr; }
  .band__aside { justify-self: start; text-align: left; }
}

/* ---------- section head with optional right-hand link ---------- */
.sec { padding-block: clamp(4rem, 8vw, 7rem); }
.sec--collections { min-height: 1191px; }
.sec--projects { min-height: 1015px; }
@media (max-width: 900px) {
  .sec--collections, .sec--projects { min-height: 0; }
}
.sec__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.sec__head h2 { max-width: 16ch; }
.sec__head p { max-width: 52ch; margin: 1.5rem 0 0; font-size: 0.875rem; }

/* ---------- horizontal carousel (collections + projects) ---------- */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.rail::-webkit-scrollbar { display: none; }
/* four across on desktop, matching the reference — five made the cards cramped */
@media (min-width: 900px) { .rail { grid-auto-columns: minmax(0, calc(25% - 1.125rem)); } }
.card { scroll-snap-align: start; text-decoration: none; display: block; }
.card__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone); border-radius: var(--r-sm); }
.card--wide .card__media { aspect-ratio: 4 / 3; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }
.card h3 { margin: 1.25rem 0 0.6rem; }
.card p { font-size: 0.875rem; margin-bottom: 0.9rem; }
.card .link-arrow { font-size: 0.6875rem; }

.rail-nav { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 2rem; }
.rail-nav button {
  width: 44px; height: 44px;
  border: 1px solid var(--line-light);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  display: grid; place-items: center;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.rail-nav button:hover { border-color: var(--slate); }
.rail-nav button[disabled] { opacity: 0.3; cursor: default; }

/* ---------- full-bleed feature band ---------- */
/* full-bleed feature band (~560px) */
.feature {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.feature__media { position: absolute; inset: 0; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,28,28,0.6) 0%, rgba(28,28,28,0.2) 55%, rgba(28,28,28,0) 80%);
}
.feature__inner {
  position: relative; z-index: 1;
  max-width: none;   /* full-bleed, matching the hero */
  margin-inline: 0;
  flex: 1 1 auto;
  padding-block: 0 clamp(2.5rem, 5vw, 4rem);
}
.feature p { max-width: 44ch; margin-top: 1rem; font-size: 0.9375rem; }
.feature .btn { margin-top: 1.35rem; }

/* ---------- footer ---------- */
/* footer (~547px) */
.site-footer {
  background: var(--slate);
  color: var(--on-slate);
  min-height: 547px;
  display: grid;
  align-content: center;
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
}
@media (max-width: 900px) { .site-footer { min-height: 0; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(9.5rem, 1fr));
  gap: clamp(1.5rem, 3vw, 3.5rem);
}
.footer-brand img { width: 34px; filter: brightness(0) invert(1); margin-bottom: 0.75rem; }
.footer-brand .brand-name { font-size: 1.5rem; display: block; }
.socials { display: flex; gap: 1rem; margin-top: 1.5rem; }
.socials a { opacity: 0.85; transition: opacity var(--t) var(--ease); }
.socials a:hover { opacity: 1; }
.socials svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.footer-col h2 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.35rem;
  color: rgba(250, 247, 242, 0.72);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col li { line-height: 1.5; }
.footer-col a, .footer-col li {
  font-size: 0.8125rem; text-decoration: none; opacity: 0.9;
  transition: opacity var(--t) var(--ease);
}
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(250, 247, 242, 0.16);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.75rem; opacity: 0.75;
}
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   Interior pages
   ============================================================ */

/* ---------- page head ---------- */
.page-head { padding-block: clamp(7rem, 12vw, 10rem) clamp(2.5rem, 5vw, 4rem); }
.page-head--tall { padding-block: clamp(9rem, 14vw, 12rem) clamp(5rem, 9vw, 8rem); }
.page-head h1 { margin-bottom: 1.5rem; }
.page-head .lede { max-width: 56ch; font-size: 0.9375rem; }
.page-head--tall .lede { margin-inline: auto; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

/* ---------- collection / project rows ---------- */
.collection, .project { padding-block: clamp(3rem, 7vw, 5.5rem); scroll-margin-top: 5rem; }
.collection--alt, .project--alt { background: var(--shell); }
.collection__grid, .project__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.project__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.collection__media img, .project__media img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--r-sm);
}
.collection__media { max-height: 34rem; overflow: hidden; border-radius: var(--r-sm); }
.collection__copy h2, .project__copy h2 { margin-bottom: 1.25rem; }
.collection__copy p, .project__copy p { font-size: 0.875rem; }
.collection__copy .btn { margin-top: 0.75rem; }
@media (max-width: 880px) {
  .collection__grid, .project__grid { grid-template-columns: 1fr; }
  .collection__media { max-height: 24rem; }
}

/* ---------- spec list ---------- */
.spec { list-style: none; margin: 1.75rem 0; padding: 0; display: grid; gap: 0; }
.spec li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.8125rem;
}
.spec li:last-child { border-bottom: 1px solid var(--line-light); }
.spec span {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 0.15em;
}
@media (max-width: 520px) { .spec li { grid-template-columns: 1fr; gap: 0.15rem; } }

/* ---------- flipped split ---------- */
.split--flip { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.split--flip .split__copy { order: 2; justify-self: start; padding-inline: 0 var(--gutter); max-width: 32rem; }
.split--flip .split__media { order: 1; }
@media (max-width: 900px) {
  /* .split--flip declares its own two-column grid after the .split mobile
     query, so it out-cascaded the collapse and stayed two-up at 375px —
     leaving the copy column 162px wide and bursting the page. */
  .split--flip { grid-template-columns: 1fr; }
  .split--flip .split__copy {
    order: 2;
    justify-self: stretch;
    max-width: none;
    padding-inline: var(--gutter);
  }
  .split--flip .split__media { order: 1; }
}

/* ---------- 3/4-up tile grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.tile__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: var(--stone); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile h3 { margin: 1.25rem 0 0.6rem; }
.tile p { font-size: 0.8125rem; }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- numbered steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-light);
  align-items: start;
}
.steps li:last-child { border-bottom: 1px solid var(--line-light); }
.steps h2 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); grid-column: 1; }
.steps .eyebrow { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.steps li > p:last-child { grid-column: 2; grid-row: 1 / span 2; font-size: 0.875rem; margin: 0; }
@media (max-width: 780px) {
  .steps li { grid-template-columns: 1fr; gap: 0.5rem; }
  .steps li > p:last-child { grid-column: 1; grid-row: auto; margin-top: 0.5rem; }
  .steps h2 { grid-column: 1; }
}

/* ---------- contact ---------- */
.contact { padding-block: 0 clamp(4rem, 8vw, 7rem); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) { .contact__grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.35rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { display: grid; gap: 0.45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.field .opt { color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-light);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--slate);
  transition: border-color var(--t) var(--ease);
}
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 1px; border-color: transparent;
}
.field ::placeholder { color: var(--muted); opacity: 1; }
.err { display: none; font-size: 0.75rem; color: #9a2b20; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #9a2b20; }
.form .btn { justify-self: start; cursor: pointer; }
.form-note { font-size: 0.75rem; color: var(--muted); margin: 0; }

.contact__aside h2 {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.contact__aside h2:not(:first-child) { margin-top: 2.25rem; }
.contact__aside p { font-size: 0.875rem; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.contact__list li { display: grid; grid-template-columns: 5rem 1fr; font-size: 0.875rem; }
.contact__list span {
  font-family: var(--font-display); font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); padding-top: 0.2em;
}

/* ---------- demo disclosure ---------- */
.demo-note {
  margin-top: 1.5rem;
  padding: 0.9rem 1.15rem;
  border-left: 2px solid var(--slate);
  background: var(--shell);
  font-size: 0.8125rem;
  text-align: left;
  max-width: 48ch;
  margin-inline: auto;
}

/* ============================================================
   Full-screen menu
   Photography left, full site map right. The hamburger is always
   visible — this is the primary navigation, not a mobile fallback.
   ============================================================ */
.nav-toggle { display: inline-flex; }          /* always shown, not only on mobile */

.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--shell);
}
.menu[hidden] { display: none; }
.menu__media { position: relative; overflow: hidden; background: var(--slate); }
.menu__media img { width: 100%; height: 100%; object-fit: cover; }
.menu__brand {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.25rem);
  left: clamp(1.5rem, 4vw, 4rem);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 12px rgba(28, 28, 28, 0.5);
}
.menu__brand img { width: 30px; height: 30px; filter: brightness(0) invert(1); }

.menu__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4.5rem, 7vw, 6rem) clamp(2rem, 5vw, 6rem) clamp(2rem, 4vw, 3.5rem);
  overflow-y: auto;
}
.menu__close {
  position: absolute;
  top: clamp(1.25rem, 2.5vw, 2rem);
  right: clamp(1.25rem, 3vw, 3rem);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  color: var(--ink);
}

.menu__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 5rem);
  margin-block: auto;
}
.menu__col h2 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.menu__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.menu__col a {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.375rem);
  text-transform: uppercase;
  letter-spacing: var(--track);
  text-decoration: none;
  color: var(--ink);
  transition: color var(--t) var(--ease);
}
.menu__col a:hover { color: var(--muted); }

.menu__foot {
  display: flex;
  align-items: flex-end;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-light);
  flex-wrap: wrap;
}
.menu__place h3 {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.menu__place a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.menu__socials { display: flex; gap: 1.15rem; margin-left: auto; }
.menu__socials svg { width: 18px; height: 18px; fill: var(--ink); display: block; }

@media (max-width: 860px) {
  .menu { grid-template-columns: 1fr; }
  .menu__media { display: none; }
  .menu__panel { justify-content: flex-start; }
  .menu__nav { grid-template-columns: 1fr 1fr; margin-block: 0; }
}
@media (max-width: 520px) {
  .menu__nav { grid-template-columns: 1fr; gap: 1.75rem; }
}
body.menu-open { overflow: hidden; }

/* ============================================================
   Explore / work grid
   ============================================================ */
.explore { padding-block: clamp(6rem, 10vw, 9rem) clamp(4rem, 8vw, 7rem); }
.explore__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.explore__intro h1 { margin-bottom: 1.5rem; }
.explore__intro p { font-size: 0.875rem; max-width: 44ch; }

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-self: end;
}
.filter { display: grid; gap: 0.6rem; }
.filter label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.filter select {
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.85rem 2.25rem 0.85rem 1rem;
  border: 1px solid var(--line-light);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--slate);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23565555' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  cursor: pointer;
}
.filter select:hover { border-color: var(--slate); }
@media (max-width: 1000px) {
  .explore__head { grid-template-columns: 1fr; }
  .filters { align-self: start; }
}
@media (max-width: 640px) { .filters { grid-template-columns: 1fr; } }

.result-count {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
}
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .work-grid { grid-template-columns: 1fr; } }
.work[hidden] { display: none; }
.work a { text-decoration: none; display: block; }
.work__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); border-radius: var(--r-sm); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work a:hover .work__media img { transform: scale(1.04); }
.work h2 { font-size: clamp(1.05rem, 1.5vw, 1.375rem); margin: 1.35rem 0 0.5rem; }
.work__meta { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.9rem; }

.no-results { margin-top: 2rem; font-size: 0.9375rem; }
.no-results a { text-underline-offset: 3px; }
