/* ===================================================
   Global Possibilities — Stylesheet
   A relationship engineering firm
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Colors */
  --navy: #011E41;
  --navy-dark: #000F21;
  --navy-light: #042E5E;
  --blue: #4361EE;
  --blue-dark: #3451D1;
  --teal: #05F2D2;
  --teal-dark: #04C9AE;
  --gold: #C5A55A;
  --white: #FFFFFF;
  --off-white: #F7F7F7;
  --black: #1F1F1F;
  --gray-100: #F0F1F5;
  --gray-200: #C5C9D6;
  --gray-300: #8B92A8;
  --gray-400: #5A6178;
  --gray-500: #3A3F52;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Typography */
  --font-heading: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Border Radius */
  --border-radius: 6px;
  --border-radius-lg: 12px;
  --border-radius-xl: 20px;

  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(5, 242, 210, 0.1);
}

/* --- Typography --- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  background: var(--navy-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
}

h4 {
  font-size: 1.125rem;
  font-weight: 500;
}

p {
  color: var(--gray-200);
  font-weight: 400;
  line-height: 1.8;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--teal-dark);
}

/* --- Utility Classes --- */
.text-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-md);
}

.text-muted {
  color: var(--gray-300);
}

.text-center {
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: 800px;
}

/* --- Background Patterns --- */
.bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.03;
  background-image: radial-gradient(circle at 1px 1px, var(--blue) 1px, transparent 0);
  background-size: 40px 40px;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg) 0;
  transition: all var(--transition-base);
  background: transparent;
}

.header--scrolled {
  background: rgba(0, 15, 33, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-md) 0;
  box-shadow: 0 1px 0 rgba(67, 97, 238, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.header__logo svg {
  width: 40px;
  height: 40px;
}

.header__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header__logo-text span:first-child {
  font-weight: 700;
  font-size: 1rem;
}

.header__logo-text span:last-child {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--gray-300);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  color: var(--gray-200);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  transition: color var(--transition-base);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--white);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  border: 1px solid rgba(5, 242, 210, 0.3);
  color: var(--teal);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  text-decoration: none;
}

.nav__cta:hover {
  background: rgba(5, 242, 210, 0.08);
  border-color: var(--teal);
  color: var(--teal);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Sections --- */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section--navy {
  background: var(--navy);
}

.section--dark {
  background: var(--navy-dark);
}

.section--gradient {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.section__header {
  margin-bottom: var(--space-3xl);
}

.section__header p.text-label {
  margin-bottom: var(--space-sm);
}

.section__header h2 {
  margin-bottom: var(--space-lg);
}

.section__header .section__subtitle {
  color: var(--gray-200);
  font-weight: 400;
  max-width: 600px;
  line-height: 1.8;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-5xl) 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.08) 0%, transparent 70%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 242, 210, 0.05) 0%, transparent 70%);
}

.hero__content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero__label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--teal);
}

.hero h1 {
  margin-bottom: var(--space-xl);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--gray-200);
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
}

.hero__actions {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

/* Page Hero (shorter, for interior pages) */
.hero--page {
  min-height: 50vh;
  padding-top: calc(var(--space-5xl) + 80px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--teal);
  color: var(--navy-dark);
}

.btn--primary:hover {
  background: var(--teal-dark);
  color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(5, 242, 210, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--outline:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--teal);
  padding-left: 0;
}

.btn--ghost:hover {
  color: var(--white);
}

.btn--ghost svg {
  transition: transform var(--transition-base);
}

.btn--ghost:hover svg {
  transform: translateX(4px);
}

/* --- Cards --- */
.card {
  background: rgba(1, 30, 65, 0.6);
  border: 1px solid rgba(67, 97, 238, 0.12);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
}

.card:hover {
  border-color: rgba(67, 97, 238, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  background: rgba(5, 242, 210, 0.08);
  margin-bottom: var(--space-lg);
}

.card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--teal);
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.card__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-md);
}

.card__metrics {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(67, 97, 238, 0.1);
}

.card__metric {
  font-size: 0.8125rem;
}

.card__metric-value {
  font-weight: 700;
  color: var(--teal);
  display: block;
}

.card__metric-label {
  color: var(--gray-300);
  font-weight: 400;
}

/* --- Grids --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* --- Stats Section --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat {
  padding: var(--space-2xl) var(--space-lg);
}

.stat__number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--teal);
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--gray-300);
  font-weight: 400;
}

/* --- Service Blocks --- */
.service-block {
  padding: var(--space-4xl) 0;
  border-bottom: 1px solid rgba(67, 97, 238, 0.08);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.service-block__number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.service-block__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: var(--space-lg);
}

.service-block__desc {
  font-size: 1rem;
  color: var(--gray-200);
  font-weight: 400;
  line-height: 1.8;
}

.service-block__bullets {
  list-style: none;
  padding: 0;
}

.service-block__bullets li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(67, 97, 238, 0.08);
  color: var(--gray-200);
  font-size: 0.9375rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.service-block__bullets li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.service-block__bullets li:last-child {
  border-bottom: none;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: var(--space-3xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--teal), rgba(67, 97, 238, 0.2));
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-3xl);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-3xl));
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--navy-dark);
  transform: translateX(-4.5px);
}

.timeline__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.timeline__text {
  font-size: 0.9375rem;
  color: var(--gray-200);
  font-weight: 400;
  line-height: 1.7;
}

/* --- CTA Band --- */
.cta-band {
  padding: var(--space-4xl) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.cta-band h2 {
  margin-bottom: var(--space-lg);
}

.cta-band p {
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  padding: var(--space-4xl) 0 var(--space-xl);
  border-top: 1px solid rgba(67, 97, 238, 0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--gray-300);
  margin-top: var(--space-md);
  max-width: 300px;
}

.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: var(--space-lg);
}

.footer__col ul {
  list-style: none;
  padding: 0;
}

.footer__col li {
  margin-bottom: var(--space-sm);
}

.footer__col a {
  font-size: 0.875rem;
  color: var(--gray-300);
  font-weight: 400;
  transition: color var(--transition-base);
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--white);
}

.footer__office-name {
  font-weight: 500;
  color: var(--white);
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
}

.footer__office-addr {
  font-size: 0.8125rem;
  color: var(--gray-300);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.footer__additional {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 400;
  font-style: italic;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(67, 97, 238, 0.08);
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-weight: 400;
}

.footer__attribution a {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer__attribution a:hover {
  color: var(--gray-300);
}

/* --- Insight Card --- */
.insight-card {
  background: rgba(1, 30, 65, 0.6);
  border: 1px solid rgba(67, 97, 238, 0.12);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
}

.insight-card:hover {
  border-color: rgba(67, 97, 238, 0.25);
  transform: translateY(-2px);
}

.insight-card__type {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-md);
}

.insight-card h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

.insight-card p {
  font-size: 0.875rem;
  line-height: 1.7;
}

/* --- Contact Form / Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
}

.contact-info__item {
  margin-bottom: var(--space-2xl);
}

.contact-info__item h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.contact-info__item p {
  font-size: 0.9375rem;
  color: var(--gray-200);
  font-weight: 400;
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-200);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(1, 30, 65, 0.6);
  border: 1px solid rgba(67, 97, 238, 0.15);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Team Card --- */
.team-card {
  background: rgba(1, 30, 65, 0.6);
  border: 1px solid rgba(67, 97, 238, 0.12);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.team-card:hover {
  border-color: rgba(67, 97, 238, 0.25);
  transform: translateY(-2px);
}

.team-card__photo {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card__photo svg {
  width: 64px;
  height: 64px;
  color: var(--gray-400);
}

.team-card__info {
  padding: var(--space-xl);
}

.team-card__info h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.team-card__role {
  font-size: 0.875rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.team-card__bio {
  font-size: 0.8125rem;
  color: var(--gray-300);
  font-weight: 400;
  line-height: 1.6;
}

/* --- Vision/Mission Cards --- */
.vm-card {
  background: rgba(1, 30, 65, 0.6);
  border: 1px solid rgba(67, 97, 238, 0.12);
  border-radius: var(--border-radius-lg);
  padding: var(--space-3xl);
  border-top: 3px solid var(--teal);
}

.vm-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-lg);
}

.vm-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

.vm-card p {
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* --- Pillar Cards --- */
.pillar-card {
  background: rgba(1, 30, 65, 0.6);
  border: 1px solid rgba(67, 97, 238, 0.12);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
}

.pillar-card:hover {
  border-color: rgba(5, 242, 210, 0.2);
}

.pillar-card__number {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(5, 242, 210, 0.15);
  margin-bottom: var(--space-lg);
}

.pillar-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.pillar-card p {
  font-size: 0.875rem;
  line-height: 1.7;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-up.visible,
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger.visible > *:nth-child(8) { transition-delay: 0.4s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 15, 33, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2xl);
    transition: right var(--transition-base);
    z-index: 999;
  }

  .nav.active {
    right: 0;
  }

  .nav__link {
    font-size: 1.25rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero {
    min-height: 80vh;
    padding-top: 120px;
  }

  .hero--page {
    min-height: 40vh;
    padding-top: 120px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .service-block__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: var(--space-3xl) 0;
  }
}

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

  .grid-4 {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.75rem;
  }
}

/* --- Clients Grid --- */
.clients-grid {
  max-width: 1000px;
  margin: 0 auto;
}

.clients-row {
  margin-bottom: var(--space-2xl);
}

.clients-row:last-child {
  margin-bottom: 0;
}

.clients-row__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.clients-row__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
}

.client-name {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--gray-200);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid rgba(67, 97, 238, 0.12);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.client-name:hover {
  border-color: rgba(5, 242, 210, 0.3);
  color: var(--white);
}

/* --- Founder Featured Card --- */
.founder-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-3xl);
  background: rgba(1, 30, 65, 0.6);
  border: 1px solid rgba(67, 97, 238, 0.15);
  border-radius: var(--border-radius-lg);
  padding: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  border-top: 3px solid var(--teal);
}

.founder-card__photo {
  width: 280px;
  height: 350px;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, var(--navy-light), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.founder-card__photo svg {
  width: 80px;
  height: 80px;
  color: var(--gray-300);
}

.founder-card__info h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-xs);
}

.founder-card__role {
  color: var(--teal);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.founder-card__bio p {
  color: var(--gray-200);
  font-weight: 400;
  line-height: 1.8;
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

.founder-card__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.credential-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(5, 242, 210, 0.08);
  border: 1px solid rgba(5, 242, 210, 0.2);
  border-radius: var(--border-radius);
  color: var(--teal);
}

/* --- Spotlight Section --- */
.spotlight {
  background: rgba(1, 30, 65, 0.5);
  border: 1px solid rgba(67, 97, 238, 0.15);
  border-radius: var(--border-radius-lg);
  padding: var(--space-3xl);
  border-left: 4px solid var(--teal);
}

.spotlight h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: var(--space-lg);
}

.spotlight p {
  color: var(--gray-200);
  font-weight: 400;
  line-height: 1.8;
}

.spotlight__entities {
  margin-top: var(--space-2xl);
}

.spotlight__entity {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(67, 97, 238, 0.1);
  font-size: 0.9375rem;
}

.spotlight__entity-name {
  font-weight: 700;
  color: var(--white);
}

.spotlight__entity-desc {
  color: var(--gray-300);
  font-weight: 400;
}

/* --- Partnership Callout --- */
.partnership-callout {
  background: linear-gradient(135deg, rgba(1, 30, 65, 0.8), rgba(4, 46, 94, 0.6));
  border: 1px solid rgba(5, 242, 210, 0.2);
  border-radius: var(--border-radius-lg);
  padding: var(--space-3xl);
  border-top: 3px solid var(--teal);
}

.partnership-callout h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.partnership-callout__points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.partnership-callout__point h4 {
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.partnership-callout__point p {
  color: var(--gray-200);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .founder-card {
    grid-template-columns: 1fr;
  }

  .founder-card__photo {
    width: 100%;
    height: 250px;
  }

  .partnership-callout__points {
    grid-template-columns: 1fr;
  }

  .spotlight__entity {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .clients-row__items {
    gap: var(--space-sm);
  }

  .client-name {
    font-size: 0.8125rem;
    padding: var(--space-xs) var(--space-sm);
  }
}

/* --- Hero Background Images --- */
.hero--home {
  background: var(--navy-dark);
}

/* Hero Video */
.hero--video {
  background: var(--navy-dark);
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(1,30,65,0.78) 0%, rgba(0,15,33,0.82) 50%, rgba(1,30,65,0.75) 100%);
  z-index: 0;
}

.hero--about {
  background: linear-gradient(rgba(1,30,65,0.70), rgba(0,15,33,0.85)), url('images/sheikh-zayed-mosque.jpg') center/cover no-repeat;
}

.hero--services {
  background: linear-gradient(rgba(1,30,65,0.72), rgba(0,15,33,0.88)), url('images/dubai-marina-panorama.jpg') center/cover no-repeat;
}

.hero--cases {
  background: linear-gradient(rgba(1,30,65,0.70), rgba(0,15,33,0.85)), url('images/abu-dhabi-skyline.jpg') center/cover no-repeat;
}

.hero--people {
  background: linear-gradient(rgba(1,30,65,0.72), rgba(0,15,33,0.88)), url('images/dubai-business-bay.jpg') center/cover no-repeat;
}

.hero--contact {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
}

/* --- Client Logos (Homepage) --- */
.client-logos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2xl) var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  transition: opacity var(--transition-base);
  height: 48px;
  width: 100%;
}

.client-logo:hover {
  opacity: 1;
}

.client-logo__img {
  max-height: 40px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity var(--transition-base);
}

.client-logo:hover .client-logo__img {
  opacity: 1;
}

.client-logo__badge {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid rgba(67, 97, 238, 0.15);
  border-radius: var(--border-radius);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.client-logo:hover .client-logo__badge {
  border-color: rgba(5, 242, 210, 0.3);
}

.client-logo__brand {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.client-logo__brand--bold {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.client-logo__brand--nestle {
  font-weight: 700;
  font-style: italic;
}

.client-logo__brand--zoom {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.client-logo__brand--time {
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  padding: 2px 6px;
  font-size: 1rem;
}

.client-logo__brand--spotify {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* --- Case Study Client Logo --- */
.card__client-logo {
  margin-bottom: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

.card__client-logo-img {
  max-height: 48px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
}

/* --- Case Study Client Badge --- */
.card__client-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(67, 97, 238, 0.15);
  border: 1px solid rgba(67, 97, 238, 0.2);
  border-radius: var(--border-radius);
  padding: var(--space-xs) var(--space-sm);
  margin-bottom: var(--space-md);
}

.card__client-badge--corporate {
  background: rgba(5, 242, 210, 0.08);
  border-color: rgba(5, 242, 210, 0.2);
  color: var(--teal);
}

@media (max-width: 768px) {
  .client-logos-grid {
    gap: var(--space-lg);
  }
  
  .client-logo__brand {
    font-size: 1rem;
  }
  
  .client-logos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl) var(--space-md);
  }

  .client-logo__img {
    max-height: 28px;
    max-width: 100px;
  }

  .footer__social {
    margin-top: var(--space-md);
  }
}

/* --- Footer Social Links --- */
.footer__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gray-300);
  transition: all 0.2s ease;
}

.footer__social-link:hover {
  background: var(--blue);
  color: var(--white);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

/* --- White Section (for client logos) --- */
.section--white {
  background: var(--off-white);
}

/* --- Color Logos (no invert filter, original colors) --- */
.client-logo--color {
  opacity: 0.85;
}

.client-logo--color:hover {
  opacity: 1;
}

.client-logo__img--color {
  width: 160px;
  height: 56px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

@media (max-width: 768px) {
  .client-logo__img--color {
    max-height: 36px;
    max-width: 120px;
  }
}
