/* ==========================================================================
   Group 6 Consulting Engineers — site styles
   Palette: white base, Group 6 blue #2f5aae, deep navy support
   Type: Archivo (display) + Inter (text)
   ========================================================================== */

@font-face { font-family: 'Archivo'; src: url('../fonts/Archivo-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fonts/Archivo-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fonts/Archivo-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fonts/Archivo-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --blue: #2f5aae;
  --blue-dark: #234a94;
  --blue-tint: #eaf0fa;
  --navy: #0f1f3d;
  --navy-soft: #16294f;
  --ink: #1d2530;
  --muted: #5c6674;
  --faint: #8b94a3;
  --line: #e4e8ee;
  --bg-soft: #f4f6f9;
  --white: #ffffff;
  --radius: 8px;
  --shadow-card: 0 1px 2px rgba(15, 31, 61, .05), 0 8px 24px rgba(15, 31, 61, .07);
  --shadow-lift: 0 2px 4px rgba(15, 31, 61, .06), 0 16px 40px rgba(15, 31, 61, .13);
  --container: 1180px;
  --font-display: 'Archivo', 'Segoe UI', sans-serif;
  --font-text: 'Inter', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container { width: 80%; margin: 0 auto; }
@media (max-width: 760px) { .container { width: 90%; } }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; }
.overline {
  display: block;
  font: 600 13px/1 var(--font-text);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.015em; }
.section-intro { max-width: 640px; margin-top: 16px; color: var(--muted); font-size: 17px; }
.section-head { margin-bottom: 44px; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

section { padding: 96px 0; }
section.tight { padding: 72px 0; }
.bg-soft { background: var(--bg-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--font-text);
  padding: 15px 28px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue-tint); color: var(--blue-dark); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #e9eef7; color: var(--navy); transform: translateY(-1px); }
.btn-ghost-white { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost-white:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

.arrow-link { font: 600 15px/1 var(--font-text); color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }
.arrow-link::after { content: '→'; transition: transform .18s ease; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- header / nav ----------
   Fixed header, tall on load, shrinks on scroll (.scrolled added by site.js).
   On body.hero-page the unscrolled header is semi-transparent over the hero
   imagery with white links + white logo. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 104px; gap: 24px;
  transition: height .8s cubic-bezier(.4, 0, .2, 1);
}
.nav-logo { grid-column: 1; justify-self: start; }
.nav-logo img { height: 52px; width: auto; transition: height .4s cubic-bezier(.4, 0, .2, 1); }
.nav-bar > nav { grid-column: 2; justify-self: center; }
.nav-cta, .nav-toggle { grid-column: 3; justify-self: end; }

.site-header.scrolled .nav-bar { height: 66px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 52px; width: auto; transition: height .3s ease; }
.site-header.scrolled .nav-logo img { height: 40px; }
.nav-logo .logo-white { display: none; }
.nav-links { display: flex; align-items: center; gap: 38px; list-style: none; position: relative; }
.nav-indicator {
  position: absolute; bottom: 2px; height: 2px; left: 0; width: 0;
  background: var(--blue); border-radius: 2px; pointer-events: none;
  transition: left .3s cubic-bezier(.45, 0, .2, 1), width .3s cubic-bezier(.45, 0, .2, 1);
}
body.hero-page .site-header:not(.scrolled) .nav-indicator { background: #fff; }
.nav-links.has-indicator a::after { display: none; }
.nav-links a {
  font: 600 13px/1 var(--font-text); letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink); padding: 8px 0; position: relative;
  transition: color .2s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: currentColor;
  transition: right .22s ease;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--blue); }
.nav-cta { flex: none; padding: 12px 22px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease, background .2s ease; }

/* transparent state over the homepage hero */
body.hero-page .site-header:not(.scrolled) {
  background: linear-gradient(rgba(9,19,40,.42), rgba(9,19,40,0));
  backdrop-filter: none;
  border-bottom-color: transparent;
}
body.hero-page .site-header:not(.scrolled) .nav-links a { color: #fff; }
body.hero-page .site-header:not(.scrolled) .nav-links a:hover,
body.hero-page .site-header:not(.scrolled) .nav-links a.active { color: #fff; }
body.hero-page .site-header:not(.scrolled) .nav-toggle span { background: #fff; }
body.hero-page .site-header:not(.scrolled) .logo-color { display: none; }
body.hero-page .site-header:not(.scrolled) .logo-white { display: block; }
body.hero-page .site-header:not(.scrolled) .nav-cta { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
body.hero-page .site-header:not(.scrolled) .nav-cta:hover { background: rgba(255,255,255,.12); }

/* interior pages need clearance under the fixed header */
body:not(.hero-page) { padding-top: 104px; }

@media (max-width: 920px) {
  .nav-bar { height: 78px; }
  body:not(.hero-page) { padding-top: 78px; }
  .nav-logo img { height: 40px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px 28px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; font-size: 14px; }
  body.hero-page .site-header:not(.scrolled) .nav-links.open a { color: var(--ink); }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-indicator { display: none; }
  .nav-links.has-indicator a::after { display: block; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 640px; height: 100vh; height: 100svh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 2;
  background: none; border: 0; cursor: pointer;
  color: #fff; font: 600 12px/1 var(--font-text);
  letter-spacing: .18em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: .85; transition: opacity .2s ease;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue svg { animation: cue-bob 2.2s ease-in-out infinite; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
#afterHero {
  scroll-margin-top: 67px; /* match your header's actual height */
}
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(78deg, rgba(9, 19, 40, .88) 0%, rgba(9, 19, 40, .62) 42%, rgba(9, 19, 40, .18) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero .overline { color: #9db8e8; }
.hero h1 {
  color: #fff; font-size: clamp(38px, 5.4vw, 62px); font-weight: 800;
  letter-spacing: -.02em; max-width: 780px;
}
.hero p { margin: 24px 0 36px; max-width: 560px; font-size: 18px; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* page hero (interior pages) */
.page-hero { padding: 88px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.02em; }
.page-hero p { max-width: 620px; margin-top: 18px; color: var(--muted); font-size: 18px; }

/* ---------- stats strip ---------- */
.stats-strip { background: var(--blue); color: #fff; padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat .num { font: 700 clamp(30px, 3.2vw, 42px)/1.1 var(--font-display); letter-spacing: -.01em; }
.stat .lbl { margin-top: 6px; font-size: 14.5px; color: rgba(255,255,255,.82); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.service-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); border-color: #d3dcea; }
.service-card .icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--blue-tint); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.service-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- sector tiles ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sector-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; display: block;
}
.sector-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sector-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9, 19, 40, .86) 0%, rgba(9, 19, 40, .25) 45%, rgba(9, 19, 40, .05) 100%);
  transition: background .3s ease;
}
.sector-tile:hover img { transform: scale(1.05); }
.sector-tile .tile-label {
  position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1;
  color: #fff;
}
.sector-tile .tile-label h3 { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.sector-tile .tile-label span { display: inline-block; margin-top: 8px; font: 600 14px/1 var(--font-text); color: #b9cdf1; }
@media (max-width: 860px) { .sector-grid { grid-template-columns: 1fr; } .sector-tile { aspect-ratio: 16/9; } }

/* ---------- project cards ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.project-card { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: box-shadow .22s ease, transform .22s ease; cursor: pointer; }
.project-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.project-card .pc-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.project-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .pc-img img { transform: scale(1.05); }
/* masonry variant (projects page): cards size to each photo's natural aspect */
.project-grid.masonry { display: block; column-count: 3; column-gap: 28px; }
.project-grid.masonry .project-card { display: inline-block; width: 100%; margin: 0 0 28px; break-inside: avoid; }
.project-grid.masonry .pc-img { aspect-ratio: auto; }
.project-grid.masonry .pc-img img { width: 100%; height: auto; object-fit: unset; display: block; }
.project-grid.masonry .pc-placeholder { aspect-ratio: 4 / 3; }
@media (max-width: 980px) { .project-grid.masonry { column-count: 2; } }
@media (max-width: 640px) { .project-grid.masonry { column-count: 1; } }
.project-card .chip {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: rgba(255,255,255,.94); color: var(--blue);
  font: 600 12px/1 var(--font-text); letter-spacing: .03em;
  padding: 7px 12px; border-radius: 4px;
}
.project-card .pc-body { padding: 20px 22px 24px; }
.project-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -.005em; }
.project-card .loc { margin-top: 5px; color: var(--muted); font-size: 14.5px; }
.pc-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, var(--navy-soft), var(--blue));
  display: flex; align-items: center; justify-content: center;
}
.pc-placeholder img { width: 56px; height: auto; opacity: .5; object-fit: contain; }
@media (max-width: 980px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .project-grid, .project-grid.cols-2 { grid-template-columns: 1fr; } }

/* ---------- clients ---------- */
.clients-band { padding: 72px 0; }
.clients-marquee { position: relative; overflow: hidden; margin-top: 48px; }
.clients-marquee::before, .clients-marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 1; pointer-events: none;
}
.clients-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-soft), transparent); }
.clients-marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-soft), transparent); }
.clients-track { display: flex; width: max-content; animation: clients-scroll 42s linear infinite; }
.clients-marquee:hover .clients-track { animation-play-state: paused; }
.clients-set { display: flex; align-items: center; gap: 84px; padding-right: 84px; }
.clients-set img {
  height: 46px; width: auto; max-width: 150px; object-fit: contain; flex: none;
  filter: grayscale(1); opacity: .62; transition: filter .2s ease, opacity .2s ease;
}
.clients-set img:hover { filter: none; opacity: 1; }
@keyframes clients-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .clients-track { animation: none; flex-wrap: wrap; width: auto; } }
@media (max-width: 640px) { .clients-set { gap: 48px; padding-right: 48px; } .clients-set img { height: 36px; } }

/* ---------- people ---------- */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.person-card { text-align: left; }
.person-card .ph-link { display: block; color: inherit; }
.person-card .ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--bg-soft); }
.person-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.person-card:hover .ph img { transform: scale(1.04); }
.person-card h3 { font-size: 17px; font-weight: 600; margin-top: 16px; }
.person-card .role { color: var(--muted); font-size: 14px; margin-top: 3px; }
@media (max-width: 980px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .people-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

/* ---------- dark CTA band ---------- */
.cta-band { position: relative; background: var(--navy); color: #fff; padding: 96px 0; overflow: hidden; }
.cta-band .band-media { position: absolute; inset: 0; }
.cta-band .band-media img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.cta-band .band-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 18%, rgba(15,31,61,.4) 100%); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.015em; max-width: 640px; }
.cta-band p { margin: 18px 0 34px; color: rgba(255,255,255,.82); max-width: 560px; font-size: 17px; }
.cta-band .overline { color: #9db8e8; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 72px 0 36px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid h4 { color: #fff; font: 600 13px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-logo img { height: 38px; width: auto; margin-bottom: 20px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,.78); }
.footer-grid a:hover { color: #fff; }
.footer-studio { margin-bottom: 20px; }
.footer-studio strong { color: #fff; font-weight: 600; display: block; margin-bottom: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; flex-wrap: wrap; }
.footer-bottom .linkedin { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.78); }
.footer-bottom .linkedin:hover { color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- projects page: filter ---------- */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 40px;
}
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pill {
  font: 600 14px/1 var(--font-text); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 100px;
  padding: 11px 20px; cursor: pointer;
  transition: all .15s ease;
}
.filter-pill:hover { border-color: var(--blue); color: var(--blue); }
.filter-pill.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter-select {
  display: none;
  font: 500 15px var(--font-text); color: var(--ink);
  padding: 12px 42px 12px 16px; border: 1.5px solid var(--line); border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232f5aae' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  appearance: none; cursor: pointer; width: 100%;
}
.filter-count { color: var(--faint); font-size: 14px; }
@media (max-width: 720px) {
  .filter-pills { display: none; }
  .filter-select { display: block; }
}

/* ---------- map of work ---------- */
.map-section { padding: 0 0 96px; }
#workmap {
  height: 620px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  z-index: 0;
}
.map-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.map-legend .lg { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.map-legend .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.g6-marker {
  background: var(--blue); color: #fff;
  border-radius: 50%; border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(15,31,61,.35);
  display: flex; align-items: center; justify-content: center;
  font: 700 13px var(--font-text);
}
.g6-marker.res { background: #2f5aae; }
.g6-marker.edu { background: #0e9f8a; }
.g6-marker.com { background: #6b4fbb; }
.g6-marker.other { background: #7d8896; }
.g6-cluster { background: var(--navy); }
.leaflet-popup-content-wrapper { border-radius: 8px; font-family: var(--font-text); }
.leaflet-popup-content { margin: 14px 18px; }
.map-pop strong { font: 600 15px var(--font-display); color: var(--ink); display: block; }
.map-pop span { color: var(--muted); font-size: 13px; }

/* ---------- modal (project detail) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10, 18, 36, .72);
  display: none; align-items: center; justify-content: center; padding: 28px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 12px; max-width: 920px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
}
.modal .m-img { overflow: hidden; border-radius: 12px 12px 0 0; background: var(--navy); text-align: center; }
.modal .m-img img { display: block; width: auto; max-width: 100%; height: auto; max-height: 62vh; margin: 0 auto; }
.modal .m-body { padding: 36px 44px 44px; }
.modal h3 { font-size: 28px; font-weight: 700; letter-spacing: -.015em; }
.modal .m-loc { color: var(--muted); margin-top: 6px; }
.modal .m-desc { margin-top: 20px; color: var(--ink); font-size: 16px; }
.modal .m-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px 28px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.modal .m-meta div span { display: block; font: 600 12px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.modal .m-meta div strong { font-weight: 500; font-size: 15px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.95); color: var(--ink);
  font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
@media (max-width: 640px) { .modal .m-body { padding: 26px 24px 30px; } }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.news-card .tag { font: 600 12px/1 var(--font-text); letter-spacing: .05em; text-transform: uppercase; color: var(--blue); }
.news-card h3 { font-size: 18px; font-weight: 600; margin: 12px 0 10px; }
.news-card p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.studio-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 36px; }
.studio-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.studio-card .addr { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
@media (max-width: 760px) { .studio-grid { grid-template-columns: 1fr; } }

/* ---------- careers ---------- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.value-card { border-left: 3px solid var(--blue); padding: 6px 0 6px 26px; }
.value-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- accordion (careers) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px;
  font: 600 19px/1.3 var(--font-display); color: var(--ink);
  transition: color .15s ease;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--blue); }
.acc summary .acc-icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 18px; line-height: 1;
  transition: transform .25s ease, background .2s ease, border-color .2s ease;
}
.acc details[open] summary { color: var(--blue); }
.acc details[open] .acc-icon { transform: rotate(45deg); background: var(--blue-tint); border-color: var(--blue-tint); }
.acc .acc-body { padding: 0 4px 26px; color: var(--muted); font-size: 16px; max-width: 720px; }
.acc .acc-body ul { margin: 10px 0 0 18px; }
.acc .acc-body li { margin-bottom: 6px; }

/* ---------- load more ---------- */
.loadmore-wrap { text-align: center; margin-top: 40px; }
.people-grid .person-card.pc-hidden { display: none; }

/* ---------- collapsible team section ---------- */
.team-toggle {
  width: 100%; background: none; border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  text-align: left; font: inherit; color: inherit;
}
.team-toggle .team-chev {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease, background .2s ease, border-color .2s ease;
}
.team-toggle:hover .team-chev { background: var(--blue-tint); border-color: var(--blue-tint); }
.team-toggle[aria-expanded="true"] .team-chev { transform: rotate(180deg); background: var(--blue-tint); border-color: var(--blue-tint); }
.team-collapse { max-height: 0; overflow: hidden; transition: max-height .6s ease; }
.team-collapse.open { max-height: 4000px; }
.team-collapse .people-grid { padding-top: 44px; }

/* ---------- studio maps ---------- */
.studio-map {
  width: 100%; height: 250px; border: 1px solid var(--line); border-radius: var(--radius);
  margin: 20px 0 22px; display: block;
}

/* ---------- video bands ---------- */
.cta-band .band-media video { width: 100%; height: 100%; object-fit: cover; opacity: .26; }
.video-band { position: relative; height: 54vh; min-height: 380px; overflow: hidden; }
.video-band video, .video-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(9,19,40,.34), rgba(9,19,40,.34));
}
.video-band .vb-label {
  position: absolute; left: 0; right: 0; bottom: 44px; z-index: 1; color: #fff; text-align: left;
}
.video-band .vb-label .overline { color: #b9cdf1; margin-bottom: 8px; }
.video-band .vb-label h2 { color: #fff; font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; letter-spacing: -.015em; }

/* ---------- project grid filter animation ---------- */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.project-grid.filtering .project-card { animation: cardIn .45s cubic-bezier(.22,.7,.3,1) both; }
@media (prefers-reduced-motion: reduce) { .project-grid.filtering .project-card { animation: none; } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- utility ---------- */
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
