/* ==========================================================================
   Design & Construct — site styles
   Palette: drafting film, ink, blueline. Type: Archivo (variable width).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@property --pos {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

:root {
  /* colour */
  --film: #EDF0EE;
  --sheet: #FAFBFA;
  --ink: #172330;
  --ink-hover: #26394C;
  --graphite: #4B5865;
  --blueline: #2550B0;
  --nonphoto: #A9D3E6;
  --rule: rgba(23, 35, 48, 0.14);
  --rule-strong: rgba(23, 35, 48, 0.34);
  --on-ink: #EDF0EE;
  --on-ink-2: #B7C1CA;
  --on-ink-rule: rgba(237, 240, 238, 0.16);
  --ok: #2F6B3A;
  --error: #A12C1F;

  /* type */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --t-sm: 0.875rem;                                   /* 14 */
  --t-base: 1.0625rem;                                /* 17 */
  --t-md: 1.125rem;                                   /* 18 */
  --t-lg: 1.3125rem;                                  /* 21 */
  --t-xl: clamp(1.625rem, 1.25rem + 1.4vw, 2.25rem);  /* 26–36 */
  --t-2xl: clamp(2rem, 1.3rem + 2.6vw, 3rem);         /* 32–48 */
  --t-3xl: clamp(2.375rem, 1.05rem + 5vw, 4.5rem);    /* 38–72 */

  /* layout */
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 72px;
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--film);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blueline); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

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

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--film);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Placeholder content still to be confirmed (search the code for class="ph") */
mark.ph {
  background: none;
  color: inherit;
  border-bottom: 1.5px dashed currentColor;
  cursor: help;
}

/* ---------------------------------------------------------------- type */
.display {
  font-size: var(--t-3xl);
  font-stretch: 125%;
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.022em;
}
.display .line { display: block; }

.h2 {
  font-size: var(--t-2xl);
  font-stretch: 118%;
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

.h3 {
  font-size: var(--t-lg);
  font-stretch: 104%;
  font-weight: 620;
  line-height: 1.3;
}

.lead {
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--graphite);
  max-width: 34em;
}

.intro {
  font-size: var(--t-md);
  color: var(--graphite);
  max-width: 38em;
}

.prose p { max-width: 38em; }
.prose p + p { margin-top: 1em; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 0.7em 1.35em;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--film);
  font: inherit;
  font-size: var(--t-base);
  font-stretch: 112%;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); }

/* Outline button fills in on hover: drawn, then built. */
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--film); border-color: var(--ink); }

.btn--light { background: var(--film); color: var(--ink); border-color: var(--film); }
.btn--light:hover { background: #FFFFFF; border-color: #FFFFFF; }

.btn[disabled] { opacity: 0.6; cursor: progress; }

.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }

.text-link {
  font-weight: 600;
  font-stretch: 108%;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}
.text-link:hover { color: var(--blueline); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 240, 238, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(237, 240, 238, 0.82); backdrop-filter: blur(10px); }
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  min-height: var(--header-h);
}

.brand { display: block; flex: none; padding: 8px 0; }
.brand img { height: 52px; width: auto; }

.site-nav__list { display: flex; align-items: center; gap: 2px; }
.site-nav__list a {
  display: block;
  padding: 10px 14px;
  color: var(--ink);
  font-stretch: 108%;
  font-weight: 540;
  text-decoration: none;
}
.site-nav__list a:hover { color: var(--blueline); }
.site-nav__list a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.5em;
}
.site-nav__list .site-nav__cta a {
  margin-left: 10px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--film);
  border-radius: 2px;
}
.site-nav__list .site-nav__cta a:hover { background: var(--ink-hover); color: var(--film); }
.site-nav__list .site-nav__cta a[aria-current] { text-decoration: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px 8px 12px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-stretch: 108%;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 20px; height: 12px; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle__bars::before { top: 1px; }
.nav-toggle__bars::after { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .brand img { height: 44px; }
  .site-header__inner { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .site-nav__list { flex-wrap: wrap; padding-bottom: 12px; }
  .site-nav__list a { padding: 8px 10px 8px 0; }
  .site-nav__list .site-nav__cta a { margin-left: 4px; padding: 8px 14px; }

  .js .site-header__inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--film);
    border-bottom: 1px solid var(--rule-strong);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 24px;
  }
  .js .site-nav__list a {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
    font-size: var(--t-md);
  }
  .js .site-nav__list .site-nav__cta a {
    margin: 20px 0 0;
    padding: 14px 18px;
    border-bottom: 0;
    text-align: center;
  }
}

/* ---------------------------------------------------------------- sections */
.section { padding-block: var(--section); }
.section--sheet { background: var(--sheet); border-block: 1px solid var(--rule); }
.section--tight-top { padding-top: clamp(40px, 5vw, 64px); }
.section--tight-bottom { padding-bottom: clamp(40px, 5vw, 64px); }

.section-head {
  display: grid;
  gap: 18px;
  max-width: 780px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

/* ---------------------------------------------------------------- hero */
.hero { padding-top: clamp(36px, 5.5vw, 76px); padding-bottom: var(--section); }

.hero__text {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 28px 56px;
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 60px);
}
.hero__aside { display: grid; gap: 24px; padding-bottom: 6px; }
/* Sized from the headline column (container minus the 400px aside and 56px gap) so it always holds three lines. */
.hero .display { font-size: clamp(2.375rem, calc((100cqi - 456px) / 11.8), 4.25rem); }
.hero__aside .lead { font-size: var(--t-md); }

@media (max-width: 1080px) {
  .hero__text { grid-template-columns: minmax(0, 1fr); }
  .hero .display { font-size: clamp(2.375rem, 8cqi, 4.5rem); }
  .hero__aside .lead { font-size: var(--t-lg); }
}

/* ---------------------------------------------------------------- elevation comparison */
.elev-figure { margin: 0; }

.elev {
  --pos: 50%;
  position: relative;
  aspect-ratio: 1200 / 510;
  overflow: hidden;
  background: var(--film);
  border: 1px solid var(--rule-strong);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  cursor: ew-resize;
  --w1: 1.7; --w2: 1.1; --w3: 0.7; --w4: 0.45;
}

.elev__layer { position: absolute; inset: 0; }
.elev__svg { width: 100%; height: 100%; }
.elev__built { clip-path: inset(0 0 0 var(--pos)); }

.elev__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
  pointer-events: none;
}

.elev__knob {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 58px;
  height: 58px;
  padding: 0;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 3px solid var(--film);
  border-radius: 50%;
  background: var(--ink);
  color: var(--film);
  cursor: grab;
  touch-action: none;
}
.elev__knob:active { cursor: grabbing; }
.elev__knob .amp-mark { width: 38px; height: 38px; }
.elev__knob:focus-visible { outline: 3px solid var(--blueline); outline-offset: 2px; }

.elev__tag {
  position: absolute;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 8px;
  font-size: var(--t-sm);
  font-stretch: 110%;
  font-weight: 620;
  line-height: 1.3;
  pointer-events: none;
}
.elev__tag--design { left: 14px; color: var(--blueline); background: var(--film); border: 1px solid rgba(37, 80, 176, 0.35); }
.elev__tag--built { right: 14px; color: var(--ink); background: rgba(250, 251, 250, 0.9); border: 1px solid var(--rule); }

.tag-mark { width: 12px; height: 12px; }
.tag-mark .tm-edge { fill: none; stroke: currentColor; stroke-width: 1.5; }
.tag-mark .tm-fill { fill: currentColor; }

.elev-figure figcaption {
  margin-top: 14px;
  font-size: var(--t-sm);
  color: var(--graphite);
}

/* drawing linework */
.elev .film-bg { fill: var(--film); }
.elev .film-grid { fill: none; stroke: var(--nonphoto); stroke-width: 0.6; opacity: 0.75; }
.elev .ln { fill: none; stroke: var(--blueline); stroke-linecap: round; stroke-linejoin: round; }
.elev .w1 { stroke-width: var(--w1); }
.elev .w2 { stroke-width: var(--w2); }
.elev .w3 { stroke-width: var(--w3); }
.elev .w4 { stroke-width: var(--w4); }
.elev .mask { fill: var(--film); }
.elev .gl { fill: none; stroke: var(--blueline); stroke-width: 0.6; stroke-dasharray: 12 4 2 4; opacity: 0.5; }
.elev .gb { fill: var(--film); stroke: var(--blueline); stroke-width: 1; }
.elev .gt { fill: var(--blueline); font-size: 12px; font-weight: 600; font-stretch: 100%; }
.elev .at { fill: var(--blueline); font-size: 8.5px; font-weight: 520; font-stretch: 88%; letter-spacing: 0.07em; }
.elev .title { fill: var(--blueline); font-size: 12px; font-weight: 650; font-stretch: 100%; letter-spacing: 0.08em; }
.elev .datum { fill: var(--film); stroke: var(--blueline); stroke-width: 0.8; }
.elev .datum-fill, .elev .dot { fill: var(--blueline); }

@media (max-width: 900px) {
  .elev { aspect-ratio: 2 / 1; --w1: 2; --w2: 1.35; --w3: 0.9; --w4: 0.6; }
}
@media (max-width: 600px) {
  .elev { aspect-ratio: 16 / 11; --w1: 2.6; --w2: 1.8; --w3: 1.2; --w4: 0.8; }
  .elev__knob { width: 50px; height: 50px; }
  .elev__knob .amp-mark { width: 32px; height: 32px; }
  .elev__tag { top: 10px; font-size: 0.8125rem; padding: 4px 8px 4px 6px; }
  .elev__tag--design { left: 10px; }
  .elev__tag--built { right: 10px; }
}

/* The one orchestrated moment: the drawing draws itself, then the building slides in. */
@media (prefers-reduced-motion: no-preference) {
  .intro-anim .elev { --pos: 100%; }
  .intro-anim .elev .ln {
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
    animation: dc-draw 1.25s cubic-bezier(0.45, 0, 0.2, 1) forwards;
  }
  .intro-anim .elev .g-struct .ln { animation-delay: 0.1s; }
  .intro-anim .elev .g-detail .ln { animation-delay: 0.45s; animation-duration: 1.1s; }
  .intro-anim .elev .g-plant .ln { animation-delay: 0.7s; }
  .intro-anim .elev .g-anno .ln { animation-delay: 0.95s; animation-duration: 0.7s; }
  .intro-anim .elev .mask { fill-opacity: 0; animation: dc-fill 0.5s ease 1.25s forwards; }
  .intro-anim .elev .g-grid,
  .intro-anim .elev .g-anno text,
  .intro-anim .elev .g-anno .datum,
  .intro-anim .elev .g-anno .datum-fill,
  .intro-anim .elev .g-anno .dot { opacity: 0; animation: dc-fade 0.6s ease 0.9s forwards; }
  .intro-anim .elev .g-grid { animation-delay: 0s; }
  .intro-anim .elev__tag--design { opacity: 0; animation: dc-fade 0.4s ease 0.2s forwards; }
  .elev.is-sliding { transition: --pos 1.1s cubic-bezier(0.65, 0, 0.25, 1); }
}
@keyframes dc-draw { to { stroke-dashoffset: 0; } }
@keyframes dc-fade { to { opacity: 1; } }
@keyframes dc-fill { to { fill-opacity: 1; } }

/* ---------------------------------------------------------------- contract model */
.model {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px 64px;
  align-items: start;
}
.model .section-head { margin-bottom: 0; }
.model__figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.model__fig { display: grid; gap: 12px; padding: 20px 18px 16px; border: 1px solid var(--rule); background: var(--sheet); }
.model__fig--dc { border-color: var(--blueline); }
.model__fig figcaption { font-weight: 620; font-stretch: 108%; }
.model-art { width: 100%; height: auto; }
.model-art .node rect { fill: var(--film); stroke: var(--ink); stroke-width: 1.3; }
.model-art .node text, .model-art .q { fill: var(--ink); font-size: 13px; font-weight: 560; font-stretch: 100%; }
.model-art .node--in rect { fill: var(--sheet); stroke: var(--blueline); }
.model-art .link { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.model-art .link--one { stroke: var(--blueline); stroke-width: 2.6; }
.model-art .gap { fill: none; stroke: var(--error); stroke-width: 1.3; stroke-dasharray: 3 3; }
.model-art .q { fill: var(--error); font-weight: 700; }
.model-art .team { fill: rgba(37, 80, 176, 0.06); stroke: var(--blueline); stroke-width: 1.3; }
.model-art .team-label { fill: var(--blueline); font-size: 12px; font-weight: 650; font-stretch: 112%; }
.model-art .cap { fill: var(--graphite); font-size: 12.5px; font-weight: 500; }

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 40px;
  margin-top: clamp(48px, 6vw, 80px);
}
.benefit { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.benefit p { color: var(--graphite); }

@media (max-width: 1080px) {
  .model { grid-template-columns: minmax(0, 1fr); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .model__figures { grid-template-columns: minmax(0, 1fr); }
  .benefits { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- service rows */
.svc-list { border-top: 1.5px solid var(--ink); }
.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px 48px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule-strong);
}
.svc-row a { color: var(--ink); text-decoration: none; }
.svc-row a:hover { color: var(--blueline); text-decoration: underline; text-decoration-thickness: 1.5px; }
.svc-row p { color: var(--graphite); max-width: 36em; }
.svc-more { margin-top: 32px; }

@media (max-width: 760px) {
  .svc-row { grid-template-columns: minmax(0, 1fr); padding: 22px 0; }
}

/* ---------------------------------------------------------------- sectors */
.sectors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
  border-left: 1px solid var(--rule-strong);
}
.sector {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px 28px 30px;
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.sector .sector-art { width: 100%; max-width: 200px; margin-bottom: 8px; color: var(--blueline); }
.sector p { color: var(--graphite); }

.sector-art .ink-line path,
.sector-art .ink-ground {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.sector-art .ink-ground { stroke-width: 2; }

@media (max-width: 960px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .sectors { grid-template-columns: minmax(0, 1fr); }
  .sector { grid-template-columns: 112px minmax(0, 1fr); column-gap: 18px; padding: 22px 18px; }
  .sector .sector-art { grid-row: span 2; margin: 0; }
}

/* ---------------------------------------------------------------- process */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.step { display: grid; gap: 10px; align-content: start; padding: 0 28px 0 0; }
.step__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--ink);
}
.step__num { font-size: var(--t-lg); font-stretch: 125%; font-weight: 720; line-height: 1; }
.step p { color: var(--graphite); }

.stage-mark { width: 24px; height: 24px; flex: none; }
.stage-mark .sm-edge { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.stage-mark .sm-fill { fill: var(--ink); }

.steps-note { margin-top: 36px; color: var(--graphite); font-size: var(--t-sm); }

@media (max-width: 1080px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step {
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--rule-strong);
  }
  .step:first-child { border-top: 1.5px solid var(--ink); }
  .step__head { grid-row: span 2; border: 0; padding: 0; margin: 0; align-self: start; }
}
@media (max-width: 560px) {
  .step { grid-template-columns: minmax(0, 1fr); }
  .step__head { grid-row: auto; margin-bottom: 4px; }
}

/* ---------------------------------------------------------------- climate section */
.climate {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px 64px;
  align-items: center;
}
.climate__fig { margin: 0; }
.section-art { width: 100%; height: auto; }
.section-art .ink-line path { fill: none; stroke: var(--graphite); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.section-art .ink-hatch { fill: none; stroke: var(--graphite); stroke-width: 0.6; }
.section-art .flow { fill: none; stroke: var(--blueline); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.section-art .flow.thin { stroke-width: 1.1; opacity: 0.8; }
.section-art .callout circle { fill: var(--blueline); }
.section-art .callout text { fill: var(--film); font-size: 12px; font-weight: 700; }

.keyed { display: grid; gap: 24px; counter-reset: key; }
.keyed li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 16px; }
.keyed .key {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--blueline);
  color: var(--film);
  font-size: 0.8125rem;
  font-weight: 700;
}
.keyed p { color: var(--graphite); }
.climate__note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule-strong); color: var(--graphite); }
.climate__note strong { color: var(--ink); font-weight: 620; }

@media (max-width: 960px) { .climate { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- call to action band */
.cta-band {
  padding-block: clamp(64px, 8vw, 112px);
  background: var(--ink);
  color: var(--on-ink);
}
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px 64px;
  align-items: end;
}
.cta-band .h2 { color: var(--on-ink); }
.cta-band p { margin-top: 18px; color: var(--on-ink-2); font-size: var(--t-md); max-width: 34em; }
.cta-band__actions { display: grid; gap: 18px; justify-items: start; }
.cta-band__contact { color: var(--on-ink-2); }
.cta-band__contact a { color: var(--on-ink); }

@media (max-width: 860px) { .cta-band__inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- footer */
.site-footer {
  padding: 56px 0 32px;
  background: var(--ink);
  color: var(--on-ink-2);
  border-top: 1px solid var(--on-ink-rule);
  font-size: 1rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr));
  gap: 36px 40px;
}
.site-footer__brand img { height: 56px; width: auto; margin-bottom: 20px; }
.site-footer__brand p { max-width: 26em; }
.site-footer__tagline { margin-top: 12px; color: var(--on-ink-2); font-stretch: 108%; font-weight: 560; }
.site-footer h2 { margin-bottom: 12px; color: var(--on-ink); font-size: 1rem; font-stretch: 110%; font-weight: 650; }
.site-footer ul { display: grid; gap: 8px; list-style: none; padding: 0; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; display: grid; gap: 8px; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid var(--on-ink-rule);
  font-size: var(--t-sm);
}
.site-footer :focus-visible { outline-color: #8FB2F0; }

@media (max-width: 960px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- inner page head */
.page-head {
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(44px, 5.5vw, 76px);
  border-bottom: 1px solid var(--rule-strong);
}
.page-head__title {
  font-size: var(--t-3xl);
  font-stretch: 125%;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.page-head .lead { margin-top: 24px; max-width: 36em; }

/* ---------------------------------------------------------------- services page */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; }
.way { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.way__mark { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.way__stages { margin-left: 8px; font-size: var(--t-sm); color: var(--graphite); }
.way__mark .stage-mark { width: 18px; height: 18px; }
.way__mark .is-off { opacity: 0.22; }
.way p { color: var(--graphite); }

.svc-detail {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 20px 72px;
  padding-block: clamp(36px, 4.5vw, 56px);
  border-top: 1px solid var(--rule-strong);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.svc-detail:last-child { border-bottom: 1px solid var(--rule-strong); }
.svc-detail__title { font-size: var(--t-xl); font-stretch: 112%; font-weight: 660; line-height: 1.15; text-wrap: balance; }
.svc-detail__body { display: grid; gap: 20px; }
.svc-detail__body > p { font-size: var(--t-md); max-width: 36em; }
.svc-detail h3 { font-size: var(--t-base); font-weight: 650; font-stretch: 108%; }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.ticks li { position: relative; padding-left: 22px; color: var(--graphite); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  background: var(--blueline);
}

@media (max-width: 860px) {
  .ways { grid-template-columns: minmax(0, 1fr); }
  .svc-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .ticks { grid-template-columns: minmax(0, 1fr); } }

.faq { max-width: 860px; border-bottom: 1px solid var(--rule-strong); }
.faq details { border-top: 1px solid var(--rule-strong); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  font-size: var(--t-md);
  font-weight: 600;
  font-stretch: 104%;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 1em;
  text-align: center;
  font-size: 1.4em;
  font-weight: 400;
  line-height: 1;
  color: var(--blueline);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--blueline); }
.faq details p { padding: 0 0 24px; max-width: 40em; color: var(--graphite); }

/* ---------------------------------------------------------------- projects page */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter {
  min-height: 42px;
  padding: 8px 14px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 560;
  font-stretch: 104%;
  cursor: pointer;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--film); }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.project { display: grid; gap: 14px; align-content: start; }
.project[hidden] { display: none; }
/* Line up the cards in each row: picture, title and details table each share a row with the
   neighbouring cards, so a title that wraps onto two lines doesn't push its table out of line. */
@supports (grid-template-rows: subgrid) {
  .project:not(.project--feature) { grid-row: span 3; grid-template-rows: subgrid; row-gap: 14px; }
}
.project__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 28px 24px 12px;
  border: 1px solid var(--rule-strong);
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--grid-line, rgba(169, 211, 230, 0.55)) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line, rgba(169, 211, 230, 0.55)) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--blueline);
}
.project__art .sector-art { width: 80%; max-width: 300px; }
/* Real project photos: <div class="project__art project__art--photo"><img src="..." alt="..."></div> */
.project__art--photo { padding: 0; background-image: none; overflow: hidden; }
.project__art--photo img { width: 100%; height: 100%; object-fit: cover; }
.project__flag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border: 1px dashed var(--graphite);
  background: var(--film);
  color: var(--graphite);
  font-size: 0.8125rem;
  font-weight: 600;
}
.project__title { font-size: var(--t-lg); font-stretch: 104%; font-weight: 620; line-height: 1.3; }
.project__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  font-size: var(--t-sm);
}
.project__meta div { padding: 8px 10px 9px 0; }
.project__meta div + div { padding-left: 10px; border-left: 1px solid var(--rule-strong); }
.project__meta dt { color: var(--graphite); font-size: 0.8125rem; }
.project__meta dd { font-weight: 560; line-height: 1.35; }

.empty-state { padding: 40px 0; color: var(--graphite); }

@media (max-width: 1000px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .projects { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- about page */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px 72px;
}
.about-intro .prose p { font-size: var(--t-md); }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.principles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }

.team-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: var(--sheet); }

.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; list-style: none; padding: 0; border-top: 1.5px solid var(--ink); }
.team li { display: grid; gap: 4px; padding: 18px 0 20px; border-bottom: 1px solid var(--rule-strong); }
.team__name { font-size: var(--t-lg); font-weight: 620; font-stretch: 106%; line-height: 1.25; }
.team__role { color: var(--graphite); }
.principle { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.principle p { color: var(--graphite); max-width: 32em; }

.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; border-top: 1.5px solid var(--ink); }
.clients li { padding: 16px 0; border-bottom: 1px solid var(--rule-strong); font-weight: 540; }

@media (max-width: 1080px) {
  .principles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .about-intro { grid-template-columns: minmax(0, 1fr); }
  .principles, .principles--3 { grid-template-columns: minmax(0, 1fr); }
  .clients { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) { .team { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- contact page */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 56px 80px;
  align-items: start;
}

.enquiry { display: grid; gap: 22px; }
.enquiry__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 7px; align-content: start; }
.field label, .field legend { font-weight: 600; font-stretch: 104%; font-size: 1rem; }
.field .opt { font-weight: 400; color: var(--graphite); }
.hint { font-size: var(--t-sm); color: var(--graphite); }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
.field textarea { min-height: 170px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23172330' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--graphite); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--blueline);
  outline: 3px solid rgba(37, 80, 176, 0.28);
  outline-offset: 0;
}
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--error); }

.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.enquiry__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.enquiry__submit .hint { max-width: 26em; }

.form-status, .form-alert {
  padding: 14px 16px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  font-weight: 540;
}
.form-status[hidden] { display: none; }
.form-status.is-success { color: var(--ok); background: #EAF2EA; }
.form-status.is-error, .form-alert { color: var(--error); background: #FBEDEA; }
.form-status:focus { outline: none; }
.form-alert { display: none; margin-bottom: 8px; }
.form-alert:target { display: block; }

.contact-card { display: grid; gap: 24px; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.contact-card dt { font-size: var(--t-sm); color: var(--graphite); margin-bottom: 2px; }
.contact-card dd { font-weight: 560; font-size: var(--t-md); }
.contact-card dd a { color: var(--ink); text-decoration-thickness: 1px; }
.contact-card dd a:hover { color: var(--blueline); }
.contact-card__lines { display: grid; gap: 4px; justify-items: start; }
.contact-help { margin-top: 36px; padding: 22px 22px 24px; background: var(--sheet); border: 1px solid var(--rule-strong); }
.contact-help h2 { font-size: var(--t-base); font-weight: 650; font-stretch: 108%; margin-bottom: 12px; }
.contact-help ul { display: grid; gap: 8px; list-style: none; padding: 0; }
.contact-help li { position: relative; padding-left: 18px; color: var(--graphite); }
.contact-help li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border: 1.5px solid var(--blueline); }
.contact-help p { margin-top: 14px; font-size: var(--t-sm); color: var(--graphite); }

@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .enquiry__row { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- simple pages (404, thanks) */
.simple { padding-block: clamp(64px, 10vw, 140px); }
.simple .page-head__title { max-width: 14em; }
.simple .lead { margin-top: 22px; }
.simple .actions { margin-top: 36px; }

/* ---------------------------------------------------------------- featured project card */
.project__art--photo > picture,
.project__art--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.project__art--photo picture img { width: 100%; height: 100%; object-fit: cover; }
.project__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  background: rgba(250, 251, 250, 0.92);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.project--feature {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px 48px;
  align-items: center;
  padding-bottom: clamp(36px, 4vw, 48px);
  border-bottom: 1px solid var(--rule-strong);
}
.project--feature .project__art { aspect-ratio: 3 / 2; }
.project__body { display: grid; gap: 16px; align-content: start; }
.project--feature .project__title { font-size: var(--t-xl); font-stretch: 118%; font-weight: 680; line-height: 1.1; }
.project__title a { color: inherit; text-decoration: none; }
.project__title a:hover { color: var(--blueline); text-decoration: underline; text-decoration-thickness: 2px; }
.project__summary { max-width: 34em; color: var(--graphite); }

@media (max-width: 860px) {
  .project--feature { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- project page */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 18px; font-size: var(--t-sm); color: var(--graphite); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { color: var(--ink); font-weight: 560; }
.crumbs a:hover { color: var(--blueline); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(28px, 4vw, 44px) 0 0;
  border-top: 1.5px solid var(--ink);
}
.facts div { padding: 12px 16px 0 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--rule-strong); }
.facts dt { font-size: var(--t-sm); color: var(--graphite); }
.facts dd { font-size: var(--t-md); font-weight: 560; line-height: 1.4; }

@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
}

.shot { display: grid; gap: 12px; align-content: start; margin: 0; }
.shot__link { display: block; overflow: hidden; background: var(--sheet); border: 1px solid var(--rule); cursor: zoom-in; }
.shot__link picture { display: block; }
.shot__link img { width: 100%; height: auto; }
.shot--hero .shot__link img,
.gallery .shot__link img { aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { max-width: 48em; font-size: var(--t-sm); color: var(--graphite); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: start; }
.split__text { display: grid; gap: 20px; align-content: start; }
.split__text .prose p { font-size: var(--t-md); }
.split__sub { margin-top: 8px; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
.gallery--single { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .gallery { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------------------------------------------------------------- drawing-to-building clip */
/* main.js sets html.build-ok before the first paint, then adds the clip (.build__video) and
   .is-live. Without JavaScript, with reduced motion or with Data Saver, the still image shows
   as normal. If the clip fails, main.js marks the box .is-off and the still comes back. */
.build { position: relative; }
.build-ok .build:not(.is-off) {
  background-color: var(--sheet);
  background-image:
    linear-gradient(rgba(169, 211, 230, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 211, 230, 0.55) 1px, transparent 1px);
  background-size: 22px 22px;
}
.build__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* The still sits over the clip, hidden until the clip reaches the finished building. */
.build-ok .build:not(.is-off) .build__still { opacity: 0; }
.build.is-live .build__still { z-index: 1; transition: opacity 0.5s ease; }
.shot__link.build.is-live .build__still { position: relative; }
.build-ok .build.is-live.is-done .build__still { opacity: 1; }
.build .project__tag { z-index: 2; }

.build__meter { display: none; }
.build.is-live .build__meter {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border: 1px solid var(--rule);
  background: rgba(250, 251, 250, 0.92);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 620;
  font-stretch: 110%;
  line-height: 1.3;
  pointer-events: none;
}
.build.is-live.is-finished .build__meter { opacity: 0; transition: opacity 0.6s ease 0.6s; }
.build__label:first-child { color: var(--blueline); }
.build__track { position: relative; width: clamp(48px, 9vw, 120px); height: 2px; overflow: hidden; background: var(--rule-strong); }
.build__fill { position: absolute; inset: 0; background: var(--blueline); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
@media (max-width: 600px) {
  .build.is-live .build__meter { top: 8px; left: 8px; gap: 8px; padding: 3px 8px; font-size: 0.75rem; }
  .build__track { width: 36px; }
}

/* Desktop scrubbing: the picture pins below the header while the page scrolls past it.
   The ::after spacer is the scroll distance (padding wouldn't work: a sticky box only
   moves within its parent's content box). */
.build-scroll.is-scrub::after { content: ""; display: block; height: 100vh; }
.build-scroll.is-scrub .build-scroll__stage {
  position: sticky;
  top: var(--header-h);
  display: grid;
  align-content: center;
  min-height: calc(100vh - var(--header-h));
}
.build-scroll.is-scrub .shot--hero {
  width: min(100%, calc((100vh - var(--header-h) - 110px) * 16 / 9));
  margin-inline: auto;
}

/* ---------------------------------------------------------------- image viewer */
html.has-modal { overflow: hidden; }

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
  --lb-pad: clamp(12px, 3vw, 40px);
}
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox::backdrop { background: rgba(23, 35, 48, 0.6); }

.lightbox__frame { position: relative; min-height: 0; touch-action: pan-y pinch-zoom; }
.lightbox__frame picture { display: contents; }
/* The image box fills the frame inside the padding; object-fit keeps the whole picture in view. */
.lightbox__img {
  position: absolute;
  top: var(--lb-pad);
  left: var(--lb-pad);
  width: calc(100% - 2 * var(--lb-pad));
  height: calc(100% - var(--lb-pad));
  object-fit: contain;
}

.lightbox__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px var(--lb-pad) 20px;
}
.lightbox__caption { max-width: 48em; }
.lightbox__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lightbox__count { margin-right: 8px; color: var(--on-ink-2); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.lightbox__btn {
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid rgba(237, 240, 238, 0.45);
  border-radius: 2px;
  background: transparent;
  color: var(--on-ink);
  font: inherit;
  font-weight: 600;
  font-stretch: 108%;
  cursor: pointer;
}
.lightbox__btn:hover { border-color: var(--on-ink); }
.lightbox__close { background: var(--film); border-color: var(--film); color: var(--ink); }
.lightbox__close:hover { background: #FFFFFF; border-color: #FFFFFF; }
.lightbox :focus-visible { outline-color: #8FB2F0; }

@media (max-width: 600px) {
  .lightbox__bar { flex-direction: column; align-items: stretch; }
  .lightbox__count { flex: 1; }
}

/* ---------------------------------------------------------------- print */
@media print {
  .site-header, .nav-toggle, .cta-band, .elev__knob, .elev__line, .lightbox,
  .build__video, .build__meter { display: none !important; }
  .build .build__still { opacity: 1 !important; }
  .build-scroll::after { display: none !important; }
  body { background: #fff; }
  .elev__built { clip-path: none; display: none; }
}
