/* ==========================================================================
   M3 Engineering Group — site styles
   Design language: hydraulic profile. Bathymetric palette, engineering
   grotesque display, plan-sheet mono annotation.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  /* Colour: drawn from bathymetric and soil-survey mapping */
  /* Sampled from the M3 logo: the blue of the "m", the green of the "3",
     and the charcoal it sits on. Blue names things; green marks numbers. */
  --ink:        #161A1C;   /* logo charcoal — primary dark ground */
  --slate:      #1F262A;   /* secondary dark surface */
  --slate-lift: #2C353A;   /* raised dark surface, hairlines on dark */
  --paper:      #F2F1ED;   /* cool neutral off-white — primary light ground */
  --paper-warm: #E9E8E2;   /* recessed light surface */
  --stone:      #CFCDC4;   /* rules and borders on light */
  --graphite:   #5B666B;   /* secondary text on light */
  --mist:       #9AA7AD;   /* secondary text on dark */

  --flow:       #3A6F8F;   /* BRAND BLUE. 4.83:1 on --paper, so safe for text there. */
  --flow-lift:  #5A96BA;   /* lifted blue for dark grounds (5.43:1 on --ink) */
  --green:      #78A22F;   /* BRAND GREEN. 5.85:1 on --ink — dark grounds only. */
  --green-lift: #92BF45;   /* lifted green, 8.14:1 on --ink */
  /* Brand green is only 2.65:1 on --paper, so it never carries text on light
     backgrounds — there it appears as graphical marks alone. */

  /* Type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Type scale */
  --t-hero:  clamp(2.75rem, 7.2vw, 6rem);
  --t-h1:    clamp(2.25rem, 5vw, 4rem);
  --t-h2:    clamp(1.75rem, 3.4vw, 2.75rem);
  --t-h3:    clamp(1.25rem, 2vw, 1.6rem);
  --t-lead:  clamp(1.0625rem, 1.5vw, 1.3125rem);
  --t-body:  1.0625rem;
  --t-small: 0.9375rem;
  --t-label: 0.75rem;

  /* Layout */
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 68ch;
  --shell: 1440px;
  --rule: 1px solid var(--stone);
  --rule-dark: 1px solid var(--slate-lift);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 480ms;
}

/* --- 2. Reset ------------------------------------------------------------ */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

button, input, textarea, select { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip:focus { left: 1rem; top: 1rem; }

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

/* --- 3. Typography ------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h3, h4 { line-height: 1.18; letter-spacing: -0.014em; }

p { text-wrap: pretty; }

/* Plan-sheet callout label — the utility voice of the site */
.label {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flow);
}
.label--dark { color: var(--flow-lift); }
.label--quiet { color: var(--graphite); }

/* A label with the datum tick that runs through the site */
.label--tick { padding-left: 1.75rem; position: relative; }
.label--tick::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 1.125rem;
  height: 1px;
  background: currentColor;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.58;
  color: var(--graphite);
  max-width: var(--measure);
}
.lead--dark { color: var(--mist); }

.prose p + p { margin-top: 1.1em; }
.prose { max-width: var(--measure); }

/* --- 4. Shell and sections ---------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sec {
  padding-block: clamp(4rem, 9vw, 8.5rem);
  position: relative;
}
.sec--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.sec--dark { background: var(--ink); color: var(--paper); }
.sec--slate { background: var(--slate); color: var(--paper); }
.sec--warm { background: var(--paper-warm); }
.sec--flush-top { padding-top: 0; }

.sec__head {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: 1fr;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .sec__head--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
.sec__head h2 { font-size: var(--t-h2); }
.sec__head .label { margin-bottom: 1rem; }

/* The recurring hydraulic-profile rule: a hairline with a datum tick */
.profile-rule {
  border: 0;
  height: 1px;
  background: var(--stone);
  position: relative;
  overflow: visible;
}
.profile-rule::after {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 3.5rem;
  height: 3px;
  background: var(--flow);
}
.profile-rule--dark { background: var(--slate-lift); }

/* --- 5. Buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: var(--flow);
  color: #fff;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 200ms var(--ease);
}
.btn:hover { background: var(--ink); transform: translateY(-2px); }
.btn__arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

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

.btn--ghost-dark {
  background: transparent;
  color: var(--paper);
  border-color: var(--slate-lift);
}
.btn--ghost-dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Text link with an underline that draws in */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flow);
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--dur) var(--ease);
}
.tlink:hover { background-size: 100% 1px; }

/* --- 6. Header ---------------------------------------------------------- */

.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5rem;
}
.hdr.is-scrolled,
.hdr.is-solid {
  background: #161A1C;                                        /* fallback */
  background: color-mix(in srgb, var(--ink) 94%, transparent); /* preferred */
  backdrop-filter: blur(12px);
  border-bottom-color: var(--slate-lift);
}
.hdr.is-open { background: var(--ink); }

/* Without JS the scroll listener never fires, so keep the bar opaque. */
@media (scripting: none) {
  .hdr { background: var(--ink); border-bottom-color: var(--slate-lift); }
}

/* Wordmark */
.mark { display: inline-flex; align-items: center; gap: 0.75rem; }
.mark__glyph { flex: none; }
.mark__text { display: grid; gap: 0.1rem; }
.mark__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.mark__sub {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--flow-lift);
  line-height: 1;
}

.nav { display: none; }
@media (min-width: 1000px) {
  .nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
}
.nav__link {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  padding-block: 0.4rem;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--flow-lift);
  transition: width var(--dur) var(--ease);
}
.nav__link:hover { color: var(--flow-lift); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--flow-lift); }

.hdr__cta { display: none; }
@media (min-width: 1000px) { .hdr__cta { display: inline-flex; } }

/* Menu toggle */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 1px solid var(--slate-lift);
  cursor: pointer;
  align-items: center;
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span {
  display: block;
  width: 1.125rem;
  height: 1px;
  background: var(--paper);
  transition: transform 300ms var(--ease), opacity 200ms var(--ease);
}
.hdr.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr.is-open .burger span:nth-child(2) { opacity: 0; }
.hdr.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  background: var(--ink);
  transition: grid-template-rows var(--dur) var(--ease);
}
.hdr.is-open .drawer { grid-template-rows: 1fr; }
@media (min-width: 1000px) { .drawer { display: none; } }
.drawer__inner { min-height: 0; }
.drawer__list {
  display: grid;
  padding-block: 1rem 2rem;
  border-top: var(--rule-dark);
}
.drawer__list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: var(--rule-dark);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.drawer__list a span {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--green-lift);
}
.drawer__foot { padding-top: 1.5rem; }

/* --- 7. Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  min-height: min(92svh, 900px);
  display: flex;
  align-items: flex-end;
  padding-top: 9rem;
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero--short { min-height: min(62svh, 620px); }

/* The signature: a live hydraulic profile behind the headline */
.hero__profile {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__profile svg { width: 100%; height: 100%; }
.profile__flow path { animation: drift 26s linear infinite; }
.profile__flow g:nth-child(2) path { animation-duration: 34s; }
.profile__flow g:nth-child(3) path { animation-duration: 42s; }
.profile__flow g:nth-child(4) path { animation-duration: 30s; }
.profile__flow g:nth-child(5) path { animation-duration: 38s; }
.profile__flow g:nth-child(6) path { animation-duration: 46s; }
@keyframes drift { to { transform: translateX(-480px); } }

.hero__grad {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(22, 26, 28, 0.96) 4%, rgba(22, 26, 28, 0.6) 55%, rgba(22, 26, 28, 0.96) 100%);
  background:
    radial-gradient(120% 90% at 12% 100%, color-mix(in srgb, var(--flow) 22%, transparent), transparent 62%),
    linear-gradient(to top, var(--ink) 4%, color-mix(in srgb, var(--ink) 60%, transparent) 55%, var(--ink) 100%);
}

.hero__body { max-width: 56ch; }
.hero h1 {
  font-size: var(--t-hero);
  letter-spacing: -0.035em;
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--flow-lift);
}
.hero__lead { margin-top: 1.75rem; max-width: 46ch; }
.hero .btn-row { margin-top: 2.5rem; }
.hero__label { margin-bottom: 1.75rem; }

/* Station strip along the base of the hero — reads like a profile chart axis */
.stations {
  display: none;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  border-top: var(--rule-dark);
  padding-inline: var(--gutter);
}
@media (min-width: 1060px) { .stations { display: block; } }
.stations__inner {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.stations__inner a {
  font-family: var(--mono) !important;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: #7A8A8D !important;
  color: color-mix(in srgb, var(--mist) 55%, transparent) !important;
  padding: 0.6rem 0 0.7rem 0.6rem;
  border-left: var(--rule-dark);
  text-decoration: none;
  transition: color 250ms var(--ease);
}
.stations__inner a:hover,
.stations__inner a:focus-visible {
  color: var(--flow-lift) !important;
}

/* Page hero for interior pages */
.phero {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.phero__profile { position: absolute; inset: 0; z-index: -1; opacity: 0.55; }
.phero__profile svg { width: 100%; height: 100%; }
.phero h1 { font-size: var(--t-h1); max-width: 26ch; }
.phero .label { margin-bottom: 1.25rem; }
.phero .lead { margin-top: 1.5rem; }

/* --- 8. Credential band ------------------------------------------------- */

.creds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: var(--rule-dark);
  border-left: var(--rule-dark);
}
@media (min-width: 780px) { .creds { grid-template-columns: repeat(4, 1fr); } }
.cred {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: var(--rule-dark);
  border-bottom: var(--rule-dark);
}
.cred__fig {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper);
}
.cred__fig small {
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--green-lift);
  margin-left: 0.15em;
  vertical-align: super;
}
.cred__txt {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  line-height: 1.5;
}

/* --- 9. Discipline cards ------------------------------------------------ */

.disciplines {
  display: grid;
  gap: 1px;
  background: var(--stone);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .disciplines { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .disciplines { grid-template-columns: repeat(3, 1fr); } }

.disc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  min-height: 22rem;
  overflow: hidden;
  isolation: isolate;
}
.disc__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 900ms var(--ease), opacity 600ms var(--ease);
}
.disc:hover .disc__img { transform: scale(1.06); opacity: 0.62; }
.disc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(22,26,28,0.95) 8%, rgba(22,26,28,0.55) 52%, rgba(22,26,28,0.3) 100%);
  background: linear-gradient(to top,
    color-mix(in srgb, var(--ink) 95%, transparent) 8%,
    color-mix(in srgb, var(--ink) 55%, transparent) 52%,
    color-mix(in srgb, var(--ink) 30%, transparent) 100%);
}
.disc__body {
  margin-top: auto;
  padding: clamp(1.5rem, 3vw, 2rem);
  color: var(--paper);
}
.disc__idx {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--green-lift);
  display: block;
  margin-bottom: 0.75rem;
}
.disc h3 { font-size: var(--t-h3); }
.disc__caps {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--mist);
}
.disc__go {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flow-lift);
}
.disc__go svg { transition: transform var(--dur) var(--ease); }
.disc:hover .disc__go svg { transform: translateX(5px); }
.disc__link { position: absolute; inset: 0; z-index: 2; }
.disc__link:focus-visible { outline-offset: -4px; }

/* --- 10. Project index -------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter {
  padding: 0.6rem 1.05rem;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--stone);
  color: var(--graphite);
  cursor: pointer;
  transition: all 260ms var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.pindex { border-top: var(--rule); }

.prow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 1.5rem;
  padding: 1.5rem 0;
  border-bottom: var(--rule);
  position: relative;
  transition: background 300ms var(--ease);
}
.prow:hover { background: var(--paper-warm); }
@media (min-width: 860px) {
  .prow {
    grid-template-columns: 5.5rem minmax(0, 2.2fr) minmax(0, 1.3fr) 9rem;
    align-items: baseline;
    gap: 1.5rem;
  }
}
.prow__id {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--flow);
}
.prow__name {
  font-family: var(--display);
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.prow__client { font-size: var(--t-small); color: var(--graphite); }
.prow__disc {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
}
.prow__note {
  grid-column: 1 / -1;
  font-size: var(--t-small);
  color: var(--graphite);
  max-width: 74ch;
  margin-top: 0.4rem;
}
@media (min-width: 860px) {
  .prow__note { grid-column: 2 / -1; }
}
.prow.is-hidden { display: none; }

.pcount {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-top: 1.75rem;
}

/* --- 11. Service detail blocks ----------------------------------------- */

.svc {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: var(--rule);
}
@media (min-width: 900px) {
  .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
}
.svc:last-of-type { border-bottom: 0; }
.svc__media { position: relative; }
.svc__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--slate);
}
.svc__stamp {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.6rem 0.9rem;
}
.svc h2 { font-size: var(--t-h2); margin-top: 0.85rem; }
.svc__lead { margin-top: 1.1rem; }

.caps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 1.75rem;
  border-top: var(--rule);
}
@media (min-width: 560px) { .caps { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; } }
.caps li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: var(--rule);
  font-size: var(--t-small);
}
.caps li::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 1px;
  background: var(--flow);
  transform: translateY(-0.35em);
}

/* --- 12. Values / accordion ------------------------------------------- */

.vgrid {
  display: grid;
  gap: 1px;
  background: var(--stone);
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
.vcard {
  background: var(--paper);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}
.vcard__num {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--flow);
  display: block;
  margin-bottom: 1rem;
}
.vcard h3 { font-size: var(--t-h3); }
.vcard p { margin-top: 0.85rem; font-size: var(--t-small); color: var(--graphite); }

.acc { border-top: var(--rule); }
.acc details { border-bottom: var(--rule); }
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 1px solid var(--flow);
  border-bottom: 1px solid var(--flow);
  transform: rotate(45deg);
  transition: transform 300ms var(--ease);
}
.acc details[open] summary::after { transform: rotate(-135deg); }
.acc__body { padding-bottom: 1.5rem; }
.acc__body dl {
  display: grid;
  gap: 0.35rem 1.5rem;
  grid-template-columns: 1fr;
  margin: 0;
}
@media (min-width: 700px) { .acc__body dl { grid-template-columns: 12rem 1fr; } }
.acc__body dt {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flow);
  padding-top: 0.15rem;
}
.acc__body dd { margin: 0 0 1rem; font-size: var(--t-small); color: var(--graphite); }
.acc__body dd:last-child { margin-bottom: 0; }

/* --- 13. People -------------------------------------------------------- */

.people {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 780px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-warm);
  filter: grayscale(1) contrast(1.05);
  transition: filter 600ms var(--ease);
}
.person:hover .person__img { filter: grayscale(0); }
.person__role {
  display: block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flow);
}
.person h3 { font-size: 1.125rem; margin-top: 0.4rem; }

/* --- 14. Testimonials -------------------------------------------------- */

.quotes {
  display: grid;
  gap: 1px;
  background: var(--slate-lift);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--ink);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
}
.quote__mark {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 0.6;
  color: var(--green-lift);
  margin-bottom: 1.25rem;
}
.quote p { color: var(--paper); font-size: var(--t-small); line-height: 1.7; }
.quote footer {
  margin-top: auto;
  padding-top: 1.75rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  line-height: 1.6;
}

/* --- 15. Offices ------------------------------------------------------- */

.offices {
  display: grid;
  gap: 1px;
  background: var(--stone);
  grid-template-columns: 1fr;
}
/* No 2-column step: three offices in two columns left an empty grey cell. */
@media (min-width: 980px) { .offices { grid-template-columns: repeat(3, 1fr); } }
.office {
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.office--dark { background: var(--ink); color: var(--paper); }
.office h3 { font-size: 1.3125rem; }
.office__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flow);
  margin-bottom: 0.85rem;
}
.office address {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.85;
  color: var(--graphite);
  margin-top: 0.9rem;
}
.office--dark address { color: var(--mist); }
.office address a { transition: color 250ms var(--ease); }
.office address a:hover { color: var(--flow); }

/* --- 16. Careers ------------------------------------------------------- */

.roles { border-top: var(--rule); }
.role {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1.5rem;
  padding: 1.75rem 0;
  border-bottom: var(--rule);
}
@media (min-width: 800px) {
  .role { grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) auto; align-items: start; }
}
.role h3 { font-size: var(--t-h3); }
.role__meta {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flow);
}
.role p { font-size: var(--t-small); color: var(--graphite); }

/* --- 17. Contact form -------------------------------------------------- */

.form {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .form { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: 0.5rem; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
}
.field input,
.field textarea,
.field select {
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: 0;
  transition: border-color 250ms var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--flow); }
.field textarea { min-height: 9rem; resize: vertical; }
.form__actions { grid-column: 1 / -1; }
.form__note { font-size: var(--t-small); color: var(--graphite); margin-top: 1rem; }

/* --- 18. CTA ----------------------------------------------------------- */

.cta { background: var(--flow); color: #fff; }
.cta__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .cta__inner { grid-template-columns: minmax(0, 1.6fr) auto; } }
.cta h2 { font-size: var(--t-h2); max-width: 34ch; }
.cta p { margin-top: 1rem; max-width: 52ch; color: rgba(255,255,255,0.88); }
.cta .btn { background: var(--ink); }
.cta .btn:hover { background: #fff; color: var(--ink); }

/* --- 19. Footer -------------------------------------------------------- */

.ftr { background: var(--ink); color: var(--paper); }
.ftr__top {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  padding-block: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 820px) {
  .ftr__top { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); }
}
.ftr h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); max-width: 24ch; }
.ftr__cols h3 {
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flow-lift);
  margin-bottom: 1.25rem;
}
.ftr__cols ul { display: grid; gap: 0.65rem; }
.ftr__cols a { font-size: var(--t-small); color: var(--mist); transition: color 250ms var(--ease); }
.ftr__cols a:hover { color: var(--paper); }
.ftr__bar {
  border-top: var(--rule-dark);
  padding-block: 1.5rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: #8B9A9D;
  color: color-mix(in srgb, var(--mist) 75%, transparent);
}

/* --- 20. Reveal on scroll --------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --- 21. Motion and print --------------------------------------------- */

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

/* Cross-document transitions where supported; harmless elsewhere */
@view-transition { navigation: auto; }

@media print {
  .hdr, .cta, .hero__profile, .stations { display: none; }
  body { background: #fff; color: #000; }
}

/* --- 22. Logo lockup ----------------------------------------------------
   The header and footer now use the real M3 logo as SVG. The typographic
   wordmark rules above (.mark__glyph / .mark__name / .mark__sub) are left in
   place but unused, in case you ever want to revert to a text lockup. */

.mark__logo {
  display: block;
  width: 132px;
  height: auto;
}
@media (max-width: 560px) {
  .mark__logo { width: 104px; }
}
.ftr .mark__logo { width: 148px; }

/* --- 23. Field gallery -------------------------------------------------- */

.gallery {
  display: grid;
  gap: 1px;
  background: var(--stone);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px)  { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.gallery figure {
  margin: 0;
  background: var(--ink);
  overflow: hidden;
  position: relative;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}
.gallery figure:hover img { transform: scale(1.05); }

/* --- 24. Full-bleed photographic band ---------------------------------- */

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(5rem, 12vw, 9rem);
}
.band__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(22,26,28,0.94) 0%, rgba(22,26,28,0.7) 55%, rgba(22,26,28,0.4) 100%);
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--ink) 94%, transparent) 0%,
    color-mix(in srgb, var(--ink) 70%, transparent) 55%,
    color-mix(in srgb, var(--ink) 40%, transparent) 100%);
}
.band h2 { font-size: var(--t-h2); max-width: 30ch; }
.band .lead { margin-top: 1.25rem; }
.band .label { margin-bottom: 1.25rem; }

/* --- 25. Company dropdown ----------------------------------------------- */

.nav__group { position: relative; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 0;
  padding: 0.4rem 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__caret { transition: transform var(--dur) var(--ease); }
.nav__toggle[data-incompany] { color: var(--flow-lift); }
.nav__toggle[data-incompany]::after { width: 100%; }

.nav__panel {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: -1.25rem;
  min-width: 15.5rem;
  padding: 0.4rem 0;
  background: #161A1C;
  background: color-mix(in srgb, var(--ink) 97%, transparent);
  border: 1px solid var(--slate-lift);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease),
              visibility 220ms var(--ease);
}
.nav__panel a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.nav__panel a:hover { background: var(--slate); color: var(--flow-lift); }
.nav__panel a[aria-current="page"] { color: var(--flow-lift); }

/* Open on hover for pointer devices, on focus for keyboards, on tap via JS. */
@media (hover: hover) {
  .nav__group:hover .nav__panel { opacity: 1; visibility: visible; transform: none; }
  .nav__group:hover .nav__caret { transform: rotate(180deg); }
}
.nav__group:focus-within .nav__panel,
.nav__group.is-open .nav__panel { opacity: 1; visibility: visible; transform: none; }
.nav__group:focus-within .nav__caret,
.nav__group.is-open .nav__caret { transform: rotate(180deg); }

/* Nested items in the mobile drawer */
.drawer__sub {
  display: grid;
  padding: 0 0 0.85rem 0;
  border-bottom: var(--rule-dark);
}
.drawer__list li:has(.drawer__sub) > a { border-bottom: 0; }
.drawer__sub a {
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-bottom: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.drawer__sub a:hover,
.drawer__sub a[aria-current="page"] { color: var(--flow-lift); }

/* --- 26. Field slider ---------------------------------------------------
   Built on native CSS scroll-snap, so it is swipeable and scrollable with
   JavaScript disabled. The buttons and autoplay are enhancements on top. */

.rail { margin-top: clamp(2rem, 4vw, 3rem); }
/* When the rail follows a section head, that head's margin is enough. */
.shell + .rail { margin-top: 0; }

.rail__viewport {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-inline: var(--gutter);
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;              /* Firefox */
  -ms-overflow-style: none;           /* old Edge */
}
.rail__viewport::-webkit-scrollbar { display: none; }
.rail__viewport:focus-visible { outline-offset: -3px; }

.rail__slide {
  margin: 0;
  flex: 0 0 auto;
  width: min(86vw, 680px);
  scroll-snap-align: start;
  background: var(--slate);
  overflow: hidden;
}
@media (min-width: 900px) { .rail__slide { width: min(46vw, 620px); } }

.rail__slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Controls read like the axis of a profile chart */
.rail__controls {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 1.75rem;
}

.rail__meter {
  flex: 1 1 auto;
  height: 2px;
  background: var(--slate-lift);
  position: relative;
}
.rail__meter span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 12%;
  background: var(--flow-lift);
  transition: width 300ms var(--ease);
}

.rail__count {
  flex: none;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  color: var(--mist);
}
.rail__count b {
  font-weight: 500;
  color: var(--green-lift);   /* numerals take the green of the "3" */
}

.rail__btns { flex: none; display: flex; gap: 0.5rem; }

.rail__btn {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--slate-lift);
  color: var(--paper);
  cursor: pointer;
  transition: background 260ms var(--ease), border-color 260ms var(--ease),
              color 260ms var(--ease);
}
.rail__btn:hover:not(:disabled) {
  background: var(--flow);
  border-color: var(--flow);
}
.rail__btn:disabled { opacity: 0.32; cursor: default; }
.rail__btn svg { pointer-events: none; }

/* Pause / play uses a single button whose glyphs swap on state */
.rail__btn .icon-pause { display: block; }
.rail__btn .icon-play  { display: none; }
.rail__btn[aria-pressed="true"] .icon-pause { display: none; }
.rail__btn[aria-pressed="true"] .icon-play  { display: block; }

@media (prefers-reduced-motion: reduce) {
  .rail__viewport { scroll-behavior: auto; }
}

/* --- 27. Clickable service headings ------------------------------------ */

.svc__link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
}
.svc__link:hover { background-size: 100% 2px; color: var(--flow); }
.svc:hover .svc__stamp { background: var(--flow); }
.svc__stamp { transition: background var(--dur) var(--ease); }

/* Capability list, single wide column (used on the CCTV page) */
.caps--wide { grid-template-columns: 1fr; }
@media (min-width: 560px) { .caps--wide { grid-template-columns: 1fr; } }

/* --- 28. Pills and capability tags ------------------------------------- */

.pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  background: var(--green);
  color: #fff;
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.25rem;
}
.tag {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--stone);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* --- 29. Photographic page hero ---------------------------------------- */

.phero--photo { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.phero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.phero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(22,26,28,0.93) 0%, rgba(22,26,28,0.72) 50%, rgba(22,26,28,0.45) 100%);
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--ink) 93%, transparent) 0%,
    color-mix(in srgb, var(--ink) 72%, transparent) 50%,
    color-mix(in srgb, var(--ink) 45%, transparent) 100%);
}
.phero--photo h1 { max-width: 20ch; }

/* --- 30. Wide feature card in the discipline grid ---------------------- */

.disc--wide { grid-column: 1 / -1; min-height: 17rem; }
.disc--wide .disc__img { object-position: center 62%; }
@media (min-width: 640px) {
  .disc--wide .disc__body { max-width: 46ch; }
}
.disc__flag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  background: var(--green);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --- 31. Split hero with photo panel ------------------------------------ */

/* The hero now carries content in two columns, so centre rather than
   bottom-align it. Overrides .hero's own align-items above. */
.hero { align-items: center; }

.hero__grid {
  display: grid;
  gap: clamp(2.25rem, 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
  width: 100%;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); }
}

/* On the split layout the headline no longer needs its own narrow measure. */
@media (min-width: 980px) {
  .hero__body { max-width: none; }
  .hero h1 { max-width: 13ch; }
}

/* Crossfading photo panel */
.hshow {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--slate);
  border: 1px solid var(--slate-lift);
}
@media (min-width: 980px) {
  .hshow { aspect-ratio: 4 / 4; }
}

.hshow__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1100ms var(--ease);
}
/* The first slide carries .is-on in the markup, so one photograph is always
   visible even if JavaScript never runs. */
.hshow__slide.is-on { opacity: 1; }
.hshow__slide img { width: 100%; height: 100%; object-fit: cover; }

/* Keeps the mono readout legible over any photograph */
.hshow__bar {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(to top, rgba(22,26,28,0.85), rgba(22,26,28,0));
  background: linear-gradient(to top,
    color-mix(in srgb, var(--ink) 85%, transparent),
    color-mix(in srgb, var(--ink) 0%, transparent));
}
.hshow__count {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--paper);
}
.hshow__count b { font-weight: 500; color: var(--green-lift); }

.hshow__btn {
  margin-left: auto;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent);
  color: var(--paper);
  cursor: pointer;
  transition: background 240ms var(--ease), border-color 240ms var(--ease);
}
.hshow__btn:hover { background: var(--flow); border-color: var(--flow); }
.hshow__btn .icon-pause { display: block; }
.hshow__btn .icon-play  { display: none; }
.hshow__btn[aria-pressed="true"] .icon-pause { display: none; }
.hshow__btn[aria-pressed="true"] .icon-play  { display: block; }

@media (prefers-reduced-motion: reduce) {
  .hshow__slide { transition: none; }
}

/* --- 32. Key staff directory -------------------------------------------- */

.staff {
  display: grid;
  gap: clamp(1.75rem, 3.2vw, 2.75rem) clamp(1.25rem, 2.6vw, 2.25rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .staff { grid-template-columns: repeat(3, 1fr); } }

.scard {
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
}
.scard__frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-warm);
  border: 1px solid var(--stone);
}
.scard__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(1) contrast(1.04);
  transition: filter 620ms var(--ease), transform 720ms var(--ease);
}
.scard:hover .scard__img,
.scard:focus-visible .scard__img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.022);
}
/* Datum tick that slides in across the frame on hover */
.scard__frame::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease);
}
.scard:hover .scard__frame::after,
.scard:focus-visible .scard__frame::after { transform: scaleX(1); }

.scard__role {
  display: block;
  /* Two lines' worth of space so the names line up across a row even when
     one person's title wraps and their neighbour's does not. */
  min-height: 2.3em;
  margin-top: 1.05rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--flow);
}
.scard__name {
  font-family: var(--display);
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.28;
  margin-top: 0.35rem;
}
.scard__more {
  display: inline-block;
  margin-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
  transition: color 260ms var(--ease);
}
.scard:hover .scard__more,
.scard:focus-visible .scard__more { color: var(--flow); }
.scard:focus-visible { outline: 2px solid var(--flow); outline-offset: 6px; }

/* --- 33. Individual staff biography ------------------------------------- */

.sbio {
  display: grid;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .sbio { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); }
}

.sbio__aside { position: relative; }
@media (min-width: 900px) {
  .sbio__aside { position: sticky; top: 7.5rem; }
}
.sbio__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  background: var(--paper-warm);
  border: 1px solid var(--stone);
}
.sbio__ln {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.35rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--flow);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--flow) 35%, transparent);
  padding-bottom: 0.2rem;
  transition: border-color 260ms var(--ease);
}
.sbio__ln:hover { border-color: var(--flow); }

.sbio__body > * + * { margin-top: 1.15em; }
.sbio__body p { max-width: var(--measure); color: var(--graphite); }
.sbio__body .lead { color: var(--graphite); }

.sbio__h {
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flow);
  padding-top: 2.25rem;
  margin-top: 2.25rem !important;
  border-top: var(--rule);
}
.sbio__body > .sbio__h:first-child { padding-top: 0; margin-top: 0 !important; border-top: 0; }

.sbio__list {
  list-style: none;
  padding: 0;
  margin-top: 1rem !important;
  max-width: 74ch;
}
.sbio__list li {
  position: relative;
  padding-left: 1.5rem;
  padding-block: 0.4rem;
  font-size: var(--t-small);
  color: var(--graphite);
  border-bottom: 1px dashed color-mix(in srgb, var(--stone) 70%, transparent);
}
.sbio__list li:last-child { border-bottom: 0; }
.sbio__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 0.6rem;
  height: 1px;
  background: var(--flow);
}
.sbio__list li strong { color: var(--ink); font-weight: 600; }

/* Back link and prev/next rail */
.sback {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: color 240ms var(--ease);
}
.sback:hover { color: var(--flow-lift); }

.snav {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  border-top: var(--rule);
}
@media (min-width: 720px) { .snav { grid-template-columns: 1fr 1fr; } }
.snav__item {
  display: block;
  padding: 1.75rem 0;
  text-decoration: none;
  color: inherit;
  border-bottom: var(--rule);
}
@media (min-width: 720px) {
  .snav__item + .snav__item { padding-left: clamp(1.5rem, 3vw, 3rem); text-align: right; }
}
.snav__dir {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--graphite);
}
.snav__name {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--display);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color 240ms var(--ease);
}
.snav__item:hover .snav__name { color: var(--flow); }

@media (prefers-reduced-motion: reduce) {
  .scard__img, .scard__frame::after { transition: none; }
}

/* --- 2026-10 review edits --------------------------------------------- */

/* Home services: four categories in a 2 x 2 grid */
@media (min-width: 1040px) { .disciplines--four { grid-template-columns: repeat(2, 1fr); } }
.disciplines--four .disc { min-height: 20rem; }

/* Home hero without the photo panel: let the text use the full width */
.hero__grid:not(:has(.hero__media)) { grid-template-columns: minmax(0, 1fr); }
.hero__grid:not(:has(.hero__media)) .hero__body { max-width: 62rem; }
.hero__video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--slate); }

/* One prominent email under an office list */
.email-line {
  margin-top: 1.75rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem;
}
.email-line__label {
  font-family: var(--mono); font-weight: 500; font-size: 0.625rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite);
}
.form__actions .email-line { margin-top: 1.25rem; }

/* Project rows without a client column */
.pindex--noclient .prow__client { display: none; }
@media (min-width: 860px) {
  .pindex--compact .prow,
  .pindex--noclient .prow { grid-template-columns: 5rem minmax(0, 1fr) 14rem; }
}

/* Service category pages */
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); border-bottom: var(--rule); }
.jump .filter { display: inline-block; }
.jump .filter:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.svc { scroll-margin-top: 6rem; }
@media (min-width: 900px) {
  .svc--text { grid-template-columns: minmax(0, 1fr); }
  .svc--text > div { max-width: 60rem; }
}
.svc__stamp--inline { position: static; display: inline-block; margin-bottom: 1.25rem; }
.caps--links a { color: var(--ink); transition: color 250ms var(--ease); }
.caps--links a:hover { color: var(--flow); }
.phero .lead + .lead { margin-top: 1rem; }

/* Certifications: always open, no accordion */
.certs { border-top: var(--rule); }
.cert { padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: var(--rule); }
.cert__h { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 600; letter-spacing: -0.015em; margin-bottom: 1.1rem; }
.cert__sub {
  font-family: var(--body); font-weight: 600; font-size: var(--t-small); letter-spacing: 0;
  color: var(--ink); margin: 1.5rem 0 0.75rem;
}
.cert__h + .cert__sub { margin-top: 0; }
.cert dl { display: grid; gap: 0.35rem 1.5rem; grid-template-columns: 1fr; margin: 0; }
@media (min-width: 700px) { .cert dl { grid-template-columns: 12rem 1fr; } }
.cert dt {
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--flow); padding-top: 0.15rem;
}
.cert dd { margin: 0 0 1rem; font-size: var(--t-small); color: var(--graphite); }
.cert dd:last-child { margin-bottom: 0; }
.hero__grid:not(:has(.hero__media)) h1 { max-width: 24ch; }
.hero__grid:not(:has(.hero__media)) .hero__lead { max-width: 60ch; }

/* Careers: linked job titles and full job description pages */
.role__link { color: inherit; background-image: linear-gradient(var(--flow), var(--flow)); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size var(--dur) var(--ease), color 250ms var(--ease); }
.role__link:hover { color: var(--flow); background-size: 100% 1px; }
.role p .tlink { margin-left: 0.25rem; }
.job { max-width: 72ch; }
.job > p { color: var(--ink); }
.job__h { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-top: 2.5rem; margin-bottom: 0.9rem; }
.job > .job__h:first-child { margin-top: 0; }
.job__list { list-style: none; padding: 0; display: grid; gap: 0.55rem; margin: 0.75rem 0 1.25rem; }
.job__list > li { position: relative; padding-left: 1.4rem; }
.job__list > li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.6rem; height: 1px; background: var(--flow); }
.job__list ul { list-style: disc; padding-left: 1.25rem; margin-top: 0.35rem; display: grid; gap: 0.2rem; }

/* Home hero: full-bleed drone video behind the text */
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--ink); }
.hero__bgvideo { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.hero--video .hero__profile { display: none; }
.hero--video .hero__grad {
  background: linear-gradient(90deg, rgba(22, 26, 28, 0.88) 0%, rgba(22, 26, 28, 0.6) 45%, rgba(22, 26, 28, 0.15) 100%);
  background:
    linear-gradient(to top, color-mix(in srgb, var(--ink) 70%, transparent) 0%, transparent 35%),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 75%, transparent) 0%, transparent 22%),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 88%, transparent) 0%, color-mix(in srgb, var(--ink) 60%, transparent) 45%, color-mix(in srgb, var(--ink) 15%, transparent) 100%);
}
@media (max-width: 760px) {
  .hero--video .hero__grad { background: color-mix(in srgb, var(--ink) 72%, transparent); }
}
@media print { .hero__bg { display: none; } }

/* Home hero text sits in a translucent panel so the video can stay bright */
.hero--video .hero__grad {
  background: linear-gradient(to bottom, rgba(22, 26, 28, 0.55) 0%, transparent 22%);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 55%, transparent) 0%, transparent 22%);
}
.hero--video .hero__body {
  width: fit-content;
  max-width: min(100%, 46rem);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  background: rgba(22, 26, 28, 0.72);
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--flow);
}
.hero--video .hero__body h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); max-width: none; }
.hero--video .hero__body .hero__lead { max-width: 52ch; color: #D5DEE3; }
@media (max-width: 760px) {
  .hero--video .hero__grad { background: transparent; }
}

/* Contact form status message */
.form__status { margin-top: 1rem; font-size: var(--t-small); color: var(--ink); padding: 0.75rem 1rem; border-left: 3px solid var(--flow); background: var(--paper); }
.form__status.is-error { border-left-color: #B4232F; }

/* Header: staff intranet link, set apart from the main menu */
.nav__staff { padding-left: clamp(1.25rem, 2.5vw, 2.25rem); border-left: 1px solid rgba(255,255,255,.22); }
.nav__staff, .hdr__cta { white-space: nowrap; }
/* Not enough room for the CTA button next to the full menu on small laptops */
@media (min-width: 1000px) and (max-width: 1239px) { .hdr__cta { display: none; } }

/* --- 2026-11 review edits ---------------------------------------------- */
/* Short lead-in above a capabilities list ("Capabilities include:") */
.caps__intro { margin-top: 1.5rem; font-weight: 600; color: var(--ink); }
.caps__intro + .caps { margin-top: 0.75rem; }

/* Construction Management: one section, no heading; photo stays in view beside the long list */
.svc--single { padding-top: clamp(1rem, 2vw, 1.5rem); }
.svc--single .svc__lead { margin-top: 0; color: var(--ink); }
@media (min-width: 900px) { .svc--single .svc__media { position: sticky; top: 7rem; } }

/* Careers: "Current Opportunities" list, each row opens the full listing */
.roles__h { font-size: var(--t-h2); margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.role--link {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "meta go" "title go";
  gap: 0 1.5rem; align-items: center;
  color: var(--ink);
  transition: color 250ms var(--ease), padding-left 300ms var(--ease);
}
@media (min-width: 800px) { .role--link { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.role--link .role__meta { grid-area: meta; margin-bottom: 0.4rem; }
.role--link h3 { grid-area: title; }
.role__go { grid-area: go; font-size: 1.25rem; color: var(--flow); transition: transform 300ms var(--ease); }
.role--link:hover { color: var(--flow); }
.role--link:hover .role__go { transform: translateX(6px); }

/* Job listings: start the text closer to the banner */
.sec--job { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }

/* Mobile menu: Company and Services as dropdowns, and the menu scrolls if it's taller than the screen */
.hdr.is-open .drawer__inner { max-height: calc(100vh - 5rem); max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain; }
.drawer__group > .drawer__sub { display: none; }
.drawer__group.is-open > .drawer__sub { display: grid; }
.drawer__list li.drawer__group > a { border-bottom: var(--rule-dark); }
.drawer__list li.drawer__group.is-open > a { border-bottom: 0; }
.drawer__caret {
  margin-left: auto; align-self: center; width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--mist); border-bottom: 2px solid var(--mist);
  transform: translateY(-25%) rotate(45deg); transition: transform var(--dur) var(--ease);
}
.drawer__group.is-open .drawer__caret { transform: translateY(15%) rotate(-135deg); }

/* --- Phone tune-up (2026-11) ----------------------------------------------
   Bigger tap areas (about 44px, Apple's guideline), shorter home tiles,
   slightly larger small print. Desktop is unchanged. */
@media (max-width: 699px) {
  /* Home service tiles: less empty space so all four fit in fewer swipes */
  .disc, .disciplines--four .disc { min-height: 14rem; }
  .disc__body { padding-top: 1.5rem; padding-bottom: 1.5rem; }

  /* Footer links: full-width rows that are easy to hit */
  .ftr__cols ul { gap: 0; }
  .ftr__cols a { display: block; padding: 0.65rem 0; }
  .ftr__bar { font-size: 0.75rem; line-height: 1.7; }

  /* Office phone numbers and emails: bigger, easy to tap to call */
  .office address { font-size: 0.875rem; }
  .office address a { display: inline-block; padding: 0.55rem 0; font-size: 0.9375rem; color: var(--flow); }
  .office--dark address a { color: var(--flow-lift); }
  .email-line a { display: inline-block; padding: 0.6rem 0; }

  /* Small text links ("Related projects", "More about the firm", back links) */
  .tlink, .sback { display: inline-block; padding-block: 0.7rem; }
  .caps--links a { display: inline-block; padding-block: 0.35rem; }

  /* Small mono labels a touch larger */
  .svc__stamp { font-size: 0.6875rem; }
  .prow__disc, .role__meta { font-size: 0.75rem; }

  /* Slimmer header so more of the page shows on small screens */
  .hdr__inner { min-height: 4rem; }
  .mark__logo { width: 104px; }
  .hdr.is-open .drawer__inner { max-height: calc(100vh - 4rem); max-height: calc(100dvh - 4rem); }

  /* Buttons fill the width so they're easy to hit with a thumb */
  .form__actions .btn, .cta .btn { width: 100%; justify-content: center; }
}

/* Contact form: careers-only fields */
.field__opt { text-transform: none; letter-spacing: 0.02em; color: var(--graphite); opacity: 0.8; }
.field input[type="file"] { padding: 0.7rem 1rem; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: 1rem; padding: 0.5rem 0.9rem; border: 1px solid var(--stone); background: transparent;
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
.field[hidden] { display: none; }
.form > * { min-width: 0; }
.field input[type="file"] { width: 100%; max-width: 100%; }
/* Job pages: keep Apply now next to the heading */
@media (min-width: 900px) { .cta--job .cta__inner { grid-template-columns: auto auto; justify-content: start; column-gap: 3rem; } }
.field select { width: 100%; max-width: 100%; text-overflow: ellipsis; }
