:root {
  --primary: #0C1559;
  --primary-deep: #070E3D;
  --secondary: #06D6A0;
  --secondary-deep: #04B98A;
  --ink: #0C1559;
  --body: #4A5275;
  --muted: #7A819B;
  --line: #E3E6F1;
  --soft: #F4F6FB;
  --white: #FFFFFF;
  --canvas: 1920px;
  --gutter: 150px;
  --content: 1620px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 14px rgba(12, 21, 89, 0.06);
  --shadow-md: 0 10px 30px rgba(12, 21, 89, 0.10);
  --shadow-lg: 0 20px 50px rgba(12, 21, 89, 0.18);
  --font: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* scroll-padding-top keeps native (fallback / mobile) anchor jumps clear of the
   fixed header. No CSS `scroll-behavior: smooth` — GSAP ScrollSmoother handles
   smooth scrolling on desktop, and nav.js handles anchor scrolling; a CSS
   smooth-scroll would fight both. */
html { scroll-padding-top: 96px; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

.bleed { width: 100%; max-width: var(--canvas); margin: 0 auto; }

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: 56px; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 40px; line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.3; }
h4 { font-size: 18px; line-height: 1.4; }
h5 { font-size: 16px; line-height: 1.45; }
h6 { font-size: 14px; line-height: 1.5; }

p { margin: 0 0 14px; }

/* ─────────────  BUTTONS  ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--secondary);
  color: var(--primary);
}
.btn-primary:hover { background: var(--secondary-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: var(--secondary); color: var(--secondary); }
.btn-arrow::after {
  content: "→";
  font-size: 16px;
  margin-left: 2px;
}

/* ─────────────  HEADER / NAV  ───────────── */
.site-header {
  background: var(--white);
  color: var(--primary);
  border-bottom: 1px solid var(--line);
  /* Fixed (not sticky): GSAP ScrollSmoother transforms #smooth-content, which
     breaks position:sticky. The header lives OUTSIDE #smooth-wrapper and is
     pinned to the viewport. Works the same with native scroll (fallback). */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

/* ScrollSmoother scaffold. The fixed header overlaps the top of the content,
   so offset the content by the header height. --header-h is measured + kept
   in sync by mindpool-scroll.js; the 84px fallback keeps content clear with
   no JS / before JS runs / if GSAP fails to load. */
#smooth-wrapper { width: 100%; }
#smooth-content { padding-top: var(--header-h, 84px); }
/* Keep the sticky header below the WordPress admin bar when logged in. */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media screen and (max-width: 600px) {
  .admin-bar .site-header { top: 0; } /* WP hides the admin bar < 600px */
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.nav-logo { width: 200px; }
.nav-logo svg { width: 100%; height: auto; }
.nav-links {
  display: flex;
  gap: 42px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  align-items: center;
}
.nav-links li { position: relative; }
.nav-links a { color: var(--primary); transition: color .15s; display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; }
.nav-links a:hover { color: var(--secondary); }
.nav-links > .active > a,
.nav-links .active > a { color: var(--primary); font-weight: 500; }
/* Active underline only on top-level items — never under submenu rows. */
.nav-links > .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}
.nav-links .has-caret::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px,-2px);
  margin-left: 4px;
}

/* ─────────────  NAV DROPDOWN (submenu)  ───────────── */
.nav-links .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(12, 21, 89, 0.12);
  z-index: 50;
}
.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}
/* Bridge the gap so the menu doesn't snap shut while the cursor crosses over. */
.nav-links .menu-item-has-children:hover > a::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 12px;
}
.nav-links .sub-menu li { margin: 0; }
.nav-links .sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
}
.nav-links .sub-menu a:hover { color: var(--secondary); background: var(--soft); }
.nav-links .sub-menu .active > a { color: var(--secondary); }
.nav-cta {
  background: var(--primary);
  color: var(--white);
  padding: 14px 26px;
  font-size: 15px;
  border-radius: 4px;
}
.nav-cta:hover { background: var(--primary-deep); }

/* ─────────────  HERO  ───────────── */
.hero {
  background: var(--primary);
  color: var(--white);
  /* 520px — shared inner-page banner height (matches .pg-hero / .sv-hero). */
  height: 520px;
  padding: 0;
  /* No margin-bottom — the next section's padding-top alone defines the
     hero→content gap (scales 120 / 96 / 72 / 60 / 40 with viewport). */
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero .container { width: var(--canvas); }
.hero::before {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  right: -120px; top: -180px;
  background: radial-gradient(circle, rgba(6,214,160,0.12), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(6,214,160,0.15);
  color: var(--secondary);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  color: var(--white);
  font-weight: 300;
  /* Match the inner-page hero heading on Careers/Contact (.pg-hero-copy h1). */
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}
.hero h1 span { color: var(--secondary); }
.hero p {
  color: rgba(255,255,255,0.80);
  font-size: 18px;
  font-weight: 300;
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; }
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-banner-img {
  width: 100%;
  max-width: 544px;
  height: auto;
  display: block;
  transform-origin: center;
  animation:
    heroBannerZoomIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both,
    heroBannerZoom 7s ease-in-out 1.9s infinite;
  will-change: transform, opacity;
}
@keyframes heroBannerZoomIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes heroBannerZoom {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-banner-img { animation: none !important; opacity: 1; transform: none; }
}
/* Inner-page hero banner photos (Service / Industry-IT / Contact / Industries /
   Careers) get a gentle zoom-out fade-in on load, so every inner banner has an
   entrance like About's .hero-banner-img above. CSS (not the scroll-triggered
   JS reveal) because these are above the fold — a ScrollTrigger 'enter' never
   fires for them. Targets the <img> only (no layout transform there), and the
   start scale is >1 (zoom OUT to fit) so a cover/masked photo never shows a gap. */
@keyframes heroPhotoIn {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}
.sv-hero-photo img,
.pg-hero-visual--photo img {
  animation: heroPhotoIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
@media (prefers-reduced-motion: reduce) {
  .sv-hero-photo img,
  .pg-hero-visual--photo img { animation: none !important; opacity: 1; transform: none; }
}

/* Inner-page hero CONTENT entrance — staggered fade-up on load. This is the fix
   for heroes whose reveal never fired: About's .hero text uses an
   IntersectionObserver `.in-view` class that doesn't trigger for above-the-fold
   content under ScrollSmoother (so the title was stuck at opacity:0), and the
   pg-/sv-/cd- heroes had no entrance at all. CSS-on-load is reliable for
   above-the-fold; `both` fill overrides the stuck opacity:0 base. Easing matches
   the site's reveal (cubic-bezier 0.22,1,0.36,1). */
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow, .pg-hero-eyebrow, .sv-hero-eyebrow, .cd-hero-eyebrow, .ct-hero-eyebrow,
.hero h1, .pg-hero-copy h1, .sv-hero-copy h1, .cd-hero-title, .ct-hero-title,
.hero-sub, .pg-hero-sub, .sv-hero-sub, .ct-hero-sub, .cd-hero-meta,
.hero-actions, .pg-hero-cta, .sv-hero-cta, .cd-hero-cta {
  animation: heroContentIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-eyebrow, .pg-hero-eyebrow, .sv-hero-eyebrow, .cd-hero-eyebrow, .ct-hero-eyebrow { animation-delay: 0.05s; }
.hero h1, .pg-hero-copy h1, .sv-hero-copy h1, .cd-hero-title, .ct-hero-title { animation-delay: 0.15s; }
.hero-sub, .pg-hero-sub, .sv-hero-sub, .ct-hero-sub, .cd-hero-meta { animation-delay: 0.30s; }
.hero-actions, .pg-hero-cta, .sv-hero-cta, .cd-hero-cta { animation-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .pg-hero-eyebrow, .sv-hero-eyebrow, .cd-hero-eyebrow, .ct-hero-eyebrow,
  .hero h1, .pg-hero-copy h1, .sv-hero-copy h1, .cd-hero-title, .ct-hero-title,
  .hero-sub, .pg-hero-sub, .sv-hero-sub, .ct-hero-sub, .cd-hero-meta,
  .hero-actions, .pg-hero-cta, .sv-hero-cta, .cd-hero-cta { animation: none !important; opacity: 1; transform: none; }
}

/* Service detail: the overview is the first content section and sits above the
   fold, so its JS scroll-reveal never fires (a ScrollTrigger 'enter' doesn't
   happen for already-visible content) — leaving .sv-overview-text stuck at the
   GSAP from-state (opacity:0). A CSS on-load fade-up reliably plays here and,
   sitting above inline styles in the cascade, overrides that stuck inline state.
   Below-the-fold service sections keep their normal scroll reveal. */
.sv-overview-text,
.sv-overview-image {
  animation: heroContentIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
@media (prefers-reduced-motion: reduce) {
  .sv-overview-text,
  .sv-overview-image { animation: none !important; opacity: 1; transform: none; }
}

/* About: .who-text (heading + certifications) is the second section and sits at
   the fold, so its JS scroll-reveal can fail to fire (the ScrollTrigger 'enter'
   doesn't happen for content already near the top, and the on-load catch-up may
   miss it) — leaving .who-text stuck at the GSAP from-state (opacity:0), which
   showed as a tall blank gap above the story text. A CSS on-load fade-up plays
   reliably and, sitting above inline styles in the cascade, overrides that stuck
   inline state. (.who-text is excluded from the GSAP reveal list for this reason.) */
.who-text {
  animation: heroContentIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
@media (prefers-reduced-motion: reduce) {
  .who-text { animation: none !important; opacity: 1; transform: none; }
}

/* Home: .lp-about is the second section and sits at the fold. Its lead paragraph
   and image are the first content under the hero, so their JS scroll-reveals can
   fail to fire (no ScrollTrigger 'enter' for content already in view, and the
   load catch-up may miss them) — leaving them stuck at opacity:0, which showed as
   a tall blank gap above "Our Mission" (most visible on mobile, where .lp-about-text
   is display:contents so the lead/image become the real boxes). CSS on-load reveals
   play reliably and override the stuck inline state. (Both are excluded from the
   GSAP reveal/scaleIn lists for this reason.) */
.lp-about-lead   { animation: heroContentIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
.lp-about-visual { animation: heroPhotoIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both; }
@media (prefers-reduced-motion: reduce) {
  .lp-about-lead,
  .lp-about-visual { animation: none !important; opacity: 1; transform: none; }
}

/* Contact: .ct-form-card + .ct-side-card are the first content after the hero
   (the message form + sidebar), sitting at the fold — same reveal trap. Revealed
   via CSS on-load instead of the GSAP scroll-reveal (excluded from the reveal
   list) so the form can never be left invisible. */
.ct-form-card { animation: heroContentIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
.ct-side-card { animation: heroContentIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both; }

/* Careers: the open-roles section head is the first content after the hero, but
   it uses the shared .sec-head class (still GSAP-revealed everywhere else). Rather
   than touch that sitewide reveal, we add a SCOPED on-load reveal for just this
   one head — CSS animations sit above GSAP's inline opacity in the cascade, so
   this head can't get stuck at the fold. */
.cr-roles .sec-head { animation: heroContentIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }

@media (prefers-reduced-motion: reduce) {
  .ct-form-card, .ct-side-card,
  .cr-roles .sec-head { animation: none !important; opacity: 1; transform: none; }
}

/* Home (.lp-hero) banner entrance — the landing hero had no entrance animation,
   so it just popped in. Title + CTA fade up (staggered) and the banner image
   zooms in, on load (above the fold → CSS, not the scroll reveal). Same keyframes
   and easing as the inner-page hero entrances for a consistent, smooth feel. */
.lp-hero-text h1   { animation: heroContentIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
.lp-hero-text .btn { animation: heroContentIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both; }
.lp-hero-visual img { animation: heroPhotoIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
@media (prefers-reduced-motion: reduce) {
  .lp-hero-text h1, .lp-hero-text .btn, .lp-hero-visual img { animation: none !important; opacity: 1; transform: none; }
}
.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 22px;
  font-weight: 300;
  margin: 0;
  line-height: 1.4;
}
.hero-sub:first-of-type { margin-top: 24px; }
.hero-sub + .hero-sub { margin-top: 6px; }

/* Remove the hero sub-content (lead text under the title) on inner-page heroes
   site-wide. Home (.lp-hero-sub) is intentionally NOT included. */
.hero-sub,
.pg-hero-sub,
.sv-hero-sub,
.ct-hero-sub {
  display: none;
}

/* ─────────────  SECTION HEADERS  ───────────── */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-head .eyebrow {
  display: inline-block;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sec-head h2 { margin-bottom: 14px; }
.sec-head p { color: var(--body); font-size: 17px; font-weight: 300; }

section { padding: 120px 0; }  /* 120 top + 120 bottom = 240px gap between adjacent sections. Scales down at narrower breakpoints — see responsive.css. */

/* ─────────────  WHO WE ARE  ───────────── */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.who-text h2 { margin-bottom: 36px; font-weight: 500; max-width: 620px; }
.who-content p { font-size: 16.5px; color: var(--body); margin-bottom: 18px; }

/* certifications row inside the overview left column */
.overview-certs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 620px;
}
.oc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.oc-item:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.oc-badge {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(12,21,89,0.06), rgba(6,214,160,0.12));
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.oc-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 3px;
}
.oc-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ─────────────  MISSION & VISION  ───────────── */
.mv {
  background: #F1F5F8;
  margin: 0 150px;
  padding-left: 60px;
  padding-right: 60px;
  border-radius: 18px;
}
.mv .container {
  width: 100%;
  padding: 0;
}
.mv-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 80px;
  align-items: center;
}
.mv-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.mv-icon {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6,214,160,0.18), rgba(6,214,160,0.06));
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(6,214,160,0.35);
  animation: mv-icon-pulse 2.8s ease-in-out infinite;
  position: relative;
}
.mv-icon svg {
  animation: mv-icon-tilt 4.2s ease-in-out infinite;
}
.mv-item:nth-child(3) .mv-icon { animation-delay: 1.4s; }
.mv-item:nth-child(3) .mv-icon svg { animation-delay: 2.1s; }
.mv-item:hover .mv-icon { animation-duration: 1.4s; }

@keyframes mv-icon-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(6,214,160,0.35), 0 0 0 0 rgba(6,214,160,0);
    border-color: rgba(6,214,160,0.35);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 12px rgba(6,214,160,0), 0 0 0 4px rgba(6,214,160,0.20);
    border-color: rgba(6,214,160,0.65);
  }
}
@keyframes mv-icon-tilt {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-6deg); }
}

.mv-body { flex: 1; }
.mv-body h3 {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 6px 0 12px;
}
.mv-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin: 0;
}
.mv-divider {
  width: 1px;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* ─────────────  IMPACT (overlapping circles, zaitl-style)  ───────────── */
.impact {
  background: var(--white);
  overflow: hidden;
}
.impact-row {
  display: grid;
  grid-template-columns: 360px 260px 360px 260px;
  justify-content: center;
  gap: 0;
  margin-top: 64px;
  position: relative;
}
.impact-cell {
  display: flex;
  justify-content: center;
  overflow: visible;
}
.impact-cell.c1 { margin-top: 40px;  }
.impact-cell.c2 { margin-top: 134px; }
.impact-cell.c3 { margin-top: 0;     }
.impact-cell.c4 { margin-top: 74px;  }
.impact-circle {
  width: 360px;
  height: 360px;
  flex: 0 0 360px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  border: 1.5px solid rgba(6,214,160,0.18);
  opacity: 0;
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    background .45s ease,
    box-shadow .45s ease,
    border-color .45s ease;
  will-change: transform, opacity;
}
/* Zaitl-style scattered entrance — each circle starts at a different Y offset,
   then settles into the scallop. Magnitudes mirror zaitl's IX2 values. */
.impact-cell.c1 .impact-circle { transform: translateY(90px)   scale(0.92); }
.impact-cell.c2 .impact-circle { transform: translateY(-134px) scale(0.92); }
.impact-cell.c3 .impact-circle { transform: translateY(134px)  scale(0.92); }
.impact-cell.c4 .impact-circle { transform: translateY(-75px)  scale(0.92); }

.impact-circle.in-view,
.impact-cell.c1 .impact-circle.in-view,
.impact-cell.c2 .impact-circle.in-view,
.impact-cell.c3 .impact-circle.in-view,
.impact-cell.c4 .impact-circle.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Idle floating — each circle has its own period & phase for organic feel */
.impact-cell.c1 .impact-circle.in-view { animation: impactFloatA 6.5s ease-in-out 1.6s infinite; }
.impact-cell.c2 .impact-circle.in-view { animation: impactFloatB 7.2s ease-in-out 1.9s infinite; }
.impact-cell.c3 .impact-circle.in-view { animation: impactFloatB 6.8s ease-in-out 2.0s infinite; }
.impact-cell.c4 .impact-circle.in-view { animation: impactFloatA 6.0s ease-in-out 2.2s infinite; }

/* Per-cell entrance cascade — the 5 values match the 5 transition properties
   declared on .impact-circle above (opacity, transform, background, box-shadow,
   border-color). Only the first two (entrance fade + lift) carry the cascade
   delay; background/box-shadow/border-color stay at 0 so :hover transitions
   are instant. */
.impact-cell.c1 .impact-circle { transition-delay: 0s,    0s,    0s, 0s, 0s; }
.impact-cell.c2 .impact-circle { transition-delay: 0.18s, 0.18s, 0s, 0s, 0s; }
.impact-cell.c3 .impact-circle { transition-delay: 0.36s, 0.36s, 0s, 0s, 0s; }
.impact-cell.c4 .impact-circle { transition-delay: 0.54s, 0.54s, 0s, 0s, 0s; }

@keyframes impactBreathe {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 22px 56px rgba(6,214,160,0.32);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 34px 70px rgba(6,214,160,0.50);
  }
}
@keyframes impactFloatA {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.005); }
}
@keyframes impactFloatB {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-4px) scale(1.008); }
}
@keyframes impactHalo {
  0%, 100% { opacity: 0.55; transform: scale(1);    filter: blur(6px); }
  50%      { opacity: 0.95; transform: scale(1.08); filter: blur(10px); }
}
@keyframes impactPunch {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.10); }
  100% { transform: scale(1); }
}

.impact-circle:hover {
  background: var(--secondary);
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 28px 60px rgba(6,214,160,0.42);
  border-color: rgba(255,255,255,0.30);
  z-index: 3;
  animation: none;
}
.impact-circle.featured:hover {
  background: var(--primary);
  border-color: rgba(255,255,255,0.30);
  box-shadow: 0 28px 60px rgba(12,21,89,0.40);
}
/* The breathing animation (.impact-cell.c3 .impact-circle.in-view, specificity
   0,4,0) carries a green box-shadow and outranks .impact-circle:hover (0,2,0),
   so it keeps overriding the navy hover shadow. Stop it with matching specificity. */
.impact-cell.c3 .impact-circle.featured:hover {
  animation: none;
}
/* Hide the green halo glow whenever the featured circle is blue (its own
   hover, or while another circle is hovered) — no green shade around blue. */
.impact-circle.featured:hover::before,
.impact-row:has(.impact-circle:not(.featured):hover) .impact-circle.featured::before {
  animation: none;
  opacity: 0;
  transition: opacity .3s ease;
}

/* When another (non-featured) circle is hovered and turns green, flip the
   featured 120+ circle to blue — so two green circles never show at once. */
.impact-row:has(.impact-circle:not(.featured):hover) .impact-circle.featured {
  background: var(--primary);
  border-color: rgba(255,255,255,0.30);
  box-shadow: 0 28px 60px rgba(12,21,89,0.40);
  animation: none;
}

/* Hover fix. The idle float animation AND the .in-view base transform both
   live on `.impact-cell.cN .impact-circle.in-view` (specificity 0,4,0), which
   outranks `.impact-circle:hover` (0,2,0) — so the hover lift, the green
   background, and `animation:none` were all being suppressed (the circle
   neither lifted nor turned green). Re-assert the FULL hover treatment here at
   0,5,0 so it reliably wins on every circle, and stop the float so the lift
   holds steady. */
.impact-row .impact-cell .impact-circle.in-view:hover {
  background: var(--secondary);
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 28px 60px rgba(6, 214, 160, 0.42);
  border-color: rgba(255, 255, 255, 0.30);
  animation: none;
  z-index: 4;
  /* Snappy, synced hover-in (the base keeps transform at 1.2s for the slow
     entrance settle, which would otherwise make the lift lag the colour). */
  transition:
    transform .4s cubic-bezier(0.22, 1, 0.36, 1),
    background .4s ease,
    box-shadow .4s ease,
    border-color .4s ease;
}
/* The featured (120+) circle gets the SAME green hover as every other circle
   (it falls through to the 0,5,0 rule above) — no navy override. */

.impact-num {
  font-size: 78px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transform-origin: center;
  font-variant-numeric: tabular-nums;
}

/* Slot-machine digit reels (zaitl-style) */
.reel {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  vertical-align: top;
  position: relative;
}
.reel-track {
  display: block;
  transform: translateY(0);
  transition: transform 2.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.reel-digit {
  display: block;
  height: 1em;
  line-height: 1;
  text-align: center;
}
.impact-num .suffix {
  display: inline-block;
  margin-left: 2px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .5s ease, transform .5s ease;
}
.impact-circle.in-view .impact-num .suffix {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 1.8s;
}
.impact-label {
  font-size: 16px;
  font-weight: 400;
  margin-top: 14px;
  color: rgba(255,255,255,0.85);
  max-width: 200px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s ease, transform .6s ease;
}
.impact-circle.in-view .impact-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}
.impact-circle.featured .impact-label { color: rgba(255,255,255,0.95); }

@media (prefers-reduced-motion: reduce) {
  .impact-circle,
  .impact-circle.in-view:nth-child(1),
  .impact-circle.in-view:nth-child(2),
  .impact-circle.in-view:nth-child(3),
  .impact-circle.in-view:nth-child(4),
  .impact-circle.featured.in-view::before { animation: none !important; }
  .impact-num.punch { animation: none !important; }
}

/* ─────────────  LEADERSHIP  ───────────── */
.leaders { background: var(--white); }
.leader-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.leader-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  /* Flex column so the bio grows and pushes the divider + social icons to the
     card bottom — keeps that line + icons on the same level across all cards
     (equal-height grid) regardless of bio length, at every screen size. */
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s, background .25s;
}
.leader-card:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(6, 214, 160, 0.35);
}
.leader-card:hover h4,
.leader-card:hover .leader-role,
.leader-card:hover .leader-bio { color: var(--ink); }
.leader-card:hover .leader-social { border-top-color: rgba(12, 21, 89, 0.18); }
.leader-card:hover .leader-social a {
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}
.leader-card:hover .leader-photo {
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.65);
}
.leader-photo {
  width: 150px; height: 150px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 6px rgba(6,214,160,0.18);
  background: linear-gradient(135deg, rgba(12,21,89,0.08), rgba(6,214,160,0.12));
}
.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform .35s ease;
}
.leader-card:hover .leader-photo img { transform: scale(1.06); }
.leader-card h4 { font-size: 19px; color: var(--ink); margin-bottom: 4px; }
.leader-role { color: var(--secondary); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.leader-bio { color: var(--body); font-size: 14px; line-height: 1.6; flex: 1 1 auto; }
.leader-social {
  display: flex; gap: 10px; justify-content: center;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.leader-social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  font-size: 14px;
  transition: background .15s, color .15s;
}
.leader-social a:hover { background: var(--secondary); color: var(--white); }

/* ─────────────  GLOBAL PRESENCE  ───────────── */
.global {
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.global::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(6,214,160,0.10), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(6,214,160,0.08), transparent 40%);
}
.global .container { position: relative; z-index: 2; }
.global-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}
.global-text .eyebrow {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-block;
}
.global-text h2 { color: var(--white); margin-bottom: 18px; }
.global-text p { color: rgba(255,255,255,0.78); font-size: 17px; max-width: 520px; }
.global-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 50px;
  margin-top: 36px;
}
.global-stat .num {
  font-size: 42px;
  font-weight: 500;
  color: var(--secondary);
  line-height: 1;
}
.global-stat .label {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin-top: 6px;
  letter-spacing: 0.05em;
}
.offices {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.office {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  backdrop-filter: blur(10px);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color .2s, background .2s;
}
.office:hover { border-color: var(--secondary); background: rgba(6,214,160,0.06); }
.office .pin {
  width: 46px; height: 46px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 46px;
}
.office .pin--flag {
  background: transparent;
  padding: 0;
  border: none;
  overflow: visible;
}
.office .pin--flag .office-flag {
  width: 42px;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
}
.office h4 { color: var(--white); font-size: 18px; margin-bottom: 6px; }
.office p { color: rgba(255,255,255,0.72); font-size: 14px; margin: 0; line-height: 1.55; }
.office .meta { color: var(--secondary); font-size: 13px; font-weight: 600; margin-top: 8px; }

.world-map {
  margin-top: 70px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 50px;
}

/* ─────────────  WHY CHOOSE US  ───────────── */
.why-choose { background: var(--white); }
.why-head {
  max-width: 980px;
  margin: 0 0 70px;
}
.why-head h2 {
  font-size: 52px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 18px;
}
.why-head p {
  font-size: 20px;
  font-weight: 400;
  color: var(--body);
  max-width: 760px;
  line-height: 1.55;
  margin: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
}

.why-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s cubic-bezier(0.22, 1, 0.36, 1),
              transform .9s cubic-bezier(0.22, 1, 0.36, 1);
}
.why-item.in-view { opacity: 1; transform: translateY(0); }
.why-grid > .why-item:nth-child(1) { transition-delay: 0.00s; }
.why-grid > .why-item:nth-child(2) { transition-delay: 0.12s; }
.why-grid > .why-item:nth-child(3) { transition-delay: 0.24s; }
.why-grid > .why-item:nth-child(4) { transition-delay: 0.36s; }

.why-icon {
  color: var(--secondary);
  margin-bottom: 38px;
  display: inline-flex;
}
.why-icon svg { display: block; }
.why-icon svg * { transform-box: fill-box; transform-origin: center; }

/* Icon 1 — radar pulse (arcs fade outward in sequence) */
.ico-radar .arc { transform-origin: 22px 58px; opacity: 0.35; }
.why-item.in-view .ico-radar .a1 { animation: radarPulse 2.4s ease-out infinite 0.0s; }
.why-item.in-view .ico-radar .a2 { animation: radarPulse 2.4s ease-out infinite 0.4s; }
.why-item.in-view .ico-radar .a3 { animation: radarPulse 2.4s ease-out infinite 0.8s; }
.why-item.in-view .ico-radar .dot { animation: radarDot 2.4s ease-in-out infinite; transform-origin: 22px 58px; }
@keyframes radarPulse {
  0%   { opacity: 0.2; }
  35%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes radarDot {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.4); }
}

/* Icon 2 — hexagon: gentle float + rotate, inner pulses */
.ico-cube { transform-origin: center; }
.why-item.in-view .ico-cube { animation: cubeFloat 5.2s ease-in-out infinite; }
.why-item.in-view .ico-cube .cube-inner { animation: cubeInner 3.4s ease-in-out infinite; transform-origin: 40px 46px; }
@keyframes cubeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-5px) rotate(3deg); }
}
@keyframes cubeInner {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50%      { opacity: 1;    transform: scale(1.04); }
}

/* Icon 3 — stacked layers shift right then back, sequenced */
.ico-stack .layer { transform-origin: center; }
.why-item.in-view .ico-stack .l1 { animation: layerShift 3.0s ease-in-out infinite 0.0s; }
.why-item.in-view .ico-stack .l2 { animation: layerShift 3.0s ease-in-out infinite 0.15s; }
.why-item.in-view .ico-stack .l3 { animation: layerShift 3.0s ease-in-out infinite 0.30s; }
.why-item.in-view .ico-stack .l4 { animation: layerShift 3.0s ease-in-out infinite 0.45s; }
@keyframes layerShift {
  0%, 100% { transform: translateX(0); opacity: 0.85; }
  50%      { transform: translateX(4px); opacity: 1; }
}

/* Icon 4 — nested triangles pulse outward */
.ico-tri .tri { transform-origin: 40px 64px; }
.why-item.in-view .ico-tri .t3 { animation: triPulse 2.8s ease-in-out infinite 0.0s; }
.why-item.in-view .ico-tri .t2 { animation: triPulse 2.8s ease-in-out infinite 0.25s; }
.why-item.in-view .ico-tri .t1 { animation: triPulse 2.8s ease-in-out infinite 0.50s; }
@keyframes triPulse {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%      { transform: scale(1.06); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .why-item, .why-icon svg * { animation: none !important; transition: none !important; }
  .why-item { opacity: 1; transform: none; }
}
.why-item h3 {
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.why-item p {
  font-size: 15px;
  font-weight: 400;
  color: var(--body);
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
}

/* ─────────────  CTA BAND (matches landing-page mockup)  ───────────── */
.cta-band {
  background: var(--primary);
  /* Inherits 120/120 padding from the generic `section` rule — no explicit override. */
  position: relative;
  overflow: hidden;
}
.cta-band .container { position: relative; z-index: 2; text-align: center; }
.cta-band h2 {
  color: var(--secondary);
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 auto 56px;
}
.btn-cta-light {
  background: var(--white);
  color: var(--primary);
  padding: 20px 38px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.btn-cta-light:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* ─────────────  FOOTER (matches landing-page mockup)  ───────────── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.78);
  padding: 0 0 50px;
}
.site-footer .container { position: relative; }
.site-footer .container::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(255,255,255,0.14);
  margin-bottom: 90px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 70px;
  /* stretch so the brand column matches the link columns' height — lets the
     social + copyright group align its bottom with the Quick Links column. */
  align-items: stretch;
}

/* Brand column — large logo on top, social row pinned at bottom */
.foot-brand {
  display: flex;
  flex-direction: column;
}
.foot-brand .logo { width: 380px; }
.foot-brand .logo svg { width: 100%; height: auto; display: block; }
.foot-brand-bottom { margin-top: auto; padding-top: 60px; }
/* Copyright sits directly under the social icons, left-aligned in the brand col.
   The .foot-brand-bottom group is bottom-anchored (margin-top:auto) and the grid
   height is set by the taller contact column, so the copyright lands flush with
   the grid baseline. Nudge it a little lower into the footer's bottom padding
   (relative offset → doesn't disturb the social block); applies at every width,
   incl. the centred ≤768 .foot-copyright--bottom (same class). */
.foot-copyright {
  margin: 24px 0 0;
  position: relative;
  top: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
.foot-social-label {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.foot-social { display: flex; gap: 12px; }
.foot-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.foot-social a.is-active {
  background: var(--secondary);
  color: var(--primary);
}
.foot-social a:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Column headings + lists */
.foot-col h5 {
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 26px;
  letter-spacing: 0.01em;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.4;
}
.foot-col a {
  color: rgba(255,255,255,0.78);
  transition: color .15s ease;
}
.foot-col a:hover { color: var(--secondary); }

/* Contact column — addresses + teal phone/email lines */
.foot-contact .addr {
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255,255,255,0.78);
  margin: 0 0 22px;
  max-width: 280px;
}
.foot-contact .contact-line {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: 15px;
}
.foot-contact .contact-line a {
  color: var(--secondary);
  transition: opacity .15s ease;
}
.foot-contact .contact-line a:hover { opacity: 0.8; }
/* Keep the email address as one unbreakable unit so it never splits at the
   hyphen in "mindpool-tech.com" (which cut to a new line in the narrow 4-col
   footer band around 1280). It wraps cleanly to its own line when the column
   is tight, and stays inline at wider widths where the full line fits. */
.foot-contact .contact-line .foot-email-addr { white-space: nowrap; }

/* Bottom copyright — right-aligned, no top divider */
.foot-bottom {
  text-align: right;
  padding-top: 30px;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
}
.foot-bottom a:hover { color: var(--secondary); }


/* ════════════════════════════════════════════════════════════════
   SCROLL REVEAL — zaitl-style fade-up for sections
   Each major section block starts at opacity 0 + translateY(30px)
   and animates to its resting state when its IntersectionObserver fires.
   Sections with their own custom entrance (impact, why-choose, hero
   banner zoom) are intentionally left out so they don't get overridden.
   ════════════════════════════════════════════════════════════════ */

/* Section header — eyebrow → h2 → body cascade */
.sec-head .eyebrow,
.sec-head h2,
.sec-head p {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .9s cubic-bezier(0.22, 1, 0.36, 1),
    transform .9s cubic-bezier(0.22, 1, 0.36, 1);
}
.sec-head.in-view .eyebrow { opacity: 1; transform: translateY(0); transition-delay: 0.00s; }
.sec-head.in-view h2      { opacity: 1; transform: translateY(0); transition-delay: 0.14s; }
.sec-head.in-view p       { opacity: 1; transform: translateY(0); transition-delay: 0.28s; }

/* Hero — eyebrow → h1 → sublines → paragraph → CTAs */
.hero-eyebrow,
.hero h1,
.hero-sub,
.hero p,
.hero-actions {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero.in-view .hero-eyebrow                { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
.hero.in-view h1                           { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.hero.in-view .hero-sub:first-of-type      { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.hero.in-view .hero-sub + .hero-sub        { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.hero.in-view p                            { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }
.hero.in-view .hero-actions                { opacity: 1; transform: translateY(0); transition-delay: 0.80s; }

/* Generic body reveal — applies to non-special section content blocks */
.who-grid,
.mv-grid,
.leader-grid,
.global-grid,
.global-stats,
.offices,
.foot-grid {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.0s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.0s cubic-bezier(0.22, 1, 0.36, 1);
}
.who-grid.in-view,
.mv-grid.in-view,
.leader-grid.in-view,
.global-grid.in-view,
.global-stats.in-view,
.offices.in-view,
.foot-grid.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Leader cards — stagger inside the grid once it's in view */
.leader-card {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .9s cubic-bezier(0.22, 1, 0.36, 1),
    transform .9s cubic-bezier(0.22, 1, 0.36, 1);
}
.leader-grid.in-view .leader-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.00s; }
.leader-grid.in-view .leader-card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.leader-grid.in-view .leader-card:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }
.leader-grid.in-view .leader-card:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.36s; }

/* Office cards stagger */
.office {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .8s cubic-bezier(0.22, 1, 0.36, 1),
    transform .8s cubic-bezier(0.22, 1, 0.36, 1);
}
.offices.in-view .office:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.00s; }
.offices.in-view .office:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.14s; }

/* Mission & Vision items stagger */
.mv-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .8s cubic-bezier(0.22, 1, 0.36, 1),
    transform .8s cubic-bezier(0.22, 1, 0.36, 1);
}
.mv-grid.in-view .mv-item:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.00s; }
.mv-grid.in-view .mv-item:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }

/* CTA band — title + button */
.cta-band h2,
.cta-band .btn-cta-light {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1.0s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.0s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta-band.in-view h2             { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
.cta-band.in-view .btn-cta-light { opacity: 1; transform: translateY(0); transition-delay: 0.40s; }

/* ── GSAP takeover ──────────────────────────────────────────────────────────
   When GSAP is active (html.gsap-ready, set by mindpool-scroll.js), neutralize
   the legacy CSS opacity:0 reveal defaults above so GSAP can drive the entrance
   animations from a clean, visible base. Higher specificity (0,2,x) beats the
   originals, so this wins regardless of source order. GSAP then re-applies its
   own inline from-state (opacity:0) only on the elements it animates; anything
   it doesn't touch simply stays visible.

   The About-hero (.hero) and Impact circles are intentionally NOT listed —
   they keep their own about.js / CSS intro animations. */
.gsap-ready .sec-head .eyebrow,
.gsap-ready .sec-head h2,
.gsap-ready .sec-head p,
.gsap-ready .who-grid,
.gsap-ready .mv-grid,
.gsap-ready .leader-grid,
.gsap-ready .global-grid,
.gsap-ready .global-stats,
.gsap-ready .offices,
.gsap-ready .foot-grid,
.gsap-ready .leader-card,
.gsap-ready .office,
.gsap-ready .mv-item,
.gsap-ready .why-item,
.gsap-ready .cta-band h2,
.gsap-ready .cta-band .btn-cta-light {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .sec-head .eyebrow, .sec-head h2, .sec-head p,
  .hero-eyebrow, .hero h1, .hero-sub, .hero p, .hero-actions,
  .who-grid, .mv-grid, .leader-grid, .global-grid, .global-stats, .offices, .foot-grid,
  .leader-card, .office, .mv-item,
  .cta-band h2, .cta-band .btn-cta-light {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   - ≤1280px: laptop — shrink gutters, scale hero
   - ≤1024px: tablet — multi-col grids collapse to 2-col, smaller type
   - ≤768px:  mobile (large) — most grids become 1-col, nav stacks
   - ≤480px:  mobile (small) — tight spacing, smallest type
   ════════════════════════════════════════════════════════════════ */

/* ── Laptop ── */
@media (max-width: 1280px) {
  :root { --gutter: 60px; }
  /* h1 stays at the base 64px here — matches .pg-hero (no 1280 step). */
  .hero p { font-size: 17px; }
  .sec-head h2 { font-size: 36px; }

  /* Impact — shrink circles a bit so they still fit */
  .impact-row { grid-template-columns: 280px 200px 280px 200px; }
  .impact-circle { width: 280px; height: 280px; flex: 0 0 280px; }
  .impact-num { font-size: 64px; }

  .leader-grid { gap: 22px; }
  .why-grid { gap: 40px; }
  .why-head h2 { font-size: 44px; }

  /* Footer contact: the column narrows here, so the Tel/Email lines sit too
     close together (and the email now wraps to two lines) — give them more
     breathing room so the block doesn't feel congested. Wider screens
     (≥1281) keep the base 8px. */
  .foot-contact .contact-line { margin-bottom: 18px; }

  /* Drop the phone number onto its own line ("Tel:" above the number), matching
     the email's label/value stacking in this narrow band (and on mobile).
     Wider screens (≥1281) keep "Tel: +971…" on one line. */
  .foot-contact .contact-line .foot-tel-num { display: block; }
}

/* ── Tablet ── */
@media (max-width: 1024px) {
  :root { --gutter: 40px; }

  h1 { font-size: 44px; }
  h2 { font-size: 32px; }

  /* Header — keep nav links but tighten */
  .nav { padding: 18px 0; flex-wrap: wrap; gap: 16px; }
  .nav-logo { width: 160px; }
  .nav-links { gap: 24px; font-size: 14px; }

  /* Hero — stack text + visual, centered, tighter spacing */
  .hero { height: auto; padding: 44px 0; margin-bottom: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero h1 { font-size: 44px; }
  .hero p, .hero-sub { font-size: 16px; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-banner-img { max-width: 320px; }
  .hero-visual { justify-content: center; }

  /* Company Overview — stack columns */
  .who-grid { grid-template-columns: 1fr; gap: 50px; }
  .overview-certs { max-width: 100%; }

  /* Mission & Vision — stack vertically */
  .mv { margin: 0 40px; padding-left: 40px; padding-right: 40px; }
  .mv-grid { grid-template-columns: 1fr; gap: 40px; }
  .mv-divider { display: none; }

  /* Impact — 2x2 grid, single column entrance offsets reduced */
  .impact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 32px 24px;
  }
  .impact-cell { margin-top: 0; }
  .impact-cell.c1 .impact-circle,
  .impact-cell.c2 .impact-circle,
  .impact-cell.c3 .impact-circle,
  .impact-cell.c4 .impact-circle { transform: translateY(40px) scale(0.92); }
  .impact-circle { width: 240px; height: 240px; flex: 0 0 240px; }
  .impact-num { font-size: 56px; }
  .impact-label { font-size: 14px; max-width: 160px; }

  /* Leadership — 2-col */
  .leader-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  /* Global Presence — stack */
  .global-grid { grid-template-columns: 1fr; gap: 48px; }
  .global-stats { grid-template-columns: repeat(3, 1fr); gap: 18px; }

  /* Why Choose Us — 2-col */
  .why-head h2 { font-size: 38px; }
  .why-head p { font-size: 17px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .why-item h3 { font-size: 22px; }

  /* CTA */
  .cta-band h2 { font-size: 64px; }

  /* Footer — 2-col */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
  .foot-brand { min-height: auto; }
  .foot-brand-bottom { padding-top: 32px; }
  .foot-brand .logo { width: 280px; }
  .foot-bottom { text-align: left; }
  .site-footer .container::before { margin-bottom: 60px; }
}

/* ── Mobile (large) ── */
@media (max-width: 768px) {
  :root { --gutter: 24px; }
  body { font-size: 15px; }
  section { padding: 60px 0; }
  /* Story section sits right under the About banner — drop ~60px of the
     generic section top padding so the heading isn't stranded in white space. */
  .who { padding-top: 0; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }

  /* Header — hide secondary links and CTA, show only logo + active item */
  .nav { padding: 14px 0; gap: 10px; }
  .nav-logo { width: 140px; }
  .nav-links {
    width: 100%;
    gap: 16px;
    font-size: 13px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
  .nav-links .has-caret::after { display: none; }
  .nav-cta { display: none; }

  /* Hero */
  /* margin-bottom:0 — next section's padding-top defines the gap, same as
     the .pg-hero heroes on Careers/Contact. */
  .hero { padding: 50px 0; margin-bottom: 0; }
  .hero h1 { font-size: 36px; line-height: 1.15; }
  .hero p, .hero-sub { font-size: 15px; }

  /* Company Overview */
  .who-grid { gap: 32px; }
  .overview-certs { grid-template-columns: 1fr; }

  /* Mission & Vision */
  .mv { margin: 0 24px; padding: 50px 24px; border-radius: 14px; }
  .mv-grid { gap: 28px; }

  /* Impact — single column on small mobile, but keep 2-col here */
  .impact-row { gap: 24px 16px; }
  .impact-circle { width: 200px; height: 200px; flex: 0 0 200px; }
  .impact-num { font-size: 44px; }
  .impact-label { font-size: 12px; max-width: 130px; }

  /* Leadership — single column */
  .leader-grid { grid-template-columns: 1fr; gap: 20px; }
  .leader-card { max-width: 360px; margin: 0 auto; }

  /* Global Presence */
  .global-stats { grid-template-columns: 1fr; gap: 14px; }
  .offices { gap: 20px; }
  .office { padding: 18px; }

  /* Why Choose Us — 1-col */
  .why-head { margin-bottom: 50px; }
  .why-head h2 { font-size: 32px; }
  .why-head p { font-size: 16px; }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-item p { max-width: 100%; }
  .why-icon { margin-bottom: 24px; }

  /* CTA */
  .cta-band { padding: 60px 0; }
  .cta-band h2 { font-size: 44px; line-height: 1.15; margin-bottom: 32px; }
  .btn-cta-light { padding: 16px 28px; font-size: 15px; }

  /* Footer — 1-col */
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-brand .logo { width: 240px; }
  .foot-brand-bottom { padding-top: 4px; }
  .foot-contact .addr { max-width: 100%; }
  .site-footer { padding: 0 0 30px; }
  .site-footer .container::before { margin-bottom: 50px; }
}

/* ── Mobile (small) ── */
@media (max-width: 480px) {
  :root { --gutter: 18px; }
  section { padding: 50px 0; }

  h1 { font-size: 30px; }
  h2 { font-size: 24px; }

  .hero h1 { font-size: 30px; }
  .sec-head { margin-bottom: 36px; }
  .sec-head h2 { font-size: 26px; }
  .sec-head p { font-size: 15px; }

  /* Impact — single circle per row, full visual */
  .impact-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .impact-circle { width: 220px; height: 220px; flex: 0 0 220px; }
  .impact-num { font-size: 50px; }

  /* Why Choose */
  .why-head h2 { font-size: 28px; }
  .why-icon svg { width: 64px; height: 64px; }
  .why-item h3 { font-size: 20px; }

  /* CTA */
  .cta-band h2 { font-size: 34px; }

  /* Footer */
  .foot-brand .logo { width: 200px; }
}
