/* ==========================================================================
   Brock Contracts — site stylesheet
   Joiners & Building Contractors, Crieff

   The original Brock Contracts identity, carried forward: Playfair Display
   for headings, Jost for everything read, tapped or scanned; charcoal, warm
   paper and a muted slate blue. Photography does the heavy lifting, so the
   layout gives it room and the chrome stays quiet.

   Contents
     01 Fonts            09 Services (home)      17 Project page
     02 Tokens           10 Selected work        18 Gallery, video, lightbox
     03 Base             11 Project index        19 About / local pages
     04 Layout           12 How we work          20 Contact and form
     05 Type             13 Contact band         21 Footer
     06 Buttons, links   14 Page header          22 Utilities, motion
     07 Header, menu     15 Services page
     08 Hero, intro      16 Projects page
   ========================================================================== */


/* 01 Fonts — self-hosted, SIL Open Font License (see assets/fonts/) ------- */
@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/fonts/playfair-display-variable.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('/assets/fonts/jost-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* 02 Tokens ------------------------------------------------------------------ */
:root {
  --ink:        #1c1d1f;
  --ink-2:      #2b2d31;
  --text:       #3a3c40;   /* body copy on paper: 10:1 */
  --muted:      #5a5c60;   /* secondary copy on paper: 6.3:1 */
  --paper:      #faf9f7;
  --stone:      #f0ece5;
  --line:       #dcd6c7;
  --line-soft:  #e7e1d5;
  --slate:      #3a4757;
  --slate-deep: #2c3744;
  --slate-pale: #b9c3d1;
  --on-dark:    #f4f2ee;
  --on-dark-2:  #c4c7cb;   /* secondary copy on charcoal: 9:1 */
  --on-dark-line: rgba(255,255,255,.14);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', 'Segoe UI', Arial, sans-serif;

  --fs-display: clamp(2.3rem, 1.5rem + 3.6vw, 4.6rem);
  --fs-h1:      clamp(2.2rem, 1.6rem + 2.7vw, 3.9rem);
  --fs-h2:      clamp(1.9rem, 1.4rem + 2vw, 3.1rem);
  --fs-h3:      clamp(1.3rem, 1.12rem + .7vw, 1.75rem);
  --fs-lede:    clamp(1.12rem, 1.04rem + .35vw, 1.32rem);
  --fs-body:    1.0625rem;
  --fs-sm:      .9375rem;
  --fs-label:   .8125rem;

  --gutter:  clamp(20px, 4.2vw, 56px);
  --maxw:    1340px;
  --section: clamp(64px, 7.5vw, 116px);
  --header-h: 88px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .25s;
}
@media (max-width: 959px) { :root { --header-h: 70px; } }


/* 03 Base ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
img, video, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
figure { margin: 0; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
::selection { background: var(--slate); color: #fff; }


/* 04 Layout -------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--stone { background: var(--stone); }
.section--dark  { background: var(--ink); color: var(--on-dark-2); }
.section--tight-top { padding-top: calc(var(--section) * .55); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px 48px;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
.section-head h2 { margin: 0; max-width: 16em; }
.section-head__intro { margin: 0; max-width: 34rem; font-size: var(--fs-lede); line-height: 1.6; color: var(--muted); }
.section--dark .section-head__intro { color: var(--on-dark-2); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .section-head--split .label { grid-column: 1 / -1; }
  .section-head--split .section-head__aside { justify-self: end; text-align: left; }
}


/* 05 Type ---------------------------------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.012em;
  line-height: 1.12;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}
h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.018em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
.section--dark :is(h1, h2, h3) { color: var(--on-dark); }

.lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--text); }

/* A small label with a short rule after it — the original site's device. */
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
}
.label::after { content: ''; flex: 0 0 36px; height: 1px; background: currentColor; opacity: .45; }
.label--light, .section--dark .label { color: var(--slate-pale); }


/* 06 Buttons and links ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--slate); }
.btn--slate { background: var(--slate); color: #fff; }
.btn--slate:hover { background: var(--slate-deep); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--stone); }
.btn--outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--slate); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--on-dark); }

.text-link, .prose a:not(.btn) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--slate);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.text-link:hover, .prose a:not(.btn):hover { color: var(--slate); text-decoration-thickness: 2px; }


/* 07 Header and menu --------------------------------------------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  padding: 12px 18px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Every page opens on a dark band, so the header starts transparent with the
   white mark and turns to paper once the page scrolls. */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.16);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled,
.site-header.nav-open {
  background: var(--paper);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 14px rgba(28,29,31,.06);
}
.site-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { position: relative; display: block; flex: none; width: 170px; height: 54px; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .3s var(--ease); }
.brand__ink { opacity: 0; }
:is(.is-scrolled, .nav-open) .brand__light { opacity: 0; }
:is(.is-scrolled, .nav-open) .brand__ink { opacity: 1; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(22px, 2.6vw, 40px); margin: 0; padding: 0; list-style: none; }
.nav__link {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link:hover { color: #fff; }
.is-scrolled .nav__link { color: var(--ink-2); }
.is-scrolled .nav__link:hover, .is-scrolled .nav__link[aria-current="page"] { color: var(--slate); }

.header-actions { display: flex; align-items: center; gap: 24px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 1rem; font-weight: 500; letter-spacing: .02em;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.header-phone svg { width: 17px; height: 17px; }
.header-phone:hover { text-decoration: underline; text-underline-offset: .25em; }
.is-scrolled .header-phone { color: var(--ink); }
.header-quote { min-height: 46px; padding: 0 22px; }
.site-header:not(.is-scrolled) .header-quote { background: #fff; color: var(--ink); }
.site-header:not(.is-scrolled) .header-quote:hover { background: var(--stone); }

.header-mobile { display: none; margin-left: auto; align-items: center; gap: 8px; }
.header-call, .menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 14px;
  border: 1px solid rgba(255,255,255,.5);
  background: transparent;
  color: #fff;
  font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.header-call svg { width: 17px; height: 17px; }
.menu-btn { width: 46px; padding: 0; }
:is(.is-scrolled, .nav-open) :is(.header-call, .menu-btn) { color: var(--ink); border-color: var(--line); }
:is(.is-scrolled, .nav-open) .header-call { background: var(--ink); border-color: var(--ink); color: #fff; }

.menu-icon { position: relative; display: block; width: 20px; height: 12px; }
.menu-icon::before, .menu-icon::after, .menu-icon span {
  content: ''; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease), top .2s var(--ease);
}
.menu-icon::before { top: 0; } .menu-icon span { top: 5px; } .menu-icon::after { top: 10px; }
.nav-open .menu-icon::before { top: 5px; transform: rotate(45deg); }
.nav-open .menu-icon span { opacity: 0; }
.nav-open .menu-icon::after { top: 5px; transform: rotate(-45deg); }

/* Phone menu: drops down under the header, sized to its content. */
.mobile-nav {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 2;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 30px -14px rgba(28,29,31,.3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s; }
.mobile-nav__list { margin: 0; padding: 6px 0; list-style: none; }
.mobile-nav__list a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.mobile-nav__list a[aria-current="page"] { color: var(--slate); }
.mobile-nav__list svg { width: 18px; height: 18px; color: var(--slate); }
.mobile-nav__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 0 10px; }
.mobile-nav__actions .btn { padding: 0 12px; }
.mobile-nav__meta { margin: 0; padding-bottom: 18px; font-size: var(--fs-sm); color: var(--muted); }
.nav-backdrop {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 1;
  background: rgba(20,21,23,.45);
  opacity: 0; visibility: hidden;
  transition: opacity .22s var(--ease), visibility 0s linear .22s;
}
.nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .22s var(--ease), visibility 0s; }

@media (max-width: 1180px) { .header-phone span { display: none; } }
@media (max-width: 959px) {
  .nav, .header-actions { display: none; }
  .header-mobile { display: flex; }
  .brand { width: 140px; height: 46px; }
}
@media (min-width: 960px) { .mobile-nav, .nav-backdrop { display: none; } }
@media (max-width: 359px) {
  .brand { width: 118px; }
  .header-call span { display: none; }
  .header-call { width: 46px; padding: 0; }
  .mobile-nav__actions { grid-template-columns: 1fr; }
}


/* 08 Hero and introduction --------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
}
.hero__media { position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { display: none; }
.hero__copy { position: relative; padding: 30px 0 34px; }
.hero h1 {
  max-width: 11em;
  margin-bottom: 18px;
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -.022em;
  color: #fff;
}
.hero__lede { max-width: 33rem; margin-bottom: 26px; font-size: var(--fs-lede); line-height: 1.55; color: #e2e4e7; }
.hero__actions .btn { flex: 1 1 200px; }
.hero__inset { display: none; }
.hero__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--on-dark-line);
  font-size: var(--fs-sm); color: var(--on-dark-2);
}
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; padding: 0; list-style: none; }
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts li::before { content: ''; width: 5px; height: 5px; background: var(--slate-pale); }
.hero__caption { color: var(--on-dark-2); text-decoration: none; }
.hero__caption:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }

/* Phones: the whole photograph first, so the house is never hidden behind
   words, then the headline on charcoal. */
@media (max-width: 959px) {
  .hero { padding-top: 0; }
  .hero__media { aspect-ratio: 5 / 4; max-height: 62vh; }
  .hero__media::after { content: ''; position: absolute; inset: 0 0 auto; height: 110px; background: linear-gradient(to bottom, rgba(16,17,19,.6), rgba(16,17,19,0)); }
  .hero__facts li:nth-child(3) { display: none; }
}

/* Desktop: a cinematic full-width frame, the words set bottom-left, and a
   second photograph — the joinery — breaking the lower edge. */
@media (min-width: 960px) {
  .hero { min-height: min(100svh, 940px); display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__media { position: absolute; inset: 0; }
  .hero__media img { object-position: 60% 45%; }
  .hero__shade {
    display: block; position: absolute; inset: 0;
    background:
      linear-gradient(to bottom, rgba(16,17,19,.55) 0, rgba(16,17,19,0) 170px),
      linear-gradient(95deg, rgba(16,17,19,.82) 0%, rgba(16,17,19,.55) 34%, rgba(16,17,19,.08) 64%, rgba(16,17,19,0) 80%),
      linear-gradient(to top, rgba(16,17,19,.7) 0%, rgba(16,17,19,0) 34%);
  }
  .hero__content { position: relative; z-index: 1; }
  .hero__copy { padding: calc(var(--header-h) + 60px) 0 clamp(40px, 5vw, 64px); max-width: 44rem; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__inset {
    display: block; position: absolute; z-index: 2;
    right: var(--gutter); bottom: calc(-1 * clamp(70px, 7vw, 110px));
    width: clamp(220px, 20vw, 300px);
  }
  .hero__inset img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 24px 50px -24px rgba(0,0,0,.55); }
  .hero__inset figcaption { margin-top: 10px; font-size: .8125rem; color: var(--muted); }
  .hero__bar { padding-right: calc(clamp(220px, 20vw, 300px) + 40px); }
}
@media (min-width: 1500px) {
  .hero__inset { right: calc((100% - var(--maxw)) / 2); }
}

/* Introduction */
.intro { padding-top: calc(var(--section) * .9); }
.intro__grid { display: grid; gap: 28px 64px; }
.intro__statement {
  margin: 0;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -.015em;
  max-width: 21em;
}
.intro__body p { color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: clamp(32px, 4vw, 52px) 0 0; border-top: 1px solid var(--ink); }
.fact { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.fact dt { margin-bottom: 6px; font-size: var(--fs-label); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.fact dd { margin: 0; font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight: 600; line-height: 1.2; color: var(--ink); }
.fact dd small { display: block; margin-top: 4px; font-family: var(--sans); font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }
@media (min-width: 960px) {
  .intro__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .intro__grid .label { grid-column: 1 / -1; margin-bottom: 0; }
  .intro__body { padding-bottom: 6px; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
}


/* 09 Services (home) ---------------------------------------------------------------- */
.svc { display: grid; gap: clamp(36px, 4vw, 56px); }
.svc a { text-decoration: none; }
.svc-media { position: relative; overflow: hidden; background: var(--line-soft); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
a:hover > .svc-media img, a:focus-visible > .svc-media img { transform: scale(1.03); }
.svc h3 a:hover { color: var(--slate); }
.svc-num { display: block; margin-bottom: 10px; font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em; color: var(--slate); }

/* Lead service: large portrait photograph with a full description. */
.svc-lead { display: grid; gap: 26px; }
.svc-lead .svc-media { aspect-ratio: 4 / 5; }
.svc-lead h3 { font-size: var(--fs-h2); margin-bottom: 16px; }
.svc-lead p { color: var(--text); font-size: var(--fs-lede); line-height: 1.6; max-width: 32rem; }
.svc-points { margin: 22px 0 26px; padding: 0; list-style: none; border-top: 1px solid var(--line); max-width: 32rem; }
.svc-points li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-body); color: var(--ink-2); }

/* Two supporting services at medium scale. */
.svc-pair { display: grid; gap: 36px 32px; }
.svc-pair .svc-media { aspect-ratio: 3 / 2; margin-bottom: 18px; }
.svc-card h3 { margin-bottom: 8px; }
.svc-card p { margin: 0; color: var(--text); max-width: 34rem; }

/* Four more at a smaller scale, upright photographs. */
.svc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
.svc-row .svc-media { aspect-ratio: 4 / 5; margin-bottom: 14px; }
.svc-row h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); margin-bottom: 6px; }
.svc-row p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--text); }

.svc-note {
  display: grid; gap: 14px 40px; align-items: center;
  padding: 26px 0 0; border-top: 1px solid var(--ink);
}
.svc-note h3 { margin: 0; font-size: var(--fs-h3); }
.svc-note p { margin: 0; color: var(--text); max-width: 40rem; }

@media (max-width: 599px) {
  .svc-row p { display: none; }
}
@media (min-width: 700px) {
  .svc-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .svc-lead { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
  .svc-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
  .svc-note { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; }
}


/* 10 Selected work (home) ------------------------------------------------------------- */
.work-list { display: grid; gap: clamp(64px, 8vw, 120px); }
.feature { display: grid; gap: 24px; }
.feature a { text-decoration: none; }
.feature__images { display: grid; gap: 12px; }
.feature__images figure { position: relative; overflow: hidden; background: var(--line-soft); }
.feature__images img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.feature__images a:hover img { transform: scale(1.025); }
.feature__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.feature__meta span + span::before { content: ''; display: inline-block; width: 18px; height: 1px; margin-right: 16px; vertical-align: middle; background: currentColor; opacity: .5; }
.feature__title { margin: 0 0 14px; font-size: var(--fs-h2); }
.feature__title a:hover { color: var(--slate); }
.feature__summary { max-width: 32rem; margin-bottom: 22px; font-size: var(--fs-lede); line-height: 1.6; color: var(--text); }

/* Trio: one large landscape photograph with two smaller ones stacked beside it. */
.feature--trio .feature__images { grid-template-columns: minmax(0, 1fr); }
.feature--trio .feature__images figure:first-child { aspect-ratio: 3 / 2; }
.feature--trio .feature__images figure:not(:first-child) { aspect-ratio: 5 / 4; }
.feature--trio .feature__images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature--trio .feature__images figure:first-child { grid-column: 1 / -1; }

/* Portraits: three upright photographs in a row, the text beside them. */
.feature--portraits .feature__images { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature--portraits .feature__images figure { aspect-ratio: 3 / 4; }
.feature--portraits .feature__images figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }

.feature figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 14px 10px;
  background: linear-gradient(to top, rgba(16,17,19,.7), rgba(16,17,19,0));
  font-size: .8125rem; color: #fff;
}

@media (min-width: 700px) {
  .feature--portraits .feature__images figure:first-child { grid-column: auto; aspect-ratio: 3 / 4; }
}
@media (min-width: 960px) {
  .feature { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: end; }
  .feature--trio .feature__images { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; }
  .feature--trio .feature__images figure:first-child { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; min-height: 100%; }
  .feature--trio .feature__images figure:not(:first-child) { aspect-ratio: 4 / 3; }
  .feature--portraits { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .feature--portraits .feature__text { order: -1; }
  .feature__text { padding-bottom: 8px; }
}


/* 11 Project index ---------------------------------------------------------------------- */
.index { margin-top: clamp(64px, 8vw, 112px); }
.index__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 18px; }
.index__head h3 { margin: 0; font-size: var(--fs-h3); }
.index__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.index__row { border-bottom: 1px solid var(--line); }
.index__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: center;
  padding: 18px 0;
  text-decoration: none;
  color: var(--ink);
  transition: padding-left .35s var(--ease), background-color .35s var(--ease);
}
.index__title { font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); font-weight: 600; line-height: 1.2; }
.index__detail { grid-column: 1; font-size: var(--fs-sm); color: var(--muted); }
.index__arrow { grid-row: 1 / span 2; grid-column: 2; width: 20px; height: 20px; color: var(--slate); transition: transform .3s var(--ease); }
.index__status { display: inline-block; margin-left: 10px; padding: 2px 8px; border: 1px solid var(--slate); font-family: var(--sans); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; color: var(--slate); }
.index__link:hover .index__arrow { transform: translateX(5px); }
.index__link:hover .index__title { color: var(--slate); }
@media (min-width: 800px) {
  .index__link { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr) 28px; padding: 22px 0; }
  .index__detail { grid-column: auto; font-size: var(--fs-body); }
  .index__arrow { grid-row: auto; grid-column: auto; justify-self: end; }
  .index__link:hover { padding-left: 10px; }
}


/* 12 How we work ---------------------------------------------------------------------------- */
.approach { display: grid; gap: 40px 72px; }
.approach__media { aspect-ratio: 4 / 5; overflow: hidden; max-height: 640px; }
.approach__media img { width: 100%; height: 100%; object-fit: cover; }
.approach__media figcaption { margin-top: 10px; font-size: .8125rem; color: var(--on-dark-2); }
.approach h2 { margin-bottom: 18px; }
.approach__intro { max-width: 34rem; font-size: var(--fs-lede); line-height: 1.6; color: var(--on-dark-2); }
.steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--on-dark-line); }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 16px;
  padding: 22px 0; border-bottom: 1px solid var(--on-dark-line);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1;
  color: var(--slate-pale);
  font-variant-numeric: lining-nums;
}
.step h3 { margin: 2px 0 6px; font-size: 1.3rem; color: var(--on-dark); }
.step p { margin: 0; color: var(--on-dark-2); }
@media (max-width: 959px) {
  .approach__media { aspect-ratio: 16 / 10; max-height: none; }
}
@media (min-width: 960px) {
  .approach { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .approach__media { position: sticky; top: calc(var(--header-h) + 32px); }
}


/* 13 Contact band ---------------------------------------------------------------------------- */
.contact-band { display: grid; gap: 40px 72px; }
.contact-band h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.7rem); margin-bottom: 18px; max-width: 12em; }
.contact-band__intro { max-width: 32rem; font-size: var(--fs-lede); line-height: 1.6; color: var(--text); margin-bottom: 28px; }
.contact-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.contact-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list__label { font-size: var(--fs-label); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.contact-list__value { min-width: 0; overflow-wrap: anywhere; font-size: 1.125rem; color: var(--ink); }
.contact-list a.contact-list__value { text-decoration: none; }
.contact-list a.contact-list__value:hover { color: var(--slate); text-decoration: underline; text-underline-offset: .2em; }
.contact-list__phone { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); font-weight: 600; line-height: 1.1; }
.contact-list small { display: block; margin-top: 4px; font-size: var(--fs-sm); color: var(--muted); }
.contact-list small a { color: var(--ink); }
@media (max-width: 479px) {
  .contact-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (min-width: 960px) {
  .contact-band { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
}


/* 14 Page header (inner pages) --------------------------------------------------------------- */
.page-header {
  background: var(--ink);
  color: var(--on-dark-2);
  padding: calc(var(--header-h) + clamp(44px, 6vw, 88px)) 0 clamp(44px, 5.5vw, 80px);
}
.page-header h1 { margin: 0; color: #fff; max-width: 14em; }
.page-header__grid { display: grid; gap: 18px 64px; }
.page-header .lede { margin: 0; color: var(--on-dark-2); max-width: 34rem; }
@media (min-width: 960px) { .page-header__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }

.page-header--image { position: relative; padding-bottom: 0; }
.page-header__image { margin-top: clamp(36px, 4.5vw, 64px); position: relative; }
.page-header__image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.page-header__image::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: var(--paper); z-index: -1; }
.page-header--image + .section { padding-top: clamp(48px, 5vw, 80px); }
@media (max-width: 699px) { .page-header__image img { aspect-ratio: 4 / 3; } }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.breadcrumb a { color: var(--on-dark-2); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.breadcrumb [aria-current] { color: #fff; }


/* 15 Services page ----------------------------------------------------------------------------- */
.svc-page { display: grid; gap: clamp(64px, 8vw, 112px); }
.svc-block { display: grid; gap: 26px clamp(40px, 6vw, 96px); align-items: center; }
.svc-block__media { overflow: hidden; background: var(--line-soft); }
.svc-block__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-block h2 { font-size: clamp(1.7rem, 1.35rem + 1.4vw, 2.5rem); margin-bottom: 14px; }
.svc-block p { color: var(--text); max-width: 34rem; }
.svc-block .svc-points { margin-top: 18px; }
@media (min-width: 900px) {
  .svc-block { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .svc-block:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .svc-block:nth-child(even) .svc-block__media { order: 2; }
  .svc-block__media--upright img { aspect-ratio: 4 / 5; max-height: 640px; }
}
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(255,255,255,.3); color: var(--on-dark); text-decoration: none;
  font-size: .875rem; font-weight: 500; letter-spacing: .06em;
}
.jump a:hover { border-color: #fff; }


/* 16 Projects page ------------------------------------------------------------------------------ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 48px); }
.filter-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 18px;
  border: 1px solid var(--line); background: transparent;
  font-size: .875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-count { font-size: .75rem; color: var(--muted); }
.filter-btn[aria-pressed="true"] .filter-count { color: var(--slate-pale); }

.project-grid { display: grid; gap: clamp(48px, 5vw, 72px) 32px; }
.project-card { position: relative; display: flex; flex-direction: column; }
.project-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line-soft); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project-card__body { padding-top: 18px; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.project-card__meta span + span::before { content: ''; display: inline-block; width: 16px; height: 1px; margin-right: 16px; vertical-align: middle; background: currentColor; opacity: .5; }
.project-card__title { margin: 0 0 10px; font-size: clamp(1.45rem, 1.2rem + 1vw, 2.1rem); }
.project-card__title a { color: inherit; text-decoration: none; }
.project-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.project-card__summary { margin: 0 0 16px; color: var(--text); max-width: 36rem; }
.project-card__more { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 4px; align-self: flex-start; }
.project-card__more svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.project-card__status { position: absolute; left: 14px; top: 14px; padding: 5px 10px; background: var(--paper); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.project-card:hover .project-card__media img { transform: scale(1.03); }
.project-card:hover .project-card__title { color: var(--slate); }
.project-card:hover .project-card__more svg { transform: translateX(4px); }
.project-card__title a:focus-visible { outline: none; }
.project-card:focus-within { outline: 2px solid var(--slate); outline-offset: 6px; }
@media (min-width: 760px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Every third project runs the full width with its caption beside it,
     so the page has a rhythm rather than an even grid. */
  .project-grid > .project-card:nth-child(3n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: end; }
  .project-grid > .project-card:nth-child(3n+1) .project-card__media { aspect-ratio: 16 / 9; }
  .project-grid > .project-card:nth-child(3n+1) .project-card__body { padding: 0 0 6px; }
}

.empty-state { grid-column: 1 / -1; padding: 40px; border: 1px dashed var(--line); text-align: center; color: var(--muted); }
.empty-state h3 { font-size: 1.3rem; }
.empty-state p { margin: 0; }


/* 17 Project page ------------------------------------------------------------------------------- */
.case-header { background: var(--ink); color: var(--on-dark-2); padding: calc(var(--header-h) + clamp(40px, 5vw, 76px)) 0 0; }
.case-header h1 { color: #fff; margin: 0 0 20px; max-width: 14em; }
.case-header__summary { max-width: 36rem; margin: 0; font-size: var(--fs-lede); line-height: 1.6; color: var(--on-dark-2); }
.case-header__grid { display: grid; gap: 28px 64px; padding-bottom: clamp(36px, 4.5vw, 60px); }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; border-top: 1px solid var(--on-dark-line); }
.spec > div { padding: 14px 0; border-bottom: 1px solid var(--on-dark-line); }
.spec dt { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-pale); }
.spec dd { margin: 4px 0 0; color: #fff; font-size: 1.05rem; }
@media (min-width: 960px) { .case-header__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }

.example-notice { margin: 18px 0 0; padding: 12px 16px; border-left: 2px solid var(--slate-pale); background: rgba(255,255,255,.06); color: #fff; font-size: var(--fs-sm); }

/* Lead photograph: runs out of the dark header into the page. The
   description and the details panel sit beneath it; an upright lead
   photograph instead sits beside them, so it is never cropped to a
   letterbox. */
.case-main {
  --band: clamp(90px, 12vw, 180px);
  background: linear-gradient(to bottom, var(--ink) 0, var(--ink) var(--band), var(--paper) var(--band));
  padding-bottom: var(--section);
}
.case-body { display: grid; gap: 40px 72px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "desc" "details"; }
.case-lead { grid-area: lead; }
.case-description-wrap { grid-area: desc; }
.case-details { grid-area: details; }
.case-lead__frame { overflow: hidden; background: var(--line-soft); }
.case-lead__frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.case--portrait .case-main { background: var(--paper); padding-top: clamp(40px, 5vw, 72px); }
.case--portrait .case-lead__frame img { aspect-ratio: 4 / 5; }
@media (max-width: 699px) { .case-lead__frame img { aspect-ratio: 4 / 3; } }

.case-description p { color: var(--text); max-width: 40rem; }
.case-description p:first-child { font-family: var(--serif); font-size: clamp(1.35rem, 1.15rem + .8vw, 1.85rem); font-weight: 500; line-height: 1.35; color: var(--ink); }
.case-details { align-self: start; padding: 28px; background: var(--stone); }
.case-details h2 { font-size: 1.3rem; margin-bottom: 14px; }
.case-details dl { margin: 0 0 22px; }
.case-details dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.case-details dt { font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; color: var(--slate); padding-top: 3px; }
.case-details dd { margin: 0; color: var(--ink); }
.case-details .btn { width: 100%; }
.case-details__note { margin: 12px 0 0; text-align: center; font-size: var(--fs-sm); color: var(--muted); }
.case-details__note a { color: var(--ink); }
@media (min-width: 960px) {
  .case-body { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-areas: "lead lead" "desc details"; }
  .case-details { position: sticky; top: calc(var(--header-h) + 24px); }
  .case--portrait .case-body { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "lead desc" "lead details"; align-items: start; }
  .case--portrait .case-details { position: static; }
}

.next-project { display: block; position: relative; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; }
.next-project__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: opacity .6s var(--ease), transform 1s var(--ease); }
.next-project__inner { position: relative; display: grid; gap: 6px; padding-block: clamp(56px, 8vw, 120px); }
.next-project__label { font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-pale); }
.next-project__title { display: flex; align-items: center; gap: 18px; font-family: var(--serif); font-size: var(--fs-h1); font-weight: 600; line-height: 1.05; color: #fff; }
.next-project__title svg { width: clamp(28px, 3vw, 44px); height: clamp(28px, 3vw, 44px); flex: none; transition: transform .3s var(--ease); }
.next-project:hover .next-project__img { opacity: .62; transform: scale(1.02); }
.next-project:hover .next-project__title svg { transform: translateX(6px); }
.prev-project { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--on-dark-2); font-size: var(--fs-sm); text-decoration: none; }
.prev-project:hover { color: #fff; text-decoration: underline; }
.prev-project svg { width: 16px; height: 16px; }

.not-found { padding: calc(var(--header-h) + clamp(56px, 7vw, 110px)) 0 clamp(64px, 8vw, 120px); background: var(--ink); color: var(--on-dark-2); }
.not-found h1 { color: #fff; max-width: 14em; }
.not-found .lede { color: var(--on-dark-2); max-width: 34rem; margin-bottom: 28px; }


/* 18 Gallery, video, lightbox --------------------------------------------------------------------- */
.ratio { position: relative; overflow: hidden; }
.ratio > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio--3x2 { aspect-ratio: 3 / 2; } .ratio--4x3 { aspect-ratio: 4 / 3; } .ratio--16x9 { aspect-ratio: 16 / 9; }
.ratio--2x3 { aspect-ratio: 2 / 3; } .ratio--3x4 { aspect-ratio: 3 / 4; } .ratio--4x5 { aspect-ratio: 4 / 5; } .ratio--9x16 { aspect-ratio: 9 / 16; }

.gallery-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .gallery-item--wide { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .gallery-grid--upright { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
}
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: var(--line-soft); cursor: zoom-in; text-align: left; }
.gallery-item img { transition: transform .9s var(--ease); }
.gallery-item:hover img { transform: scale(1.02); }
.gallery-item__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 16px 12px;
  background: linear-gradient(to top, rgba(16,17,19,.72), rgba(16,17,19,0));
  color: #fff; font-size: var(--fs-sm); line-height: 1.4;
}
.gallery-item__zoom {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center;
  width: 38px; height: 38px; background: rgba(250,249,247,.94); color: var(--ink);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.gallery-item__zoom svg { width: 18px; height: 18px; }
.gallery-item:hover .gallery-item__zoom, .gallery-item:focus-visible .gallery-item__zoom { opacity: 1; }
@media (hover: none) { .gallery-item__zoom { opacity: 1; } }

#project-video-section { padding-bottom: var(--section); }
#project-video-section .section-head { margin-bottom: 24px; }
#project-video-section .eyebrow { margin: 0; font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.project-video { max-width: 960px; }
.project-video--upright { max-width: 400px; }
.project-video__player { width: 100%; height: auto; background: #000; }
.project-video__caption { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 64px 16px; background: rgba(16,17,19,.95); }
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lightbox__img { max-width: 100%; max-height: calc(100% - 56px); object-fit: contain; }
.lightbox__caption { margin-top: 14px; color: var(--on-dark); font-size: var(--fs-sm); text-align: center; }
.lightbox__counter { margin: 6px 0 0; color: var(--on-dark-2); font-size: .8125rem; }
.lightbox__btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); cursor: pointer; }
.lightbox__btn svg { width: 22px; height: 22px; stroke: #fff; }
.lightbox__btn:hover { background: rgba(255,255,255,.16); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 599px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; } }


/* 19 About / local pages ---------------------------------------------------------------------------- */
.split { display: grid; gap: 40px clamp(40px, 6vw, 96px); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .split--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .sticky { position: sticky; top: calc(var(--header-h) + 32px); }
}
.figure img { width: 100%; object-fit: cover; }
.figure--upright img { aspect-ratio: 4 / 5; }
.figure figcaption { margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.prose { max-width: 40rem; }
.prose h2 { font-size: clamp(1.55rem, 1.3rem + 1vw, 2.15rem); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose .statement { font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + .9vw, 1.95rem); font-weight: 500; line-height: 1.35; color: var(--ink); }
.faq { margin: 12px 0 0; border-top: 1px solid var(--ink); }
.faq dt { padding-top: 18px; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.faq dd { margin: 8px 0 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--text); }


/* 20 Contact page and form ---------------------------------------------------------------------------- */
.contact-page { display: grid; gap: 48px 72px; }
@media (min-width: 960px) { .contact-page { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.contact-page > * { min-width: 0; }
.form-card { padding: clamp(24px, 3.5vw, 44px); background: var(--stone); }
.form-card h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.2rem); margin-bottom: 10px; }
.form-card > p { color: var(--text); }
.enquiry { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 22px; }
.enquiry__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.field { min-width: 0; }
@media (min-width: 600px) { .enquiry__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.field__label span { font-weight: 400; color: var(--muted); }
.field__input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid #c9c1b0; border-radius: 0; background: #fff;
  font-size: 1rem; line-height: 1.4;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field__input:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(58,71,87,.2); }
.field__input[aria-invalid="true"] { border-color: #a4332b; }
textarea.field__input { min-height: 150px; resize: vertical; }
select.field__input {
  appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a4757' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field__error { margin: 0; font-size: var(--fs-sm); color: #a4332b; }
.enquiry__foot { display: grid; gap: 12px; justify-items: start; }
.enquiry__note { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.enquiry__note a { color: var(--ink); }
.enquiry__status { margin: 0; padding: 12px 16px; border-left: 2px solid var(--slate); background: #fff; font-size: var(--fs-sm); }
@media (max-width: 479px) { .enquiry__foot .btn { width: 100%; } }


/* 21 Footer -------------------------------------------------------------------------------------------- */
.site-footer { background: #151618; color: var(--on-dark-2); padding: clamp(56px, 6vw, 88px) 0 28px; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { width: 170px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 24rem; margin: 0 0 16px; }
.footer-phone { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: #fff; text-decoration: none; }
.footer-phone:hover { text-decoration: underline; text-underline-offset: .2em; }
.site-footer h2 { margin: 0 0 16px; font-family: var(--sans); font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--on-dark-line); font-size: .8125rem; color: #9ea1a5; }
.footer-bottom a { color: #9ea1a5; }
.footer-credit { margin: 14px 0 0; font-size: .75rem; line-height: 1.45; color: #9ea1a5; }
.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); } .footer-brand { grid-column: auto; } }


/* 22 Utilities and motion --------------------------------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }
:is(.hero, .section--dark, .page-header, .case-header, .site-footer, .next-project, .lightbox, .not-found) :focus-visible { outline-color: #fff; }
.site-header:not(.is-scrolled) :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .mobile-nav, .nav-backdrop, .site-footer { display: none; } .hero, .page-header, .case-header { color: #000; background: none; } }

@media (max-width: 599px) {
  /* The trailing rule strands itself when a label wraps on a phone. */
  .label::after { display: none; }
}

/* An upright video sits beside its heading rather than leaving a wide
   empty column to its right. */
@media (min-width: 900px) {
  #project-video-section .container:has(.project-video--upright) {
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 0 clamp(40px, 6vw, 96px);
    align-items: end;
  }
  #project-video-section .container:has(.project-video--upright) .section-head { order: 2; margin-bottom: 40px; }
}

.enquiry__foot { grid-template-columns: minmax(0, 1fr); }
.enquiry__note { overflow-wrap: anywhere; }
@media (max-width: 479px) {
  .enquiry__foot .btn { white-space: normal; text-align: center; padding: 12px 18px; }
  .form-card { padding: 22px 18px; }
}
