/* ==========================================================================
   Build Ahead — Construction & Interior Fit-Out
   Design system v2 — industrial / architectural
   Material palette: plaster, concrete, charcoal, steel, khaki.
   Typography: condensed grotesk display + technical mono labels.
   Geometry: sharp corners, hairline technical dividers, no soft shadows.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Material palette */
  --plaster:     #E9E5DC;  /* page base — warm plaster white */
  --plaster-hi:  #F1EEE7;  /* raised light surface */
  --concrete:    #D8D3C8;  /* concrete grey band */
  --concrete-2:  #CBC5B7;  /* deeper concrete */
  --ink:         #161513;  /* charcoal black */
  --ink-2:       #1E1C18;  /* graphite panel */
  --ink-3:       #26231E;  /* raised dark surface */
  --ink-body:    #2E2B25;  /* body text on light */
  --muted:       #5C564B;  /* secondary text on light */
  --faint:       #8A8273;  /* tertiary on light */
  --line:        #C3BCAD;  /* hairline on light */
  --line-strong: #A39B89;
  --line-dark:   #353129;  /* hairline on dark */
  --khaki:       #6E6845;  /* industrial olive/khaki accent */
  --khaki-deep:  #57523A;
  --sand:        #B5A488;  /* sand / raw timber detail */
  --rust:        #8C5B33;  /* oxidised metal — sparing use */
  --paper-dark:  #BFB9AB;  /* text on dark sections */
  --paper:       #EFEBE2;  /* headings on dark */

  /* Typography */
  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "Archivo", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* Type scale */
  --fs-label:  0.75rem;
  --fs-small:  0.875rem;
  --fs-body:   1.0625rem;
  --fs-lead:   clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  --fs-h4:     clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem);
  --fs-h3:     clamp(1.625rem, 1.25rem + 1.5vw, 2.5rem);
  --fs-h2:     clamp(2.25rem, 1.5rem + 3.2vw, 4.25rem);
  --fs-h1:     clamp(2.9rem, 1.6rem + 6vw, 6.75rem);

  /* Rhythm */
  --space-section: clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --container:     1360px;
  --gutter:        clamp(1.25rem, 0.6rem + 3vw, 3.5rem);

  /* Geometry — built, not decorated */
  --radius: 0px;
  --ease:   cubic-bezier(.32,.08,.24,1);
  --t-fast: .22s var(--ease);
  --t-med:  .55s var(--ease);
  --header-h: 84px;
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink-body);
  background: var(--plaster);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
}

::selection { background: var(--khaki); color: var(--paper); }

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

.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: -100px;
  background: var(--ink); color: var(--paper); padding: .75rem 1.25rem;
  z-index: 1000; transition: top var(--t-fast);
  font-family: var(--font-mono); font-size: .8125rem;
}
.skip-link:focus { top: 1rem; }

/* -------------------------------------------------------------------------
   3. Layout primitives
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }

/* Light surfaces */
.section--white { background: var(--plaster-hi); border-top: 1px solid var(--line); }
.section--alt   { background: var(--concrete);  border-top: 1px solid var(--line-strong); }

/* Dark surfaces */
.section--ink {
  background: var(--ink-2);
  color: var(--paper-dark);
  position: relative;
}
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--paper); }

.divider { border: none; border-top: 1px solid var(--line); }

/* -------------------------------------------------------------------------
   4. Typographic system
   ------------------------------------------------------------------------- */
/* Technical mono label — replaces decorative eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--khaki);
  display: inline-flex;
  align-items: center;
  gap: .85rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: currentColor;
  opacity: .7;
}
.section--ink .eyebrow { color: var(--sand); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--muted);
  font-weight: 400;
  max-width: 60ch;
}
.section--ink .lead { color: var(--paper-dark); }

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }

.measure { max-width: 62ch; }
.measure-sm { max-width: 44ch; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-head .lead { margin-top: 1.5rem; }
.section-head .h2, .section-head .h1 { margin-top: 1.4rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split {
  display: flex; flex-wrap: wrap; gap: 2rem 4rem;
  align-items: flex-end; justify-content: space-between;
  max-width: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}
.section--ink .section-head--split { border-bottom-color: var(--line-dark); }
.section-head--split .section-head__text { flex: 1 1 420px; }

/* -------------------------------------------------------------------------
   5. Buttons — rectangular, technical
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  padding: 1.05rem 1.9rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 0;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn .btn__arrow { transition: transform var(--t-fast); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--khaki-deep); border-color: var(--khaki-deep); }

.btn--accent { background: var(--khaki-deep); color: var(--paper); border-color: var(--khaki-deep); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); }

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

.section--ink .btn--outline,
.hero .btn--outline,
.page-hero .btn--outline {
  color: var(--paper); border-color: rgba(239,235,226,.45);
}
.section--ink .btn--outline:hover,
.hero .btn--outline:hover,
.page-hero .btn--outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

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

.btn--lg { padding: 1.25rem 2.4rem; font-size: .875rem; }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-mono);
  font-size: .8125rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  transition: color var(--t-fast), border-color var(--t-fast), gap var(--t-fast);
}
.link-arrow:hover { color: var(--khaki); border-color: var(--khaki); gap: 1rem; }
.section--ink .link-arrow { color: var(--paper); border-color: rgba(239,235,226,.4); }
.section--ink .link-arrow:hover { color: var(--sand); border-color: var(--sand); }

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

/* -------------------------------------------------------------------------
   6. Header / navigation — dark structural bar
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow var(--t-fast);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line-dark), 0 10px 30px -18px rgba(0,0,0,.6); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
  transition: height var(--t-fast);
}
.is-scrolled .nav { height: 66px; }

.brand { display: inline-flex; align-items: center; gap: .8rem; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 1;
}
.brand__name b { color: var(--sand); font-weight: 600; }

.nav__menu { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: .8125rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper-dark);
  padding: .6rem 1rem;
  transition: color var(--t-fast);
}
.nav__link::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .3rem;
  height: 1px; background: var(--sand);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast);
}
.nav__link:hover { color: var(--paper); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--paper); }

.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__actions .btn--solid {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.nav__actions .btn--solid:hover { background: var(--sand); border-color: var(--sand); }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-dark);
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 1.5px;
  background: var(--paper); transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav__toggle span { position: relative; }
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--ink);
  padding: 2.5rem var(--gutter) 3rem;
  display: flex; flex-direction: column;
  transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s linear var(--t-fast);
  overflow-y: auto;
}
.mobile-nav.is-open {
  opacity: 1; transform: none; pointer-events: auto; visibility: visible;
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s;
}
.mobile-nav__link {
  font-family: var(--font-display);
  font-size: 2.25rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .02em;
  color: var(--paper);
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; align-items: baseline;
}
.mobile-nav__link span { color: var(--faint); font-size: .8125rem; font-family: var(--font-mono); letter-spacing: .14em; }
.mobile-nav .btn { margin-top: 2.5rem; }

/* -------------------------------------------------------------------------
   7. Hero — full-screen, material, heavy
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h)); /* fallback */
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: var(--paper-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.25) contrast(1.05);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22,21,19,.55) 0%, rgba(22,21,19,.25) 38%, rgba(22,21,19,.88) 100%),
    linear-gradient(90deg, rgba(22,21,19,.62) 0%, rgba(22,21,19,.15) 70%);
}
/* Technical construction-line overlay */
.hero__lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(239,235,226,.07) 0, rgba(239,235,226,.07) 1px, transparent 1px, transparent calc(100% / 6));
  mix-blend-mode: screen;
}
.hero__inner {
  position: relative;
  width: 100%;
  padding-block: clamp(4rem, 3rem + 5vw, 7rem) clamp(3rem, 2rem + 3vw, 4.5rem);
}
.hero__label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--sand);
  display: inline-flex; align-items: center; gap: .85rem;
}
.hero__label::before { content: ""; width: 34px; height: 1px; background: var(--sand); }
.hero h1 {
  margin-top: 1.75rem;
  font-size: var(--fs-h1);
  color: var(--paper);
  max-width: 16ch;
}
.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--paper-dark);
  margin-top: 1.75rem;
  max-width: 52ch;
}
.hero .btn-row { margin-top: 2.5rem; }
.hero__foot {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(239,235,226,.18);
  display: flex; flex-wrap: wrap; gap: 1rem 3rem;
  font-family: var(--font-mono);
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);
}
.hero__foot span { display: inline-flex; align-items: center; gap: .6rem; }
.hero__foot span::before { content: ""; width: 5px; height: 5px; background: var(--khaki); }

/* Trust strip — dark index band under hero */
.trust-strip {
  background: var(--ink-2);
  color: var(--paper-dark);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.trust-strip__inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2.5rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.5rem;
}
.trust-strip__label {
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: .18em; text-transform: uppercase; color: var(--faint);
}
.trust-strip__items { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; }
.trust-strip__items li {
  font-family: var(--font-display); font-weight: 500; font-size: .9375rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--paper); display: inline-flex; align-items: center; gap: .65rem;
}
.trust-strip__items li::before { content: ""; width: 6px; height: 6px; background: var(--khaki); }

/* -------------------------------------------------------------------------
   8. Services — numbered technical index rows
   ------------------------------------------------------------------------- */
.service-index { border-top: 1px solid var(--line-strong); }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1.05fr 1.3fr 250px;
  gap: clamp(1.25rem, 1rem + 1.5vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem) clamp(.5rem, 1vw, 1.5rem);
  border-bottom: 1px solid var(--line-strong);
  transition: background var(--t-fast);
}
.service-row:hover { background: var(--concrete); }
.service-row__num {
  font-family: var(--font-mono);
  font-size: .9375rem; font-weight: 500; letter-spacing: .1em;
  color: var(--faint);
  transition: color var(--t-fast);
}
.service-row:hover .service-row__num { color: var(--rust); }
.service-row__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--ink);
  line-height: 1.05;
}
.service-row__desc { color: var(--muted); font-size: 1rem; max-width: 46ch; }
.service-row__end {
  display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem;
}
.service-row__preview {
  width: 168px; aspect-ratio: 4 / 3; overflow: hidden; flex: none;
  background: var(--concrete-2);
  opacity: 0; clip-path: inset(0 0 0 100%);
  transition: opacity var(--t-med), clip-path var(--t-med);
}
.service-row__preview img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) contrast(1.05); }
.service-row:hover .service-row__preview { opacity: 1; clip-path: inset(0); }
.service-row__arrow {
  flex: none; width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.service-row__arrow svg { width: 18px; height: 18px; }
.service-row:hover .service-row__arrow { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* -------------------------------------------------------------------------
   9. Why choose — dark numbered statements
   ------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.feature {
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: clamp(1.75rem, 1.25rem + 1.5vw, 3rem) clamp(1.5rem, 1rem + 1vw, 2.25rem);
  transition: background var(--t-fast);
}
.feature:hover { background: var(--ink-3); }
.feature__num {
  font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .12em;
  color: var(--sand); margin-bottom: clamp(2rem, 1.5rem + 2vw, 4rem);
}
.feature h3 { font-size: var(--fs-h4); margin-bottom: .85rem; }
.feature p { color: var(--paper-dark); font-size: .9375rem; line-height: 1.65; }

/* -------------------------------------------------------------------------
   10. Editorial / about
   ------------------------------------------------------------------------- */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: center;
}
.editorial--media-left .editorial__media { order: -1; }
.editorial__body > * + * { margin-top: 1.4rem; }
.editorial__body p { color: var(--muted); }
.editorial__media {
  position: relative; aspect-ratio: 4 / 5;
  overflow: hidden; background: var(--concrete-2);
  border: 1px solid var(--line-strong);
}
.editorial__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.2) contrast(1.04);
}
/* technical corner ticks on media */
.editorial__media::before, .editorial__media::after {
  content: ""; position: absolute; width: 26px; height: 26px; z-index: 1;
  border: 0 solid var(--paper);
}
.editorial__media::before { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.editorial__media::after  { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 2.75rem;
  border-top: 1px solid var(--line-strong);
}
.stat { padding-top: 1.5rem; padding-right: 1.5rem; }
.stat + .stat { border-left: 1px solid var(--line-strong); padding-left: 1.5rem; }
.stat__value {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.1rem, 1.5rem + 2vw, 3.25rem);
  color: var(--ink); line-height: 1;
}
.stat__value span { color: var(--rust); }
.stat__label {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); margin-top: .75rem; line-height: 1.5;
}

/* -------------------------------------------------------------------------
   11. Project cards — editorial portfolio
   ------------------------------------------------------------------------- */
.project-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, .75rem + 1.5vw, 2rem);
}
.project-card {
  position: relative;
  display: flex; flex-direction: column;
}
.project-card__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--concrete-2);
}
.project-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.25) contrast(1.05);
  transition: transform 1.1s var(--ease), filter var(--t-med);
}
.project-card:hover .project-card__media img { transform: scale(1.045); filter: grayscale(0) contrast(1.05); }
.project-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22,21,19,.55) 100%);
}
.project-card__tag {
  position: absolute; top: 0; left: 0; z-index: 1;
  background: var(--ink);
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--paper);
  padding: .55rem .9rem;
}
.project-card__body {
  padding: 1.5rem 0 0;
  display: flex; flex-direction: column; flex: 1;
  border-bottom: 1px solid var(--line);
}
.project-card h3 { font-size: var(--fs-h4); margin-bottom: .75rem; }
.project-card p { color: var(--muted); font-size: .9688rem; }
.project-card__scope {
  margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .4rem .5rem;
}
.scope-tag {
  font-family: var(--font-mono);
  font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: .35rem .7rem;
}
.project-card__link {
  margin: 1.4rem 0 1.4rem;
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink);
  transition: gap var(--t-fast), color var(--t-fast);
}
.project-card:hover .project-card__link { color: var(--rust); gap: .95rem; }
.project-card__link svg { width: 15px; height: 15px; }
.stretch::after { content: ""; position: absolute; inset: 0; }

/* Filter tabs — technical toggles */
.filters {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-bottom: clamp(2.5rem, 1.5rem + 2vw, 4rem);
  border: 1px solid var(--line-strong);
  width: fit-content;
}
.filter-btn {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .9rem 1.5rem;
  color: var(--muted);
  border-right: 1px solid var(--line-strong);
  transition: background var(--t-fast), color var(--t-fast);
}
.filter-btn:last-child { border-right: none; }
.filter-btn:hover { color: var(--ink); background: var(--concrete); }
.filter-btn.is-active { background: var(--ink); color: var(--paper); }

.project-card.is-hidden { display: none; }

/* -------------------------------------------------------------------------
   12. Testimonials — engraved blocks
   ------------------------------------------------------------------------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem,.75rem + 1.5vw,2rem); }
.testimonial {
  display: flex; flex-direction: column;
  border-top: 2px solid var(--ink);
  background: transparent;
  padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem) 0 0;
}
.testimonial__quote-mark {
  font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .14em;
  color: var(--rust); margin-bottom: 1.25rem; height: auto; line-height: 1;
}
.testimonial blockquote { font-size: 1.0313rem; line-height: 1.7; color: var(--ink-body); }
.testimonial__meta {
  margin-top: auto; padding-top: 1.75rem;
  display: flex; align-items: center; gap: .9rem;
}
.testimonial__avatar {
  width: 42px; height: 42px; flex: none;
  background: var(--ink); color: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 500; font-size: .8125rem;
  border-radius: 0;
}
.testimonial__name {
  font-family: var(--font-display); font-weight: 500; font-size: .9375rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink); display: block;
}
.testimonial__role { font-family: var(--font-mono); font-size: .75rem; color: var(--faint); }

/* -------------------------------------------------------------------------
   13. Page hero (interior pages) — dark, image-backed, technical
   ------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper-dark);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__img { position: absolute; inset: 0; z-index: -2; }
.page-hero__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.35) contrast(1.05);
}
.page-hero__img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22,21,19,.92) 0%, rgba(22,21,19,.65) 55%, rgba(22,21,19,.35) 100%),
    linear-gradient(180deg, rgba(22,21,19,.35), rgba(22,21,19,.75));
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(239,235,226,.06) 0, rgba(239,235,226,.06) 1px, transparent 1px, transparent calc(100% / 6));
}
.page-hero__inner {
  position: relative; z-index: 1;
  padding-block: clamp(5rem, 3.5rem + 7vw, 10rem) clamp(3.5rem, 2.5rem + 4vw, 6rem);
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: end;
}
.page-hero h1 { color: var(--paper); margin-top: 1.5rem; font-size: var(--fs-h1); }
.page-hero .lead { color: var(--paper-dark); margin-top: 1.5rem; max-width: 52ch; }
.page-hero .eyebrow { color: var(--sand); }
.page-hero__aside { text-align: right; }
.breadcrumb {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint);
}
.breadcrumb a:hover { color: var(--sand); }
.breadcrumb span { margin-inline: .6rem; opacity: .5; }
.breadcrumb b { color: var(--paper); font-weight: 500; }

/* -------------------------------------------------------------------------
   14. Service detail rows (Services page)
   ------------------------------------------------------------------------- */
.service-detail {
  display: grid; grid-template-columns: 90px 1fr 1.15fr;
  gap: clamp(1.5rem, 1rem + 3vw, 4.5rem);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 5rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.service-detail:last-child { border-bottom: 1px solid var(--line); }
.service-detail__num {
  font-family: var(--font-mono); font-size: .9375rem; font-weight: 500;
  color: var(--rust); letter-spacing: .1em;
}
.service-detail__head h2 { font-size: var(--fs-h3); }
.service-detail__head .service-detail__icon { color: var(--khaki); margin-bottom: 1.25rem; }
.service-detail__icon svg { width: 30px; height: 30px; }
.service-detail__body > * + * { margin-top: 1.1rem; }
.service-detail__body p { color: var(--muted); }

/* Expertise columns */
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem,1rem + 2.5vw,4rem); }
.expertise-col__head {
  display: flex; align-items: baseline; gap: 1rem;
  padding-bottom: 1.25rem; margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--sand);
}
.expertise-col__head h3 { font-size: var(--fs-h4); }
.expertise-col__head .num { font-family: var(--font-mono); color: var(--sand); font-size: .8125rem; letter-spacing: .1em; }
.expertise-item { padding: 1.2rem 0; border-bottom: 1px solid var(--line-dark); }
.expertise-item:last-child { border-bottom: none; }
.expertise-item h4 {
  font-size: 1rem; font-weight: 500; margin-bottom: .45rem;
  font-family: var(--font-display); letter-spacing: .06em;
}
.expertise-item p { font-size: .9375rem; color: var(--paper-dark); line-height: 1.6; }

/* -------------------------------------------------------------------------
   15. CTA band
   ------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 2.5rem; align-items: center;
}
.cta-band h2 { font-size: var(--fs-h2); max-width: 18ch; }
.cta-band p { margin-top: 1.4rem; max-width: 50ch; }
.cta-band__actions { display: flex; justify-content: flex-end; }

/* -------------------------------------------------------------------------
   16. Contact / forms — dark, direct
   ------------------------------------------------------------------------- */
.contact-layout {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: start;
}
.contact-info > * + * { margin-top: 2.25rem; }
.contact-detail-list { border-top: 1px solid var(--line-dark); }
.contact-detail {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line-dark);
}
.contact-detail__icon {
  flex: none; width: 46px; height: 46px;
  border: 1px solid var(--line-dark);
  background: var(--ink-3); color: var(--sand);
  display: flex; align-items: center; justify-content: center;
}
.contact-detail__icon svg { width: 19px; height: 19px; }
.contact-detail__label {
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint);
}
.contact-detail__value {
  font-family: var(--font-display); font-size: 1.0625rem; letter-spacing: .03em;
  color: var(--paper); font-weight: 500; margin-top: .3rem; display: block;
  line-height: 1.45;
}
.contact-detail__value a:hover { color: var(--sand); }

.trust-note {
  border: 1px solid var(--line-dark);
  background: var(--ink-3);
  padding: 1.5rem 1.75rem; font-size: .9375rem; color: var(--paper-dark);
  display: flex; gap: 1rem; align-items: flex-start;
  line-height: 1.65;
}
.trust-note svg { width: 20px; height: 20px; color: var(--sand); flex: none; margin-top: .15rem; }

/* Form */
.form-card {
  background: var(--ink-3);
  border: 1px solid var(--line-dark);
  padding: clamp(1.75rem, 1rem + 2vw, 3rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: .55rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--paper-dark);
}
.field label .req { color: var(--sand); }
.field input, .field textarea {
  width: 100%;
  padding: .95rem 1rem;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 0;
  font-size: 1rem;
  color: var(--paper);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.field input::placeholder, .field textarea::placeholder { color: #6B655A; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sand); background: var(--ink);
}
.field textarea { resize: vertical; min-height: 130px; }
.field__error { font-family: var(--font-mono); font-size: .75rem; color: #C96F4A; display: none; }
.field.has-error input, .field.has-error textarea { border-color: #A4593B; }
.field.has-error .field__error { display: block; }

.form-foot {
  margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  align-items: center; justify-content: space-between;
}
.form-foot small { color: var(--faint); font-size: .8125rem; max-width: 34ch; font-family: var(--font-mono); line-height: 1.5; }
.form-foot .btn--accent { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.form-foot .btn--accent:hover { background: var(--sand); border-color: var(--sand); }
.form-status {
  margin-top: 1.5rem; padding: 1rem 1.25rem;
  border: 1px solid var(--khaki); background: rgba(110,104,69,.18); color: #C9C4A6;
  font-size: .9375rem; display: none; align-items: center; gap: .65rem;
}
.form-status.is-visible { display: flex; }
.form-status svg { width: 18px; height: 18px; flex: none; }

/* -------------------------------------------------------------------------
   17. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: #100F0D;
  color: var(--faint);
  border-top: 1px solid var(--line-dark);
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand__name { color: var(--paper); }
.footer-brand .brand__mark { width: 38px; height: 38px; }
.footer-brand p { margin-top: 1.4rem; font-size: .9063rem; line-height: 1.7; max-width: 38ch; color: var(--faint); }
.footer-col h4 {
  font-family: var(--font-mono); color: var(--paper); font-size: .6875rem;
  letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin-bottom: 1.4rem;
}
.footer-col ul li + li { margin-top: .85rem; }
.footer-col a { font-size: .9063rem; color: var(--faint); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--sand); }
.footer-contact li { font-size: .9063rem; margin-bottom: .95rem; display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--sand); flex: none; margin-top: .25rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  padding-top: 2rem;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em;
  color: #6B655A;
}
.footer-bottom__links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--sand); }

/* -------------------------------------------------------------------------
   18. Project feature rows (Projects portfolio page)
   ------------------------------------------------------------------------- */
.project-feature {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 1rem + 4vw, 6rem);
  align-items: center;
  padding-block: clamp(3rem, 2rem + 3vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}
.project-feature:first-of-type { border-top: 1px solid var(--line); }
.project-feature.is-hidden { display: none; }
.project-feature:nth-child(even) .project-feature__media { order: 2; }
.project-feature__media {
  position: relative; aspect-ratio: 4 / 3;
  overflow: hidden; background: var(--concrete-2);
  border: 1px solid var(--line-strong);
}
.project-feature__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.25) contrast(1.05);
  transition: transform 1.1s var(--ease), filter var(--t-med);
}
.project-feature:hover .project-feature__media img { transform: scale(1.035); filter: grayscale(0) contrast(1.05); }
.project-feature__media::before, .project-feature__media::after {
  content: ""; position: absolute; width: 26px; height: 26px; z-index: 1;
  border: 0 solid var(--paper);
}
.project-feature__media::before { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.project-feature__media::after  { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }
.project-feature__index {
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 500;
  letter-spacing: .14em; color: var(--rust); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.project-feature__index .cat {
  font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: .4rem .8rem;
}
.project-feature h2 { font-size: var(--fs-h3); margin-bottom: 1.1rem; }
.project-feature__body p { color: var(--muted); max-width: 50ch; }
.project-feature__scope { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.project-feature__scope-label {
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem;
}
.scope-list { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; }
.scope-list li {
  display: flex; align-items: center; gap: .7rem;
  font-size: .9375rem; color: var(--ink-body);
}
.scope-list li svg { width: 15px; height: 15px; color: var(--khaki); flex: none; }

/* -------------------------------------------------------------------------
   19. Scroll reveal & motion — controlled, architectural
   ------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

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

/* -------------------------------------------------------------------------
   20. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .service-row { grid-template-columns: 70px 1fr 1.2fr auto; }
  .service-row__preview { display: none; }
}

@media (max-width: 1080px) {
  .project-grid, .testimonial-grid, .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .nav__menu, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .hero { min-height: 78svh; }
  .editorial { grid-template-columns: 1fr; }
  .editorial--media-left .editorial__media,
  .editorial__media { order: -1; aspect-ratio: 16/10; }
  .page-hero__inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .page-hero__aside { text-align: left; }
  .contact-layout { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 1.25rem; }
  .cta-band__inner { grid-template-columns: 1fr; gap: 2rem; }
  .cta-band__actions { justify-content: flex-start; }
}

@media (max-width: 880px) {
  .project-feature { grid-template-columns: 1fr; gap: 1.75rem; }
  .project-feature:nth-child(even) .project-feature__media { order: -1; }
  .project-feature__media { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  .service-row {
    grid-template-columns: 56px 1fr auto;
    grid-template-areas:
      "num title arrow"
      "num desc  arrow";
    row-gap: .6rem;
    align-items: start;
  }
  .service-row__num { grid-area: num; padding-top: .25rem; }
  .service-row__title { grid-area: title; }
  .service-row__desc { grid-area: desc; }
  .service-row__end { grid-area: arrow; align-self: center; }
}

@media (max-width: 680px) {
  .project-grid, .testimonial-grid, .feature-grid, .expertise-grid, .stats {
    grid-template-columns: 1fr;
  }
  .stat { padding-right: 0; }
  .stat + .stat { border-left: none; padding-left: 0; border-top: 1px solid var(--line-strong); margin-top: 1.25rem; }
  .form-grid { grid-template-columns: 1fr; }
  .trust-strip__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section-head--split { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .filters { width: 100%; }
  .filter-btn { flex: 1; padding-inline: .75rem; text-align: center; }
}

@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .link-arrow { align-self: flex-start; }
  .scope-list { grid-template-columns: 1fr; }
}
