/* ==========================================================================
   JYGA ARCHITECTS — Stylesheet
   Design system: navy (#1F5499, from the JYGA wordmark) against black,
   white and warm greys — restrained, image-led, editorial.
   Display face: Fraunces (serif, architectural, used large & sparingly)
   Body/UI face: Manrope (clean grotesque)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,340;0,9..144,440;0,9..144,560;1,9..144,340;1,9..144,440&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  /* Color */
  --navy: #1f5499;
  --navy-dark: #123661;
  --navy-tint: #eaf0f8;
  --ink: #12141a;
  --paper: #fafaf8;
  --stone: #eeede8;
  --line: #dedcd5;
  --line-dark: #2a2d35;
  --graphite: #6b6f76;
  --graphite-light: #9a9d9f;
  --gold: #c9a85c;
  --white: #ffffff;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-sans:
    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1360px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --nav-h: 88px;

  /* Motion */
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body,
h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

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

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow--light {
  color: var(--gold);
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 440;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1,
.h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 400;
}
h2,
.h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}
h3,
.h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

p {
  color: var(--graphite);
  font-size: 1.02rem;
  line-height: 1.7;
}
p.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 400;
}

.serif-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.4;
  color: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1.05rem 1.9rem;
  border: 1px solid currentColor;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.btn--dark {
  color: var(--ink);
}
.btn--dark:hover {
  background: var(--ink);
  color: var(--white);
}
.btn--light {
  color: var(--white);
}
.btn--light:hover {
  background: var(--white);
  color: var(--ink);
}
.btn--navy {
  color: var(--navy);
}
.btn--navy:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease);
}
.btn:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Header / Nav — Foster-style minimal chrome: logo, search, hamburger.
   No persistent link bar; all navigation lives in the fullscreen overlay.
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.08) 100%
  );
  opacity: 1;
  transition:
    opacity 0.4s ease,
    background 0.5s ease;
  z-index: -1;
  pointer-events: none;
}
.site-header:hover::before {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.15) 100%
  );
}
.site-header.is-scrolled::before,
.site-header.is-light::before,
.nav-open .site-header::before {
  opacity: 0;
}
.site-header.is-scrolled,
.site-header.is-light {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav-open .site-header {
  background: transparent;
  border-color: transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  padding: 0 clamp(1.25rem, 3vw, 2.75rem);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--white);
  transition: color 0.4s var(--ease);
  position: relative;
  z-index: 320;
}
.site-header.is-scrolled .brand,
.site-header.is-light .brand {
  color: var(--ink);
}
.nav-open .brand {
  color: var(--ink);
}
.brand-mark {
  width: 30px;
  height: 30px;
}
.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite-light);
  margin-top: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2rem);
  position: relative;
  z-index: 420;
}
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.4s var(--ease);
}
.nav-icon-btn svg {
  width: 19px;
  height: 19px;
}
.site-header.is-scrolled .nav-icon-btn,
.site-header.is-light .nav-icon-btn {
  color: var(--ink);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  width: 26px;
  cursor: pointer;
}
.nav-toggle span {
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) {
  width: 100%;
}
.nav-toggle span:nth-child(2) {
  width: 70%;
}
.site-header.is-scrolled .nav-toggle span,
.site-header.is-light .nav-toggle span {
  background: var(--ink);
}
.nav-open .nav-toggle span {
  background: var(--white);
}
.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
  width: 100%;
}
.nav-open .nav-toggle span:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
  width: 100%;
}

/* ==========================================================================
   Fullscreen nav overlay — Foster-style: a slide-in panel (50% viewport
   width) rather than a full-bleed takeover, with a light scrim over the
   remaining page so it's clear content is still there underneath.
   ========================================================================== */
.site-nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: var(--ink);
  z-index: 250;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 1.5rem) clamp(1.5rem, 4vw, 3.5rem) 3rem;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}
.site-nav-overlay::before {
  /* Scrim over the remaining (left) part of the screen — dims the page
     without hiding it completely. */
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background: rgba(8, 10, 14, 0.45);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.nav-open .site-nav-overlay {
  transform: translateX(0);
  pointer-events: auto;
  box-shadow: -40px 0 80px rgba(0, 0, 0, 0.35);
}
.nav-open .site-nav-overlay::before {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 760px) {
  /* Below tablet width a 50/50 split leaves too little room to read —
     let the panel take the full width there. */
  .site-nav-overlay {
    width: 100%;
  }
  .site-nav-overlay::before {
    display: none;
  }
}

.nav-overlay-search {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 1.2rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.nav-overlay-search svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}
.nav-overlay-search input {
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  width: 100%;
}
.nav-overlay-search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.nav-overlay-search input:focus {
  outline: none;
}

.nav-overlay-links {
  display: flex;
  flex-direction: column;
}
.nav-overlay-links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(1.4rem, 3vw, 1.4rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  transition:
    color 0.35s var(--ease),
    padding-left 0.35s var(--ease);
}

@media (max-width: 760px) {
  .site-nav-overlay {
    width: 100%;
  }
  .site-nav-overlay::before {
    display: none;
  }

  .nav-overlay-links a {
    font-size: 1.4rem;
    line-height: 1.4;
  }
  .nav-overlay-links a .idx {
    font-size: 0.65rem;
  }
}

.nav-overlay-links a .idx {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}
.nav-overlay-links a:hover,
.nav-overlay-links a.is-active {
  color: var(--white);
  padding-left: 0.5rem;
}
.nav-overlay-links a.is-active .idx {
  color: var(--gold);
}

.nav-overlay-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-overlay-foot a,
.nav-overlay-foot span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.nav-overlay-foot a:hover {
  color: var(--white);
}
.nav-overlay-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.nav-overlay-social {
  display: flex;
  gap: 1.2rem;
}

@media (max-width: 700px) {
  .nav-overlay-links a {
    font-size: 1.4rem;
    gap: 0.8rem;
  }
  .nav-overlay-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero-video-wrap.is-active {
  opacity: 1;
}
.hero-video-wrap video,
.hero-video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Strong, even darkening so hero text is legible over any part of the
     footage — not just a bottom gradient. */
  background:
    linear-gradient(
      180deg,
      rgba(8, 10, 14, 0.62) 0%,
      rgba(8, 10, 14, 0.38) 30%,
      rgba(8, 10, 14, 0.5) 60%,
      rgba(8, 10, 14, 0.82) 100%
    ),
    rgba(8, 10, 14, 0.18);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) 4.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-eyebrow {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 380;
  color: var(--white);
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1.02;
  max-width: 18ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-sub {
  color: rgba(255, 255, 255, 0.9);
  max-width: 40ch;
  margin-top: 1.5rem;
  font-size: 1.05rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-dots {
  display: flex;
  gap: 0.6rem;
}
.hero-dots button {
  width: 32px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.3s;
}
.hero-dots button.is-active {
  background: var(--white);
}
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  to {
    top: 100%;
  }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
section {
  position: relative;
}
.section {
  padding: clamp(4.5rem, 9vw, 8.5rem) 0;
}
.section--tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section--dark {
  background: var(--ink);
  color: var(--white);
}
.section--dark p {
  color: rgba(255, 255, 255, 0.62);
}
.section--stone {
  background: var(--stone);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head .h2 {
  max-width: 14ch;
}
.section-head .section-desc {
  max-width: 34ch;
}
@media (max-width: 720px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
}

/* Progressive enhancement: content is visible by default (works with no JS
   / JS errors / slow connections). Only once the 'js' class confirms the
   observer is wired up do we hide-then-reveal elements on scroll. */
.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Intro / statement ---------- */
.intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 860px) {
  .intro {
    grid-template-columns: 1fr;
  }
}
.intro-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--graphite);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   LEED spotlight (signature section)
   ========================================================================== */
.leed {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.leed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .leed-grid {
    grid-template-columns: 1fr;
  }
}
.leed-mark {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 168, 92, 0.9);
  background: linear-gradient(
    180deg,
    rgba(201, 168, 92, 0.95),
    rgba(201, 168, 92, 0.35)
  );
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 1.6rem;
}
.leed-copy p {
  color: rgba(255, 255, 255, 0.68);
  margin-top: 1.4rem;
}
.leed-copy .btn {
  margin-top: 2.2rem;
}
.leed-cert-wrap {
  position: relative;
  padding: 1.6rem;
}
.leed-cert-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 168, 92, 0.35);
  transform: translate(14px, 14px);
}
.leed-cert-wrap img {
  position: relative;
  width: 100%;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.leed-quote {
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.leed-quote img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.leed-quote-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}
.leed-quote-role {
  font-size: 0.78rem;
  color: var(--gold);
  margin-top: 2px;
}

/* ==========================================================================
   Work grid
   ========================================================================== */
/* .work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
} */

.work-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

@media (max-width: 980px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* .work-card {
  position: relative;
  background: var(--ink);
  aspect-ratio: 4/5;
  overflow: hidden;
  display: block;
} */
.work-card {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  display: block;
  aspect-ratio: auto;
}

/* .work-card:first-child {
  grid-column: span 2;
  aspect-ratio: 16/10.5;
} */

.work-card:first-child {
  grid-column: 1;
  grid-row: 1 / 3;
}
.work-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.work-card:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

@media (max-width: 620px) {
  .work-card:first-child {
    grid-column: span 1;
    aspect-ratio: 4/5;
  }
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1.1s var(--ease),
    opacity 0.6s;
  opacity: 0.92;
}

.work-card:hover img {
  transform: scale(1.06);
  opacity: 1;
}
.work-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  color: var(--white);
}
.work-card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.4rem;
}
.work-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.work-more {
  text-align: center;
  margin-top: 3.5rem;
}

/* ==========================================================================
   Philosophy statement band
   ========================================================================== */
.statement {
  padding: clamp(5rem, 10vw, 8.5rem) 0;
  text-align: center;
}
.statement blockquote {
  max-width: 20ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.25;
  color: var(--ink);
}
.statement cite {
  display: block;
  margin-top: 2rem;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- Services strip ---------- */
.services-strip {
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.35s var(--ease);
}
.service-row:hover {
  padding-left: 0.8rem;
}
.service-index {
  font-family: var(--font-display);
  color: var(--graphite-light);
  font-size: 1rem;
}
.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
}
.service-arrow {
  width: 20px;
  height: 20px;
  color: var(--navy);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-row:hover .service-arrow {
  opacity: 1;
}

/* ---------- Testimonials ---------- */
.testimonial-track {
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar {
  display: none;
}
.testimonial {
  flex: 0 0 min(560px, 86vw);
  scroll-snap-align: start;
}
.testimonial p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--ink);
  line-height: 1.5;
}
.testimonial-meta {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--graphite);
}
.testimonial-meta strong {
  color: var(--ink);
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.cta-band h2 {
  color: var(--white);
  max-width: 14ch;
}
.cta-band .btn--light:hover {
  color: var(--navy);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}
.footer-brand .brand {
  color: var(--white);
  margin-bottom: 1.2rem;
}
.footer-brand p {
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.5);
}
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.6rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.footer-social a:hover {
  background: var(--navy);
  border-color: var(--navy);
}
.footer-social svg {
  width: 14px;
  height: 14px;
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.3rem;
}
.footer-col a,
.footer-col address,
.footer-col p {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 0.7rem;
  line-height: 1.5;
}
.footer-col a:hover {
  color: var(--white);
}
.footer-office {
  margin-bottom: 1.6rem;
}
.footer-office strong {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom a:hover {
  color: var(--white);
}

/* ==========================================================================
   Inner-page header banner (About, Projects, Services, etc.)
   ========================================================================== */
.page-header {
  position: relative;
  height: 85vh;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.page-header img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 15, 20, 0.5) 0%,
    rgba(12, 15, 20, 0.25) 40%,
    rgba(12, 15, 20, 0.85) 100%
  );
}
.page-header-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) 3.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.page-header .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}
.page-header h1 {
  color: var(--white);
  max-width: 20ch;
}
.page-header p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 46ch;
  margin-top: 1rem;
}
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.2rem;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* No-image variant (light inner pages / forms) */
.page-header--light {
  background: var(--stone);
  height: auto;
  min-height: 0;
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
  align-items: flex-start;
}
.page-header--light::after,
.page-header--light img {
  display: none;
}
.page-header--light .eyebrow {
  color: var(--navy);
}
.page-header--light h1 {
  color: var(--ink);
}
.page-header--light p {
  color: var(--graphite);
}
.page-header--light .breadcrumb,
.page-header--light .breadcrumb a {
  color: var(--graphite);
}

/* ==========================================================================
   Project grid (Projects listing page)
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}
.filter-chip {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  color: var(--graphite);
  transition: all 0.3s var(--ease);
}
.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--navy-tint);
}

.project-list {
  padding: 3.5rem 0;
}
.project-row {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr auto;
  gap: 2.5rem;
  align-items: center;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.project-row:hover {
  background: var(--stone);
}
.project-row img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.project-row-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.project-row-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
}
.project-row-loc {
  color: var(--graphite);
  font-size: 0.88rem;
  margin-top: 0.4rem;
}
@media (max-width: 760px) {
  .project-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .project-row > svg {
    display: none;
  }
}

/* ==========================================================================
   Case study (LEED page) long-form
   ========================================================================== */
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 3.5rem;
}
@media (max-width: 700px) {
  .case-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}
.case-meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 0.4rem;
}
.case-meta-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.case-body {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2rem, 6vw, 5rem);
}
@media (max-width: 860px) {
  .case-body {
    grid-template-columns: 1fr;
  }
}
.case-toc {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  align-self: start;
}
.case-toc a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  color: var(--graphite);
  border-left: 2px solid var(--line);
  padding-left: 1rem;
  transition: all 0.25s;
}
.case-toc a:hover,
.case-toc a.is-active {
  color: var(--navy);
  border-color: var(--navy);
}
.case-content h3 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.case-content h3:first-child {
  margin-top: 0;
}
.case-content p {
  margin-bottom: 1.1rem;
}
.case-content img {
  width: 100%;
  margin: 2rem 0;
}
.case-content ul {
  margin: 1.2rem 0;
}
.case-content li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--graphite);
}
.case-content li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--navy);
}
.case-content .leed-quote img {
  width: 62px;
  height: 62px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}

/* ==========================================================================
   People / bio layout
   ========================================================================== */
.bio-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) {
  .bio-grid {
    grid-template-columns: 1fr;
  }
}
.bio-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bio-name {
  margin-bottom: 0.3rem;
}
.bio-role {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.bio-content p {
  margin-bottom: 1.1rem;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
@media (max-width: 760px) {
  .country-grid {
    grid-template-columns: 1fr;
  }
}
.country-card {
  padding: 2.2rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.country-card-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.8rem;
}
.country-card-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.country-card-desc {
  font-size: 0.92rem;
  color: var(--graphite);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}
@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.team-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 1rem;
}
.team-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.team-card-role {
  font-size: 0.82rem;
  color: var(--graphite);
  margin-top: 0.2rem;
}

/* ==========================================================================
   Services page detail
   ========================================================================== */
.service-detail {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px;
}
@media (max-width: 720px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.service-detail-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--graphite-light);
}
.service-detail h3 {
  margin-bottom: 1rem;
}
.service-detail ul {
  margin-top: 1.2rem;
}
.service-detail li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.55rem;
  color: var(--graphite);
  font-size: 0.95rem;
}
.service-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--navy);
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.office-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.office-card:first-child {
  padding-top: 0;
}
.office-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.office-card p {
  margin: 0;
  font-size: 0.92rem;
}
.office-card a {
  color: var(--navy);
}

.form-field {
  margin-bottom: 1.5rem;
}
.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 0.6rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--navy);
  outline: none;
}
.form-field textarea {
  resize: vertical;
  min-height: 130px;
}
.form-note {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--navy-tint);
  color: var(--navy-dark);
  font-size: 0.88rem;
}

/* ==========================================================================
   Placeholder / coming-soon pages
   ========================================================================== */
.placeholder-note {
  border: 1px dashed var(--line);
  padding: 2.5rem;
  text-align: center;
  color: var(--graphite);
  font-size: 0.95rem;
}
.placeholder-note strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

/* Simple listing card (news/careers) */
.simple-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
}
@media (max-width: 600px) {
  .simple-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
.simple-card-date {
  font-size: 0.8rem;
  color: var(--graphite);
}
.simple-card h3 {
  margin-bottom: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.4rem;
  z-index: 999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ==========================================================================
   Foster-style tile grids — "Studio" block (big tile + quote, 3 small tiles)
   and "Expertise" block (2 large + 3 small asymmetric grid). Used on the
   homepage and reused for Services.
   ========================================================================== */
.tile-section {
  padding: 0;
}
.tile-grid-primary {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2px;
  background: var(--line);
}
@media (max-width: 860px) {
  .tile-grid-primary {
    grid-template-columns: 1fr;
  }
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  min-height: 320px;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.tile:hover img {
  transform: scale(1.05);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0) 55%
  );
  z-index: 1;
}
.tile-label {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.6rem clamp(1.2rem, 3vw, 2rem);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--white);
}

.tile-quote {
  background: var(--stone);
  padding: clamp(1.8rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}
.tile-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
}
.tile-quote cite {
  display: block;
  margin-top: 1.4rem;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.tile-grid-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}
@media (max-width: 700px) {
  .tile-grid-secondary {
    grid-template-columns: 1fr;
  }
}
.tile-grid-secondary .tile {
  min-height: 280px;
}

/* Expertise: 2 large tiles then 3 smaller — mirrors Foster's asymmetric layout */
.tile-grid-expertise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  margin-top: 2px;
}
@media (max-width: 860px) {
  .tile-grid-expertise {
    grid-template-columns: 1fr;
  }
}
.tile-grid-expertise .tile {
  min-height: 300px;
}

.tile-grid-expertise-lower {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  margin-top: 2px;
}
@media (max-width: 700px) {
  .tile-grid-expertise-lower {
    grid-template-columns: 1fr;
  }
}
.tile-grid-expertise-lower .tile {
  min-height: 260px;
}

.tile-section-head {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
  max-width: var(--container);
  margin: 0 auto;
}
.tile-section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

/* ==========================================================================
   Projects — Foster-style search / filter / sort listing
   ========================================================================== */
.projects-toolbar {
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
}
.projects-search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--stone);
  padding: 0.85rem 1.1rem;
  max-width: 420px;
}
.projects-search svg {
  width: 16px;
  height: 16px;
  color: var(--graphite);
  flex-shrink: 0;
}
.projects-search input {
  background: none;
  border: none;
  width: 100%;
  font-size: 0.92rem;
  color: var(--ink);
}
.projects-search input:focus {
  outline: none;
}

.projects-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.projects-select {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--graphite);
  cursor: pointer;
}
.projects-sort {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--graphite);
}
.projects-sort button {
  padding: 0.4rem 0.7rem;
  color: var(--graphite);
  border-bottom: 2px solid transparent;
}
.projects-sort button.is-active {
  color: var(--ink);
  border-color: var(--navy);
  font-weight: 600;
}
.projects-count {
  font-size: 0.85rem;
  color: var(--graphite);
  white-space: nowrap;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.2rem, 2.5vw, 2rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
@media (max-width: 960px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  display: block;
}
.project-card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--stone);
}
.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.project-card:hover .project-card-media img {
  transform: scale(1.06);
}
.project-card-arrow {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.project-card-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--ink);
}
.project-card:hover .project-card-arrow {
  background: var(--navy);
}
.project-card:hover .project-card-arrow svg {
  color: var(--white);
}
.project-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 1rem;
}
.project-card-meta {
  font-size: 0.82rem;
  color: var(--graphite);
  margin-top: 0.3rem;
}
.project-card[hidden] {
  display: none;
}

.projects-empty {
  padding: 4rem 0;
  text-align: center;
  color: var(--graphite);
  display: none;
}
.projects-empty.is-visible {
  display: block;
}

/* ==========================================================================
   Project detail page — Foster-style: hero + category pill + breadcrumb,
   gallery button, two-column body.
   ========================================================================== */
.pd-hero {
  position: relative;
  height: 78vh;
  min-height: 460px;
  overflow: hidden;
  background: var(--ink);
}
.pd-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 14, 0.5) 0%,
    rgba(8, 10, 14, 0.05) 30%,
    rgba(8, 10, 14, 0.1) 60%,
    rgba(8, 10, 14, 0.75) 100%
  );
}
.pd-breadcrumb {
  position: absolute;
  top: calc(var(--nav-h) + 1.5rem);
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.pd-breadcrumb .breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}
.pd-breadcrumb .breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}
.pd-pill {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}
.pd-title-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 var(--gutter) 3rem;
  max-width: var(--container);
  margin: 0 auto;
}
.pd-title-wrap h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  max-width: 22ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.pd-gallery-cta {
  text-align: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.pd-body {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
@media (max-width: 860px) {
  .pd-body {
    grid-template-columns: 1fr;
  }
}
.pd-meta-block {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  align-self: start;
}
.pd-meta-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.pd-meta-row:first-child {
  padding-top: 0;
}
.pd-meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 0.4rem;
}
.pd-meta-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.pd-content p {
  margin-bottom: 1.2rem;
}
.pd-content h3 {
  margin: 2.2rem 0 1rem;
}

.pd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}
@media (max-width: 700px) {
  .pd-gallery-grid {
    grid-template-columns: 1fr;
  }
}
.pd-gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ==========================================================================
   People — 80vh hero, team grid with dummy portraits
   ========================================================================== */
.people-hero {
  height: 80vh;
  min-height: 480px;
}

.team-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}
@media (max-width: 860px) {
  .team-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .team-grid-full {
    grid-template-columns: 1fr;
  }
}
.team-card-full img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 1.1rem;
  filter: grayscale(15%);
}
.team-card-full-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.team-card-full-role {
  font-size: 0.85rem;
  color: var(--navy);
  margin-top: 0.2rem;
  font-weight: 600;
}

/* ==========================================================================
   News — dummy article cards
   ========================================================================== */
.news-grid {
  display: flex;
  flex-direction: column;
}
.news-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) {
  .news-card {
    grid-template-columns: 1fr;
  }
}
.news-card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card-date {
  font-size: 0.78rem;
  color: var(--graphite);
  margin-bottom: 0.6rem;
}
.news-card h3 {
  margin-bottom: 0.7rem;
}

/* ==========================================================================
   Individual profile page (e.g. Manilius Garber)
   ========================================================================== */
.profile-hero {
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  background: var(--stone);
}
.profile-hero-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: end;
}
@media (max-width: 820px) {
  .profile-hero-grid {
    grid-template-columns: 1fr;
  }
}
.profile-hero-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
}
.profile-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.profile-credential {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.45rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--graphite);
}

.profile-body {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
@media (max-width: 860px) {
  .profile-body {
    grid-template-columns: 1fr;
  }
}
.profile-toc {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  align-self: start;
}
.profile-toc a {
  display: block;
  padding: 0.6rem 0 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--graphite);
  border-left: 2px solid var(--line);
}
.profile-toc a:hover {
  color: var(--navy);
  border-color: var(--navy);
}
.profile-content h3 {
  margin: 2.4rem 0 1rem;
}
.profile-content h3:first-child {
  margin-top: 0;
}
.profile-content p {
  margin-bottom: 1.1rem;
}

.profile-pull-quote {
  margin: 2.5rem 0;
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
  border-left: 3px solid var(--navy);
  background: var(--navy-tint);
}
.profile-pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.profile-pull-quote cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 600;
}

.profile-source {
  margin-top: 2.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--stone);
  font-size: 0.88rem;
  color: var(--graphite);
}
.profile-source a {
  color: var(--navy);
  font-weight: 600;
}

.profile-secondary-photo {
  margin: 2rem 0;
}
.profile-secondary-photo img {
  width: 100%;
  max-width: 320px;
}
.profile-secondary-photo figcaption {
  font-size: 0.78rem;
  color: var(--graphite-light);
  margin-top: 0.6rem;
}

.profile-related {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}
@media (max-width: 760px) {
  .profile-related {
    grid-template-columns: repeat(2, 1fr);
  }
}
.profile-related a {
  display: block;
}
.profile-related-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 0.7rem;
}
.profile-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.profile-related a:hover .profile-related-media img {
  transform: scale(1.06);
}
.profile-related-title {
  font-size: 0.88rem;
  font-weight: 600;
}

/* ==========================================================================
   Social icon rows (People page team cards + profile pages)
   ========================================================================== */
.social-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.8rem;
}
.social-row a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--graphite);
  transition: all 0.3s var(--ease);
}
.social-row a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.social-row svg {
  width: 14px;
  height: 14px;
}
.social-row--dark a {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
}
.social-row--dark a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ==========================================================================
   Testimonials page
   ========================================================================== */
.video-testimonial {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--ink);
  overflow: hidden;
}
.video-testimonial video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--stone);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial-card-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.testimonial-card p {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
  flex-grow: 1;
}
.testimonial-card-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.testimonial-card-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-card-author-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}
.testimonial-card-author-role {
  font-size: 0.78rem;
  color: var(--graphite);
  margin-top: 1px;
}

/* ---------- Client logo marquee ---------- */
.logo-marquee {
  overflow: hidden;
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 6vw, 5rem);
  width: max-content;
  animation: marquee 32s linear infinite;
}
.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.logo-marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--graphite-light);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.logo-marquee-item:hover {
  color: var(--ink);
}
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;

  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #25d366;
  color: #ffffff;

  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);

  z-index: 1000;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  display: block;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 25px rgba(0, 0, 0, 0.25);
}

@media (max-width: 860px) {
  .pd-meta-block,
  .profile-toc {
    position: static;
    top: auto;
  }
}

.cookie-notice {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  max-width: 480px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 1.2rem 1.4rem;
  font-size: 0.85rem;
  line-height: 1.55;
  z-index: 400;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.cookie-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-notice a {
  color: #fff;
  text-decoration: underline;
}
.cookie-notice button {
  margin-top: 0.9rem;
  padding: 0.6rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    background 0.3s,
    color 0.3s;
}
.cookie-notice button:hover {
  background: #fff;
  color: var(--ink);
}
@media (max-width: 560px) {
  .cookie-notice {
    right: 1.25rem;
    max-width: none;
  }
}
