/* ==========================================================================
   N W Carpenters Ltd — site styles
   Palette and typography follow the 2026 company profile brochure.
   ========================================================================== */

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-var.woff2') format('woff2-variations'),
       url('../fonts/playfair-var.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2-variations'),
       url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #16181a;
  --ink-soft: #3c3f42;
  --muted: #6f6b64;
  --stone: #efebe4;
  --stone-deep: #e2ddd2;
  --paper: #ffffff;
  --accent: #8c6a43;
  --line: rgba(22, 24, 26, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);

  --serif: 'Playfair Display', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shell: min(1220px, 100% - 3rem);
  --shell-narrow: min(880px, 100% - 3rem);
  --header-h: 78px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 640px) {
  :root {
    --shell: min(1220px, 100% - 2.25rem);
    --shell-narrow: min(880px, 100% - 2.25rem);
    --header-h: 64px;
  }
}

/* ---------- reset ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

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

::selection { background: var(--ink); color: var(--stone); }

/* ---------- helpers ---------- */

.shell { width: var(--shell); margin-inline: auto; }
.shell-narrow { width: var(--shell-narrow); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--stone);
  padding: 0.7rem 1.1rem;
  border-radius: 2px;
  font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.eyebrow--light { color: rgba(255, 255, 255, 0.62); }

.lede {
  font-size: clamp(1.08rem, 0.98rem + 0.45vw, 1.3rem);
  line-height: 1.62;
  color: var(--ink-soft);
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--stone);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.28s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--stone); }

.btn--light { background: var(--stone); border-color: var(--stone); color: var(--ink); }
.btn--light:hover { background: transparent; color: var(--stone); }

.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.textlink:hover { border-color: var(--ink); color: var(--accent); }
.textlink .arrow { transition: transform 0.25s var(--ease); }
.textlink:hover .arrow { transform: translateX(5px); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: block; line-height: 0; }
.brand img { height: 42px; width: auto; transition: opacity 0.3s var(--ease); }
.brand .brand__light { display: block; }
.brand .brand__dark { display: none; }

@media (max-width: 640px) {
  .brand img { height: 34px; }
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header.is-solid .brand__light { display: none; }
.site-header.is-solid .brand__dark { display: block; }

.nav { display: flex; align-items: center; gap: 2.1rem; }

.nav a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.28s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current='page']::after { width: 100%; }

.site-header.is-solid .nav a { color: var(--ink); }

.nav__cta {
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 0.6rem 1.15rem !important;
  border-radius: 2px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: #fff; color: var(--ink) !important; border-color: #fff; }
.site-header.is-solid .nav__cta { border-color: var(--ink); }
.site-header.is-solid .nav__cta:hover { background: var(--ink); color: var(--stone) !important; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 120;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.site-header.is-solid .nav-toggle span { background: var(--ink); }

.nav-toggle[aria-expanded='true'] span { background: var(--ink); }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: var(--stone);
    transform: translateY(-100%);
    transition: transform 0.45s var(--ease);
    visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav a { color: var(--ink) !important; font-size: 1.05rem; letter-spacing: 0.16em; }
  .nav__cta { border-color: var(--ink) !important; margin-top: 0.5rem; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  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;
  background: linear-gradient(180deg, rgba(10, 11, 12, 0.62) 0%, rgba(10, 11, 12, 0.24) 38%, rgba(10, 11, 12, 0.82) 100%);
}

.hero__inner {
  position: relative;
  width: var(--shell);
  margin-inline: auto;
  padding: 0 0 clamp(3.5rem, 6vw, 6rem);
}

.hero h1 {
  font-size: clamp(2.9rem, 1.6rem + 5.4vw, 5.75rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.4rem;
}
.hero h1 span { display: block; }

.hero__sub {
  max-width: 42ch;
  font-size: clamp(1.05rem, 0.96rem + 0.4vw, 1.24rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 2.3rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__scroll {
  position: absolute;
  right: 0;
  bottom: clamp(3.5rem, 6vw, 6rem);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  writing-mode: vertical-rl;
  text-decoration: none;
}
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* page hero (interior pages) */

.page-hero {
  position: relative;
  min-height: min(72vh, 660px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 12, 0.55) 0%, rgba(10, 11, 12, 0.2) 45%, rgba(10, 11, 12, 0.8) 100%);
}
.page-hero__inner {
  position: relative;
  width: var(--shell);
  margin-inline: auto;
  padding: 0 0 clamp(3rem, 5vw, 4.75rem);
}
.page-hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 4vw, 4.5rem);
  color: #fff;
  margin-bottom: 0.9rem;
}
.page-hero__sub {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.15rem);
}

.crumbs {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 1.4rem;
}
.crumbs a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding-bottom: 2px; }
.crumbs a:hover { border-color: #fff; color: #fff; }
.crumbs span { margin: 0 0.5rem; }

/* ---------- sections ---------- */

.section { padding: clamp(4.5rem, 3rem + 6vw, 8.5rem) 0; }
.section--tight { padding: clamp(3.25rem, 2.5rem + 3vw, 5rem) 0; }
.section--stone { background: var(--stone); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.15rem); margin-bottom: 1.1rem; }

/* ---------- marks strip ---------- */

.marks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marks__item { padding: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem) 1.5rem; }
.marks__item + .marks__item { border-left: 1px solid var(--line); }
.marks__value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.55rem;
}
.marks__label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .marks { grid-template-columns: 1fr; }
  .marks__item + .marks__item { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- split (about) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 2rem + 4vw, 5.5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__media--wide img { aspect-ratio: 4 / 3; }

.figure-note {
  margin-top: 0.9rem;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.split__body h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.15rem); margin-bottom: 1.5rem; }

.signature {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.signature strong { font-weight: 500; display: block; letter-spacing: 0.02em; }
.signature span { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- services ---------- */

.services { display: grid; gap: 0; border-top: 1px solid var(--line); }

.service {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3.5rem);
  padding: clamp(2rem, 1.5rem + 1.8vw, 3.2rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (max-width: 820px) {
  .service { grid-template-columns: 3.25rem minmax(0, 1fr); }
  .service__list { grid-column: 2; }
}

.service__num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--accent);
  padding-top: 0.35rem;
  letter-spacing: 0.05em;
}
.service__title { font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.95rem); }
.service__title small {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 0.75rem;
  letter-spacing: 0;
}

.service__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; align-content: start; }
.service__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.service__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* ---------- full bleed band ---------- */

.band {
  position: relative;
  height: clamp(320px, 44vw, 580px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.band > picture,
.band > picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band > picture img { object-fit: cover; }
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 12, 0.1) 40%, rgba(10, 11, 12, 0.78) 100%);
}
.band__inner {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  color: #fff;
}
.band__inner p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.25rem);
  line-height: 1.25;
  max-width: 22ch;
  margin: 0;
}

/* ---------- project cards ---------- */

.projects { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.25rem); }

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 1.2rem + 3vw, 4rem);
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.project-card:nth-child(even) .project-card__media { order: 2; }
@media (max-width: 860px) {
  .project-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .project-card:nth-child(even) .project-card__media { order: 0; }
}

.project-card__media { overflow: hidden; background: var(--stone-deep); }
.project-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.project-card:hover .project-card__media img { transform: scale(1.045); }

.project-card__index {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.project-card h3 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.65rem); margin-bottom: 0.75rem; }
.project-card__kicker {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.project-card p { color: var(--ink-soft); margin-bottom: 1.5rem; }

/* ---------- gallery grid ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(0.75rem, 0.5rem + 0.8vw, 1.35rem);
}
.gallery--feature { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 860px) { .gallery--feature { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery--feature { grid-template-columns: 1fr; } }

.gallery__item {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--stone-deep);
  overflow: hidden;
  cursor: zoom-in;
  display: block;
  width: 100%;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.65s var(--ease), opacity 0.35s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); opacity: 0.92; }

.gallery__item--wide { grid-column: span 4; }
.gallery__item--half { grid-column: span 3; }
.gallery__item--third { grid-column: span 2; }
.gallery__item--tall img { aspect-ratio: 3 / 4; }
@media (max-width: 860px) {
  .gallery__item--wide,
  .gallery__item--half,
  .gallery__item--third { grid-column: span 1; }
}

.gallery__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1rem 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-align: left;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.gallery__item:hover .gallery__cap,
.gallery__item:focus-visible .gallery__cap { opacity: 1; }

/* ---------- specialist grid ---------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 0.6rem + 1.2vw, 1.75rem);
}
@media (max-width: 780px) { .spec-grid { grid-template-columns: 1fr; } }

.spec-card figure { margin: 0; }
.spec-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.spec-card figcaption {
  margin-top: 0.85rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.two-col-list {
  columns: 2;
  column-gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.two-col-list li {
  break-inside: avoid;
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
  color: var(--ink-soft);
}
.two-col-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--accent);
}
@media (max-width: 640px) { .two-col-list { columns: 1; } }

/* ---------- project page detail ---------- */

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem) 0;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
@media (max-width: 720px) { .project-meta { grid-template-columns: 1fr; gap: 1.25rem; } }
.project-meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.project-meta dd { margin: 0; font-size: 1.02rem; color: var(--ink); }

.detail-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  align-items: start;
}
@media (max-width: 880px) { .detail-split { grid-template-columns: 1fr; } }

.detail-card {
  background: var(--stone);
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
}
.detail-card h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.detail-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.detail-card li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); font-size: 0.98rem; }
.detail-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 1px;
  background: var(--accent);
}

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: clamp(2rem, 1.5rem + 2vw, 3rem) 0;
  border-top: 1px solid var(--line);
}
.project-nav__link { text-decoration: none; }
.project-nav__link span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.project-nav__link strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.project-nav__link:hover strong { color: var(--accent); }
.project-nav__link--next { text-align: right; margin-left: auto; }

/* ---------- contact ---------- */

.contact {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}
.contact__bg { position: absolute; inset: 0; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.contact__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(18, 20, 21, 0.96) 30%, rgba(18, 20, 21, 0.72) 100%);
}
.contact__inner { position: relative; }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
}
@media (max-width: 880px) { .contact__grid { grid-template-columns: 1fr; } }

.contact h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); margin-bottom: 1.2rem; color: #fff; }

.contact-list { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 0; }
.contact-list li { border-top: 1px solid var(--line-light); }
.contact-list li:last-child { border-bottom: 1px solid var(--line-light); }
.contact-list a,
.contact-list .contact-list__static {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  text-decoration: none;
  color: #fff;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.contact-list a:hover { color: var(--stone); padding-left: 0.5rem; }
.contact-list__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}
.contact-list__value { font-size: clamp(1rem, 0.94rem + 0.35vw, 1.2rem); font-weight: 400; word-break: break-word; }

/* form */

.enquiry { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-light);
  border-radius: 2px;
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.1);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.field select option { background: var(--ink); color: #fff; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-note { font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); margin: 0; }

/* ---------- cta band ---------- */

.cta-band {
  background: var(--stone);
  text-align: center;
  padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0;
}
.cta-band h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); margin-bottom: 1rem; }
.cta-band p { color: var(--ink-soft); max-width: 50ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-band__actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.6); padding: clamp(3rem, 2.5rem + 2vw, 4.5rem) 0 2rem; }
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-light);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-grid img { height: 46px; width: auto; margin-bottom: 1.2rem; }
.footer-grid p { font-size: 0.94rem; max-width: 38ch; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col li { font-size: 0.95rem; }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 11, 12, 0.94);
  padding: clamp(1rem, 3vw, 3rem);
}
.lightbox.is-open { display: flex; }

.lightbox__figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 0.9rem; }
.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  width: auto;
  object-fit: contain;
  margin-inline: auto;
}
.lightbox__figure figcaption {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.lightbox__btn {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
  font-size: 1.15rem;
  line-height: 1;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__prev { left: clamp(0.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(0.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

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