/* ── 1. DESIGN TOKENS ── */
:root {
  /* Blues */
  --blue: #1B3A6B;
  --blue-dk: #122850;
  --blue-mid: #2A5298;
  --blue-lt: #dde4f0;
  --blue-xlt: #eef1f8;

  /* Neutrals */
  --white: #FFFFFF;
  --offwhite: #F4F2ED;
  --text: #1a1a1a;
  --text-md: #3d3d3d;
  --text-lt: #6b7280;

  /* Glass & borders */
  --border: rgba(27, 58, 107, .13);
  --glass: rgba(255, 255, 255, .55);
  --glass-hv: rgba(255, 255, 255, .90);

  /* Radii */
  --r-xs: 5px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(27, 58, 107, .10);
  --shadow-md: 0 4px 20px rgba(27, 58, 107, .14);
  --shadow-lg: 0 8px 40px rgba(27, 58, 107, .18);

  /* Navbar height (used as top offset for sections) */
  --nav-h: 60px;

  /* Transitions */
  --tr: .2s ease;
}

/* ── 2. RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--offwhite);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── 3. TYPOGRAPHY ── */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.page-eyebrow {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: .5rem;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text);
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-lt);
  font-weight: 400;
  margin-top: .5rem;
  max-width: 54ch;
}

/* ── 4. LAYOUT CONTAINER ── */
.container {
  width: min(1100px, 100% - 3rem);
  margin-inline: auto;
}

/* ── 5. NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 900;
  transition: background var(--tr), box-shadow var(--tr);
}

/* On top of hero (transparent) */
.navbar.at-top {
  background: transparent;
}

/* Scrolled */
.navbar.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(27, 58, 107, .10);
}

.navbar.solid {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(27, 58, 107, .10);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* Logo "AE" */
.nav-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .04em;
  flex-shrink: 0;
  transition: transform var(--tr), box-shadow var(--tr);
}

.nav-logo:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow-sm);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  position: relative;
  transition: color var(--tr);
}

/* Color adapts to nav state */
.navbar.at-top .nav-link {
  color: rgba(255, 255, 255, .82);
}

.navbar.scrolled .nav-link,
.navbar.solid .nav-link {
  color: var(--text-lt);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--tr);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.navbar.at-top .nav-link:hover {
  color: var(--white);
}

.navbar.scrolled .nav-link:hover,
.navbar.solid .nav-link:hover {
  color: var(--blue);
}

.navbar.at-top .nav-link.active {
  color: var(--white);
}

.navbar.scrolled .nav-link.active,
.navbar.solid .nav-link.active {
  color: var(--blue);
}

/* Nav CTA button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .45em 1.1em;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  transition: background var(--tr), color var(--tr), box-shadow var(--tr), transform var(--tr);
}

.navbar.at-top .nav-cta {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .28);
  color: var(--white);
}

.navbar.at-top .nav-cta:hover {
  background: rgba(255, 255, 255, .28);
  transform: translateY(-1px);
}

.navbar.scrolled .nav-cta,
.navbar.solid .nav-cta {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled .nav-cta:hover,
.navbar.solid .nav-cta:hover {
  background: var(--blue-dk);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Burger (mobile) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  transition: background var(--tr), transform .3s, opacity .2s;
}

.navbar.at-top .nav-burger span {
  background: var(--white);
}

.navbar.scrolled .nav-burger span,
.navbar.solid .nav-burger span {
  background: var(--blue);
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── 6. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .7em 1.5em;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  border: none;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr), color var(--tr);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--blue-dk);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--blue-xlt);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .22);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  background: var(--blue-xlt);
  border-color: var(--blue-lt);
}

/* PDF print button */
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
}

.btn-pdf:hover {
  background: var(--blue-dk);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ── 7. GLASS CARD ── */
.glass-card {
  background: var(--glass);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--tr), border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}

.glass-card:hover {
  background: var(--glass-hv);
  border-color: rgba(27, 58, 107, .24);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── 8. SECTION STRUCTURE (website pages, not A4) ── */
.page-section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.page-section.bg-white {
  background: var(--white);
}

.page-section.bg-offwhite {
  background: var(--offwhite);
}

.page-section.bg-navy {
  background: var(--blue);
}

.page-section.bg-xlt {
  background: var(--blue-xlt);
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-mid);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--blue-mid);
  border-radius: 1px;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.bg-navy .section-label {
  color: rgba(255, 255, 255, .55);
}

.bg-navy .section-label::before {
  background: rgba(255, 255, 255, .45);
}

.bg-navy .section-title {
  color: var(--white);
}

/* ── 9. SKILL CHIPS (website scale) ── */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .38em .9em;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 600;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-md);
  backdrop-filter: blur(4px);
  transition: background var(--tr);
}

.chip:hover {
  background: var(--glass-hv);
}

.chip img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  border-radius: 2px;
}

.chip img[src=""] {
  display: none;
}

.chip.pill-blue {
  background: rgba(27, 58, 107, .08);
  border-color: rgba(27, 58, 107, .18);
  color: var(--blue);
}

/* ── 10. TAGS & BADGES ── */
.tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: rgba(27, 58, 107, .07);
  color: var(--blue);
  border: 1px solid rgba(27, 58, 107, .15);
  padding: .18em .6em;
  border-radius: var(--r-pill);
}

.badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  background: var(--blue);
  color: var(--white);
  padding: .18em .7em;
  border-radius: var(--r-pill);
}

/* ── 11. PROJECT CARD (for index & projets pages) ── */
.project-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 58, 107, .22);
}

.project-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--blue-xlt);
  position: relative;
  flex-shrink: 0;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.project-card:hover .project-card-img img {
  transform: scale(1.04);
}

.project-card-img .card-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--blue);
  color: var(--white);
  padding: .22em .7em;
  border-radius: var(--r-pill);
}

.project-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.project-card-year {
  font-size: .68rem;
  color: var(--text-lt);
  font-weight: 600;
  letter-spacing: .06em;
}

.project-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.project-card-desc {
  font-size: .82rem;
  color: var(--text-lt);
  line-height: 1.55;
  flex: 1;
}

.project-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .3rem;
}

.project-card-hint {
  font-size: .68rem;
  color: var(--blue-mid);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: .6rem;
  display: flex;
  align-items: center;
  gap: .3em;
  opacity: 0;
  transition: opacity var(--tr);
}

.project-card:hover .project-card-hint {
  opacity: 1;
}

/* Placeholder when no banner image */
.project-card-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

/* ── 12. MODAL SYSTEM (shared CSS, JS per-page) ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 40, .52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 32px) clamp(8px, 3vw, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--r-lg);
  width: clamp(320px, 95vw, 1350px);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 70px rgba(10, 18, 40, .22), 0 0 0 1px rgba(27, 58, 107, .07);
  transform: scale(.96) translateY(8px);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--blue-lt) transparent;
  display: flex;
  flex-direction: column;
}

.overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal::-webkit-scrollbar {
  width: 4px;
}

.modal::-webkit-scrollbar-thumb {
  background: var(--blue-lt);
  border-radius: 4px;
}

.modal-head {
  background: var(--blue);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: clamp(14px, 2.5vw, 22px) clamp(16px, 3vw, 28px) clamp(12px, 2vw, 18px);
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: clamp(10px, 2vw, 16px);
  align-items: flex-start;
  flex-shrink: 0;
}

.modal-logo {
  flex-shrink: 0;
  width: clamp(48px, 7vw, 68px);
  height: clamp(48px, 7vw, 68px);
  border-radius: clamp(8px, 1.2vw, 12px);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-logo svg {
  opacity: .35;
  color: var(--blue);
}

.modal-head-text {
  flex: 1;
}

.m-eyebrow {
  font-size: clamp(8px, .9vw, 10px);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  font-weight: 700;
  margin-bottom: 4px;
}

.m-title {
  font-size: clamp(15px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.m-subtitle {
  font-size: clamp(10px, 1.2vw, 13px);
  color: rgba(255, 255, 255, .55);
  margin-top: 4px;
  font-style: italic;
}

.m-close,
.lb-close,
.contact-item-icon {
  padding: 8px;
}

.m-close {
  flex-shrink: 0;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--white);
  width: clamp(26px, 3.5vw, 32px);
  height: clamp(26px, 3.5vw, 32px);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: clamp(11px, 1.3vw, 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tr);
  font-family: inherit;
}

.m-close:hover {
  background: rgba(255, 255, 255, .24);
}

.modal-banner {
  width: 100%;
  height: 120px;
  flex-shrink: 0;
  background: var(--blue-dk);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  display: none;
}

.modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.m-body {
  padding: clamp(16px, 2.5vw, 26px) clamp(16px, 3vw, 28px);
  flex: 1;
}

.m-st {
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--blue-lt);
  margin-bottom: 10px;
  margin-top: clamp(14px, 2vw, 22px);
}

.m-st:first-child {
  margin-top: 0;
}

.m-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.m-list li {
  display: flex;
  gap: 8px;
  font-size: clamp(12px, 1.4vw, 14px);
  color: var(--text);
  line-height: 1.55;
}

.m-list li::before {
  content: '\2022';
  color: var(--blue);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  flex-shrink: 0;
}

.m-note {
  font-size: clamp(12px, 1.4vw, 14px);
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 12px;
  background: var(--blue-xlt);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: clamp(10px, 1.5vw, 14px) clamp(12px, 2vw, 16px);
}

.m-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.m-stat {
  background: var(--blue-xlt);
  border-radius: var(--r-sm);
  padding: clamp(10px, 1.5vw, 14px) clamp(12px, 2vw, 16px);
  border: 1px solid var(--border);
}

.m-stat-val {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 4px;
}

.m-stat-lbl {
  font-size: clamp(9px, 1vw, 11px);
  color: var(--text-lt);
}

.m-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.m-tag {
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 700;
  letter-spacing: .05em;
  background: var(--blue);
  color: var(--white);
  padding: clamp(3px, .5vw, 5px) clamp(10px, 1.5vw, 14px);
  border-radius: var(--r-pill);
  text-transform: uppercase;
}

.m-tag.o {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

/* Project image grid in modal */
.m-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 1vw, 12px);
  margin-top: 4px;
}

.m-img-slot {
  aspect-ratio: 4/3;
  border-radius: var(--r-sm);
  border: 1.5px dashed rgba(27, 58, 107, .22);
  background: var(--blue-xlt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--tr), transform var(--tr);
}

.m-img-slot:hover {
  border-color: rgba(27, 58, 107, .5);
  transform: scale(1.02);
}

.m-img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.m-img-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-lt);
  font-size: clamp(9px, 1vw, 11px);
  text-align: center;
  padding: 8px;
  pointer-events: none;
}

.m-img-ph svg {
  opacity: .3;
}

/* ── 13. LIGHTBOXES ── */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.lb-overlay.open {
  opacity: 1;
  pointer-events: all;
}

#photoLb {
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(12px);
}

#imgLb {
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(14px);
  z-index: 1200;
}

.lb-inner-img {
  max-width: 88vw;
  max-height: 88vh;
  border-radius: var(--r-md);
  object-fit: contain;
  transform: scale(.88);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}

.lb-overlay.open .lb-inner-img {
  transform: scale(1);
}

.lb-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background var(--tr);
}

.lb-close:hover {
  background: rgba(255, 255, 255, .26);
}

/* ── 14. STAT CARDS ── */
.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(6px);
}

.stat-card-val {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: .3rem;
}

.stat-card-lbl {
  font-size: .78rem;
  color: var(--text-lt);
  font-weight: 500;
  line-height: 1.4;
}

/* ── 15. FOOTER ── */
.site-footer {
  background: var(--blue-dk);
  padding: 2.5rem 0 2rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .02em;
}

.footer-brand span {
  color: rgba(255, 255, 255, .4);
  font-weight: 400;
  font-size: .8rem;
  display: block;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
  font-weight: 500;
  letter-spacing: .04em;
  transition: color var(--tr);
}

.footer-link:hover {
  color: var(--white);
}

.footer-copy {
  font-size: .72rem;
  color: rgba(255, 255, 255, .3);
  letter-spacing: .04em;
  text-align: right;
}

/* ── 16. ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-up {
  opacity: 0; 
}

.anim-up.visible {
  animation: fadeUp 0.55s ease forwards;
}

.anim-up:nth-child(1) { animation-delay: 0s; }
.anim-up:nth-child(2) { animation-delay: .08s; }
.anim-up:nth-child(3) { animation-delay: .16s; }
.anim-up:nth-child(4) { animation-delay: .24s; }
.anim-up:nth-child(5) { animation-delay: .32s; }
.anim-up:nth-child(6) { animation-delay: .40s; }


/* ── 17. FILTER TABS ── */
.filter-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: .45em 1.1em;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-lt);
  transition: all var(--tr);
}

.filter-tab:hover {
  border-color: var(--blue-lt);
  color: var(--blue);
  background: var(--blue-xlt);
}

.filter-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ── 18. PAGE INNER HERO (compact, for non-home pages) ── */
.page-hero {
  background: var(--blue);
  padding: calc(var(--nav-h) + 2.5rem) 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 105% 120%, rgba(255, 255, 255, .04) 0%, transparent 70%),
    radial-gradient(ellipse 30% 50% at -5% -10%, rgba(255, 255, 255, .03) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
}

.page-hero-sub {
  font-size: .85rem;
  color: rgba(255, 255, 255, .62);
  margin-top: .5rem;
  letter-spacing: .04em;
}

/* ── 19. RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-link {
    color: var(--text-md) !important;
    padding: .6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
  }

  .nav-links .nav-cta {
    margin-top: .6rem;
    background: var(--blue) !important;
    color: var(--white) !important;
    justify-content: center;
  }

  .nav-burger {
    display: flex;
  }

  .m-stats {
    grid-template-columns: 1fr 1fr;
  }

  .m-img-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .m-stats {
    grid-template-columns: 1fr;
  }

  .m-img-grid {
    grid-template-columns: 1fr 1fr;
  }
}