/* ============================================================
   SAGHARI ARCHITECTURAL SERVICES PC
   Shared Stylesheet
   ============================================================ */

/* ============================================================
   LOADER
   ============================================================ */
#sas-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #15498C;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#sas-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.loader-logo {
  width: 140px;
  height: auto;
  display: block;
  margin: 0 auto;
  animation: logoFadeIn 0.6s ease forwards;
}
@keyframes logoFadeIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.loader-bar-track {
  width: 280px;
  height: 2px;
  background: rgba(255,255,255,0.2);
}
.loader-bar {
  height: 2px;
  width: 0%;
  background: #ED2928;
  animation: loadProgress 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes loadProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ============================================================
   SELF-HOSTED FONTS (no external requests)
   ============================================================ */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-italic-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/karla-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/karla-400.woff2') format('woff2');
}

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  /* ── SAS Brand Palette ── */
  --sas-blue:     #15498C;
  --sas-red:      #ED2928;
  --black:        #000000;
  --white:        #FFFFFF;
  --off-white:    #F7F6F3;
  --gray-1:       #333333;
  --gray-2:       #666666;
  --gray-3:       #999999;
  --gray-border:  rgba(21, 73, 140, 0.12);

  /* ── Semantic tokens ── */
  --bg:           var(--white);
  --bg-warm:      var(--off-white);
  --text:         var(--black);
  --text-light:   #3A4A6A;
  --accent:       var(--sas-blue);
  --accent-red:   var(--sas-red);
  --border:       var(--gray-border);
  --dark:         var(--black);

  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:   'Karla', system-ui, -apple-system, sans-serif;

  --nav-h:    72px;
  --max-w:   1440px;
  --body-w:  1200px;

  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  overflow-x: hidden;
  width: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--body-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   PLACEHOLDER IMAGE GRADIENTS
   (Replace each with an actual <img> or background-image url())
   ============================================================ */
.img-pl { position: relative; overflow: hidden; }
.img-pl-concrete { background: linear-gradient(145deg, #3A3630 0%, #252320 55%, #181614 100%); }
.img-pl-stone    { background: linear-gradient(145deg, #706560 0%, #4E4540 55%, #2E2820 100%); }
.img-pl-slate    { background: linear-gradient(145deg, #3C4048 0%, #262C34 55%, #1C2028 100%); }
.img-pl-warm     { background: linear-gradient(145deg, #8A7A6A 0%, #6A5A4A 55%, #483C2C 100%); }
.img-pl-brick    { background: linear-gradient(145deg, #7A5A48 0%, #583C2C 55%, #3A2418 100%); }
.img-pl-glass    { background: linear-gradient(145deg, #4A5868 0%, #2E3E50 55%, #1A2838 100%); }
.img-pl-facade   { background: linear-gradient(145deg, #585248 0%, #3C3830 55%, #282420 100%); }
.img-pl-terrace  { background: linear-gradient(145deg, #5A6458 0%, #3C4438 55%, #282E26 100%); }
.img-pl-pearl    { background: linear-gradient(145deg, #C8C0B0 0%, #A89880 55%, #887060 100%); }
.img-pl-steel    { background: linear-gradient(145deg, #505860 0%, #343C44 55%, #1E2428 100%); }

.img-pl::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 28% 38%, rgba(255,255,255,0.05) 0%, transparent 65%);
  pointer-events: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  background: var(--sas-blue);
  border-bottom: none;
  box-shadow: none;
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { display: block; height: 52px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
}
.nav-links > li { display: flex; align-items: center; }
.nav-links > li + li::before {
  content: '/';
  color: rgba(255,255,255,0.4);
  margin: 0 0.8rem;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1;
  opacity: 1;
}

/* Shared style for nav links and dropdown trigger buttons */
.nav-links a,
.nav-link-btn {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--sans);
}
.nav-links a:hover,
.nav-links a.active,
.nav-link-btn:hover,
.nav-item.active > .nav-link-btn {
  color: var(--white);
}
.nav-links a.active {
  border-bottom: 1.5px solid var(--accent-red);
  padding-bottom: 1px;
}
.nav-item.active > .nav-link-btn {
  border-bottom: 1.5px solid var(--accent-red);
  padding-bottom: 1px;
}

/* Dropdown trigger chevron */
.nav-link-btn::after {
  content: ' ›';
  font-size: 0.85em;
  opacity: 0.55;
}

/* Dropdown panel */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: -1rem;
  min-width: 200px;
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10), 0 1px 0 rgba(0,0,0,0.04);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  /* Delay hide: opacity/transform fade out over 0.15s after a 0.08s delay;
     visibility flips at the end so pointer-events stay correct */
  transition: opacity 0.15s ease 0.08s, transform 0.15s ease 0.08s, visibility 0s ease 0.23s;
  z-index: 910;
}
.nav-dropdown.open,
.nav-item.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  /* Show instantly — no delay */
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s ease;
}
/* Invisible bridge to keep hover zone connected */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dropdown > li { display: block; }
.nav-dropdown > li::before { display: none !important; }
.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  border: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-dropdown a:hover,
.nav-dropdown a.active {
  background: var(--bg-warm);
  color: var(--accent);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  height: calc(100svh - var(--nav-h));
  background: var(--sas-blue);
  z-index: 800;
  flex-direction: column;
  padding: 3rem 2rem;
  transform: translateX(100%);
  transition: transform 0.42s var(--ease);
  overflow-y: auto;
}
.nav-mobile.open { transform: none; }
.nav-mobile > ul > li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-mobile > ul > li > a {
  display: block;
  padding: 1rem 0;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.nav-mobile > ul > li > a:hover {
  color: var(--white);
  padding-left: 0.5rem;
}

/* Mobile dropdown button */
.mobile-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
}
.mobile-dropdown-btn:hover { color: var(--white); }
.mobile-arrow {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  transition: transform 0.3s ease, color 0.3s ease;
  line-height: 1;
}
.mobile-dropdown-btn[aria-expanded="true"] .mobile-arrow {
  transform: rotate(45deg);
  color: var(--accent-red);
}

/* Mobile sub-menu */
.mobile-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.mobile-sub.open { max-height: 300px; }
.mobile-sub > li { border: none !important; }
.mobile-sub a {
  display: block;
  padding: 0.55rem 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.mobile-sub a:hover {
  color: var(--white);
  padding-left: 1.5rem;
}

/* ============================================================
   HERO — Two-block split
   ============================================================ */
.hero-split {
  display: flex;
  height: 100svh;
  min-height: 560px;
  max-height: 940px;
  padding-top: 0;
}
.hero-block {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: block;
}
.hero-block-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.9s var(--ease);
}
.hero-block:hover .hero-block-bg { transform: scale(1.05); }

.hero-block-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(18, 16, 14, 0.72) 0%,
    rgba(18, 16, 14, 0.22) 45%,
    transparent 100%);
}
.hero-block:first-child { border-right: 1.5px solid rgba(255,255,255,0.06); }

.hero-block-content {
  position: absolute;
  bottom: 3.5rem;
  left: 2.5rem;
  right: 2.5rem;
  color: var(--white);
}
.hero-block-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.6rem;
}
.hero-block-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
}
.hero-block-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.3s ease;
}
.hero-block-cta::after { content: '→'; transition: transform 0.3s ease; }
.hero-block:hover .hero-block-cta { color: var(--white); }
.hero-block:hover .hero-block-cta::after { transform: translateX(5px); }

/* ============================================================
   PAGE HEADER (non-home pages)
   ============================================================ */
.page-header {
  position: relative;
  min-height: 320px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}
.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 35, 75, 0.55);
  z-index: 1;
}
.page-header-content {
  position: relative;
  z-index: 2;
  padding: 3rem 4rem;
  color: #ffffff;
}
.page-header-content * {
  color: #ffffff;
}
.page-header-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.7rem;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: #ffffff;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.01em;
}
.section-title em { font-style: italic; }

/* ============================================================
   IMAGE STRIP (home — horizontal photo band)
   ============================================================ */
.image-strip-section {
  padding: 4rem 0 1.5rem;
}
.image-strip-label {
  display: block;
  max-width: var(--max-w);
  margin: 0 auto 1.2rem;
  padding: 0 2rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
}
.image-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.image-strip::-webkit-scrollbar { display: none; }
.image-strip img {
  display: block;
  height: 300px;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.image-strip img:hover {
  opacity: 0.85;
}
.image-strip-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.75rem 2rem 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-strip-controls.is-visible {
  opacity: 1;
}
.image-strip-counter {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--text-light);
}
.image-strip-arrows {
  display: flex;
  gap: 0.4rem;
}
.image-strip-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: none;
  color: var(--text-light);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.image-strip-arrow:hover {
  border-color: var(--text);
  color: var(--text);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.lightbox[hidden] {
  display: none;
}
.lightbox:not([hidden]) {
  display: flex;
}
.lightbox.is-open {
  opacity: 1;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s ease;
}
.lightbox-close:hover {
  color: #fff;
}
.lightbox-content {
  cursor: default;
  text-align: center;
  max-width: 90vw;
}
.lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
}
.lightbox-caption {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
}
.lightbox-caption strong {
  display: block;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

/* ============================================================
   INTRO BAND
   ============================================================ */
.intro-band {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 6rem 2rem;
  text-align: center;
  background: var(--bg-warm);
  border: none;
  box-shadow: none;
  box-sizing: border-box;
}
.intro-band > p {
  max-width: 860px;
  margin: 0 auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.intro-band p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.72rem);
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0.01em;
  color: var(--text);
}
.intro-band p em { font-style: italic; color: var(--accent-red); font-weight: 400; }

/* ============================================================
   SERVICES GRID (home)
   ============================================================ */
.services-section {
  max-width: none;
  margin: 0;
  padding: 6rem 2rem 7rem;
  position: relative;
  z-index: 2;
  background: var(--bg-warm);
}
.services-section-header {
  max-width: var(--max-w);
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.services-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.service-tile {
  display: block;
  position: relative;
  height: 360px;
  overflow: hidden;
  grid-column: span 2;
}
.service-tile:nth-child(4),
.service-tile:nth-child(5) {
  grid-column: span 3;
}
.service-tile-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease);
}
.service-tile:hover .service-tile-bg { transform: scale(1.05); }
.service-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(21,73,140,0.72) 0%,
    rgba(21,73,140,0.08) 50%,
    transparent 100%);
}
.service-tile-content {
  position: absolute;
  bottom: 1.6rem;
  left: 1.6rem;
  right: 1.6rem;
  color: var(--white);
}
.service-tile-num {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.35rem;
}
.service-tile-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.22;
}

/* ============================================================
   ABOUT BAND (dark)
   ============================================================ */
.about-band {
  background: var(--sas-blue);
  color: var(--white);
  padding: 4rem 2rem;
}
.about-band-inner {
  max-width: var(--body-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: center;
}
.about-band .section-eyebrow { color: rgba(255, 255, 255, 0.55); }
.about-band .section-title { color: var(--white); margin-bottom: 1.8rem; }
.about-band-text p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1rem;
}
.about-band-details {
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 3.5rem;
}
.about-detail {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.about-detail:last-child { border-bottom: none; }
.about-detail-label {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.about-detail-value {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
}

/* ── CTA band variant of .about-band — centered, single-column ── */
.about-band.cta-band {
  padding: 5rem 2rem;
  text-align: center;
}
.about-band.cta-band .cta-band-inner {
  max-width: var(--body-w);
  margin: 0 auto;
}
.about-band.cta-band .section-eyebrow {
  color: rgba(255, 255, 255, 0.55);
}
.about-band.cta-band .section-title {
  color: var(--white);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.about-band.cta-band .cta-band-text {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 0;
}
.about-band.cta-band .btn-light {
  margin-top: 2rem;
}

/* ============================================================
   PROJECTS PREVIEW (home)
   ============================================================ */
.projects-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 7rem 2rem;
}
.projects-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.projects-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Project card (shared) */
.project-card {
  display: block;
}
.project-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.project-card-image-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease);
}
.project-card:hover .project-card-image-bg { transform: scale(1.06); }
.project-card-meta {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}
.project-card-title {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-light {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border: 1px solid rgba(255,255,255,0.38);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: background 0.3s ease, border-color 0.3s ease;
  margin-top: 2rem;
}
.btn-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.65);
}
.btn-dark {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border: 1.5px solid var(--accent);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin-top: 2rem;
}
.btn-dark:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.6rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover {
  background: #0e3366;
  transform: translateY(-2px);
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  width: calc(100% - 4rem);
  max-width: var(--body-w);
  margin: 0 auto;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--sas-blue);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 1.5rem;
}
.footer-inner { max-width: var(--body-w); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.2rem;
}
.footer-logo img { height: 42px; width: auto; margin-bottom: 0.5rem; }
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  margin-top: 0.3rem;
}
.footer-col-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.7rem;
  display: block;
}
.footer-col address {
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}
.footer-col address a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}
.footer-col address a:hover { color: var(--white); }
.footer-nav ul li a {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  padding: 0.18rem 0;
  transition: color 0.3s ease;
}
.footer-nav ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  padding-top: 1.2rem;
  background: rgba(0,0,0,0.15);
  margin: 0 -2rem;
  padding: 1.5rem 2rem;
}
.footer-bottom a {
  color: rgba(255,255,255,0.45);
  transition: color 0.3s ease;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.firm-story {
  max-width: var(--body-w);
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 7rem;
  align-items: flex-start;
}
.firm-story-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 3rem);
}
.firm-story-tagline {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-top: 1.2rem;
}
.firm-story-tagline em { font-style: italic; color: var(--accent); }

.firm-story-content p {
  font-size: 0.93rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.firm-story-content p:first-child {
  font-family: var(--serif);
  font-size: 1.28rem;
  color: var(--text);
  line-height: 1.68;
  font-weight: 400;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 2.5rem 0 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat-number {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1;
  display: block;
  min-width: 80px;
  font-variant-numeric: tabular-nums;
}
.stat-number[data-target] {
  will-change: contents;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}
.stat-sublabel {
  font-family: var(--sans);
  font-size: 0.68rem;
  color: #999;
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-item:hover .stat-sublabel {
  opacity: 1;
}

/* Features band */
.features-band {
  background: var(--bg-warm);
  padding: 6rem 2rem;
}
.features-inner { max-width: var(--body-w); margin: 0 auto; }
.features-intro {
  max-width: 640px;
  margin-bottom: 4rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.feature-item {
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}
.feature-num {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.9rem;
}
.feature-title {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 400;
  margin-bottom: 0.7rem;
}
.feature-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-light);
}

/* Team */
.team-section {
  max-width: var(--body-w);
  margin: 0 auto;
  padding: 6rem 2rem;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-top: 3rem;
}
.team-member-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.team-member-image-bg {
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease);
}
.team-member:hover .team-member-image-bg { transform: scale(1.04); }
.team-member-name {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.team-member-role {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.team-member-bio {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-intro {
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.services-intro p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.42rem);
  font-weight: 300;
  line-height: 1.72;
  color: var(--text-light);
}

.service-detail-section {
  max-width: var(--body-w);
  margin: 0 auto;
  padding: 0 2rem 7rem;
}
.service-detail-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: 5.5rem 0;
  border-top: 1px solid var(--border);
}
.service-detail-item:last-child { border-bottom: 1px solid var(--border); }
.service-detail-item.flip { direction: rtl; }
.service-detail-item.flip > * { direction: ltr; }

.service-detail-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service-detail-image-bg {
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease);
}
.service-detail-item:hover .service-detail-image-bg { transform: scale(1.04); }

.service-detail-num {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.service-detail-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.18;
  margin-bottom: 1.5rem;
}
.service-detail-body {
  font-size: 0.91rem;
  line-height: 1.82;
  color: var(--text-light);
}
.service-detail-body p + p { margin-top: 1em; }
.service-detail-body ul {
  margin-top: 1em;
  padding-left: 1.2rem;
  list-style: disc;
}
.service-detail-body ul li { margin-bottom: 0.4em; }

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem 7rem;
}
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin-bottom: 3rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.filter-btn {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  background: none;
  border: none;
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.3s ease;
}
.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.filter-btn:hover,
.filter-btn.active { color: var(--accent); }
.filter-btn.active::after,
.filter-btn:hover::after { width: 100%; }

.projects-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2rem;
}
.project-card-full { display: block; }
.project-card-full .pimg {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.project-card-full .pimg-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease);
}
.project-card-full:hover .pimg-bg { transform: scale(1.06); }
.project-card-full .pmeta {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}
.project-card-full .ptitle {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
}
.project-card-full .pdesc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-top: 0.6rem;
}
.project-card-full .pdetails {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--text-light);
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* ============================================================
   PROJECT MAP
   ============================================================ */
.map-section {
  max-width: var(--body-w);
  margin: 0 auto;
  padding: 0 2rem 5rem;
}
.map-section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.map-wrap {
  position: relative;
  height: 600px;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid #15498C;
  border-radius: 4px;
}

/* "Click to interact" overlay */
.map-interact-hint {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(21,73,140,0.88);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 16px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.map-wrap:hover .map-interact-hint.visible {
  opacity: 1;
}
.map-interact-hint.dismissed {
  opacity: 0 !important;
}
.map-attribution {
  margin-top: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--border);
  text-align: right;
}
.map-attribution a { color: var(--border); text-decoration: underline; }
.map-attribution a:hover { color: var(--text-light); }

/* Hide default Leaflet attribution (shown below map instead) */
.map-wrap .leaflet-control-attribution { display: none !important; }

/* Styled zoom controls — top-right, clean and minimal */
.map-wrap .leaflet-control-zoom {
  border: 1px solid var(--border) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  overflow: hidden;
}
.map-wrap .leaflet-control-zoom a {
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  font-size: 15px !important;
  color: var(--dark) !important;
  background: var(--white) !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
}
.map-wrap .leaflet-control-zoom a:last-child { border-bottom: none !important; }
.map-wrap .leaflet-control-zoom a:hover {
  background: var(--bg-warm) !important;
  color: var(--accent) !important;
}

/* Markers — clean solid circles matching nav color */
.marker-featured {
  background: var(--sas-red);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.marker-featured:hover { transform: scale(1.3); }
.marker-featured.marker-active { transform: scale(1.4); }
.marker-dot {
  background: var(--sas-blue);
  border: none;
  border-radius: 50%;
  opacity: 0.6;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.marker-dot:hover { opacity: 0.75; transform: scale(1.2); }
.marker-dot.marker-active { opacity: 0.9; transform: scale(1.3); }

/* Custom tooltip — address on hover */
.map-tip {
  position: absolute;
  z-index: 800;
  pointer-events: none;
  transform: translate(-50%, -100%);
  padding: 5px 11px;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
  white-space: nowrap;
}

/* Custom info card — replaces Leaflet popup */
.map-info-card {
  position: absolute;
  z-index: 810;
  width: 250px;
  padding: 16px 18px;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(0,0,0,0.12);
  font-family: var(--sans);
}
.map-info-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.map-info-type {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.map-info-client {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
}

/* ============================================================
   PEOPLE PAGE
   ============================================================ */
.people-section {
  max-width: var(--body-w);
  margin: 0 auto;
  padding: 5rem 2rem 7rem;
}

/* Tier groupings */
.people-tier {
  margin-bottom: 3.5rem;
}
.people-tier:last-child { margin-bottom: 0; }
.people-tier-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 1rem;
  margin-bottom: 0;
  border-bottom: 2px solid var(--accent);
}

.person {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.people-tier .person:first-of-type { padding-top: 1.2rem; }
.person:last-child { border-bottom: none; }

.person.has-bio { cursor: pointer; }
.person.has-bio .person-name::after {
  content: '+';
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--accent);
  margin-left: 0.6rem;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.3s ease;
}
.person.has-bio:hover .person-name::after,
.person.has-bio.is-open .person-name::after {
  opacity: 1;
  transform: rotate(45deg);
}

.person-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 1.5rem;
}
.person-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  transition: color 0.2s ease;
}
.person.has-bio:hover .person-name { color: var(--accent); }
.person-creds {
  font-size: 0.85em;
  color: var(--text-light);
}
.person-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.15rem;
  width: 100%;
}
.person-tier-tag {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.5rem;
  width: 100%;
}

.person-reveal {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease 0.05s;
}
.person.has-bio:hover .person-reveal,
.person.has-bio.is-open .person-reveal {
  max-height: 300px;
  opacity: 1;
}

.person-bio {
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-top: 0.8rem;
}
.person-edu {
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-style: italic;
  opacity: 0.7;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-wrap {
  max-width: var(--body-w);
  margin: 0 auto;
  padding: 6rem 2rem 7rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
}
.contact-info-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 400;
  margin-bottom: 3rem;
}
.contact-detail {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:first-of-type { border-top: 1px solid var(--border); }
.contact-detail-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}
.contact-detail-value {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--text);
}
.contact-detail-value a {
  color: var(--text);
  transition: color 0.3s ease;
}
.contact-detail-value a:hover { color: var(--accent); }
.map-frame {
  margin-top: 2.5rem;
  height: 230px;
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: none; display: block; }

/* Contact form */
.contact-form-wrap {
  background: var(--bg-warm);
  padding: 3.5rem;
}
.contact-form-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color 0.3s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--text); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field select { appearance: none; cursor: pointer; }
.form-submit { margin-top: 2rem; }

/* ============================================================
   RESPONSIVE — TABLET  ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .client-grid .client-card { width: calc(33.333% - 1rem); }
  .projects-grid-3,
  .projects-page-grid { grid-template-columns: repeat(2, 1fr); }
  .about-band-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .about-band-details {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 2rem;
  }
  .service-detail-item {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.5rem 0;
  }
  .service-detail-item.flip { direction: ltr; }
  .firm-story {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .firm-story-sidebar { position: static; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { gap: 3rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-top > *:first-child { grid-column: 1 / -1; }
}

/* ============================================================
   HOMEPAGE — INTERACTIVE BUILDING HOTSPOT
   ============================================================ */
.bldg-hotspot {
  padding: 6rem 2rem 7rem;
  background: var(--bg-warm);
  text-align: center;
}
.bldg-hotspot__header {
  max-width: 540px;
  margin: 0 auto 3rem;
}
.bldg-hotspot__sub {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
}

/* Stage: contains the SVG + absolutely-positioned hotspots */
.bldg-hotspot__stage {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
.bldg-hotspot__svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Hotspot button ── */
.hs-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--sas-red);
  box-shadow: 0 3px 12px rgba(237,41,40,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s;
}
.hs-btn:hover {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 5px 20px rgba(237,41,40,0.55);
}
.hs-btn__icon {
  color: #fff;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  font-family: var(--sans);
  display: block;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.hs-btn.is-open .hs-btn__icon {
  transform: rotate(45deg);
}

/* Pulse animation ring */
.hs-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(237,41,40,0.35);
  animation: hs-pulse2 2.6s ease-out infinite;
  pointer-events: none;
}
.hs-btn.is-open::before {
  animation: none;
  opacity: 0;
}
@keyframes hs-pulse2 {
  0%   { transform: scale(0.75); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ── Speech-bubble callout ── */
.hs-bubble {
  position: absolute;
  z-index: 20;
  width: 260px;
  background: var(--sas-red);
  color: #fff;
  padding: 1.1rem 1.2rem 1rem;
  border-radius: 6px;
  text-align: left;
  box-shadow: 0 6px 28px rgba(0,0,0,0.22);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition: opacity 0.25s, transform 0.25s cubic-bezier(.4,0,.2,1);
}
.hs-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.hs-bubble strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.hs-bubble p {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  margin: 0 0 0.6rem;
}
.hs-bubble a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}
.hs-bubble a:hover { border-color: #fff; }

/* Tail — default points down (bubble sits above hotspot) */
.hs-bubble__tail {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid var(--sas-red);
}
/* Variant: bubble on left side (tail points right) */
.hs-bubble--left .hs-bubble__tail {
  bottom: auto;
  left: auto;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 9px solid var(--sas-red);
  border-right: none;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .bldg-hotspot { padding: 4rem 1.5rem 5rem; }
  .hs-bubble { width: 220px; }
  /* Reposition left-variant bubbles to above on smaller screens */
  .hs-bubble--left .hs-bubble__tail {
    bottom: -8px;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid var(--sas-red);
    border-bottom: none;
  }
}
@media (max-width: 600px) {
  .bldg-hotspot { padding: 3rem 1rem 4rem; }
  .hs-btn { width: 30px; height: 30px; }
  .hs-btn__icon { font-size: 17px; }
  .hs-bubble { width: 200px; padding: 0.9rem 1rem; }
  .hs-bubble strong { font-size: 0.75rem; }
  .hs-bubble p { font-size: 0.72rem; }
}

/* ============================================================
   CLIENTS GRID
   ============================================================ */
.clients-section {
  padding-bottom: 0;
}
.clients-intro {
  text-align: center;
  max-width: var(--body-w);
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
}
.clients-subtitle {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 520px;
  margin: 1.25rem auto 0;
}
.client-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto 0;
  padding: 0 2rem;
}
.client-grid .client-card {
  width: calc(25% - 1.125rem);
}

/* Card base */
.client-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.client-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(21, 73, 140, 0.10);
}

/* Logo images — grayscale → color on hover */
.client-card img {
  max-width: 130px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.4s ease;
}
.client-card:hover img {
  filter: grayscale(0%) opacity(1);
}

/* Dark logos inverted to show on white background */
.client-card img.invert {
  filter: invert(1) grayscale(100%) opacity(0.55);
}
.client-card:hover img.invert {
  filter: invert(1) grayscale(0%) opacity(1);
}
.client-card img.darken {
  filter: brightness(0) grayscale(100%) opacity(0.55);
}
.client-card:hover img.darken {
  filter: brightness(0) grayscale(0%) opacity(1);
}

/* Text fallback for missing logos */
.client-name {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-light);
  line-height: 1.35;
  transition: color 0.3s ease;
}
.client-card:hover .client-name {
  color: var(--accent);
}

/* Caption — hidden by default, fades in on hover */
.client-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.95);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.client-card:hover .client-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Placeholder cards — no logo */
.client-card-placeholder {
  background: #f5f5f5;
  border-color: #ebebeb;
}
.client-card-placeholder .client-name {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: #999;
}
.client-card-placeholder:hover {
  background: #fff;
}
.client-card-placeholder:hover .client-name {
  color: var(--accent);
}

/* "& many more" divider */
.clients-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2rem 0;
}
.clients-more-line {
  display: block;
  width: 80px;
  height: 1px;
  background: #c8c8c8;
}
.clients-more-text {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: #999;
  letter-spacing: 0.1em;
  font-style: italic;
}

/* ============================================================
   RESPONSIVE — MOBILE  ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .client-grid { gap: 1rem; }
  .client-grid .client-card { width: calc(50% - 0.5rem); }

  .person { padding: 2rem 0; }
  .person-name { font-size: 1.25rem; }
  .people-section { padding: 3rem 1.5rem 4rem; }
  .map-section { padding: 0 1.5rem 3rem; }
  .map-wrap { height: 380px; }
  .map-info-card { width: 210px; padding: 12px 14px; }
  .map-info-name { font-size: 0.92rem; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }

  .hero-split { flex-direction: column; height: 100svh; max-height: none; }
  .hero-split .hero-block { flex: 1; }

  .projects-grid-3,
  .projects-page-grid { grid-template-columns: 1fr; }

  .projects-section { padding: 4rem 1.5rem; }
  .about-band { padding: 2.5rem 1.5rem; }

  /* Firm description band — blend cleanly into page on mobile */
  .intro-band {
    padding: 4rem 1.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .intro-band > p { max-width: 100%; }

  /* Prevent any child element from pushing the viewport wider than 100vw */
  main, main > section, main > div { max-width: 100%; }

  .team-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form-wrap { padding: 2rem 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: 1fr; gap: 1.8rem; }
  .projects-filter { gap: 1.2rem; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top > *:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 0.6rem; text-align: center; }

  .services-grid { gap: 10px; }
  .service-tile { height: 180px; overflow: hidden; }
  .service-tile-content { bottom: 0.9rem; left: 0.9rem; right: 0.9rem; }
  .service-tile-num { font-size: 0.55rem; margin-bottom: 0.25rem; }
  .service-tile-title { font-size: 13px; line-height: 1.25; }
}
