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

:root {
  --bg: #fafbff;
  --surface: #ffffff;
  --surface2: #f0f4ff;
  --surface-dark: #0a0e1a;
  --text: #0b1220;
  --muted: #475569;
  --muted2: #64748b;
  --line: #e2e8f0;
  --line-dark: rgba(255, 255, 255, 0.08);
  --brand: #0B5FFF;
  --brand2: #14B8A6;
  --brand-glow: rgba(11, 95, 255, 0.35);
  --teal-glow: rgba(20, 184, 166, 0.25);
  --shadow: 0 10px 40px rgba(2, 6, 23, 0.06);
  --shadow2: 0 24px 64px rgba(2, 6, 23, 0.08);
  --radius: 20px;
  --radius2: 28px;
  --radius-pill: 9999px;
  --max: 1200px;
  --max-header: 1400px;
  --font: 'Plus Jakarta Sans', ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ----- Header ----- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header .container {
  max-width: var(--max-header);
  padding-left: clamp(24px, 4vw, 48px);
  padding-right: clamp(24px, 4vw, 48px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img {
  height: 36px;
  width: auto;
  transition: transform 0.25s var(--ease-out-quart);
}
.brand:hover img {
  transform: scale(1.12);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  padding: 10px clamp(14px, 1.5vw, 20px);
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--surface2); color: var(--brand); }
.cta { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04);
}
.btn:not(.btn-primary):hover {
  transform: translateY(-2px);
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.08);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 16px 40px var(--brand-glow);
}
.btn-primary:hover {
  filter: saturate(1.08) brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 20px 48px var(--brand-glow);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
}

/* Header over hero video (home): white nav for contrast */
body:has(.hero-video) .header .nav-links a {
  color: #fff;
}
body:has(.hero-video) .header .nav-links a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
body:has(.hero-video) .header .btn:not(.btn-primary) {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}
body:has(.hero-video) .header .btn:not(.btn-primary):hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}
body:has(.hero-video) .header .menu-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}
body:has(.hero-video) .header .menu-btn .hamb-lines span {
  background: #fff;
}
.menu-btn:active { transform: scale(0.98); }
.hamb-lines { display: inline-flex; flex-direction: column; gap: 5px; }
.hamb-lines span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* Mobile menu */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 6, 23, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  width: min(400px, 92vw);
  transform: translateX(102%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 24px;
  box-shadow: var(--shadow2);
}
.menu-open .mobile-backdrop { opacity: 1; pointer-events: auto; }
.menu-open .mobile-menu { transform: translateX(0); }
.mobile-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mobile-close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a {
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  background: var(--surface2);
  border: 1px solid var(--line);
}
.mobile-nav a:hover { background: #e8eeff; }

/* ----- Hero ----- */
.hero {
  padding: 140px 0 120px;
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* Hero with video: extend to top so video shows behind header */
.hero:has(.hero-video) {
  margin-top: -80px;
  padding-top: 220px;
  min-height: calc(88vh + 80px);
}
/* Compact hero for inner pages (no video) */
.hero:not(:has(.hero-video)) {
  min-height: 0;
  padding: 96px 0 48px;
  align-items: flex-start;
}
.hero:not(:has(.hero-video)) .hero-grid {
  align-items: flex-start;
}
.hero:not(:has(.hero-video)) h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin: 0 0 8px;
}
.hero:not(:has(.hero-video)) p {
  max-width: 72ch;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 23, 42, 0.5) 0%, rgba(11, 23, 42, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 95, 255, 0.15);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(11, 95, 255, 0.08);
}
.pill b { color: var(--brand); }
.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  padding-bottom: 0.15em;
}
.grad {
  background: linear-gradient(135deg, #0b1220 0%, #1e293b 50%, #0b1220 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
  max-width: 42ch;
  line-height: 1.7;
}
/* Hero over video: light text */
.hero:has(.hero-video) .grad {
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.92) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero:has(.hero-video) p { color: rgba(255, 255, 255, 0.88); }
.hero:has(.hero-video) .pill {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.hero:has(.hero-video) .pill b { color: #fff; }
.hero:has(.hero-video) .btn { border-color: rgba(255,255,255,0.4); color: #fff; background: rgba(255,255,255,0.12); }
.hero:has(.hero-video) .btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ----- Stats strip ----- */
.stats-strip {
  padding: 48px 0;
  background: var(--surface-dark);
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(11, 95, 255, 0.15), transparent 60%),
    radial-gradient(ellipse 40% 80% at 100% 50%, rgba(20, 184, 166, 0.08), transparent 50%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.stats-num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats-label {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.85);
  letter-spacing: 0.02em;
}

/* ----- Home: ultra pharma + ultra creative motion ----- */

/* Hero: bold focus-in reveal */
.hero .reveal {
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.hero .reveal.in {
  transform: translateY(0) scale(1);
}

/* Stats strip: 3D depth + data-line draw (ultra pharma) */
.stats-strip .stats-grid {
  perspective: 1200px;
}
.stats-strip .stats-item {
  transform-style: preserve-3d;
  position: relative;
}
.stats-strip .stats-item.reveal {
  opacity: 0;
  transform: translateY(28px) translateZ(-48px) rotateX(8deg);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.stats-strip .stats-item.reveal.in {
  opacity: 1;
  transform: translateY(0) translateZ(0) rotateX(0);
}

/* Section band: slide-in type */
.section.band .section-label.reveal,
.section.band h2.reveal {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.55s var(--ease-out-expo), transform 0.55s var(--ease-out-expo);
}
.section.band .section-label.reveal.in,
.section.band h2.reveal.in {
  opacity: 1;
  transform: translateX(0);
}
.section.band .content-block.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.section.band .content-block.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Bento: 3D card lay-in + accent bar grow */
.bento {
  perspective: 1000px;
}
.bento-card {
  transform-style: preserve-3d;
}
.bento-card.reveal {
  opacity: 0;
  transform: translateY(24px) rotateX(10deg);
  transition: opacity 0.55s var(--ease-out-expo), transform 0.55s var(--ease-out-expo);
}
.bento-card.reveal.in {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* Feature blocks: same 3D treatment */
.feature-split {
  perspective: 1000px;
}
.feature-block {
  transform-style: preserve-3d;
}
.feature-block.reveal {
  opacity: 0;
  transform: translateY(20px) rotateX(8deg);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.feature-block.reveal.in {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* CTA: bold final reveal */
.cta-section .reveal {
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.cta-section .reveal.in {
  transform: translateY(0);
}

/* ----- Section band (intro) ----- */
.section { padding: 72px 0; }
.section-tight-top { padding-top: 32px; }
.section-tight-bottom { padding-bottom: 32px; }
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.section h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
}
.section .sub { margin: 0 0 24px; color: var(--muted); max-width: 65ch; font-size: 17px; }

.services-list a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.services-list a:hover { color: var(--brand); }

/* ----- Services page grid ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.service-card {
  display: block;
  padding: 28px;
  border-radius: var(--radius2);
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  opacity: 0;
  transition: opacity 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(2, 6, 23, 0.1);
  border-color: rgba(11, 95, 255, 0.12);
}
.service-card:hover::before { opacity: 1; }
.service-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}
.service-card p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.service-card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}
.service-card:hover .service-card-link { text-decoration: underline; }
@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}

.band {
  background: linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.content-block {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 32px;
}
.content-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.content-para {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  max-width: 92ch;
}
.divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
  margin: 18px 0;
}

/* ----- Service page content (from services) ----- */
.page-prose {
  max-width: 72ch;
}
.service-blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}
.service-block {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 28px;
}
.service-block h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.service-block .content-para,
.service-block p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}
.service-block .content-para:last-child,
.service-block p:last-child { margin-bottom: 0; }
.stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
}
.stack-item {
  margin: 0;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(15, 23, 42, 0.02);
  border-left: 3px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-left-color 0.2s ease;
}
.stack-item:hover {
  background: rgba(11, 95, 255, 0.06);
  color: var(--text);
  border-left-color: var(--brand);
}
.stack-item:first-child { border-radius: 12px 12px 0 0; }
.stack-item:last-child { border-radius: 0 0 12px 12px; border-bottom: none; }
.stack-item:only-child { border-radius: 12px; }
.service-block .stack { margin-top: 16px; }
.service-block .stack-item:first-child { border-radius: 10px 10px 0 0; }
.service-block .stack-item:last-child { border-radius: 0 0 10px 10px; border-bottom: none; }
.service-block .stack-item:only-child { border-radius: 10px; }

/* ----- Bento expertise grid ----- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.bento-card {
  border-radius: var(--radius2);
  padding: 28px;
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  opacity: 0;
  transition: opacity 0.25s;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(2, 6, 23, 0.1);
  border-color: rgba(11, 95, 255, 0.12);
}
.bento-card:hover::before { opacity: 1; }
.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-12 { grid-column: span 12; }
.bento-card h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.bento-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand);
  text-decoration: none;
  margin-top: auto;
}
.bento-link:hover { text-decoration: underline; }
.bento-link::after {
  content: "→";
  font-weight: 800;
}

/* Fallback stack when grid collapses */
.expertise-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}
.expertise-card {
  border-radius: var(--radius2);
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.expertise-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.08);
}
.expertise-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 14px;
}
.expertise-card h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.expertise-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 88ch;
}
.expertise-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
  color: var(--brand);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(11, 95, 255, 0.08);
  border: 1px solid rgba(11, 95, 255, 0.12);
  font-size: 14px;
}
.expertise-link:hover { background: rgba(11, 95, 255, 0.12); text-decoration: none; }

/* ----- Two-column feature block ----- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 24px;
}
.feature-block {
  padding: 32px;
  border-radius: var(--radius2);
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
a.feature-block {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
a.feature-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.08);
  border-color: rgba(11, 95, 255, 0.12);
}
a.feature-block:hover .feature-block-link { text-decoration: underline; }
.feature-block h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.feature-block p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.feature-block-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand);
  margin-top: auto;
  padding-top: 16px;
}
.feature-block-link::after {
  content: "→";
  font-weight: 800;
}

/* ----- Leadership / team ----- */
.hero-intro {
  max-width: 72ch;
  margin-top: 8px;
}
.hero-intro p {
  max-width: none;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 24px;
}
@media (max-width: 880px) {
  .team-grid { grid-template-columns: 1fr; }
}
.profile-card {
  border-radius: var(--radius2);
  padding: 32px;
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.08);
}
.profile-card .profile-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
  display: block;
  background: var(--surface2);
}
.profile-card .profile-role {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.profile-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}
.profile-card .profile-bio {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.profile-card .profile-bio + .profile-bio { margin-top: 12px; }

/* ----- CTA section ----- */
.cta-section {
  padding: 80px 0;
  background: var(--surface-dark);
  color: #e2e8f0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(11, 95, 255, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(20, 184, 166, 0.12), transparent 50%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.cta-section p {
  margin: 0 0 28px;
  font-size: 18px;
  color: rgba(226, 232, 240, 0.9);
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  border: none;
  padding: 16px 32px;
  font-size: 16px;
}
.cta-section .btn-primary:hover {
  filter: saturate(1.1) brightness(1.05);
}

/* ----- Contact form ----- */
.contact-form {
  max-width: 640px;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form .form-group {
  margin-bottom: 20px;
}
.contact-form .form-row .form-group {
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}
.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted2);
}
.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #cbd5e1;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.12);
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.contact-form .form-message {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.contact-form .form-message.success {
  color: var(--brand2);
}

/* ----- Footer ----- */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 32px;
  align-items: start;
}
.footer .brand img { height: 32px; }
.footer small { color: var(--muted2); font-size: 13px; }
.footer a { text-decoration: none; color: var(--muted); font-weight: 500; }
.footer a:hover { color: var(--text); }
.footer-col-title {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }

/* ----- Reveal animations ----- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .nav-right { display: none; }
  .menu-btn { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 56px 0; }
  .hero { min-height: auto; }
  .hero:has(.hero-video) { padding: 180px 0 64px; }
  .hero:not(:has(.hero-video)) { padding: 72px 0 36px; }
  .hero h1 { font-size: clamp(36px, 8vw, 48px); }
  .hero:not(:has(.hero-video)) h1 { font-size: clamp(26px, 5vw, 34px); }
  .expertise-head { flex-direction: column; align-items: flex-start; }
  .feature-split { grid-template-columns: 1fr; gap: 24px; }
  .bento {
    grid-template-columns: 1fr;
  }
  .bento-card.span-6,
  .bento-card.span-12 {
    grid-column: span 1;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .cta-section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}
