/* ═══════════════════════════════════════════════════════════════════════
   ESPNG — BRAND TOKENS
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --navy:        #1A2A5C;
  --navy-deep:   #0E1732;
  --navy-mid:    #253869;
  --gold:        #C9A227;
  --gold-light:  #E0BC4F;
  --crimson:     #B11E1E;
  --green:       #2D6E3E;
  --orange:      #E89B2C;
  --cream:       #F4F1E8;
  --paper:       #FAF9F5;
  --white:       #FFFFFF;
  --charcoal:    #1D1D1D;
  --charcoal-2:  #3A3A3A;
  --muted:       #6B6560;
  --muted-light: #B5AFA5;
  --hairline:    #E5E0D2;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --nav-h: 76px;
  --page-max: 1240px;
  --side-pad: 28px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 640px) {
  :root { --side-pad: 20px; --nav-h: 64px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESET / BASE
   ═══════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   LAYOUT PRIMITIVES
   ═══════════════════════════════════════════════════════════════════════ */
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--side-pad); }

.section { padding: 120px 0; position: relative; }
@media (max-width: 768px) { .section { padding: 80px 0; } }

/* Section eyebrow: small gold monospaced label above section titles */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--gold-light); }
.eyebrow.on-dark::before { background: var(--gold-light); }

.section-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 24px;
  max-width: 900px;
}
.section-title .accent { color: var(--crimson); font-style: italic; font-weight: 400; }

.section-lead {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--charcoal-2);
  max-width: 720px;
  margin: 0 0 60px;
}

.section-title.on-dark { color: var(--white); }
.section-lead.on-dark { color: rgba(255,255,255,0.75); }

/* ═══════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background-color .3s var(--ease), backdrop-filter .3s var(--ease), box-shadow .3s var(--ease);
  background: transparent;
}
.nav.scrolled {
  background: rgba(14, 23, 50, 0.92);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(201,162,39,0.25);
}
.nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 40px; height: 40px; object-fit: contain; }
.nav-brand-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--white);
  line-height: 1;
}
.nav-brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  padding: 8px 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold);
  transition: right .3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 2px;
  color: var(--white);
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block;
  position: absolute; left: 50%; top: 50%;
  width: 22px; height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), top .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span::before { top: -8px; transform: translateX(-50%); }
.nav-toggle span::after  { top:  8px; transform: translateX(-50%); }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav.open .nav-toggle span::after  { top: 0; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .nav-mobile {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--navy-deep);
    padding: 32px var(--side-pad) 48px;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
    border-top: 1px solid rgba(201,162,39,0.2);
  }
  .nav.open .nav-mobile { transform: translateY(0); }
  .nav-mobile ul { list-style: none; padding: 0; margin: 0 0 28px; }
  .nav-mobile li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-mobile a {
    display: block;
    padding: 18px 0;
    color: rgba(255,255,255,0.85);
    font-size: 17px;
    font-weight: 500;
  }
  .nav-mobile .nav-cta { display: inline-flex; margin-top: 8px; }
}
@media (min-width: 901px) { .nav-mobile { display: none; } }

/* ═══════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 100px;
}
/* Radial gradient wash */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201,162,39,0.10), transparent 60%),
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(177,30,30,0.08), transparent 55%),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
/* Contour-line SVG pattern behind the hero */
.hero-contours {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  width: 100%;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: left; }
  .hero { padding-bottom: 60px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 32px;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: "";
  width: 40px; height: 1px; background: var(--gold);
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,39,0.2);
}

.hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(48px, 8vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  color: var(--white);
}
.hero h1 .em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}
.hero h1 .thin {
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.02em;
  margin-top: 12px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0 0 44px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-secondary:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn .arrow { font-size: 18px; line-height: 1; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero right column: logo + credentials tile */
.hero-logo-tile {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
}
.hero-logo-glow {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-logo-glow::before {
  content: "";
  position: absolute; inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.25), transparent 70%);
  filter: blur(30px);
}
.hero-logo-glow img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.hero-logo-glow::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(201,162,39,0.3);
  transform: scale(1.05);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: scale(1.05) rotate(360deg); } }

/* Credentials strip beneath hero */
.hero-credentials {
  position: absolute;
  bottom: 40px;
  left: 0; right: 0;
  z-index: 2;
}
.hero-credentials-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 24px var(--side-pad) 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: center;
}
.cred {
  display: flex; flex-direction: column; gap: 4px;
}
.cred-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.cred-value {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--white);
}
@media (max-width: 900px) {
  .hero-credentials { position: static; margin-top: 40px; }
  .hero-credentials-inner { justify-content: flex-start; gap: 24px 40px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════════════ */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

.about-copy p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--charcoal-2);
  margin: 0 0 20px;
  max-width: 560px;
}
.about-copy p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  font-weight: 500;
  color: var(--navy);
  float: left;
  line-height: 0.9;
  padding: 8px 12px 0 0;
}

.stats-card {
  background: var(--navy);
  color: var(--white);
  padding: 44px 40px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.stats-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}
.stats-card h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 32px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 20px;
}
.stat-row:last-child { border-bottom: none; }
.stat-label {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  font-weight: 500;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--white);
  text-align: right;
}
.stat-value.mono {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════════════════ */
.services { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border-radius: 4px;
  padding: 44px 40px 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--card-accent, var(--navy));
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(26, 42, 92, 0.18);
  border-color: transparent;
}

.service-number {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 16px;
}
.service-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.service-intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
  font-style: italic;
}
.service-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.service-items li {
  display: flex; gap: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--charcoal-2);
}
.service-items li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px; height: 6px;
  background: var(--card-accent, var(--navy));
  border-radius: 50%;
  margin-top: 8px;
}


/* Service icons — single-colored line style, animate on card hover */
.service-icon {
  width: 56px;
  height: 56px;
  color: var(--card-accent, var(--navy));
  margin-bottom: 26px;
  display: inline-block;
  transition: transform .5s var(--ease), color .3s var(--ease);
}
.service-icon svg { width: 100%; height: 100%; display: block; }
.service-card:hover .service-icon {
  transform: translateY(-4px) rotate(-4deg) scale(1.08);
}
/* On hover, brighten via a lighter version of the accent */
.service-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--card-accent, var(--navy));
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.service-card:hover::after { opacity: 0.5; transform: scaleX(1); }

/* Detail icons — small inline icons in the contact block */
.detail-icon {
  width: 16px; height: 16px;
  color: var(--gold-light);
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.detail-block:hover .detail-icon { color: var(--gold); transform: translateX(2px); }

/* Pillar icons - small mono icons above the initial */
.pillar-icon {
  width: 26px; height: 26px;
  color: var(--pillar-color, var(--navy));
  opacity: 0.55;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.pillar:hover .pillar-icon { opacity: 1; transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════════════════
   WHY CHOOSE — 5 pillars
   ═══════════════════════════════════════════════════════════════════════ */
.why { background: var(--paper); }

.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-top: 20px;
}
@media (max-width: 1024px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .pillars { grid-template-columns: 1fr; } }

.pillar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 24px 32px 0;
  border-top: 2px solid var(--pillar-color, var(--navy));
  padding-top: 28px;
  position: relative;
}
.pillar-letter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 84px;
  line-height: 0.85;
  color: var(--pillar-color, var(--navy));
  letter-spacing: -0.04em;
  font-style: italic;
}
.pillar-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}
.pillar-copy {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--charcoal-2);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   MISSION & VISION
   ═══════════════════════════════════════════════════════════════════════ */
.mv { background: var(--navy-deep); color: var(--white); position: relative; overflow: hidden; }
.mv::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(201,162,39,0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(177,30,30,0.08), transparent 60%);
  pointer-events: none;
}
.mv-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) { .mv-grid { grid-template-columns: 1fr; } }

.mv-card {
  border-top: 3px solid var(--mv-color, var(--gold));
  padding: 40px 0 0;
}
.mv-icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--mv-color, var(--gold));
  border: 1.5px solid currentColor;
  background: rgba(255,255,255,0.04);
  margin-bottom: 20px;
}
.mv-icon svg { width: 26px; height: 26px; display: block; }
.mv-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mv-color, var(--gold-light));
  margin-bottom: 16px;
}
.mv-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.mv-card p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin: 0;
  max-width: 520px;
}

/* ═══════════════════════════════════════════════════════════════════════
   TEAM
   ═══════════════════════════════════════════════════════════════════════ */
.team { background: var(--cream); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .team-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; } }

.team-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -25px rgba(26,42,92,0.25);
}
.team-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-photo::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--team-color, var(--navy));
}

.team-info { padding: 28px 26px 32px; }
.team-info h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.team-role {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--team-color, var(--navy));
  margin: 0 0 20px;
}
.team-quals {
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}
.team-quals-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
  font-weight: 500;
}
.team-quals-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.team-quals-list li { margin-bottom: 4px; }

/* ═══════════════════════════════════════════════════════════════════════
   PROJECTS TIMELINE
   ═══════════════════════════════════════════════════════════════════════ */
.projects { background: var(--paper); }

.timeline {
  margin-top: 20px;
  position: relative;
  max-width: 940px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px;
  left: 148px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,162,39,0.2));
}
@media (max-width: 640px) {
  .timeline::before { left: 8px; }
}

.tl-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  padding: 22px 0;
  position: relative;
  align-items: baseline;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 143px; top: 28px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--crimson);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 2px var(--crimson);
  z-index: 1;
}
@media (max-width: 640px) {
  .tl-item {
    grid-template-columns: 1fr;
    padding-left: 32px;
    gap: 4px;
  }
  .tl-item::before { left: 3px; top: 26px; }
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson);
  text-align: right;
  padding-right: 20px;
}
@media (max-width: 640px) { .tl-date { text-align: left; padding-right: 0; } }

.tl-content {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--charcoal-2);
}
.tl-client {
  font-weight: 600;
  color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════════════════
   CONTACT / CTA
   ═══════════════════════════════════════════════════════════════════════ */
.contact { background: var(--navy-deep); color: var(--white); position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(201,162,39,0.15), transparent 60%);
  pointer-events: none;
}
.contact .wrap { position: relative; z-index: 1; }
.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; gap: 48px; } }

.contact h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 20px 0 24px;
}
.contact h2 .em { color: var(--gold-light); font-style: italic; font-weight: 400; }
.contact-lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  margin: 0 0 36px;
  max-width: 480px;
}
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.contact-details {
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 40px;
}
@media (max-width: 900px) { .contact-details { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 40px; } }

.detail-block { margin-bottom: 28px; }
.detail-block:last-child { margin-bottom: 0; }
.detail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.detail-value {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white);
  line-height: 1.5;
}
.detail-value a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.detail-value a:hover { border-bottom-color: var(--gold); }

/* Contact QR cards — WhatsApp + save-contact */
.contact-qr {
  position: relative;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}
.contact-qr-intro { max-width: 460px; }
.contact-qr-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  color: var(--white);
  margin: 14px 0 12px;
  letter-spacing: -0.01em;
}
.contact-qr-title .em { color: var(--gold-light); font-style: normal; }
.contact-qr-sub {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin: 0;
}
.qr-cards { display: flex; flex-wrap: wrap; gap: clamp(30px, 6vw, 60px); }
.qr-card {
  display: flex;
  flex-direction: column;
  width: clamp(160px, 40vw, 190px);
  border: 3px solid var(--qr-color);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.qr-card:hover, .qr-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  outline: none;
}
.qr-card--wa    { --qr-color: var(--gold); }
.qr-card--vcard { --qr-color: #12325F; }
.qr-card-body {
  display: block;
  padding: 16px;
  background: #fff;
}
.qr-card-body img { display: block; width: 100%; height: auto; }
.qr-card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  background: var(--qr-color);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.qr-card-foot svg { width: 20px; height: 20px; flex-shrink: 0; }
/* WhatsApp mark in its standard brand green, directly on the gold label */
.qr-card--wa .qr-card-foot svg { color: #25D366; }
.qr-card:hover .qr-card-foot { filter: brightness(1.08); }

@media (max-width: 820px) {
  .contact-qr { grid-template-columns: 1fr; gap: 32px; }
  .qr-cards { justify-content: flex-start; }
}
/* On phones, stack the codes so only one QR is under the camera at a time */
@media (max-width: 560px) {
  .qr-cards { flex-direction: column; align-items: center; gap: 40px; }
  .qr-card { width: min(74vw, 220px); }
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.footer {
  background: #08122A;
  color: rgba(255,255,255,0.6);
  padding: 40px 0 32px;
  font-size: 13px;
}
.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: flex; flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand span { font-weight: 600; letter-spacing: 0.1em; color: var(--white); font-size: 12px; }
.footer-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; }

/* ═══════════════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  transition: opacity 1.05s var(--ease), transform 1.05s var(--ease), filter 1.05s var(--ease);
  filter: blur(4px);
  will-change: opacity, transform, filter;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.22s; }
.reveal.delay-3 { transition-delay: 0.32s; }
.reveal.delay-4 { transition-delay: 0.42s; }
.reveal.delay-5 { transition-delay: 0.52s; }

/* Sideways-slide variant for timeline items */
.reveal-x {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal-x.in-view { opacity: 1; transform: translateX(0); }

::selection { background: var(--gold); color: var(--navy-deep); }

/* Focus */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════
   MULTI-PAGE ADDITIONS — page heroes, breadcrumbs, project gallery
   ═══════════════════════════════════════════════════════════════════════ */

/* Active nav link */
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { right: 0; }
.nav-mobile a.active { color: var(--gold-light); }

/* ── PHOTO PAGE HERO (sub-pages) ─────────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 56px;
}
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Transparent readability overlay — required over every hero image */
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(14,23,50,0.55) 0%, rgba(14,23,50,0.62) 45%, rgba(8,18,42,0.86) 100%),
    radial-gradient(ellipse 80% 60% at 75% 30%, rgba(201,162,39,0.12), transparent 60%);
}
.page-hero-overlay::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,162,39,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 80%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 80%);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  width: 100%;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 14px 0 18px;
  color: var(--white);
  max-width: 16ch;
}
.page-hero h1 .em { font-style: italic; font-weight: 400; color: var(--gold-light); }
.page-hero-lead {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin: 0;
}
.page-hero .hero-eyebrow { margin-bottom: 0; }

/* ── BREADCRUMBS ─────────────────────────────────────────────────────── */
.breadcrumb {
  position: relative;
  z-index: 3;
  background: rgba(8,18,42,0.65);
  border-bottom: 1px solid rgba(201,162,39,0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.breadcrumb-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 14px var(--side-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.breadcrumb-inner a {
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.breadcrumb-inner a:hover { color: var(--gold-light); }
.breadcrumb-sep { color: rgba(201,162,39,0.6); }
.breadcrumb-current {
  color: var(--gold-light);
  text-transform: uppercase;
}

/* ── PROJECTS PAGE — project cards & galleries ───────────────────────── */
.project-list {
  display: grid;
  gap: 72px;
  margin-top: 24px;
}
.project {
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.project-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-top: 3px solid var(--card-accent, var(--navy));
  padding-top: 26px;
}
.project-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.project-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin: 0;
  flex: 1 1 320px;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 0 0 22px;
}
.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border-radius: 2px;
  background: var(--white);
  border: 1px solid var(--hairline);
  color: var(--charcoal-2);
}
.project-tag.service {
  background: var(--card-accent, var(--navy));
  color: var(--white);
  border-color: transparent;
}
.project-tag svg { width: 13px; height: 13px; }
.project-blurb {
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal-2);
  max-width: 760px;
  margin: 0 0 28px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  background: var(--cream);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 -40px 40px -30px rgba(14,23,50,0.5);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { opacity: 1; }
/* Feature the first image of a gallery */
.gallery-item.feature { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (max-width: 560px) { .gallery-item.feature { grid-column: span 1; } }

/* ── FEATURED PROJECTS TEASER (home) ─────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  border: 1px solid var(--hairline);
}
.feature-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.feature-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,23,50,0.05) 30%, rgba(8,18,42,0.9) 100%);
}
.feature-card:hover img { transform: scale(1.06); }
.feature-card-body { position: relative; z-index: 1; padding: 24px 22px; }
.feature-card-service {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.feature-card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.15;
  margin: 0 0 4px;
}
.feature-card-loc { font-size: 13px; color: rgba(255,255,255,0.75); }

/* Section CTA row */
.section-cta { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--navy); }

/* ── LIGHTBOX ────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8,12,24,0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.lightbox.open { display: flex; opacity: 1; }

.lightbox-stage {
  position: relative;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-stage img {
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 150px);
  border-radius: 4px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  z-index: 3;
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: var(--white);
  font-size: 22px;
  display: grid; place-items: center;
  transition: border-color .2s, color .2s, transform .2s;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); transform: rotate(90deg); }

/* Prev / next carousel controls */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(14,23,50,0.55);
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  display: grid; place-items: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.lightbox-nav:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-nav:active { transform: translateY(-50%) scale(0.94); }
@media (max-width: 640px) {
  .lightbox-nav { width: 46px; height: 46px; font-size: 24px; }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
}

/* Caption bar: logo + text over a translucent, readable div */
.lightbox-caption {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  max-width: min(100%, 1100px);
  padding: 12px 20px;
  border-radius: 6px;
  background: rgba(8,18,42,0.72);
  border: 1px solid rgba(201,162,39,0.28);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6);
}
.lightbox-caption-logo {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}
.lightbox-caption-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--white);
  text-align: left;
}
.lightbox-caption-count {
  margin-left: auto;
  padding-left: 14px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  border-left: 1px solid rgba(255,255,255,0.18);
}
@media (max-width: 560px) {
  .lightbox-caption { gap: 10px; padding: 10px 14px; }
  .lightbox-caption-text { font-size: 12.5px; }
  .lightbox-caption-logo { width: 26px; height: 26px; }
}

/* Simple two-column intro used on interior pages */
.page-intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .page-intro { grid-template-columns: 1fr; gap: 36px; } }

/* ═══════════════════════════════════════════════════════════════════════
   REACH MAP (home) — four regions of PNG with interactive project pins
   ═══════════════════════════════════════════════════════════════════════ */
.reach { background: var(--navy-deep); color: var(--white); position: relative; overflow: hidden; }
.reach::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(201,162,39,0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 90%, rgba(45,110,62,0.10), transparent 60%);
  pointer-events: none;
}
.reach .wrap { position: relative; z-index: 1; }

.reach-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: stretch;
  margin-top: 20px;
}
@media (max-width: 960px) { .reach-grid { grid-template-columns: 1fr; gap: 28px; } }

.reach-map-wrap {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,162,39,0.22);
  border-radius: 6px;
  padding: 18px;
}
.reach-map {
  width: 100%;
  height: clamp(360px, 46vw, 520px);
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: #0E1732;
  z-index: 0;
}
/* Leaflet dark-theme tweaks */
.reach-map.leaflet-container { font-family: var(--font-body); background: #0E1732; }
.reach-map .leaflet-control-zoom a {
  background: rgba(14,23,50,0.92); color: #fff;
  border-color: rgba(201,162,39,0.35);
}
.reach-map .leaflet-control-zoom a:hover { background: rgba(201,162,39,0.9); color: #0E1732; }
.reach-map .leaflet-control-attribution {
  background: rgba(14,23,50,0.72); color: rgba(255,255,255,0.6);
  font-size: 10px; padding: 1px 6px;
}
.reach-map .leaflet-control-attribution a { color: rgba(201,162,39,0.9); }

/* Satellite map markers */
.reach-marker { background: none; border: none; }
.reach-marker-dot {
  position: absolute; top: 50%; left: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,0.55);
  transition: transform .18s var(--ease);
}
.reach-marker-pulse {
  position: absolute; top: 50%; left: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%;
  opacity: 0.5;
  transform-origin: center;
  animation: pin-pulse 2.6s var(--ease) infinite;
}
.reach-marker:hover .reach-marker-dot,
.reach-marker-active .reach-marker-dot { transform: scale(1.35); }
.reach-marker-active .reach-marker-dot { box-shadow: 0 0 0 4px rgba(255,255,255,0.35), 0 1px 5px rgba(0,0,0,0.55); }
@media (prefers-reduced-motion: reduce) { .reach-marker-pulse { animation: none; } }

/* Map popup (tooltip) — dark theme, whole card links to the project */
.leaflet-popup.reach-popup .leaflet-popup-content-wrapper {
  background: #101a3a;
  color: #fff;
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 6px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.5);
  padding: 0;
}
.leaflet-popup.reach-popup .leaflet-popup-content { margin: 0; }
.leaflet-popup.reach-popup .leaflet-popup-tip { background: #101a3a; border: 1px solid rgba(201,162,39,0.4); }
.leaflet-popup.reach-popup a.leaflet-popup-close-button { color: rgba(255,255,255,0.6); top: 6px; right: 6px; }
.leaflet-popup.reach-popup a.leaflet-popup-close-button:hover { color: #fff; }

.reach-pop {
  display: block;
  padding: 15px 16px 14px;
  text-decoration: none;
  color: #fff;
  transition: background .18s var(--ease);
  border-radius: 6px;
}
.reach-pop:hover { background: rgba(201,162,39,0.08); }
.reach-pop-region {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}
.reach-pop-dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,0.08); }
.reach-pop-name {
  display: block;
  font-family: var(--font-display, var(--font-body));
  font-size: 15px; font-weight: 600; line-height: 1.3;
  color: #fff;
  margin-bottom: 10px;
}
.reach-pop-service {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.06em;
  color: #fff;
  padding: 3px 9px; border-radius: 3px;
  margin-bottom: 8px;
}
.reach-pop-loc {
  display: flex; align-items: center;
  font-size: 12.5px; color: rgba(255,255,255,0.78);
  margin-bottom: 12px;
}
.reach-pop-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-light, #E4C662);
  font-weight: 500;
}
.reach-pop:hover .reach-pop-link .arrow { transform: translateX(3px); }
.reach-pop-link .arrow { transition: transform .18s var(--ease); }

.reach-legend-hint {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
}

/* Landmasses */
.reach-land {
  fill: #22346A;
  stroke: rgba(201,162,39,0.55);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.reach-ocean-line { fill: none; stroke: rgba(201,162,39,0.16); stroke-width: 1; }
.reach-region-label {
  fill: rgba(255,255,255,0.42);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Pins */
.reach-pin { cursor: pointer; outline: none; }
.reach-pin .pin-dot {
  fill: var(--pin, var(--gold));
  stroke: #fff;
  stroke-width: 2;
  transition: r .2s var(--ease);
}
.reach-pin .pin-halo {
  fill: var(--pin, var(--gold));
  opacity: 0.28;
  transform-origin: center;
  transform-box: fill-box;
  animation: pin-pulse 2.6s var(--ease) infinite;
}
@keyframes pin-pulse {
  0%   { transform: scale(0.6); opacity: 0.45; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
.reach-pin:hover .pin-dot,
.reach-pin:focus-visible .pin-dot { r: 9; }
.reach-pin:focus-visible .pin-ring { opacity: 1; }
.reach-pin .pin-ring {
  fill: none; stroke: #fff; stroke-width: 1.5; opacity: 0;
  transition: opacity .2s var(--ease);
}
.reach-pin.active .pin-dot { r: 9; }
.reach-pin.active .pin-ring { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .reach-pin .pin-halo { animation: none; } }

/* Legend under the map */
.reach-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.reach-legend-item {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.72);
}
.reach-legend-dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,0.08); }
.reach-legend-item b { color: var(--white); font-weight: 600; }

/* Detail panel */
.reach-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,162,39,0.22);
  border-radius: 6px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.reach-panel-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.reach-empty p {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin: 0 0 24px;
  max-width: 34ch;
}
.reach-empty-hint {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}
.reach-empty-hint svg { width: 16px; height: 16px; }

/* Card (populated on click) */
.reach-card { display: none; flex-direction: column; height: 100%; }
.reach-card.show { display: flex; }
.reach-card-region {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
}
.reach-card-region .dot { width: 10px; height: 10px; border-radius: 50%; }
.reach-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.reach-card-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.reach-card-meta .project-tag { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: rgba(255,255,255,0.85); }
.reach-card-meta .project-tag.service { color: #fff; border-color: transparent; }
.reach-card p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  margin: 0 0 26px;
}
.reach-card .btn { align-self: flex-start; margin-top: auto; }
.reach-card .btn-gold { background: var(--gold); color: var(--navy-deep); }
.reach-card .btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }

/* Focus-flash on a project when arriving from the reach map */
.project.focus-flash { animation: proj-flash 2.2s var(--ease) 1; }
@keyframes proj-flash {
  0%   { box-shadow: 0 0 0 0 rgba(201,162,39,0); }
  15%  { box-shadow: 0 0 0 6px rgba(201,162,39,0.35); background: rgba(201,162,39,0.06); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,39,0); background: transparent; }
}
