/* ==========================================================================
   Paramount Engineering & Development — Main Stylesheet
   --------------------------------------------------------------------------
   1. Tokens          6. Hero            11. Partners
   2. Base / reset    7. Page hero       12. Forms
   3. Typography      8. Sections        13. Project detail
   4. Buttons/links   9. Cards           14. Lightbox / video
   5. Header / nav   10. Why / services  15. Footer, utilities, motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #08182A;
  --navy: #0B2540;
  --navy-2: #102F4F;
  --brand: #0D4573;
  --brass: #C2A06A;
  --brass-light: #D6BA8A;
  --brass-ink: #85652F;
  --stone: #F2EFE8;
  --paper: #FAF8F4;
  --white: #FFFFFF;
  --text: #15212D;
  --muted: #56616C;
  --muted-light: rgba(255, 255, 255, .74);
  --line: rgba(11, 37, 64, .13);
  --line-light: rgba(255, 255, 255, .16);
  --danger: #B42318;
  --success: #1F7A4D;

  --font-display: "Cormorant Garamond", "Iowan Old Style", "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(84px, 10vw, 148px);
  --header-h: 84px;
  --radius: 2px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 40px 80px -40px rgba(8, 24, 42, .38);
  --shadow-sm: 0 10px 30px -12px rgba(8, 24, 42, .18);

  --z-content: 10;
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

/* 2. Base / reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.72 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
figure { margin: 0; }
address { font-style: normal; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: var(--z-modal);
  background: var(--brass); color: var(--ink); padding: 12px 18px; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 3. Typography ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font: 700 .7rem/1.2 var(--font-sans);
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--brass-ink);
  margin-bottom: 1.5rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; flex: none; }
.on-dark .eyebrow, .eyebrow--light { color: var(--brass); }

.title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.35rem, 4.4vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--navy);
  text-wrap: balance;
}
.title em { font-style: italic; color: var(--brand); }
.on-dark .title { color: var(--white); }
.on-dark .title em { color: var(--brass-light); }
.title--sm { font-size: clamp(2rem, 3.2vw, 2.85rem); }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.65; color: var(--muted); max-width: 46ch; }
.on-dark .lead, .on-dark p { color: var(--muted-light); }
.muted { color: var(--muted); }
.prose p { color: var(--muted); }
.prose p.prose__lead { font-size: 1.22rem; color: var(--text); line-height: 1.65; }

/* 4. Buttons & links ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .85rem;
  min-height: 54px; padding: 0 1.9rem;
  font: 700 .74rem/1 var(--font-sans);
  letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--brass-light); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--brand); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--ghost { border-color: var(--line); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font: 700 .72rem/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--navy); padding-block: .5rem;
  border-bottom: 1px solid currentColor;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.on-dark .link-arrow { color: var(--white); }

/* 5. Header & navigation --------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: var(--header-h);
  color: var(--white);
  transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease), transform .5s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -60px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8, 24, 42, .6), rgba(8, 24, 42, 0));
  transition: opacity .45s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .97);
  color: var(--navy);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgba(8, 24, 42, .25);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); }
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.header__inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { position: relative; display: inline-flex; align-items: center; line-height: 1; flex: none; }
.brand__logo { display: block; width: auto; height: 48px; transition: opacity .45s var(--ease); }
.brand__logo--dark { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.site-header.is-scrolled .brand__logo--light { opacity: 0; }
.site-header.is-scrolled .brand__logo--dark { opacity: 1; }
.site-footer .brand__logo { height: 64px; max-width: 100%; object-fit: contain; object-position: left center; }

.nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.4vw, 2.5rem); }
.nav__list { display: flex; align-items: center; gap: clamp(1.4rem, 2.4vw, 2.4rem); }
.nav__link {
  position: relative; display: inline-block; padding-block: .6rem;
  font: 700 .72rem/1 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__phone { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; font: 600 .82rem/1 var(--font-sans); letter-spacing: .04em; opacity: .9; }
.nav__phone svg { width: 15px; height: 15px; }
.nav__cta { min-height: 44px; padding: 0 1.3rem; border-color: rgba(255, 255, 255, .5); color: var(--white); }
.nav__cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.site-header.is-scrolled .nav__cta { background: var(--navy); border-color: var(--navy); color: var(--white); }
.site-header.is-scrolled .nav__cta:hover { background: var(--brand); border-color: var(--brand); }
.nav__mobile-extra { display: none; }
@media (min-width: 1241px) { .nav__item--mobile { display: none; } }
@media (max-width: 1439px) { .nav__phone { display: none; } }

/* Project hero (split: text + framed image) */
.project-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--white); padding: calc(var(--header-h) + clamp(40px, 5vw, 72px)) 0 clamp(112px, 11vw, 150px); }
.project-hero__mark { position: absolute; left: -6%; bottom: -18%; width: min(900px, 90vw); color: var(--white); opacity: .03; z-index: -1; pointer-events: none; }
.project-hero__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.project-hero__title { font: 500 clamp(2.8rem, 5.4vw, 5rem)/1 var(--font-display); letter-spacing: -.012em; margin-bottom: 1.4rem; text-wrap: balance; }
.project-hero__loc { display: flex; align-items: flex-start; gap: .7rem; color: var(--muted-light); font-size: 1.05rem; margin-bottom: 1.8rem; }
.project-hero__loc svg { width: 18px; height: 18px; flex: none; margin-top: .25rem; color: var(--brass); }
.project-hero__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-2); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .6); }
.project-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s var(--ease) both; }
.project-hero__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.project-hero__frame { position: absolute; inset: 24px -24px -24px 24px; border: 1px solid rgba(194, 160, 106, .45); z-index: -1; }
.project-hero__media-wrap { position: relative; }
@media (max-width: 900px) {
  .project-hero__grid { grid-template-columns: 1fr; }
  .project-hero__frame { display: none; }
}

.nav-toggle { display: none; width: 46px; height: 46px; position: relative; z-index: 2; margin-right: -10px; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), opacity .3s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; right: 18px; }
.nav-toggle span:nth-child(3) { top: 29px; }

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 2rem;
    padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
    background: var(--ink); color: var(--white);
    opacity: 0; visibility: hidden;
    transition: opacity .45s var(--ease), visibility 0s linear .45s;
    overflow-y: auto;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line-light); transform: translateY(14px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
  .nav__link { display: flex; justify-content: space-between; padding-block: 1.15rem; font: 500 clamp(1.8rem, 6vw, 2.4rem)/1.1 var(--font-display); letter-spacing: 0; text-transform: none; }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--brass); }
  .nav__phone, .nav__cta { display: none; }
  .nav__mobile-extra { display: grid; gap: 1.25rem; color: var(--muted-light); font-size: .95rem; }
  .nav__mobile-extra a { color: var(--white); }
  .nav-open .nav { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
  .nav-open .nav__list li { transform: none; opacity: 1; }
  .nav-open .nav__list li:nth-child(2) { transition-delay: .05s; }
  .nav-open .nav__list li:nth-child(3) { transition-delay: .1s; }
  .nav-open .nav__list li:nth-child(4) { transition-delay: .15s; }
  .nav-open .nav__list li:nth-child(5) { transition-delay: .2s; }
  .nav-open .nav__list li:nth-child(6) { transition-delay: .25s; }
  .nav-open .site-header { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
  .nav-open .site-header .brand__logo--light { opacity: 1; }
  .nav-open .site-header .brand__logo--dark { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .brand { position: relative; z-index: 2; }
}
.nav-open { overflow: hidden; }

/* 6. Home hero ------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(660px, 100vh); min-height: max(660px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); background: var(--ink); overflow: hidden;
}
.hero__media, .hero__slide { position: absolute; inset: 0; }
.hero__media { z-index: -2; }
.hero__slide { opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.09); transition: transform 9s linear; will-change: transform; }
.hero__slide.is-active img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 24, 42, .86) 0%, rgba(8, 24, 42, .55) 42%, rgba(8, 24, 42, .12) 75%),
    linear-gradient(0deg, rgba(8, 24, 42, .85) 0%, rgba(8, 24, 42, 0) 42%);
}
.hero__content { padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(48px, 7vh, 88px); }
.hero__title {
  font: 500 clamp(2.9rem, 6.4vw, 6.1rem)/1 var(--font-display);
  letter-spacing: -.015em; margin-bottom: 1.8rem;
}
.hero__title > span, .hero__title > em { display: block; }
.hero__title em { color: var(--brass-light); }
.hero__lead { max-width: 52ch; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted-light); margin-bottom: 2.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__footer {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding-block: 26px 34px; border-top: 1px solid var(--line-light);
}
.hero__caption { display: grid; gap: .35rem; min-height: 54px; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.hero__caption.is-changing { opacity: 0; transform: translateY(8px); }
.hero__caption-label { font: 700 .64rem/1 var(--font-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--brass); }
.hero__caption-title { display: inline-flex; align-items: center; gap: .6rem; font: 500 1.5rem/1.15 var(--font-display); }
.hero__caption-title svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.hero__caption:hover .hero__caption-title svg { transform: translateX(4px); }
.hero__caption-meta { font-size: .85rem; color: var(--muted-light); }
.hero__controls { display: flex; align-items: center; gap: 22px; }
.hero__count { font: 600 .78rem/1 var(--font-sans); letter-spacing: .14em; color: var(--muted-light); font-variant-numeric: tabular-nums; }
.hero__count strong { color: var(--white); font-weight: 700; }
.hero__dots { display: flex; gap: 10px; }
.hero__dot { width: 54px; height: 22px; position: relative; }
.hero__dot::before, .hero__dot span { content: ""; position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; width: 100%; background: rgba(255, 255, 255, .28); }
.hero__dot span { background: var(--brass); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active span { animation: heroProgress var(--hero-duration, 7s) linear forwards; }
.hero__dot.is-done span { transform: scaleX(1); }
@keyframes heroProgress { to { transform: scaleX(1); } }
.hero.is-paused .hero__dot.is-active span { animation-play-state: paused; }

/* Press bar */
.press { background: var(--ink); color: var(--white); border-top: 1px solid var(--line-light); }
.press__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 26px; flex-wrap: wrap; }
.press__label { font: 700 .64rem/1 var(--font-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted-light); }
.press__outlets { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2.4rem; }
.press__outlet { font: 500 1.22rem/1 var(--font-display); letter-spacing: .02em; color: rgba(255, 255, 255, .86); font-style: italic; }
.press__story { display: inline-flex; align-items: center; gap: .65rem; font-size: .9rem; color: var(--white); border-bottom: 1px solid rgba(194, 160, 106, .6); padding-bottom: 3px; }
.press__story svg { width: 14px; height: 14px; color: var(--brass); }

/* 7. Interior page hero ---------------------------------------------------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 64vh, 660px);
  display: flex; align-items: flex-end;
  color: var(--white); background: var(--ink);
  padding: calc(var(--header-h) + 56px) 0 clamp(52px, 7vw, 96px);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(8, 24, 42, .92) 0%, rgba(8, 24, 42, .5) 55%, rgba(8, 24, 42, .38) 100%),
              linear-gradient(90deg, rgba(8, 24, 42, .55), rgba(8, 24, 42, 0) 70%);
}
.page-hero__title { font: 500 clamp(2.9rem, 6vw, 5.4rem)/1 var(--font-display); letter-spacing: -.012em; max-width: 16ch; text-wrap: balance; }
.page-hero__lead { margin-top: 1.6rem; max-width: 60ch; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--muted-light); }
.page-hero--tall { min-height: clamp(520px, 82vh, 860px); }

/* Background video (Engineering). The poster image shows first; the video fades in once playing. */
.page-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.page-hero__video.is-playing { opacity: 1; }
.page-hero--video::after {
  background: linear-gradient(0deg, rgba(8, 24, 42, .88) 0%, rgba(8, 24, 42, .32) 50%, rgba(8, 24, 42, .2) 100%),
              linear-gradient(90deg, rgba(8, 24, 42, .62), rgba(8, 24, 42, 0) 62%);
}
.video-toggle {
  position: absolute; right: var(--gutter); bottom: clamp(24px, 3.4vw, 48px); z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  color: var(--white); background: rgba(8, 24, 42, .35); border: 1px solid rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.video-toggle:hover { background: rgba(255, 255, 255, .14); border-color: var(--white); }
.video-toggle svg { width: 15px; height: 15px; grid-area: 1 / 1; }
.video-toggle__play, .video-toggle.is-paused .video-toggle__pause { display: none; }
.video-toggle.is-paused .video-toggle__play { display: block; }
@media (max-width: 700px) { .video-toggle { top: calc(var(--header-h) + 10px); bottom: auto; width: 40px; height: 40px; } }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: 1.6rem; font: 700 .66rem/1.4 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted-light); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-right: .55rem; color: var(--brass); }
.breadcrumb [aria-current] { color: var(--brass); }

/* 8. Sections -------------------------------------------------------------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(64px, 7vw, 104px); }
.section--stone { background: var(--stone); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--ink { background: var(--ink); color: var(--white); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 4rem; flex-wrap: wrap; margin-bottom: clamp(44px, 5.5vw, 80px); }
.section-head__text { max-width: 760px; }
.section-head .lead { margin-top: 1.4rem; }

.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.split__a { grid-column: 1 / span 6; }
.split__b { grid-column: 8 / span 5; }
.split--center { align-items: center; }

/* Intro + stats */
.intro__text .lead { max-width: none; color: var(--text); font-size: clamp(1.15rem, 1.6vw, 1.36rem); }
.intro__text p { color: var(--muted); }
.intro__links { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.2rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); }
.stat { padding: 34px 28px 6px 0; display: grid; gap: .85rem; align-content: start; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat__num { font: 500 clamp(3rem, 5.2vw, 4.6rem)/.9 var(--font-display); color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.stat__num sup, .stat__num .stat__suffix { color: var(--brass); }
.stat__label { font-size: .9rem; line-height: 1.5; color: var(--muted); max-width: 22ch; }
.on-dark .stats { border-color: var(--line-light); }
.on-dark .stat + .stat { border-color: var(--line-light); }
.on-dark .stat__num { color: var(--white); }

/* 9. Cards ----------------------------------------------------------------- */
/* Featured projects (home) */
.featured { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(300px, auto); gap: 22px; }
.feature { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--ink); grid-column: span 5; display: flex; align-items: flex-end; min-height: 320px; }
.feature:first-child { grid-column: span 7; grid-row: span 2; min-height: 660px; }
.feature__media { position: absolute; inset: 0; z-index: -2; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 24, 42, .9) 0%, rgba(8, 24, 42, .2) 55%, rgba(8, 24, 42, .05) 100%); transition: opacity .6s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.05); }
.feature__body { width: 100%; padding: clamp(24px, 3vw, 40px); display: grid; gap: .55rem; }
.feature__type { font: 700 .64rem/1 var(--font-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
.feature__title { font: 500 clamp(1.8rem, 2.6vw, 2.6rem)/1.05 var(--font-display); }
.feature:first-child .feature__title { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
.feature__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--muted-light); }
.feature__arrow { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; flex: none; transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s; }
.feature__arrow svg { width: 16px; height: 16px; }
.feature:hover .feature__arrow { background: var(--brass); border-color: var(--brass); color: var(--ink); }

/* Portfolio filter + grid */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(36px, 4vw, 56px); }
.filter {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 1.15rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font: 700 .7rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
  transition: background-color .3s var(--ease), color .3s, border-color .3s;
}
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter__count { font-size: .66rem; opacity: .6; font-variant-numeric: tabular-nums; }
.portfolio-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; color: var(--muted); font-size: .9rem; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 32px); }
.project-card { display: grid; align-content: start; color: inherit; }
.project-card.is-hiding { opacity: 0; transform: translateY(12px); }
.project-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #DCE1E6; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__media::after { content: ""; position: absolute; inset: 0; background: rgba(8, 24, 42, 0); transition: background-color .5s var(--ease); }
.project-card:hover .project-card__media::after { background: rgba(8, 24, 42, .12); }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem; font: 700 .6rem/1 var(--font-sans); letter-spacing: .18em; text-transform: uppercase;
  background: rgba(8, 24, 42, .82); color: var(--white);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.badge--live::before { background: #4CC38A; box-shadow: 0 0 0 3px rgba(76, 195, 138, .25); }
.project-card .badge { position: absolute; top: 16px; left: 16px; z-index: 1; }
.project-card__body { padding-top: 1.35rem; display: grid; gap: .4rem; }
.project-card__type { font: 700 .64rem/1.4 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-ink); }
.project-card__title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font: 500 1.75rem/1.12 var(--font-display); color: var(--navy); }
.project-card__title svg { width: 18px; height: 18px; flex: none; color: var(--brass-ink); opacity: 0; transform: translateX(-8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.project-card:hover .project-card__title svg { opacity: 1; transform: none; }
.project-card__loc { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); }
.project-card__loc svg { width: 14px; height: 14px; flex: none; color: var(--brass-ink); }

/* News */
.news-feature { display: grid; grid-template-columns: 7fr 5fr; background: var(--white); box-shadow: var(--shadow-sm); margin-bottom: clamp(36px, 4vw, 56px); }
.news-feature .news-card__media { aspect-ratio: auto; min-height: 380px; }
.news-feature .news-card__body { padding: clamp(28px, 4vw, 56px); align-content: center; }
.news-feature .news-card__title { font-size: clamp(1.9rem, 2.8vw, 2.6rem); }
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 3vw, 44px); }
.news-card { display: grid; align-content: start; background: var(--white); color: inherit; transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.news-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #DCE1E6; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding: 28px 30px 34px; display: grid; gap: .9rem; }
.news-card__source { display: flex; align-items: center; gap: .7rem; font: 700 .64rem/1.3 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-ink); }
.news-card__title { font: 500 1.6rem/1.18 var(--font-display); color: var(--navy); text-wrap: balance; }
.news-card__cta { display: inline-flex; align-items: center; gap: .55rem; margin-top: .4rem; font: 700 .68rem/1 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--navy); }
.news-card__cta svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.news-card:hover .news-card__cta svg { transform: translate(3px, -3px); }

/* 10. Why / services / process ---------------------------------------------- */
.why { overflow: hidden; }
.why__watermark { position: absolute; right: -8%; bottom: -12%; width: min(980px, 80vw); color: var(--white); opacity: .035; pointer-events: none; }
.why__grid { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 128px); }
.why__intro { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.why__intro .lead { margin-top: 1.6rem; }
.why__intro .btn { margin-top: 2.4rem; }
.pillars { counter-reset: pillar; }
.pillar { display: grid; grid-template-columns: 96px 1fr; gap: 1.5rem; padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-light); }
.pillar:last-child { border-bottom: 1px solid var(--line-light); }
.pillar__num { font: 500 3.1rem/1 var(--font-display); color: var(--brass); }
.pillar__title { font: 700 .8rem/1.4 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--white); margin-bottom: .9rem; }
.pillar p { color: var(--muted-light); font-size: 1.05rem; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(22px, 3vw, 40px); }
.service-card { display: grid; grid-template-rows: auto 1fr; background: var(--white); color: inherit; transition: box-shadow .5s var(--ease); }
.service-card:hover { box-shadow: var(--shadow); }
.service-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body { padding: clamp(28px, 3.4vw, 48px); display: grid; gap: 1.1rem; align-content: start; }
.service-card__num { font: 700 .66rem/1 var(--font-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brass-ink); }
.service-card__title { font: 500 clamp(2rem, 3vw, 2.6rem)/1.05 var(--font-display); color: var(--navy); }
.service-card p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; padding: .5rem .8rem; border: 1px solid var(--line); font: 600 .74rem/1.2 var(--font-sans); color: var(--navy); background: var(--paper); }
.on-dark .tag { border-color: var(--line-light); color: var(--white); background: transparent; }

/* Product grid (development) */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product { display: grid; gap: 1rem; align-content: space-between; min-height: 150px; padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); transition: background-color .4s var(--ease), color .4s var(--ease); }
.product:hover { background: var(--navy); color: var(--white); }
.product__num { font: 700 .66rem/1 var(--font-sans); letter-spacing: .2em; color: var(--brass-ink); }
.product:hover .product__num { color: var(--brass); }
.product__name { font: 500 1.4rem/1.15 var(--font-display); }

/* Process */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.process__step { position: relative; padding: 42px 26px 0 0; display: grid; gap: .8rem; align-content: start; }
.process__step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-light); }
.process__step::after { content: ""; position: absolute; top: -6px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--navy); border: 1px solid var(--brass); }
.process__num { font: 500 2.4rem/1 var(--font-display); color: var(--brass); }
.process__title { font: 700 .78rem/1.45 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--white); }

/* Alternating feature rows */
.rows { display: grid; gap: clamp(72px, 9vw, 136px); }
.row { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.row__media { grid-column: 1 / span 7; position: relative; }
.row__body { grid-column: 9 / span 4; }
.row--flip .row__media { grid-column: 6 / span 7; order: 2; }
.row--flip .row__body { grid-column: 1 / span 4; order: 1; }
.row__img { aspect-ratio: 4 / 3; overflow: hidden; background: #DCE1E6; }
.row__img img { width: 100%; height: 100%; object-fit: cover; }
.row__inset { position: absolute; right: -6%; bottom: -10%; width: 42%; border: 8px solid var(--paper); box-shadow: var(--shadow); aspect-ratio: 1; overflow: hidden; }
.row__inset img { width: 100%; height: 100%; object-fit: cover; }
.row--flip .row__inset { right: auto; left: -6%; }
.row__body .title { margin-bottom: 1.5rem; }
.row__body p { color: var(--muted); }
.row__list { display: grid; gap: 0; margin-top: 1.6rem; border-top: 1px solid var(--line); }
.row__list li { display: flex; align-items: center; gap: .9rem; padding-block: .95rem; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.row__list li svg { width: 16px; height: 16px; color: var(--brass-ink); flex: none; }

/* Disciplines (engineering) */
.disciplines { display: grid; grid-template-columns: 270px 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.disciplines__nav { position: sticky; top: calc(var(--header-h) + 36px); }
.disciplines__nav p { font: 700 .66rem/1 var(--font-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.disciplines__nav a { display: grid; grid-template-columns: 34px 1fr; gap: .4rem; padding-block: .85rem; border-top: 1px solid var(--line); font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .3s; }
.disciplines__nav li:last-child a { border-bottom: 1px solid var(--line); }
.disciplines__nav a span { font: 700 .68rem/1.9 var(--font-sans); letter-spacing: .12em; color: var(--brass-ink); }
.disciplines__nav a:hover, .disciplines__nav a.is-active { color: var(--navy); }
.disciplines__nav a.is-active { box-shadow: inset 2px 0 0 var(--brass); padding-left: 12px; }
.discipline { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 3.6vw, 56px); padding-block: clamp(44px, 5vw, 72px); border-top: 1px solid var(--line); align-items: start; }
.discipline:first-child { padding-top: 0; border-top: 0; }
.discipline__img { aspect-ratio: 4 / 5; overflow: hidden; background: #DCE1E6; }
.discipline__img img { width: 100%; height: 100%; object-fit: cover; }
.discipline__num { font: 500 3rem/1 var(--font-display); color: var(--brass); margin-bottom: 1rem; }
.discipline__title { font: 500 clamp(1.9rem, 2.8vw, 2.5rem)/1.08 var(--font-display); color: var(--navy); margin-bottom: 1.4rem; }
.discipline p { color: var(--muted); }

/* Team */
.team { display: grid; gap: clamp(72px, 9vw, 128px); }
.member { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.member--flip { grid-template-columns: 7fr 5fr; }
.member--flip .member__photo { order: 2; }
.member__photo { position: relative; width: 80%; justify-self: center; }
.member__photo-frame { aspect-ratio: 4 / 5; overflow: hidden; background: #DCE1E6; }
.member__photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.member__photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--brass); z-index: -1; }
.member--flip .member__photo::before { inset: 22px 22px -22px -22px; }
.member__role { font: 700 .7rem/1 var(--font-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 1rem; }
.member__name { font: 500 clamp(2.4rem, 4vw, 3.6rem)/1 var(--font-display); color: var(--navy); margin-bottom: 1.6rem; }
.member__bio p { color: var(--muted); font-size: 1.06rem; }
.member__creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.member__creds li { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.member__creds strong { display: block; font: 700 .64rem/1.3 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.member__creds span { font-weight: 600; color: var(--navy); font-size: .98rem; }
.member__contact { margin-top: 2rem; }

/* 11. Partners ------------------------------------------------------------- */
.partners { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--white); }
.partner { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partner img { width: var(--lw, auto); height: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .62; mix-blend-mode: multiply; transition: filter .5s var(--ease), opacity .5s var(--ease), transform .5s var(--ease); }
.partner:hover img { filter: none; opacity: 1; transform: scale(1.04); }

/* CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--white); padding-block: clamp(84px, 10vw, 140px); }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 24, 42, .94) 0%, rgba(8, 24, 42, .78) 55%, rgba(8, 24, 42, .55) 100%); }
.cta-band__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.cta-band .title { max-width: 18ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 12. Contact & forms ------------------------------------------------------ */
.contact-split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 104px); align-items: start; }
.contact-list { display: grid; gap: 0; margin-top: 2.4rem; border-top: 1px solid var(--line); }
.on-dark .contact-list { border-color: var(--line-light); }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding-block: 1.35rem; border-bottom: 1px solid var(--line); align-items: start; }
.on-dark .contact-item { border-color: var(--line-light); }
.contact-item__icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--brass-ink); }
.on-dark .contact-item__icon { border-color: var(--line-light); color: var(--brass); }
.contact-item__icon svg { width: 17px; height: 17px; }
.contact-item__label { display: block; font: 700 .62rem/1.3 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.on-dark .contact-item__label { color: var(--muted-light); }
.contact-item__value { font-weight: 600; font-size: 1.05rem; color: var(--navy); line-height: 1.5; word-break: break-word; }
.on-dark .contact-item__value { color: var(--white); }
.contact-item a.contact-item__value:hover { color: var(--brand); }
.on-dark .contact-item a.contact-item__value:hover { color: var(--brass-light); }
.contact-item__note { display: block; font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.on-dark .contact-item__note { color: var(--muted-light); }

.form-card { background: var(--white); color: var(--text); padding: clamp(28px, 4vw, 56px); box-shadow: var(--shadow); position: relative; }
.form-card::before { content: ""; position: absolute; top: 0; left: 0; width: 72px; height: 3px; background: var(--brass); }
.form-card__title { font: 500 clamp(1.8rem, 2.6vw, 2.3rem)/1.1 var(--font-display); color: var(--navy); margin-bottom: .6rem; }
.form-card__intro { margin-bottom: 2rem; font-size: .98rem; }
.form-card p, .on-dark .form-card p { color: var(--muted); }
.on-dark .form-card .form-success h3 { color: var(--navy); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font: 700 .66rem/1.3 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--navy); }
.field label .opt { color: var(--muted); font-weight: 600; letter-spacing: .1em; text-transform: none; font-size: .72rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font: 500 1rem/1.4 var(--font-sans); color: var(--text);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230B2540' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.field input::placeholder, .field textarea::placeholder { color: #8A939C; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(11, 37, 64, .32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13, 69, 115, .14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #FFF8F7; }
.field__error { font-size: .8rem; font-weight: 600; color: var(--danger); }
.form__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin-top: .4rem; }
.form__note { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--muted); max-width: 34ch; line-height: 1.5; }
.form__note svg { width: 16px; height: 16px; flex: none; color: var(--brass-ink); }
.form__alert { grid-column: 1 / -1; padding: 14px 16px; border-left: 3px solid var(--danger); background: #FFF4F2; color: #7A1A12; font-size: .92rem; font-weight: 500; }
.form__alert a { text-decoration: underline; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading svg { display: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { text-align: left; padding-block: 1rem; animation: fadeUp .8s var(--ease) both; }
.form-success__icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--brass); margin-bottom: 1.6rem; }
.form-success__icon svg { width: 26px; height: 26px; }
.form-success h3 { font: 500 2.1rem/1.1 var(--font-display); color: var(--navy); margin-bottom: .8rem; }
.form-success p { color: var(--muted); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.map { position: relative; aspect-ratio: 16 / 10; background: #DCE1E6; overflow: hidden; margin-top: 2.4rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05); }

/* 13. Project detail ------------------------------------------------------- */
.facts-wrap { position: relative; z-index: var(--z-content); margin-top: -64px; }
.facts { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); background: var(--white); box-shadow: var(--shadow); }
.fact { padding: 28px 28px 30px; border-right: 1px solid var(--line); display: grid; gap: .55rem; align-content: start; }
.fact:last-child { border-right: 0; }
.fact__label { font: 700 .62rem/1.3 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.fact__value { font: 500 1.4rem/1.2 var(--font-display); color: var(--navy); }
.project-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.project-body__main { grid-column: 1 / span 7; }
.project-body__aside { grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + 32px); }
.project-body__main .title { margin-bottom: 1.8rem; }
.subhead { font: 700 .72rem/1.4 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--navy); margin: 2.6rem 0 1.1rem; }
.loc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; border-top: 1px solid var(--line); }
.loc-list li { display: flex; align-items: center; gap: .8rem; padding-block: 1rem; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.loc-list li svg { width: 15px; height: 15px; flex: none; color: var(--brass-ink); }
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin-top: 2.6rem; border-top: 1px solid var(--line); }
.highlight { padding: 1.6rem 1.4rem 0 0; display: grid; gap: .55rem; }
.highlight + .highlight { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.highlight__num { font: 500 2.7rem/1 var(--font-display); color: var(--navy); }
.highlight__label { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.press-link { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; margin-top: 2.6rem; padding: 1.3rem 1.5rem; border: 1px solid var(--line); background: var(--white); transition: border-color .3s, box-shadow .3s; }
.press-link:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.press-link__src { font: 700 .62rem/1.3 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-ink); }
.press-link__title { font: 500 1.25rem/1.25 var(--font-display); color: var(--navy); }
.press-link svg { width: 16px; height: 16px; color: var(--navy); }

.aside-card { background: var(--navy); color: var(--white); padding: clamp(28px, 3vw, 40px); position: relative; overflow: hidden; }
.aside-card__mark { position: absolute; right: -40px; bottom: -24px; width: 220px; color: var(--white); opacity: .05; }
.aside-card h3 { font: 500 1.9rem/1.12 var(--font-display); margin-bottom: .9rem; }
.aside-card p { color: var(--muted-light); font-size: .96rem; margin-bottom: 1.8rem; }
.aside-card .btn { width: 100%; }
.aside-card__contact { display: grid; gap: .65rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-light); font-size: .92rem; }
.aside-card__contact a { display: flex; align-items: center; gap: .7rem; color: var(--white); }
.aside-card__contact a:hover { color: var(--brass-light); }
.aside-card__contact svg { width: 15px; height: 15px; color: var(--brass); flex: none; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery__item { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #DCE1E6; cursor: zoom-in; }
.gallery__item:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item::after { content: ""; position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(8, 24, 42, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center no-repeat; opacity: 0; transform: scale(.8); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; transform: none; }

.project-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-nav a { display: grid; grid-template-columns: 96px 1fr; gap: 1.4rem; align-items: center; padding: 30px 0; transition: background-color .3s; }
.project-nav a + a { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.project-nav a:first-child { padding-right: clamp(20px, 3vw, 40px); }
.project-nav__thumb { aspect-ratio: 1; overflow: hidden; background: #DCE1E6; }
.project-nav__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-nav a:hover .project-nav__thumb img { transform: scale(1.08); }
.project-nav__label { display: flex; align-items: center; gap: .5rem; font: 700 .64rem/1 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: .6rem; }
.project-nav__label svg { width: 14px; height: 14px; }
.project-nav__title { font: 500 1.6rem/1.15 var(--font-display); color: var(--navy); }
.project-nav a.project-nav__next { grid-template-columns: 1fr 96px; text-align: right; }
.project-nav__next .project-nav__label { justify-content: flex-end; }
.project-nav__next .project-nav__thumb { order: 2; }

/* 14. Lightbox / video ----------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; background: rgba(6, 16, 28, .96); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
.lightbox__figure { display: grid; gap: 14px; justify-items: center; max-width: 92vw; }
.lightbox__img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #111; }
.lightbox__caption { color: var(--muted-light); font-size: .85rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.lightbox__btn { position: absolute; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); color: var(--white); transition: background-color .3s, border-color .3s; }
.lightbox__btn:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; margin-top: -27px; }
.lightbox__next { right: 22px; top: 50%; margin-top: -27px; }

.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); margin-top: 2.6rem; }
.video__btn { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; color: var(--white); }
.video__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video__btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 24, 42, .7), rgba(8, 24, 42, .15)); z-index: 1; }
.video__btn:hover img { transform: scale(1.04); }
.video__play { position: relative; z-index: 2; width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; background: var(--brass); color: var(--ink); transition: transform .4s var(--ease); box-shadow: 0 0 0 12px rgba(194, 160, 106, .22); }
.video__btn:hover .video__play { transform: scale(1.06); }
.video__play svg { width: 26px; height: 26px; margin-left: 4px; }
.video__label { position: absolute; z-index: 2; left: 24px; bottom: 20px; font: 700 .66rem/1 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 15. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--muted-light); position: relative; overflow: hidden; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: clamp(56px, 6vw, 84px); border-bottom: 1px solid var(--line-light); }
.site-footer .brand { color: var(--white); }
.footer__tagline { font: italic 500 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--font-display); color: var(--white); margin: 0; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(48px, 5vw, 72px); }
.footer__heading { font: 700 .64rem/1 var(--font-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.4rem; }
.footer__grid li + li { margin-top: .7rem; }
.footer__grid a { color: var(--white); transition: color .3s; }
.footer__grid a:hover { color: var(--brass-light); }
.footer__grid address { line-height: 1.7; color: var(--white); }
.footer__small { display: block; margin-top: .5rem; font-size: .85rem; color: var(--muted-light); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 26px 32px; border-top: 1px solid var(--line-light); font-size: .82rem; }

/* Utilities */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.stack-lg > * + * { margin-top: 2rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Reveal motion (only when JS is available) */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); }
.hero .reveal-load { opacity: 0; transform: translateY(26px); animation: fadeUp 1.2s var(--ease) forwards; animation-delay: var(--d, .2s); }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .partners { grid-template-columns: repeat(5, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .disciplines { grid-template-columns: 1fr; }
  .disciplines__nav { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 74px; }
  .split, .row, .project-body { grid-template-columns: 1fr; }
  .split__a, .split__b, .row__media, .row__body, .row--flip .row__media, .row--flip .row__body, .project-body__main, .project-body__aside { grid-column: 1 / -1; order: initial; }
  .project-body__aside { position: static; }
  .why__grid, .contact-split, .member, .news-feature { grid-template-columns: 1fr; }
  .why__intro { position: static; }
  .member--flip .member__photo { order: 0; }
  .member__photo { width: 100%; max-width: 416px; justify-self: start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .on-dark .stat:nth-child(n+3) { border-color: var(--line-light); }
  .featured { grid-template-columns: 1fr; }
  .feature, .feature:first-child { grid-column: auto; grid-row: auto; min-height: 420px; }
  .services, .news-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 0; }
  .process__step { padding: 0 0 34px 40px; }
  .process__step::before { top: 6px; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
  .process__step::after { top: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .discipline { grid-template-columns: 1fr; }
  .discipline__img { aspect-ratio: 16 / 10; }
  .row__inset { display: none; }
  .hero__footer { flex-direction: column; align-items: flex-start; }
  .project-nav { grid-template-columns: 1fr; }
  .project-nav a + a { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .project-nav a:first-child { padding-right: 0; }
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .project-grid, .product-grid { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; }
  .loc-list, .member__creds { grid-template-columns: 1fr; }
  .brand__logo { height: 40px; }
  .hero__dot { width: 36px; }
  .press__inner { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item:first-child:nth-last-child(odd) { aspect-ratio: 16 / 10; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 22px; margin-top: 0; }
}
@media (max-width: 520px) {
  .site-footer .brand__logo { height: 48px; }
  .project-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product { min-height: 0; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
  .hero__actions .btn { width: 100%; }
  .project-nav a, .project-nav a.project-nav__next { grid-template-columns: 72px 1fr; text-align: left; }
  .project-nav__next .project-nav__thumb { order: 0; }
  .project-nav__next .project-nav__label { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .hero .reveal-load { opacity: 1; transform: none; }
  .js .reveal-img { clip-path: none; }
  .hero__slide img, .page-hero__media img { transform: none; animation: none; }
  .page-hero__video, .video-toggle { display: none !important; }
}

@media print {
  .site-header, .nav, .hero__footer, .lightbox, .cta-band, .form-card, .page-hero__video, .video-toggle { display: none !important; }
  .hero, .page-hero { min-height: 0; color: #000; background: none; }
  .hero::after, .page-hero::after { display: none; }
}

/* Lining numerals for display type (the `font` shorthand resets numeric variants, so restate them last) */
.title, .hero__title, .page-hero__title, .project-hero__title, .member__name, .footer__tagline, .press__outlet,
.fact__value, .product__name, [class*="__num"], [class*="__title"], [class*="__value"] { font-variant-numeric: lining-nums; }
