/* About Page Stylesheet
 * ---------------------
 * Page-specific styles for the About Us section.
 */

/* ─────────────────────────────────────────────
   §1 — Self-Hosted Variable Fonts
   ───────────────────────────────────────────── */

@font-face {
  font-family: Inter;
  src: url("/en/font/Inter/Inter-VariableFont_opsz,wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/en/font/Inter/Inter-Italic-VariableFont_opsz,wght.woff2")
    format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/en/font/Space_Grotesk/SpaceGrotesk-VariableFont_wght.woff2")
    format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/en/font/Source_Serif_4/SourceSerif4-VariableFont_opsz,wght.woff2")
    format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/en/font/Source_Serif_4/SourceSerif4-Italic-VariableFont_opsz,wght.woff2")
    format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Arabic VF";
  src: url("/ar/font/Noto_Sans_Arabic/NotoSansArabic-VariableFont_wdth,wght.woff2")
    format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Readex Pro VF";
  src:
    url("/fa/font/Readex_Pro/ReadexPro-VariableFont_HEXP,wght.woff2")
      format("woff2"),
    url("/ar/font/Readex_Pro/ReadexPro-VariableFont_HEXP,wght.woff2")
      format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Naskh Arabic VF";
  src: url("/ar/font/Noto_Naskh_Arabic/NotoNaskhArabic-VariableFont_wght.woff2")
    format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* === FA: Yekan Bakh FaNum (400, 500, 600, 700, 800, 300) === */
@font-face {
  font-family: "Yekan Bakh FaNum";
  src:
    url("/fa/font/Yekan_Bakh/YekanBakhFaNum-Regular.woff2") format("woff2"),
    url("/fa/font/Yekan_Bakh/YekanBakhFaNum-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh FaNum";
  src:
    url("/fa/font/Yekan_Bakh/YekanBakhFaNum-Medium.woff2") format("woff2"),
    url("/fa/font/Yekan_Bakh/YekanBakhFaNum-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh FaNum";
  src:
    url("/fa/font/Yekan_Bakh/YekanBakhFaNum-SemiBold.woff2") format("woff2"),
    url("/fa/font/Yekan_Bakh/YekanBakhFaNum-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh FaNum";
  src:
    url("/fa/font/Yekan_Bakh/YekanBakhFaNum-Bold.woff2") format("woff2"),
    url("/fa/font/Yekan_Bakh/YekanBakhFaNum-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh FaNum";
  src:
    url("/fa/font/Yekan_Bakh/YekanBakhFaNum-ExtraBold.woff2") format("woff2"),
    url("/fa/font/Yekan_Bakh/YekanBakhFaNum-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh FaNum";
  src:
    url("/fa/font/Yekan_Bakh/YekanBakhFaNum-Light.woff2") format("woff2"),
    url("/fa/font/Yekan_Bakh/YekanBakhFaNum-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ─────────────────────────────────────────────
   §2 — Design Tokens (Page-Scoped)
   ───────────────────────────────────────────── */
:root {
  /* Typography */
  --idx-ff-display: "Space Grotesk", system-ui, sans-serif;
  --idx-ff-body: "Source Serif 4", georgia, serif;
  --idx-ff-ui: "Inter", system-ui, sans-serif;

  /* Pharmaceutical Teal & Cyber Cyan & Clinical Sage palette */
  --idx-teal: #0f766e;
  --idx-cyan: #38bdf8;
  --idx-sage: #99b8ba;
  --idx-sage-soft: rgb(153 184 186 / 12%);
  --idx-sage-border: rgb(153 184 186 / 38%);
  --idx-teal-soft: rgb(15 118 110 / 2%);
  --idx-teal-medium: rgb(15 118 110 / 4%);
  --idx-teal-border: rgb(15 118 110 / 5%);
  --idx-navy: #0f172a;
  --idx-slate: #334155;
  --idx-muted: #64748b;
  --idx-surface: #f8fafc;
  --idx-white: #fff;
  --idx-border: rgb(15 23 42 / 7%);
  --idx-border-soft: rgb(15 23 42 / 5%);

  /* Geometry */
  --idx-r-xl: 40px;
  --idx-r-lg: 28px;
  --idx-r-md: 16px;
  --idx-r-sm: 10px;
  --idx-r-cap: 999px;

  /* Shadows */
  --idx-shadow-hero:
    0 32px 80px rgb(15 23 42 / 12%), 0 8px 24px rgb(15 23 42 / 7%);
  --idx-shadow-inner:
    0 12px 32px rgb(15 23 42 / 18%), 0 4px 12px rgb(15 23 42 / 10%);
  --idx-shadow-card: 0 8px 32px rgb(15 23 42 / 4%);
  --idx-shadow-badge: 0 8px 24px rgb(15 23 42 / 14%);

  /* Motion */
  --idx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --idx-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --idx-speed: 0.26s;
  --idx-speed-slow: 0.5s;
  --idx-intro: 0.7s;
}

/* RTL: swap typography stacks and reverse physical animations */
:root[dir="rtl"] {
  --dir-factor: -1;
  --idx-ff-display:
    "Readex Pro VF", "Noto Sans Arabic VF", system-ui, sans-serif;
  --idx-ff-body: "Noto Naskh Arabic VF", serif;
  --idx-ff-ui: "Readex Pro VF", "Noto Sans Arabic VF", system-ui, sans-serif;
}

/* Persian: Full Yekan Bakh FaNum System for Display, Body, UI & Digits */
:root:lang(fa),
:root[dir="rtl"]:lang(fa),
html[lang="fa"] {
  --idx-ff-display:
    "Yekan Bakh FaNum", "Yekan Bakh", system-ui, -apple-system, sans-serif;
  --idx-ff-body:
    "Yekan Bakh FaNum", "Yekan Bakh", system-ui, -apple-system, sans-serif;
  --idx-ff-ui:
    "Yekan Bakh FaNum", "Yekan Bakh", system-ui, -apple-system, sans-serif;
}

/* ─────────────────────────────────────────────
   §3 — Global Canvas Base
   ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  text-size-adjust: 100%;
  text-rendering: optimizelegibility;
}

body {
  background: var(--idx-white);
  color: var(--idx-navy);
  margin: 0;
  padding: 0;
  font-family: var(--idx-ff-body);
  font-optical-sizing: auto;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  /* Clear fixed capsule nav height + establish stacking context */
  position: relative;
  padding-block-start: clamp(80px, 10vh, 100px);
  overflow: visible;
}

/* ─────────────────────────────────────────────
   §4 — Keyframes (GPU-composited only)
   ───────────────────────────────────────────── */
@keyframes idx-glow-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale3d(1, 1, 1);
  }
  50% {
    opacity: 1;
    transform: scale3d(1.05, 1.05, 1);
  }
}

@keyframes idx-text-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes idx-label-fade {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes idx-visual-reveal {
  from {
    opacity: 0;
    transform: scale3d(0.9, 0.9, 1);
    clip-path: inset(5% 5% 5% 5% round 40px);
  }

  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
    clip-path: inset(0% 0% 0% 0% round 40px);
  }
}

@keyframes idx-inner-float {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale3d(0.92, 0.92, 1);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
}

@keyframes idx-metric-float {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ─────────────────────────────────────────────
   §5 — Hero Entry & Facility Showcase
   ───────────────────────────────────────────── */

.about-hero {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-block: clamp(80px, 12vh, 160px);
  padding-inline: clamp(24px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  z-index: 0;
}

/* Ambient biological glow matching the home page */
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 70% 60% at 82% 18%,
      rgb(13 148 136 / 4%) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 55% 50% at 16% 80%,
      rgb(14 165 233 / 2.8%) 0%,
      transparent 55%
    );
  animation: idx-glow-pulse 10s var(--idx-ease) infinite;
}

/* Phase 1: Epoc Reveal */
.about-hero-header {
  position: relative;
  text-align: center;
  max-width: 900px;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(30px) scale(0.98);
}

.about-hero.is-visible .about-hero-header.idx-stagger-1 {
  transition:
    opacity 1000ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1000ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.about-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  position: relative;
  inset-inline-start: -3%; /* Shift visually left by ~3% */
  font-family: var(--idx-ff-display);
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  cursor: default;
}

.about-title-text {
  /* Diagonal Shine Wipe Effect */
  color: var(--idx-navy); /* Fallback */
  background-image: linear-gradient(
    110deg,
    var(--idx-navy) 40%,
    var(--idx-teal) 50%,
    var(--idx-navy) 60%
  );
  background-size: 250% auto;
  background-position: 100% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-title:hover .about-title-text {
  background-position: 0% center;
}

.about-title-logo-wrapper {
  position: relative;
  display: inline-flex;
  margin-inline-start: -0.25em; /* Optically center by trimming the transparent space on the left */
  margin-inline-end: -0.45em; /* Moved even closer to 'E' */
  transform: translateY(
    0.08em
  ); /* Nudge down to align the visible V with the E baseline */
}

:root:lang(fa) .about-title-logo-wrapper,
html[lang="fa"] .about-title-logo-wrapper {
  transform: translateY(
    calc(0.08em - 17px)
  ); /* Optically elevated by additional 8.5px (17px total) for Persian Yekan Bakh typography */
}

/* Moving Sheen mapped to the 3D logo */
.about-title-logo-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Sync the gradient angle and timing with the text */
  background-image: linear-gradient(
    110deg,
    transparent 40%,
    var(--idx-teal) 50%,
    /* Match the exact color of the text wipe */ transparent 60%
  );
  background-size: 250% auto;
  background-position: 100% center;
  transition: background-position 1.8s cubic-bezier(0.22, 1, 0.36, 1);

  /* Mask exactly to the image's alpha channel */
  -webkit-mask-image: url("/assets/branding/logo-header.webp");
  mask-image: url("/assets/branding/logo-header.webp");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;

  mix-blend-mode: screen; /* Brighter teal overlay that matches the text */
  pointer-events: none;
}

.about-title:hover .about-title-logo-wrapper::after {
  background-position: 0% center;
}

.about-title-logo {
  height: 2em; /* 10% larger */
  width: auto;
  object-fit: contain;
  display: block;
}

/* Dynamic Glowing Divider */
.about-hero-divider {
  width: 40px;
  height: 2px;
  margin: 12px auto 24px auto; /* Reduced top margin to pull up the line and motto */
  background: linear-gradient(90deg, transparent, var(--idx-teal), transparent);
  transition:
    width 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s ease;
  opacity: 0.5;
  border-radius: 2px;
}

.about-hero-header:hover .about-hero-divider {
  width: 200px;
  opacity: 1;
  background: linear-gradient(90deg, transparent, var(--idx-cyan), transparent);
}

.about-motto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  max-width: 800px;
  margin-inline: auto;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.motto-hook {
  font-family: var(--idx-ff-body);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-style: italic;
  font-weight: 400;
  color: var(--idx-teal);
  transition: color 0.6s ease;
}

.motto-core {
  font-family: var(--idx-ff-ui);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--idx-slate);
  line-height: 1.6;
  transition: color 0.6s ease;
}

.about-hero-header:hover .motto-hook {
  color: var(--idx-navy);
}

.about-hero-header:hover .motto-core {
  color: var(--idx-teal);
}

.about-hero-header:hover .about-motto {
  transform: translateY(-2px);
}

:root[dir="rtl"] .motto-hook {
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2rem);
  text-align: center;
}

:root[dir="rtl"] .motto-core {
  letter-spacing: 0;
  font-weight: 500;
  text-align: center;
}

/* Phase 2: Liquid Glass Shell */
.about-facility-showcase {
  width: 100%;
  max-width: 1200px; /* Increased by 20% for desktop */
  opacity: 0;
  transform: scale(0.96);
}

.about-facility-showcase.is-visible {
  transition:
    opacity 800ms cubic-bezier(0.16, 1, 0.3, 1) 100ms,
    transform 800ms cubic-bezier(0.16, 1, 0.3, 1) 100ms;
  opacity: 1;
  transform: scale(1);
}

.facility-glass-container {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9; /* Cinematic elongated aspect ratio */
  border-radius: 24px;
  box-shadow: var(--idx-shadow-hero);
}

/* Layer 1: Backdrop (Highly transparent glass behind image) */
.liquid-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 40px rgba(15, 23, 42, 0.08);
  pointer-events: none;
}

/* Layer 2: Removed (Specular Rim) */
.liquid-specular-rim {
  display: none;
}

/* Layer 3: Facility Asset */
.facility-image-wrapper {
  position: absolute;
  inset: 8px; /* Reduced gap (bezel) */
  z-index: 2;
  border-radius: calc(24px - 6px);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.facility-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Phase 3: Narrative Manifesto (Minimal Luxury Column) */
.about-narrative {
  max-width: 800px;
  margin-inline: auto;
  padding-block: clamp(60px, 8vw, 90px);
  padding-inline: clamp(24px, 5vw, 48px);
  text-align: center;
}

.about-narrative .narrative-title {
  font-family: var(--idx-ff-display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 200;
  color: var(--idx-navy);
  margin: 0 0 clamp(24px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;

  /* Animation Base */
  opacity: 0;
  transform: translate3d(-60px, 0, 0);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 100ms,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) 100ms;
}

:root[dir="rtl"] .about-narrative .narrative-title {
  letter-spacing: 0;
  font-weight: 300;
  opacity: 0; /* Maintain animation base state (overridden by higher specificity) */
  transform: translate3d(60px, 0, 0);
}

.about-narrative p {
  font-family: var(--idx-ff-body);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--idx-slate);
  text-wrap: pretty;
  margin: 0 auto;

  /* Animation Base (Delayed) */
  opacity: 0;
  transform: translate3d(60px, 0, 0);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 200ms,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) 200ms;
}

:root[dir="rtl"] .about-narrative p {
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
  opacity: 0; /* Maintain animation base state (overridden by higher specificity) */
  transform: translate3d(-60px, 0, 0);
}

.about-narrative.is-visible .narrative-title,
.about-narrative.is-visible p {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* RTL: Override the higher-specificity base-state rules on scroll reveal */
:root[dir="rtl"] .about-narrative.is-visible .narrative-title,
:root[dir="rtl"] .about-narrative.is-visible p {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ─────────────────────────────────────────────
   §6 — Accessibility Utilities
   ───────────────────────────────────────────── */

/* Scroll margin for anchored headings (clears fixed nav) */
:where(h1, h2, h3, [id]) {
  scroll-margin-top: calc(80px + 12px);
}

/* Skip Link */
.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  transform: translate3d(-150%, 0, 0);
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  background: transparent;
  color: inherit;
  z-index: 20000;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
  inline-size: auto;
  block-size: auto;
  padding: 8px 14px;
  background: var(--idx-surface);
  color: var(--idx-navy);
  border: 1px solid var(--idx-border);
  border-radius: 8px;
  font-family: var(--idx-ff-ui);
  font-size: 14px;
  font-weight: 500;
  outline: 2px solid var(--idx-teal);
  outline-offset: 2px;
}

/* Prevent horizontal scroll globally for this page */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* ─────────────────────────────────────────────
   §7 — Partners & Collaborators Section
   ───────────────────────────────────────────── */

.about-partners {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-block: clamp(80px, 12vw, 140px);
  padding-inline: clamp(24px, 6vw, 64px);
  z-index: 1;
}

.partners-header {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  margin-block-end: clamp(60px, 8vw, 100px);

  /* Stagger base */
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 30px, 0);
}

.about-partners.is-visible .partners-header {
  transition:
    opacity 1000ms var(--idx-ease),
    filter 1000ms var(--idx-ease),
    transform 1000ms var(--idx-ease);
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.partners-main-title {
  font-family: var(--idx-ff-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--idx-navy);
  margin-block-end: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.partners-intro-lead {
  font-family: var(--idx-ff-body);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--idx-slate);
  text-wrap: pretty;
}

:root[dir="rtl"] .partners-intro-lead {
  font-weight: 400;
  line-height: 1.8;
}

.partners-matrix {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 8vw, 100px);
}

.partner-group-title {
  /* Stagger base */
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 30px, 0);
}

.about-partners.is-visible .partner-group-title {
  transition:
    opacity 1000ms var(--idx-ease) 150ms,
    filter 1000ms var(--idx-ease) 150ms,
    transform 1000ms var(--idx-ease) 150ms;
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

/* Delay subsequent groups titles */
.about-partners.is-visible .partner-group:nth-child(2) .partner-group-title {
  transition-delay: 300ms;
}

.partner-group-title {
  font-family: var(--idx-ff-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: var(--idx-navy);
  margin-block-end: 32px;
  padding-block-end: 16px;
  border-block-end: 1px solid var(--idx-border);
}

.partner-subgrid-title {
  font-family: var(--idx-ff-ui);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--idx-teal);
  margin-block-end: 24px;
}

.mt-medium {
  margin-block-start: clamp(40px, 5vw, 60px);
}

.partner-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(24px, 4vw, 40px);
}

/* Glass Card Implementation */
.partner-glass-card {
  position: relative;
  border-radius: var(--idx-r-lg);
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  isolation: isolate;
  min-height: 280px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* Staggered Entrance Base */
  opacity: 0;
  transform: translateY(40px);
  translate: 0 0;
  transition:
    opacity 0.8s var(--idx-ease),
    transform 0.8s var(--idx-ease),
    translate 0.4s var(--idx-ease),
    z-index 0s;
}

.partner-glass-card.is-entered {
  opacity: 1;
  transform: translateY(0);
}

.partner-glass-card.is-entered:hover,
.partner-glass-card.is-entered.is-focusing,
.partner-glass-card.is-entered.is-touched {
  translate: 0 -6px;
  z-index: 10;
}

/* Liquid Container sits behind content */
.partner-glass-card .nav-pill-glass-container {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  box-shadow: var(--idx-shadow-card);
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.partner-glass-card:hover .nav-pill-glass-container,
.partner-glass-card.is-focusing .nav-pill-glass-container,
.partner-glass-card.is-touched .nav-pill-glass-container {
  border: 1px solid var(--idx-sage-border);
  box-shadow: var(--idx-shadow-hero);
}

.partner-glass-card .liquid-backdrop {
  position: absolute;
  inset: -20px; /* Overextend for refraction */
  background: var(--idx-teal-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: inherit;
  pointer-events: none;
  transition:
    filter 0.28s ease,
    background 0.4s ease;
}

.partner-glass-card:hover .liquid-backdrop,
.partner-glass-card.is-focusing .liquid-backdrop,
.partner-glass-card.is-touched .liquid-backdrop {
  background: var(--idx-teal-medium);
}

.partner-glass-card .liquid-specular-rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--idx-teal-border);
  pointer-events: none;
  /* Base sweep */
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 40%,
    var(--idx-teal-medium) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  transition: background-position 0.6s var(--idx-ease);
}

.partner-glass-card:hover .liquid-specular-rim,
.partner-glass-card.is-focusing .liquid-specular-rim,
.partner-glass-card.is-touched .liquid-specular-rim {
  background-position: 0 0;
}

.partner-glass-card .liquid-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.partner-name {
  font-family: var(--idx-ff-display);
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  font-weight: 600;
  color: var(--idx-navy);
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.partner-desc {
  font-family: var(--idx-ff-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--idx-slate);
  margin: 0;
}

/* Background Ambience Orbs for the section */
.about-partners::before,
.about-partners::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 1;
}

.about-partners::before {
  top: 10%;
  inset-inline-start: -5%;
  width: 500px;
  height: 500px;
  background: var(--idx-teal-medium);
}

.about-partners::after {
  bottom: 20%;
  inset-inline-end: -10%;
  width: 600px;
  height: 600px;
  background: var(--idx-sage-soft);
}

.partners-summary-matrix {
  position: relative;
  margin-block-start: clamp(100px, 12vw, 160px);
  padding: clamp(60px, 8vw, 100px) clamp(20px, 4vw, 40px);
  border-radius: var(--idx-r-xl);
  text-align: center;
  isolation: isolate;
  background: transparent;
  /* Stagger base */
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 30px, 0);
}

.matrix-glass-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.1) 0%,
    rgba(248, 250, 252, 0.6) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(15, 118, 110, 0.1);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.03);
}

.matrix-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 0%, var(--idx-teal-soft), transparent 60%),
    radial-gradient(circle at 50% 100%, var(--idx-teal-medium), transparent 60%);
  pointer-events: none;
}

.about-partners.is-visible .partners-summary-matrix {
  transition:
    opacity 1000ms var(--idx-ease) 450ms,
    filter 1000ms var(--idx-ease) 450ms,
    transform 1000ms var(--idx-ease) 450ms;
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.partners-conclusion-quote {
  font-family: var(--idx-ff-display);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 500;
  color: var(--idx-navy);
  line-height: 1.5;
  margin: 0;
  max-width: 1100px;
  margin-inline: auto;
  position: relative;
  letter-spacing: -0.01em;
  z-index: 2;
}

:root[dir="rtl"] .partners-conclusion-quote {
  line-height: 1.8;
  font-weight: 400;
}

/* ==========================================================================
   §9 — Geospatial Infrastructure Section
   ========================================================================== */

.about-infrastructure {
  position: relative;
  padding-block: clamp(80px, 12vw, 160px);
  padding-inline: clamp(20px, 5vw, 80px);
  max-width: 1400px;
  margin-inline: auto;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-block-size: auto 900px;
}

/* Ambient decorative blobs */
.about-infrastructure::before,
.about-infrastructure::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}

.about-infrastructure::before {
  top: -10%;
  inset-inline-start: -8%;
  width: 500px;
  height: 500px;
  background: var(--idx-teal-soft);
}

.about-infrastructure::after {
  bottom: -5%;
  inset-inline-end: -6%;
  width: 400px;
  height: 400px;
  background: var(--idx-sage-soft);
}

/* Section Header */
.infra-header {
  text-align: center;
  margin-block-end: clamp(48px, 6vw, 80px);
  /* Stagger base */
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 30px, 0);
}

.about-infrastructure.is-visible .infra-header {
  transition:
    opacity 800ms var(--idx-ease),
    filter 800ms var(--idx-ease),
    transform 800ms var(--idx-ease);
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.infra-main-title {
  font-family: var(--idx-ff-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--idx-navy);
  letter-spacing: -0.02em;
  margin: 0;
  margin-block-end: 16px;
}

.infra-lead-text {
  font-family: var(--idx-ff-body);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--idx-slate);
  line-height: 1.7;
  max-width: 780px;
  margin-inline: auto;
  margin-block: 0;
}

/* 2-Column Grid */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: clamp(28px, 4vw, 48px);
}

/* 3D Flip Card Container */
.infra-flip-card {
  position: relative;
  width: 100%;
  height: clamp(560px, 52vw, 680px);
  perspective: 1200px;
  transform: translateZ(0); /* GPU Acceleration */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* Staggered Entrance */
  opacity: 0;
  transform: translateY(40px);
  translate: 0 0;
  transition:
    opacity 0.8s var(--idx-ease),
    transform 0.8s var(--idx-ease),
    translate 0.4s var(--idx-ease);
}

.infra-flip-card.is-entered {
  opacity: 1;
  transform: translateY(0);
}

.infra-flip-card.is-entered:hover,
.infra-flip-card.is-entered.is-flipped {
  translate: 0 -6px;
}

/* Flip Engine */
.infra-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--idx-shadow-card);
  border-radius: var(--idx-r-lg);
}

.infra-flip-card:hover .infra-card-inner,
.infra-flip-card.is-flipped .infra-card-inner,
.infra-flip-card:focus-visible .infra-card-inner {
  transform: rotateY(180deg);
  box-shadow: var(--idx-shadow-hero);
}

/* :focus-visible ring for keyboard navigation */
.infra-flip-card:focus-visible {
  outline: 2px solid var(--idx-teal);
  outline-offset: 4px;
  border-radius: var(--idx-r-lg);
}

:root[dir="rtl"] .infra-flip-card:hover .infra-card-inner,
:root[dir="rtl"] .infra-flip-card.is-flipped .infra-card-inner,
:root[dir="rtl"] .infra-flip-card:focus-visible .infra-card-inner {
  transform: rotateY(-180deg);
}

/* Front & Back Global Settings */
.infra-card-front,
.infra-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--idx-r-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* ── FRONT SIDE ── */
.infra-card-front {
  background: var(--idx-surface);
  transform: rotateY(0deg);
  display: flex;
  flex-direction: column;
}

.infra-card-front .nav-pill-glass-container {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.infra-card-front .liquid-backdrop {
  position: absolute;
  inset: -20px;
  background: rgba(248, 250, 252, 0.02);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: inherit;
  pointer-events: none;
}

.infra-card-front .liquid-specular-rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 40%,
    transparent 60%,
    rgba(56, 189, 248, 0.04) 100%
  );
}

/* Image Frame - 100% Full Width & Edge-to-Edge Container Fill */
.infra-image-frame {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  flex-shrink: 0;
  border-bottom: 1px solid var(--idx-border);
  overflow: hidden;
  position: relative;
  background: var(--idx-surface-soft);
}

.infra-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--idx-ease);
}

.infra-flip-card:hover .infra-image-frame img {
  transform: scale(1.04);
}

.infra-front-content {
  padding: clamp(18px, 2.5vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
  flex-grow: 1;
}

/* Card Title & Description */
.infra-card-title {
  font-family: var(--idx-ff-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--idx-navy);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}

.infra-card-subtitle {
  font-family: var(--idx-ff-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--idx-teal);
  letter-spacing: 0.02em;
  margin-block-start: 4px;
}

.infra-card-desc {
  font-family: var(--idx-ff-body);
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  color: var(--idx-slate);
  line-height: 1.55;
  margin: 0;
}

/* ── BACK SIDE (MAP) ── */
.infra-card-back {
  transform: rotateY(180deg);
  background: var(--idx-surface);
  display: flex;
  flex-direction: column;
}

:root[dir="rtl"] .infra-card-back {
  transform: rotateY(-180deg);
}

.infra-map-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.infra-map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.infra-flip-card:hover .infra-map-embed iframe,
.infra-flip-card.is-flipped .infra-map-embed iframe,
.infra-flip-card:focus-visible .infra-map-embed iframe {
  pointer-events: auto;
}

/* Back Glass Rim Overlay */
.infra-card-back .nav-pill-glass-container {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
}

.infra-card-back .liquid-specular-rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--idx-teal-border);
  box-shadow: inset 0 0 40px rgba(15, 118, 110, 0.1);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .infra-flip-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* RTL Typography Overrides */
:root[dir="rtl"] .infra-main-title {
  letter-spacing: 0;
}

:root[dir="rtl"] .infra-lead-text {
  line-height: 1.9;
}

:root[dir="rtl"] .infra-card-desc {
  line-height: 1.9;
}
