/* GS Group v3 ? Premium Design System */
/* Palette: Navy #1a1a2e, Accent #a3c1ad (light green), White #fff, Light Grey #f5f5f5 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a1a2e;
  --navy-light: #252542;
  --accent: #a3c1ad;
  --accent-dark: #8fb39a;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --warm-white: #faf9f7;
  --text-dark: #1a1a2e;
  --text-dim: #666666;
  --text-muted: rgba(255,255,255,0.6);
  --transition: 0.3s ease;
  --max-width: 1200px;
  --nav-height: 80px;
  --font: 'DM Sans', system-ui, sans-serif;
  --btn-slate: #4f5561;
  --btn-slate-hover: #5d6470;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 700; margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; }

.optronix-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ??? NAV ??? */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,26,46,0.02);
  transition: background 0.4s, padding 0.4s;
  isolation: isolate;
}

main { margin: 0; padding: 0; }

.site-header.scrolled {
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(12px);
}

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

.logo a {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img { height: 40px; width: auto; }

.logo-text,
.logo-fallback {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--accent); }
.nav-links a.is-current { color: var(--accent); }

.nav-item { position: relative; }

.nav-item .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  min-width: 220px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.7rem 1.25rem;
  color: var(--white);
  text-transform: none;
  font-size: 15px;
  font-weight: 500;
}

.dropdown a:hover { background: rgba(163, 193, 173, 0.2); color: var(--accent); }


.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); transition: var(--transition); }

/* ??? HERO ??? */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: clamp(8rem, 18vh, 14rem) 2rem 2rem;
  overflow: hidden;
  background: var(--navy);
}

.hero-video,
.hero .hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(26,26,46,0.75) 0%, rgba(26,26,46,0.5) 50%, rgba(26,26,46,0.85) 100%);
}

.hero-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163,193,173,0.18) 0%, transparent 65%);
  top: 5%; right: 10%;
  animation: heroPulse 8s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  opacity: 0;
  animation: heroFadeIn 1s ease 0.5s forwards;
  background: rgba(26, 26, 46, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-content {
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  animation: heroFadeIn 1s ease 0.75s forwards;
}

/* ??? Hero entrance animations ??? */
.hero-eyebrow {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero-h1-lead {
  display: inline;
  font-weight: 400;
}

.hero h1 em { font-style: italic; font-weight: 700; color: rgba(255,255,255,0.5); }

.hero-pop {
  display: inline-block;
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(to right, var(--accent) 50%, #ffffff 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: fillGreen 1.2s ease 1.5s forwards;
}

@keyframes fillGreen {
  to { background-position: 0 0; }
}

.hero-sub {
  margin-top: 28px;
  width: 100%;
  text-indent: 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--white);
}

.hero-tagline {
  margin-top: 12px;
  width: 100%;
  text-indent: 0;
  font-style: italic;
  font-weight: 600;
  color: var(--white);
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards 2.3s;
}

.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollDrop 2.5s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* Hero scroll-over: hero stays stationary, content scrolls over it (site-wide) */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
}
/* All content after hero stacks above it so backgrounds cover the hero */
.hero ~ .section,
.hero ~ .marquee-wrap,
.hero ~ .partner-logos,
.hero ~ .site-footer {
  position: relative;
  z-index: 1;
}

/* ??? PAGE HERO (inner pages) ? matches homepage style ??? */
.hero-page {
  min-height: 70vh;
  padding: clamp(8rem, 18vh, 14rem) 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero-page::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163,193,173,0.12) 0%, transparent 65%);
  top: -10%; right: -5%;
  animation: heroPulse 8s ease-in-out infinite;
}

.hero-page .hero-content-wrap {
  max-width: 1400px;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: rgba(26, 26, 46, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  justify-content: flex-start;
  align-items: flex-start;
}

.hero-page .hero-content {
  opacity: 1;
  animation: none;
  align-items: flex-start;
  text-align: left;
}

/* Hero with video background: same fade-in animations as homepage */
.hero-page:has(.hero-bg-media) .hero-content-wrap {
  opacity: 0;
  animation: heroFadeIn 1s ease 0.5s forwards;
}
.hero-page:has(.hero-bg-media) .hero-content {
  opacity: 0;
  animation: heroFadeIn 1s ease 0.75s forwards;
}

.hero-page h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.hero-page .hero-sub {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.7;
  margin-top: 28px;
}

/* Team page hero ? full size like homepage, background image, animates like homepage */
.hero-team .hero-content-wrap {
  animation: heroFadeIn 1s ease 0.5s forwards;
}
.hero-team .hero-content {
  animation: heroFadeIn 1s ease 0.75s forwards;
}
.hero-team .hero-content {
  align-items: flex-start;
  text-align: left;
}
.hero-team h1 {
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-team .hero-content-wrap {
  justify-content: flex-start;
  align-items: flex-start;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Join Our Network: no blur box on hero */
.hero-join-network .hero-content-wrap {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ??? TICKER ??? */
.ticker-wrap {
  background: var(--navy);
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  flex-shrink: 0;
}

.ticker-item span {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}

.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ??? SECTIONS ??? */
.section { padding: 6rem 0; }

.intro { padding-bottom: 3rem; }
.intro + .section { padding-top: 3.5rem; }

.intro .section-label,
.intro-label,
.intro + .section .section-label {
  font-size: 16px;
  margin-bottom: 1rem;
}

.intro + .section h2.intro-headline {
  margin-bottom: 2.5rem;
}

/* Green panel on left ? behind "What sets us apart" only */
.intro + .section {
  overflow: visible;
}

.intro + .section h2.intro-headline {
  position: relative;
  isolation: isolate;
  width: max-content;
  max-width: 100%;
}

.intro + .section h2.intro-headline::before {
  content: '';
  position: absolute;
  left: calc(50% - 50vw - 1rem);
  top: -0.75rem;
  bottom: -0.75rem;
  width: calc(50vw - 50% + 100% + 3rem);
  background: rgba(163, 193, 173, 0.35);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  z-index: -1;
}

.section-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }

.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-light { background: var(--off-white); }
.section-white { background: var(--white); }
.section-warm { background: var(--warm-white); }

/* ??? INTRO / PROPOSITION ??? */
.intro {
  overflow: visible;
}

.intro-inner {
  container-type: inline-size;
  container-name: intro;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr;
  gap: 1.5rem 4rem;
  align-items: stretch;
}

.intro-label {
  grid-column: 1 / -1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.intro-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }

.intro-headline,
.intro h2 {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  text-align: left;
  padding: 0.75rem 0;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-bottom: 0;
}

.intro-headline em,
.intro h2 em { font-style: normal; font-weight: 700; }

.intro-tech-pop {
  display: inline-block;
  background: linear-gradient(to right, var(--accent) 50%, #ffffff 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: none;
}

.intro-tech-pop.tech-pop-animated {
  animation: fillGreen 1.2s ease forwards;
}

/* GS scroll-triggered blue reveal (pillars section) */
.intro-gs-pop {
  display: inline-block;
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(to right, var(--navy) 50%, #ffffff 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: none;
}

.intro-gs-pop.gs-pop-animated {
  animation: fillGreen 1.2s ease forwards;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  margin-top: 0;
  min-height: 0;
}

.intro-body {
  position: relative;
  margin-top: 0;
  padding: 1rem 0;
  min-height: 0;
  isolation: isolate;
}

.intro-body::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2.5rem;
  width: calc(50vw + 2.5rem);
  background: rgba(163, 193, 173, 0.35);
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 28px);
  z-index: -1;
}

.intro-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.03);
  padding: 1.5rem 1.75rem;
  min-height: 0;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  transition: background 0.3s, transform 0.4s ease, box-shadow 0.4s ease;
}

.intro-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.2s ease;
}

.intro-stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.2s ease 0s;
}

.intro-stat-card:hover::before {
  height: 100%;
}

.intro-stat-card:hover::after {
  width: 100%;
  transition-delay: 0.2s;
}

.intro-stat-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px rgba(163,193,173,0.3), 0 16px 32px rgba(0,0,0,0.25);
}

/* Global stat card ? hover popup; wrap must match sibling cards exactly */
.stat-card-global-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}
.stat-card-global-wrap .intro-stat-card {
  width: 100%;
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
.stat-card-global {
  cursor: help;
}
.stat-card-global .stat-card-flags {
  position: relative;
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(9, 14px);
  justify-content: flex-start;
  gap: 2px 4px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}
.stat-card-flags img {
  display: block;
  width: 14px;
  height: 10px;
  object-fit: cover;
  border-radius: 1px;
}

/* Mobile: smaller flags, hide tooltip, use popup overlay instead */
@media (max-width: 768px) {
  .stat-card-flags img {
    width: 10px;
    height: 8px;
  }
  .stat-card-flags {
    gap: 2px 3px;
  }
  .stat-card-global-wrap .stat-popup {
    display: none !important;
  }
  .stat-card-global-wrap {
    cursor: pointer;
  }
  .stat-card-global-wrap .intro-stat-card:hover {
    transform: none;
  }
}

.stat-card-global-wrap .stat-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 20;
}
.stat-card-global-wrap:hover .stat-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.stat-popup-arrow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: none;
  border-left: none;
}
.stat-popup-content {
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 14px 18px;
  border-radius: 4px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 380px;
}
.stat-popup-intro {
  margin: 0 0 10px 0;
  line-height: 1.4;
}
.stat-popup-countries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 28px;
}
.stat-popup-country {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
  line-height: 1.3;
  white-space: nowrap;
}
.stat-popup-country img {
  flex-shrink: 0;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 1px;
}
.stat-popup-beyond {
  padding: 8px 0 0;
  margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-style: italic;
  color: rgba(255,255,255,0.8);
}
/* Homepage (section-dark): green background, navy text */
.section-dark .stat-popup-content {
  background: var(--accent);
  color: var(--navy);
  border-color: rgba(26,26,46,0.15);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}
.section-dark .stat-popup-beyond {
  border-top-color: rgba(26,26,46,0.2);
  color: rgba(26,26,46,0.85);
}
.section-dark .stat-popup-arrow {
  background: var(--accent);
  border-color: rgba(26,26,46,0.1);
}
/* Meet The Team (section-white): navy background, white text ? keep as is */
.section-white .stat-popup-content {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.intro-stat-card .stat-main {
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.intro-stat-card .stat-num {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.intro-stat-card .stat-label {
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

.intro-stat-card .stat-num,
.intro-stat-card .stat-label {
  position: relative;
  z-index: 0;
}

.stat-num {
  font-family: var(--font);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}

.stat-label { font-size: 1rem; font-weight: 600; color: var(--text-dim); }
.section-dark .stat-label { color: rgba(255,255,255,0.6); }

/* Intro stat cards on light background */
.section-white .intro-stat-card {
  background: var(--off-white);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.section-white .intro-stat-card:hover {
  background: #eee;
  box-shadow: inset 0 0 0 1px rgba(163,193,173,0.4), 0 12px 32px rgba(0,0,0,0.08);
}
.section-white .intro-stat-card .stat-label { color: var(--text-dim); }
.section-white .intro-label { color: var(--accent); }
.section-white .intro-headline { color: var(--navy); }
.section-white .intro-body p { color: var(--text-dark); }

.intro-body p { margin-bottom: 1.25rem; line-height: 1.75; font-size: 1.05rem; font-weight: 500; }
.intro-body p:last-child { margin-bottom: 0; }

/* ??? PILLARS ??? */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pillar {
  background: rgba(255,255,255,0.03);
  padding: 2rem;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  transition: background 0.3s, transform 0.4s ease, box-shadow 0.4s ease;
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.2s ease;
}

.pillar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.2s ease 0s;
}

.pillar:hover::before {
  height: 100%;
}

.pillar:hover::after {
  width: 100%;
  transition-delay: 0.2s;
}

.pillar:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-8px);
  box-shadow: inset 0 0 0 1px rgba(163,193,173,0.3), 0 24px 48px rgba(0,0,0,0.3);
}

.pillar-num {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 1rem;
}

.pillar h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; }
.pillar p { font-size: 1.05rem; font-weight: 500; line-height: 1.65; color: rgba(255,255,255,0.85); }

/* ??? MARQUEE ??? */
.marquee-wrap {
  background: var(--navy);
  padding: 24px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.marquee-track { display: flex; white-space: nowrap; animation: marquee 25s linear infinite; }
.marquee-item { padding: 0 2rem; flex-shrink: 0; font-size: 16px; font-weight: 600; letter-spacing: 0.05em; color: rgba(255,255,255,0.4); }
.marquee-item em { font-style: normal; color: var(--accent); opacity: 0.7; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ??? SERVICES ??? */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.2s ease;
  z-index: 1;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.2s ease 0s;
  z-index: 1;
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover::after {
  width: 100%;
  transition-delay: 0.2s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}

.service-card:hover .service-card-media video {
  transform: scale(1.08);
}

.service-card-media {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.service-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 46, 0.4) 100%);
  pointer-events: none;
}

.service-card-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(163, 193, 173, 0.08) 0%, transparent 50%, rgba(26, 26, 46, 0.15) 100%);
  animation: serviceCardShimmer 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes serviceCardShimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.service-card img { width: 100%; height: 180px; object-fit: cover; }
.service-card .card-body { padding: 1.5rem; }
.service-card .card-benefit { font-size: 0.9rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.service-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { font-size: 1.05rem; font-weight: 500; line-height: 1.6; color: var(--text-dim); }

/* ??? SECTORS ??? */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.sector-card {
  padding: 1.25rem;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  background: var(--white);
  box-shadow: inset 0 0 0 1px #eee;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.2s ease;
}

.sector-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.2s ease 0s;
}

.sector-card:hover::before {
  height: 100%;
}

.sector-card:hover::after {
  width: 100%;
  transition-delay: 0.2s;
}

.sector-card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px var(--accent), 0 12px 32px rgba(163,193,173,0.2);
}
.sector-card i { font-size: 1.5rem; color: var(--accent); margin-bottom: 0.5rem; display: block; }

/* ??? STATS ??? */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  text-align: center;
}

.stats-grid .stat-num { font-size: 3rem; font-weight: 700; }
.stats-grid .stat-label { font-size: 1rem; font-weight: 600; }

/* By the numbers: same card/surround/animations as intro stats */
.track-record-stats > * {
  display: flex;
  min-height: 0;
}
.track-record-stats .intro-stat-card,
.track-record-stats .stat-card-global-wrap {
  flex: 1;
  min-height: 0;
}

/* ??? ABOUT: TIMELINE & SERVICES LIST ??? */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
}
.timeline-item {
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.timeline-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(163,193,173,0.4);
  transform: translateY(-4px);
}
.timeline-year {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.timeline-desc {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem 2rem;
}
.services-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}
.services-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ??? TESTIMONIAL ??? */
.testimonial-block {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-block .quote-icon { font-size: 3rem; color: var(--accent); opacity: 0.4; margin-bottom: 1rem; }
.testimonial-block blockquote { font-size: 1.4rem; font-weight: 500; line-height: 1.7; font-style: italic; color: var(--text-dim); }
.testimonial-block .attribution { margin-top: 1.5rem; font-weight: 700; font-size: 1.05rem; }

/* ??? CTA CARDS ??? */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cta-card {
  background: var(--navy);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  color: var(--white);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.2s ease;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.2s ease 0s;
}

.cta-card:hover::before {
  height: 100%;
}

.cta-card:hover::after {
  width: 100%;
  transition-delay: 0.2s;
}

.cta-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(26,26,46,0.4);
}
.cta-card h3 { color: var(--white); font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; }
.cta-card p { font-size: 1.05rem; font-weight: 500; color: rgba(255,255,255,0.9); margin-bottom: 1rem; }

/* ??? FORM ??? */
.form-inline {
  max-width: 500px;
  margin: 0 auto;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 700; font-size: 1rem; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group input[type="file"] { padding: 0.75rem; background: var(--light); border: 1px solid var(--border); border-radius: 4px; }

.form-stacked { max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-stacked .form-group { margin-bottom: 1.25rem; }
.form-stacked button { margin-top: 0.5rem; }
.hidden { position: absolute; left: -9999px; }

/* ??? PARTNER LOGOS ??? */
.partner-logos { padding: 2.5rem 0; background: var(--white); border-top: 1px solid #eee; }
.logos-scroll { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.logos-scroll img { height: 80px; width: auto; max-width: 220px; object-fit: contain; opacity: 0.6; }
.logos-scroll img:hover { opacity: 1; }

/* ??? FOOTER ??? */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-logo img {
  height: 40px;
  width: auto;
  opacity: 0.95;
}
.footer-logo:hover img { opacity: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 2.5rem;
}

.footer-column h4 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-column a { color: rgba(255,255,255,0.85); }
.footer-column a:hover { color: var(--accent); }
.footer-column p { margin: 0.4rem 0; font-size: 1.05rem; font-weight: 500; }
.footer-column i { width: 20px; margin-right: 0.5rem; color: var(--accent); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.footer-nav-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.footer-nav-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--accent);
  color: var(--white);
}
.footer-nav-btn.is-current {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(163,193,173,0.15);
}
.footer-nav-btn.is-current:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(163,193,173,0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.footer-bottom .footer-logo { margin-bottom: 0; justify-self: center; }
.footer-bottom .footer-bottom-text { justify-self: center; margin: 0; }
@media (max-width: 600px) {
  .footer-bottom { grid-template-columns: 1fr; }
}

/* ??? REVEAL ANIMATIONS ??? */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ??? MOBILE NAV ??? */
.mobile-nav {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: var(--navy);
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 99;
  overflow-y: auto;
}

.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 1rem; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav a.is-current { color: var(--accent); }
.mobile-nav a.btn-white,
.mobile-nav a.nav-cta { color: var(--navy); }

/* ??? RESPONSIVE ??? */
@media (max-width: 1200px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .site-header .nav-cta { display: none; }
  .hamburger { display: flex; }
  .intro-inner { grid-template-columns: 1fr; gap: 2rem; grid-template-rows: auto; }
  .intro-headline,
  .intro h2 { white-space: normal; }
  .cta-grid { grid-template-columns: 1fr; }
  /* Hide green backgrounds on tablet/mobile */
  .intro-body::before { display: none; }
  .intro + .section h2.intro-headline::before { display: none; }
}

@media (max-width: 768px) {
  .hero { padding: calc(var(--nav-height) + 2rem) 1rem 60px; min-height: 70vh; }
  .hero-content-wrap { padding: 1.5rem; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .section { padding: 3rem 0; }
  .intro { padding-bottom: 2rem; }
  .intro + .section { padding-top: 2.5rem; }
  .container { padding: 0 1.25rem; }
  .pillars { grid-template-columns: 1fr; gap: 1.25rem; }
  .services-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* Intro headlines */
  .intro-headline,
  .intro h2 { font-size: clamp(1.5rem, 5vw, 2.25rem); padding: 0.5rem 0; text-align: center; }
  .intro-label { justify-content: center; }
  .intro + .section h2.intro-headline { width: 100%; text-align: center; }
  /* Stat cards ? allow wrap, reduce size */
  .intro-stats { grid-template-rows: auto auto; gap: 0.75rem; }
  .intro-stat-card { padding: 1.25rem 1rem; }
  .intro-stat-card .stat-main { font-size: 2rem; white-space: normal; }
  .intro-stat-card .stat-label { font-size: 0.85rem; white-space: normal; }
  /* Simplify clip-paths on mobile for cleaner look, add subtle radius */
  .intro-stat-card,
  .pillar,
  .service-card,
  .sector-card,
  .timeline-item {
    clip-path: none;
    border-radius: 8px;
  }
  .pillar, .service-card, .sector-card { padding: 1.5rem; }
  .timeline { grid-template-columns: 1fr; gap: 1.25rem; }
  .timeline-item:hover { transform: translateY(-2px); }
  .services-list { grid-template-columns: 1fr; }
  .cta-grid .pillar { padding: 2rem 1.5rem; }
  /* Buttons full width */
  .hero-actions { flex-direction: column; gap: 0.75rem; }
  .hero-actions a { width: 100%; justify-content: center; }
  /* Reduce hover lift on touch devices */
  .intro-stat-card:hover,
  .pillar:hover,
  .service-card:hover,
  .sector-card:hover { transform: translateY(-2px); }
  .service-card:hover .service-card-media video { transform: none; }
  /* Marquee smaller */
  .marquee-item { padding: 0 1.25rem; font-size: 14px; }
  /* Full-width CTA in intro */
  .intro-body .btn-white { width: 100%; justify-content: center; }
  /* GS solid green on mobile, no animation */
  .intro-gs-pop {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: var(--accent) !important;
    color: var(--accent) !important;
    animation: none !important;
  }
}

@media (max-width: 480px) {
  .section { padding: 2.5rem 0; }
  .container { padding: 0 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr; }
  .intro-stat-card .stat-main { font-size: 1.75rem; }
  .intro-stat-card .stat-label { font-size: 0.8rem; }
  /* Smaller nav */
  :root { --nav-height: 64px; }
  .logo img { height: 32px; }
}

/* ??? TEAM GRID ??? */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--navy-light);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.2s ease;
}

.team-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.2s ease 0s;
}

.team-card:hover::before { height: 100%; }

.team-card:hover::after {
  width: 100%;
  transition-delay: 0.2s;
}

.team-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }

.team-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
  background: rgba(163, 193, 173, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo i {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.8;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--white); }
.team-card p { font-size: 1rem; font-weight: 500; line-height: 1.6; color: rgba(255,255,255,0.85); }
.team-card .team-linkedin { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.95rem; color: var(--accent); }
.team-card .team-linkedin:hover { color: var(--white); }
.team-card .team-linkedin i { font-size: 1.1rem; }

/* Team cards on light background (section-white) */
.section-white .team-card { background: var(--off-white); }
.section-white .team-card h3 { color: var(--navy); }
.section-white .team-card p { color: var(--text-dim); }
.section-white .team-card .team-linkedin { color: var(--accent); }
.section-white .team-card .team-linkedin:hover { color: var(--navy); }

/* Expandable profile card */
.team-card-expandable { cursor: pointer; }
.team-card-expandable .team-linkedin { pointer-events: auto; }

/* Profile expand overlay */
.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
  pointer-events: none;
}
.profile-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profile-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.4);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1), -webkit-backdrop-filter 0.5s, background 0.5s;
}
.profile-overlay.is-open .profile-overlay-backdrop {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(26, 26, 46, 0.5);
}

.profile-expanded {
  position: relative;
  z-index: 1;
  max-width: 780px;
  width: 100%;
  background: var(--navy-light);
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}
.profile-overlay.is-open .profile-expanded {
  transform: scale(1);
  opacity: 1;
}

.profile-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  z-index: 2;
}
.profile-close::after {
  display: none;
}

.profile-expanded-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2.5rem;
  align-items: start;
}

.profile-expanded-photo {
  width: 200px;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.profile-expanded-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-expanded-content h3 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.profile-expanded-content .profile-role {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.profile-expanded-content .profile-bio {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}
.profile-overlay.is-open .profile-expanded-content .profile-bio {
  opacity: 1;
  transform: translateY(0);
}

/* Global card popup overlay (mobile) ? similar to profile overlay */
.global-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  pointer-events: none;
}
.global-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.global-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.global-popup-content {
  position: relative;
  z-index: 1;
  max-width: 340px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}
.global-popup.is-open .global-popup-content {
  transform: scale(1);
  opacity: 1;
}
.global-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  z-index: 2;
}
.global-popup-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.global-popup-intro {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
}
.global-popup-countries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 1.25rem;
}
.global-popup-country {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  padding: 3px 0;
  white-space: nowrap;
}
.global-popup-country img {
  width: 18px;
  height: 14px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
}
.global-popup-beyond {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-style: italic;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}
/* Hide global popup on desktop ? only used on mobile */
@media (min-width: 769px) {
  .global-popup { display: none !important; }
}

.profile-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: center;
}
.profile-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 600px) {
  .profile-expanded-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .profile-expanded-photo {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    border-radius: 50%;
  }
  .profile-expanded-content .profile-bio { text-align: left; }
  .profile-actions { flex-wrap: wrap; justify-content: center; }
}

/* ??? TESTIMONIALS GRID ??? */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--off-white);
  padding: 2rem;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.2s ease;
}

.testimonial-card:hover::before { height: 100%; }
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(163,193,173,0.2); }

.testimonial-card .quote-icon { font-size: 2rem; color: var(--accent); opacity: 0.4; margin-bottom: 1rem; } 
.testimonial-card blockquote { font-size: 1.15rem; font-weight: 500; line-height: 1.7; font-style: italic; color: var(--text-dim); margin-bottom: 1rem; }
.testimonial-card .attribution { font-weight: 700; font-size: 1rem; color: var(--text-dark); }

/* ??? FORM SELECT ??? */
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  background: var(--white);
}

.form-group select:focus { outline: none; border-color: var(--accent); }

/* ??? RESOURCES GRID ??? */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.resource-card {
  background: var(--off-white);
  padding: 2rem;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.2s ease;
}

.resource-card:hover::before { height: 100%; }
.resource-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(163,193,173,0.2); }

.resource-meta { display: flex; gap: 1rem; margin-bottom: 1rem; font-size: 0.9rem; }
.resource-tag { color: var(--accent); font-weight: 700; }
.resource-date { color: var(--text-dim); }
.resource-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.4; }
.resource-card p { font-size: 1rem; line-height: 1.65; color: var(--text-dim); margin-bottom: 1rem; }
.resource-link { font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 0.5rem; }
.resource-link:hover { color: var(--navy); }
.resource-link i { font-size: 0.85rem; transition: transform 0.2s; }
.resource-card:hover .resource-link i { transform: translateX(4px); }

/* ??? CONTACT LAYOUT ??? */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-wrap .form-stacked { max-width: none; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ??? LEGAL / PRIVACY ??? */
.legal-content { max-width: 720px; }
.legal-updated { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 2rem; }
.legal-block { margin-bottom: 2.5rem; }
.legal-block h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem; color: var(--navy); }
.legal-block p, .legal-block li { font-size: 1.05rem; line-height: 1.75; color: var(--text-dim); }
.legal-block ul { padding-left: 1.5rem; margin: 0.5rem 0; }
.legal-block a { color: var(--accent); }
.legal-block a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card, .testimonial-card, .resource-card { clip-path: none; border-radius: 8px; }
  .testimonials-grid, .resources-grid { grid-template-columns: 1fr; }
  .team-card:hover, .testimonial-card:hover, .resource-card:hover { transform: translateY(-2px); }
}

@media (max-width: 480px) {
  .team-photo { width: 100px; height: 100px; }
  .team-photo i { font-size: 2.5rem; }
}
