/* ============================================================
   PROJEX — Modern Minimal UI Override Layer
   Layered on top of site.css for a clean, editorial aesthetic.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── Override font variables ── */
:root {
  --font-h:       'Dm Sans', sans-serif;
  --font-b:       'Dm Sans', sans-serif;
  --font-serif:   'Dm Sans', sans-serif;

  /* Minimal palette */
  --off-white:    #F7F6F3;
  --border:       #E8E8E4;
  --border-dark:  #D0CFC9;
  --charcoal:     #111111;
  --mid-grey:     #888880;

  /* Flatten shadows */
  --shadow-xs:    0 1px 3px rgba(0,0,0,.05);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
  --shadow-md:    0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.10);

  /* Rounder radii for modern feel */
  --radius:       6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-xl:    20px;
}

/* ── Body ── */
body {
  font-family: var(--font-b);
  background: #fff;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-h);
  letter-spacing: .01em;
}

/* ────────────────────────────────────────────
   NAVBAR — White on scroll (Modern Minimal)
──────────────────────────────────────────── */
#mainNav {
  background: transparent;
  border-bottom: 1px solid transparent;
}

#mainNav.scrolled {
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 1px 24px rgba(0,0,0,.06) !important;
}

/* Keep brand colors visible when navbar turns white */
#mainNav.scrolled .nav-logo {
  filter: none;
}

/* Nav links: become dark on white background */
#mainNav.scrolled .nav-link-custom {
  color: var(--charcoal) !important;
}
#mainNav.scrolled .nav-link-custom:hover,
#mainNav.scrolled .nav-link-custom.active {
  color: var(--accent) !important;
}

/* Mobile nav uses the light header style */
@media (max-width: 991px) {
  #mainNav .nav-logo { filter: none; }
  #mainNav.scrolled .nav-logo { filter: none; }
  #mainNav.scrolled .nav-link-custom { color: var(--charcoal) !important; }
}

/* ────────────────────────────────────────────
   SECTION BACKGROUNDS — Warm whites
──────────────────────────────────────────── */
.bg-grey-light { background-color: var(--off-white) !important; }

/* ────────────────────────────────────────────
   SECTION LABELS / TITLES
──────────────────────────────────────────── */
.section-label {
  font-size: .82rem;
  letter-spacing: .18em;
  font-weight: 600;
}

.section-title {
  font-size: clamp(2.05rem, 4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: .012em;
  line-height: 1.12;
}

.divider-accent {
  width: 40px;
  height: 2px;
  border-radius: 1px;
  margin: 16px 0 28px;
}

.divider-accent.center { margin-left: auto; margin-right: auto; }

/* ────────────────────────────────────────────
   HERO — Modern Minimal Full-Bleed
──────────────────────────────────────────── */
.hero-section {
  min-height: 100svh;
  background-color: #0a0a0a;
}

/* Unified hero sizing so banner scales predictably on all screens */
.hero-inner {
  min-height: calc(100svh - var(--nav-h, 72px));
  padding-top: clamp(92px, 11vh, 128px);
  padding-bottom: clamp(42px, 7vh, 84px);
}

@media (max-width: 1199px) {
  .hero-section {
    min-height: auto;
  }

  .hero-inner {
    min-height: calc(100svh - var(--nav-h, 72px));
    padding-top: clamp(84px, 10vh, 112px);
    padding-bottom: clamp(36px, 6vh, 68px);
  }
}

@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding-top: calc(var(--nav-h, 72px) + 24px) !important;
    padding-bottom: 40px !important;
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .hero-inner {
    min-height: auto;
    padding-top: calc(var(--nav-h, 72px) + 16px) !important;
    padding-bottom: 28px !important;
  }

  .hero-section {
    background-position: center 46% !important;
  }
}

/* Remove dot pattern */
.hero-bg-pattern { opacity: 0; }
/* Remove glow orbs */
.hero-glow, .hero-glow2 { display: none; }

.hero-section::before {
  background: linear-gradient(160deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 60%, rgba(20,42,79,.3) 100%);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: .014em;
}

.hero-title .accent-text {
  background: linear-gradient(135deg, #fff 0%, rgba(176,210,237,.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: rgba(255,255,255,.72);
  font-weight: 400;
  line-height: 1.7;
  max-width: 52ch;
}

.hero-pillar {
  font-size: .68rem;
  letter-spacing: .16em;
  padding: 5px 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  border-radius: 100px;
}

/* Hero copy positioning */
.hero-inner {
  align-items: center !important;
}

/* Desktop: left side, vertically centered */
@media (min-width: 992px) {
  .hero-inner {
    justify-items: start;
  }

  .hero-left {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
  }

  .hero-title,
  .hero-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}

/* Mobile/tablet: keep centered for readability */
@media (max-width: 991px) {
  .hero-left {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-title,
  .hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

/* Stat cards — slimmer, minimal border */
.stat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  backdrop-filter: blur(16px);
}

.stat-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-3px);
}

/* ────────────────────────────────────────────
   WHO WE ARE — Split with image
──────────────────────────────────────────── */
.split-image-block {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
}

.split-image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .6s ease;
}

.split-image-block:hover img { transform: scale(1.04); }

/* How We Work: match left image height to right 6-step list */
@media (min-width: 992px) {
  .howwork-row {
    align-items: stretch !important;
  }

  .howwork-left,
  .howwork-right {
    display: flex;
    flex-direction: column;
  }

  .howwork-image {
    flex: 1;
    min-height: 520px;
    aspect-ratio: auto;
  }
}

.split-image-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Floating badge on image */
.split-image-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-h);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
}

/* Value cards minimal */
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: none;
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  transform: translateX(4px);
}

/* ────────────────────────────────────────────
   SERVICE IMAGE CARDS — New visual cards
──────────────────────────────────────────── */
.service-img-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.service-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  display: block;
}

.service-img-card:hover img { transform: scale(1.07); }

.service-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.75) 100%);
  transition: background .4s ease;
}

.service-img-card:hover .service-img-overlay {
  background: linear-gradient(180deg, transparent 10%, rgba(0,0,0,.82) 100%);
}

.service-img-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  transform: translateY(0);
  transition: transform .4s ease;
}

.service-img-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 12px;
  transition: background .3s ease;
}

.service-img-card:hover .service-img-icon {
  background: var(--accent);
  border-color: var(--accent);
}

.service-img-title {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.service-img-desc {
  font-size: .86rem;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  max-height: none;
  overflow: visible;
  opacity: .9;
  transform: translateY(6px);
  transition: transform .4s ease, opacity .4s ease;
  margin-bottom: 0;
}

.service-img-card:hover .service-img-desc {
  max-height: none;
  opacity: 1;
  transform: translateY(0);
}

.service-img-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-h);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: 14px;
  transition: color .3s ease, gap .3s ease;
}

.service-img-card:hover .service-img-arrow {
  color: #fff;
  gap: 10px;
}

/* ────────────────────────────────────────────
   APPROACH BANNER — Full-bleed parallax section
──────────────────────────────────────────── */
.approach-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 140px) 0;
}

.approach-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.approach-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,.88) 0%, rgba(20,42,79,.80) 100%);
  z-index: 1;
}

.approach-banner-inner {
  position: relative;
  z-index: 2;
}

/* Feature list inside the banner */
.approach-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.approach-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: padding-left .3s ease;
}

.approach-feature-item:last-child { border-bottom: none; }

.approach-feature-item:hover { padding-left: 6px; }

.approach-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(35,137,202,.2);
  border: 1px solid rgba(35,137,202,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 1rem;
  flex-shrink: 0;
  transition: background .3s ease;
}

.approach-feature-item:hover .approach-feature-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.approach-feature-title {
  font-family: var(--font-h);
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.approach-feature-desc {
  font-size: .84rem;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .approach-banner-bg { background-attachment: scroll; }
}

/* ────────────────────────────────────────────
   STRENGTH / WHY CHOOSE US — Minimal
──────────────────────────────────────────── */
.strength-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: none;
}

.strength-card::before { background: var(--accent); height: 2px; }

.strength-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-3px);
}

.strength-icon {
  background: #F0F7FF;
  border-radius: var(--radius);
  width: 52px;
  height: 52px;
}

.strength-card:hover .strength-icon {
  background: var(--accent);
}

.strength-card-dd {
  padding: 0 !important;
  position: relative;
  border-radius: 12px;
}

.strength-card-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.strength-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.strength-card-trigger .strength-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.strength-card-trigger .strength-title {
  margin-bottom: 0;
}

.strength-card-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(35,137,202,.08);
  transition: transform .25s ease, background .25s ease, color .25s ease;
  flex-shrink: 0;
}

.strength-card-trigger[aria-expanded="true"] .strength-card-toggle {
  transform: rotate(180deg);
  background: var(--accent);
  color: #fff;
}

.strength-card-body {
  padding: 0 18px 16px;
}

.strength-card-dd .collapse,
.strength-card-dd .collapsing {
  border-top: 1px solid var(--border);
}

.strength-card-dd .collapsing {
  transition: height .32s cubic-bezier(.22,.61,.36,1);
}

.strength-card-trigger[aria-expanded="true"] {
  background: linear-gradient(180deg, rgba(35,137,202,.04), rgba(35,137,202,.01));
}

.strength-card-trigger[aria-expanded="true"] + .collapse,
.strength-card-trigger[aria-expanded="true"] + .collapsing {
  position: relative;
  z-index: 1;
}

.strength-card-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 10px;
}

/* Remove offset on tablet/mobile */
@media (max-width: 991px) {
  .offset-lg-2 {
    margin-left: 0 !important;
  }
}

/* ────────────────────────────────────────────
   PROCESS STEPS — Minimal numbered
──────────────────────────────────────────── */
.step-num {
  background: #fff;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  font-size: 1rem;
  width: 48px;
  height: 48px;
  min-width: 48px;
  box-shadow: none;
}

.process-step:hover .step-num {
  background: var(--accent);
  color: #fff;
}

/* ────────────────────────────────────────────
   INDUSTRY TAGS — Minimal
──────────────────────────────────────────── */
.industries-intro {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.75;
}

.industries-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.industry-item {
  margin: 0;
}

.industry-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  color: #444;
  font-size: .82rem;
  font-weight: 600;
  padding: 11px 16px;
  min-height: 44px;
  border-radius: 100px;
  transition: var(--transition);
  letter-spacing: .03em;
  line-height: 1.3;
}

.industry-tag:hover {
  background: #f7fbff;
  border-color: #c9d7e6;
  color: #1f2f42;
  transform: translateY(-2px);
}

.industry-tag i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf4fb;
  color: var(--accent);
  font-size: .78rem;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .industries-grid {
    justify-content: flex-start;
  }

  .industry-item {
    flex: 1 1 calc(50% - 6px);
    min-width: 240px;
  }

  .industry-tag {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 575px) {
  .industry-item {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* ────────────────────────────────────────────
   CTA SECTION — Modern dark
──────────────────────────────────────────── */
.cta-section {
  background: var(--charcoal) !important;
  position: relative;
}

.cta-section::before,
.cta-section::after { display: none; }

.cta-section-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: .012em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 40px;
}

/* ────────────────────────────────────────────
   BUTTONS — Modern minimal
──────────────────────────────────────────── */
.btn-pb {
  background: var(--accent);
  box-shadow: none;
  border-radius: 6px;
  font-size: .8rem;
  letter-spacing: .08em;
  padding: 14px 28px;
}

.btn-pb:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(35,137,202,.3);
  transform: translateY(-1px);
}

.btn-ob {
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 6px;
  font-size: .8rem;
  letter-spacing: .08em;
  padding: 13px 28px;
}

.btn-ob:hover {
  border-color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.08);
}

.btn-od {
  border: 1.5px solid var(--border-dark);
  color: var(--charcoal);
  border-radius: 6px;
  font-size: .8rem;
  letter-spacing: .08em;
  padding: 13px 28px;
}

.btn-od:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: #fff;
  transform: translateY(-1px);
}

/* ────────────────────────────────────────────
   FOOTER — Clean dark
──────────────────────────────────────────── */
.site-footer {
  background: #0C0C0C;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ────────────────────────────────────────────
   SERVICE CARDS (existing) — Flatten
──────────────────────────────────────────── */
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
}

/* ────────────────────────────────────────────
   PAGE HERO — Modern Minimal (inner pages)
──────────────────────────────────────────── */
.page-hero {
  background: var(--charcoal);
}

.page-hero::after {
  background: #fff;
}

/* New shared page hero used on About/Services/Projects/Contact */
.page-hero-mm {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  padding-top: var(--nav-h, 72px);
  overflow: hidden;
}

.page-hero-mm-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,.75) 0%, rgba(10,22,40,.65) 100%);
  z-index: 1;
}

.page-hero-mm-inner {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(48px, 7vw, 80px);
  padding-top: clamp(48px, 7vw, 80px);
}

.page-hero-mm-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: .012em;
  line-height: 1.08;
  margin: 16px 0 14px;
}

.page-hero-mm-sub {
  font-size: clamp(.95rem, 1.4vw, 1.12rem);
  color: rgba(255,255,255,.68);
  max-width: 620px;
  line-height: 1.75;
  margin: 0;
}

/* Home-like header reveal for all inner-page hero banners */
.js-enhanced .page-hero-mm.page-hero-anim-ready .page-hero-mm-overlay {
  opacity: .55;
  transition: opacity .65s cubic-bezier(.22,.61,.36,1);
}

.js-enhanced .page-hero-mm.page-hero-anim-ready .page-hero-mm-inner {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .68s cubic-bezier(.22,.61,.36,1), transform .68s cubic-bezier(.22,.61,.36,1);
}

.js-enhanced .page-hero-mm.page-hero-anim-ready .bc-nav {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .58s cubic-bezier(.22,.61,.36,1) .08s, transform .58s cubic-bezier(.22,.61,.36,1) .08s;
}

.js-enhanced .page-hero-mm.page-hero-anim-ready .page-hero-mm-title {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .62s cubic-bezier(.22,.61,.36,1) .16s, transform .62s cubic-bezier(.22,.61,.36,1) .16s;
}

.js-enhanced .page-hero-mm.page-hero-anim-ready .page-hero-mm-sub {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .62s cubic-bezier(.22,.61,.36,1) .28s, transform .62s cubic-bezier(.22,.61,.36,1) .28s;
}

.js-enhanced .page-hero-mm.page-hero-anim-ready.is-visible .page-hero-mm-overlay {
  opacity: 1;
}

.js-enhanced .page-hero-mm.page-hero-anim-ready.is-visible .page-hero-mm-inner,
.js-enhanced .page-hero-mm.page-hero-anim-ready.is-visible .bc-nav,
.js-enhanced .page-hero-mm.page-hero-anim-ready.is-visible .page-hero-mm-title,
.js-enhanced .page-hero-mm.page-hero-anim-ready.is-visible .page-hero-mm-sub {
  opacity: 1;
  transform: translateY(0);
}

/* ────────────────────────────────────────────
   ABOUT PAGE — Promise Card
──────────────────────────────────────────── */
.about-promise-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #ffffff 0%, #f2f7fb 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 10px 28px rgba(20,42,79,.08);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, border-color .35s ease;
}

.about-promise-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35,137,202,.16) 0%, rgba(35,137,202,0) 72%);
  pointer-events: none;
}

.about-promise-card:hover {
  transform: translateY(-5px);
  border-color: rgba(35,137,202,.32);
  box-shadow: 0 18px 38px rgba(20,42,79,.13);
}

.about-promise-head {
  position: relative;
  z-index: 1;
  margin-bottom: 26px;
}

.about-promise-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-h);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(35,137,202,.08);
  border: 1px solid rgba(35,137,202,.2);
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 16px;
}

.about-promise-title {
  font-family: var(--font-h);
  font-size: clamp(1.2rem, 2.1vw, 1.8rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.35;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}

.about-promise-sub {
  font-size: .96rem;
  color: var(--text-body);
  line-height: 1.75;
  margin: 0;
}

.about-promise-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.about-promise-stat {
  text-align: center;
  padding: 20px 10px 6px;
  transition: transform .25s ease;
}

.about-promise-stat + .about-promise-stat {
  border-left: 1px solid var(--border);
}

.about-promise-card:hover .about-promise-stat {
  animation: aboutStatLift .55s ease both;
}

.about-promise-card:hover .about-promise-stat:nth-child(2) {
  animation-delay: .06s;
}

.about-promise-card:hover .about-promise-stat:nth-child(3) {
  animation-delay: .12s;
}

.about-promise-value {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -.04em;
}

.about-promise-suffix {
  font-size: .58em;
  color: var(--accent);
  margin-left: 2px;
}

.about-promise-label {
  margin-top: 8px;
  font-family: var(--font-h);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes aboutStatLift {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .about-promise-stats {
    grid-template-columns: 1fr;
  }

  .about-promise-stat + .about-promise-stat {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .about-promise-stat {
    padding: 16px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-enhanced .page-hero-mm.page-hero-anim-ready .page-hero-mm-overlay,
  .js-enhanced .page-hero-mm.page-hero-anim-ready .page-hero-mm-inner,
  .js-enhanced .page-hero-mm.page-hero-anim-ready .bc-nav,
  .js-enhanced .page-hero-mm.page-hero-anim-ready .page-hero-mm-title,
  .js-enhanced .page-hero-mm.page-hero-anim-ready .page-hero-mm-sub {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .about-promise-card,
  .about-promise-stat {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ────────────────────────────────────────────
   SCROLL-TO-TOP
──────────────────────────────────────────── */
#scrollTop {
  background: var(--charcoal);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

#scrollTop:hover {
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(35,137,202,.35);
  transform: translateY(-3px);
}

/* ────────────────────────────────────────────
   MARQUEE / TRUST STRIP
──────────────────────────────────────────── */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: #fff;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-h);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--border-dark);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.marquee-item i {
  color: var(--accent);
  font-size: .9rem;
}

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

/* ────────────────────────────────────────────
   TESTIMONIAL / QUOTE BLOCK
──────────────────────────────────────────── */
.quote-block {
  background: var(--off-white);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 28px 32px;
  margin: 32px 0;
}

.quote-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}

.quote-author {
  font-family: var(--font-h);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ────────────────────────────────────────────
   ANIMATED COUNTER
──────────────────────────────────────────── */
.counter-section {
  padding: clamp(56px, 8vw, 96px) 0;
  background: #fff;
}

/* ────────────────────────────────────────────
   PREMIUM MOTION LAYER
   Cinematic movement and interactive depth
──────────────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: -24% -12%;
  pointer-events: none;
  z-index: 1;
  opacity: .22;
  background:
    radial-gradient(circle at 18% 28%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 44%),
    radial-gradient(circle at 78% 66%, rgba(176,210,237,.24) 0%, rgba(176,210,237,0) 46%);
  animation: heroAuraDrift 14s ease-in-out infinite alternate;
}

.hero-container,
.hero-watermark,
.hero-right,
.hero-content {
  position: relative;
  z-index: 2;
}

.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.22,.61,.36,1), border-color .4s ease, background .4s ease, box-shadow .4s ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 120%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.24) 45%, rgba(255,255,255,0) 100%);
  transition: transform .8s cubic-bezier(.22,.61,.36,1);
}

.stat-card:hover {
  box-shadow: 0 18px 36px rgba(0,0,0,.2);
}

.stat-card:hover::before {
  transform: translateX(190%);
}

.btn-pb,
.btn-ob,
.btn-od {
  will-change: transform;
}

.trust-strip:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes heroCopyFloat {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(0, -6px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes accentShimmer {
  0%, 18%   { transform: translateX(0); opacity: 0; }
  32%       { opacity: .95; }
  46%, 100% { transform: translateX(320%); opacity: 0; }
}

@keyframes accentTextPulse {
  0%, 100% { filter: saturate(1) brightness(1); }
  50%      { filter: saturate(1.18) brightness(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .hero-section::after,
  .marquee-track {
    animation: none !important;
  }

  .stat-card,
  .btn-pb,
  .btn-ob,
  .btn-od {
    transition: none !important;
    transform: none !important;
  }
}

/* ────────────────────────────────────────────
   WHO WE ARE — Full-bleed Bridjin style
──────────────────────────────────────────── */
.whoweare-section {
  position: relative;
  padding: clamp(26px, 4vw, 44px) 0 clamp(18px, 3vw, 32px);
  overflow: hidden;
  background: #F8F7F4;
}

.whoweare-bg {
  display: none;
}

.whoweare-overlay {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 0;
}

.whoweare-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 60px;
}

.whoweare-left {
  flex: 1;
  min-width: 0;
}

.whoweare-section .section-label {
  font-size: .82rem;
  color: var(--primary);
}

.whoweare-title {
  font-family: var(--font-h);
  font-size: clamp(2.2rem, 4.5vw, 3.45rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 12px 0 20px;
}

.whoweare-sub {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.whoweare-right {
  flex-shrink: 0;
  width: 320px;
}

.whoweare-card {
  background: rgba(20,42,79,.85);
  border: none;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
}

.whoweare-card-body {
  padding: 32px 28px 24px;
}

.whoweare-card-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}

.whoweare-card-stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-h);
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -.04em;
}

.whoweare-card-pct {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255,255,255,.65);
}

.whoweare-card-desc {
  font-size: .95rem;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  margin-bottom: 10px;
}

.whoweare-card-sub {
  font-size: .82rem;
  color: rgba(255,255,255,.48);
  margin-bottom: 0;
}

.whoweare-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-h);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: var(--accent);
  padding: 18px 28px;
  text-decoration: none;
  transition: background .25s ease, padding-right .25s ease;
}

.whoweare-card-cta:hover {
  background: var(--accent-hover);
  padding-right: 34px;
  color: #fff;
}

@media (max-width: 991px) {
  .whoweare-section { background-attachment: scroll; }
  .whoweare-inner { flex-direction: column; gap: 40px; }
  .whoweare-right { width: 100%; }
}

.howwork-section {
  padding-top: clamp(18px, 3vw, 28px) !important;
}

.howwork-section .mb-5 {
  margin-bottom: 1.25rem !important;
}

/* ────────────────────────────────────────────
   HORIZONTAL STATS BAR
──────────────────────────────────────────── */
.hstats-bar {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 24px;
}

.hstats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.hstat-item {
  flex: 1;
  text-align: center;
  padding: 8px 24px;
}

.hstat-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
  flex-shrink: 0;
}

.hstat-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 10px;
  opacity: .8;
}

.hstat-num {
  font-family: var(--font-h);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.hstat-plus {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.hstat-label {
  font-family: var(--font-h);
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.hstat-sub {
  font-size: .74rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Tooltip on hover */
.hstat-num-tip {
  position: relative;
  cursor: default;
}

.hstat-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--primary);
  color: #fff;
  font-family: var(--font-b);
  font-size: .78rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 8px;
  white-space: normal;
  width: 200px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

/* Arrow pointing down */
.hstat-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--primary);
}

.hstat-num-tip:hover .hstat-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 767px) {
  .hstats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .hstat-divider { display: none; }
  .hstats-bar { border-bottom: none; }
  .hstat-item {
    padding: 20px 12px;
  }
  .hstat-num { font-size: 1.9rem; }
}

/* ────────────────────────────────────────────
   PROJECT DETAIL PAGE
──────────────────────────────────────────── */
.proj-facts-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: sticky;
  top: 90px;
}

.proj-facts-title {
  font-family: var(--font-h);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.proj-fact-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.proj-fact-row:last-of-type { border-bottom: none; }

.proj-fact-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.proj-fact-val {
  font-size: .95rem;
  font-weight: 600;
  color: var(--primary);
}

.proj-detail-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  height: 100%;
  transition: box-shadow .3s ease, transform .3s ease;
}

.proj-detail-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.proj-detail-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: #F0F7FF;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
}

.proj-detail-title {
  font-family: var(--font-h);
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.proj-detail-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ────────────────────────────────────────────
   TEAM CARDS
──────────────────────────────────────────── */
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, transform .3s ease;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.team-card-placeholder {
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  background: var(--off-white);
  border-style: dashed;
}

.team-avatar-wrap { flex-shrink: 0; }

.team-avatar-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}

.team-name {
  font-family: var(--font-h);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.team-role {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.team-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.team-creds span {
  background: #F0F7FF;
  border: 1px solid #C8E0F4;
  color: var(--primary);
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: .04em;
}

.team-quals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.team-quals span {
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
}

.team-bio {
  color: var(--text-muted);
  font-size: .94rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .team-card { flex-direction: column; gap: 18px; padding: 24px; }
  .team-card-placeholder { padding: 24px; }
}

/* About leadership cards: compact profile style */
.team-grid-card {
  padding: 30px 28px;
  border-radius: 16px;
  border: 1px solid #dfe4ec;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.team-grid-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #274f8f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: 6px;
}

.team-grid-name {
  font-family: var(--font-h);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin-top: 2px;
}

.team-grid-role {
  color: #244f97;
  font-size: 1.12rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.team-grid-summary {
  color: #4f617d;
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0;
  max-width: 36ch;
}

.team-grid-link {
  margin-top: 6px;
  color: #244f97;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}

.team-grid-link i {
  margin-left: 6px;
  font-size: 1.05em;
}

.team-grid-link:hover {
  color: #1e4079;
}

.team-grid-link.disabled {
  opacity: .45;
  pointer-events: none;
}

.team-grid-card-muted {
  background: #f9fbff;
}

@media (max-width: 991px) {
  .team-grid-name { font-size: 1.45rem; }
  .team-grid-role { font-size: 1rem; }
  .team-grid-summary { font-size: .96rem; }
  .team-grid-link { font-size: 1.08rem; }
}

/* ────────────────────────────────────────────
   ENHANCED ANIMATIONS
──────────────────────────────────────────── */

/* Stagger delays for child fade-up elements */
.stagger-parent .fade-up:nth-child(1) { transition-delay: 0s; }
.stagger-parent .fade-up:nth-child(2) { transition-delay: .1s; }
.stagger-parent .fade-up:nth-child(3) { transition-delay: .2s; }
.stagger-parent .fade-up:nth-child(4) { transition-delay: .3s; }
.stagger-parent .fade-up:nth-child(5) { transition-delay: .4s; }
.stagger-parent .fade-up:nth-child(6) { transition-delay: .5s; }

/* Floating animation for hero accent elements */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.stat-card:first-child { animation: floatY 5s ease-in-out infinite; }
.stat-card:nth-child(2) { animation: floatY 5s ease-in-out 1.5s infinite; }
.stat-card:nth-child(3) { animation: floatY 5s ease-in-out 3s infinite; }

/* Vision/Mission image animation (About page) */
@keyframes vmFloatImage {
  0% { transform: scale(1.12) translate3d(0, 0, 0); }
  50% { transform: scale(1.14) translate3d(0, -8px, 0); }
  100% { transform: scale(1.12) translate3d(0, 0, 0); }
}

.vm-image {
  animation: vmFloatImage 7s ease-in-out infinite;
  transition: transform .45s ease;
}

.vm-image-vision {
  animation-delay: .2s;
}

.vm-image-mission {
  animation-delay: 1.1s;
}

.parallax-media:hover .vm-image {
  transform: scale(1.16) translate3d(0, -4px, 0);
}

@media (prefers-reduced-motion: reduce) {
  .vm-image {
    animation: none;
  }
}

/* Smooth underline reveal on section labels */
.section-label {
  position: relative;
  display: inline-block;
}

/* Card hover lift — applies globally */
.value-card:hover,
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.project-card { transition: transform .3s ease, box-shadow .3s ease; }

/* ────────────────────────────────────────────
   UTILITIES
──────────────────────────────────────────── */
.text-serif { font-family: var(--font-serif) !important; }
.border-thin { border: 1px solid var(--border); }

/* Scroll parallax image blocks */
.parallax-media {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll !important;
  will-change: background-position;
}

.parallax-img {
  display: block;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0) scale(1.12);
  will-change: transform;
}

/* ────────────────────────────────────────────
   MOBILE OPTIMISATIONS
──────────────────────────────────────────── */
@media (max-width: 991px) {
  /* Hide Services dropdown caret on mobile (link navigates directly) */
  #mainNav .nav-item.dropdown .dropdown-toggle::after { display: none !important; }
  #mainNav .nav-item.dropdown .nav-dropdown { display: none !important; }

  /* Ensure mobile menu links stay readable on the dark slide-down panel */
  #navbarNav .nav-link-custom,
  #mainNav #navbarNav .nav-link-custom,
  #mainNav.scrolled #navbarNav .nav-link-custom {
    color: rgba(255,255,255,.9) !important;
    border-bottom-color: rgba(255,255,255,.14) !important;
  }

  #navbarNav .nav-link-custom:hover,
  #navbarNav .nav-link-custom.active,
  #mainNav #navbarNav .nav-link-custom:hover,
  #mainNav #navbarNav .nav-link-custom.active,
  #mainNav.scrolled #navbarNav .nav-link-custom:hover,
  #mainNav.scrolled #navbarNav .nav-link-custom.active {
    color: #fff !important;
  }

  /* Keep navbar white on mobile — both default and scrolled states */
  #mainNav,
  #mainNav.scrolled {
    background: rgba(255,255,255,.97) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid rgba(20,42,79,.1) !important;
    box-shadow: 0 1px 24px rgba(0,0,0,.06) !important;
  }

  /* Keep logo in original colors on white mobile navbar */
  #mainNav .nav-logo,
  #mainNav.scrolled .nav-logo { filter: none !important; }

  /* Make hamburger button clearly visible on white background */
  .nav-hamburger span {
    background: rgba(20,42,79,.9) !important;
    width: 26px;
    height: 2.5px;
  }

  /* Tighter section padding on tablet */
  .section-pad {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  /* Shorter inner page heroes */
  .page-hero-mm {
    min-height: 280px !important;
  }
  .page-hero-mm-inner {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

}

@media (max-width: 767px) {
  /* Tighter section padding on mobile */
  .section-pad {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  /* Tighter heading margins */
  .section-title { margin-bottom: 12px !important; }
  .divider-accent { margin: 10px 0 20px !important; }

  /* Tighter card rows */
  .row.g-4 { --bs-gutter-y: 1rem !important; }

  /* Shorter page hero */
  .page-hero-mm {
    min-height: 240px !important;
  }

  /* Smaller hero text on mobile */
  .page-hero-mm-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
    margin: 10px 0 10px !important;
  }
  .page-hero-mm-sub {
    font-size: .9rem !important;
  }

  /* Reduce line height for body text */
  p { line-height: 1.65 !important; }

  /* Reduce mb-5 spacing between section header and cards */
  .mb-5 { margin-bottom: 1.5rem !important; }

  /* Value cards compact */
  .value-card {
    padding: 16px 14px !important;
  }
  .value-title { font-size: 1.1rem !important; }
  .value-desc  { font-size: .82rem !important; line-height: 1.55 !important; }
  .value-label { font-size: .6rem !important; margin-bottom: 4px !important; }

  /* Stat cards — 2 per row, compact */
  .hero-right {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: .75rem !important;
  }

  .stat-card {
    padding: 16px 14px !important;
    flex: unset !important;
  }

  .stat-num {
    font-size: 1.8rem !important;
    line-height: 1.1 !important;
  }

  .stat-lbl {
    font-size: .72rem !important;
    margin-bottom: 2px !important;
  }

  .stat-sub {
    font-size: .65rem !important;
  }

  /* Counter section */
  .counter-section {
    padding: 40px 0 !important;
  }

  /* Service image cards — shorter on mobile */
  .service-img-card {
    aspect-ratio: 3/2 !important;
  }
  .service-img-body { padding: 14px !important; }
  .service-img-title { font-size: .9rem !important; margin-bottom: 0 !important; }
  .service-img-icon  { width: 32px !important; height: 32px !important; font-size: .9rem !important; margin-bottom: 6px !important; }
  .service-img-arrow { display: none !important; }


  /* Strength cards compact */
  .strength-card { padding: 16px 12px !important; }
  .strength-icon { width: 40px !important; height: 40px !important; font-size: .9rem !important; margin-bottom: 10px !important; }
  .strength-title { font-size: .82rem !important; margin-bottom: 6px !important; }
  .strength-text  { font-size: .76rem !important; line-height: 1.5 !important; }
}

@media (max-width: 480px) {
  .section-pad {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-img {
    transform: none !important;
    will-change: auto;
  }

  .parallax-bg {
    background-position: center center !important;
    will-change: auto;
  }
}

/* ────────────────────────────────────────────
   GLOBAL UX + MOTION ENHANCEMENTS
──────────────────────────────────────────── */
:root {
  --ux-ring: #6fb6ea;
  --ux-ring-shadow: rgba(111, 182, 234, .32);
}

html {
  scroll-padding-top: calc(var(--nav-h, 72px) + 10px);
}

a,
button,
.btn-pb,
.btn-ob,
.btn-od,
.project-card,
.service-img-card,
.strength-card,
.process-step,
.team-card,
.industry-tag,
.service-feature-item,
.whoweare-card {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background-color .28s ease, color .28s ease;
}

a:focus-visible,
button:focus-visible,
.btn-pb:focus-visible,
.btn-ob:focus-visible,
.btn-od:focus-visible,
.nav-link-custom:focus-visible,
.service-link:focus-visible {
  outline: 2px solid var(--ux-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--ux-ring-shadow);
  border-radius: 8px;
}

@media (hover: hover) {
  .project-card:hover,
  .strength-card:hover,
  .process-step:hover,
  .team-card:hover,
  .service-feature-item:hover,
  .whoweare-card:hover {
    transform: translateY(-4px);
  }

  .industry-tag:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 767px) {
  .btn-pb,
  .btn-ob,
  .btn-od,
  .service-link,
  .nav-cta-btn {
    min-height: 44px;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  a,
  button,
  .btn-pb,
  .btn-ob,
  .btn-od,
  .project-card,
  .service-img-card,
  .strength-card,
  .process-step,
  .team-card,
  .industry-tag,
  .service-feature-item,
  .whoweare-card {
    transition: none !important;
    transform: none !important;
  }
}

/* Premium-smooth timing profile */
:root {
  --motion-fast: .26s;
  --motion-mid: .36s;
  --motion-slow: .56s;
  --motion-ease: cubic-bezier(.22, .61, .36, 1);
}

.fade-up,
.fade-in {
  transition-duration: var(--motion-slow) !important;
  transition-timing-function: var(--motion-ease) !important;
}

.project-card,
.service-img-card,
.strength-card,
.process-step,
.team-card,
.industry-tag,
.service-feature-item,
.whoweare-card,
.btn-pb,
.btn-ob,
.btn-od {
  transition-duration: var(--motion-mid) !important;
  transition-timing-function: var(--motion-ease) !important;
}

.service-img-card:hover img {
  transform: scale(1.04);
}

.stat-card {
  transition-duration: var(--motion-mid) !important;
}

.stat-card:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

.marquee-track {
  animation-duration: 32s;
}

/* ────────────────────────────────────────────
   MOBILE POLISH PASS
   Final readability + touch improvements
──────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero-title {
    font-size: clamp(2rem, 10.5vw, 2.8rem);
    line-height: 1.08;
  }

  .hero-subtitle {
    font-size: .95rem;
    line-height: 1.65;
    max-width: 100%;
  }

  .hero-actions,
  .hero-actions .btn-pb {
    width: 100%;
  }

  .hero-actions .btn-pb {
    justify-content: center;
    padding-left: 18px;
    padding-right: 18px;
  }

  .trust-strip {
    padding: 14px 0;
  }

  .marquee-track {
    gap: 38px;
    animation-duration: 24s;
  }

  .marquee-item {
    font-size: .66rem;
    letter-spacing: .12em;
    gap: 10px;
  }

  .hstats-bar {
    padding: 30px 0;
    border-bottom: none;
  }

  .hstat-label {
    font-size: .76rem;
  }

  .hstat-sub {
    font-size: .7rem;
  }

  .hstat-tooltip {
    display: none;
  }

  .whoweare-inner {
    gap: 28px;
  }

  .whoweare-title {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .whoweare-card {
    border-radius: 14px;
  }

  .approach-feature-item {
    align-items: flex-start;
  }

  .approach-feature-desc {
    line-height: 1.5;
  }

  .site-footer .row {
    row-gap: 1.35rem !important;
  }

  .footer-bottom .d-flex {
    justify-content: center !important;
    text-align: center;
  }

  .section-pad {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  .section-title {
    margin-bottom: 10px !important;
  }

  .divider-accent {
    margin: 10px 0 18px !important;
  }
}

@media (max-width: 575px) {
  .hstats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .hstat-item {
    padding: 18px 10px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 11vw, 2.2rem);
  }

  .section-pad {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
}

@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    position: relative;
  }

  main,
  .hero-section,
  .trust-strip,
  .hstats-bar,
  .site-footer {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .nav-inner,
  .hero-container,
  .hstats-inner,
  .hstat-item {
    min-width: 0;
    max-width: 100%;
  }

  .hstat-label,
  .hstat-sub {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 991px) {
  #mainNav {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
  }

  .nav-inner {
    display: flex !important;
    visibility: visible !important;
  }

  .nav-hamburger {
    display: flex !important;
    visibility: visible !important;
  }

  #navbarNav {
    z-index: 1200;
  }
}

/* ────────────────────────────────────────────
   HEADING SPACING CONSISTENCY
──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero-title,
.cta-title,
.page-hero-mm-title,
.whoweare-title,
.service-img-title,
.approach-feature-title,
.proj-facts-title,
.proj-detail-title,
.value-title,
.strength-title,
.team-name,
.hstat-label {
  letter-spacing: .015em !important;
}

@media (max-width: 767px) {
  .section-title,
  .hero-title,
  .cta-title,
  .page-hero-mm-title,
  .whoweare-title,
  .service-img-title,
  .approach-feature-title,
  .proj-facts-title,
  .proj-detail-title,
  .value-title,
  .strength-title,
  .team-name,
  .hstat-label {
    letter-spacing: .012em !important;
  }
}

/* ────────────────────────────────────────────
   STORY TYPE SERVICES LAYOUT (ANIMATED)
──────────────────────────────────────────── */
.story-layout-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
  gap: 15px;
}

.story-pillar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  position: relative;
}

/* Pillar 1 & 3: Cards */
.story-card {
  padding: 30px 24px;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}

.story-card .story-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.dark-card {
  background: var(--charcoal);
  color: var(--white);
}
.dark-card .story-icon {
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.dark-card h4 { color: var(--white); font-family: var(--font-h); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px;}
.dark-card p { color: rgba(255,255,255,.7); font-size: .85rem; margin: 0; line-height: 1.4; }

.light-card {
  background: var(--white);
  color: var(--charcoal);
}
.border-card {
  border: 1px solid var(--border);
}
.light-card .story-icon {
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--charcoal);
}
.light-card h4 { color: var(--charcoal); font-family: var(--font-h); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px;}
.light-card p { color: var(--text-muted); font-size: .85rem; margin: 0; line-height: 1.4; }

.story-photo-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border: 1px solid rgba(255,255,255,.35);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-photo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(7,11,18,.72) 10%, rgba(7,11,18,.45) 55%, rgba(7,11,18,.8) 100%);
}

.story-photo-card > * {
  position: relative;
  z-index: 1;
}

.story-photo-card .story-icon {
  margin: 0 0 14px;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  backdrop-filter: blur(2px);
}

.story-photo-card h4 {
  color: var(--white);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

.story-photo-card p {
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  margin: 0;
  line-height: 1.4;
  max-width: 20ch;
}

.story-client-photo {
  background-image: url('../images/The Client.webp');
}

.story-execution-photo {
  background-image: url('../images/Project Execution.webp');
}


/* PROJEX Middle Pillar */
.story-projex {
  flex: 1.3; /* giving it slightly more space */
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 16px 48px rgba(35,137,202,.12);
  text-align: center;
}

.story-projex-header .highlight-text {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 20px;
}

.story-services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-decoration: none !important;
  color: var(--charcoal);
  text-align: left;
  transition: all .3s ease;
}

.story-service-card:hover {
  border-color: var(--accent);
  background: #fff;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.highlight-border {
  border-left: 4px solid var(--accent);
}

.story-service-card i {
  font-size: 1.3rem;
  color: var(--accent);
  background: rgba(35,137,202,.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.story-service-card h5 {
  margin: 0 0 2px;
  font-family: var(--font-h);
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
}

.story-service-card span {
  font-size: .75rem;
  color: var(--text-muted);
}

/* Bridges */
.story-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  flex: 0.6;
  position: relative;
}

.bridge-lines {
  width: 100%;
  height: 24px;
  position: relative;
  margin-bottom: 8px;
}

.bridge-lines::before,
.bridge-lines::after {
  content: '';
  position: absolute;
  height: 2px;
  background: rgba(0,0,0,.08);
  width: 100%;
  left: 0;
}
.bridge-lines::before { top: 6px; }
.bridge-lines::after { bottom: 6px; }

/* Flowing dots */
.flow-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  opacity: 0;
}

.move-right {
  top: 4px;
  animation: moveR 2.5s infinite linear;
}
.move-left {
  bottom: 4px;
  animation: moveL 2.5s infinite linear 1.25s;
}

.bridge-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  text-align: center;
  line-height: 1.2;
  padding: 0 4px;
}

/* Keyframes */
@keyframes moveR {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes moveL {
  0% { right: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { right: 100%; opacity: 0; }
}

/* Responsive */
@media (max-width: 991px) {
  .story-layout-wrapper {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 10px 15px;
    gap: 16px;
  }
  
  .story-pillar {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
  }

  .story-client,
  .story-construction {
    max-width: 340px;
  }
  
  .story-projex {
    padding: 24px;
    min-width: 0;
  }
  
  .story-bridge {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
    min-width: 0;
  }
  
  .bridge-lines {
    width: 2px;
    height: 48px;
    background: var(--accent);
    opacity: 0.5;
    margin: 0;
    border: none;
  }
  
  /* Hide the horizontal tracking lines on mobile */
  .bridge-lines::before, 
  .bridge-lines::after {
    display: none;
  }
  
  /* Animate dots vertically instead of horizontally */
  .flow-dot {
    display: block;
    left: -2px; /* Centered over 2px line */
    top: 0;
    animation: moveDown 2.5s infinite linear !important;
  }
  .flow-dot.move-left {
    animation-delay: 1.25s !important;
  }

  @keyframes moveDown {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
  
  .bridge-label {
    font-size: 0.9rem;
    white-space: normal;
    text-align: left;
    max-width: 200px;
  }
  
  .story-card { padding: 24px; }
  .story-photo-card {
    min-height: 200px;
    padding: 20px 18px;
    background-position: center top;
  }
  .story-photo-card h4 { font-size: 1.6rem; }
}

@media (max-width: 767px) {
  .story-client,
  .story-construction {
    max-width: 330px;
  }

  .story-photo-card {
    min-height: 172px;
    padding: 14px;
    background-position: center top;
  }

  .story-photo-card .story-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .story-photo-card h4 {
    font-size: 1.25rem;
    margin-bottom: 4px;
  }

  .story-photo-card p {
    font-size: 0.84rem;
    max-width: 25ch;
  }

  .story-projex-header .highlight-text { font-size: 1.15rem; margin-bottom: 12px; }
  .story-service-card i { width: 36px; height: 36px; font-size: 1.25rem; }
  .story-service-card h5 { font-size: 1rem; }
  .story-service-card span { font-size: 0.8rem; }
}
