@charset "utf-8";
/* ===========================================================================
   CROSSGATES DEVELOPMENTS
   Design system. Every value below is derived from the company logo:
   the ultramarine, the coursed roof, the 45-degree pitch, the heavy grotesque
   wordmark and the four-pane window.
   =========================================================================== */

/* --- 1. TOKENS ---------------------------------------------------------- */
:root {
  /* Colour. Ultramarine is sampled from the logo (#002FB0) and is used as a
     surface, not as an accent. */
  --ultramarine: #002fb0;
  --ultramarine-deep: #001a63;
  --ultramarine-lift: #1c46cf;
  --ink: #0c0f15;
  --ink-raised: #161b24;
  --chalk: #f1eee8;
  --chalk-sunk: #e5dfd4;
  --mortar: #cfc7b9;
  --stone: #635e55;          /* secondary text: 5.6:1 on chalk, 4.9:1 on chalk-sunk */
  --slate: #9aa1b0;          /* secondary text on ink    — 7.2:1 */

  --rule-on-chalk: color-mix(in srgb, var(--ink) 16%, transparent);
  --rule-on-ink: color-mix(in srgb, var(--chalk) 20%, transparent);
  --rule-on-ultra: color-mix(in srgb, var(--chalk) 34%, transparent);

  /* Type */
  --face-display: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --face-editorial: "Newsreader", "Iowan Old Style", Georgia, serif;
  --face-utility: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --fs-hero: clamp(2.4rem, 5.35vw, 5.7rem);
  --fs-xl: clamp(2.1rem, 5vw, 4.4rem);
  --fs-lg: clamp(1.7rem, 3.2vw, 2.9rem);
  --fs-md: clamp(1.25rem, 1.9vw, 1.65rem);
  --fs-lede: clamp(1.18rem, 1.85vw, 1.7rem);
  --fs-body: clamp(1rem, 0.95rem + 0.18vw, 1.09rem);
  --fs-small: 0.9375rem;
  --fs-micro: 0.75rem;

  /* Space */
  --gutter: clamp(20px, 4.2vw, 76px);
  --col-gap: clamp(16px, 1.9vw, 34px);
  --band: clamp(72px, 9.5vw, 168px);      /* vertical rhythm between bands */
  --measure: 62ch;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --slow: 620ms;
  --mid: 380ms;
  --fast: 200ms;
}

/* --- 2. BASE ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--face-display);
  font-size: var(--fs-body);
  font-variation-settings: "wdth" 100;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ultramarine); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ultramarine);
  outline-offset: 3px;
}
.on-dark :focus-visible, .on-ultra :focus-visible {
  outline-color: var(--chalk);
}

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--chalk);
  padding: 12px 18px; font-family: var(--face-utility);
  font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase;
  transition: top var(--fast) var(--ease);
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- 3. TYPE ROLES ------------------------------------------------------ */
.display {
  font-family: var(--face-display);
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  line-height: 0.92;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.display--hero { font-size: var(--fs-hero); font-variation-settings: "wdth" 108; line-height: 0.88; }
.display--xl { font-size: var(--fs-xl); }
.display--lg { font-size: var(--fs-lg); }
.display--md {
  font-size: var(--fs-md); font-weight: 650;
  font-variation-settings: "wdth" 104; line-height: 1.12; letter-spacing: -0.005em;
}

.lede {
  font-family: var(--face-editorial);
  font-size: var(--fs-lede);
  font-weight: 320;
  line-height: 1.42;
  letter-spacing: 0.002em;
  text-wrap: pretty;
}
.lede em { font-style: italic; }

.eyebrow {
  display: block;
  font-family: var(--face-utility);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ultramarine);
}
.on-dark .eyebrow, .on-ultra .eyebrow { color: var(--chalk); opacity: 0.68; }

.meta {
  font-family: var(--face-utility);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}
.on-dark .meta { color: var(--slate); }
.on-ultra .meta { color: color-mix(in srgb, var(--chalk) 78%, transparent); }

.prose p + p { margin-top: 1.1em; }
.prose { max-width: var(--measure); color: var(--ink); }
.prose--muted { color: var(--stone); }
.on-dark .prose { color: color-mix(in srgb, var(--chalk) 82%, transparent); }
.on-ultra .prose { color: color-mix(in srgb, var(--chalk) 90%, transparent); }

/* --- 4. SIGNATURE ELEMENT: THE COURSE RULE ------------------------------
   A stack of hairlines at the bar-to-gap ratio of the roof in the logo.
   It is the one graphic device the whole site is built from.              */
.course {
  --course-lines: 4;
  --course-line: 1.5px;
  --course-gap: 5px;
  display: block;
  width: 46px;
  height: calc(var(--course-lines) * (var(--course-line) + var(--course-gap)) - var(--course-gap));
  background-image: repeating-linear-gradient(
    to bottom,
    currentColor 0 var(--course-line),
    transparent var(--course-line) calc(var(--course-line) + var(--course-gap))
  );
  color: var(--ultramarine);
  flex: none;
}
.on-dark .course, .on-ultra .course { color: var(--chalk); opacity: 0.55; }
.course--wide { width: 96px; }
.course--tight { --course-gap: 3.5px; --course-lines: 5; }

.band-head { display: flex; align-items: center; gap: 18px; }

/* Roof chevron: the 45-degree pitch, used in place of arrows. */
.pitch {
  width: 0.62em; height: 0.62em; flex: none;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg); transform-origin: 60% 40%;
}

/* --- 5. LAYOUT ---------------------------------------------------------- */
.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

.band { padding-block: var(--band); position: relative; }
.band--tight { padding-block: calc(var(--band) * 0.62); }
.band--ink { background: var(--ink); color: var(--chalk); }
.band--ultra { background: var(--ultramarine); color: var(--chalk); }
.band--sunk { background: var(--chalk-sunk); }
.band--ruled { border-top: 1px solid var(--rule-on-chalk); }
.band--ink.band--ruled { border-top-color: var(--rule-on-ink); }

/* --- 6. MASTHEAD --------------------------------------------------------
   The logo is centred by a three-track grid with zero-floor side tracks, so
   it stays optically centred whatever the nav copy length. It is never
   centred by flexbox distribution.                                        */
.masthead {
  position: fixed; inset: 0 0 auto; z-index: 100;
  color: var(--chalk);
  transition: background var(--mid) var(--ease), color var(--mid) var(--ease),
              border-color var(--mid) var(--ease);
  border-bottom: 1px solid transparent;
  --mark-h: 44px;
  --word-fs: 25px;
  --bar-pad: 26px;
}
.masthead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(8, 10, 15, 0.66), rgba(8, 10, 15, 0));
  transition: opacity var(--mid) var(--ease);
}
.masthead.is-condensed {
  background: var(--chalk);
  color: var(--ink);
  border-bottom-color: var(--rule-on-chalk);
  --mark-h: 25px;
  --word-fs: 15px;
  --bar-pad: 13px;
}
.masthead.is-condensed::before { opacity: 0; }

.rail {
  border-bottom: 1px solid var(--rule-on-ink);
  overflow: hidden;
  transition: height var(--mid) var(--ease), opacity var(--mid) var(--ease),
              border-color var(--mid) var(--ease);
  height: 38px; opacity: 1;
}
.masthead.is-condensed .rail { height: 0; opacity: 0; border-color: transparent; }
.rail__inner {
  display: flex; align-items: center; justify-content: space-between; height: 38px;
  font-family: var(--face-display); font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--chalk) 74%, transparent);
}
.rail__inner a { transition: color var(--fast) var(--ease); }
.rail__inner a:hover { color: var(--chalk); }

.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.bar > * { min-width: 0; }
.bar__inner { padding-block: var(--bar-pad); transition: padding var(--mid) var(--ease); }

.nav { min-width: 0; }
.nav ul { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); min-width: 0; }
.nav--left ul { justify-content: flex-end; padding-right: clamp(24px, 3.4vw, 66px); }
.nav--right ul { justify-content: flex-start; padding-left: clamp(24px, 3.4vw, 66px); }

.nav a {
  position: relative; display: block; padding-block: 6px;
  font-family: var(--face-display); font-weight: 600;
  font-variation-settings: "wdth" 92;
  font-size: 0.8125rem; letter-spacing: 0.15em; text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--fast) var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 8px;
  background-image: repeating-linear-gradient(to bottom, currentColor 0 1.5px, transparent 1.5px 4px);
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--mid) var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="page"]::after {
  clip-path: inset(0 0 0 0);
}
.nav a[aria-current="page"] { opacity: 1; }

/* The lockup: mark over wordmark, scaling between the two header states. */
.lockup { display: grid; justify-items: center; gap: 9px; padding-inline: 6px; }
.lockup__mark { height: var(--mark-h); width: auto; color: currentColor; transition: height var(--mid) var(--ease); }
.lockup__mark svg { height: 100%; width: auto; display: block; }
.lockup__word {
  font-family: var(--face-display); font-weight: 700;
  font-variation-settings: "wdth" 110;
  font-size: var(--word-fs); line-height: 1; letter-spacing: 0.004em;
  transition: font-size var(--mid) var(--ease);
}
.lockup__sub {
  font-family: var(--face-display); font-weight: 600;
  font-variation-settings: "wdth" 108;
  font-size: max(7.5px, calc(var(--word-fs) * 0.335)); line-height: 1;
  letter-spacing: 0.42em; text-indent: 0.42em;
  transition: font-size var(--mid) var(--ease);
  opacity: 0.92;
}
.lockup__word-group { display: grid; gap: 7px; justify-items: center; }

/* Mobile-only masthead controls */
.bar__control {
  display: none;
  font-family: var(--face-utility); font-size: var(--fs-micro);
  letter-spacing: 0.16em; text-transform: uppercase;
  align-items: center; gap: 10px; padding: 10px 0;
}
.bar__control--right { justify-content: flex-end; }
.slat-glyph { display: grid; gap: 3.5px; width: 20px; }
.slat-glyph i { display: block; height: 1.5px; background: currentColor; }
.slat-glyph i:nth-child(1) { width: 100%; }
.slat-glyph i:nth-child(2) { width: 78%; }
.slat-glyph i:nth-child(3) { width: 56%; }

/* --- 7. MOBILE NAVIGATION PANEL ----------------------------------------- */
.panel {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink); color: var(--chalk);
  display: grid; grid-template-rows: 1fr auto;
  padding: 116px var(--gutter) calc(var(--gutter) + 8px);
  overflow-x: hidden;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform var(--slow) var(--ease), visibility var(--slow);
  overflow-y: auto;
}
.panel.is-open { transform: translateY(0); visibility: visible; }
.panel__brand { display: grid; justify-items: center; padding-bottom: 30px; }
.panel__links { display: grid; align-content: center; }
.panel__links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  min-width: 0;
  padding: 20px 0;
  border-top: 1px solid var(--rule-on-ink);
  font-family: var(--face-display); font-weight: 650;
  font-variation-settings: "wdth" 106;
  font-size: clamp(1.5rem, 7.4vw, 2.1rem); line-height: 1; letter-spacing: -0.01em;
}
.panel__links a:last-child { border-bottom: 1px solid var(--rule-on-ink); }
.panel__links span { flex: none; text-align: right; font-family: var(--face-utility); font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.panel__foot { display: grid; gap: 14px; padding-top: 30px; }
.panel__foot a { font-family: var(--face-display); font-weight: 600; font-size: 1.05rem; }
.panel__email { font-family: var(--face-utility) !important; font-size: 0.8125rem !important; font-weight: 400 !important; letter-spacing: 0.04em; color: var(--slate); overflow-wrap: anywhere; }

/* --- 8. BUTTONS AND LINKS ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 26px;
  background: var(--ultramarine); color: #fff;
  font-family: var(--face-display); font-weight: 650;
  font-variation-settings: "wdth" 98;
  font-size: 0.84rem; letter-spacing: 0.13em; text-transform: uppercase;
  border: 1px solid var(--ultramarine);
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.btn:hover { background: var(--ultramarine-deep); border-color: var(--ultramarine-deep); }
.btn .pitch { transition: transform var(--mid) var(--ease); transform: rotate(45deg) translate(0, 0); }
.btn:hover .pitch { transform: rotate(45deg) translate(3px, -3px); }

.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; opacity: 0.9; }
.btn--ghost:hover { background: currentColor; border-color: currentColor; opacity: 1; }
.on-dark .btn--ghost:hover, .on-ultra .btn--ghost:hover { color: var(--ink); }
.band--ultra .btn, .on-ultra .btn { background: var(--chalk); color: var(--ultramarine); border-color: var(--chalk); }
.band--ultra .btn:hover, .on-ultra .btn:hover { background: #fff; border-color: #fff; }

.link {
  display: inline-flex; align-items: center; gap: 12px;
  justify-self: start; align-self: start; width: fit-content;
  font-family: var(--face-display); font-weight: 600;
  font-variation-settings: "wdth" 96;
  font-size: 0.84rem; letter-spacing: 0.13em; text-transform: uppercase;
  padding-bottom: 9px;
  border-bottom: 1px solid currentColor;
  transition: gap var(--mid) var(--ease), color var(--fast) var(--ease);
}
.link:hover { gap: 18px; }
.link--ultra { color: var(--ultramarine); }

.tel {
  font-family: var(--face-display); font-weight: 650;
  font-variation-settings: "wdth" 104;
  letter-spacing: 0.01em;
}

/* --- 9. HERO ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: grid; grid-template-rows: 1fr auto;
  background: var(--ink); color: var(--chalk);
  isolation: isolate;
}
.hero__plate { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__plate img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero__plate::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8, 10, 15, 0.94) 0%, rgba(8, 10, 15, 0.42) 46%, rgba(8, 10, 15, 0.6) 100%),
    linear-gradient(to right, rgba(0, 26, 99, 0.5), rgba(0, 26, 99, 0) 62%);
}
.hero__body { align-self: end; padding-top: clamp(150px, 17vw, 230px); padding-bottom: clamp(30px, 4vw, 56px); }
.hero__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
.hero__title { grid-column: 1 / span 8; }
.hero__title h1 { margin-bottom: clamp(20px, 2.4vw, 34px); }
.hero__aside {
  grid-column: 10 / span 3; padding-bottom: 10px;
  border-left: 1px solid var(--rule-on-ink); padding-left: 26px;
}
.hero__aside ul { display: grid; gap: 11px; }
.hero__aside li { font-family: var(--face-utility); font-size: var(--fs-micro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 2vw, 32px); margin-top: clamp(26px, 3vw, 42px); }

.hero__rail { background: var(--ultramarine); color: var(--chalk); }
.hero__rail-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(18px, 2.4vw, 40px);
  padding-block: 16px;
  font-family: var(--face-display); font-size: 0.9375rem; font-weight: 600;
  letter-spacing: 0.005em;
}
.hero__rail-inner li { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.hero__rail-inner li + li { border-left: 1px solid rgba(255, 255, 255, 0.35); padding-left: clamp(18px, 2.4vw, 40px); }

/* Page hero, for interior pages: shorter, same family. */
.pagehead {
  position: relative; background: var(--ink); color: var(--chalk);
  padding-top: clamp(150px, 17vw, 250px); padding-bottom: clamp(56px, 7vw, 108px);
  isolation: isolate; overflow: hidden;
}
.pagehead__plate { position: absolute; inset: 0; z-index: -2; }
.pagehead__plate img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__plate::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 15, 0.9) 0%, rgba(8, 10, 15, 0.58) 60%, rgba(8, 10, 15, 0.72) 100%);
}
.pagehead--ultra { background: var(--ultramarine); }
.pagehead--ultra .pagehead__plate::after { background: linear-gradient(to top, rgba(0, 26, 99, 0.9), rgba(0, 26, 99, 0.6)); }
.pagehead__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 30px; align-items: end; }
.pagehead__title { grid-column: 1 / span 8; }
.pagehead__title h1 { margin-top: 22px; }
.pagehead__note { grid-column: 10 / span 3; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--face-utility); font-size: var(--fs-micro); letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.crumbs a:hover { color: var(--chalk); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 10px; opacity: 0.5; }
.crumbs li { display: flex; align-items: center; gap: 10px; }

/* --- 10. EDITORIAL BANDS ------------------------------------------------ */
.statement { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(30px, 4vw, 52px); }
.statement__head { grid-column: 1 / span 7; }
.statement__head .lede { font-size: clamp(1.35rem, 2.6vw, 2.35rem); line-height: 1.28; }
/* Longer statements: the opening sentence carries the size, the rest steps down. */
.statement__head .lede--follow { font-size: clamp(1.1rem, 1.45vw, 1.4rem); line-height: 1.5; margin-top: clamp(20px, 2.2vw, 30px); color: var(--stone); font-weight: 380; max-width: 58ch; }
.lede--follow p + p { margin-top: 0.8em; }
.statement__side { grid-column: 9 / span 4; align-self: end; display: grid; gap: 22px; }
.statement__side .prose { font-size: var(--fs-small); }

.offset { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(32px, 4vw, 56px); align-items: center; }
.offset__figure { grid-column: 1 / span 6; }
.offset__body { grid-column: 8 / span 5; display: grid; gap: 26px; }
.offset--flip .offset__figure { grid-column: 7 / span 6; order: 2; }
.offset--flip .offset__body { grid-column: 1 / span 5; order: 1; }

/* --- 11. CAPABILITY LIST (not cards) ------------------------------------ */
.capabilities { border-top: 1px solid var(--rule-on-chalk); }
.cap {
  position: relative;
  /* isolate so the ::before sweep paints above the band background rather than
     behind it — without this, z-index:-1 escapes to the root stacking context
     and the hover state disappears under the section colour. */
  isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 5.6fr) auto;
  align-items: baseline; column-gap: var(--col-gap);
  padding: clamp(26px, 3vw, 42px) 0;
  border-bottom: 1px solid var(--rule-on-chalk);
  transition: color var(--mid) var(--ease);
}
.cap::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1);
  background: var(--ultramarine);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--mid) var(--ease);
  z-index: -1;
}
.cap:hover, .cap:focus-within { color: var(--chalk); }
.cap:hover::before, .cap:focus-within::before { transform: scaleY(1); }
.cap:hover .cap__desc, .cap:focus-within .cap__desc { color: color-mix(in srgb, #fff 86%, transparent); }
.cap:hover .cap__go, .cap:focus-within .cap__go { opacity: 1; transform: translateX(0); }
.cap__title { font-family: var(--face-display); font-weight: 680; font-variation-settings: "wdth" 106; font-size: clamp(1.35rem, 2.5vw, 2.15rem); line-height: 1.04; letter-spacing: -0.012em; }
.cap__title a::after { content: ""; position: absolute; inset: 0; }
.cap__desc { color: var(--stone); font-size: var(--fs-small); max-width: 54ch; transition: color var(--mid) var(--ease); }
.cap__go { display: flex; align-items: center; gap: 12px; font-family: var(--face-utility); font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.62; transform: translateX(-6px); transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease); }

/* --- 12. FIGURES AND PLACEHOLDER PLATES --------------------------------- */
.figure { position: relative; margin: 0; }
.figure__frame { position: relative; overflow: hidden; background: var(--ink-raised); }
.figure__frame img { width: 100%; height: 100%; object-fit: cover; }
.figure--tall .figure__frame { aspect-ratio: 4 / 5; }
.figure--wide .figure__frame { aspect-ratio: 16 / 9; }
.figure--square .figure__frame { aspect-ratio: 1 / 1; }
.figure--pano .figure__frame { aspect-ratio: 21 / 9; }
.figure figcaption {
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
  margin-top: 14px;
  font-family: var(--face-utility); font-size: var(--fs-micro);
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--stone);
}
.on-dark .figure figcaption, .on-ultra .figure figcaption { color: color-mix(in srgb, var(--chalk) 66%, transparent); }
/* An honest, visible mark on any image that is not a Crossgates project. */
.figure__flag {
  position: absolute; left: 0; top: 0; z-index: 2;
  background: var(--ink); color: var(--chalk);
  padding: 7px 12px;
  font-family: var(--face-utility); font-size: 0.6875rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.figure__flag--ultra { background: var(--ultramarine); }

/* --- 13. FEATURED PROJECT ----------------------------------------------- */
.feature { position: relative; background: var(--ink); color: var(--chalk); overflow: hidden; }
.feature__plate { position: absolute; inset: 0; z-index: 0; }
.feature__plate img { width: 100%; height: 100%; object-fit: cover; }
.feature__plate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 10, 15, 0.88) 0%, rgba(8, 10, 15, 0.42) 38%, rgba(8, 10, 15, 0.14) 72%), linear-gradient(to right, rgba(8, 10, 15, 0.72), rgba(8, 10, 15, 0) 68%); }
.feature__inner { position: relative; z-index: 1; display: grid; align-content: end; min-height: min(86svh, 860px); padding-block: clamp(60px, 8vw, 120px); }
.feature__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 28px; align-items: end; }
.feature__title { grid-column: 1 / span 7; display: grid; gap: 22px; }
.feature__facts { grid-column: 9 / span 4; display: grid; gap: 0; }
.feature__facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--rule-on-ink); }
.feature__facts div:last-child { border-bottom: 1px solid var(--rule-on-ink); }
.feature__facts dt { font-family: var(--face-utility); font-size: var(--fs-micro); letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.feature__facts dd { margin: 0; font-size: var(--fs-small); }

/* --- 14. PROJECT INDEX --------------------------------------------------- */
.projects { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(44px, 6vw, 96px); }
.project { display: grid; gap: 20px; }
.project--lead { grid-column: 1 / span 12; }
.project--half { grid-column: span 6; }
.project--offset { grid-column: 2 / span 5; }
.project--offset-r { grid-column: 8 / span 5; }
.project--third { grid-column: span 4; }
.project__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.project h3 { font-family: var(--face-display); font-weight: 660; font-variation-settings: "wdth" 106; font-size: clamp(1.15rem, 1.9vw, 1.6rem); letter-spacing: -0.008em; line-height: 1.1; }
.project .figure__frame { transition: transform var(--slow) var(--ease); }
.project a { display: grid; gap: 20px; }
.project a:hover .figure__frame img { transform: scale(1.035); }
.figure__frame img { transition: transform var(--slow) var(--ease); }

/* --- 15. ROSTER (who we work with) --------------------------------------- */
.roster { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 clamp(20px, 3vw, 46px); }
.roster li { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); font-family: var(--face-display); font-weight: 640; font-variation-settings: "wdth" 108; font-size: clamp(1.5rem, 3.6vw, 3rem); line-height: 1.5; letter-spacing: -0.015em; }
.roster li::after { content: ""; width: 0.3em; height: 0.3em; border-top: 2px solid var(--ultramarine); border-right: 2px solid var(--ultramarine); transform: rotate(-45deg) translateY(-0.06em); }
.roster li:last-child::after { display: none; }
.on-dark .roster li::after, .on-ultra .roster li::after { border-color: var(--chalk); opacity: 0.6; }

/* --- 16. AREAS ----------------------------------------------------------- */
.areas { display: flex; flex-wrap: wrap; gap: 16px 0; }
.areas li { display: flex; align-items: center; }
.areas li a, .areas li span {
  display: block;
  font-family: var(--face-utility); font-size: 0.8125rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color var(--fast) var(--ease);
}
.areas li::after {
  content: ""; width: 6px; height: 6px; flex: none;
  margin: 0 clamp(14px, 1.5vw, 24px);
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(-45deg) translate(2px, 2px);
  opacity: 0.34;
}
.areas li:last-child::after { display: none; }
.areas li a:hover { color: var(--ultramarine); }
.on-dark .areas li a:hover { color: #fff; }

/* --- 17. FACT ROWS / SPECIFICATION LISTS --------------------------------- */
.spec { border-top: 1px solid var(--rule-on-chalk); }
.spec > div { display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 8fr); gap: var(--col-gap); padding: clamp(20px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--rule-on-chalk); }
.spec dt { font-family: var(--face-display); font-weight: 650; font-variation-settings: "wdth" 104; font-size: var(--fs-md); line-height: 1.2; letter-spacing: -0.008em; }
.spec dd { margin: 0; color: var(--stone); max-width: 60ch; }
.on-dark .spec, .on-dark .spec > div { border-color: var(--rule-on-ink); }
.on-dark .spec dd { color: var(--slate); }
.on-ultra .spec, .on-ultra .spec > div { border-color: var(--rule-on-ultra); }
.on-ultra .spec dd { color: color-mix(in srgb, var(--chalk) 84%, transparent); }

/* --- 18. FAQ ------------------------------------------------------------- */
.faq { border-top: 1px solid var(--rule-on-chalk); }
.faq details { border-bottom: 1px solid var(--rule-on-chalk); }
.faq summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: clamp(20px, 2.3vw, 28px) 0; cursor: pointer; list-style: none;
  font-family: var(--face-display); font-weight: 640; font-variation-settings: "wdth" 104;
  font-size: var(--fs-md); line-height: 1.24; letter-spacing: -0.008em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 13px; height: 13px; flex: none; margin-right: 6px; border-top: 2px solid var(--ultramarine); border-right: 2px solid var(--ultramarine); transform: rotate(135deg) translateY(-3px); transition: transform var(--mid) var(--ease); }
.faq details[open] summary::after { transform: rotate(-45deg) translateY(2px); }
.faq .prose { padding-bottom: clamp(20px, 2.3vw, 30px); color: var(--stone); }

.faq--dark, .faq--dark details { border-color: var(--rule-on-ink); }
.faq--dark summary::after { border-color: var(--chalk); }
.faq--dark .prose { color: var(--slate); }

/* --- 19. ENQUIRY FORM ---------------------------------------------------- */
.enquiry { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(34px, 4vw, 56px); }
.enquiry__intro { grid-column: 1 / span 4; display: grid; gap: 26px; align-content: start; }
.enquiry__form { grid-column: 6 / span 7; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--col-gap); }
.field { display: grid; gap: 8px; padding-block: 16px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--face-utility); font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.on-dark .field label, .on-ultra .field label { color: color-mix(in srgb, var(--chalk) 70%, transparent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--fs-body); color: inherit;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule-on-chalk);
  padding: 8px 0; line-height: 1.4; border-radius: 0; width: 100%;
  transition: border-color var(--fast) var(--ease);
}
.on-dark .field input, .on-dark .field select, .on-dark .field textarea,
.on-ultra .field input, .on-ultra .field select, .on-ultra .field textarea { border-bottom-color: var(--rule-on-ink); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field ::placeholder { color: var(--stone); opacity: 0.6; }
.on-dark .field ::placeholder { color: var(--slate); opacity: 0.7; }
.field select { appearance: none; background-image: none; cursor: pointer; }
.field select option { color: var(--ink); background: var(--chalk); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ultramarine); border-bottom-width: 2px; padding-bottom: 7px; }
/* Keyboard focus keeps the full ring; pointer focus gets the underline only. */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ultramarine); outline-offset: 4px; }
.on-dark .field input:focus-visible, .on-dark .field select:focus-visible, .on-dark .field textarea:focus-visible { outline-color: var(--chalk); }
.on-dark .field input:focus, .on-dark .field select:focus, .on-dark .field textarea:focus { border-bottom-color: var(--chalk); }
.field__error { font-family: var(--face-utility); font-size: var(--fs-micro); letter-spacing: 0.1em; color: #b4231b; min-height: 1.2em; }
.on-dark .field__error { color: #ff9d95; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-bottom-color: #b4231b; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 30px; }
.form__note { font-size: var(--fs-small); color: var(--stone); max-width: 42ch; line-height: 1.6; }
.on-dark .form__note { color: var(--slate); }

.success { display: none; border-top: 2px solid var(--ultramarine); padding-top: 34px; }
.success:focus, .success:focus-visible { outline: none; }
.success.is-shown { display: grid; gap: 20px; }
.success .display--lg { max-width: 20ch; }
form.is-sent { display: none; }

/* --- 20. FOOTER ---------------------------------------------------------- */
.sitefoot { background: var(--ink); color: var(--chalk); }
.sitefoot__cta { background: var(--ultramarine); color: var(--chalk); }
.sitefoot__cta-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 34px; align-items: end; padding-block: clamp(56px, 7vw, 108px); }
.sitefoot__cta-inner > div:first-child { grid-column: 1 / span 7; display: grid; gap: 24px; }
.sitefoot__cta-inner > div:last-child { grid-column: 9 / span 4; display: grid; gap: 18px; justify-items: start; }

.sitefoot__main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(40px, 5vw, 64px); padding-block: clamp(56px, 6.5vw, 100px); }
.sitefoot__brand { grid-column: 1 / span 4; display: grid; gap: 26px; align-content: start; }
.sitefoot__brand .lockup { justify-items: start; }
.sitefoot__brand .lockup__word-group { justify-items: start; }
.sitefoot__cols { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px var(--col-gap); }
.sitefoot__cols h2 { font-family: var(--face-utility); font-size: var(--fs-micro); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); margin-bottom: 18px; }
.sitefoot__cols ul { display: grid; gap: 11px; }
.sitefoot__cols a { font-size: var(--fs-small); overflow-wrap: anywhere; color: color-mix(in srgb, var(--chalk) 84%, transparent); transition: color var(--fast) var(--ease); }
.sitefoot__cols a:hover { color: var(--chalk); }
.sitefoot__base { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; padding-block: 26px; border-top: 1px solid var(--rule-on-ink); font-family: var(--face-utility); font-size: var(--fs-micro); letter-spacing: 0.1em; color: var(--slate); }
.sitefoot__base ul { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.sitefoot__base a:hover { color: var(--chalk); }

/* --- 20b. PLAIN COMPONENTS ------------------------------------------------ */
.h2 {
  font-family: var(--face-display); font-weight: 700;
  font-variation-settings: "wdth" 108;
  font-size: var(--fs-lg); line-height: 1.05; letter-spacing: -0.015em;
  text-wrap: balance;
}
.h2 + .prose, .h2 + p { margin-top: 20px; }

.textlink {
  color: var(--ultramarine); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.textlink:hover { text-decoration-thickness: 2px; }
.on-dark .textlink, .on-ultra .textlink { color: var(--chalk); }

/* Services: two columns of ruled entries rather than a stack of identical rows. */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 72px); margin-top: clamp(28px, 3.4vw, 48px); }
.svc { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.4vw, 30px) 0 clamp(28px, 3vw, 42px); border-top: 1px solid var(--rule-on-chalk); }
.svc h3 { font-family: var(--face-display); font-weight: 680; font-variation-settings: "wdth" 106; font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.1; letter-spacing: -0.01em; }
.svc h3 a { transition: color var(--fast) var(--ease); }
.svc h3 a:hover { color: var(--ultramarine); }
.svc p { color: var(--stone); font-size: var(--fs-small); max-width: 48ch; }

/* Area names in newspaper columns. */
.area-cols { columns: 4 9rem; column-gap: var(--col-gap); margin-top: 24px; }
.area-cols li { break-inside: avoid; padding: 5px 0; font-size: var(--fs-small); }
.on-dark .area-cols li { color: color-mix(in srgb, var(--chalk) 86%, transparent); }

.inline-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; }
.inline-links a { font-weight: 600; font-size: 1.05rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.inline-links a:hover { color: var(--ultramarine); }

.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 5vw, 96px); row-gap: 24px; align-items: start; }
.two-col--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 860px) {
  .svc-grid, .two-col, .two-col--even { grid-template-columns: minmax(0, 1fr); }
}

/* --- 20c. PHOTOGRAPHY ----------------------------------------------------- */
.hero__plate picture, .pagehead__plate picture, .figure__frame picture { display: block; width: 100%; height: 100%; }
/* Real photos need a lighter veil than the old texture plates. */
.pagehead--photo .pagehead__plate::after { background: linear-gradient(to top, rgba(8, 10, 15, 0.9) 0%, rgba(8, 10, 15, 0.5) 55%, rgba(8, 10, 15, 0.62) 100%); }
.hero--photo .hero__plate::after {
  background:
    linear-gradient(to top, rgba(8, 10, 15, 0.9) 0%, rgba(8, 10, 15, 0.35) 55%, rgba(8, 10, 15, 0.6) 100%),
    linear-gradient(to right, rgba(8, 10, 15, 0.7), rgba(8, 10, 15, 0) 70%);
}

/* A job write-up: text, then its photos. */
.jobs { display: grid; gap: clamp(56px, 7vw, 104px); }
.job { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(28px, 4vw, 64px); row-gap: 24px; align-items: start; }
.job__text { display: grid; gap: 12px; position: sticky; top: 110px; }
.job__text h3 { font-family: var(--face-display); font-weight: 680; font-variation-settings: "wdth" 106; font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1.1; letter-spacing: -0.01em; }
.job__meta { font-size: var(--fs-small); color: var(--stone); font-weight: 500; }
.on-dark .job__meta { color: var(--slate); }
.job__text .prose { font-size: var(--fs-small); }
.job__text ul { display: grid; gap: 6px; padding-left: 1.1em; list-style: disc; font-size: var(--fs-small); color: var(--stone); }
.on-dark .job__text ul { color: var(--slate); }

/* Justified gallery: each photo keeps its own shape, and rows fill the width.
   --r (width / height) is set on each figure by build.mjs. */
.gallery { display: flex; flex-wrap: wrap; gap: 10px; --row: 210px; }
.gallery::after { content: ""; flex-grow: 1000000; }
.shot { margin: 0; display: grid; gap: 7px; align-content: start; flex-grow: calc(var(--r, 1) * 100); flex-basis: calc(var(--r, 1) * var(--row)); min-width: 0; }
.shot a, .shot > picture { display: block; aspect-ratio: var(--r, 1); overflow: hidden; background: var(--chalk-sunk); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease); }
.shot a:hover img { transform: scale(1.03); }
.shot figcaption { font-size: 0.8125rem; color: var(--stone); }
.on-dark .shot figcaption { color: var(--slate); }
.zoom { cursor: zoom-in; }

@media (max-width: 860px) {
  .job { grid-template-columns: minmax(0, 1fr); }
  .job__text { position: static; }
}
@media (max-width: 700px) {
  .gallery { --row: 130px; gap: 8px; }
}

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(8, 10, 15, 0.94); color: var(--chalk); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lightbox::backdrop { background: rgba(8, 10, 15, 0.94); }
.lightbox img { max-width: min(92vw, 1600px); max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(92vw, 1600px); padding: 14px 0 22px; font-size: var(--fs-small); }
.lightbox__nav { display: flex; gap: 8px; }
.lightbox button { font: inherit; font-weight: 600; color: var(--chalk); padding: 8px 14px; border: 1px solid var(--rule-on-ink); }
.lightbox button:hover { background: rgba(255, 255, 255, 0.1); }

/* --- 21. NOTICES --------------------------------------------------------- */
.notice {
  border-left: 3px solid var(--ultramarine);
  padding: 18px 22px; background: var(--chalk-sunk);
  font-family: var(--face-utility); font-size: 0.8125rem; line-height: 1.75; color: var(--stone);
}
.on-dark .notice, .on-ultra .notice { background: rgba(255, 255, 255, 0.07); color: color-mix(in srgb, var(--chalk) 82%, transparent); border-left-color: var(--chalk); }

/* --- 22. MOTION ---------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js [data-reveal-delay="1"].is-in { transition-delay: 90ms; }
.js [data-reveal-delay="2"].is-in { transition-delay: 180ms; }
.js [data-reveal-delay="3"].is-in { transition-delay: 270ms; }

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

/* --- 23. RESPONSIVE ------------------------------------------------------ */
@media (max-width: 1180px) {
  .hero__title { grid-column: 1 / span 10; }
  .hero__aside { grid-column: 1 / span 8; border-left: 0; border-top: 1px solid var(--rule-on-ink); padding-left: 0; padding-top: 22px; margin-top: 34px; }
  .hero__aside ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statement__head { grid-column: 1 / span 9; }
  .statement__side { grid-column: 1 / span 7; }
  .enquiry__intro { grid-column: 1 / span 5; }
  .enquiry__form { grid-column: 7 / span 6; }
  .sitefoot__brand { grid-column: 1 / span 5; }
  .sitefoot__cols { grid-column: 7 / span 6; }
  .feature__title { grid-column: 1 / span 8; }
  .feature__facts { grid-column: 1 / span 6; }
  .pagehead__title { grid-column: 1 / span 10; }
  .pagehead__note { grid-column: 1 / span 7; }
}

@media (max-width: 980px) {
  .rail { display: none; }
  .masthead { --mark-h: 30px; --word-fs: 17px; --bar-pad: 14px; }
  .masthead.is-condensed { --mark-h: 24px; --word-fs: 14px; --bar-pad: 11px; }
  .nav { display: none; }
  .bar__control { display: flex; }
  .offset__figure, .offset--flip .offset__figure { grid-column: 1 / span 12; order: 1; }
  .offset__body, .offset--flip .offset__body { grid-column: 1 / span 12; order: 2; }
  .project--half, .project--offset, .project--offset-r, .project--third { grid-column: 1 / span 12; }
  .enquiry__intro, .enquiry__form { grid-column: 1 / span 12; }
  .sitefoot__brand, .sitefoot__cols { grid-column: 1 / span 12; }
  .sitefoot__cta-inner > div:first-child, .sitefoot__cta-inner > div:last-child { grid-column: 1 / span 12; }
  .cap { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .cap__go { opacity: 1; transform: none; }
  .spec > div { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .feature__facts div { grid-template-columns: 7.5rem 1fr; }
}

@media (max-width: 700px) {
  :root { --band: clamp(56px, 13vw, 96px); }
  .hero { min-height: min(100svh, 760px); }
  .hero__title { grid-column: 1 / span 12; }
  .hero__aside { display: none; }  /* duplicated by the ultramarine rail below */
  .hero__actions { gap: 16px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__rail-inner { font-size: 0.875rem; gap: 7px 16px; padding-block: 14px; }
  .hero__rail-inner li { gap: 16px; }
  .statement__head, .statement__side { grid-column: 1 / span 12; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .sitefoot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster li { font-size: clamp(1.35rem, 8vw, 2rem); }
  .feature__facts div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .figure--tall .figure__frame { aspect-ratio: 4 / 5; }
  .figure--pano .figure__frame { aspect-ratio: 3 / 2; }
}

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

@media print {
  .masthead, .panel, .sitefoot__cta { display: none; }
  body { background: #fff; color: #000; }
}
