/* ═══════════════════════════════════════════════
   RSD Bajaj Global — Design System
   ═══════════════════════════════════════════════ */

/* ── Custom Properties ───────────────────────── */
:root {
  --navy:       #0f2b4c;
  --navy-mid:   #1a3d6e;
  --navy-light: #2b5ea0;
  --blue:       #3573b1;
  --blue-light: #5b9bd5;
  --gold:       #3573b1;
  --gold-light: #5b9bd5;
  --white:      #ffffff;
  --surface:    #eef3f8;
  --text:       #1a2a3a;
  --text-muted: #5a6e82;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-script: 'Pinyon Script', cursive;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  24px;
  --shadow-gold: 0 0 40px rgba(53,115,177,0.15);
  --shadow-navy: 0 24px 64px rgba(15,43,76,0.18);

  --nav-h: 90px;
  --section-pad: clamp(80px, 10vw, 140px);
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; overflow-x: hidden; } /* Lenis handles smooth scroll */
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography Scale ────────────────────────── */
.t-display  { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.8vw, 3.8rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; white-space: nowrap; }
.t-h1       { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.5rem);   font-weight: 700; line-height: 1.15; }
.t-h2       { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; }
.t-h3       { font-family: var(--font-serif); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; }
.t-body     { font-size: 1rem;   line-height: 1.75; }
.t-small    { font-size: 0.875rem; line-height: 1.6; }
.t-label    { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.t-gold     { color: var(--gold); }
.t-navy     { color: var(--navy); }
.t-white    { color: var(--white); }
.t-muted    { color: var(--text-muted); }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 0.875rem;
  font-weight: 600; letter-spacing: 0.05em;
  transition: all 0.3s ease;
}
.btn-primary {
  background: var(--blue); color: var(--white);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(53,115,177,0.35); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.4); color: var(--white);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-navy {
  background: var(--navy); color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }

/* ── Utility ─────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); }
.section-pad { padding: var(--section-pad) 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Scroll Reveal Base ────── */
/* GSAP handles opacity/transform via gsap.set — no CSS initial hide needed */
.fade-up   { will-change: opacity, transform; }
.fade-in   { opacity: 0; transition: opacity 0.7s ease; }
.fade-in.visible { opacity: 1; }

/* ── Accessibility ───────────────────────────── */
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
a:focus-visible    { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-in { transition: none; }
}

/* ════════════════════════════════════════════════
   NAVBAR — Inspired by Cyril Shroff style
   Transparent on load, solid on scroll, elegant wide spacing
   ════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: var(--nav-h);
  background: transparent;
  transition: all 0.5s ease-in-out;
}
.navbar.scrolled {
  background: rgba(15,43,76,0.93);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2vw, 40px);
}

/* ── Logo ───────────────────────────── */
.navbar__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar__logo img {
  height: 75px; width: auto; object-fit: contain;
  display: block;
  filter: brightness(1.15);
  transition: all 0.5s ease-in-out;
}
.navbar.scrolled .navbar__logo img {
  height: 60px;
  filter: brightness(1.2);
}

/* ── Nav Links — elegant serif style ── */
.navbar__links {
  display: flex; list-style: none; gap: clamp(14px, 2vw, 32px);
  align-items: center;
  padding-top: 4px;
  flex-wrap: nowrap;
}
.navbar__link {
  font-family: var(--font-sans);
  font-size: clamp(0.65rem, 0.75vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255,255,255,0.75);
  position: relative;
  padding-bottom: 6px;
  transition: color 0.35s ease;
}
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1.5px;
  background: var(--blue-light);
  transition: width 0.35s ease, left 0.35s ease;
}
.navbar__link:hover,
.navbar__link.active {
  color: var(--white);
}
.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%; left: 0;
}

/* ── Actions ───────────────────────── */
.navbar__actions { display: flex; align-items: center; gap: 16px; }
.navbar__cta {
  padding: 10px 18px; font-size: 0.7rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Sidebar CTA (hidden on desktop, shown in mobile sidebar) ── */
.sidebar__cta { display: none; }

/* ── Hamburger ─────────────────────── */
.navbar__hamburger {
  display: none; flex-direction: column; gap: 6px;
  padding: 8px; background: transparent;
}
.navbar__hamburger span {
  display: block; width: 26px; height: 1.5px;
  background: var(--white); border-radius: 1px;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.navbar__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(6px,6px); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }

/* ── Mobile Nav — Right Sidebar ────── */
@media (max-width: 900px) {
  /* Navbar always on top so hamburger stays tappable above backdrop */
  .navbar { z-index: 1002; }

  /* Sidebar panel */
  .navbar__links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 82vw);
    z-index: 1001;
    flex-direction: column; gap: 0;
    align-items: flex-start;
    background: rgba(10,30,58,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: calc(var(--nav-h) + 16px) 0 40px;
    transform: translateX(110%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(0,0,0,0.45);
  }
  .navbar__links.open {
    transform: translateX(0);
  }
  .navbar__link {
    width: 100%;
    padding: 16px 32px;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .navbar__link::after { display: none; }

  /* Hide CTA from top bar on mobile — it lives inside the sidebar instead */
  .navbar__cta { display: none; }

  /* Sidebar CTA (injected by JS) */
  .sidebar__cta {
    display: block;
    margin: 24px 32px 0;
    width: calc(100% - 64px);
    text-align: center;
    padding: 12px 20px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--blue-mid);
    color: var(--white);
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.25s ease;
  }
  .sidebar__cta:hover { background: var(--blue-light); }

  /* Hamburger visible */
  .navbar__hamburger { display: flex; }

  /* Backdrop overlay */
  .nav-backdrop {
    position: fixed; inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */
.hero {
  position: relative; height: 100vh; min-height: 680px;
  background: var(--navy); overflow: hidden;
  display: flex; align-items: center;
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.hero__content {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  width: 100%; padding-top: var(--nav-h);
}
.hero__text { max-width: 600px; }
.hero__eyebrow {
  display: inline-block; margin-bottom: 20px;
  padding: 6px 16px; border: 1px solid rgba(53,115,177,0.3);
  border-radius: 100px; background: rgba(53,115,177,0.08);
}
.hero__headline { margin-bottom: 0; }
.hero__headline em { font-style: italic; }
/* Tagline below the hero headline */
.hero__tagline {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
  line-height: 1.4;
}
.hero__tagline em { font-style: italic; }

/* ── Hero background pixelated text ──────────────────────────────── */
.hero__bg-brand {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  width: 90%;
  max-width: 900px;
  pointer-events: none;
  overflow: hidden;
  text-align: center;
}
.scramble-target {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.55rem, 1.1vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(91, 155, 213, 0.12);
  -webkit-text-stroke: none;
  text-shadow: none;
  line-height: 2;
  word-spacing: 0.5em;
  user-select: none;
}
.hero__btns {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px;
}

/* Word-by-word reveal — JS adds .word spans, then .visible */
.hero__headline .word {
  display: inline-block; overflow: hidden;
}
.hero__headline .word span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.hero__headline.revealed .word span { transform: translateY(0); }

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

@media (max-width: 900px) {
  .hero { height: 100svh; }
  .hero__content { justify-content: center; text-align: center; }
  .hero__btns    { justify-content: center; }
  .hero__sub     { margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line { animation: none; opacity: 0.5; }
  .hero__headline .word span { transition: none; }
}

/* ════════════════════════════════════════════════
   MARQUEE STRIP
   ════════════════════════════════════════════════ */
.marquee-strip {
  background: var(--navy); padding: 16px 0;
  overflow: hidden; border-top: 1px solid rgba(53,115,177,0.25);
  border-bottom: 1px solid rgba(53,115,177,0.25);
  position: relative; width: 100%;
}
.marquee-track {
  display: flex; gap: 40px; white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}
.marquee-track span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.marquee-dot { color: var(--gold) !important; font-size: 0.5rem !important; align-self: center; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }

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

/* ════════════════════════════════════════════════
   STATS / ABOUT
   ════════════════════════════════════════════════ */
.stats { background: var(--surface); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 40px; margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(15,43,76,0.1);
}
.stats__metric { text-align: center; }
.stats__number {
  font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900; color: var(--navy); line-height: 1;
}
.stats__plus { font-size: 2rem; color: var(--gold); font-weight: 700; }
.stats__label { margin-top: 8px; color: var(--text-muted); }
.stats__statement { display: flex; flex-direction: column; }

@media (max-width: 768px) {
  .stats__grid { grid-template-columns: repeat(2,1fr); gap: 32px; }
}
@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════
   PRACTICE AREAS
   ════════════════════════════════════════════════ */
.practice { background: var(--white); }
.practice__header { margin-bottom: 48px; }
.practice__scroll-wrapper {
  overflow-x: auto; padding: 20px 0 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  -webkit-overflow-scrolling: touch;
}
.practice__scroll-wrapper::-webkit-scrollbar { height: 3px; }
.practice__scroll-wrapper::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.practice__track {
  display: flex; gap: 24px;
  padding: 0 clamp(20px,5vw,60px);
  width: max-content;
}
.practice-card {
  background: var(--white); border: 1px solid rgba(15,43,76,0.08);
  border-radius: var(--radius-md);
  padding: 36px 28px; width: 280px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 16px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  transform-style: preserve-3d; will-change: transform;
  position: relative; overflow: hidden;
}
.practice-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.practice-card:hover { box-shadow: var(--shadow-navy); border-color: rgba(53,115,177,0.3); }
.practice-card:hover::before { transform: scaleX(1); }
.practice-card__icon {
  width: 48px; height: 48px; color: var(--navy);
}
.practice-card__icon svg { width: 100%; height: 100%; }
.practice-card h3 { font-size: 1.1rem; color: var(--navy); }
.practice-card p  { flex: 1; }
.practice-card__link {
  display: inline-block; margin-top: 8px;
  transition: letter-spacing 0.2s, color 0.2s;
}
.practice-card__link:hover { letter-spacing: 0.12em; }

/* ════════════════════════════════════════════════
   AI TECHNOLOGY SECTION
   ════════════════════════════════════════════════ */
.ai-section {
  position: relative; background: var(--navy);
  padding: var(--section-pad) 0; overflow: hidden; min-height: 600px;
}
#ai-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; opacity: 0.6;
}
.ai-section__content { position: relative; z-index: 2; }
.ai-section__text { max-width: 560px; }
.ai-section__features {
  list-style: none; margin-top: 36px; display: flex; flex-direction: column; gap: 20px;
}
.ai-section__features li {
  display: flex; gap: 16px; align-items: flex-start;
  color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.6;
}
.ai-dot {
  flex-shrink: 0; width: 8px; height: 8px; margin-top: 7px;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 8px rgba(53,115,177,0.6);
}
.ai-section__features strong { color: var(--white); }

/* ════════════════════════════════════════════════
   JURISDICTION GLOBE
   ════════════════════════════════════════════════ */
.globe-section { background: var(--surface); }
.globe-section__layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.globe-section__list {
  list-style: none; margin-top: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.globe-section__list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem; color: var(--text);
}
.globe-flag { font-size: 1.4rem; }
.globe-section__canvas-wrap {
  position: relative; width: 100%; aspect-ratio: 1;
  max-width: 480px; margin: 0 auto;
}
#globe-canvas { width: 100%; height: 100%; display: block; }
.globe-tooltip {
  position: absolute; background: var(--navy); color: var(--white);
  padding: 8px 14px; border-radius: 6px; font-size: 0.8rem;
  pointer-events: none; opacity: 0; transition: opacity 0.2s;
  white-space: nowrap; border: 1px solid rgba(53,115,177,0.3);
  transform: translate(-50%, -120%);
}
.globe-tooltip.visible { opacity: 1; }


@media (max-width: 900px) {
  .globe-section__layout { grid-template-columns: 1fr; }
  .globe-section__canvas-wrap { max-width: 360px; }
}

/* ════════════════════════════════════════════════
   JURISDICTION CARDS
   ════════════════════════════════════════════════ */
.jurisdiction-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.jurisdiction-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(26, 54, 93, 0.08);
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.jurisdiction-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(26, 54, 93, 0.08);
}
.jurisdiction-card .globe-flag {
  font-size: 2rem;
  flex-shrink: 0;
}
.jurisdiction-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.jurisdiction-card__info strong {
  font-size: 1rem;
  color: var(--navy);
}
.jurisdiction-card__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--gold);
  color: #fff;
  width: fit-content;
}
.jurisdiction-card__badge--assoc {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.jurisdiction-card__cities {
  margin-top: 2px;
  line-height: 1.5;
}
.jurisdiction-stat {
  display: flex;
  align-items: center;
}
.jurisdiction-footnote {
  font-style: italic;
}

@media (max-width: 600px) {
  .jurisdiction-cards {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════
   TEAM PREVIEW
   ════════════════════════════════════════════════ */
.team { background: var(--white); }
.team__header { margin-bottom: 48px; }
.team__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.team-card {
  perspective: 800px; height: 320px; cursor: pointer;
}
.team-card__front, .team-card__back {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md); padding: 32px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.team-card { position: relative; }
.team-card__front {
  background: var(--surface);
  border: 1px solid rgba(15,43,76,0.08);
  transform: rotateY(0deg);
}
.team-card__back {
  background: var(--navy);
  transform: rotateY(180deg);
  align-items: flex-start; text-align: left;
}
.team-card:hover .team-card__front { transform: rotateY(-180deg); }
.team-card:hover .team-card__back  { transform: rotateY(0deg); }
.team-card__photo {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ════════════════════════════════════════════════
   INSIGHTS
   ════════════════════════════════════════════════ */
.insights__header { margin-bottom: 48px; }
.insights__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.insight-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 32px; display: flex; flex-direction: column; gap: 14px;
  border: 1px solid rgba(15,43,76,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.insight-card:hover { box-shadow: var(--shadow-navy); transform: translateY(-4px); }
.insight-card__tag { display: inline-block; }
.insight-card h3 { font-size: 1.05rem; flex: 1; }
.insight-card__footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.insight-card__link { transition: letter-spacing 0.2s; }
.insight-card__link:hover { letter-spacing: 0.1em; }

/* ════════════════════════════════════════════════
   CTA BANNER
   ════════════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1a4a7a 100%);
  padding: clamp(60px,8vw,100px) 0;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(53,115,177,0.12) 0%, transparent 70%);
}
.cta-banner__inner {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 32px;
}
.cta-banner__actions { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .team__grid    { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .insights__grid{ grid-template-columns: 1fr; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .cta-banner__actions { justify-content: center; }
}

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.footer { background: #091828; padding-top: clamp(60px,8vw,100px); }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer__heading { color: var(--gold); margin-bottom: 20px; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }
.footer__address { font-style: normal; display: flex; flex-direction: column; gap: 10px; }
.footer__address p { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.6; }
.footer__address a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer__address a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 12px; margin-top: 24px; }
.footer__social-link {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); transition: all 0.2s;
}
.footer__social-link svg { width: 16px; height: 16px; }
.footer__social-link:hover { border-color: var(--gold); color: var(--gold); }
.footer__bottom { padding: 24px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer__legal a:hover { color: rgba(255,255,255,0.7); }

/* ════════════════════════════════════════════════
   WHATSAPP INDICATOR
   ════════════════════════════════════════════════ */
.whatsapp-indicator {
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
  font-size: 1rem;
}
.footer__phone {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* ════════════════════════════════════════════════
   RESPONSIVE — GLOBAL OVERRIDES
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .globe-section__layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .team__grid     { grid-template-columns: 1fr; }
  .insights__grid { grid-template-columns: 1fr; }

  /* ── Mobile: fix hero headline overflow ──────── */
  .t-display { white-space: normal; }

  /* ── Mobile: compact navbar ──────────────────── */
  :root { --nav-h: 72px; }
  .navbar__logo img { height: 56px; }
  .navbar.scrolled .navbar__logo img { height: 46px; }

  /* ── Mobile: hero text fills container ────────── */
  .hero__text { width: 100%; }

  /* ── Mobile: hero eyebrow pill — long text wraps cleanly ── */
  .hero__eyebrow {
    display: block;
    border-radius: var(--radius-sm);
    letter-spacing: 0.04em;
    white-space: normal;
  }

  /* ── Mobile: reduce section spacing ─────────── */
  :root { --section-pad: clamp(60px, 10vw, 100px); }
}
@media (max-width: 480px) {
  .hero__btns { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; width: 100%; }

  /* ── Tiny screens: hero sub text fills width ── */
  .hero__sub { max-width: 100% !important; }

  /* ── Tiny screens: compact nav ──────────────── */
  :root { --nav-h: 64px; }
  .navbar__logo img { height: 48px; }
  .navbar.scrolled .navbar__logo img { height: 40px; }
}

/* ── Smooth page load ─────────────────────────── */
body { opacity: 0; transition: opacity 0.4s ease; animation: fallbackShow 0s 2s forwards; }
body.loaded { opacity: 1; animation: none; }
@keyframes fallbackShow { to { opacity: 1; } }

/* ── Selection colour ─────────────────────────── */
::selection { background: rgba(53,115,177,0.25); color: var(--navy); }

/* ── Custom scrollbar ─────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ════════════════════════════════════════════════
   3D EFFECTS — Card Shine Overlay
   ════════════════════════════════════════════════ */
.card-shine {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  transition: background 0.3s ease;
}

/* ════════════════════════════════════════════════
   3D EFFECTS — Enhanced Practice Cards
   ════════════════════════════════════════════════ */
.practice-card {
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}
.practice-card__icon,
.practice-card h3,
.practice-card p,
.practice-card__link {
  transform: translateZ(20px);
}

/* ════════════════════════════════════════════════
   3D EFFECTS — Enhanced Insight Cards
   ════════════════════════════════════════════════ */
.insight-card {
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

/* ════════════════════════════════════════════════
   3D EFFECTS — Floating Stats Badges
   ════════════════════════════════════════════════ */
.stats__metric {
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
}
.stats__number {
  display: inline-block;
  text-shadow: 0 4px 20px rgba(15,43,76,0.15);
  transform: translateZ(30px);
}
.stats__metric::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 20%; right: 20%;
  height: 12px;
  background: radial-gradient(ellipse, rgba(15,43,76,0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(4px);
  transition: opacity 0.3s ease;
}
.stats__metric:hover::after {
  opacity: 0.5;
}

/* ════════════════════════════════════════════════
   3D EFFECTS — Globe Scroll Active State
   ════════════════════════════════════════════════ */
.globe-section__list li {
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  position: relative;
}
.globe-section__list li.globe-active {
  background: rgba(53,115,177,0.08);
  color: var(--navy);
}
.globe-section__list li.globe-active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--gold);
  border-radius: 2px;
}
.globe-section__list li.globe-active strong {
  color: var(--gold);
}

/* ════════════════════════════════════════════════
   3D EFFECTS — AI Bloom Pulse
   ════════════════════════════════════════════════ */
@keyframes aiBloomPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.02); }
}

/* ════════════════════════════════════════════════
   3D EFFECTS — Section Transitions
   ════════════════════════════════════════════════ */
.section-pad,
.ai-section,
.cta-banner {
  will-change: transform, opacity;
}

/* ════════════════════════════════════════════════
   3D EFFECTS — Animated Logo
   ════════════════════════════════════════════════ */
.navbar__logo img {
  will-change: transform;
  transform-style: preserve-3d;
}

/* ════════════════════════════════════════════════
   3D EFFECTS — Connection Lines SVG
   ════════════════════════════════════════════════ */
#connection-lines-svg {
  mix-blend-mode: screen;
}

/* ════════════════════════════════════════════════
   3D EFFECTS — CTA Gradient Mesh
   ════════════════════════════════════════════════ */
.cta-banner {
  position: relative;
  overflow: hidden;
}
#gradient-mesh-canvas {
  mix-blend-mode: normal;
}

/* ════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════ */
.testimonials {
  background: var(--navy);
  padding: var(--section-pad) 0;
}
.testimonials__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}
.testimonials__quotes {
  position: relative;
  min-height: 140px;
  margin-bottom: 48px;
}
.testimonials__quote {
  position: absolute;
  inset: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, filter 0.5s ease-out;
  pointer-events: none;
}
.testimonials__quote.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}
.testimonials__author-row {
  display: flex;
  align-items: center;
  gap: 24px;
}
.testimonials__avatars {
  display: flex;
}
.testimonials__avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: transform 0.3s ease-out, filter 0.3s ease-out;
  filter: grayscale(100%);
  flex-shrink: 0;
}
.testimonials__avatar + .testimonials__avatar {
  margin-left: -8px;
}
.testimonials__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonials__avatar.is-active {
  z-index: 2;
  transform: scale(1.15);
  filter: grayscale(0);
}
.testimonials__avatar:not(.is-active):hover {
  filter: grayscale(0);
  transform: scale(1.08);
}
.testimonials__divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.testimonials__info {
  position: relative;
  flex: 1;
  min-height: 44px;
}
.testimonials__info-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  pointer-events: none;
}
.testimonials__info-item.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.testimonials__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}
.testimonials__role {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.testimonials__credentials {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.testimonials__clients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.testimonials__clients span {
  padding: 4px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  transition: border-color 0.3s, color 0.3s;
}
.testimonials__clients span:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
}

@media (max-width: 480px) {
  .testimonials__author-row { flex-wrap: wrap; gap: 16px; }
  .testimonials__divider { display: none; }
  .testimonials__quotes { min-height: 180px; }
}

/* ════════════════════════════════════════════════
   3D EFFECTS — Reduced motion override
   ════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════
   FEATURED IN MEDIA SECTION
   ════════════════════════════════════════════════ */
.featured-in {
  background: linear-gradient(135deg, rgba(15, 43, 76, 0.02), rgba(53, 115, 177, 0.03));
  padding: 64px 0;
  border-top: 1px solid rgba(15, 43, 76, 0.08);
  border-bottom: 1px solid rgba(15, 43, 76, 0.08);
}

.featured-in__label {
  display: block;
  color: var(--navy);
  opacity: 0.6;
}

.featured-in__marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.featured-in__track {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 0 20px;
  animation: marquee 40s linear infinite;
  will-change: transform;
}

.featured-in__item {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.7;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.featured-in__separator {
  color: var(--gold);
  opacity: 0.5;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.featured-in:hover .featured-in__track {
  animation-play-state: paused;
}

.featured-in:hover .featured-in__item {
  opacity: 1;
}

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

@media (max-width: 768px) {
  .featured-in {
    padding: 48px 0;
  }
  .featured-in__track {
    gap: 24px;
  }
  .featured-in__item {
    font-size: 0.85rem;
  }
}

/* ════════════════════════════════════════════════
   MEDIA LOGO MARQUEE (continuous scroll)
   ════════════════════════════════════════════════ */
.featured-in__logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  margin: 0 -20px;
  padding: 16px 0;
}
.featured-in__logo-track {
  display: flex;
  gap: 48px;
  align-items: center;
  animation: logoMarquee 35s linear infinite;
  width: max-content;
  will-change: transform;
}
@keyframes logoMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.featured-in__logo-marquee:hover .featured-in__logo-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .featured-in__logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}
.featured-in__logo-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}
.featured-in__logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.featured-in__logo-link:hover .featured-in__logo {
  opacity: 1;
  transform: scale(1.08);
}

/* Media Hover Tooltip */
.featured-in__logo-link::after {
  content: attr(data-publication);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}
.featured-in__logo-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
  .featured-in__logo-track {
    gap: 32px;
  }
  .featured-in__logo {
    height: 24px;
  }
}

/* ════════════════════════════════════════════════
   LEGAL NEEDS FINDER SECTION
   ════════════════════════════════════════════════ */
.legal-finder {
  background: var(--white);
}

.legal-finder__header {
  text-align: center;
  margin-bottom: 64px;
}

.legal-finder__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.legal-finder__card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 2px solid rgba(15, 43, 76, 0.1);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.legal-finder__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(53, 115, 177, 0.05), rgba(91, 155, 213, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.legal-finder__card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(53, 115, 177, 0.15);
  transform: translateY(-4px);
}

.legal-finder__card:hover::before {
  opacity: 1;
}

.legal-finder__icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
  display: inline-block;
}

.legal-finder__card h3 {
  color: var(--navy);
  margin-bottom: 12px;
}

.legal-finder__card p {
  flex: 1;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.legal-finder__link {
  display: inline-block;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.legal-finder__card:hover .legal-finder__link {
  color: var(--blue-light);
  transform: translateX(4px);
}

.legal-finder__footer {
  margin-top: 32px;
}

.legal-finder__footer .btn {
  font-size: 1rem;
  padding: 16px 40px;
}

@media (max-width: 768px) {
  .legal-finder__header {
    margin-bottom: 48px;
  }
  .legal-finder__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .legal-finder__card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats__number,
  .navbar__logo img,
  .card-shine,
  #connection-lines-svg,
  .ai-bloom-overlay {
    animation: none !important;
    transition: none !important;
  }
  #particle-text-canvas,
  #contract-canvas,
  #gradient-mesh-canvas {
    display: none !important;
  }
}
