/* ==========================================================================
   Resolver Commercial Services — Site Stylesheet
   ========================================================================== */

:root {
  --navy: #06214f;
  --navy-deep: #041838;
  --blue-medium: #3d56a8;
  --brand-blue: #2765f1;
  --brand-blue-dark: #1c4bc4;
  --light-blue: #6fb8d6;
  --black: #17181c;
  --gray-900: #1f2430;
  --gray-600: #565f6f;
  --gray-300: #cdd3dd;
  --gray-100: #eef1f6;
  --gray-50: #f6f8fb;
  --white: #ffffff;

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --container: 1720px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(6, 33, 79, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle paper-grain texture over the whole page, tactile rather than flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Vertical scroll-progress indicator, right edge */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 6px;
  width: 2px;
  height: 100vh;
  background: var(--gray-100);
  z-index: 1999;
}
.scroll-progress-bar {
  width: 100%;
  height: 0%;
  background: var(--brand-blue);
}
@media (max-width: 760px) { .scroll-progress { display: none; } }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0 0 0.5em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.9rem, 6.6vw, 5.2rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--gray-600); }

a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-gray { background: var(--gray-50); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3, .bg-navy p { color: var(--white); }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.lede {
  font-size: 1.25rem;
  max-width: 640px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-primary { background: var(--brand-blue); color: var(--white); }
.btn-primary:hover { background: var(--brand-blue-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* Header / Nav
   ========================================================================== */
.topbar {
  background: var(--navy);
  color: var(--gray-300);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--gray-300); }
.topbar a:hover { color: var(--white); }
.topbar-links { display: flex; gap: 22px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(6,33,79,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand img { height: 42px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--gray-900);
}
.main-nav a:hover, .main-nav a.active { color: var(--brand-blue); }
.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); display: block; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.minimal-nav .nav-toggle.is-open span { background: var(--navy); }

/* Transparent overlay nav for the hero — turns solid once scrolled past it
   ========================================================================== */
.hero-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  padding: 26px 0;
  background: linear-gradient(180deg, rgba(4, 20, 48, 0.55) 0%, rgba(4, 20, 48, 0.08) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.hero-nav .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left logo right";
  align-items: center;
  column-gap: 24px;
}
.hero-nav .brand img { height: 36px; filter: brightness(0) invert(1); transition: filter 0.3s ease; }
.hero-nav-brand { grid-area: logo; justify-self: center; }
.hero-nav-links { display: flex; align-items: center; gap: 36px; }
.hero-nav-links--left { grid-area: left; justify-self: start; }
.hero-nav-links--right { grid-area: right; justify-self: end; }
.hero-nav-links a {
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.hero-nav-links a:hover { color: var(--light-blue); }

/* Language toggle: EN/ES segmented pill. One instance lives in the
   desktop nav, another inside the mobile nav-overlay menu — i18n.js
   keeps every instance on the page in sync. */
.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}
.lang-option {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--white);
  opacity: 0.65;
  transition: background 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}
.lang-toggle:hover .lang-option:not(.active) { opacity: 0.9; }
.lang-option.active { background: var(--white); color: var(--navy); opacity: 1; }
.hero-nav.scrolled .lang-toggle { border-color: rgba(6,33,79,0.25); }
.hero-nav.scrolled .lang-option { color: var(--gray-900); }
.hero-nav.scrolled .lang-option.active { background: var(--brand-blue); color: var(--white); }
.nav-overlay-contact .lang-toggle { margin-top: 4px; border-color: rgba(255,255,255,0.3); }

.hero-nav.scrolled {
  background: var(--white);
  padding: 14px 0;
  box-shadow: 0 2px 14px rgba(6,33,79,0.1);
}
.hero-nav.scrolled .brand img { filter: none; }
.hero-nav.scrolled .hero-nav-links a { color: var(--gray-900); }
.hero-nav-toggle { display: none; grid-area: right; justify-self: end; }
@media (max-width: 800px) {
  .hero-nav-links--left, .hero-nav-links--right { display: none; }
  .hero-nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px;
  }
  .hero-nav-toggle span { width: 24px; height: 2.5px; background: var(--white); display: block; transition: background 0.3s ease; }
  .hero-nav.scrolled .hero-nav-toggle span { background: var(--navy); }
}

/* Hero — full-bleed editorial treatment
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh; /* accounts for mobile browser address bars so the hero never falls short of the real visible screen */
  display: flex;
  align-items: center;
}
/* .container normally centers itself with margin:0 auto — as the lone
   in-flow flex child of .hero that would otherwise absorb the free space
   as auto margins and center the whole copy block. Recreate the same left
   inset a normal centered .container would have (so the headline lines up
   with the tagline bar below it) instead of letting flex center the block. */
.hero > .container {
  margin-left: max(0px, calc((100% - var(--container)) / 2));
  margin-right: auto;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) contrast(1.05);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(4,20,48,0.58) 0%, rgba(4,20,48,0.5) 45%, rgba(4,20,48,0.58) 70%, rgba(4,20,48,0.72) 100%);
}

/* Hero background video (Vimeo) — sized like a CSS "cover" background video so it
   fills the full hero on any screen ratio (incl. tall mobile) with no letterboxing.
   Width is whichever is larger: 100% of the hero, or enough to cover the hero's
   height at a 16:9 ratio; aspect-ratio keeps height in lockstep so it always covers. */
.hero-video-embed {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 177.78vh);
  width: max(100%, 177.78dvh);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: grayscale(35%) contrast(1.05);
}
.hero-video-embed > div {
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  position: static !important;
}
.hero-video-embed iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 64px 0 64px;
  max-width: 980px;
}
.hero-copy p {
  color: var(--gray-100);
  max-width: 50ch;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-weight: 500;
  line-height: 1.5;
}
.hero-copy h1 {
  color: var(--white);
  font-size: clamp(3.3rem, 8.2vw, 6.8rem);
  line-height: 0.96;
  margin-bottom: 28px;
}

/* Hero bottom bar — thin rule + tagline (left) + explore cue (right),
   pinned to the bottom of the hero slide, suffolk.com-style. */
.hero-bottom-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 48px;
  z-index: 2;
}
.hero-bottom-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-bottom-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
}
.hero-bottom-tag-dot {
  width: 10px;
  height: 10px;
  background: var(--brand-blue);
  flex-shrink: 0;
}
.hero-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
}
.hero-explore svg { width: 16px; height: 16px; animation: heroExploreBounce 2s ease-in-out infinite; }
.hero-explore:hover { color: var(--light-blue); }
@keyframes heroExploreBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
@media (max-width: 640px) {
  .hero-bottom-bar { bottom: 26px; }
  .hero-bottom-tag { font-size: 0.68rem; letter-spacing: 0.08em; }
  .hero-explore { font-size: 0.68rem; letter-spacing: 0.08em; }
}

.hero-tag {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  padding: 7px 16px;
  border-radius: 2px;
  margin-bottom: 22px;
}
.pill-btn.pill-btn--light {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.pill-btn.pill-btn--light:hover { background: var(--white); color: var(--navy); }

/* Scroll-pinned slide sequence — each slide (its own photo + its own copy)
   stays pinned full-screen while the next slide rises up from below and
   slides the current one off the top, keyed to scroll position. Same
   mechanic used on suffolk.com, built from stills. */
.scroll-frames {
  position: relative;
  height: 400vh;
  background: var(--navy);
}
.scroll-frames-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
/* Each slide (photo + its own copy) slides as a single unit — the current
   slide holds pinned in place while the next one rises up and covers it. */
.scroll-slide {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  will-change: transform;
}
.scroll-slide:first-child { transform: translateY(0); }
.scroll-slide-media { position: absolute; inset: 0; z-index: 0; }
.scroll-slide-media img,
.scroll-slide-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) contrast(1.05);
}
.scroll-slide-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(4,20,48,0.8) 0%, rgba(4,20,48,0.15) 55%, rgba(4,20,48,0.35) 100%);
}
.scroll-slide-copy {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 60px;
}
.scroll-slide-eyebrow {
  display: block;
  text-transform: uppercase;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--light-blue);
  margin-bottom: 18px;
}
/* Fade-in groups (eyebrow, links) — simple opacity+rise, driven by JS setting
   inline opacity/transform tied continuously to scroll, not a CSS transition */
.scroll-slide-copy h2 {
  color: var(--white);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  margin: 0;
  max-width: 18ch;
}
/* Word-by-word reveal: each word sits in a clipping mask so it rises up
   into view from a hidden strip as its opacity/position is scrubbed by JS,
   exactly like the headline build-in on suffolk.com */
.scroll-slide-heading .word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.scroll-slide-heading .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  will-change: transform, opacity;
}
[data-fade-group] { opacity: 0; transform: translateY(16px); will-change: opacity, transform; }
.scroll-slide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 28px;
}
.scroll-slide-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.scroll-slide-links a svg { width: 16px; height: 16px; }
.scroll-slide-links a:hover { color: var(--light-blue); border-color: var(--light-blue); }
@media (max-width: 640px) {
  .scroll-slide-copy { padding: 0 24px; }
  .scroll-slide-links { gap: 22px; }
}

/* Page hero (About/Services/Projects/Careers/Contact) — same full-bleed
   treatment as the homepage hero: full-screen photo, left-aligned copy that
   fades in on load, and the bottom tagline bar. Reuses .hero-media/
   .hero-inner/.hero-copy/.hero-bottom-bar markup and styling directly. */
.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}
.page-hero > .container {
  margin-left: max(0px, calc((100% - var(--container)) / 2));
  margin-right: auto;
}

/* Thin accent rule, used sparingly instead of heavy diagonal blocks */
.accent-rule {
  width: 54px;
  height: 3px;
  background: var(--brand-blue);
  border: none;
  margin: 0 0 18px;
}

/* Service cards
   ========================================================================== */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-top: 2px solid var(--gray-100);
  padding: 28px 4px 0;
  transition: border-color 0.18s ease;
  position: relative;
}
.card:hover { border-top-color: var(--brand-blue); }
.card .num {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--brand-blue);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}
.card h3 { margin-bottom: 10px; text-transform: none; font-style: normal; }
.card p { margin: 0; font-size: 0.95rem; }

/* Services accordion
   ========================================================================== */
.accordion { border-top: 1px solid var(--gray-100); }
.accordion-item { border-bottom: 1px solid var(--gray-100); }
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 4px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.accordion-title {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.accordion-title .num {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--brand-blue);
  font-weight: 600;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.accordion-title h3 {
  margin: 0;
  font-size: 1.15rem;
  text-transform: none;
  font-style: normal;
  transition: color 0.18s ease;
}
.accordion-header:hover .accordion-title h3 { color: var(--brand-blue); }
.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: transform 0.3s ease, background 0.18s ease, border-color 0.18s ease;
}
.accordion-icon svg { width: 14px; height: 14px; }
.accordion-icon .icon-minus { display: none; }
.accordion-item.open .accordion-icon { transform: rotate(180deg); background: var(--brand-blue); border-color: var(--brand-blue); color: var(--white); }
.accordion-item.open .accordion-icon .icon-plus { display: none; }
.accordion-item.open .accordion-icon .icon-minus { display: block; }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-panel p {
  margin: 0 0 26px 4px;
  max-width: 62ch;
  padding-right: 60px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head .lede { margin: 0; }

/* Trusted-by band
   ========================================================================== */
.trusted {
  padding: 50px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  overflow: hidden;
}
.trusted-label {
  text-align: center;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-600);
  font-size: 0.82rem;
  margin-bottom: 32px;
}

/* Logo marquee: two rows scrolling in opposite directions. Content is
   duplicated once in the markup so translateX(-50%) loops seamlessly. */
.logo-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  margin-bottom: 34px;
}
.logo-marquee:last-child { margin-bottom: 0; }
.logo-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  will-change: transform;
}
.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}
.logo-item img {
  height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.45;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.logo-item:hover img { filter: grayscale(0%); opacity: 1; }
.logo-item.text-chip {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-600);
  opacity: 0.7;
  white-space: nowrap;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.logo-item.text-chip:hover { color: var(--brand-blue); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; }
}

/* CTA banner
   ========================================================================== */
.cta-banner {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  border-top: 3px solid var(--brand-blue);
}
.cta-banner .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 56px 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: var(--gray-300); margin: 0; }
.cta-contact { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.cta-contact a { color: var(--white); font-family: var(--font-head); font-size: 1.05rem; letter-spacing: 0.02em; }

/* Why band (dark feature strip)
   ========================================================================== */
.why-band {
  background: var(--navy);
  color: var(--white);
  position: relative;
  border-top: 3px solid var(--brand-blue);
}
.why-band .eyebrow { color: var(--light-blue); }
.why-band h2 { color: var(--white); }
.why-band .lede { color: var(--gray-300); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 54px;
}
.why-item {
  padding: 0 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.why-item:first-child { border-left: none; padding-left: 0; }
.why-item .num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--light-blue);
  margin-bottom: 18px;
}
.why-item h3 { color: var(--white); margin: 0 0 12px; }
.why-item p { color: var(--gray-300); margin: 0; }

/* Stats
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats .stat h3 {
  font-size: 2.6rem;
  color: var(--brand-blue);
  font-style: italic;
  margin-bottom: 4px;
}
.stats .stat span {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--gray-900);
  display: block;
  margin-bottom: 8px;
}
.stats .stat p {
  font-size: 0.88rem;
  color: var(--gray-600);
  max-width: 26ch;
  margin: 0 auto;
}
.stats .stat { padding: 0 12px; }

/* Emphasis word within headlines */
em.accent {
  font-style: italic;
  color: var(--brand-blue);
  font-weight: 500;
}

/* Tile mosaic (services / markets-style grid) */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.tile-grid .feature-card { aspect-ratio: 1 / 1; }

/* Wide story tiles (2-up feature spotlights) */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.story-grid .feature-card { aspect-ratio: 4 / 3; }
.story-grid .feature-card p { max-width: 42ch; }

/* Feature project cards (editorial, photo-led)
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.feature-grid--home { margin: 36px 0 44px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .feature-grid--home { grid-template-columns: 1fr; } }
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 10px; }
/* Photo-gallery variant (Before/After/Gallery sections on project pages):
   plain, uncaptioned photos rather than clickable project tiles, so the
   dark caption overlay is dropped and the crop is a gentler landscape
   ratio instead of the tall 3:4 used for the clickable preview cards. */
.feature-grid--4 .feature-card { aspect-ratio: 4 / 3; }
.feature-grid--4 .feature-card::after,
.feature-grid--4 .feature-card-body { display: none; }
.feature-grid--4 .feature-card img { filter: none; }
.feature-grid--4 .feature-card:hover img { filter: none; }
.feature-card {
  position: relative;
  display: block;
  color: var(--white);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.feature-card:hover img { transform: scale(1.05); filter: grayscale(0%); }
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4,20,48,0.92) 0%, rgba(4,20,48,0.35) 55%, rgba(4,20,48,0.05) 100%);
}
.feature-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 28px 26px;
}
.feature-card-tag {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--light-blue);
  margin-bottom: 8px;
}
.feature-card h3 {
  color: var(--white);
  text-transform: uppercase;
  font-style: normal;
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--gray-300);
  font-size: 0.88rem;
  margin: 0;
  max-width: 34ch;
}

.project-subsection {
  background: var(--gray-50);
  padding: 40px 0 20px;
}
.project-subsection .eyebrow { margin-bottom: 0; }

.feature-single {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}
.feature-single .feature-media { position: relative; min-height: 640px; overflow: hidden; }
.feature-single .feature-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); transition: transform 0.6s ease, opacity 1.4s ease; }
.feature-single .feature-copy { padding: 60px 56px; display: flex; flex-direction: column; justify-content: center; }
.feature-single .feature-copy p { color: var(--gray-300); }
.feature-single .feature-copy h2 { color: var(--white); text-decoration: none; }
.feature-single.reverse { grid-template-columns: 0.85fr 1.15fr; }
.feature-single.reverse .feature-media { order: 2; }
a.feature-single:hover .feature-media img.is-active { transform: scale(1.04); }

/* Project listing slideshow: several "after" photos dissolve into one
   another in the feature-media area on the projects index page. The
   opacity transition itself lives on ".feature-single .feature-media img"
   above (it has to — that selector is more specific than this one, so a
   transition declared only here would get silently overridden by it). */
.project-slideshow img {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
}
.project-slideshow img.is-active {
  opacity: 1;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .project-slideshow img { transition: none; }
  .project-slideshow img.is-active { opacity: 1; }
  .project-slideshow img:not(.is-active) { display: none; }
}

.meta-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 22px 0 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.meta-row div span { display: block; }
.meta-label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--light-blue);
  margin-bottom: 4px;
}
.meta-value { font-size: 0.95rem; color: var(--white); }

/* Individual project case-study pages
   ========================================================================== */
.project-hero {
  position: relative;
  height: 78vh;
  min-height: 460px;
  max-height: 760px;
  overflow: hidden;
  background: var(--navy);
}
.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,20,48,0.55) 0%, rgba(4,20,48,0) 34%);
  pointer-events: none;
}
.project-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  padding: 72px 0;
}
.project-intro-copy .eyebrow { color: var(--brand-blue); }
.project-intro-copy h1 { margin: 0 0 26px; }
.project-intro-copy p { color: var(--gray-600); max-width: 62ch; }
.project-meta-list {
  border-top: 1px solid var(--gray-100);
  align-self: start;
}
.project-meta-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-100);
}
.project-meta-list .meta-label {
  color: var(--gray-600);
  margin-bottom: 0;
}
.project-meta-list .meta-value {
  color: var(--brand-blue);
  font-weight: 600;
  text-align: right;
}
.project-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
}
.project-nav-back svg { width: 16px; height: 16px; transform: rotate(180deg); }
@media (max-width: 860px) {
  .project-intro { grid-template-columns: 1fr; gap: 32px; padding: 52px 0; }
  .project-hero { height: 56vh; }
}

/* Scroll-reveal: images blur-load into focus as they enter the viewport */
.reveal-img {
  filter: blur(18px);
  transform: scale(1.04);
  opacity: 0.7;
  transition: filter 0.9s ease, transform 0.9s ease, opacity 0.9s ease;
}
.reveal-img.is-visible {
  filter: blur(0);
  transform: scale(1);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-img { filter: none; transform: none; opacity: 1; transition: none; }
  .hero-explore svg { animation: none; }
}

/* Scroll-triggered text/content reveal — fade + rise, staggered across siblings */
.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-up.is-visible { opacity: 1; transform: none; }

/* Hero copy fades + rises in on page load rather than on scroll */
.hero-copy > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.hero-copy.is-loaded > * { opacity: 1; transform: none; }
/* The headline handles its own reveal via the word-by-word system below,
   so exclude it from the block-level fade+rise applied to its siblings. */
.hero-copy > h1 { opacity: 1; transform: none; transition: none; }

/* Word-by-word headline reveal (suffolk.com-style) — each word rises up out
   of a clipping mask, staggered, once the heading scrolls into view (or on
   load, for the homepage hero). Used on [data-word-reveal] headings that
   aren't part of the scroll-pinned slide sequence (those use their own
   continuous scroll-scrubbed version via .scroll-slide-heading). */
[data-word-reveal] .word-rise-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
[data-word-reveal] .word-rise {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--word-delay, 0s);
  will-change: transform, opacity;
}
[data-word-reveal].is-revealed .word-rise { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .hero-copy > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-word-reveal] .word-rise { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Nav links: thin underline slides in from the left on hover */
.main-nav a, .hero-nav-links a {
  position: relative;
}
.main-nav a::after, .hero-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: currentColor;
  transition: right 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after,
.hero-nav-links a:hover::after {
  right: 0;
}

/* Text-scramble targets (stat numbers, small eyebrow labels) */
[data-scramble] { font-variant-numeric: tabular-nums; }

/* Why-us style list: hairline rows with a hover-sliding arrow */
.why-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gray-100); }
.why-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--gray-100);
}
.why-list h4 {
  font-size: 1.05rem;
  text-transform: none;
  font-style: normal;
  margin: 0;
}
.why-list .arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--brand-blue);
  transition: transform 0.25s ease;
}
.why-list li:hover .arrow { transform: translateX(6px); }

/* Project filter tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 6px;
}
.filter-tabs button {
  background: none;
  border: none;
  padding: 6px 0;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  color: var(--gray-600);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.filter-tabs button:hover { color: var(--gray-900); }
.filter-tabs button.active { color: var(--brand-blue); border-bottom-color: var(--brand-blue); }
.project-block { transition: opacity 0.25s ease; }
.project-block[hidden] { display: none; }

/* ==========================================================================
   Single-column stacked format (Monadnock-inspired), used on the homepage
   ========================================================================== */

/* Minimal header: hide horizontal nav links, hamburger opens a full-screen overlay */
.minimal-nav .main-nav { display: none !important; }
.minimal-nav .nav-cta .btn-navy { display: none; }
.minimal-nav .nav-toggle { display: flex !important; }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  transform: translateX(100%);
  transition: transform 0.45s ease;
}
.nav-overlay.open { transform: translateX(0); }
.nav-overlay nav { display: flex; flex-direction: column; gap: 6px; }
.nav-overlay a {
  font-family: var(--font-head);
  text-transform: uppercase;
  color: var(--white);
  font-size: clamp(2rem, 6vw, 3.6rem);
  padding: 10px 0;
  display: flex;
  align-items: baseline;
  gap: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-overlay a:hover { color: var(--light-blue); }
.nav-overlay a span {
  font-size: 1rem;
  color: var(--brand-blue);
  font-weight: 600;
}
.nav-overlay-contact {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.nav-overlay-contact a { color: var(--gray-300); font-family: var(--font-body); font-size: 0.95rem; text-transform: none; border: none; padding: 0; }
.nav-overlay-close {
  position: absolute;
  top: 26px;
  right: 26px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* Full-width stacked sections with hairline top border acting as a divider.
   These now span the full wide container (not a narrow centered column) —
   each section pairs a photo with its copy side by side on desktop. */
.stacked-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 90px 24px;
  border-top: 1px solid var(--gray-100);
  scroll-margin-top: 96px;
}
.stacked-section:first-of-type { border-top: none; }
.section-cta { margin-top: 32px; }

.story-photo {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.story-photo img { width: 100%; height: auto; display: block; }
/* Inside a two-column split, the gap already separates image from copy */
.split .story-photo { margin-bottom: 0; }

/* Readable-width text block for sections that don't pair with an image */
.narrow-copy { max-width: 640px; }

.section-marker { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 32px; }
.marker-num {
  font-family: var(--font-head);
  font-size: clamp(3.4rem, 9vw, 5.5rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gray-300);
  font-weight: 600;
}
.marker-label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: var(--brand-blue);
  font-weight: 600;
  padding-bottom: 10px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--brand-blue);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.pill-btn:hover { background: var(--brand-blue); color: var(--white); }
.pill-btn svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.pill-btn:hover svg { transform: translateX(4px); }

/* Contact section: bold navy band instead of white, to close the page with
   some contrast rather than another plain white section */
.stacked-section.contact-band {
  max-width: none;
  padding: 90px 0;
  background: var(--navy);
  color: var(--white);
  border-top: none;
}
.contact-band h2 { color: var(--white); }
.contact-band .narrow-copy p,
.contact-band .contact-grid > div > p { color: var(--gray-100); }
.contact-band .marker-num { -webkit-text-stroke-color: rgba(255, 255, 255, 0.45); }
.contact-band .marker-label { color: var(--light-blue); }
.contact-band .form-field label { color: var(--white); }
.contact-band .form-note { color: var(--gray-300); }

/* Info tiles (Call / Email / Service Area) — thin hairline dividers instead of
   boxed white cards, so they sit naturally on the navy band */
.info-tile { border-top: 2px solid rgba(255, 255, 255, 0.25); padding: 22px 0 0; margin-bottom: 22px; }
.info-tile .num {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--light-blue);
  margin-bottom: 10px;
  display: block;
}
.info-tile h3 { color: var(--white); margin-bottom: 8px; text-transform: none; font-style: normal; }
.info-tile p { color: var(--gray-300); margin: 0; font-size: 0.95rem; }
.info-tile a { color: var(--white); }
.info-tile a:hover { color: var(--light-blue); }

/* Project cards — 3-up grid on desktop, single column on smaller screens */
.project-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 36px; }
.project-stack-item .story-photo { margin-bottom: 16px; }
@media (max-width: 900px) { .project-stack { grid-template-columns: 1fr; gap: 48px; } }
.project-stack-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.project-stack-caption h4 {
  font-size: 1.1rem;
  text-transform: none;
  font-style: normal;
  margin: 0;
}
.project-stack-caption span {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--gray-600);
}

@media (max-width: 700px) {
  .stacked-section { padding: 60px 20px; }
  .nav-overlay { padding: 0 6vw; }
}

/* Gallery
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: grayscale(30%);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.gallery figure:hover img { transform: scale(1.06); filter: grayscale(0%); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(6,33,79,0.85), transparent);
  color: var(--white);
  padding: 34px 16px 14px;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* Pull quote (client testimonial callout)
   ========================================================================== */
.pull-quote {
  border-left: 3px solid var(--brand-blue);
  padding: 2px 0 2px 24px;
  margin: 28px 0 0;
}
.pull-quote p {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 12px;
}
.pull-quote cite {
  display: block;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-blue);
}

/* Leadership grid (square photo tiles)
   ========================================================================== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 44px;
}
.leader-card { text-align: left; }
.leader-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  margin-bottom: 18px;
}
.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) contrast(1.05);
  display: block;
}
.leader-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 1px dashed rgba(255,255,255,0.25);
}
.leader-photo.placeholder span {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.leader-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 2px;
}
.leader-title {
  color: var(--brand-blue);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

/* Split section (image + text)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split.reverse .split-media { order: 2; }

.value-list { list-style: none; padding: 0; margin: 26px 0 0; }
.value-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.value-list li:last-child { border-bottom: none; }
.value-list .mark {
  color: var(--brand-blue);
  font-family: var(--font-head);
  font-weight: 700;
}
.value-list h4 { margin: 0 0 4px; font-size: 1rem; text-transform: none; font-style: normal; }
.value-list p { margin: 0; font-size: 0.92rem; }

/* Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: var(--gray-300);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid img { height: 34px; width: auto; max-width: none; margin-bottom: 16px; }
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; overflow-wrap: anywhere; }
.footer-grid a { color: var(--gray-300); }
.footer-grid a:hover { color: var(--white); }
.footer-grid > div > p { overflow-wrap: anywhere; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--gray-300);
  flex-wrap: wrap;
  gap: 10px;
}

/* Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: flex-start;
}
.contact-info .card { margin-bottom: 18px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--gray-900);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--white);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 0.85rem; color: var(--gray-600); margin-top: 14px; }

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero { min-height: 70vh; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .leadership-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 34px; }
  .why-item { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.16); padding: 30px 0 0; }
  .why-item:first-child { border-top: none; padding-top: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-single, .feature-single.reverse { grid-template-columns: 1fr; }
  .feature-single .feature-media { order: -1; min-height: 320px; }
  .feature-single .feature-copy { padding: 40px 28px; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 16px;
    box-shadow: 0 12px 20px rgba(6,33,79,0.1);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-navy span.call-text { display: none; }
  .topbar-links { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .gallery { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { aspect-ratio: 4 / 3; }
  .tile-grid { grid-template-columns: 1fr 1fr; }
  .tile-grid .feature-card { aspect-ratio: 4 / 3; }
  .cta-banner .container { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .accordion-header { padding: 20px 0; gap: 14px; }
  .accordion-title { gap: 12px; }
  .accordion-title h3 { font-size: 1rem; }
  .accordion-panel p { padding-right: 0; margin-left: 0; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* Photo lightbox: click a gallery photo to enlarge it full-screen.
   Scoped to plain (non-linking) photo tiles inside .feature-grid--4
   galleries — the clickable project-preview cards elsewhere already
   navigate on click, so they're left alone. */
.feature-grid--4 .feature-card img { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 12, 28, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  padding: 60px 24px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.97);
  transition: transform 0.3s ease;
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}
.lightbox-close:hover { color: var(--light-blue); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gray-300);
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
@media (max-width: 640px) {
  .lightbox { padding: 80px 16px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 14px; }
}
