@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

/* ════════════════════════════════════════════════════════════
   UNIFAME / COREXPERT C&C GROUP
   Light editorial system. Neutral ground, hairline rules,
   large restrained type. The photography carries the colour.
   ════════════════════════════════════════════════════════════ */

:root {
  /* ground ------------------------------------------------ */
  --paper: #FFFFFF;
  --paper-alt: #F5F4F0;      /* warm off-white */
  --paper-sunk: #EDEBE5;
  --ink: #111111;            /* near-black anchor */

  /* type colour ------------------------------------------- */
  --t1: #111111;
  --t2: #4A4A46;
  --t3: #7D7D77;
  --t4: #A6A6A0;

  --on-ink-1: #FFFFFF;
  --on-ink-2: #B8B8B2;
  --on-ink-3: #85857E;

  /* rules ------------------------------------------------- */
  --rule: rgba(17, 17, 17, .13);
  --rule-soft: rgba(17, 17, 17, .07);
  --rule-ink: rgba(255, 255, 255, .16);
  --rule-ink-soft: rgba(255, 255, 255, .08);

  /* type -------------------------------------------------- */
  --f-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;

  /* layout ------------------------------------------------ */
  --shell: 1240px;
  --shell-wide: 1440px;
  --gutter: clamp(22px, 5vw, 64px);
  --head-h: 74px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ── reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 20px);
  -webkit-text-size-adjust: 100%;
}
html, body { overflow-x: clip; }

body {
  background: var(--paper);
  color: var(--t1);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: -0.009em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
::selection { background: var(--ink); color: #fff; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.band-ink :focus-visible, .foot :focus-visible { outline-color: #fff; }

.anchor { display: block; height: 0; }

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 11px 18px;
  background: var(--ink);
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  transform: translateY(-180%);
  transition: transform .22s var(--ease);
}
.skip:focus-visible { transform: none; }

/* line-art icons, hairline weight */
svg[viewBox] { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }

/* ── shells ────────────────────────────────────────────── */
.shell { width: min(var(--shell), 100% - var(--gutter) * 2); margin-inline: auto; }
.shell-wide { width: min(var(--shell-wide), 100% - var(--gutter) * 2); margin-inline: auto; }

/* Grid items default to min-width:auto, so a wide photo raises the
   track's min-content floor and overflows the row. Opt out globally. */
.hero-in > *, .about > *, .split > *, .mission > *,
.svc-layout > *, .svc-body > *, .caps > li, .caps-rich li > div,
.mosaic > figure, .tech > *, .hexes > li, .steps > li, .inds > *, .hl > *, .values > li,
.contact-grid > *, .registry > *, .registry-nums > div,
.foot-top > *, .foot-nav > *, .pillars > li { min-width: 0; }

/* flow-root: sections whose padding-top is zeroed (adjacent same-tone
   bands) would otherwise let a child's margin-top collapse out of the
   section and open a seam of body background between them */
.band, .hero, .foot { display: flow-root; }

.band { position: relative; padding-block: clamp(60px, 6.2vw, 100px); }
.band-alt { background: var(--paper-alt); }
.band-alt + .band-alt { padding-top: 0; }
.band-ink { background: var(--ink); color: var(--on-ink-1); }

/* ── type primitives ───────────────────────────────────── */
.display, .serif {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: clamp(2rem, 4.1vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.display em, .serif em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--t3);
}
.band-ink .display, .band-ink .serif { color: #fff; }
.band-ink .display em { color: var(--on-ink-2); }

.eyebrow {
  font-size: .715rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t3);
}
.band-ink .eyebrow { color: var(--on-ink-3); }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  line-height: 1.52;
  letter-spacing: -0.015em;
  color: var(--t2);
}

/* cap the heading in its OWN type units — `ch` on the container resolves
   against the 17px body font (~243px) and crushed every heading into a
   narrow stack with a void beside it */
.sec-head { max-width: none; }
.sec-head .display, .sec-head .serif { margin-top: 16px; max-width: 24ch; }
.sec-sub { margin-top: 18px; max-width: 46ch; color: var(--t2); font-size: 1.04rem; }
.band-ink .sec-sub { color: var(--on-ink-2); }

/* section heads stay left-aligned — centred text reads brochure */
.sec-head-center .display, .sec-head-center .serif { max-width: 20ch; }

/* ── buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn .i { width: 16px; height: 16px; stroke-width: 1.5; transition: transform .3s var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.btn-sm { padding: 10px 17px; font-size: .79rem; }

.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #3a3a38; }
.band-ink .btn-solid { background: #fff; color: var(--ink); }
.band-ink .btn-solid:hover { background: var(--on-ink-2); }

.btn-line { color: var(--t1); border-color: var(--rule); }
.btn-line:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--rule);
  transition: border-color .22s var(--ease);
}
.link-more .i { width: 13px; height: 13px; stroke-width: 1.6; transition: transform .25s var(--ease); }
.link-more:hover { border-bottom-color: currentColor; }
.link-more:hover .i { transform: translate(2px, -2px); }
.band-ink .link-more { color: var(--on-ink-1); border-bottom-color: var(--rule-ink); }

/* ════ UTILITY BAR ════ */
.utility {
  background: var(--paper);
  color: var(--t3);
  font-size: .745rem;
  border-bottom: 1px solid var(--rule-soft);
}
.utility-in {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 8px;
}
.utility-creds, .utility-reach { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.utility-creds li { display: flex; align-items: center; gap: 7px; }
.utility .i { width: 13px; height: 13px; stroke-width: 1.3; color: var(--t4); flex: none; }
.utility .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--t4); flex: none; }
.utility-reach a { display: flex; align-items: center; gap: 7px; transition: color .2s var(--ease); }
.utility-reach a:hover { color: var(--t1); }

/* ════ MASTHEAD ════ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  /* sticky headers occupy flow — keep opaque so nothing shows through */
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.masthead.is-stuck {
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 22px -12px rgba(17, 17, 17, .45);
}
.masthead-in {
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
}

.wordmark { display: flex; align-items: center; gap: 11px; flex: none; }
.wordmark > img { width: 32px; height: auto; }
.wordmark-type { display: grid; gap: 1px; }
.wordmark-line {
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--t1);
}
.wordmark-line i { font-style: normal; color: var(--t4); font-weight: 400; }
.wordmark-line em { font-style: normal; color: var(--t1); }
.wordmark-sub {
  font-size: .575rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--t3);
  font-weight: 500;
}
.foot .wordmark-line, .foot .wordmark-line em { color: #fff; }
.foot .wordmark-line i, .foot .wordmark-sub { color: var(--on-ink-3); }

.nav { display: flex; gap: clamp(14px, 2.1vw, 30px); margin-left: auto; }
.nav a {
  position: relative;
  font-size: .87rem;
  font-weight: 450;
  color: var(--t2);
  padding-block: 7px;
  transition: color .22s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .34s var(--ease-out);
}
.nav a:hover, .nav a.is-active { color: var(--t1); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { flex: none; }

.burger {
  display: none;
  width: 40px; height: 40px;
  margin-left: auto;
  position: relative;
  border: 1px solid var(--rule);
}
.burger span {
  position: absolute;
  left: 11px;
  width: 18px; height: 1.4px;
  background: var(--t1);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ════ DRAWER ════ */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(390px, 88vw);
  z-index: 120;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  padding: 18px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateX(100%);
  transition: transform .42s var(--ease-out);
  overflow-y: auto;
}
.drawer[hidden] { display: flex; }
.drawer.is-open { transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-soft);
}
.drawer-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--rule);
  transition: background .22s var(--ease), color .22s var(--ease);
}
.drawer-close:hover { background: var(--ink); color: #fff; }
.drawer-close svg { width: 17px; height: 17px; stroke-width: 1.5; }

.drawer-nav { display: grid; }
.drawer-nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--t1);
  transition: padding-left .25s var(--ease);
}
.drawer-nav a span { font-size: .62rem; letter-spacing: .16em; color: var(--t4); font-weight: 500; }
.drawer-nav a:hover, .drawer-nav a.is-active { padding-left: 5px; }
.drawer-nav a.is-active span { color: var(--t1); }
.drawer-foot { margin-top: auto; display: grid; gap: 16px; }
.drawer-foot .btn { justify-content: center; }
.drawer-foot p { color: var(--t2); font-size: .92rem; line-height: 1.85; }
.drawer-foot a:hover { color: var(--t1); }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(17, 17, 17, .3);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.scrim[hidden] { display: block; pointer-events: none; }
.scrim.is-open { opacity: 1; pointer-events: auto; }

/* ════════════════════════ HERO ════════════════════════ */
.hero { background: var(--paper); }
.hero-in {
  padding-block: clamp(54px, 8vw, 104px) clamp(44px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.26fr) minmax(0, .74fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero h1 {
  margin-top: 20px;
  font-weight: 600;
  font-size: clamp(2.5rem, 6.4vw, 5.2rem);
  line-height: .98;
  letter-spacing: -0.042em;
  display: grid;
}
.hero h1 .h1-a { color: var(--t1); }
.hero h1 .h1-b { color: var(--t4); }
.hero h1 .h1-c {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: .64em;
  letter-spacing: -0.02em;
  color: var(--t1);
  margin-top: .1em;
}
.hero-lede {
  margin-top: 26px;
  max-width: 48ch;
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  line-height: 1.66;
  color: var(--t2);
}
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: 54% 32%;
}
/* stacked, not space-between — the two parts wrapped untidily side by side */
.hero-figure figcaption {
  display: grid;
  gap: 3px;
  padding-top: 13px;
  margin-top: 13px;
  border-top: 1px solid var(--rule);
}
.hero-figure-k { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--t3); }
.hero-figure figcaption strong { font-size: .86rem; font-weight: 500; color: var(--t1); }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pillars li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 24px clamp(14px, 2.4vw, 32px);
  font-size: .82rem;
  font-weight: 450;
  line-height: 1.42;
  color: var(--t2);
  position: relative;
}
.pillars li + li::before {
  content: "";
  position: absolute;
  left: 0; top: 26%;
  width: 1px; height: 48%;
  background: var(--rule-soft);
}
.pillar-i { width: 24px; height: 24px; color: var(--t1); flex: none; }

/* ════ SECTION OPENERS ════
   Full-bleed photographic band carrying a section's eyebrow and title,
   the one element kept from the previous unifameconsulting.com build. */
.opener {
  position: relative;
  isolation: isolate;
  display: flow-root;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink-1);
  min-height: clamp(280px, 34vw, 420px);
  display: grid;
  align-items: end;
}
.opener-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
/* light at the top, heavy at the bottom, so the type always sits on dark */
.opener::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(17, 17, 17, .30) 0%, rgba(17, 17, 17, .62) 55%, rgba(17, 17, 17, .88) 100%);
}
.opener-in { padding-block: clamp(40px, 5vw, 64px); }
.opener .eyebrow { color: rgba(255, 255, 255, .7); }
.opener .display { margin-top: 14px; color: #fff; max-width: 24ch; }
.opener .display em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: rgba(255, 255, 255, .72); }
.opener-sub {
  margin-top: 16px;
  max-width: 48ch;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, .82);
}

/* ════════════════════════ ABOUT ════════════════════════ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
}
.about-copy > p { margin-top: 20px; color: var(--t2); }
.about-copy .lede { margin-top: 26px; }
.about-copy .display { margin-top: 16px; }

.split {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  padding-top: 30px;
  border-top: 1px solid var(--rule);
}
.split-tag {
  display: block;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--t4);
  padding-bottom: 10px;
}
.split h3 { font-size: 1.14rem; font-weight: 600; letter-spacing: -0.022em; color: var(--t1); }
.split p { margin-top: 8px; font-size: .94rem; color: var(--t2); line-height: 1.58; }

.about-media img { width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover; }
.about-media figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 13px;
  margin-top: 13px;
  border-top: 1px solid var(--rule);
}
.about-media figcaption strong { font-size: .86rem; font-weight: 500; }
.about-media figcaption span { font-size: .78rem; color: var(--t3); }

/* ════ VISION & MISSION ════ */
.vm-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(38px, 4.5vw, 64px);
}
.vm-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vm-vision blockquote {
  margin-top: 22px;
  font-family: var(--f-serif);
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.022em;
  color: var(--t1);
  max-width: 24ch;
  text-wrap: balance;
}
.vm-vision blockquote em { font-style: italic; color: var(--t3); }

.vm-mission { padding-top: clamp(34px, 4vw, 54px); border-top: 1px solid var(--rule); }
.mission {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}
.mission li { display: grid; gap: 14px; align-content: start; }
.mission-n {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--t4);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.mission li p { color: var(--t2); font-size: .97rem; line-height: 1.56; }

/* ════════════════════════ SERVICES ════════════════════════ */
.services .sec-head { margin-bottom: clamp(34px, 4vw, 56px); }

.svc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.svc-rail { position: sticky; top: calc(var(--head-h) + 36px); }
.svc-rail ol { display: grid; }
.svc-rail a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--t3);
  font-size: .87rem;
  line-height: 1.38;
  transition: color .25s var(--ease);
}
.svc-rail a b { font-size: .68rem; font-weight: 500; letter-spacing: .1em; color: var(--t4); transition: color .25s var(--ease); }
.svc-rail a:hover { color: var(--t1); }
.svc-rail a.is-active { color: var(--t1); font-weight: 500; }
.svc-rail a.is-active b { color: var(--t1); }

.svc-stream { display: grid; gap: clamp(52px, 5.5vw, 84px); }
.svc { scroll-margin-top: calc(var(--head-h) + 30px); }

.svc-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 2.6vw, 30px);
  align-items: baseline;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.svc-num { font-size: .82rem; font-weight: 500; letter-spacing: .1em; color: var(--t4); }
.svc-head h3 {
  font-size: clamp(1.6rem, 3.1vw, 2.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
  color: var(--t1);
}
.svc-by {
  display: inline-block;
  font-size: .36em;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--t3);
  vertical-align: middle;
  margin-left: .7em;
}
.svc-tag {
  margin-top: 10px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: -0.012em;
  color: var(--t3);
}
.svc-intro { margin-top: 26px; max-width: 62ch; color: var(--t2); font-size: 1.04rem; }

.svc-body {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}

/* capability lists — rules, not boxes */
.caps { display: grid; }
.caps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.caps li:first-child { padding-top: 0; }
.cap-i { width: 21px; height: 21px; color: var(--t3); flex: none; margin-top: 2px; transition: color .25s var(--ease); }
.caps li:hover .cap-i { color: var(--t1); }
.caps > li > span { font-size: .99rem; font-weight: 450; color: var(--t1); line-height: 1.48; }
.caps-rich li > div { display: grid; gap: 5px; }
.caps-rich strong { font-size: 1rem; font-weight: 600; letter-spacing: -0.018em; color: var(--t1); }
.caps-rich span { font-size: .93rem; color: var(--t2); line-height: 1.56; }

/* photography */
.mosaic { display: grid; gap: 10px; }
.mosaic figure { overflow: hidden; background: var(--paper-sunk); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.mosaic figure:hover img { transform: scale(1.04); }

.mosaic-trio, .mosaic-pair, .mosaic-solo {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.mosaic .m-lead { grid-column: span 2; }
.mosaic .m-lead img { aspect-ratio: 16 / 10; }
.mosaic figure:not(.m-lead) img { aspect-ratio: 4 / 3; }
/* a lead plus a single tile: let the tile run full width too */
.mosaic-pair figure:not(.m-lead) { grid-column: span 2; }
.mosaic-pair figure:not(.m-lead) img { aspect-ratio: 16 / 7; }
.mosaic-solo .m-lead img { aspect-ratio: 16 / 10.5; }

/* assurances — a quiet typographic row */
.assure {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 14px clamp(20px, 3vw, 40px);
}
.assure li {
  font-size: .82rem;
  font-weight: 450;
  line-height: 1.45;
  color: var(--t2);
  padding-left: 15px;
  position: relative;
}
.assure li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 1px;
  background: var(--t4);
}

/* MEP scope chips */
.chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 14px;
  font-size: .76rem;
  font-weight: 450;
  color: var(--t2);
  border: 1px solid var(--rule);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.chips li:hover { border-color: var(--ink); color: var(--t1); }

/* retrofitting / waterproofing */
.tech {
  margin-top: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 56px);
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.tech-col h4 { margin-bottom: 12px; }
.tech-k { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.024em; color: var(--t1); }
.tech-col > p { color: var(--t2); font-size: .95rem; }

.ticks { display: grid; gap: 10px; margin-top: 20px; }
.ticks-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px clamp(20px, 3vw, 44px); margin-top: 28px; }
.ticks li {
  font-size: .95rem;
  line-height: 1.5;
  color: var(--t2);
  padding-left: 16px;
  position: relative;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .66em;
  width: 7px; height: 1px;
  background: var(--t4);
}


/* ════════════════════════ STRENGTHS ════════════════════════ */
.hexes {
  margin-top: clamp(34px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
}
.hexes li {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.hexes svg { width: 30px; height: 30px; stroke-width: 1.5; color: var(--t1); }
.hexes p { font-size: .97rem; font-weight: 450; line-height: 1.5; color: var(--t1); }

/* ════════════════════════ APPROACH ════════════════════════ */
.approach { padding-top: clamp(52px, 5.5vw, 84px); }
.steps { margin-top: clamp(32px, 4vw, 50px); display: grid; }
.steps li {
  display: grid;
  grid-template-columns: 42px 34px minmax(0, 1fr);
  align-items: start;
  gap: clamp(14px, 2.4vw, 30px);
  padding: clamp(22px, 3vw, 34px) 0;
  border-top: 1px solid var(--rule);
  transition: padding-left .34s var(--ease);
}
.step-i { display: block; color: var(--t1); margin-top: -2px; }
.step-i svg { width: 28px; height: 28px; stroke-width: 1.5; }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li:hover { padding-left: 10px; }
.step-n { font-size: .78rem; font-weight: 500; letter-spacing: .1em; color: var(--t4); padding-top: 5px; }
.steps h3 { font-size: clamp(1.1rem, 1.9vw, 1.42rem); font-weight: 600; letter-spacing: -0.026em; color: var(--t1); }
.steps p { font-size: .97rem; color: var(--t2); line-height: 1.56; }

/* ════════════════════════ INDUSTRIES ════════════════════════ */
.inds {
  max-width: 1120px;
  /* the heading now lives in the opener band, so the section padding
     already supplies the space above the cards */
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.ind-img { overflow: hidden; background: var(--paper-sunk); }
.ind-img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; transition: transform .8s var(--ease-out); }
.ind:hover .ind-img img { transform: scale(1.045); }
.ind-body { padding-top: 16px; }
.ind h3 { font-size: 1.04rem; font-weight: 600; letter-spacing: -0.022em; line-height: 1.26; color: var(--t1); }
.ind-body p { margin-top: 9px; font-size: .92rem; color: var(--t2); line-height: 1.55; }

/* ════════════════════════ HIGHLIGHTS ════════════════════════ */
.highlights { padding-top: clamp(52px, 5.5vw, 84px); }
.hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 4vw, 56px); }
.hl article { padding-top: 24px; border-top: 1px solid var(--rule); }
.hl-ico { display: block; width: 24px; height: 24px; margin-bottom: 20px; color: var(--t1); }
.hl-ico svg { width: 100%; height: 100%; }
.hl h3 { font-size: 1.16rem; font-weight: 600; letter-spacing: -0.024em; color: var(--t1); }
.hl-pledge p { margin-top: 16px; color: var(--t2); font-size: .97rem; }
.hl .ticks { margin-top: 16px; }

.values {
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 30px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}
.values li { display: grid; gap: 10px; align-content: start; }
.values svg { width: 22px; height: 22px; color: var(--t1); }
.values strong { font-size: .97rem; font-weight: 600; letter-spacing: -0.018em; color: var(--t1); }
.values span { font-size: .88rem; color: var(--t2); line-height: 1.5; }

/* ════════════════════════ CONTACT ════════════════════════ */
.contact { isolation: isolate; overflow: hidden; }
/* The photo sits behind the heading only, where there is little text, and
   fades to solid ink before the office details — a full-bleed overlay dark
   enough for body copy made the image invisible anyway. */
.contact-bg {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -2;
  width: 100%;
  height: clamp(300px, 46%, 560px);
  object-fit: cover;
  object-position: 50% 42%;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -1;
  height: clamp(300px, 46%, 560px);
  background: linear-gradient(180deg, rgba(17, 17, 17, .62) 0%, rgba(17, 17, 17, .74) 42%, rgba(17, 17, 17, .94) 82%, var(--ink) 100%);
}

.contact-grid {
  margin-top: clamp(34px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 56px);
}
.office { display: grid; gap: 14px; align-content: start; padding-top: 24px; border-top: 1px solid var(--rule-ink); }
.office-pin { display: block; width: 22px; height: 22px; color: var(--on-ink-2); }
.office-pin svg { width: 100%; height: 100%; }
.office h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.022em; color: #fff; }
.office address { color: var(--on-ink-2); font-size: .97rem; line-height: 1.72; }
.office .link-more { justify-self: start; margin-top: 2px; }

.office-reach dl { display: grid; gap: 3px; }
.office-reach dt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--on-ink-3);
}
.office-reach dt:first-of-type { margin-top: 0; }
.office-reach dt svg { width: 13px; height: 13px; }
.office-reach dd { margin: 0; }
.office-reach dd a {
  display: inline-block;
  padding: 2px 0;
  font-size: .98rem;
  color: var(--on-ink-1);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
  word-break: break-word;
}
.office-reach dd a:hover { border-bottom-color: var(--on-ink-2); }

.registry {
  margin-top: clamp(34px, 4vw, 56px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--rule-ink);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.registry-id { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.registry-id img { width: 64px; height: auto; padding: 7px; background: #fff; }
.registry-id strong {
  display: block;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.022em;
  color: #fff;
}
.registry-id span { display: block; margin-top: 9px; font-size: .82rem; line-height: 1.6; color: var(--on-ink-3); }
/* registration IDs are long unbroken strings — stack them so they can
   never collide, and let them break if the column is still too narrow */
.registry-nums { display: grid; gap: 14px; align-content: start; }
.registry-nums > div {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 6px 18px;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid var(--rule-ink-soft);
}
.registry-nums > div:first-child { padding-top: 0; border-top: 0; }
.registry-nums dt { font-size: .64rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-3); }
.registry-nums dd {
  margin: 0;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: #fff;
  overflow-wrap: anywhere;
}

/* ════════════════════════ FOOTER ════════════════════════ */
.foot { background: var(--ink); color: var(--on-ink-2); padding-top: clamp(46px, 5vw, 72px); }
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(34px, 5vw, 80px);
  padding-bottom: clamp(38px, 5vw, 60px);
}
.foot-brand > p { margin-top: 20px; font-size: .9rem; line-height: 1.6; color: var(--on-ink-3); max-width: 34ch; }
.foot-motto {
  margin-top: 14px !important;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.06rem !important;
  color: var(--on-ink-2) !important;
}
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); }
.foot-nav h4 {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--on-ink-3);
  padding-bottom: 16px;
  margin-bottom: 4px;
}
.foot-nav a, .foot-nav p {
  display: block;
  padding: 6px 0;
  font-size: .92rem;
  color: var(--on-ink-2);
  transition: color .2s var(--ease);
}
.foot-nav a:hover { color: #fff; }
.foot-nav p { color: var(--on-ink-3); }

.foot-strip {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(26px, 5vw, 70px);
  padding: 24px 0;
  border-top: 1px solid var(--rule-ink-soft);
}
.foot-strip li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 450;
  letter-spacing: .06em;
  color: var(--on-ink-2);
}
.foot-strip svg { width: 18px; height: 18px; color: var(--on-ink-3); }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--rule-ink-soft);
  font-size: .78rem;
  color: var(--on-ink-3);
}
/* the ID string has no natural break points and would otherwise clip */
.foot-legal span { min-width: 0; overflow-wrap: anywhere; }

/* ════ BACK TO TOP ════ */
.totop {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 80;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  translate: 0 14px;
  transition: opacity .3s var(--ease), translate .3s var(--ease), background .25s var(--ease);
}
.totop[hidden] { display: grid; pointer-events: none; }
.totop.is-on { opacity: 1; translate: 0; pointer-events: auto; }
.totop:hover { background: #3a3a38; }
.totop svg { width: 18px; height: 18px; stroke-width: 1.6; }

/* ════ REVEAL ════ */
.rv { opacity: 0; translate: 0 16px; transition: opacity .8s var(--ease-out), translate .8s var(--ease-out); }
.rv.in { opacity: 1; translate: 0; }
.d1 { transition-delay: .07s; }
.d2 { transition-delay: .14s; }
.d3 { transition-delay: .21s; }
.d4 { transition-delay: .28s; }

/* ════════════════════════ RESPONSIVE ════════════════════════ */
@media (max-width: 1180px) {
  .svc-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .hexes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  :root { --head-h: 66px; }
  .nav, .nav-cta { display: none; }
  .burger { display: block; }
  .utility-creds li:nth-child(n+3) { display: none; }

  .hero-in { grid-template-columns: minmax(0, 1fr); gap: clamp(34px, 6vw, 52px); align-items: start; }
  .hero-figure { max-width: 620px; }
  .hero-figure img { aspect-ratio: 16 / 10; object-position: 54% 36%; }

  .about { grid-template-columns: minmax(0, 1fr); }
  .about-media { order: -1; max-width: 600px; }
  .about-media img { aspect-ratio: 16 / 10; }

  /* the serif vision quote needs a full-width measure below desktop */
  .vm-top { grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 4vw, 40px); }
  .vm-media { max-width: 560px; }
  .mission { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .svc-layout { grid-template-columns: minmax(0, 1fr); }
  .svc-rail { position: static; margin-bottom: 10px; }
  .svc-rail ol {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--rule);
    scrollbar-width: none;
  }
  .svc-rail ol::-webkit-scrollbar { display: none; }
  .svc-rail li { flex: none; }
  .svc-rail a {
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    padding: 12px 0;
    margin-right: 22px;
  }
  .svc-rail a.is-active { border-bottom-color: var(--ink); }

  .svc-body { grid-template-columns: minmax(0, 1fr); }
  .tech { grid-template-columns: minmax(0, 1fr); }
  .hl { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .registry { grid-template-columns: minmax(0, 1fr); }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 34px minmax(0, 1fr); row-gap: 6px; }
  .step-i { display: none; }
  .steps li > div { grid-column: 2; }

  /* touch targets: these sat at 19-36px tall, under the ~44px thumb target.
     Padding only — the visual rhythm is unchanged. */
  .office-reach dd a { padding: 9px 0; }
  .foot-nav a { padding: 11px 0; }
  .utility-in { padding-block: 0; }
  .utility-reach a { padding: 11px 0; }
  .wordmark { min-height: 44px; }
  .drawer-foot p a { padding: 6px 0; display: inline-block; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .utility-creds li:nth-child(n+2) { display: none; }
  .utility-reach a:nth-child(2) { display: none; }

  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars li { padding: 18px 16px 18px 0; }
  .pillars li:nth-child(3), .pillars li:nth-child(4) { border-top: 1px solid var(--rule-soft); }
  .pillars li:nth-child(3)::before { display: none; }


  .split { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .mission { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hexes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inds { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .registry-nums { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .foot-nav { grid-template-columns: minmax(0, 1fr); }
  .foot-legal { flex-direction: column; }

  /* the contact section is far taller on one column — keep the photo to the
     heading block, and aim higher in the frame: a square-ish crop from the
     centre lands on dark glass and reads as flat */
  .contact-bg, .contact::before { height: 460px; }
  .contact-bg { object-position: 50% 22%; }
  /* the narrow crop falls on dark glass, so the desktop overlay buried it */
  .contact::before {
    background: linear-gradient(180deg, rgba(17, 17, 17, .40) 0%, rgba(17, 17, 17, .60) 38%, rgba(17, 17, 17, .90) 78%, var(--ink) 100%);
  }

  .svc-head { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ticks-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 440px) {
  .hexes { grid-template-columns: minmax(0, 1fr); }
  /* the base rules already give a full-width lead over a 2-up of tiles,
     which is the right phone layout — the stray `span 1` that used to live
     here was collapsing the lead to half width */
  .mosaic-pair figure:not(.m-lead) img { aspect-ratio: 16 / 9; }
}

/* ════ MOTION / PRINT ════ */
@media (hover: hover) and (min-width: 1025px) {
  /* approximate the old site's background-attachment: fixed parallax
     without the repaint cost of a fixed background */
  .opener-bg { height: 124%; top: -12%; transition: none; }
}

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

@media print {
  .utility, .masthead, .drawer, .scrim, .totop, .opener-bg { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band, .hero, .band-ink, .foot, .opener { background: #fff !important; color: #000 !important; padding-block: 18pt; }
  .opener .display, .office h3, .registry-id strong, .registry-nums dd, .foot .wordmark-line { color: #000 !important; }
  .rv { opacity: 1 !important; translate: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .mosaic { page-break-inside: avoid; }
}
