/* ============================================================
   SPACE DESIGN — GLOBAL STYLESHEET
   Architecture · Planning · Interiors
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

@font-face {
  font-family: 'ValStencil';
  src: url('VAL_STENCIL_0.OTF') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --navy:        #1a3a5c;
  --navy-deep:   #0f2238;
  --navy-mid:    #22496e;
  --silver:      #8a9bb0;
  --silver-lt:   #b8c6d4;
  --silver-pale: #dde4ec;
  --cream:       #f5f3ef;
  --white:       #ffffff;
  --dark-text:   #1a2530;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Jost', sans-serif;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius:     2px;

  --max-w: 1200px;
  --pad-x: clamp(1.5rem, 5vw, 4rem);
  --pad-section: clamp(4rem, 8vw, 7rem);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--dark-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }

/* ─── Utility ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-primary:hover {
  background: transparent;
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.eyebrow {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.75rem;
}
.eyebrow-light { color: var(--silver-lt); }

/* Hero button overrides for light background */
.hero .btn-primary {
  background: #013571;
  color: var(--white);
  border-color: #013571;
}
.hero .btn-primary:hover {
  background: transparent;
  color: #013571;
  border-color: #013571;
}
.hero .btn-ghost {
  background: transparent;
  color: #013571;
  border-color: rgba(1,53,113,0.4);
}
.hero .btn-ghost:hover {
  background: rgba(1,53,113,0.07);
  border-color: #013571;
}
/* eyebrow on light hero bg */
.hero .eyebrow-light { color: #4a6a8a; }

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  /* no background transition here — handled via ::before pseudo-element */
}

/* The scrolled background lives on a pseudo-element so it can fade in smoothly.
   CSS cannot interpolate between "transparent" and a gradient directly,
   so we fade the opacity of the gradient layer instead. */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg,
    #080f18 0%,
    #0d1f35 30%,
    #162d47 60%,
    #0a1828 100%);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
}

.nav.scrolled::before {
  opacity: 1;
  box-shadow: 0 2px 24px rgba(0,0,0,0.4), inset 0 -1px 0 rgba(180,150,80,0.2);
}

/* Slide-down entrance when scrolled state first kicks in */
@keyframes nav-slide-down {
  from {
    transform: translateY(-8px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.nav.scrolled {
  animation: nav-slide-down 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}
/* When menu is open, cancel the animation so it doesn't create a
   stacking context that traps the overlay inside the nav's layer */
.nav.menu-open {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo-img {
  height: 75px;
  width: auto;
  object-fit: contain;
}
.nav-logo-text {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.nav-logo-sub {
  display: block;
  font-size: 0.55rem;
  font-family: var(--ff-body);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver-lt);
  margin-top: 1px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-pale);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--silver-lt);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { width: 100%; }

/* ── Unscrolled state: dark links for light hero background ── */
.nav:not(.scrolled) .nav-links a         { color: #013571; }
.nav:not(.scrolled) .nav-links a::after  { background: #013571; }
.nav:not(.scrolled) .nav-links a:hover   { color: #013571; }
.nav:not(.scrolled) .nav-links a.active  { color: #013571; }
.nav:not(.scrolled) .nav-toggle span     { background: #013571; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-close-item { display: none; }
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #f0f4f8;
  text-align: center;
  padding: var(--pad-x);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 85%, rgba(1,53,113,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 55% 70% at 85% 15%, rgba(180,200,225,0.25) 0%, transparent 60%),
    linear-gradient(160deg, #e8eef5 0%, #f5f8fb 45%, #dde6f0 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(1,53,113,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1,53,113,0.055) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-divider {
  width: 60px; height: 1px;
  background: #013571;
  margin: 1.5rem auto;
  opacity: 0.35;
}
.hero-title {
  font-family: 'ValStencil', var(--ff-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: normal;
  color: #013571;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}
.hero-title em {
  font-style: normal;
  font-weight: normal;
  color: #013571;
  opacity: 0.72;
}
.hero-tagline {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #4a6a8a;
  margin: 1.25rem 0 2.5rem;
}
.hero-tagline span {
  color: #013571;
  opacity: 0.4;
  margin: 0 0.75rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #4a6a8a;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #013571, transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ─── About Strip ────────────────────────────────────────── */
.about-strip {
  background: var(--white);
  padding: var(--pad-section) var(--pad-x);
  border-bottom: 1px solid var(--silver-pale);
}
.about-strip-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.about-strip-content h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.about-strip-content p {
  font-size: 0.95rem;
  color: #4a5a6a;
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.founded-badge {
  text-align: center;
  padding: 2rem 2.5rem;
  border: 1px solid var(--silver-pale);
  background: var(--cream);
  min-width: 200px;
}
.founded-badge .year {
  font-family: var(--ff-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
  display: block;
}
.founded-badge .label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  display: block;
  margin-top: 0.25rem;
}
.founded-badge .years {
  display: block;
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 0.75rem;
}

/* ─── Section Headers ─────────────────────────────────────── */
.section-header {
  margin-bottom: 3rem;
}
.section-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.1;
}
.section-header h2 em { font-style: italic; }
.section-rule {
  width: 40px; height: 1px;
  background: var(--silver);
  margin-top: 1rem;
}

/* ─── Featured Projects ──────────────────────────────────── */
.featured-projects {
  padding: var(--pad-section) var(--pad-x);
  background: var(--cream);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--silver-pale);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.project-card:hover {
  box-shadow: 0 12px 40px rgba(26,58,92,0.12);
  transform: translateY(-4px);
}
.project-card-img {
  height: 220px;
  background: var(--navy);
  overflow: hidden;
  position: relative;
}
.project-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.85;
}
.project-card:hover .project-card-img img { transform: scale(1.05); }
.project-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}
.project-card-img-placeholder svg {
  width: 48px; height: 48px;
  color: rgba(138,155,176,0.4);
}
.project-card-tag {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(15,34,56,0.85);
  color: var(--silver-lt);
  padding: 0.3rem 0.6rem;
}
.project-card-body {
  padding: 1.5rem;
}
.project-card-client {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.4rem;
}
.project-card-name {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.project-card-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.72rem;
  color: #6a7a8a;
}
.project-card-arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--silver-pale);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}

/* ─── Clients Marquee ────────────────────────────────────── */
.clients-marquee {
  background: var(--navy);
  padding: 2.5rem 0;
  overflow: hidden;
  position: relative;
}
.clients-marquee::before,
.clients-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
}
.clients-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--navy), transparent);
}
.clients-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--navy), transparent);
}
.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 35s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--ff-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  transition: color var(--transition);
}
.marquee-item:hover { color: var(--silver-lt); }
.marquee-dot {
  color: var(--silver);
  opacity: 0.3;
  user-select: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Contact Strip ──────────────────────────────────────── */
.contact-strip {
  background: var(--navy-deep);
  padding: var(--pad-section) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.contact-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--silver), transparent);
  opacity: 0.3;
}
.contact-strip-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.contact-strip h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.contact-strip h2 em { font-style: italic; color: var(--silver-lt); }
.contact-info-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border: 1px solid rgba(138,155,176,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.contact-info-icon svg { width: 14px; height: 14px; color: var(--silver); }
.contact-info-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
  display: block;
  margin-bottom: 0.2rem;
}
.contact-info-value {
  font-size: 0.88rem;
  color: var(--silver-pale);
  line-height: 1.5;
}

/* ─── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding: 2.5rem var(--pad-x);
  border-top: 1px solid rgba(138,155,176,0.15);
}
.stats-bar-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 0.4rem;
  display: block;
}

/* ─── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  background: var(--navy-deep);
  padding: 9rem var(--pad-x) 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(138,155,176,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,155,176,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
}
.page-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.0;
}
.page-hero h1 em { font-style: italic; color: var(--silver-lt); }
.page-hero p {
  max-width: 52ch;
  font-size: 0.95rem;
  color: var(--silver);
  margin-top: 1.25rem;
  line-height: 1.7;
}

/* ─── Section ────────────────────────────────────────────── */
.section {
  padding: var(--pad-section) var(--pad-x);
}
.section-alt { background: var(--white); }
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark .section-header h2 { color: var(--white); }
.section-dark .eyebrow { color: var(--silver); }

/* ─── About Page ─────────────────────────────────────────── */
.firm-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.firm-story p {
  font-size: 0.95rem;
  color: #4a5a6a;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.firm-story p:last-child { margin-bottom: 0; }
.firm-credentials {
  border-left: 2px solid var(--silver-pale);
  padding-left: 2rem;
}
.credential-item {
  margin-bottom: 1.75rem;
}
.credential-item:last-child { margin-bottom: 0; }
.credential-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  display: block;
  margin-bottom: 0.3rem;
}
.credential-value {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  color: var(--navy);
}

/* Principal Architect */
.principal-card {
  background: var(--white);
  border: 1px solid var(--silver-pale);
  padding: 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}
.principal-avatar {
  width: 120px; height: 140px;
  background: var(--navy);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.principal-avatar-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
}
.principal-avatar svg { width: 40px; height: 40px; color: var(--silver); }
.principal-name {
  font-family: var(--ff-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.principal-title {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.25rem;
}
.principal-bio {
  font-size: 0.9rem;
  color: #4a5a6a;
  line-height: 1.7;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--silver-pale);
  border: 1px solid var(--silver-pale);
}
.team-cell {
  background: var(--white);
  padding: 2rem 1.5rem;
  text-align: center;
}
.team-cell-icon {
  width: 44px; height: 44px;
  background: var(--cream);
  border: 1px solid var(--silver-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.team-cell-icon svg { width: 20px; height: 20px; color: var(--navy); }
.team-cell-role {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.3rem;
}
.team-cell-name {
  font-family: var(--ff-display);
  font-size: 1rem;
  color: var(--navy);
}

/* ─── Projects Page ──────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--silver-pale);
  background: var(--white);
  color: var(--silver);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.project-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card-hidden { display: none !important; }

/* ─── Clients Page ───────────────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--silver-pale);
  border: 1px solid var(--silver-pale);
}
.client-logo-cell {
  background: var(--white);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100px;
  transition: background var(--transition);
  cursor: default;
}
.client-logo-cell:hover { background: var(--cream); }
.client-logo-cell img {
  max-height: 40px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.5);
  transition: var(--transition);
}
.client-logo-cell:hover img {
  filter: grayscale(0.3) opacity(0.85);
}
.client-name-text {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  font-weight: 500;
}
.client-logo-cell:hover .client-name-text { color: var(--navy); }

/* ─── Services Page ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--silver-pale);
  border: 1px solid var(--silver-pale);
}
.service-card {
  background: var(--white);
  padding: 3rem 2.5rem;
  transition: background var(--transition);
}
.service-card:hover { background: var(--cream); }
.service-number {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--silver-pale);
  line-height: 1;
  margin-bottom: 1rem;
}
.service-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.service-desc {
  font-size: 0.88rem;
  color: #5a6a7a;
  line-height: 1.7;
}

/* ─── Contact Page ───────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.5rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--silver-pale);
  background: var(--white);
  font-size: 0.88rem;
  color: var(--dark-text);
  transition: border-color var(--transition);
  outline: none;
  border-radius: 0;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--navy);
}
.form-textarea { min-height: 140px; resize: vertical; }
.map-placeholder {
  height: 260px;
  background: var(--silver-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--silver);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--silver-pale);
  overflow: hidden;
}
.map-placeholder iframe {
  width: 100%; height: 100%;
  border: none;
  filter: grayscale(0.3);
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: #080f18;
  padding: 3rem var(--pad-x) 2rem;
  border-top: 1px solid rgba(138,155,176,0.1);
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand {}
.footer-brand-name {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.05em;
}
.footer-brand-tag {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver);
  display: block;
  margin-top: 0.25rem;
}
.footer-brand-desc {
  font-size: 0.82rem;
  color: rgba(138,155,176,0.6);
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 28ch;
}
.footer-col-title {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(184,198,212,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--silver-lt); }
.footer-bottom {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(138,155,176,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 0.72rem;
  color: rgba(138,155,176,0.4);
}
.footer-pcatp {
  font-size: 0.7rem;
  color: rgba(138,155,176,0.4);
  letter-spacing: 0.08em;
}

/* ─── Animations ─────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .project-grid, .project-full-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .about-strip-inner, .firm-story, .contact-strip-inner, .contact-layout { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  /* Consultants grid: collapse to 1 col on tablets too */
  .consultants-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy-deep);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 1001;
    overflow-y: auto;
    overflow-x: hidden;
  }
  /* Override blue-on-hero rule — links inside open overlay must be white */
  .nav-links.open a,
  .nav:not(.scrolled) .nav-links.open a,
  .nav:not(.scrolled) .nav-links.open a:hover,
  .nav:not(.scrolled) .nav-links.open a.active {
    color: var(--white) !important;
    font-size: 1rem;
  }
  /* Close button — fixed so it never shifts with content or aspect ratio */
  .nav-close-item {
    display: block;
    position: fixed;
    top: max(1.25rem, env(safe-area-inset-top, 1.25rem));
    right: max(1.25rem, env(safe-area-inset-right, 1.25rem));
    z-index: 1002;
  }
  .nav-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
  }
  .nav-close-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.4);
  }
  .nav-close-btn svg {
    width: 20px;
    height: 20px;
    color: var(--white);
  }
  .nav-toggle { display: flex; }
  .project-grid, .project-full-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .principal-card { grid-template-columns: 1fr; padding: 1.5rem; gap: 1.5rem; }
  .principal-avatar { margin: 0 auto; }
  .hero-ctas { flex-direction: column; align-items: center; }

  /* about.html: consultants grid → single column */
  .consultants-grid { grid-template-columns: 1fr !important; }
  .consultants-grid > [style*="grid-column"] { grid-column: auto !important; }

  /* about.html: principal contact row wraps instead of overflowing */
  .principal-contact-row { flex-direction: column; gap: 0.75rem; }

  /* about.html: firm credentials border switches axis when stacked */
  .firm-credentials {
    border-left: none;
    border-top: 2px solid var(--silver-pale);
    padding-left: 0;
    padding-top: 2rem;
  }

  /* contact.html: adequate map height when stacked */
  .map-placeholder { height: 220px; }
}